Pages

Tuesday, October 25, 2011

Web Developer on Chrome

One of the first developer add-ons for Firefox - the Web Developer Toolbar - is available on Chrome. I haven't really paid attention to it lately but now I find it very useful. It integrates several useful tools like color picker, ruler, and a host of other functions available in the Firefox version.
The functionality provided will probably end up in the dev tools inside the browser one day but, for now, the extension is extremely useful.
link: https://chrome.google.com/webstore/detail/bfbameneiokkgbdmiekhjnmfkcnldhhm

Monday, October 24, 2011

Could not register HTTP URL with WCF

Just had the following error:

HTTP could not register URL http://+:8000/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details).

when trying to run a Windows Service that listens on localhost using HTTP protocol. This happens on operating systems >= Vista, meaning the Windows 2008 is affected. The solution (listed here) is to run the following command as Administrator:

netsh http add urlacl url=http://+:8000/ user=DOMAIN\UserName

Now, to execute the same thing in older operating systems (Windows 2003, for example), you would run:

httpcfg set urlacl -u http://+:8890/ -a D:(A;;GX;;;S-1-5-20)

Then check the results with "httpcfg query urlacl". Replace "set" with "delete" to remove the permissions. Given SID is for NTAuthority\NetworkService. 

Saturday, October 15, 2011

Android USB Tethering

After first using wireless hotspot mode on the Android phone and connecting a laptop through that, draining battery rather quickly, even more pain followed after getting a PC. Switching constantly the SIM card between the phone and the USB adapter on the PC was no fun at all.

After doing a bit of searching on USB tethering I was truly stunned to find that USB tethering has been available ever since Android 2.2. Having used Quick Settings application to access WiFi hotspot settings (mobile AP), I rarely wandered into the original Android Settings menu.

It was a true revelation to see USB tethering option natively supported by the operating system. This is now the ultimate solution - the phone is being recharged often and both the phone and the desktop PC are connected to Internet. Lovely jovely. 

Edit: Another option is to use PdaNet. There is a service on the mobile phone and a desktop client for the PC. This requires separate installation of Samsung USB driver, that includes ADB driver. For some reason, the one that came with Kies was not enough.