Wednesday, June 25, 2008

Visual Studio 2005 Professional serial key

S/N: KGR3T-F2C26-RRTGT-D6DQT-QBBB3

Mobile Content Detection

<?php
/*
=====================================================
Mobile version detection
-----------------------------------------------------
compliments of http://www.buchfelder.biz/
=====================================================
*/

$mobile = "http://www.stepforth.mobi";
$text = $_SERVER['HTTP_USER_AGENT'];
$var[0] = 'Mozilla/4.';
$var[1] = 'Mozilla/3.0';
$var[2] = 'AvantGo';
$var[3] = 'ProxiNet';
$var[4] = 'Danger hiptop 1.0';
$var[5] = 'DoCoMo/';
$var[6] = 'Google CHTML Proxy/';
$var[7] = 'UP.Browser/';
$var[8] = 'SEMC-Browser/';
$var[9] = 'J-PHONE/';
$var[10] = 'PDXGW/';
$var[11] = 'ASTEL/';
$var[12] = 'Mozilla/1.22';
$var[13] = 'Handspring';
$var[14] = 'Windows CE';
$var[15] = 'PPC';
$var[16] = 'Mozilla/2.0';
$var[17] = 'Blazer/';
$var[18] = 'Palm';
$var[19] = 'WebPro/';
$var[20] = 'EPOC32-WTL/';
$var[21] = 'Tungsten';
$var[22] = 'Netfront/';
$var[23] = 'Mobile Content Viewer/';
$var[24] = 'PDA';
$var[25] = 'MMP/2.0';
$var[26] = 'Embedix/';
$var[27] = 'Qtopia/';
$var[28] = 'Xiino/';
$var[29] = 'BlackBerry';
$var[30] = 'Gecko/20031007';
$var[31] = 'MOT-';
$var[32] = 'UP.Link/';
$var[33] = 'Smartphone';
$var[34] = 'portalmmm/';
$var[35] = 'Nokia';
$var[36] = 'Symbian';
$var[37] = 'AppleWebKit/413';
$var[38] = 'UPG1 UP/';
$var[39] = 'RegKing';
$var[40] = 'STNC-WTL/';
$var[41] = 'J2ME';
$var[42] = 'Opera Mini/';
$var[43] = 'SEC-';
$var[44] = 'ReqwirelessWeb/';
$var[45] = 'AU-MIC/';
$var[46] = 'Sharp';
$var[47] = 'SIE-';
$var[48] = 'SonyEricsson';
$var[49] = 'Elaine/';
$var[50] = 'SAMSUNG-';
$var[51] = 'Panasonic';
$var[52] = 'Siemens';
$var[53] = 'Sony';
$var[54] = 'Verizon';
$var[55] = 'Cingular';
$var[56] = 'Sprint';
$var[57] = 'AT&T;';
$var[58] = 'Nextel';
$var[59] = 'Pocket PC';
$var[60] = 'T-Mobile';
$var[61] = 'Orange';
$var[62] = 'Casio';
$var[63] = 'HTC';
$var[64] = 'Motorola';
$var[65] = 'Samsung';
$var[66] = 'NEC';

$result = count($var);

for ($i=0;$i<$result;$i++)
{
$ausg = stristr($text, $var[$i]);
if(strlen($ausg)>0)
{
header("location: $mobile");
exit;
}

}
?>

Get the mobile Phone browser

For catching mobile browsers, it's caught every mobile browser I've thrown at it... 3 real ones (Palm Blazer, Opera Mini, Google's web to plain old text converter) and 2 simulated ones (Sony K750, Nokia N70). It also scored 94.34% against a database of 6,788 mobile browser User Agent ID codes via the WURFL database. And since its WURFL score was only based on one of three different tests the script does, and the ones it wasn't catching were from more obscure browsers, I'd estimate this little chunk of code should be able to identify 97% of mobile visitors, if not more.

function checkmobile(){

if(isset($_SERVER["HTTP_X_WAP_PROFILE"])) return true;

if(preg_match("/wap\.|\.wap/i",$_SERVER["HTTP_ACCEPT"])) return true;

if(isset($_SERVER["HTTP_USER_AGENT"])){

$uamatches = array("midp", "j2me", "avantg", "docomo", "novarra", "palmos", "palmsource", "240x320", "opwv", "chtml", "pda", "windows\ ce", "mmp\/", "blackberry", "mib\/", "symbian", "wireless", "nokia", "hand", "mobi", "phone", "cdm", "up\.b", "audio", "SIE\-", "SEC\-", "samsung", "HTC", "mot\-", "mitsu", "sagem", "sony", "alcatel", "lg", "eric", "vx", "NEC", "philips", "mmm", "xx", "panasonic", "sharp", "wap", "sch", "rover", "pocket", "benq", "java", "pt", "pg", "vox", "amoi", "bird", "compal", "kg", "voda", "sany", "kdd", "dbt", "sendo", "sgh", "gradi", "jb", "\d\d\di", "moto");

foreach($uamatches as $uastring){
if(preg_match("/".$uastring."/i",$_SERVER["HTTP_USER_AGENT"])) return true;
}

}
return false;
}

It's pretty simple. Line 1 of the function checks to see if the browser is sending a WAP profile. No desktop browser would want or need to, and based on my testing, none do. OTOH, Blazer on my Treo 700p sends one, but Opera Mini doesn't, so it's far from the only test needed.

The second line looks for WAP formats in the HTTP Accept string, which tells the server the types of content the browser can accept.

The rest of the code checks the User Agent ID for bits of text that you'll find in mobile browser IDs but not in the IDs of major desktop browsers. Each of these text snippets are meaningful indicators pulled from real PDA and mobile phone User Agent IDs.

PHP running on Windows CE ?

PHP fanatics.... try this. I have tried install on my HTC Tytn with window mobile 6 pro. It works great ....
http://mobileleap.net/hph/

Thursday, June 5, 2008

NoniGPSPlot v2.70c

http://www.freewarepocketpc.net/ppc-download-nonigpsplot-v2-70c.html

Summary: NoniGPSPlot allows you to locate your position in relation to other GPS points and to see the journey you have made. It may be used to find your starting place in a port after sailing, or the place where you ...

Wednesday, June 4, 2008

use SD card as RAM

1. Open a new folder "Volatile" on the SD card
2. Change the following key, using the registry editor:
from \HKLM\System\Filesys TempPath = \Application Data\Volatile
to \HKLM\System\Filesys TempPath = \Storage Card\Volatile
3. Turn off the pocket pc with the power button for about 30 sec (not soft reset/hard reset).
4. Turn it on again.

Tuesday, June 3, 2008

HTC Hermes USB connector pin config

HTC Hermes USB connector pin config

September 10th, 2006

I've been asked over and over again "what is the pin configuration of the USB connector on the SPV M3100" and what are the "TyTN connector pinout specs".

Rather than saying "I don't know" I decided to work it out!

Hermes USB Connector pins

The above diagram is of the EMU plug viewed end-on.

Enhanced Mini USB (EMU) connectors are double sided. One side carry's the USB signal data while the other carries audio signals. The pin config is as follows.

Data

  • A = GND
  • B = NC
  • C = +DATA
  • D = -DATA
  • E = +5v
  • Audio

  • 1 = +Mic
  • 2 = +Right
  • 3 = Switch
  • 4 = Gnd
  • 5 = Gnd
  • 6 = +Left
  • You can find Enhanced Mini USB connectors on a variety of devices. The above config covers the USB configuration of the Orange SPV M3100, HTC TyTN, Vodafone v1605, HTC Oxygen devices and HTC Meteor devices and probably many more.

    Use at your own risk though, play safe!

    Matt



    Source :: http://www.tracyandmatt.co.uk/blogs/index.php/2006/09/10/htc_hermes_usb_connector_pin_config

    Centos 7 reset root/ any user lost password / lockout due to cant remember password

    1. Need to be in front of the terminal. (Physically if not vm). 2. Reboot the server 3. Press 'e' in the GRUB2 boot screen. 3. bunch...