Friday, December 14, 2012

Output array that contains Unicode characters in JSON format

Output array that contains Unicode characters in JSON format (for PHP5.3 or above)

   array_walk_recursive($array_has_unicode_charaters, function(&$item, $Key){	if(is_string($item)){	     $item = urlencode($item);	}   });   $json->data=$array_has_unicode_charaters;   echo urldecode(json_encode($json));

Create Access Point in Windows 7 For Android Device instead of ADHoc

This tricks shows how to create a Access Point instead of ADHoc network on your Windows 7 in order to allow the user to create
For those user who need Android device to connect to ADHoc network, this is the best alternative way to connect internet through your laptop. NO ROOT Required

1. Create a hosted network
run CMD as administrator, & type

netsh wlan set hostednetwork mode=allow ssid=SSID key=PASSWORD 

2. Open the Control Panel->Network & Internet->Network Connections
Right click the internet connection adapter & select Property, click Sharing tab, & tick allow other network users to connect through this computer’s internet connection. Select the connection name of Microsoft Virtual Wifi Miniport Adapter. Normally, it is namely “Wireless Network Connection 2” or “Wireless Network Connection 3”

3. In command prompt in step 1. type

netsh wlan start hostednetwork

This will create a Access Point instead of ADHoc & it is connectable by any Android Device.

In future, after you restart your computer, you can always run “netsh wlan start hostednetwork” to start the Access Point.

Trouble Shooting:
If you installed some third party VPN software it may breaks the connection, if you find you can connect to the network yet internet does not work, try to uninstall any third party VPN software & try again.