<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>The Talking Drum</title>
	<atom:link href="http://odondo.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://odondo.wordpress.com</link>
	<description>Where the drum does the talking</description>
	<lastBuildDate>Sun, 12 Jun 2011 19:56:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='odondo.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>The Talking Drum</title>
		<link>http://odondo.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://odondo.wordpress.com/osd.xml" title="The Talking Drum" />
	<atom:link rel='hub' href='http://odondo.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Hello Java!!</title>
		<link>http://odondo.wordpress.com/2011/06/13/hello-java/</link>
		<comments>http://odondo.wordpress.com/2011/06/13/hello-java/#comments</comments>
		<pubDate>Sun, 12 Jun 2011 19:13:03 +0000</pubDate>
		<dc:creator>hemchand</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://odondo.wordpress.com/?p=99</guid>
		<description><![CDATA[Yes. I am going to work on Java. The one and only programming language I hated. I had written a few lines of code and led a project in Java. But I could never even look at java code for long. But this time I don&#8217;t feel the same way. I have an open mind [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odondo.wordpress.com&amp;blog=1251873&amp;post=99&amp;subd=odondo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yes. I am going to work on Java. The one and only programming language I hated. I had written a few lines of code and led a project in Java. But I could never even look at java code for long.</p>
<p>But this time I don&#8217;t feel the same way. I have an open mind towards Java for the first time (since I ever heard the word) and I am gonna say &#8220;Hello Java!&#8221; with a smile. I know my life won&#8217;t be cushy without the pampering of the good old Visual Studio and all the good things in C#. But I will live.</p>
<p>Hello Java! Hello Eclipse!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odondo.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odondo.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odondo.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odondo.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/odondo.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/odondo.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/odondo.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/odondo.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odondo.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odondo.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odondo.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odondo.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odondo.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odondo.wordpress.com/99/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odondo.wordpress.com&amp;blog=1251873&amp;post=99&amp;subd=odondo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://odondo.wordpress.com/2011/06/13/hello-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/356ac03fcc9ef55237b30eb061d0315f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chad</media:title>
		</media:content>
	</item>
		<item>
		<title>Signing assemblies with a .pfx file</title>
		<link>http://odondo.wordpress.com/2010/05/23/signing-assemblies-with-a-pfx-file/</link>
		<comments>http://odondo.wordpress.com/2010/05/23/signing-assemblies-with-a-pfx-file/#comments</comments>
		<pubDate>Sun, 23 May 2010 14:20:00 +0000</pubDate>
		<dc:creator>hemchand</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://odondo.wordpress.com/?p=77</guid>
		<description><![CDATA[When you use a .pfx file for signing your assemblies in Visual Studio and if you have enabled UAC in Vista or Windows 7, you are bound to have trouble building or debugging your applications. This can be by-passed by using the delay signing option.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odondo.wordpress.com&amp;blog=1251873&amp;post=77&amp;subd=odondo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>From Version 2 of SN tool, there is support for creating strong name key files protected with a private key (that is a .pfx file). Though this is a great improvement over the old .snk file, it is a pain during the development. While opening or debugging the signed projects a dialog box opens that reads <em>&#8220;Import Key File&#8221;, &#8220;This project includes a password-encrypted key used for signing. Enter the password for the key file to import the key file into the local crypto-store database for use.&#8221;</em> Even if you enter the correct password, the error persists and says <em>&#8220;Error importing key&#8221;, &#8220;Object already exists&#8221;</em>. On building you get the following message <em>error MSB3321: Importing key file &#8220;&lt;keyname&gt;.pfx&#8221; was canceled</em>.</p>
<p>I faced this issue in VS 2008 on my Windows 7 machine and had to get rid of this error somehow. Accidentally I came to know that if UAC is turned off, the error vanishes. On researching (googling <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ) I could find that this is a permission (UAC) related open bug in Visual Studio from VS 2005 through VS 2010 (not verified) and the one and only solution for the time being seems to be <strong>Delay Signing</strong>. By delay signing your assembly you can get rid of the nag window in Visual Studio and by signing the assembly with your key file before distribution you could achieve the security you want. This though comes with a catch. If you set the project for delay signing, you cannot debug your application as the verification of the strong name fails. To override this verification, you have to add your key file to the list of keys skipped for verification in your machine.</p>
<p>I could not find the steps for delay signing and verification skipping online easily. So I am just recompiling the steps for future reference <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<ol>
<li>Open a Visual Studio command prompt.</li>
<li>Run the command <em>sn -p &lt;original-key&gt;.pfx &lt;public-key-file&gt;.pk </em>(Export the public key from your .pfx file using the SN tool.)</li>
<li>In the Project Properties Page, Select Signing Tab, Set the key file in Visual Studio to <em>&lt;public-key-file&gt;.pk </em>and check the <em>Delay Sign only</em> option<em>.</em></li>
<li>To skip the strong name verification, you have two options. Configure the skipping of a particular assembly.<em> sn &#8211; Vr &lt;assembly name&gt;</em>
<ol>
<li>Or Enable skipping for all the assemblies signed with the same key. Personally I preferred this method as there were 4 or 5 assemblies signed with the same .pfx file. To achieve this,
<ol>
<li>First Run <em><strong>sn -T &lt;assembly-name&gt;</strong></em>. This gives us the public key token for the assembly.For example the output will be something like <em>Public key token is bd91f093f07f35ac</em>.</li>
<li><em>Now Run <strong>sn -Vr *,&lt;public-key-token&gt;</strong>. <span style="font-style:normal;">For example <em>sn -Vr *,bd91f093f07f35ac</em> in my case.</span></em></li>
</ol>
</li>
</ol>
</li>
<li>When you finally want to ship your assembly Run ﻿<em>sn -Rc &lt;assembly-name&gt; &lt;original-key&gt;.pfx</em></li>
</ol>
<p>For this to work on 64bit, you need to do these extra steps:</p>
<ol>
<li>Open a command prompt as Administrator</li>
<li>Go to C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\x64\</li>
<li>Run the same.. <em><strong>sn -Vr *,&lt;public-key-token&gt;</strong></em></li>
</ol>
<p>This is to add theverification skip to the 64 bit registry as well.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odondo.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odondo.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odondo.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odondo.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/odondo.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/odondo.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/odondo.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/odondo.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odondo.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odondo.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odondo.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odondo.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odondo.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odondo.wordpress.com/77/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odondo.wordpress.com&amp;blog=1251873&amp;post=77&amp;subd=odondo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://odondo.wordpress.com/2010/05/23/signing-assemblies-with-a-pfx-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/356ac03fcc9ef55237b30eb061d0315f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chad</media:title>
		</media:content>
	</item>
		<item>
		<title>Jobhunt.in &#8211; Easiest Jobsite</title>
		<link>http://odondo.wordpress.com/2008/10/09/jobhuntin-easiest-jobsite/</link>
		<comments>http://odondo.wordpress.com/2008/10/09/jobhuntin-easiest-jobsite/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 04:15:17 +0000</pubDate>
		<dc:creator>hemchand</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Recruitment]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://odondo.wordpress.com/?p=58</guid>
		<description><![CDATA[&#8220;redefine: EASY&#8221; This is what my friend and I had in mind when we decided to create a job site. To make the &#8220;Easiest Job site&#8221;. A job site which I and most probably you will use without scowling. With a lot of reusable stuff from Skillda and 2 months of planning and development we [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odondo.wordpress.com&amp;blog=1251873&amp;post=58&amp;subd=odondo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3><span style="color:#333399;">&#8220;</span><span style="color:#333399;">redefine: EASY&#8221;</span></h3>
<p>This is what my friend and I had in mind when we decided to create a job site.</p>
<p>To make the &#8220;Easiest Job site&#8221;. A job site which I and most probably you will use without scowling.</p>
<p>With a lot of reusable stuff from <a title="Skillda" href="http://www.skillda.com">Skillda</a> and 2 months of planning and development we have come out with the beta version of our job site &#8211; <strong><a title="Jobhun.in - the easiest job site" href="http://www.jobhunt.in">www.jobhunt.in</a></strong>. What makes it the easiest is that you don&#8217;t have much to do either as a job seeker or a recruiter.</p>
<p>As a job seeker, Just upload your resume on the front page or just email it to <a title="Post your resume" href="mailto:post@jobhunt.in">post@jobhunt.in</a>. Thats it! No more registration or filling up pages of boxes. Our automatic analyzing system picks up the data and tags your resume.</p>
<p>Recruiters too don&#8217;t have to pay and register or search for hours to dig up the resumes they want. Type in your filter tags and subscribe. You start getting daily mail from the site with matching resumes.</p>
<p>Isn&#8217;t this EASY?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odondo.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odondo.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odondo.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odondo.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/odondo.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/odondo.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/odondo.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/odondo.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odondo.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odondo.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odondo.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odondo.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odondo.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odondo.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odondo.wordpress.com&amp;blog=1251873&amp;post=58&amp;subd=odondo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://odondo.wordpress.com/2008/10/09/jobhuntin-easiest-jobsite/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/356ac03fcc9ef55237b30eb061d0315f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chad</media:title>
		</media:content>
	</item>
		<item>
		<title>A bad workman blames his tools. What if bad tool starts blaming?</title>
		<link>http://odondo.wordpress.com/2008/07/18/a-bad-workman-blames-his-tools/</link>
		<comments>http://odondo.wordpress.com/2008/07/18/a-bad-workman-blames-his-tools/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 21:40:31 +0000</pubDate>
		<dc:creator>hemchand</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Process]]></category>
		<category><![CDATA[Project Management]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://odondo.wordpress.com/?p=31</guid>
		<description><![CDATA[I have spent my last 4 and a half months learning how you should never execute a (software) project. Though a big disappointment and failure, the previous project had changed my view on a lot of stuff especially processes and documentation. I had always considered micro-level documentation as an avoidable overhead and never believed in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odondo.wordpress.com&amp;blog=1251873&amp;post=31&amp;subd=odondo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have spent my last 4 and a half months learning how you should never execute a (software) project. <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Though a big disappointment and failure, the previous project had changed my view on a lot of stuff especially processes and documentation. I had always considered micro-level documentation as an avoidable overhead and never believed in process. If you think like me, may be your opinion will change if you know my story.</p>
<p>A project without any proper documentation (scope, requirements, design, project plan&#8230;. the list goes on). A very aggressive deadline. Here is where I landed into the project at the end of 2 months. Was anyone scared if the client will go bad? Nobody was. Fast forward &gt;&gt; Client denies the scope. Squeezes in double the original requirements into the scope. You know what happened in the end? He made us work for 6 months and coolly paid for just the original 3 months.</p>
<p>We were screwed big time just for the lack of process and documentation. You know.. I learned it.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/odondo.wordpress.com/31/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/odondo.wordpress.com/31/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odondo.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odondo.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odondo.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odondo.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/odondo.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/odondo.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/odondo.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/odondo.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odondo.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odondo.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odondo.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odondo.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odondo.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odondo.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odondo.wordpress.com&amp;blog=1251873&amp;post=31&amp;subd=odondo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://odondo.wordpress.com/2008/07/18/a-bad-workman-blames-his-tools/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/356ac03fcc9ef55237b30eb061d0315f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chad</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting the value for a select list</title>
		<link>http://odondo.wordpress.com/2008/02/22/setting-the-value-for-a-select-list/</link>
		<comments>http://odondo.wordpress.com/2008/02/22/setting-the-value-for-a-select-list/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 07:20:41 +0000</pubDate>
		<dc:creator>hemchand</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://odondo.wordpress.com/?p=29</guid>
		<description><![CDATA[We come across a lot of instances where we need to set the values of form elements programmatically using client side script. To set the value of a select list (in case of multiple select or single select), the best way to do it is to loop through the options, checking if the value matches [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odondo.wordpress.com&amp;blog=1251873&amp;post=29&amp;subd=odondo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We come across a lot of instances where we need to set the values of form elements programmatically using client side script. To set the value of a select list (in case of multiple select or single select), the best way to do it is to loop through the options, checking if the value matches and then setting [option].selected = true.</p>
<p>For example:<br />
//here for simplicity i am considering a single select case<br />
<code><br />
function setSelectValue(selectList, val) {<br />
for (option in selectList.options) {<br />
if (option.value == val) {<br />
option.selected = true;<br />
break;<br />
}<br />
}<br />
}<br />
</code><br />
This piece of code will work for almost all web browsers. But not so surprisingly there is a difference in the way IE and other browsers handle the select list. In Firefox a listitem given without a specific <strong>value </strong>attribute considers the given text as the value. Though IE also gives the same result on post back, while programmatically checking the value of an option it says its undefined. So you cannot use the setSelectValue function for  <em>&lt;li&gt;Hello&lt;/li&gt;</em> in IE. To make it work for IE you have to explicitly give <em>&lt;li value=&#8221;Hello&#8221;&gt;Hello&lt;/li&gt;.</em></p>
<p>Not a big deal but it cost me half a day <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/odondo.wordpress.com/29/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/odondo.wordpress.com/29/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odondo.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odondo.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odondo.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odondo.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/odondo.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/odondo.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/odondo.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/odondo.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odondo.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odondo.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odondo.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odondo.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odondo.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odondo.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odondo.wordpress.com&amp;blog=1251873&amp;post=29&amp;subd=odondo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://odondo.wordpress.com/2008/02/22/setting-the-value-for-a-select-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/356ac03fcc9ef55237b30eb061d0315f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chad</media:title>
		</media:content>
	</item>
		<item>
		<title>The left-right dancing girl &#8211; optical illusion cracked</title>
		<link>http://odondo.wordpress.com/2008/01/24/the-left-right-dancing-girl-optical-illusion-cracked/</link>
		<comments>http://odondo.wordpress.com/2008/01/24/the-left-right-dancing-girl-optical-illusion-cracked/#comments</comments>
		<pubDate>Thu, 24 Jan 2008 18:52:38 +0000</pubDate>
		<dc:creator>hemchand</dc:creator>
				<category><![CDATA[Blogroll]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[clockwise - anticlockwise]]></category>
		<category><![CDATA[dancing girl]]></category>
		<category><![CDATA[left - right brain]]></category>
		<category><![CDATA[Optical illusion]]></category>

		<guid isPermaLink="false">http://odondo.wordpress.com/2008/01/24/the-left-right-dancing-girl-optical-illusion-cracked/</guid>
		<description><![CDATA[The myth of the left &#8211; right brain test and the rotating girl is an interesting read and is a good food for thought. The original post says that if you see her spinning clockwise you are imaginative, &#8230;.. or if you see her anti-clockwise you are logical, &#8230; and if you can see her [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odondo.wordpress.com&amp;blog=1251873&amp;post=27&amp;subd=odondo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The myth of the <a href="http://www.news.com.au/perthnow/story/0,21598,22492511-5005375,00.html" title="Left vs Right Brain Test -  the dancing girl" target="_blank">left &#8211; right brain test and the rotating girl</a> is an interesting read and is a good food for thought. The original post says that if you see her spinning clockwise you are imaginative, &#8230;.. or if you see her anti-clockwise you are logical, &#8230; and if you can see her spin both ways, you are a genius <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I got this forward from <a href="http://incubbator.blogspot.com" title="Thomas - my friend" target="_blank">a friend</a> and we figured it out and then googled to see what others were saying. Believe me you can find framewise analysis, physiological theories, to plain wonder.</p>
<p><b>Wanna know how to see the girl spin both ways?</b> Just look at it from 2 different angles. Either tilt the monitor or move your head sideways. It is just a trick of optical angle.</p>
<p>My friend and I were looking at it and both of us always seem to see the exact opposite and then suddenly it occured to us to just turn the monitor towards the other guy, We discovered at that instant our perception of how the girl moved changed. It seems to be a trick with the angles.</p>
<p>But It still could have something to do with which half of the brain gets to process it first. Or it could be due to the differential delay in the propagation of the optical impulse to wherever it gets processed. <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Dont know what they call it. Hey we are just amateurs. <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>P.S. Incase you dont find the original post, you can check it out on my <a href="http://picasaweb.google.com/hemchand.t/IQTests/photo#5159125036054479874" title="My picasa photos">picasa album</a>.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/odondo.wordpress.com/27/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/odondo.wordpress.com/27/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odondo.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odondo.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odondo.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odondo.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/odondo.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/odondo.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/odondo.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/odondo.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odondo.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odondo.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odondo.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odondo.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odondo.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odondo.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odondo.wordpress.com&amp;blog=1251873&amp;post=27&amp;subd=odondo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://odondo.wordpress.com/2008/01/24/the-left-right-dancing-girl-optical-illusion-cracked/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/356ac03fcc9ef55237b30eb061d0315f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chad</media:title>
		</media:content>
	</item>
		<item>
		<title>Follow your Heart or your Head?</title>
		<link>http://odondo.wordpress.com/2008/01/12/follow-your-heart-or-your-head/</link>
		<comments>http://odondo.wordpress.com/2008/01/12/follow-your-heart-or-your-head/#comments</comments>
		<pubDate>Sat, 12 Jan 2008 04:10:30 +0000</pubDate>
		<dc:creator>hemchand</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Social]]></category>

		<guid isPermaLink="false">http://odondo.wordpress.com/2008/01/12/follow-your-heart-or-your-head/</guid>
		<description><![CDATA[I don&#8217;t know how others think. But for me decision making was always simple and fast. &#8220;Just follow the heart&#8220;. I never cared to think if it was right or wrong. And I forbid myself from regretting my past decision or choices. This thumb rule made me take decisions which at times others thought crazy [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odondo.wordpress.com&amp;blog=1251873&amp;post=22&amp;subd=odondo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t know how others think. But for me decision making was always simple and fast. <i>&#8220;Just follow the heart</i>&#8220;. I never cared to think if it was right or wrong. And I forbid myself from regretting my past decision or choices. This thumb rule made me take decisions which at times others thought crazy and outrageous, but always kept me happy.</p>
<p>I have done things like, Starting a company while in college with practically no idea what I was doing, <i>completely neglecting studies (not part of the main plan but just was not there among priorities)</i>, Not trying to get a job like &#8220;others&#8221;, Spending a couple of years after college penniless on the craziest of ideas, Quitting a regular and somewhat satisfying job just to get back to the dream project and millionaire dreams. So as you see life had always been like a roller-coaster ride and I enjoyed it. To be frank this was never easy. But I was following my dreams and passion. And that was my fuel, my cushion on the bumpy ride.</p>
<p>As my responsibilities got bigger, I started getting scared of the risks and decided to have a balance of both, to &#8220;Follow the Heart and the Head&#8221;. But 3 months from the decision, I hate to say it, I regret <i>Following the Head</i>. My work was my passion and now it has become just my ration.</p>
<p>So&#8230; &#8220;<a href="http://en.wikipedia.org/wiki/Here_I_Go_Again" target="_blank"><i>Here I go again on my own<br />
goin&#8217; down the only road I&#8217;ve ever known.<br />
Like a drifter I was born to walk alone.<br />
An&#8217; I&#8217;ve made up my mind, I ain&#8217;t wasting no more time&#8230;.</i></a>&#8220;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/odondo.wordpress.com/22/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/odondo.wordpress.com/22/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odondo.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odondo.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odondo.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odondo.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/odondo.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/odondo.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/odondo.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/odondo.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odondo.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odondo.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odondo.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odondo.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odondo.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odondo.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odondo.wordpress.com&amp;blog=1251873&amp;post=22&amp;subd=odondo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://odondo.wordpress.com/2008/01/12/follow-your-heart-or-your-head/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/356ac03fcc9ef55237b30eb061d0315f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chad</media:title>
		</media:content>
	</item>
		<item>
		<title>Stealing Passwords had never been easier</title>
		<link>http://odondo.wordpress.com/2007/09/19/stealing-passwords-had-never-been-easier/</link>
		<comments>http://odondo.wordpress.com/2007/09/19/stealing-passwords-had-never-been-easier/#comments</comments>
		<pubDate>Wed, 19 Sep 2007 04:29:44 +0000</pubDate>
		<dc:creator>hemchand</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Social]]></category>

		<guid isPermaLink="false">http://odondo.wordpress.com/2007/09/19/stealing-passwords-had-never-been-easier/</guid>
		<description><![CDATA[I have already written once on how web security has taken a back seat thanks to the ever growing popularity of social networking websites. Recently I saw a trend in Orkut where people are setting their homepage to some http://meu.powerscrap.com/&#8230;. I tried one of those links and saw a replica of the person&#8217;s orkut profile [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odondo.wordpress.com&amp;blog=1251873&amp;post=20&amp;subd=odondo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have already written once on how <a href="http://odondo.wordpress.com/2007/07/12/social-networking-and-web-security/" title="Social Networking and Web Security">web security has taken a back seat</a> thanks to the ever growing  popularity of social networking websites. Recently I saw a trend in <a href="http://www.orkut.com" title="Orkut - Social Networking website" target="_blank">Orkut</a> where people are setting their homepage to some  <em>http://meu.powerscrap.com/&#8230;. </em>I tried one of those links and saw a replica of the person&#8217;s orkut profile over there. I even saw my pic in the friends&#8217; list. But if I try to click on any of the links, a pop-up window comes and asks for my Orkut username and password to continue. To my surprise, all the images were directly from orkut.com and the exact ones used in Orkut.</p>
<p>I did a little bit of googling looking for any connection between orkut and powerscrap. But it seemed like people are using the latter as an alternative to Orkut in places where it is blocked and were all praise for powerscrap. I believe this must be a trusted site. But someone can use this technique just to snatch you off your username and password too. The sad part is that people are so desperate to network and don&#8217;t think twice when asked for username or password.</p>
<p>I think this now leads to the simplest form of <a href="http://en.wikipedia.org/wiki/Social_engineering_(computer_security)" target="_blank">social engineering</a>. If you have a website and some web programming knowledge you can just walk away with thousands (at least hundreds) of usernames and passwords. You dont need content or users or even a database <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . You can thrive on a popular website&#8217;s user-base and just enjoy the free passwords. As my title goes password hacking had never been easier.</p>
<ol>
<li>Go buy a domain. Even a free sub-domain will do <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</li>
<li>Write code to pull data from Orkut or a similar website.</li>
<li>Send messages to a few giving your url and telling them the ADVANTAGE of using your website.</li>
</ol>
<p>You are done. In a few days you might be honored for stealing passwords!!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/odondo.wordpress.com/20/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/odondo.wordpress.com/20/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odondo.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odondo.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odondo.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odondo.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/odondo.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/odondo.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/odondo.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/odondo.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odondo.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odondo.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odondo.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odondo.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odondo.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odondo.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odondo.wordpress.com&amp;blog=1251873&amp;post=20&amp;subd=odondo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://odondo.wordpress.com/2007/09/19/stealing-passwords-had-never-been-easier/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/356ac03fcc9ef55237b30eb061d0315f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chad</media:title>
		</media:content>
	</item>
		<item>
		<title>CSS Style position:fixed and Internet Explorer</title>
		<link>http://odondo.wordpress.com/2007/09/13/css-style-positionfixed-and-internet-explorer/</link>
		<comments>http://odondo.wordpress.com/2007/09/13/css-style-positionfixed-and-internet-explorer/#comments</comments>
		<pubDate>Thu, 13 Sep 2007 08:30:31 +0000</pubDate>
		<dc:creator>hemchand</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://odondo.wordpress.com/2007/09/13/css-style-positionfixed-and-internet-explorer/</guid>
		<description><![CDATA[The CSS styling attribute position:fixed makes an HTML element stationary (does not move on scrolling) and absolutely positioned. If you are familiar with position:absolute, the fixed styling is quite similar except for that it remains in position even on page scroll. Most of the modern browsers (IE7, Firefox, Opera etc.) support the fixed styling. But [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odondo.wordpress.com&amp;blog=1251873&amp;post=18&amp;subd=odondo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The CSS styling attribute position:fixed makes an HTML element stationary (does not move on scrolling)  and absolutely positioned. If you are familiar with position:absolute, the <em>fixed</em> styling is quite similar except for that it remains in position even on page scroll.</p>
<p>Most of the modern browsers (IE7, Firefox, Opera etc.) support the <em>fixed </em>styling. But older versions of Internet Explorer (prior to IE 7) does not. The problem with older IE is that it completely ignores the fixed attribute and the default styling (position:relative)  is applied. This can completely disrupt your page design.</p>
<p>Accepting the fact that IE6 still remains the most widely used web browser, we cannot ignore this issue. One way to solve this is by changing the value of position attribute to <em>absolute  </em>(which is the closest to <em>fixed</em>) in case of IE older than version 7. To give the actual effect of <em>fixed </em>we also need to handle the scroll event or else this element will also move along with the rest of the page. In the scroll event you have to reload (hide and show) the element and you get the most closest <em>fixed </em>style  implementation in IE.</p>
<p>You may download the complete working <a href="http://odondo.files.wordpress.com/2007/09/ie-position-fixed-simulation.doc" title="Source code for the IE fixed styling implementation" target="_blank">page source</a>.</p>
<pre>
&lt;script type="text/javascript"&gt;
/* &lt;![CDATA[ */
   var isOldIE = false;
   function onPageLoad()	{
      if (navigator.appName.indexOf('Microsoft Internet Explorer') &gt; -1)  {
         ver = navigator.appVersion.substr(navigator.appVersion.indexOf('MSIE ')+5,3);
         if (ver &lt; 7) {
            document.getElementById('fixedDiv').style.position = 'absolute';
            window.onscroll = reloadFixedDiv;
         }
      }
   }

   function reloadFixedDiv()	{
      var d= document.getElementById('fixedDiv');
      d.style.display = 'none';
      d.style.display = 'block';
   }
/* ]]&gt; */
&lt;/script&gt;
&lt;style type="text/css"&gt;
&lt;!--
#fixedDiv	{
	position:fixed;
	right:0px;bottom:0px;
	height:72px;
	width:256px;
	background-color:#ABCDEF;
}
--&gt;
&lt;/style&gt;</pre>
<p>and also</p>
<pre> &lt;body onload="javascript:onPageLoad();"&gt;</pre>
<p>Note: There will be a slight flickering on the element.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/odondo.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/odondo.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odondo.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odondo.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odondo.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odondo.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/odondo.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/odondo.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/odondo.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/odondo.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odondo.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odondo.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odondo.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odondo.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odondo.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odondo.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odondo.wordpress.com&amp;blog=1251873&amp;post=18&amp;subd=odondo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://odondo.wordpress.com/2007/09/13/css-style-positionfixed-and-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/356ac03fcc9ef55237b30eb061d0315f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chad</media:title>
		</media:content>
	</item>
		<item>
		<title>Javascript and Cross-browser Window focus</title>
		<link>http://odondo.wordpress.com/2007/08/28/javascript-and-cross-browser-window-focus/</link>
		<comments>http://odondo.wordpress.com/2007/08/28/javascript-and-cross-browser-window-focus/#comments</comments>
		<pubDate>Tue, 28 Aug 2007 08:57:22 +0000</pubDate>
		<dc:creator>hemchand</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://odondo.wordpress.com/2007/08/28/javascript-and-cross-browser-window-focus/</guid>
		<description><![CDATA[It is a common requirement in today&#8217;s highly interactive web applications to keep track if the browser window is currently in focus. Let me tell you one thing. If you take a look at the browser events and the very limited documentation, you might be tempted to believe that you are in safe hands. But [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odondo.wordpress.com&amp;blog=1251873&amp;post=16&amp;subd=odondo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It is a common requirement in today&#8217;s highly interactive web applications to keep track if the browser window is currently in focus. Let me tell you one thing. If you take a look at the browser events and the very limited documentation, you might be tempted to believe that you are in safe hands. But thats not the case.</p>
<p>Catching the <em>onbur </em>and <em>onfocus </em>events is the most recommended way to know when a window gains or loses focus. But this does not work in all cases. The <em>onfocus </em>event is triggered correctly in almost all browsers. But <em>onblur </em>on the other hand is highly unpredictable.  In Internet Explorer, every onfocus event is immediately followed by an onblur event even though the window is still in focus. On Firefox, the onblur will not be trigerred if the active element of the window is of input type.</p>
<p>Solution: IE has its custom events which works fine for it namely focusin and fosucout. For firefox, we need to check whether the active element has changed.</p>
<pre>var isIE = (navigator.appName == "Microsoft Internet Explorer");
var hasFocus = true;
var active_element;

function setFocusEvents()	{
	active_element = document.activeElement;
	if (isIE)	{
		document.onfocusout = function() {	onWindowBlur();	      }
		document.onfocusin = function()	 {	onWindowFocus();     }
	}	else	{
		window.onblur = function()	  {	onWindowBlur();	         }
		window.onfocus = function()	 {	onWindowFocus();       }
	}
}

function onWindowFocus()	{
	hasFocus = true;
}

function onWindowBlur()	{
	if (active_element != document.activeElement) {
		active_element = document.activeElement;
		return;
	}
	hasFocus = false;
}</pre>
<p>NB: I have tested mostly on IE 6+ and Firefox. So you might find my method incomplete for other browsers.</p>
<p><strong>Update:</strong> This post has been updated (corrected) as per Lucent&#8217;s comment.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/odondo.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/odondo.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odondo.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odondo.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odondo.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odondo.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/odondo.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/odondo.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/odondo.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/odondo.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odondo.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odondo.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odondo.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odondo.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odondo.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odondo.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odondo.wordpress.com&amp;blog=1251873&amp;post=16&amp;subd=odondo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://odondo.wordpress.com/2007/08/28/javascript-and-cross-browser-window-focus/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/356ac03fcc9ef55237b30eb061d0315f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chad</media:title>
		</media:content>
	</item>
	</channel>
</rss>
