November 27, 2007

CNaming my Blog !

I changed my blog name from http://sairahulreddy.blogspot.com to http://blog.sairahul.com. It is very simple to do. You can find the instructions for doing it here.

step 1. Create a DNS entry for blog.sairahul.com as follows.
blog IN CNAME ghs.google.com.
step2. Go to your blog setting in blogger and then go to Settings->Publishing->Advanced Settings and enter your blog name here.

Now if you go to your new address, you can observe that all your blog entries point to the new address instead of old one. If you go to old address it will get redirect to new one.

How it works ?.

When you enter http://blog.sairahul.com in browser. The following sequence of steps will happens.
1. Browser tries to resolve the domain name of blog.sairahul.com. Since we have given blog.sairahul.com as CNAME of ghs.google.com, it will get IP address of ghs.google.com.
2. Next, browser will contact ghs.google.com (i mean IP address of ghs.google.com) and set Host field to "blog.sairahul.com"
3. Since Google knows (In step2 we added this) the alias of your blog name it will return your blog correctly.

Host name in step 2 is very important. Google differentiates domains using Host name (in other words it maintains multiple domains using same host name). You can test the above theory using nslookup and wget.
1. Get the IP using nslookup.
nslookup ghs.google.com
2. Get the page using wget.
wget --header "Host: blog.sairahul.com" http:// -o out.html

If you remove the header option in the above step it will return 404 or if you give different valid host name it will return that page !.

November 21, 2007

Firefox 3 Features in Pictures

You can download the beta version of Firefox here. You can find list of all changes in http://www.mozilla.com/en-US/firefox/3.0b1/releasenotes/#whatsnew. Here i am showing some of the important features i find interesting.

Zooming in Firefox is greatly improved. (All because of new rendering engine). Compare the yahoo home page in Firefox 2 and in Firefox 3 when the page zoomed out.



























Download manager is integrated. You can now resume the download even after restarting Firefox.



















Another great improvement is in typing the URL s. Now you can just type partial keyword even the title of the page. You can find similar incremental search feature in downloads as well (refer above image)





Bookmarking now supports Google like star. You can even add tags to the bookmarks. Now the bookmarks will be well integrate with online services like del.icio.us.





You can find the summary of the bookmarks in Places.







Add-ons now shows installed plugins as well. No need of about:plugins.














You can customize the default behavior of the mime type handling.



















I used to kill Firefox to save the session :) (I know there are extensions now also. I don't want to install any). Now my little hack is gone !.







Last but not least you can find this cute warning when you go to about:config







Overall new Firefox features are great.