<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1646064517775310786</id><updated>2011-04-21T11:18:27.662-07:00</updated><category term='Personal'/><category term='Coding'/><category term='Leaders'/><category term='Cartoon'/><category term='Fortune'/><category term='Investment'/><category term='Consumer'/><category term='Review'/><category term='Photos'/><category term='Elvis'/><category term='Hall 1'/><category term='Mash'/><category term='Mort'/><category term='Search'/><category term='Java'/><category term='SocialNetworking'/><category term='Exception Handling'/><category term='Psychology'/><category term='Experiment'/><category term='Algorithm'/><category term='Development'/><category term='Local Search'/><category term='Einstein'/><category term='Design Pattern'/><category term='Atomic'/><category term='Marketing'/><category term='Book'/><category term='Multithreading'/><category term='Yahoo'/><category term='News'/><category term='Freakonomics'/><category term='IITK'/><title type='text'>Rolling Stones</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://singh-sandeep.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://singh-sandeep.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Sandeep</name><uri>http://www.blogger.com/profile/15200346525886007582</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>22</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1646064517775310786.post-3340266228131243445</id><published>2008-01-17T23:00:00.000-08:00</published><updated>2008-01-17T23:28:22.768-08:00</updated><title type='text'>Yahoo Supports OpenId</title><content type='html'>&lt;span style="font-family:verdana;"&gt;Yahoo! has announced its support for &lt;a href="http://en.wikipedia.org/wiki/OpenID"&gt;OpenId&lt;/a&gt;. &lt;/span&gt;&lt;span style="font-family:verdana;"&gt;This is a move inline with the focus of Yahoo! on moving from portal to platform.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;For those who are not aware what OpenId is, it is an open technology standard for logging into website to access its content. It eliminates the use of multiple username and password across different websites.&lt;br /&gt;&lt;br /&gt;So now you can login not only to Yahoo! properties but to a lot more websites(&lt;a href="https://www.myopenid.com/directory"&gt;Open Id supported&lt;/a&gt;) using your Yahoo! login.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646064517775310786-3340266228131243445?l=singh-sandeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://singh-sandeep.blogspot.com/feeds/3340266228131243445/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1646064517775310786&amp;postID=3340266228131243445' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/3340266228131243445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/3340266228131243445'/><link rel='alternate' type='text/html' href='http://singh-sandeep.blogspot.com/2008/01/yahoo-supports-openid.html' title='Yahoo Supports OpenId'/><author><name>Sandeep</name><uri>http://www.blogger.com/profile/15200346525886007582</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646064517775310786.post-7320609821961818109</id><published>2008-01-15T07:27:00.000-08:00</published><updated>2008-01-15T08:43:52.973-08:00</updated><title type='text'>Fight or Flight</title><content type='html'>&lt;span style="font-family:verdana;"&gt;I was wondering what could be the worst kind of feeling in an individual's life. There is no worse feeling than losing something which has high stakes for you and people have high expectations on you. It could be personal or professional. Like getting into the most premiere institute and then graduating with a track record which even you are ashamed of. It actually hurts.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;It hurts so much because you know how much pain you are going through and there is nothing you can do about it. It hurts because you know how deflated you are and will be. It hurts because you know everyone around you that you care about will bother you with assinine questions and commentary and there is nothing you can or should do about it. The inside of you wants to lash out and try to beat some common sense into them, but you know there is no point.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;You know that you are going to have to go through the drill of being calm so that everyone else is calm. Shutting out everything blasting at you when you leave your house or office, recognizing that its just noise that doesn't change all the work everyone around you has put in to get this far. It doesn't change all that they have accomplished.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;You know that the difference between winning and losing at this level is a very, very fine line. You will think of every moment that could have changed the outcome over the past.&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;All the what ifs.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Then there comes a point where a smile comes on your face. You think of all the joy and fun you had while trying for that thing. The moments you would never ever trade. The knowledge that has reached a level where the stakes are much higher. You take pride and satisfaction in where you are, knowing that its a foundation.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Then the competitive juices kick back in and you go to work. Looking for that edge. Wishing that the next most competitive and valuable thing is now.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646064517775310786-7320609821961818109?l=singh-sandeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://singh-sandeep.blogspot.com/feeds/7320609821961818109/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1646064517775310786&amp;postID=7320609821961818109' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/7320609821961818109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/7320609821961818109'/><link rel='alternate' type='text/html' href='http://singh-sandeep.blogspot.com/2008/01/fight-or-flight.html' title='Fight or Flight'/><author><name>Sandeep</name><uri>http://www.blogger.com/profile/15200346525886007582</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646064517775310786.post-285333114717597379</id><published>2007-12-31T08:21:00.000-08:00</published><updated>2008-01-01T07:05:02.900-08:00</updated><title type='text'>Joy of Next</title><content type='html'>&lt;span style="font-family:verdana;"&gt;One prominent thing which separates humans from machines is the ability to experience and predict things. To see is to experience the world as it is, to remember is to experience the world as it was but to imagine is to experience the world as it has never been but it might be. To imagine things which do not exist in the realm of reality is a quality of human brain which is phenomenal and it is this ability which drives us to think about the future. Most of our time is spent anticipating and making future.&lt;br /&gt;&lt;br /&gt;This is what separates humans from animals and is responsible for bringing us out of the jungles into houses, journey to space and most of the things which we see around us.The imagination of something which does not exist and might never exist.&lt;br /&gt;&lt;br /&gt;Nexting or predicting the immediate future is something which brain does continuosly.When trying to walk on a crowded street we try to estimate the speed of others and walk accordingly.These predictions about our local immediate and personal future happen unconsiously, are ubiquitous and take&lt;br /&gt;place at an unimaginable speed.&lt;br /&gt;&lt;br /&gt;Now since we are endowed with such power it makes us believe we can always predict and control our fate. We do things in present which we predict will bring joy in next.When I am studying i am predicting i will be better paid off in the future which will make my life more secure in future. Even if we take example of very small things like going out for dinner i am predicting i will enjoy after having dinner at some XYZ place, when i reach there i will order things which i predict i will like and this goes on and on.&lt;br /&gt;&lt;br /&gt;In a way we are always trying to find our &lt;a href="http://en.wikipedia.org/wiki/Shangri-La"&gt;Shangri-La&lt;/a&gt; and doing things which we think will bring joy in the next. And if I were asked what i did last year I would say preparing for joy of next and what I would be doing this year I would again say preparing for joy of next.&lt;br /&gt;&lt;br /&gt;Welcome 2008!&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646064517775310786-285333114717597379?l=singh-sandeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://singh-sandeep.blogspot.com/feeds/285333114717597379/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1646064517775310786&amp;postID=285333114717597379' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/285333114717597379'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/285333114717597379'/><link rel='alternate' type='text/html' href='http://singh-sandeep.blogspot.com/2007/12/joy-of-next.html' title='Joy of Next'/><author><name>Sandeep</name><uri>http://www.blogger.com/profile/15200346525886007582</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646064517775310786.post-6616991562913375601</id><published>2007-10-08T06:48:00.000-07:00</published><updated>2007-10-08T08:02:09.343-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Book'/><title type='text'>Everything is Miscellaneous</title><content type='html'>&lt;p&gt;&lt;a href="http://www.amazon.com/Everything-Miscellaneous-Power-Digital-Disorder/dp/0805080430/ref=pd_bbs_sr_1/104-4501383-1811952?ie=UTF8&amp;amp;s=books&amp;amp;qid=1191853508&amp;amp;sr=8-1"&gt;Everything is &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_0"&gt;Miscellaneous&lt;/span&gt;&lt;/a&gt; is a book by David &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;Weinberger&lt;/span&gt; who is also author of &lt;a href="http://www.amazon.com/Cluetrain-Manifesto-End-Business-Usual/dp/0738204315/ref=pd_sim_b_4/104-4501383-1811952"&gt;The &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;Cluetrain&lt;/span&gt; Manifesto&lt;/a&gt;. The reviews seems promising, in short the book talks about how we classify things. It addresses some of the current trends on the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;internet&lt;/span&gt;. &lt;/p&gt;&lt;p&gt;According to &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;Weinberger&lt;/span&gt; when we organise data in terms of physical placement , we tend to think in Aristotelian terms where objects are members of a categories, and share the same traits as other members of that category. We can organize these categories into trees: a robin is a bird, which is an animal. We can expect the leaves of trees to share the attributes of their branches, and we expect each leaf to fit onto only one, specific branch. But that's not how knowledge works in a digital age. When I bookmark, it's to my benefit to add many tags to it, both because it makes it easier for me to find it again, and because it helps other people find it as well. &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;Weinberger&lt;/span&gt; advises us to "put each leaf on as many branches as possible", building a tree that looks more like a hyperlinked pile of leaves. &lt;/p&gt;&lt;p&gt;So when we are looking for a book on Amazon.com we can find it under a number of categories and it can also be found using a lot of &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;metadata&lt;/span&gt; like tags etc. This makes the book more &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;searchable&lt;/span&gt;.&lt;/p&gt;&lt;p&gt;Here is a brief video which makes the concept more clear. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;object height="350" width="425"&gt;&lt;param name="movie" value="http://www.youtube.com/v/Uo8Jxn0pKMo"&gt;&lt;param name="wmode" value="transparent"&gt;&lt;embed src="http://www.youtube.com/v/Uo8Jxn0pKMo" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646064517775310786-6616991562913375601?l=singh-sandeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://singh-sandeep.blogspot.com/feeds/6616991562913375601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1646064517775310786&amp;postID=6616991562913375601' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/6616991562913375601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/6616991562913375601'/><link rel='alternate' type='text/html' href='http://singh-sandeep.blogspot.com/2007/10/everything-is-miscellaneous.html' title='Everything is Miscellaneous'/><author><name>Sandeep</name><uri>http://www.blogger.com/profile/15200346525886007582</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646064517775310786.post-1296347575678576147</id><published>2007-10-06T14:47:00.000-07:00</published><updated>2007-10-06T15:04:19.961-07:00</updated><title type='text'>Being with people who understand you, Priceless</title><content type='html'>Mastercard has one of the best punch lines and they know how to improvise on it. Just saw this commercial and its lovely.&lt;br /&gt;&lt;br /&gt;&lt;object width="425" height="350"&gt;&lt;param name="movie" value="http://www.youtube.com/v/1cNDSPutas8"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/1cNDSPutas8" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646064517775310786-1296347575678576147?l=singh-sandeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://singh-sandeep.blogspot.com/feeds/1296347575678576147/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1646064517775310786&amp;postID=1296347575678576147' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/1296347575678576147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/1296347575678576147'/><link rel='alternate' type='text/html' href='http://singh-sandeep.blogspot.com/2007/10/being-with-people-who-understand-you.html' title='Being with people who understand you, Priceless'/><author><name>Sandeep</name><uri>http://www.blogger.com/profile/15200346525886007582</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646064517775310786.post-3089231762523697496</id><published>2007-10-03T08:22:00.000-07:00</published><updated>2007-10-03T11:59:00.093-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Personal'/><title type='text'>Wing Reunion Ooty'07</title><content type='html'>When we were in college we used to make a lot of plans to go on a wing trip. But every time the plan was blown off mainly due to financial constraint. Now we are earning and money is no more a problem, but now most of us don’t have time. However this time nine out of thirteen of our wing mates managed to spare three days for the wing reunion and the place was chosen to be Ooty.&lt;br /&gt;&lt;br /&gt;Why Ooty? Not because of its natural beauty, after a lot of research we found that there is not much to see in Ooty which means we will be spending more time in our rooms so in a way we will be having more time for &lt;a href="http://vinodkhare.blogspot.com/2005/10/iitk-lingo.html"&gt;Bulla &lt;/a&gt;(Gossip) and Patte (Cards).&lt;br /&gt;&lt;br /&gt;So finally nine of us gathered in Bangalore for a three day trip to Ooty starting Sept 29 ’07. Just for the matter of record following people were present&lt;br /&gt;Aayush aka CK from Hyderabad,&lt;br /&gt;Anand aka AVS from Noida,&lt;br /&gt;Arun from Gurgaon,&lt;br /&gt;Gaurav aka gaG from Hyderabad&lt;br /&gt;Jitendra aka Jitu from Pune,&lt;br /&gt;Mayank aka MS from Hyderabad,&lt;br /&gt;Puneet aka bunty from Kanpur&lt;br /&gt;Rajat aka gattu from Hyderabad&lt;br /&gt;Sandeep aka inzaghi from Bangalore&lt;br /&gt;&lt;br /&gt;Also for record purpose the brakes of the tempo traveller failed near the 22nd Hairpin turn, while coming down from Ooty. The vehicle was stopped by hitting the rocks on the other side of about 1500m deep valley. Some snaps from the trip&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_s0hoyAhIrjE/RwPIQySgGzI/AAAAAAAAADg/RpOY0WiHwC8/s400/DSC01071.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5117153792325851954" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_s0hoyAhIrjE/RwPIQySgGzI/AAAAAAAAADg/RpOY0WiHwC8/s400/DSC01071.JPG" border="0" /&gt; &lt;/a&gt;Just before the Start&lt;br /&gt;&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/_s0hoyAhIrjE/RwPR4ySgG0I/AAAAAAAAADo/_WxYEQ4Jdpw/s400/DSC01149.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5117164375125269314" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_s0hoyAhIrjE/RwPR4ySgG0I/AAAAAAAAADo/_WxYEQ4Jdpw/s400/DSC01149.JPG" border="0" /&gt; &lt;/a&gt;&lt;br /&gt;&lt;div&gt;On the way to Ooty&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/_s0hoyAhIrjE/RwPTwySgG2I/AAAAAAAAAD4/u1oRnOVofUk/s400/DSC01205.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5117166436709571426" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_s0hoyAhIrjE/RwPTwySgG2I/AAAAAAAAAD4/u1oRnOVofUk/s400/DSC01205.JPG" border="0" /&gt;&lt;/div&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;After the brakes failed&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://2.bp.blogspot.com/_s0hoyAhIrjE/RwPS2CSgG1I/AAAAAAAAADw/RRdWVxpuGFM/s400/DSC01204.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5117165427392256850" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_s0hoyAhIrjE/RwPS2CSgG1I/AAAAAAAAADw/RRdWVxpuGFM/s400/DSC01204.JPG" border="0" /&gt;&lt;/div&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;Damaged vehicle&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/_s0hoyAhIrjE/RwPYNySgG5I/AAAAAAAAAEQ/4WmhUQz_5PU/s1600-h/DSC03269.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5117171332972288914" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_s0hoyAhIrjE/RwPYNySgG5I/AAAAAAAAAEQ/4WmhUQz_5PU/s400/DSC03269.JPG" border="0" /&gt;&lt;/a&gt; Gattu, Aayush, Me and gaG &lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/_s0hoyAhIrjE/RwPXmiSgG4I/AAAAAAAAAEI/kkNMO-wJfPM/s1600-h/DSC03229.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5117170658662423426" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_s0hoyAhIrjE/RwPXmiSgG4I/AAAAAAAAAEI/kkNMO-wJfPM/s400/DSC03229.JPG" border="0" /&gt;&lt;/a&gt; gattu me and gaG&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/_s0hoyAhIrjE/RwPY1ySgG6I/AAAAAAAAAEY/5KIdG0bvihg/s400/DSC03273.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5117172020167056290" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_s0hoyAhIrjE/RwPY1ySgG6I/AAAAAAAAAEY/5KIdG0bvihg/s400/DSC03273.JPG" border="0" /&gt; &lt;/a&gt;Sneak peak by gattu&lt;br /&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/_s0hoyAhIrjE/RwPVGiSgG3I/AAAAAAAAAEA/pKG6SDSa__s/s1600-h/DSC01256.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5117167909883353970" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_s0hoyAhIrjE/RwPVGiSgG3I/AAAAAAAAAEA/pKG6SDSa__s/s400/DSC01256.JPG" border="0" /&gt;&lt;/a&gt; &lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/_s0hoyAhIrjE/RwPY1ySgG6I/AAAAAAAAAEY/5KIdG0bvihg/s400/DSC03273.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5117178466912967618" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_s0hoyAhIrjE/RwPetCSgG8I/AAAAAAAAAEo/WhNp2CMLoDc/s400/DSC03281.JPG" border="0" /&gt;&lt;/a&gt;Dress code as instructed by Mayank &lt;/div&gt;&lt;div&gt;&lt;br /&gt;All credits to Aayush, Mayank, Rajat and Anand for handling the logistics.&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646064517775310786-3089231762523697496?l=singh-sandeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://singh-sandeep.blogspot.com/feeds/3089231762523697496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1646064517775310786&amp;postID=3089231762523697496' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/3089231762523697496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/3089231762523697496'/><link rel='alternate' type='text/html' href='http://singh-sandeep.blogspot.com/2007/10/wing-reunion-ooty-2007.html' title='Wing Reunion Ooty&apos;07'/><author><name>Sandeep</name><uri>http://www.blogger.com/profile/15200346525886007582</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_s0hoyAhIrjE/RwPIQySgGzI/AAAAAAAAADg/RpOY0WiHwC8/s72-c/DSC01071.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646064517775310786.post-3764594896110204434</id><published>2007-09-24T07:49:00.000-07:00</published><updated>2007-09-24T08:24:53.601-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Leaders'/><category scheme='http://www.blogger.com/atom/ns#' term='Fortune'/><title type='text'>Top Companies for Leaders</title><content type='html'>This year four Indian companies figure in the list of &lt;a href="http://money.cnn.com/magazines/fortune/leadership/2007/global/index.html"&gt;Global Top 20 companies for leaders 2007 &lt;/a&gt;by Fortune. &lt;a href="http://money.cnn.com/galleries/2007/fortune/0709/gallery.leaders_global_topten.fortune/4.html"&gt;Hindustan Unilever&lt;/a&gt; with fourth spot is the leading Indian company followed by &lt;a href="http://money.cnn.com/galleries/2007/fortune/0709/gallery.leaders_global_topten.fortune/10.html"&gt;Infosys Technologies&lt;/a&gt; at tenth, ICICI at nineteenth and Wipro at twentieth spot.&lt;br /&gt;&lt;br /&gt;In Asia Pacific category &lt;a href="http://money.cnn.com/galleries/2007/fortune/0709/gallery.leaders_global_topten.fortune/4.html"&gt;Hindustan Unilever&lt;/a&gt; leads with the first spot followed by &lt;a href="http://money.cnn.com/galleries/2007/fortune/0709/gallery.leaders_global_topten.fortune/10.html"&gt;Infosys Technologies&lt;/a&gt; at second ICICI fourth, Wipro fifth and Tata Consultancy Services Limited at seventh.&lt;br /&gt;&lt;br /&gt;All the companies from the technology side are primarily IT Services Company which again triggers the question, is the IT industry in India only about Services?&lt;br /&gt;&lt;br /&gt;However this is quite encouraging for Indian companies, they are getting more and more globally recognized. I hope the trend continues.&lt;br /&gt;&lt;br /&gt;Here is a demographic distribution of Global Top 20 companies for leaders 2007&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_s0hoyAhIrjE/RvfVSCSgGxI/AAAAAAAAADQ/Vj8029QdU0I/s1600-h/top_companies.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5113790407731321618" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_s0hoyAhIrjE/RvfVSCSgGxI/AAAAAAAAADQ/Vj8029QdU0I/s400/top_companies.jpg" border="0" /&gt;&lt;/a&gt; &lt;div&gt;&lt;div&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646064517775310786-3764594896110204434?l=singh-sandeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://singh-sandeep.blogspot.com/feeds/3764594896110204434/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1646064517775310786&amp;postID=3764594896110204434' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/3764594896110204434'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/3764594896110204434'/><link rel='alternate' type='text/html' href='http://singh-sandeep.blogspot.com/2007/09/top-companies-for-leaders.html' title='Top Companies for Leaders'/><author><name>Sandeep</name><uri>http://www.blogger.com/profile/15200346525886007582</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_s0hoyAhIrjE/RvfVSCSgGxI/AAAAAAAAADQ/Vj8029QdU0I/s72-c/top_companies.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646064517775310786.post-5094922930960679679</id><published>2007-09-22T01:10:00.000-07:00</published><updated>2007-10-03T06:39:56.686-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SocialNetworking'/><category scheme='http://www.blogger.com/atom/ns#' term='Mash'/><category scheme='http://www.blogger.com/atom/ns#' term='Yahoo'/><title type='text'>Start Mashing!</title><content type='html'>Yahoo! has come up with Y! mash which is a social networking site similar to &lt;a href="http://www.orkut.com/"&gt;Orkut &lt;/a&gt;and &lt;a href="http://www.facebook.com/"&gt;Facebook&lt;/a&gt;. Social Networking is pretty hot these days and with Yahoo! entering the domain the competition has become tougher. However Yahoo! needs to do a lot of catching up, there are already players in this domain with huge user groups.&lt;br /&gt;&lt;br /&gt;I played around with Y! mash and one interesting feature of mash is the ability to create and edit other’s profile. I turned &lt;a href="http://crazyphonon.blogspot.com/"&gt;Kapil’s &lt;/a&gt;profile colour to orange, created a profile for &lt;a href="http://neerugupta.blogspot.com/"&gt;Neeru &lt;/a&gt;and edited the About Me section of &lt;a href="http://spaces.msn.com/members/aayushpuri"&gt;Aayush&lt;/a&gt;. This is something similar to wiki where anybody can edit the content of the profile. However if you feel people are going to mess around with your profile, you can restrict the editing to your family/friends or keep the editing completely to yourself.&lt;br /&gt;&lt;br /&gt;Users can play around with the looks of the profile page change colour, rearrange the different modules as well as add/remove modules from a list of currently available modules like Flickr, Blog Module etc. I am not sure if people can contribute their modules to the list, but opening this to the developers will help building a developer community around mash and also provide entertainment to the users.&lt;br /&gt;&lt;br /&gt;One has a pet on the profile page which I have renamed to “Chauggi”. Users can play around with it feed, lick, snorgle, poke etc. and it changes expression. There is also a placeholder where you can keep your stuff like videos.&lt;br /&gt;&lt;br /&gt;The site is in trial mode and a lot of obvious features like profile search, private messages are still missing. Overall the site looks promising and Yahoo! is trying to be a lot more innovative this time. They currently has large user groups around Flickr, videos, blogs, groups, answers etc. and if they are able to integrate these services with mash and get the user groups on mash they can become a major player in this domain which they have lost to &lt;a href="http://www.orkut.com/"&gt;Orkut&lt;/a&gt;, &lt;a href="http://www.facebook.com/"&gt;Facebook &lt;/a&gt;and &lt;a href="http://www.linkedin.com/"&gt;LinkedIn&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The picture will get clearer in the next few months but one thing is sure, this move by Yahoo! will force other players to be more innovative and if lucky they can get a major share of the social networking market. Till then keep mashing !!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646064517775310786-5094922930960679679?l=singh-sandeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://singh-sandeep.blogspot.com/feeds/5094922930960679679/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1646064517775310786&amp;postID=5094922930960679679' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/5094922930960679679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/5094922930960679679'/><link rel='alternate' type='text/html' href='http://singh-sandeep.blogspot.com/2007/09/start-mashing.html' title='Start Mashing!'/><author><name>Sandeep</name><uri>http://www.blogger.com/profile/15200346525886007582</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646064517775310786.post-6540743511058538206</id><published>2007-09-07T05:29:00.000-07:00</published><updated>2007-09-07T05:59:50.557-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Review'/><category scheme='http://www.blogger.com/atom/ns#' term='Book'/><category scheme='http://www.blogger.com/atom/ns#' term='Freakonomics'/><title type='text'>Freakonomics Book Review</title><content type='html'>&lt;p align="left"&gt;I recently completed reading &lt;a href="http://www.amazon.com/Freakonomics-Revised-Expanded-Economist-Everything/dp/0061234001/ref=pd_bbs_3/103-2220969-6926202?ie=UTF8&amp;s=books&amp;amp;amp;amp;qid=1187026557&amp;amp;sr=1-3"&gt;Freakonomics&lt;/a&gt;. I am really impressed with the treatment of everyday phenomena using economics by Steven Levitt. The book is not about stock comparison or a unifying theme. It is more about a sensible way of thinking in our day to day life and being more sceptical when deriving conclusions from conventional wisdom.&lt;br /&gt;&lt;br /&gt;Levitt questions the methods and analogy used most of the time to derive explanations.&lt;br /&gt;For example by knowing the fact that if in an election the person who wins spends more money we assume that money is the cause of winning. Seemingly simple explanations of such phenomena’s are often wrong. The answer to a given riddle is not always in front of us. Such phenomena’s have much more subtle causes.&lt;br /&gt;&lt;br /&gt;The fact that two things are correlated does not mean that one causes another. A correlation between X and Y tells that they are related. However it does not tell what is the direction of the correlation. It is quite possible that X causes Y or Y causes X or may be some other factor Z causes X and Y.&lt;br /&gt;&lt;br /&gt;A biography of a person (read successful since biographies are not written about unsuccessful people) will point out traits like honesty, hard work, integrity etc .etc. in the person which helped him to succeed in life. So a simple explanation of being successful would be to follow these qualities in our life as well. However on the other side we can find a lot of people who have similar traits and are a failure. Reaching judgement using such shallow factors to measure success or failure are just redundant and are still used as a parameter because most of us are still hooked on to the conventional wisdom.&lt;br /&gt;&lt;br /&gt;Conventional wisdom most often represents the way people would like things to work however economics explores how it actually does work. The main issues covered in this book include.&lt;br /&gt;&lt;br /&gt;1. How legalized abortion caused the drop in crime in US during the 90’s?&lt;br /&gt;2. How experts use their informational advantage for their own agenda. How information correlates Ku Klux Klan and real estate agents and how once made publicly available can damage their position in society.&lt;br /&gt;3. Does giving incentives or imposing fine always serve the purpose for which they were introduced? Do teachers cheat and if so why. What makes them similar to the Sumo Wrestlers?&lt;br /&gt;4. Why it safer to send your children to a house with a gun rather than a swimming pool&lt;br /&gt;5. Why people are attracted towards crime even when so much risk is involved?&lt;br /&gt;6. What makes a perfect parent?&lt;br /&gt;&lt;br /&gt;The book as stated in the beginning does not end with a unifying idea or conclusion. It however teaches how to use data and a sensible thinking to understand what really is happening under the surface of everyday life. I really enjoyed reading this book and would give it 4/5&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646064517775310786-6540743511058538206?l=singh-sandeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://singh-sandeep.blogspot.com/feeds/6540743511058538206/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1646064517775310786&amp;postID=6540743511058538206' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/6540743511058538206'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/6540743511058538206'/><link rel='alternate' type='text/html' href='http://singh-sandeep.blogspot.com/2007/09/freakonomics-book-review.html' title='Freakonomics Book Review'/><author><name>Sandeep</name><uri>http://www.blogger.com/profile/15200346525886007582</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646064517775310786.post-6546737362785009411</id><published>2007-08-21T16:45:00.000-07:00</published><updated>2007-09-07T06:02:18.860-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Development'/><category scheme='http://www.blogger.com/atom/ns#' term='Mort'/><category scheme='http://www.blogger.com/atom/ns#' term='Elvis'/><category scheme='http://www.blogger.com/atom/ns#' term='Einstein'/><title type='text'>Mort, Elvis or Einstein?</title><content type='html'>This has been &lt;a href="http://www.bbits.co.uk/blog/archive/2004/01/15/167.aspx"&gt;blogged &lt;/a&gt;a decade ago and still holds when it comes to applying persona's on developers.&lt;br /&gt;1. &lt;strong&gt;Mort&lt;/strong&gt;, the opportunistic developer, likes to create quick-working solutions for immediate problems and focuses on productivity and learn as needed.&lt;br /&gt;2. &lt;strong&gt;Elvis&lt;/strong&gt;, the pragmatic programmer, likes to create long-lasting solutions addressing the problem domain, and learn while working on the solution.&lt;br /&gt;3. &lt;strong&gt;Einstein&lt;/strong&gt;, the paranoid programmer, likes to create the most efficient solution to a given problem, and typically learn in advance before working on the solution.&lt;br /&gt;&lt;br /&gt;So which one are you?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646064517775310786-6546737362785009411?l=singh-sandeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://singh-sandeep.blogspot.com/feeds/6546737362785009411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1646064517775310786&amp;postID=6546737362785009411' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/6546737362785009411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/6546737362785009411'/><link rel='alternate' type='text/html' href='http://singh-sandeep.blogspot.com/2007/08/mort-elvis-or-einstein.html' title='Mort, Elvis or Einstein?'/><author><name>Sandeep</name><uri>http://www.blogger.com/profile/15200346525886007582</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646064517775310786.post-2314547213470802302</id><published>2007-08-15T12:23:00.000-07:00</published><updated>2007-09-21T11:30:53.472-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Algorithm'/><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Atomic'/><category scheme='http://www.blogger.com/atom/ns#' term='Multithreading'/><title type='text'>Non Blocking Algorithms in Java</title><content type='html'>&lt;a href="http://www.ibm.com/developerworks/java/library/j-jtp04186/index.html?S_TACT=105AGX02&amp;amp;S_CMP=EDU"&gt;Nonblocking Algorithms&lt;/a&gt; is a feature of Java 5. These are concurrent algorithms which derive their thread safety not from locks but from low-level atomic hardware primitives such as compare and swap. Since they do not make use of locks they can provide better performance and are less prone to &lt;a href="http://en.wikipedia.org/wiki/Deadlock"&gt;deadlocks &lt;/a&gt;and &lt;a href="http://en.wikipedia.org/wiki/Priority_inversion"&gt;priority inversion&lt;/a&gt; problems.&lt;br /&gt;&lt;br /&gt;Prior to Java 5 for making program thread safe one has to use synchronized keyword which has performance trade off and can also lead to &lt;a href="http://en.wikipedia.org/wiki/Race_condition"&gt;race condition&lt;/a&gt;. Atomic variable classes in java.util.concurrent provide means for atomic read-modify-write operations without using locks. They form the basis for lock-free concurrent algorithm.An example of writing thread safe without and with the use of synchronized keyword.&lt;br /&gt;&lt;br /&gt;A simple thread safe counter using synchronized keyword.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;public final class Counter {&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;private long value = 0;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;public synchronized long getValue() {&lt;/em&gt;&lt;br /&gt;&lt;em&gt;return value;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;}&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;public synchronized long increment() {&lt;/em&gt;&lt;br /&gt;&lt;em&gt;return ++value;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;}&lt;/em&gt;&lt;br /&gt;&lt;em&gt;}&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;A nonblocking counter using compareAndSet method of &lt;a href="http://www-128.ibm.com/developerworks/java/library/j-jtp11234/"&gt;AtomicInteger&lt;/a&gt;. The compareAndSet() method says "Update this variable to this new value, but fail if some other thread changed the value since I last looked."&lt;br /&gt;&lt;br /&gt;&lt;em&gt;public class NonblockingCounter {&lt;/em&gt;&lt;br /&gt;&lt;em&gt;private AtomicInteger value;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;public int getValue() {&lt;/em&gt;&lt;br /&gt;&lt;em&gt;return value.get();&lt;/em&gt;&lt;br /&gt;&lt;em&gt;}&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;public int increment() {&lt;/em&gt;&lt;br /&gt;&lt;em&gt;int v;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;do {&lt;/em&gt;&lt;br /&gt;&lt;em&gt;v = value.get();&lt;/em&gt;&lt;br /&gt;&lt;em&gt;}&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;while (!value.compareAndSet(v, v + 1));&lt;/em&gt;&lt;br /&gt;&lt;em&gt;return v + 1;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;}&lt;/em&gt;&lt;br /&gt;&lt;em&gt;}&lt;/em&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646064517775310786-2314547213470802302?l=singh-sandeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://singh-sandeep.blogspot.com/feeds/2314547213470802302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1646064517775310786&amp;postID=2314547213470802302' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/2314547213470802302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/2314547213470802302'/><link rel='alternate' type='text/html' href='http://singh-sandeep.blogspot.com/2007/08/non-blocking-algorithms-in-java.html' title='Non Blocking Algorithms in Java'/><author><name>Sandeep</name><uri>http://www.blogger.com/profile/15200346525886007582</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646064517775310786.post-1770016513646971021</id><published>2007-08-13T04:59:00.000-07:00</published><updated>2007-09-21T11:34:07.229-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Experiment'/><category scheme='http://www.blogger.com/atom/ns#' term='Consumer'/><category scheme='http://www.blogger.com/atom/ns#' term='Psychology'/><title type='text'>The grass isn't greener</title><content type='html'>A recent research titled &lt;a href="http://www.eurekalert.org/pub_releases/2007-08/uocp-tgi080707.php"&gt;Learning from Mixed Feedback: Anticipation of the Future Reduces Appreciation of the Present&lt;/a&gt; published in the Journal of Consumer Research has revealed that our quest for improvements can cause us to lose sight of the values of current choices. The human tendency that grass is greener on the other side is ubiquitous in our day to day life. Not only as consumer but in almost any field most of us are so much preoccupied with improving the current situation that we forget to appreciate what we have. The conventional belief that our continuous pursuit of preparing for the future and being on the greener side helps us make the right choices seems to be challenged from the findings. According to the experiment&lt;br /&gt;&lt;br /&gt;&lt;em&gt;A group of participants were to choose among three stores on a series of simulated shopping trips. After each trip, they were shown the price charged for a product at their chosen store and the prices charged at each of the other two stores. After going on a series of shopping trips, participants were then asked to indicate which store was the cheapest and whether they would want to switch to another store for a second set of shopping trips. Notably, the investigators found that when participants were told in advance that they would make a second set of shopping trips, they were less likely to prefer the store they initially chose and more likely to switch to another store after the first set of trips. In addition, they also thought the store they chose was the most expensive fifty percent more of the time. This phenomenon was replicated in later studies even when the chosen store was less expensive than the other two stores. In contrast, participants who did not expect to have to make a second choice accurately recalled an equal number of trips on which the chosen store was cheaper or more expensive."Ironically, participants who were preparing for future decisions, and should therefore be more motivated to learn from their past choices, were less likely to realize that they had selected the cheapest store and were more likely to switch to other, more expensive stores," the authors write. Additional evidence suggests that consumers who anticipate future choices selectively search for ways to improve their current situation and disproportionately pay attention to better prices at other stores .As a result, forward looking consumers overestimate how green the grass is on the other side of the fence, leading them to abandon their chosen store for an often objectively inferior alternative. &lt;/em&gt;&lt;br /&gt;&lt;br /&gt;The statistics collected from the experiment clearly show that once some data is introduced a lot of preconceived believes and obvious things become questionable. It is an indication that our quest for improvement should not be blindfolded and is also a message to sellers that it is equally important for them to retain current consumer than to find new ones.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646064517775310786-1770016513646971021?l=singh-sandeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://singh-sandeep.blogspot.com/feeds/1770016513646971021/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1646064517775310786&amp;postID=1770016513646971021' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/1770016513646971021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/1770016513646971021'/><link rel='alternate' type='text/html' href='http://singh-sandeep.blogspot.com/2007/08/grass-isnt-greener.html' title='The grass isn&apos;t greener'/><author><name>Sandeep</name><uri>http://www.blogger.com/profile/15200346525886007582</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646064517775310786.post-2939887782650770658</id><published>2007-02-13T02:17:00.000-08:00</published><updated>2007-08-13T11:20:44.313-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cartoon'/><category scheme='http://www.blogger.com/atom/ns#' term='Marketing'/><title type='text'>All Marketers are Liars !!</title><content type='html'>Here is a nice cartoon on Marketers.  Seems like I couldn't agree more.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_s0hoyAhIrjE/RdGQtD2zbCI/AAAAAAAAACQ/LIuAlf1qc8I/s1600-h/marketers_areliars.jpeg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_s0hoyAhIrjE/RdGQtD2zbCI/AAAAAAAAACQ/LIuAlf1qc8I/s400/marketers_areliars.jpeg" alt="" id="BLOGGER_PHOTO_ID_5030961362553236514" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_s0hoyAhIrjE/RdGQtD2zbCI/AAAAAAAAACQ/LIuAlf1qc8I/s1600-h/marketers_areliars.jpeg"&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646064517775310786-2939887782650770658?l=singh-sandeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://singh-sandeep.blogspot.com/feeds/2939887782650770658/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1646064517775310786&amp;postID=2939887782650770658' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/2939887782650770658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/2939887782650770658'/><link rel='alternate' type='text/html' href='http://singh-sandeep.blogspot.com/2007/02/all-marketers-are-liars-so-are-mbas.html' title='All Marketers are Liars !!'/><author><name>Sandeep</name><uri>http://www.blogger.com/profile/15200346525886007582</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_s0hoyAhIrjE/RdGQtD2zbCI/AAAAAAAAACQ/LIuAlf1qc8I/s72-c/marketers_areliars.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646064517775310786.post-7526365121411363941</id><published>2007-02-09T02:07:00.000-08:00</published><updated>2007-08-13T11:25:50.111-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='News'/><category scheme='http://www.blogger.com/atom/ns#' term='Investment'/><title type='text'>Best investment for the next ten years</title><content type='html'>According to an interesting article in  &lt;a href="http://www.indiadaily.com/editorial/15423.asp"&gt;indiadaily.com&lt;/a&gt; the best investment for the next ten years will be domain name , farm land, and cash in bank.&lt;br /&gt;Seems like I should start saving some money to invest into these :-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646064517775310786-7526365121411363941?l=singh-sandeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://singh-sandeep.blogspot.com/feeds/7526365121411363941/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1646064517775310786&amp;postID=7526365121411363941' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/7526365121411363941'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/7526365121411363941'/><link rel='alternate' type='text/html' href='http://singh-sandeep.blogspot.com/2007/02/best-investment-for-next-ten-years.html' title='Best investment for the next ten years'/><author><name>Sandeep</name><uri>http://www.blogger.com/profile/15200346525886007582</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646064517775310786.post-5206619786757605213</id><published>2007-02-08T04:33:00.000-08:00</published><updated>2007-02-08T04:45:12.976-08:00</updated><title type='text'>Your Face will be your password</title><content type='html'>Gone are the days when every website and application needed a username and password to authenticate. With Face recognition as secure automatic access to websites and applications gaining momentum,  the user no longer has to rember the lengthy passwords for more than a dozen websites.&lt;br /&gt;While Lenova 3000 series has already incorporated this feature others I am sure will come up with this very soon. These face recognition software use biometric face recognition technology that takes a digital snapshot of the user and extracts key features of the users' face and creates a digital map that becomes the password.&lt;br /&gt;&lt;br /&gt;However I am not sure what will happen if somebody shows the picture as user or I get a blow on my face :-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646064517775310786-5206619786757605213?l=singh-sandeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://singh-sandeep.blogspot.com/feeds/5206619786757605213/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1646064517775310786&amp;postID=5206619786757605213' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/5206619786757605213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/5206619786757605213'/><link rel='alternate' type='text/html' href='http://singh-sandeep.blogspot.com/2007/02/your-face-will-be-your-password.html' title='Your Face will be your password'/><author><name>Sandeep</name><uri>http://www.blogger.com/profile/15200346525886007582</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646064517775310786.post-1203512392740279471</id><published>2007-02-04T11:06:00.000-08:00</published><updated>2007-08-13T11:24:19.582-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Photos'/><title type='text'>10 seconds is what I need to get distracted !!</title><content type='html'>I realised that it takes approximately 10 seconds for me to get distracted 13 to resist and 25 to become a part of it :-))&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_s0hoyAhIrjE/RcYxdgMjVSI/AAAAAAAAABQ/rAfAwB8R7vM/s1600-h/DSC00730.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_s0hoyAhIrjE/RcYxdgMjVSI/AAAAAAAAABQ/rAfAwB8R7vM/s400/DSC00730.JPG" alt="" id="BLOGGER_PHOTO_ID_5027760416934286626" border="0" /&gt;&lt;/a&gt;12:05:35 I Was Genuinely Working&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_s0hoyAhIrjE/RcYxxwMjVTI/AAAAAAAAABY/1CsnvdqHdG0/s1600-h/DSC00731.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_s0hoyAhIrjE/RcYxxwMjVTI/AAAAAAAAABY/1CsnvdqHdG0/s400/DSC00731.JPG" alt="" id="BLOGGER_PHOTO_ID_5027760764826637618" border="0" /&gt;&lt;/a&gt;12:05:40 Still Working not realizing someone is photo shooting me&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_s0hoyAhIrjE/RcYyYgMjVUI/AAAAAAAAABg/T96nBMV4kos/s1600-h/DSC00732.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_s0hoyAhIrjE/RcYyYgMjVUI/AAAAAAAAABg/T96nBMV4kos/s400/DSC00732.JPG" alt="" id="BLOGGER_PHOTO_ID_5027761430546568514" border="0" /&gt;&lt;/a&gt;12:05:45 A slight smirk after the realisation&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_s0hoyAhIrjE/RcYy6gMjVVI/AAAAAAAAABo/3H2xNraw74E/s1600-h/DSC00734.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_s0hoyAhIrjE/RcYy6gMjVVI/AAAAAAAAABo/3H2xNraw74E/s400/DSC00734.JPG" alt="" id="BLOGGER_PHOTO_ID_5027762014662120786" border="0" /&gt;&lt;/a&gt;12:05:48 Smiling in agreement&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_s0hoyAhIrjE/RcYzggMjVWI/AAAAAAAAABw/UsN28IS-OiY/s1600-h/DSC00739.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_s0hoyAhIrjE/RcYzggMjVWI/AAAAAAAAABw/UsN28IS-OiY/s400/DSC00739.JPG" alt="" id="BLOGGER_PHOTO_ID_5027762667497149794" border="0" /&gt;&lt;/a&gt;12:06:00 And here I am posing for the camera&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646064517775310786-1203512392740279471?l=singh-sandeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://singh-sandeep.blogspot.com/feeds/1203512392740279471/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1646064517775310786&amp;postID=1203512392740279471' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/1203512392740279471'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/1203512392740279471'/><link rel='alternate' type='text/html' href='http://singh-sandeep.blogspot.com/2007/02/15-seconds-is-what-i-need-to-get.html' title='10 seconds is what I need to get distracted !!'/><author><name>Sandeep</name><uri>http://www.blogger.com/profile/15200346525886007582</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_s0hoyAhIrjE/RcYxdgMjVSI/AAAAAAAAABQ/rAfAwB8R7vM/s72-c/DSC00730.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646064517775310786.post-623114494419949721</id><published>2007-02-03T04:15:00.000-08:00</published><updated>2007-08-13T11:23:15.648-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IITK'/><category scheme='http://www.blogger.com/atom/ns#' term='Hall 1'/><title type='text'>Visit to my Alma Mater</title><content type='html'>Recently got a chance to visit my college. Did not have much time but enjoyed every moment I spent there. Some pics from the visit&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_s0hoyAhIrjE/RcSBUgMjVOI/AAAAAAAAAAc/-PNU7cysoS8/s1600-h/06012006043.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_s0hoyAhIrjE/RcSBUgMjVOI/AAAAAAAAAAc/-PNU7cysoS8/s400/06012006043.jpg" alt="" id="BLOGGER_PHOTO_ID_5027285273292264674" border="0" /&gt;&lt;/a&gt;                                                                                                                                                    A-Bot Hall 1                                                                     &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_s0hoyAhIrjE/RcR_dwMjVNI/AAAAAAAAAAU/IOst7DRGM10/s1600-h/06012006037.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_s0hoyAhIrjE/RcR_dwMjVNI/AAAAAAAAAAU/IOst7DRGM10/s400/06012006037.jpg" alt="" id="BLOGGER_PHOTO_ID_5027283233182799058" border="0" /&gt;&lt;/a&gt; Shopping Center@IITK&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_s0hoyAhIrjE/RcSC4QMjVQI/AAAAAAAAAAs/vKcqSRqQZbY/s1600-h/06012006049.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_s0hoyAhIrjE/RcSC4QMjVQI/AAAAAAAAAAs/vKcqSRqQZbY/s400/06012006049.jpg" alt="" id="BLOGGER_PHOTO_ID_5027286986984215810" border="0" /&gt;&lt;/a&gt;                                                                                                 Vaishnavi Dhaba where we spent countless nights&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646064517775310786-623114494419949721?l=singh-sandeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://singh-sandeep.blogspot.com/feeds/623114494419949721/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1646064517775310786&amp;postID=623114494419949721' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/623114494419949721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/623114494419949721'/><link rel='alternate' type='text/html' href='http://singh-sandeep.blogspot.com/2007/02/visit-to-my-alma-mater.html' title='Visit to my Alma Mater'/><author><name>Sandeep</name><uri>http://www.blogger.com/profile/15200346525886007582</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_s0hoyAhIrjE/RcSBUgMjVOI/AAAAAAAAAAc/-PNU7cysoS8/s72-c/06012006043.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646064517775310786.post-5742840696058446279</id><published>2007-01-18T02:58:00.000-08:00</published><updated>2007-01-18T03:53:44.550-08:00</updated><title type='text'>So free that I have started hating the word free</title><content type='html'>I am software developer although for the past few days I have not written a single line of code which is a testimony of the fact how free I am these days.  I don't find the work I am doing any more challenging or interesting as a result I am not able to keep myself motivated. Previously when I used to go to my workplace I used to be enthusiastic, everyday there was something to learn  from what I did, seems like the learning curve has come to a phase of saturation.&lt;br /&gt;&lt;br /&gt;As a result of which I can feel a lot of deviation as a person in me. I particularly dislike people who form groups and gossip in office, they not only waste their time(which obviously is not important) but more than that they disturb people who are working. However these days even I can be spotted as member of such groups wasting time of other people.  The number of smokes and tea sessions have almost doubled.&lt;br /&gt;&lt;br /&gt;I dont know what other people do under such situations, I personally feel the only way to leverage this situation and to protect myself from detoriating is by absorbing myself more into reading and learning new things. Although i sincerely hope some good work comes up in my way pretty soon.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646064517775310786-5742840696058446279?l=singh-sandeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://singh-sandeep.blogspot.com/feeds/5742840696058446279/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1646064517775310786&amp;postID=5742840696058446279' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/5742840696058446279'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/5742840696058446279'/><link rel='alternate' type='text/html' href='http://singh-sandeep.blogspot.com/2007/01/bored.html' title='So free that I have started hating the word free'/><author><name>Sandeep</name><uri>http://www.blogger.com/profile/15200346525886007582</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646064517775310786.post-8598254626351928722</id><published>2007-01-16T22:12:00.000-08:00</published><updated>2007-08-13T11:22:30.825-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Design Pattern'/><category scheme='http://www.blogger.com/atom/ns#' term='Coding'/><title type='text'>Singleton vs Static Class</title><content type='html'>Yesterday at my workplace I had a discussion with one of my teammate over using static method or a singleton class. The use case was that there was a class which contained static method and cached certain information in maps required to load certain portions of the application. I was insisting on using the Singleton pattern however he was not very much convinced and insisted on using static methods only. It was then I realized that although Singleton is one of the simplest design pattern, still many people are not aware of its advantages over a Static class. So I will try to juxtapose the two in this article.&lt;br /&gt;&lt;br /&gt;Java programming language supports static methods as well as static variables. Static methods, which have the static modifier in their declarations, should be invoked with the class name, without the need for creating an instance of the class. Similarly, fields that have the static modifier in their declaration are called static fields or class variables. By static classes I mean classes which can never be instantiated.&lt;br /&gt;&lt;br /&gt;Since static classes have no instance level variables. They are suitable as utility type classes where you can group like functions together.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;public class StaticClassExample{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    public static int  foo(String str) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        //Utility Method which converts a string to lowercase&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        return str.toLowerCase() ;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Singleton however is a design pattern, to ensure that only one instance of the class exists.  Singletons classes have a private constructor's and are provided with a getInstance method. The following code is an example of a singleton class&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;public class SingletonClassExample {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;private static SingletonClassExample instance = null;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;    protected SingletonClassExample () {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;        //Exists only to defeat instantiation.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;    }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;public static synchronized SingletonClassExample getInstance () {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;             //lazy instantiation to ensure an instance is created only if required.&lt;br /&gt;  //synchronized so that &lt;/span&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;in case of multiple thread more than&lt;br /&gt;//one instance is not created.   &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;        if(instance == null) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;            instance = new SingletonClassExample ();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;        }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;        return instance;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;    }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;    public String  foo(String str1) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;        return str1;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;    }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;public Object clone() throws CloneNotSupportedException {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;    //we can create a copy of the object using the object&lt;br /&gt;//clone method. So we override the Object's clone&lt;br /&gt;//method to throw CloneNotSupportedException&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;    throw new CloneNotSupportedException();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;}&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Since both are utility classes there is not much difference as far as the functionality is concerned. Now let us say if we want to override the method foo(String str) then in the case of Singleton this can be achieved pretty easily by making following code changes&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;span style="font-family:verdana;"&gt;public static synchronized SingletonClassExample getInstance () {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;       if(instance == null) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;            instance = new SingletonClassCanBeExtended();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;      }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;      return instance;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;public class SingletonClassCanBeExtended extends SingletonClassExample {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;   public String foo(String str1) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;        //overridden method&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;        return str1.toLowerCase(Locale.FRENCH) ;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;    }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;However for the StaticClassExample we cannot achieve this. A static class can be extended technically but the methods cannot be overridden it does not inherit its instant members. We either have to add another method fooOther(String str) or else create another class if we need to keep the method name and signature same.&lt;br /&gt;&lt;br /&gt;So the advantages of a Singleton over a static class are pretty obvious as far as maintainability and design is. The biggest problem with a static class is that it in a way  defeats the concept of OO programming, these classes cannot use polymorphism, neither can one pass the instance, these classes are never meant to be instantiated or, at least, there is no point in instantiating it.&lt;br /&gt;&lt;br /&gt;However static class can be handy in situations when we want to process the data and use the method like a service, we do not want to remember the state information. For example take the java.lang.Math class which contains static utility methods which are stateless. But when we need to remember the state then Singleton is a better way to achieve it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646064517775310786-8598254626351928722?l=singh-sandeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://singh-sandeep.blogspot.com/feeds/8598254626351928722/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1646064517775310786&amp;postID=8598254626351928722' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/8598254626351928722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/8598254626351928722'/><link rel='alternate' type='text/html' href='http://singh-sandeep.blogspot.com/2007/01/singleton-vs-static-class.html' title='Singleton vs Static Class'/><author><name>Sandeep</name><uri>http://www.blogger.com/profile/15200346525886007582</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646064517775310786.post-7860961560692177910</id><published>2007-01-12T00:21:00.001-08:00</published><updated>2007-01-12T01:11:44.512-08:00</updated><title type='text'>Mission Statement</title><content type='html'>I was just reading this mission/vision  statement of my company(which happens to be a subsidiary of a Fortune 500 company) stuck right infront of my chair at eye level. I wanted to write down these statement but that may lead to some legal issues (it is supposed to be for internal use only :-) although i can't figure out why) so i will refrain from doing so.&lt;br /&gt;&lt;br /&gt;However after reading the entire A3 sized document, I am very sure that even after putting  in the efforts of placing it right in front of the desk of each employee, it would be almost impossible to find even a single employee on the pay roll of my company who can state them.&lt;br /&gt;&lt;br /&gt;This reminds me of &lt;a href="http://www.guykawasaki.com/"&gt;Guy Kawasaki&lt;/a&gt;'s book &lt;a href="http://www.amazon.com/Art-Start-Time-Tested-Battle-Hardened-Anything/dp/1591840562"&gt;The Art of Start&lt;/a&gt; in which he talked about such situations. Where big companies spend thousands of dollars to get one mission statement which not even a single employee not even the person who approved the statement could repeat it without mistakes. Instead of that there should be a &lt;span style="font-style: italic;"&gt;mantra&lt;/span&gt; which each and every employee can relate to and when she comes to her desk she is motivated to work towards the realization of that &lt;span style="font-style: italic;"&gt;mantra&lt;/span&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646064517775310786-7860961560692177910?l=singh-sandeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://singh-sandeep.blogspot.com/feeds/7860961560692177910/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1646064517775310786&amp;postID=7860961560692177910' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/7860961560692177910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/7860961560692177910'/><link rel='alternate' type='text/html' href='http://singh-sandeep.blogspot.com/2007/01/mission-statement_12.html' title='Mission Statement'/><author><name>Sandeep</name><uri>http://www.blogger.com/profile/15200346525886007582</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646064517775310786.post-2843202722780523752</id><published>2007-01-11T21:35:00.001-08:00</published><updated>2007-08-13T11:25:13.042-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Exception Handling'/><category scheme='http://www.blogger.com/atom/ns#' term='Coding'/><title type='text'>Exception Handling and Performance Issues</title><content type='html'>In this section I will talk about the cost of exceptions in JAVA and how to avoid them&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;The cost of try catch block without an exception:&lt;/span&gt;&lt;br /&gt;The VM later than 1.3 have been improved not to impose any penalty in this situation, so no extra overhead is there.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;The cost of try catch block with an exception:&lt;/span&gt;&lt;br /&gt;Throwing an exception and executing the catch block has a significant overhead, which is mainly due to the cost of getting the snapshot of the stack when the exception is created. The cost is&lt;br /&gt;large and so one should avoid throwing exceptions as a part of the normal code flow. If your application has been implemented to throw exception during the normal flow of the program , you should consider them during evaluating the performance of your application.&lt;br /&gt;&lt;br /&gt;Let us consider this code fragment&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;public boolean test1(Object obj) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;       try {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;           String str = (String)obj ;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;           return true ;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;       }catch(ClassCastException e){&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;           return false ;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;       }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;   }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;public boolean test2(Object obj) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;       if(obj instanceof String) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;           return true;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;       }else {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;           return false;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;       }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;   }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If the time taken to excecute test2 is 1 unit then the time taken by test1 is 100 unit for JDK 1.4&lt;br /&gt;Which demostrates the fact that throwing exception can be very costly when we are building enterprise applications.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I will talk about using Exceptions without the Stack trace overhead in the next part :-)&lt;br /&gt;&lt;br /&gt;Reference: Java Performance Tuning by Jack Shirazi&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646064517775310786-2843202722780523752?l=singh-sandeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://singh-sandeep.blogspot.com/feeds/2843202722780523752/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1646064517775310786&amp;postID=2843202722780523752' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/2843202722780523752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/2843202722780523752'/><link rel='alternate' type='text/html' href='http://singh-sandeep.blogspot.com/2007/01/exception-handling-and-performance.html' title='Exception Handling and Performance Issues'/><author><name>Sandeep</name><uri>http://www.blogger.com/profile/15200346525886007582</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1646064517775310786.post-7993714812084039791</id><published>2007-01-10T10:18:00.000-08:00</published><updated>2007-08-13T11:21:52.984-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Search'/><category scheme='http://www.blogger.com/atom/ns#' term='Local Search'/><title type='text'>Ask City</title><content type='html'>I recently visited this site &lt;a href="http://city.ask.com/city"&gt;Ask City&lt;/a&gt;  , it is coupled with a  number of third party sources to provide local information in a very user friendly way.The main features of this site includes maps movies  events and business.&lt;br /&gt;With Local Search gaining momentum in India and a lot of dot com sites coming up in this domain, I think Ask City is a worth while site for benchmarking.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1646064517775310786-7993714812084039791?l=singh-sandeep.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://singh-sandeep.blogspot.com/feeds/7993714812084039791/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1646064517775310786&amp;postID=7993714812084039791' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/7993714812084039791'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1646064517775310786/posts/default/7993714812084039791'/><link rel='alternate' type='text/html' href='http://singh-sandeep.blogspot.com/2007/01/ask-city.html' title='Ask City'/><author><name>Sandeep</name><uri>http://www.blogger.com/profile/15200346525886007582</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
