<?xml version="1.0"?><rss version="2.0"><channel><title>e Upendra .com - Blog</title><link>http://www.eupendra.com/</link><description>Upendra's Blog on various topics such as Tech, Humor, Hindi, and General.</description><language>en-us</language><pubDate>7/29/2010 10:10:59 PM</pubDate><lastBuildDate>7/29/2010 10:10:59 PM</lastBuildDate><item><title>The First Ever Google Chrome Crash!</title><link>http://www.eupendra.com/Blog.aspx?BlogId=633219944726284022</link><description>&lt;p&gt;Today Google Chrome crashed for the first time, and with it, it took away 15 tabs. The really frustrating thing is that it did not care to restore my session :(&lt;/p&gt;
&lt;img src="http://lh6.ggpht.com/eupendra/SMEM3LnU2FI/AAAAAAAABOo/RABdO3dCToc/s400/Chrome%20Crashing.jpg" /&gt;
&lt;p&gt;I am wondering where the process isolation for each tab is. But then, it's a beta. Can't complain much...&lt;/p&gt;
&lt;p&gt;Hey! Why gmail is still in beta? Does it mean that one day I will find all my emails gone, and I cant complain because its a beta? That will be too frustrating. I have been using gmail for almost 4 years now and I am totally dependent on it...&lt;p&gt;
&lt;p&gt;Someone please explain me this.</description><pubDate>2008-09-05T16:20:00</pubDate><guid>http://www.eupendra.com/Blog.aspx?BlogId=633219944726284022</guid></item><item><title>Why I Love and Why I Hate Google Crome</title><link>http://www.eupendra.com/Blog.aspx?BlogId=633233173828176022</link><description>&lt;p&gt;After Google launched the beta of its browser Chrome, I started exploring it. I was in love with it within minutes. Gmail was opening faster than Outlook, and so were other site. However, by the evening, I started disliking it as well. Its become a kind of love-hate relationship. 
&lt;p&gt;Here I am trying to put rationally why I love it and why I hate it.
&lt;h2&gt;Why I am in love with Chrome&lt;/h2&gt;
&lt;h3&gt;Its Fast&lt;/h3&gt;
&lt;p&gt;The first thing, it is blazingly fast. The difference is visible. Working with JavaScript intensive sites like Gmail is especially a great experience. As I mentioned earlier, the time to open emails and going back to inbox seems actually faster than Outlook. (I do not want to talk about Lotus Notes, that I HAVE to use at work. Anyone who has worked with it, know how painfully resource hungry Lotus Notes is.)
&lt;p&gt;Other sites open fast too. Moreover, the difference is visible. You do not need a specialized test to see it. If you think a proper test is needed, &lt;a href="http://community.zdnet.co.uk/blog/0,1000000567,10009139o-2000331777b,00.htm"&gt; see this page&lt;/a&gt;, which has run a early performance test and is wayyyyyy better than IE7 and much better than any competition.
&lt;h3&gt;Dragging dropping tabs&lt;/h3&gt;
&lt;p&gt;Dragging out a tab to form a new window, and then draggin it back to the orginal window is so much fun. I don't know if I will ever use this feature. But its definitely good :-) &lt;/P&gt;
&lt;img src="http://lh3.ggpht.com/eupendra/SL-FTiBNR3I/AAAAAAAABOg/p4JU1oQWgeQ/s800/DragTab.JPG" /&gt;
&lt;h3&gt;Keyboard shortcuts&lt;/h3&gt;
&lt;p&gt;Chrome has some interesting Keyboard Shortcuts. Below is few of my favorite. The one I like most is CTRL + K. It puts a ? in the address bar and then you just start type what you want to search using your default search engine.
&lt;p&gt;You can get a full list &lt;a href="http://www.google.com/support/chrome/bin/answer.py?answer=95743"&gt;here&lt;/a&gt;.
&lt;ul&gt;
&lt;li&gt;Ctrl+N — Open a new window
&lt;li&gt;Ctrl+Shift+N — Open a new window in incognito mode
&lt;li&gt;Ctrl+T — Open a new tab
&lt;li&gt;Ctrl+Shift+T — Reopen the last tab you’‘ve closed. Google Chrome remembers the last 10 tabs you’‘ve closed.
&lt;li&gt;Ctrl+1 through Ctrl+8 — Switch to the tab at the specified position number. The number you press represents a position on the tab strip.
&lt;li&gt;Ctrl+9 — Switch to the last tab
&lt;li&gt;Ctrl+Tab or Ctrl+PgDown — Switch to the next tab
&lt;li&gt;Ctrl+Shift+Tab orCtrl+PgUp — Switch to the previous tab
&lt;li&gt;Alt+Home — Open your homepage
&lt;li&gt;Type a web address, then pressAlt+Enter — Open your web address in a new tab
&lt;li&gt;Shift+Escape — View the Task manager
&lt;li&gt;Ctrl+G or F3 — Find next match for your input in the find-in-page box
&lt;li&gt;Ctrl+Shift+G or Shift+F3 — Find previous match for your input in the find-in-page box
&lt;li&gt;Ctrl+U — View source
&lt;/ul&gt;
&lt;h3&gt;Task Manager&lt;/h3&gt;
&lt;p&gt;I have a bad (?) habit of keeping 20-30 tabs open at once in FireFox. (I cant think of doing this in IE for the obvious reasons.) It does happen sometimes that because of one bad performing page, my whole session is gone. The Session Restore works most of times, but sometimes it does not. 
&lt;p&gt;With Chrome, you have process isolation for each tab. Therefore, if one tab dies, only that tab dies. The other tabs are safe. Really a welcoming feature! 
&lt;p&gt;Another useful thing that comes with it, is the Task Manager. Chrome has its own task manager so you can see how each tab and each plug-in is working. Cool!&lt;br&gt;
&lt;img src="http://lh3.ggpht.com/eupendra/SL97h9Q8goI/AAAAAAAABOM/XtV027gFDpM/s800/ChromeTaskManager.JPG"/&gt;
&lt;h3&gt;Bookmarklets&lt;/h3&gt;
&lt;p&gt;&lt;a href="http://www.bookmarklets.com"&gt;Bookmarklets&lt;/a&gt; is one interesting thing, that you should give it a try. These small JavaScript, saved as favorites, do things like changing page color, resizing window to a specified size, searching the selected word in dictionary, and may other interesting things. 
&lt;div class="code"&gt; Something off topic, the web application I work on has a page with lots of question, where you have to answer No to all the question before you can proceed further. It would of use practically, but during the development, I just need to say No to all. I wrote a simple script to answer No to all these question and saved it as a bookmarklet. Works great for my whole team.&lt;/div&gt;
&lt;p&gt;Coming back to the point, these Bookmarklets are IE specific, and do not work in FireFox. However, they do work in Chrome. Means one thing to mean, Chrome has better support for the Javascript.

&lt;h2&gt;Why I hate Chrome&lt;/h2&gt;
&lt;h3&gt;Organizing Bookmarks &lt;/h3&gt;
&lt;p&gt;The fist bad thing is no easy way to organize bookmarks. It imported my FireFox and IE bookmarks very easily, but it put all FireFox bookmarks in one ugly folder. The only way to organize is to drag and drop.
&lt;h3&gt;No RSS Feeds&lt;/h3&gt;
&lt;p&gt;It has no support for RSS feeds. Firefox and even IE handle RSS feeds. When RSS feeds are becoming so popular, I do not believe how Google could ignore handling RSS feeds. If you click on RSS link, all you will see the content XML, without formatting, filling your screen. Ugly!
&lt;p&gt;As expected after experiencing the RSS torture, XML files do not open. IE and FireFox handle them so well.
&lt;h3&gt;Bad RAM management&lt;/h3&gt;
&lt;p&gt;If you leave Chrome open for while, go to some other application, and come back, the tabs have been erased from the RAM. The result is that when you go to a tab, you see a blank screen and then the content starts to appear. This happens when my Laptop has 2 GB of RAM.
&lt;h3&gt;Missing Keyboard Shortcuts&lt;/h3&gt;
&lt;p&gt;There is no keyboard shortcut to append .org or .net. Opera and FireFox have it since long.

&lt;p&gt;
I am sure that there will be more things showing themselves as I continue using it. Until then, I am going back to use it. Post in the comments what you think.</description><pubDate>2008-09-04T10:54:00</pubDate><guid>http://www.eupendra.com/Blog.aspx?BlogId=633233173828176022</guid></item><item><title>View page source when right-click is disabled</title><link>http://www.eupendra.com/Blog.aspx?BlogId=633270900601845000</link><description>&lt;p&gt;There are instances the page uses frames, and you want to view the page source.  If you do View &amp;gt; Source, it will not show you the source of the page that you want to view, but only the container page. You could right click and say view source, but then there are certain sites which have disabled right click using javascript. What would you do then?&lt;/p&gt;&lt;p&gt;Solution: Use &lt;a href="http://www.maxthon.com/download.htm"&gt;Maxthon &lt;/a&gt;browser. &lt;/p&gt;&lt;p&gt;In the bottom right of the browser, you will see a button that says "Force Open Links in New Tabs". &lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;img src="http://lh3.google.com/eupendra/RwRuMt3YKmI/AAAAAAAAAXg/DLPCZHiJL04/s800/maxthon.gif"&gt;&lt;/p&gt;&lt;p&gt;Before clicking a link, that will opens the page in the frame, click  this button. Now the pages will open in a new tab. (You  can turn it off later if it is irritating). You will have the page  opened in a new tab without frames. Now you can always use the View  &amp;gt; Source menu option. &lt;/p&gt;&lt;p&gt;Simple but useful tip I would say.&lt;/p&gt;</description><pubDate>2007-10-04T10:21:00</pubDate><guid>http://www.eupendra.com/Blog.aspx?BlogId=633270900601845000</guid></item><item><title>The Buffalo Theory</title><link>http://www.eupendra.com/Blog.aspx?BlogId=633259699741406000</link><description>&lt;p&gt;Here is what they called, Drunken Wisdom: The Buffalo Theory&lt;/p&gt;&lt;p&gt;I hope you will it as much as I did...&lt;/p&gt;  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &lt;p&gt;&lt;img src="http://lh6.google.com/eupendra/RvNZit3YKlI/AAAAAAAAAXU/u1T93moGRsE/s800/buffalo.jpg"&gt;&lt;/p&gt;</description><pubDate>2007-09-21T11:12:00</pubDate><guid>http://www.eupendra.com/Blog.aspx?BlogId=633259699741406000</guid></item><item><title>GMail V2 - Taking Gmail to the next level</title><link>http://www.eupendra.com/Blog.aspx?BlogId=633259029126562000</link><description>I came across a few scripts to enhance the functionality of GMail. I was impressed! But then, I found a Firefox extension: Better GMail, and I was speechless.&lt;p&gt;This has around 25 scripts to take GMail literally to the next level. Do try it out, you will not regret. &lt;/p&gt;&lt;p&gt;&lt;a href="http://lifehacker.com/software/gmail/lifehacker-code-better-gmail-firefox-extension-251923.php" target="_blank"&gt;Click Here &lt;/a&gt;to go the developers page &lt;br&gt;&lt;br&gt;&lt;/p&gt;</description><pubDate>2007-09-20T16:35:00</pubDate><guid>http://www.eupendra.com/Blog.aspx?BlogId=633259029126562000</guid></item><item><title>Funny Linux Commands to bring a smile </title><link>http://www.eupendra.com/Blog.aspx?BlogId=633258092013125000</link><description>I found these commands quite funny, haven't tried them yet. Downloading Ubuntu, will try soon :-)&lt;p class="code"&gt;% cat "food in cans"&lt;br&gt;cat: can't open food in cans&lt;br&gt;&lt;br&gt;% nice man   woman&lt;br&gt;No manual entry for woman.&lt;br&gt;&lt;br&gt;% "How would you rate your boss's   incompetence?&lt;br&gt;Unmatched ".&lt;br&gt;&lt;br&gt;%   [Where is Osama?&lt;br&gt;Missing ].&lt;br&gt;&lt;br&gt;% ^How did the sex change operation   go?^&lt;br&gt;Modifier failed.&lt;br&gt;&lt;br&gt;% If I had a ( for every $ the Congress spent,   what would I have?&lt;br&gt;Too many ('s.&lt;br&gt;&lt;br&gt;% make love&lt;br&gt;Make: Don't know how   to make love. Stop.&lt;br&gt;&lt;br&gt;% sleep with me&lt;br&gt;bad character&lt;br&gt;&lt;br&gt;% got a   light?&lt;br&gt;No match.&lt;br&gt;&lt;br&gt;% man: why did you get a divorce?&lt;br&gt;man:: Too many   arguments.&lt;br&gt;&lt;br&gt;% !:say, what is saccharine?&lt;br&gt;Bad substitute.&lt;br&gt;&lt;br&gt;%   %blow&lt;br&gt;%blow: No such job.&lt;br&gt;&lt;br&gt;% \(-&lt;br&gt;(-: Command not found.&lt;br&gt;&lt;br&gt;$   PATH=pretending! /usr/ucb/which sense&lt;br&gt;no sense in pretending!&lt;br&gt;&lt;br&gt;$ drink   matter&lt;br&gt;matter: cannot create&lt;br&gt;&lt;br&gt;&lt;/p&gt;</description><pubDate>2007-09-19T14:33:00</pubDate><guid>http://www.eupendra.com/Blog.aspx?BlogId=633258092013125000</guid></item><item><title>Ignore whitespace in Beyond Compare</title><link>http://www.eupendra.com/Blog.aspx?BlogId=633256306902500000</link><description>When you compare code using &lt;a href="http://www.scootersoftware.com"&gt;Beyond Compare&lt;/a&gt; and see a big red block of difference, many times the difference is actually just of tab space.   &lt;p&gt;You can set your beyond compare to ignore the leading and trailing whitespace. Go to Tools &amp;gt; Options &amp;gt; Rules. Select 'Everything Else' at the bottom. Click Edit. Go to Importance tab and check Leading Whitespace and Trailing Whitespace. Finally, close all boxes. That's it!&lt;/p&gt;&lt;p&gt;Here I have assumed that you are comparing aspx or .vb/.cs files. If you are comparing file types which are defined in Beyond Compare, you need to select the appropriate rule instead of everything else.&lt;/p&gt;&lt;p&gt;&lt;img src="http://lh5.google.com/eupendra/Ru4t1tMAcGI/AAAAAAAAAWw/eopxt8B2mII/s800/BeyondCompare.JPG" /&gt;&lt;br /&gt;&lt;/p&gt;</description><pubDate>2007-09-17T12:58:00</pubDate><guid>http://www.eupendra.com/Blog.aspx?BlogId=633256306902500000</guid></item><item><title>झूठपकड़ रोबोट</title><link>http://www.eupendra.com/Blog.aspx?BlogId=633253762207343000</link><description>एक दिन राजू के पापा एक रोबोट ले कर आये. वह रोबोट झूठपकड़ सकता था और झूठबोलने वाले को गाल पर खीँच कर चांटा मार देता था.&lt;p&gt;आज राजू स्कूल से घर देर से आया था... पापा ने पूछा "घर लौटने में देर क्यो हो गयी?"&lt;br&gt;"आज हमारी एक क्लास थी" राजू ने जवाब दिया...&lt;br&gt;रोबोट अचानक अपनी जगह से उछला और जमकर राजू के गाल पर चांटा मार दिया.&lt;br&gt;पापा हंसकर बोले, "ये रोबोट हर झूठको पकड़ सकता है और झूठबोलने वाले को चांटा भी मारता है. अब सच क्या है यह बताओ... कहाँ गए थे?"&lt;br&gt;"में फिल्म देखने गया था" राजू बोला. "कौन सी फिल्म?" पापा ने कड़ककर पूछा&lt;br&gt;"हनुमान"&lt;br&gt;चटाक... अभी राजू की बात पूरी भी नहीं हुई थी की उसके गाल पर रोबोट ने एक जोर का चांटा मारा.&lt;br&gt;"कौन सी फिल्म?" पापा ने फिर पूछा.&lt;br&gt;"कातिल जवानी."&lt;br&gt;&lt;/p&gt;&lt;p&gt;पापा ग़ुस्से में बोले "शर्म आनी चाहिए तुम्हे. जब में तुम्हारे जितना था तब ऐसी हरकत नहीं किया करता था."&lt;br&gt;चटाक... रोबोट ने एक चांटा मारा... इस बार पापा के गाल पर. &lt;/p&gt;&lt;p&gt;यह सुनते ही मम्मी किचन में से आते हुए बोली "आख़िर तुम्हारा बेटा है ना... झूठतो बोलेगा ही"&lt;br&gt;अब मम्मी की बारी थी... चटाक... . &lt;br&gt;&lt;/p&gt;</description><pubDate>2007-09-14T14:17:00</pubDate><guid>http://www.eupendra.com/Blog.aspx?BlogId=633253762207343000</guid></item><item><title>Format &lt;i&gt;decimal datatype&lt;/i&gt; with Commas in T-SQL </title><link>http://www.eupendra.com/Blog.aspx?BlogId=633250165615625000</link><description>Ever fall into a situation where a column is a Decimal, and you want the output to have a comma after every three digits?&lt;br&gt;T-SQL's CONVERT function can do it for you. The syntax of the function is:&lt;p class="code"&gt;CONVERT &lt;b&gt;( &lt;/b&gt;&lt;i&gt;data_type &lt;/i&gt;[ &lt;b&gt;( &lt;/b&gt;&lt;i&gt;length &lt;/i&gt;&lt;b&gt;) &lt;/b&gt;] &lt;b&gt;, &lt;/b&gt;&lt;i&gt;expression&lt;/i&gt; [ &lt;b&gt;, &lt;/b&gt;&lt;i&gt;style &lt;/i&gt;] &lt;b&gt;)&lt;br&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Here, we will be utilizing the power of the last parameter &lt;i&gt;style.&lt;/i&gt; The style can be set to the following three values, when converting money &lt;i&gt;datatype &lt;/i&gt;into a character datatype:&lt;/p&gt;&lt;p&gt;0 - No commas and only 2 decimal points&lt;br&gt;1 - Commas every 3 digits, and only 2 decimal points&lt;br&gt;2 - No command, and 4 decimal points.&lt;/p&gt;&lt;p&gt;Now since, the datatype stored in the table is actually decimal, we first need to convert it into money, and then convert it into varchar or char.&lt;/p&gt;&lt;p class="code"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: 'Courier New';"&gt;select &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style="color: fuchsia;"&gt;convert&lt;/span&gt;&lt;span style="color: gray;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;varchar&lt;/span&gt;&lt;span style="color: gray;"&gt;(&lt;/span&gt;50&lt;span style="color: gray;"&gt;),&lt;/span&gt;&lt;span style="color: fuchsia;"&gt;convert&lt;/span&gt;&lt;span style="color: gray;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;money&lt;/span&gt;&lt;span style="color: gray;"&gt;,&lt;/span&gt;&lt;span style="color: red;"&gt;'54120000.2154'&lt;/span&gt;&lt;span style="color: gray;"&gt;),&lt;/span&gt;1&lt;span style="color: gray;"&gt;)&lt;br&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;The result would be: &lt;br&gt;&lt;/p&gt;&lt;p class="code"&gt;--------------------&lt;br&gt;54,120,000.22&lt;br&gt;(1 row(s) affected)&lt;/p&gt;&lt;p&gt;Simple. Isn't it?&lt;/p&gt;</description><pubDate>2007-09-10T10:22:00</pubDate><guid>http://www.eupendra.com/Blog.aspx?BlogId=633250165615625000</guid></item><item><title>Online Names  Misread</title><link>http://www.eupendra.com/Blog.aspx?BlogId=633240908950363000</link><description>&lt;p style="margin-bottom: 12pt;"&gt;All of the following are  legitimate companies that didn't spend quite enough time considering how their  online names might appear...and be misread.&lt;br&gt;  These are not made up. Check them out yourself! &lt;/p&gt;    &lt;ol&gt;  &lt;li&gt;"Who  Represents" is where you can find the name of the agent that represents any celebrity.&amp;nbsp;&amp;nbsp;Their Web site is &lt;a href="http://www.whorepresents.com/" target="_blank"&gt;www.&lt;i&gt;whore&lt;/i&gt;presents.com&lt;/a&gt;&lt;br&gt;  &lt;/li&gt;&lt;li&gt;Experts Exchange is a knowledge base where programmers can exchange advice and views at&amp;nbsp;&amp;nbsp;&lt;a href="http://www.expertsexchange.com/" target="_blank"&gt; www.expert&lt;i&gt;sex&lt;/i&gt;change.com&lt;/a&gt;&lt;br&gt;    &lt;/li&gt;&lt;li&gt;Looking for a pen? Look no further than Pen Island  at &lt;a href="http://www.penisland.net/" target="_blank"&gt;www.penis&lt;i&gt;land&lt;/i&gt;.net&lt;/a&gt; &lt;br&gt;    &lt;/li&gt;&lt;li&gt;Need a therapist? Try Therapist Finder at &lt;a href="http://www.therapistfinder.com/" target="_blank"&gt;www.the&lt;i&gt;rapist&lt;/i&gt;finder.com&lt;/a&gt;&lt;br&gt;  &lt;/li&gt;&lt;li&gt;There's the Italian Power Generator company, &lt;a href="http://www.powergenitalia.com/" target="_blank"&gt;www.power&lt;i&gt;genital&lt;/i&gt;ia.com&lt;/a&gt;&lt;br&gt;    &lt;/li&gt;&lt;li&gt;And don't forget the Mole Station Native Nursery in New South Wales &lt;a href="http://www.molestationnursery.com/" target="_blank"&gt;http://www.&lt;i&gt;molestation&lt;/i&gt;nursery&lt;wbr&gt;.com/&lt;/a&gt;&lt;br&gt;  &lt;/li&gt;&lt;li&gt;If you're looking for IP computer software, there's always &lt;a href="http://www.ipanywhere.com/" target="_blank"&gt;  http://www.&lt;i&gt;i&lt;/i&gt;P&lt;i&gt;anywhere&lt;/i&gt;.com/&lt;/a&gt;&lt;br&gt;  &lt;/li&gt;&lt;li&gt;The First Cumming Methodist Church Web site is&amp;nbsp;&amp;nbsp;&lt;a href="http://www.cummingfirst.com/" target="_blank"&gt; www.cummingfirst.com&lt;/a&gt;&lt;br&gt;  &lt;/li&gt;&lt;li&gt;And the designers at Speed of Art await you at their wacky Web site, &lt;a href="http://www.speedofart.com/" target="_blank"&gt;http://www.speedo&lt;i&gt;fart&lt;/i&gt;.com/  &lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;</description><pubDate>2007-08-30T17:14:00</pubDate><guid>http://www.eupendra.com/Blog.aspx?BlogId=633240908950363000</guid></item><item><title>XML data truncated </title><link>http://www.eupendra.com/Blog.aspx?BlogId=633237768868332000</link><description>I was working on XML feeds for my site and found a strange problem.&lt;p&gt;The XML returned by the SP was getting truncated. After 'googling' for a while, I found this on MSDN:&lt;/p&gt;&lt;h4&gt;The XML data row is truncated at 2,033 characters when you use the SqlDataReader object&lt;/h4&gt;&lt;br&gt;  When you read Extensible Markup Language (XML) data from Microsoft SQL Server by using the &lt;b&gt;SqlDataReader&lt;/b&gt;  object, the XML in the first column of the first row is truncated at  2,033 characters. You expect all of the contents of the XML data to be  contained in a single row and column.&lt;p&gt;This was exactly my problem. I found the solution as well. The solution is to use &lt;b&gt;ExecuteXmlReader&lt;/b&gt; instead of SqlDataReader.&lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;div class="code"&gt;&lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;      &lt;/span&gt;&lt;span style="color: blue;"&gt;Dim&lt;/span&gt; con &lt;span style="color: blue;"&gt;As&lt;/span&gt;      &lt;span style="color: blue;"&gt;New&lt;/span&gt; System.Data.SqlClient.SqlConnection&lt;br&gt;     &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;      &lt;span style=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;con.ConnectionString       = "whatever&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;"      &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;      &lt;/span&gt;con.Open()&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;      &lt;/span&gt;&lt;span style="color: blue;"&gt;Dim&lt;/span&gt; cmd &lt;span style="color: blue;"&gt;As&lt;/span&gt;      &lt;span style="color: blue;"&gt;New&lt;/span&gt; System.Data.SqlClient.SqlCommand&lt;br&gt;     &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;      &lt;span style=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;cmd.Connection       = cn&lt;br&gt;     &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;      &lt;span style=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;cmd.CommandText       = "SPName or SQL Statement"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;      &lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;span style=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;      &lt;/span&gt;&lt;span style="color: blue;"&gt;Dim&lt;/span&gt; ObjXMLReader&lt;span style="color: blue;"&gt;As&lt;/span&gt;      System.Xml.XmlReader&lt;br&gt;     &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;      &lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;       &lt;span style=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;        Dim&lt;/span&gt; OutPut &lt;span style="color: blue;"&gt;As&lt;/span&gt;&amp;nbsp;String&lt;br&gt;      &lt;/span&gt;      &lt;br&gt;     &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;      &lt;span style=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;ObjXMLReader=       cmd.ExecuteXmlReader()&lt;br&gt;     &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;      &lt;span style=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;ObjXMLReader.Read()&lt;br&gt;     &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;      &lt;span style=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;       Do&lt;/span&gt; &lt;span style="color: blue;"&gt;While&lt;/span&gt; ObjXMLReader.ReadState       &amp;lt;&amp;gt; System.Xml.ReadState.EndOfFile&lt;br&gt;     &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;      &lt;span style=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OutPut        &amp;amp;= ObjXMLReader &lt;/span&gt;.ReadOuterXml()&lt;br&gt;     &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: 'Courier New';"&gt;      &lt;span style=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;      &lt;st1:place w:st="on"&gt;       &lt;span style="color: blue;"&gt;Loop&lt;/span&gt;&lt;/st1:place&gt;&lt;span style="color: blue;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;      &lt;/div&gt;&lt;p&gt;You can see the detailed articles &lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;q310378&amp;amp;id=kb;en-us;q310378&amp;amp;ln=en-us&amp;amp;rnk=1&amp;amp;sd=msdn&amp;amp;fr=0&amp;amp;qry=q310378&amp;amp;src=dhcs_mspss_msdn_srch&amp;amp;spr=msall"&gt;here &lt;/a&gt;and &lt;a href="http://support.microsoft.com/kb/316016/"&gt;here&lt;/a&gt;.&lt;br&gt;&lt;/p&gt;  </description><pubDate>2007-08-27T02:01:00</pubDate><guid>http://www.eupendra.com/Blog.aspx?BlogId=633237768868332000</guid></item><item><title>3 Engineer Jokes</title><link>http://www.eupendra.com/Blog.aspx?BlogId=633235952413645000</link><description>&lt;h5&gt;1&lt;/h5&gt;  Two engineering students were walking across campus when one said, "Where did you get such a great bike?"&lt;p&gt;The  second engineer replied, "Well, I was walking along yesterday minding  my own business when a beautiful woman rode up on this bike. She threw  the bike to the ground, took off all her clothes and said, "Take what  you want."  &lt;/p&gt;&lt;p&gt;"The second engineer nodded approvingly, "Good choice; the clothes probably wouldn't have fit."&lt;/p&gt;&lt;h5&gt;2&lt;/h5&gt;An architect, an artist and an engineer were discussing whether it was better to spend time with the wife or a mistress.  &lt;p&gt;The architect said he enjoyed time with his wife, building a solid  foundation for an enduring relationship. The artist said he enjoyed  time with his mistress, because of the passion and mystery he found  there. The engineer said, "I like both." "Both?" Engineer: "Yeah.  &lt;/p&gt;&lt;p&gt;If you have a wife and a mistress, they will each assume you are  spending time with the other woman, and you can go to the lab and get  some work done."&lt;/p&gt;&lt;h5&gt;3&lt;/h5&gt;A pastor, a doctor and an engineer were waiting one morning for a particularly slow group of golfers.  &lt;p&gt;The engineer fumed, "What's with these guys? We must have been waiting for 15 minutes!"&lt;/p&gt;&lt;p&gt;The doctor chimed in, "I don't know, but I've never seen such ineptitude! "&lt;/p&gt;&lt;p&gt;The pastor said, "Hey, here comes the greens-keeper. Let's have a word with him." [dramatic pause]"Hi George. Say, what's with that group ahead of us? They're rather slow, aren't they?"&lt;/p&gt;&lt;p&gt;The  greens-keeper replied, "Oh, yes, that's a group of blind fire-fighters.  They lost their sight saving our clubhouse from a fire last year, so we  always let them play for free anytime." The group was silent for a  moment.  &lt;/p&gt;&lt;p&gt;The pastor said, "That's so sad. I think I will say a special prayer for them tonight."&lt;/p&gt;&lt;p&gt;The doctor said, "Good idea. And I'm going to contact my ophthalmologist buddy and see if there's anything he can do for them."  &lt;/p&gt;&lt;p&gt;The engineer said, "Why can't these guys play at night?"&lt;/p&gt;</description><pubDate>2007-08-24T23:34:00</pubDate><guid>http://www.eupendra.com/Blog.aspx?BlogId=633235952413645000</guid></item><item><title>Impact of Job Change</title><link>http://www.eupendra.com/Blog.aspx?BlogId=633235951735988000</link><description>&lt;p&gt;A taxi passenger tapped the driver on the shoulder to ask him a    question.   The driver screamed, lost control of the car, nearly hit a bus, went up on the footpath, and stopped few centimeters from a shop window.  &lt;/p&gt;&lt;p&gt;For a second everything went quiet in the cab, and then the driver said: "Look mate, don't ever do that again. You scared the daylights out of me!".  &lt;/p&gt;&lt;p&gt;The passenger apologized and said, "I didn't realize that a little tap would scare you so much."    &lt;/p&gt;&lt;p&gt;The driver replied, "Sorry, it's not really your fault. Today is my first day as a cab driver - I've been driving a van carrying dead Bodies for the last 25 years... &lt;/p&gt;</description><pubDate>2007-08-24T23:32:00</pubDate><guid>http://www.eupendra.com/Blog.aspx?BlogId=633235951735988000</guid></item><item><title>When was Windows installed?</title><link>http://www.eupendra.com/Blog.aspx?BlogId=633233173828176000</link><description>    &lt;p&gt;Ever wanted to know when was the last time you installed Windows on your PC? &lt;/p&gt;    &lt;p&gt;Here is an easy way. Open command prompt, and type&lt;br /&gt;&lt;/p&gt;    &lt;p class="code"&gt;systeminfo | find /i "install date"&lt;/p&gt;    &lt;p&gt;    &lt;/p&gt;    &lt;p&gt;This will give you a result like this:&lt;/p&gt;    &lt;p&gt;      &lt;img src="http://lh4.google.com/eupendra/RsqqgNoR7hI/AAAAAAAAAUI/RYCpGc3CVuw/s800/WinIsntallDate.JPG" /&gt;    &lt;/p&gt;    &lt;p&gt;The command systeminfo alone will give you a long list about current system configuration, very much like the &lt;em&gt;sysinfo32 &lt;/em&gt;command. &lt;em&gt;sysinfo32&lt;/em&gt; has a GUI and &lt;em&gt;systeminfo&lt;/em&gt; is command line. When we write a command after a &lt;em&gt;pipe&lt;/em&gt; ( | ), we are actually redirecting the results to another command. So, out of the long results returned by &lt;em&gt;systeminfo&lt;/em&gt;, we are filtering out the install date by using &lt;em&gt;find&lt;/em&gt; command. Simple, isn't it?&lt;/p&gt;  </description><pubDate>2007-08-21T18:23:00</pubDate><guid>http://www.eupendra.com/Blog.aspx?BlogId=633233173828176000</guid></item><item><title>Truth about Sardars</title><link>http://www.eupendra.com/Blog.aspx?BlogId=633232295454218000</link><description>    &lt;code&gt;Source: a forwarded mail.&lt;/code&gt;    &lt;p&gt;In the diwali vacation, Jayant and his couple of friends had gone to Delhi.&lt;/p&gt;    &lt;p&gt;They rented a taxi for local sight-seeing. The driver was an old Sardar, and boys being boys, Jayant and his pals&lt;br /&gt;began cracking Sardarji jokes, just to insinuate the old man.&lt;/p&gt;    &lt;p&gt;But to their surprise, the fellow remained unperturbed.&lt;/p&gt;    &lt;p&gt;At the end of the sight-seeing, they paid up the hire-charges. The Sardar returned the change.&lt;/p&gt;    &lt;p&gt;Moreover, he gave each one of them one rupee extra and said, (in Hindi, of course),''son, since morning you have been telling Sardarji jokes. I&lt;br /&gt;listened to them all and let me tell you, some of them were in a very bad taste. Still, I don't mind coz I know that you are young blood and are yet to see the world. But I have just one request. Here I am giving you one rupee each. Give it to the first Sardar beggar that you come across in this city."&lt;/p&gt;    &lt;p&gt;Jayant continued," That one rupee coin is still with me. I couldn't find a single Sardar begging on the streets of Delhi."&lt;/p&gt;    &lt;p&gt;Friends, we all love sardar jokes. But the fact of matter is that Sikhs are one of the most prosperous and diversified communities in the world. The secret behind their universal success, according to me, is their willingness to do any job with utmost dedication. &lt;/p&gt;    &lt;p&gt;A Sardar will drive a truck or set up a roadside garage or a dhaba, but he will never beg on the streets.&lt;/p&gt;  </description><pubDate>2007-08-20T17:59:00</pubDate><guid>http://www.eupendra.com/Blog.aspx?BlogId=633232295454218000</guid></item><item><title>काँच की बरनी और दो कप चाय </title><link>http://www.eupendra.com/Blog.aspx?BlogId=633222752986123000</link><description>&lt;P&gt;ये कहानी मुझे किसी ने ई-मेल की थी. इसका लेखक कौन है, ये तो नही मालूम, लेकिन ये है अच्छी.&lt;/P&gt;  &lt;P&gt;जीवन में जब सब कुछ एक साथ और जल्दी-जल्दी करने की इच्छा होती है, सब कुछ तेजी से पा लेने की इच्छा होती है, और हमें लगने लगता है कि दिन के चौबीस घंटे भी कम पड़ते हैं, उस समय ये बोध कथा, "काँच की बरनी और दो कप चाय" हमें याद आती है ।दर्शनशास्त्र के एक प्रोफ़ेसर कक्षा में आये और उन्होंने छात्र से कहा कि वे आज जीवन का एक महत्वपूर्ण पाठ पढाने वाले हैं...उन्होंने अपने साथ लाई एक काँच की बडी़ बरनी (जार) टेबल पर रखा और उसमें टेबल टेनिस की गेंदें डालने लगे और तब तक डालते रहे जब तक कि उसमें एक भी गेंद समाने की जगह नहीं बची... उन्होंने छात्र से पूछा - क्या बरनी पूरी भर गई ? हाँ... आवाज आई...फ़िर प्रोफ़ेसर साहब ने छोटे-छोटे कंकर उसमें भरने शुरु किये, धीरे-धीरे बरनी को हिलाया तो काफ़ी सारे कंकर उसमें जहाँ जगह खाली थी, समा गये, फ़िर से प्रोफ़ेसर साहब ने पूछा, क्या अब बरनी भर गई है, छात्र ने एक बार फ़िर हाँ.. कहा अब प्रोफ़ेसर साहब ने रेत की थैली से हौले-हौले उस बरनी में रेत डालना शुरु किया, वह रेत भी उस जार में जहाँ संभव था बैठ गई, अब छात्र अपनी नादानी पर हँसे... फ़िर प्रोफ़ेसर साहब ने पूछा,&amp;nbsp; अब तो यह बरनी पूरी भर गई ना ? हाँ.. अब तो पूरी भर गई है.. सभी ने एक स्वर में कहा..सर ने टेबल के नीचे से चाय के दो कप निकालकर उसमें की चाय जार में डाली, चाय भी रेत के बीच में स्थित थोडी़ सी जगह में सोख ली गई...प्रोफ़ेसर साहब ने गंभीर आवाज में समझाना शुरु किया - इस काँच की बरनी को तुम लोग अपना जीवन समझो... टेबल टेनिस की गेंदें सबसे महत्वपूर्ण भाग अर्थात भगवान, परिवार, बच्चे, मित्र, स्वा और शौक हैं, छोटे कंकर मतलब तुम्हारी नौकरी, कार, बडा़ मकान आदि हैं, और रेत का मतलब और भी छोटी-छोटी बेकार सी बातें, मनमुटाव, झगडे़ है..अब यदि तुमने काँच की बरनी में सबसे पहले रेत भरी होती तो टेबल टेनिस की गेंदों और कंकरों के लिये जगह ही नहीं बचती, या कंकर भर दिये होते तो गेंदें नहीं भर पाते, रेत &lt;BR&gt;जरूर आ सकती थी...ठीक यही बात जीवन पर लागू होती है...यदि तुम छोटी-छोटी बातों के पीछे पडे़ रहोगे और अपनी ऊर्जा उसमें नष्ट करोगे तो तुम्हारे पास मुख्य बातों के लिये अधिक समय नहीं रहेगा... मन के सुख के लिये क्या जरूरी है ये तु तय करना है । अपने बच्चों के साथ खेलो, बगीचे में पानी डालो, सुबह पत्नी के साथ घूमने निकल जाओ, घर के बेकार सामान को बाहर निकाल फ़ेंको, मेडिकल चेक-अप करवाओ..टेबल टेनिस गेंदों की फ़िक्र पहले करो, वही महत्वपूर्ण है... पहले तय करो कि क्या जरूरी है... बाकी सब तो रेत है..छात्र बडे़ ध्यान से सुन रहे थे.. अचानक एक ने पूछा, सर लेकिन आपने यह नहीं बताया कि "चाय के दो कप" क्या हैं ? प्रोफ़ेसर मुस्कुराये, बोले.. मैं सोच ही रहा था कि अभी तक ये सवाल किसी ने&amp;nbsp; नहीं किया... इसका उत्तर यह है कि, &lt;STRONG&gt;जीवन हमें कितना ही परिपूर्ण और संतुष्ट लगे, लेकिन अपने खास मित्र के साथ दो कप चाय पीने की जगह हमेशा होनी चाहिये&lt;/STRONG&gt; ।&lt;/P&gt;  &lt;P&gt;&amp;nbsp;&lt;/P&gt;</description><pubDate>2007-08-09T16:54:00</pubDate><guid>http://www.eupendra.com/Blog.aspx?BlogId=633222752986123000</guid></item><item><title>In search of NULL</title><link>http://www.eupendra.com/Blog.aspx?BlogId=634219944726284000</link><description>&lt;P&gt;NULL has a special meaning. This was created to fulfill the need of having a character, that means ’nothing’ and it equals ’nothing’. So, it doesn’t even equal itself. Suppose, you have a column named ’PRICE’ in your table with datatype ‘money’. For a particular product, you don’t have data for price. How would you store it? Store a zero? But that would mean that the product is free! &lt;/P&gt;  &lt;P&gt;Consider another scenario. You have a table, where you store the comments written by visitors on your site. Whenever a comment is written, you have to either approve it or disapprove it. If you disapprove, a ‘sorry’ mail is sent, if you approve, that comment is shown on your site, and a ‘thank you’ mail is sent. In this case, what would be the value of the column ‘approved’ initially?&lt;/P&gt;  &lt;P&gt;Above two cases make a good case for storing a NULL.&lt;/P&gt;  &lt;P&gt;Now the problem, how would you search for NULL in your query? The obvious answer would be to use something like:&lt;/P&gt;&lt;p class=code&gt;select * from sometable where somecolumn=NULL  &lt;P&gt;&lt;/P&gt;  &lt;P&gt;But above will NOT work. The reason is NULL is a special character and it equals nothing, not even it self. So, the solution to this problem is the IS NULL operator:&lt;/P&gt;&lt;p class=code&gt;select * from sometable where somecolumn IS NULL  &lt;P&gt;&lt;/P&gt;  &lt;P&gt;This works perfectly. Another solution is to set ANSI_NULLS to off:&lt;/P&gt;&lt;p class=code&gt;SET ANSI_NULLS OFF&lt;BR&gt;GO&lt;BR&gt;select * from sometable where somecolumn=NULL  &lt;P&gt;&lt;/P&gt;  &lt;P&gt;This will work fine as well. The reason for this is compliance to SQL-92 standards. When you set ANSI_NULLS to off, you are actually turning off the compliance to SQL-92 standards. Read more about it &lt;A href="http://msdn2.microsoft.com/en-US/library/ms188048.aspx" target=_blank&gt;here&lt;/A&gt;.&lt;/P&gt;  &lt;P&gt;Happy Coding!&lt;/P&gt;</description><pubDate>2007-08-08T09:25:00</pubDate><guid>http://www.eupendra.com/Blog.aspx?BlogId=634219944726284000</guid></item><item><title>eUpendra.com Goes live finally</title><link>http://www.eupendra.com/Blog.aspx?BlogId=633219944726284000</link><description>Ladies, and gentlemen. It gives me immense pleasure to announce that &lt;a href=""&gt;www.eUpendra.com&lt;/a&gt; is live...&lt;br&gt;I admit that it is not yet complete, there are broken links, dummy text, and error on the site, but still, it can be showed to the world now :-)&lt;br&gt;I will request all of you to &lt;a href="/Guestbook.aspx"&gt;sign my guest book&lt;/a&gt;.. &lt;br&gt;</description><pubDate>2007-08-06T10:54:00</pubDate><guid>http://www.eupendra.com/Blog.aspx?BlogId=633219944726284000</guid></item></channel></rss>