Make work your favorite Firefox extensions

June 19th, 2008   Filed Under Tips & Tricks, browser  

Firefox 3.0 … it is the sizzler of the day. But what am i hearing? Doesn’t your Firefox extensions work?

Okay… lets do something for the same… (Try this… but its your own risk if your browser crashes).

I know you are gonna try because you don’t wanna live without your extensions… alright !!

1) Open your firefox 3 window.
2) Type about:config in the address bar and hit enter
3) Right-click on the list shown and select> New > Boolean
4) Give it a name called “extensions.checkCompatibility"
5) Hit enter … then select “false” from the list and again hit enter

Next we need to make another key like this:

3) Right-click on the list shown and select> New > Boolean
4) Give it a name called “extensions.checkUpdateSecurity"
5) Hit enter … then select “false” from the list and again hit enter

Restart your firefox … enjoy madi … bless me…

Online Teaching from IIT & IISC

June 16th, 2008   Filed Under Good to know, gyan  

The IITs have taken up an initiative of starting online teaching and thus have started offering course materials online for every engineering stream.

Many professors from all the IITs have provided course materials for each chapter and each subject.

One has to register at the link provided below and can access the course material free of cost.

Every Chapter has been described with diagrams and charts. Please spread this message to everyone, as many can benefit from this program taken up by the government and IIT.

This is just a trial period going on and hence i request everyone to register at the link given.

1] Type the following address on internet explorer http://www.nptel.iitm.ac.in

2] Click on Course content-> IT -> Sem1-> Content column

3] And one can access any course material.

Please spread the word, so that this initiative benefits as many students as possible.

jquery extend

June 16th, 2008   Filed Under Good to know, Javascript, Tips & Tricks, browser, gyan, jQuery, snippet  

I have learnt the way to extend any jquery object today. I’ll show an example of adding an extra browser check to the browser object.

jquery has browser object as $.browser. So when you query this object you get mozilla, msie, opera, safari and version as the members of this object. Now if you want to add another browser say aol to the object you need to extend it like this:

$.extend($.browser, {aol: /AOL/.test(navigator.userAgent)});

The extend object does the job pretty neatly for you. The first parameter that goes is the object to be extended and the second parameter is the prop object which goes and sits in the extendee object.

So, to query you need to invoke is:

$.browser.aol // returns boolean

That’s great to know for the guys new to jquery. Enjoy madi !!!

Image Slideshow with SEO

June 16th, 2008   Filed Under Good to know, Javascript, Thinking Out Loud, Tips & Tricks, gyan, snippet  

I was doing some experiment with dhtml slideshow a couple of weeks back. Then someone said that all the images should be trackable by search engines(i.e., the image urls should be written on the html page) so that the crawlers can crawl them. The biggest challenge was the load time of all the images and the user experience.Then I applied a trick to overcome the problem. Which pretty much solves my problem and doesn’t shoot up the loading time.

The algorithm goes something like this:

1) Write the image src on the page.
2) Just after the image tag is written on the page with its source, change the image src to nothing.
3) While src is changed, store the original src in some collection for using it for slideshow purpose.

And it works pretty well in both IE and FF.

The code goes like this:

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
    <head>
        <title> new document </title>
        <script type="text/javascript">
            function addToSS()
            {
                var obj = document.images[document.images.length-1];
                obj.style.display = 'none';
                var temp = obj.src;
                obj.src="";
                slideShow.imgArr[slideShow.imgArr.length]=temp;
            }
        </script>
    </head>
    <body>
        <img src="img/simpson1.jpg" class="hide"/>
        <script>addToSS();</script>
        <img src="img/simpson2.jpg" class="hide"/>
        <script>addToSS();</script>
        <img src="img/simpson3.jpg" class="hide"/>
        <script>addToSS();</script>
        <img src="img/simpson4.jpg" class="hide"/>
        <script>addToSS();</script>
        <img src="img/simpson5.jpg" class="hide"/>
        <script>addToSS();</script>
        <img src="img/simpson6.jpg" class="hide"/>
        <script>addToSS();</script>
        <img src="img/simpson7.jpg" class="hide"/>
        <script>addToSS();</script>
        <img src="img/simpson8.jpg" class="hide"/>
        <script>addToSS();</script>
        <img src="img/simpson9.jpg" class="hide"/>
        <script>addToSS();</script>
        <img src="img/simpson10.jpg" class="hide"/>
        <script>addToSS();</script>
    </body>
</html>

So whenever next you consider making an image slideshow, please visit this article for reference in case you just forget this trick. Bookmark it please.

New Vocal Chords entry

June 7th, 2008   Filed Under kishore kumar, songs  

Yesterday, I added a new entry to my vocal chords section. Just check out my new song “Kuchh to log kahenge” from the movie “Amar Prem”. It is sung by Kishore Kumar. I have deflected from his style and just used the concept of R. D. Burman who is the music director of this great song. Please comment about how you liked it.