All posts by Ram

HTC Touch – Unlock from Airtel

I was surprised to find out that HTC Touch in India is locked to Airtel. The sales rep (Wavetel, Tambaram, Chennai) did not inform me that the phone is locked to Airtel for 2 years. Since I had to travel abroad, I had no other choice but to unlock it. I used the serivces of Unlock-Now and I was able to unlock the phone for $20 approx. Try it out. It is worth the money. (for now, only unlock-now offers the lowest-cost solution)

Technorati Tags: , , ,

Changing local weather on HTC Touch home screen

I bought a HTC touch today (Windows Mobile 6). I was sad to see that Chennai, (formerly Madras) was not listed in the cities for displaying weather. So, I hacked the registry to make the changes to the local weather display on the home screen. Here is the method:

  1. Download a registry editor like Mobile Registry Editor which allows you to edit the registry from your PC using ActiveSync.
  2. Then go to:
    HKEY_LOCAL_MACHINE\Software\HTC\HTCHome\Weather\Settings
  3. Change the location to “Chennai, IN” and the loccode to “ASI|IN|IN031|MADRAS”

Warrick: Restoring website from internet caches

Warrick is a command-line utility for reconstructing or recovering a website when a back-up is not available. Warrick will search the Internet Archive, Google, MSN, and Yahoo for stored pages and images and will save them to your filesystem. Warrick is most effective at finding cached content in search engines in the first several days after losing the website since the cached versions of pages tend to disappear once the search engine re-crawls your site and can no longer find the pages. Running Warrick multiple times over a period of several days or weeks can increase the number of recovered files because the caches fluctuate daily (especially Yahoo’s). Internet Archive’s repository is at least 6-12 months out of date, and therefore you will only find content from them if your website has been around at least that long. If they don’t have your website archived, you might want to run Warrick again in 6-12 months.

Warrick is available here

Dynamic Virtualhosting (for subdomains) with apache

Apache provides a very easy method to provide hosting for dynamically created sub-domains with “VirtualScriptAlias” and “VirtualDocumentRoot” syntaxes

Lets say, we have mydomain.com, and you need to dynamically configure test.mydomain.com, monkey.mydomain.com etc. (and not required to manually configure apache or restart), then..

Step 1: Configure wild-card DNS, so that *.mydomain.com is a cname to mydomain.com

Step 2: Configure apache. Create a new virtualhost section for *.mydomain.com, like:

<VirtualHost *>
ServerAlias *.mydomain.com
CustomLog /www/www.logs/virtual.mydomain.com-access_log combined
ErrorLog /www/www.logs/virtual.mydomain.com-error_log
VirtualDocumentRoot /www/www.mydomain.com/virtualdomains/%0/docs
VirtualScriptAlias  /www/www.mydomain.com/virtualdomains/%0/cgi-bin/
</VirtualHost>

Step 3: Restart apache to activate the new configuration

Step 4: Now, say you need test.mydomain.com, all that is required is to create /www/www.mydomain.com/virtualdomains/test.mydomain.com/docs and /www/www.mydomain.com/virtualdomains/test.mydomain.com/cgi-bin/

 

Technorati Tags: , , ,

Tomcat UTF8 Characters

If you have issues with tomcat not able to parse/display UTF characters, try adding URIEncoding=”UTF-8″ to your tomcat settings (server.xml).

Example:

<Connector port=”8080″ maxThreads=”150″ minSpareThreads=”25″ maxSpareThreads=”75″ enableLookups=”false” redirectPort=”8443″ acceptCount=”100″ debug=”0″ connectionTimeout=”20000″ disableUploadTimeout=”true” URIEncoding=”UTF-8″/>

T-Mobile Hotspot & Parallels on OS X

If you are using T-Mobile hotspot and would like to use the Guest OS also to get access to the net, do the following:

  1. Use host only networking with DHCP on the guest OS (Windows XP, in my case).
  2. On the native OS (OS X), configure internet sharing of airport with en2 (this is the Parallels Host-Guest Adapter). You would now see that the connectivity on XP goes out and then is re-established. Now, XP would have connectivity to the net.

Technorati Tags: , ,