<?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-18313898</id><updated>2012-02-16T22:18:29.876+05:30</updated><category term='C#'/><category term='Personal'/><category term='Software Engineering'/><category term='General'/><category term='My Poems'/><category term='Techie Tips'/><category term='.Net'/><category term='Sql Server'/><category term='JavaScript And Ajax'/><category term='Project Estimation'/><category term='Photography'/><category term='F#'/><category term='ActionScript and Flex'/><category term='Sports'/><title type='text'>The Mystic Programmer</title><subtitle type='html'>Anu Viswan's Blog.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://anuviswan.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default?start-index=101&amp;max-results=100'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>239</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-18313898.post-6875547711216152283</id><published>2010-10-20T15:41:00.002+05:30</published><updated>2010-10-20T15:48:17.627+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Personal'/><title type='text'>Back to Blogging with a wonderful news.</title><content type='html'>It has been quite a while that i blogged anything. May be it was destined to be a special entry. So here i am. Dear friends, am getting married on 31st of Oct 2010. &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;It has been quite a wonderful journey so far for me and Sree. In fact, i realized just yesterday that it is already 6 months since our marriage got fixed. Life surely have taken a turn, but a very happy one indeed.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;It's quite a coincidence that this very blog played a crucial role in our relation and here i am, talking about our marriage using the same medium.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Pray for us dears.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-6875547711216152283?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/6875547711216152283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/6875547711216152283'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2010/10/back-to-blogging-with-wonderful-news.html' title='Back to Blogging with a wonderful news.'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-3828048756445015949</id><published>2010-05-13T15:05:00.004+05:30</published><updated>2010-05-13T15:12:18.805+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='Techie Tips'/><title type='text'>WSH object and Usage</title><content type='html'>Following is a list of WSH objects and its typical usage. I found it extremely useful ( courtesy MSDN)&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;table class="MsoNormalTable" border="1" cellspacing="0" cellpadding="0" width="480" style="width:5.0in;margin-left:20.0pt;border-collapse:collapse;border:none;  mso-border-alt:solid #BBBBBB .75pt"&gt;  &lt;tbody&gt;&lt;tr style="mso-yfti-irow:0;mso-yfti-firstrow:yes;height:15.75pt"&gt;   &lt;td width="156" valign="top" style="width:117.0pt;border:solid #BBBBBB 1.0pt;   mso-border-alt:solid #BBBBBB .75pt;background:#E5E5E5;padding:3.0pt 3.0pt 3.0pt 3.0pt;   height:15.75pt"&gt;   &lt;p&gt;&lt;span style="Segoe UI&amp;quot;;font-family:&amp;quot;;font-size:14.0pt;color:black;"&gt;Object&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="324" valign="top" style="width:243.0pt;border:solid #BBBBBB 1.0pt;   border-left:none;mso-border-left-alt:solid #BBBBBB .75pt;mso-border-alt:solid #BBBBBB .75pt;   background:#E5E5E5;padding:3.0pt 3.0pt 3.0pt 3.0pt;height:15.75pt"&gt;   &lt;p&gt;&lt;span style="Segoe UI&amp;quot;;font-family:&amp;quot;;font-size:14.0pt;color:black;"&gt;What you   can do with this object&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:1"&gt;   &lt;td width="156" valign="top" style="width:117.0pt;border:solid #BBBBBB 1.0pt;   border-top:none;mso-border-top-alt:solid #BBBBBB .75pt;mso-border-alt:solid #BBBBBB .75pt;   background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   .75pt;line-height:13.5pt"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/at5ydy31(v=VS.85).aspx"&gt;&lt;span style="color:#1364C4;"&gt;WScript Object&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="324" valign="top" style="width:243.0pt;border-top:none;border-left:   none;border-bottom:solid #BBBBBB 1.0pt;border-right:solid #BBBBBB 1.0pt;   mso-border-top-alt:solid #BBBBBB .75pt;mso-border-left-alt:solid #BBBBBB .75pt;   mso-border-alt:solid #BBBBBB .75pt;background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   36.75pt;text-indent:-.25in;line-height:13.5pt;mso-list:l3 level1 lfo1;   tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt;   mso-bidi-font-family:Symbol;mso-fareast-font-family:Symbol;   mso-bidi-font-family:Symbol;font-size:12.0pt;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Set and retrieve command line arguments&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   36.75pt;text-indent:-.25in;line-height:13.5pt;mso-list:l3 level1 lfo1;   tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt;   mso-bidi-font-family:Symbol;mso-fareast-font-family:Symbol;   mso-bidi-font-family:Symbol;font-size:12.0pt;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Determine the name of the script file&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   36.75pt;text-indent:-.25in;line-height:13.5pt;mso-list:l3 level1 lfo1;   tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt;   mso-bidi-font-family:Symbol;mso-fareast-font-family:Symbol;   mso-bidi-font-family:Symbol;font-size:12.0pt;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Determine the host file name (wscript.exe or   cscript.exe)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   36.75pt;text-indent:-.25in;line-height:13.5pt;mso-list:l3 level1 lfo1;   tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt;   mso-bidi-font-family:Symbol;mso-fareast-font-family:Symbol;   mso-bidi-font-family:Symbol;font-size:12.0pt;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Determine the host version information&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   36.75pt;text-indent:-.25in;line-height:13.5pt;mso-list:l3 level1 lfo1;   tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt;   mso-bidi-font-family:Symbol;mso-fareast-font-family:Symbol;   mso-bidi-font-family:Symbol;font-size:12.0pt;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Create, connect to, and disconnect from COM   objects&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   36.75pt;text-indent:-.25in;line-height:13.5pt;mso-list:l3 level1 lfo1;   tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt;   mso-bidi-font-family:Symbol;mso-fareast-font-family:Symbol;   mso-bidi-font-family:Symbol;font-size:12.0pt;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Sink events&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   36.75pt;text-indent:-.25in;line-height:13.5pt;mso-list:l3 level1 lfo1;   tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt;   mso-bidi-font-family:Symbol;mso-fareast-font-family:Symbol;   mso-bidi-font-family:Symbol;font-size:12.0pt;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Stop a script's execution programmatically&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   36.75pt;text-indent:-.25in;line-height:13.5pt;mso-list:l3 level1 lfo1;   tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt;   mso-bidi-font-family:Symbol;mso-fareast-font-family:Symbol;   mso-bidi-font-family:Symbol;font-size:12.0pt;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Output information to the default output   device (for example, a dialog box or the command line)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:2"&gt;   &lt;td width="156" valign="top" style="width:117.0pt;border:solid #BBBBBB 1.0pt;   border-top:none;mso-border-top-alt:solid #BBBBBB .75pt;mso-border-alt:solid #BBBBBB .75pt;   background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   .75pt;line-height:13.5pt"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ss1ysb2a(v=VS.85).aspx"&gt;&lt;span style="color:#1364C4;"&gt;WshArguments Object&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="324" valign="top" style="width:243.0pt;border-top:none;border-left:   none;border-bottom:solid #BBBBBB 1.0pt;border-right:solid #BBBBBB 1.0pt;   mso-border-top-alt:solid #BBBBBB .75pt;mso-border-left-alt:solid #BBBBBB .75pt;   mso-border-alt:solid #BBBBBB .75pt;background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   .75pt;line-height:13.5pt"&gt;Access the entire set of command-line arguments&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:3"&gt;   &lt;td width="156" valign="top" style="width:117.0pt;border:solid #BBBBBB 1.0pt;   border-top:none;mso-border-top-alt:solid #BBBBBB .75pt;mso-border-alt:solid #BBBBBB .75pt;   background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   .75pt;line-height:13.5pt"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/d6y04sbb(v=VS.85).aspx"&gt;&lt;span style="color:#1364C4;"&gt;WshNamed Object&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="324" valign="top" style="width:243.0pt;border-top:none;border-left:   none;border-bottom:solid #BBBBBB 1.0pt;border-right:solid #BBBBBB 1.0pt;   mso-border-top-alt:solid #BBBBBB .75pt;mso-border-left-alt:solid #BBBBBB .75pt;   mso-border-alt:solid #BBBBBB .75pt;background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   .75pt;line-height:13.5pt"&gt;Access the set of named command-line arguments&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:4"&gt;   &lt;td width="156" valign="top" style="width:117.0pt;border:solid #BBBBBB 1.0pt;   border-top:none;mso-border-top-alt:solid #BBBBBB .75pt;mso-border-alt:solid #BBBBBB .75pt;   background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   .75pt;line-height:13.5pt"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ah2hawwc(v=VS.85).aspx"&gt;&lt;span style="color:#1364C4;"&gt;WshUnnamed Object&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="324" valign="top" style="width:243.0pt;border-top:none;border-left:   none;border-bottom:solid #BBBBBB 1.0pt;border-right:solid #BBBBBB 1.0pt;   mso-border-top-alt:solid #BBBBBB .75pt;mso-border-left-alt:solid #BBBBBB .75pt;   mso-border-alt:solid #BBBBBB .75pt;background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   .75pt;line-height:13.5pt"&gt;Access the set of unnamed command-line arguments&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:5"&gt;   &lt;td width="156" valign="top" style="width:117.0pt;border:solid #BBBBBB 1.0pt;   border-top:none;mso-border-top-alt:solid #BBBBBB .75pt;mso-border-alt:solid #BBBBBB .75pt;   background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   .75pt;line-height:13.5pt"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/s6wt333f(v=VS.85).aspx"&gt;&lt;span style="color:#1364C4;"&gt;WshNetwork Object&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="324" valign="top" style="width:243.0pt;border-top:none;border-left:   none;border-bottom:solid #BBBBBB 1.0pt;border-right:solid #BBBBBB 1.0pt;   mso-border-top-alt:solid #BBBBBB .75pt;mso-border-left-alt:solid #BBBBBB .75pt;   mso-border-alt:solid #BBBBBB .75pt;background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   36.75pt;text-indent:-.25in;line-height:13.5pt;mso-list:l0 level1 lfo2;   tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt;   mso-bidi-font-family:Symbol;mso-fareast-font-family:Symbol;   mso-bidi-font-family:Symbol;font-size:12.0pt;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Connect to and disconnect from network shares   and network printers&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   36.75pt;text-indent:-.25in;line-height:13.5pt;mso-list:l0 level1 lfo2;   tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt;   mso-bidi-font-family:Symbol;mso-fareast-font-family:Symbol;   mso-bidi-font-family:Symbol;font-size:12.0pt;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Map and unmap network shares&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   36.75pt;text-indent:-.25in;line-height:13.5pt;mso-list:l0 level1 lfo2;   tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt;   mso-bidi-font-family:Symbol;mso-fareast-font-family:Symbol;   mso-bidi-font-family:Symbol;font-size:12.0pt;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Access information about the currently logged-on   user&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:6"&gt;   &lt;td width="156" valign="top" style="width:117.0pt;border:solid #BBBBBB 1.0pt;   border-top:none;mso-border-top-alt:solid #BBBBBB .75pt;mso-border-alt:solid #BBBBBB .75pt;   background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   .75pt;line-height:13.5pt"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/xk7bxb0d(v=VS.85).aspx"&gt;&lt;span style="color:#1364C4;"&gt;WshController Object&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="324" valign="top" style="width:243.0pt;border-top:none;border-left:   none;border-bottom:solid #BBBBBB 1.0pt;border-right:solid #BBBBBB 1.0pt;   mso-border-top-alt:solid #BBBBBB .75pt;mso-border-left-alt:solid #BBBBBB .75pt;   mso-border-alt:solid #BBBBBB .75pt;background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   .75pt;line-height:13.5pt"&gt;Create a remote script process using the Controller   method&lt;span class="apple-converted-space"&gt; &lt;/span&gt;&lt;strong&gt;CreateScript&lt;/strong&gt;()&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:7"&gt;   &lt;td width="156" valign="top" style="width:117.0pt;border:solid #BBBBBB 1.0pt;   border-top:none;mso-border-top-alt:solid #BBBBBB .75pt;mso-border-alt:solid #BBBBBB .75pt;   background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   .75pt;line-height:13.5pt"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/x9t3ze5y(v=VS.85).aspx"&gt;&lt;span style="color:#1364C4;"&gt;WshRemote Object&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="324" valign="top" style="width:243.0pt;border-top:none;border-left:   none;border-bottom:solid #BBBBBB 1.0pt;border-right:solid #BBBBBB 1.0pt;   mso-border-top-alt:solid #BBBBBB .75pt;mso-border-left-alt:solid #BBBBBB .75pt;   mso-border-alt:solid #BBBBBB .75pt;background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   36.75pt;text-indent:-.25in;line-height:13.5pt;mso-list:l2 level1 lfo3;   tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt;   mso-bidi-font-family:Symbol;mso-fareast-font-family:Symbol;   mso-bidi-font-family:Symbol;font-size:12.0pt;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Remotely administer computer systems on a   computer network&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   36.75pt;text-indent:-.25in;line-height:13.5pt;mso-list:l2 level1 lfo3;   tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt;   mso-bidi-font-family:Symbol;mso-fareast-font-family:Symbol;   mso-bidi-font-family:Symbol;font-size:12.0pt;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Programmatically manipulate other   programs/scripts&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:8"&gt;   &lt;td width="156" valign="top" style="width:117.0pt;border:solid #BBBBBB 1.0pt;   border-top:none;mso-border-top-alt:solid #BBBBBB .75pt;mso-border-alt:solid #BBBBBB .75pt;   background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   .75pt;line-height:13.5pt"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/d02b3e15(v=VS.85).aspx"&gt;&lt;span style="color:#1364C4;"&gt;WshRemoteError Object&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="324" valign="top" style="width:243.0pt;border-top:none;border-left:   none;border-bottom:solid #BBBBBB 1.0pt;border-right:solid #BBBBBB 1.0pt;   mso-border-top-alt:solid #BBBBBB .75pt;mso-border-left-alt:solid #BBBBBB .75pt;   mso-border-alt:solid #BBBBBB .75pt;background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   .75pt;line-height:13.5pt"&gt;Access the error information available when a   remote script (a WshRemote object) terminates as a result of a script error&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:9"&gt;   &lt;td width="156" valign="top" style="width:117.0pt;border:solid #BBBBBB 1.0pt;   border-top:none;mso-border-top-alt:solid #BBBBBB .75pt;mso-border-alt:solid #BBBBBB .75pt;   background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   .75pt;line-height:13.5pt"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/aew9yb99(v=VS.85).aspx"&gt;&lt;span style="color:#1364C4;"&gt;WshShell Object&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="324" valign="top" style="width:243.0pt;border-top:none;border-left:   none;border-bottom:solid #BBBBBB 1.0pt;border-right:solid #BBBBBB 1.0pt;   mso-border-top-alt:solid #BBBBBB .75pt;mso-border-left-alt:solid #BBBBBB .75pt;   mso-border-alt:solid #BBBBBB .75pt;background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   36.75pt;text-indent:-.25in;line-height:13.5pt;mso-list:l1 level1 lfo4;   tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt;   mso-bidi-font-family:Symbol;mso-fareast-font-family:Symbol;   mso-bidi-font-family:Symbol;font-size:12.0pt;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Run a program locally&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   36.75pt;text-indent:-.25in;line-height:13.5pt;mso-list:l1 level1 lfo4;   tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt;   mso-bidi-font-family:Symbol;mso-fareast-font-family:Symbol;   mso-bidi-font-family:Symbol;font-size:12.0pt;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Manipulate the contents of the registry&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   36.75pt;text-indent:-.25in;line-height:13.5pt;mso-list:l1 level1 lfo4;   tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt;   mso-bidi-font-family:Symbol;mso-fareast-font-family:Symbol;   mso-bidi-font-family:Symbol;font-size:12.0pt;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Create a shortcut&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   36.75pt;text-indent:-.25in;line-height:13.5pt;mso-list:l1 level1 lfo4;   tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt;   mso-bidi-font-family:Symbol;mso-fareast-font-family:Symbol;   mso-bidi-font-family:Symbol;font-size:12.0pt;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Access a system folder&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   36.75pt;text-indent:-.25in;line-height:13.5pt;mso-list:l1 level1 lfo4;   tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt;   mso-bidi-font-family:Symbol;mso-fareast-font-family:Symbol;   mso-bidi-font-family:Symbol;font-size:12.0pt;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Manipulate environment variables (such as   WINDIR, PATH, or PROMPT)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:10"&gt;   &lt;td width="156" valign="top" style="width:117.0pt;border:solid #BBBBBB 1.0pt;   border-top:none;mso-border-top-alt:solid #BBBBBB .75pt;mso-border-alt:solid #BBBBBB .75pt;   background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   .75pt;line-height:13.5pt"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/xk6kst2k(v=VS.85).aspx"&gt;&lt;span style="color:#1364C4;"&gt;WshShortcut Object&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="324" valign="top" style="width:243.0pt;border-top:none;border-left:   none;border-bottom:solid #BBBBBB 1.0pt;border-right:solid #BBBBBB 1.0pt;   mso-border-top-alt:solid #BBBBBB .75pt;mso-border-left-alt:solid #BBBBBB .75pt;   mso-border-alt:solid #BBBBBB .75pt;background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   .75pt;line-height:13.5pt"&gt;Programmatically create a shortcut&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:11"&gt;   &lt;td width="156" valign="top" style="width:117.0pt;border:solid #BBBBBB 1.0pt;   border-top:none;mso-border-top-alt:solid #BBBBBB .75pt;mso-border-alt:solid #BBBBBB .75pt;   background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   .75pt;line-height:13.5pt"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/9x9e7edx(v=VS.85).aspx"&gt;&lt;span style="color:#1364C4;"&gt;WshSpecialFolders Object&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="324" valign="top" style="width:243.0pt;border-top:none;border-left:   none;border-bottom:solid #BBBBBB 1.0pt;border-right:solid #BBBBBB 1.0pt;   mso-border-top-alt:solid #BBBBBB .75pt;mso-border-left-alt:solid #BBBBBB .75pt;   mso-border-alt:solid #BBBBBB .75pt;background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   .75pt;line-height:13.5pt"&gt;Access any of the Windows Special Folders&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:12"&gt;   &lt;td width="156" valign="top" style="width:117.0pt;border:solid #BBBBBB 1.0pt;   border-top:none;mso-border-top-alt:solid #BBBBBB .75pt;mso-border-alt:solid #BBBBBB .75pt;   background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   .75pt;line-height:13.5pt"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/265a4017(v=VS.85).aspx"&gt;&lt;span style="color:#1364C4;"&gt;WshUrlShortcut Object&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="324" valign="top" style="width:243.0pt;border-top:none;border-left:   none;border-bottom:solid #BBBBBB 1.0pt;border-right:solid #BBBBBB 1.0pt;   mso-border-top-alt:solid #BBBBBB .75pt;mso-border-left-alt:solid #BBBBBB .75pt;   mso-border-alt:solid #BBBBBB .75pt;background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   .75pt;line-height:13.5pt"&gt;Programmatically create a shortcut to an Internet   resource&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:13"&gt;   &lt;td width="156" valign="top" style="width:117.0pt;border:solid #BBBBBB 1.0pt;   border-top:none;mso-border-top-alt:solid #BBBBBB .75pt;mso-border-alt:solid #BBBBBB .75pt;   background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   .75pt;line-height:13.5pt"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/6s7w15a0(v=VS.85).aspx"&gt;&lt;span style="color:#1364C4;"&gt;WshEnvironment Object&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="324" valign="top" style="width:243.0pt;border-top:none;border-left:   none;border-bottom:solid #BBBBBB 1.0pt;border-right:solid #BBBBBB 1.0pt;   mso-border-top-alt:solid #BBBBBB .75pt;mso-border-left-alt:solid #BBBBBB .75pt;   mso-border-alt:solid #BBBBBB .75pt;background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   .75pt;line-height:13.5pt"&gt;Access any of the environment variables (such as   WINDIR, PATH, or PROMPT)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:14;mso-yfti-lastrow:yes"&gt;   &lt;td width="156" valign="top" style="width:117.0pt;border:solid #BBBBBB 1.0pt;   border-top:none;mso-border-top-alt:solid #BBBBBB .75pt;mso-border-alt:solid #BBBBBB .75pt;   background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   .75pt;line-height:13.5pt"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/2f38xsxe(v=VS.85).aspx"&gt;&lt;span style="color:#1364C4;"&gt;WshScriptExec Object&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="324" valign="top" style="width:243.0pt;border-top:none;border-left:   none;border-bottom:solid #BBBBBB 1.0pt;border-right:solid #BBBBBB 1.0pt;   mso-border-top-alt:solid #BBBBBB .75pt;mso-border-left-alt:solid #BBBBBB .75pt;   mso-border-alt:solid #BBBBBB .75pt;background:white;padding:3.0pt 3.0pt 3.0pt 3.0pt"&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   .75pt;line-height:13.5pt"&gt;Determine status and error information about a   script run with Exec()&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p style="margin-top:5.0pt;margin-right:.75pt;margin-bottom:5.0pt;margin-left:   .75pt;line-height:13.5pt"&gt;Access the StdIn, StdOut, and&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-3828048756445015949?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3828048756445015949'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3828048756445015949'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2010/05/wsh-object-and-usage.html' title='WSH object and Usage'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-8598797293269006913</id><published>2010-03-25T14:41:00.002+05:30</published><updated>2010-03-25T14:44:10.291+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Personal'/><title type='text'>New Photo Blog</title><content type='html'>I am moving my photography posts to my new photoblog at &lt;a href="http://pixelviews.wordpress.com/"&gt;http://pixelviews.wordpress.com/&lt;/a&gt;.&lt;div&gt;The idea behind the PixelViews is to discuss more about photography and the story behind some of my photographs.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Please do leave your suggestions and comments.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-8598797293269006913?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/8598797293269006913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/8598797293269006913'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2010/03/new-photo-blog.html' title='New Photo Blog'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-6157824401873074308</id><published>2010-03-22T11:44:00.002+05:30</published><updated>2010-03-22T11:50:19.803+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sports'/><title type='text'>Kochi in IPL Map</title><content type='html'>"Chotta Mumbai" is finally on the IPL map, Kochi has emerged as one of the two new teams to join the IPL bandwagon. Mentored by Shashi Tharoor, a group of businessmen has put forward a franchise named "Rendezvous Sports World".&lt;span class="Apple-style-span" style="font-family: Arial; font-size: 12px; line-height: 20px; "&gt; &lt;/span&gt;   &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Team name ? well, we would need to wait another week for that,but for the time, let's enjoy this moment. &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-6157824401873074308?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/6157824401873074308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/6157824401873074308'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2010/03/kochi-in-ipl-map.html' title='Kochi in IPL Map'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-8987323003345787766</id><published>2010-03-18T12:08:00.002+05:30</published><updated>2010-03-18T12:12:48.881+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>Tolerance for DateTime comparison</title><content type='html'>&lt;div&gt;&lt;div&gt;By default, C# compares DateTime instances with a tolerance of 100 ns. Recently i ran into a situation where i needed to customize the tolerance level. C# doesnt provide any overloaded method operation to do so, but we could do ourself very easily.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;if((dateTime1 - dateTime2).Duration() &lt;&gt;&lt;/div&gt;&lt;i&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This ensures a tolerance of 10 seconds.This can altered to do any tolerance level that we require.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/i&gt;&lt;/div&gt;&lt;i&gt;&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-8987323003345787766?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/8987323003345787766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/8987323003345787766'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2010/03/tolerance-for-datetime-comparison.html' title='Tolerance for DateTime comparison'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-1082294455604847330</id><published>2010-02-25T22:03:00.005+05:30</published><updated>2010-03-02T22:23:22.697+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sports'/><title type='text'>GOD</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;i&gt;They say sometimes you see god...i just saw him notch up unbeaten 200&lt;/i&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_EK4u-J_MP70/S4anBHVvRJI/AAAAAAAADTQ/tFs5n5neaYs/s1600-h/sachintendulkar_1585015c.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 250px;" src="http://4.bp.blogspot.com/_EK4u-J_MP70/S4anBHVvRJI/AAAAAAAADTQ/tFs5n5neaYs/s400/sachintendulkar_1585015c.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5442220837315757202" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: small; "&gt;&lt;i&gt;&lt;b&gt;Converting &lt;/b&gt;&lt;/i&gt;&lt;i&gt;&lt;b&gt;atheists since 1989&lt;/b&gt;&lt;/i&gt;&lt;i&gt;&lt;b&gt;!&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-1082294455604847330?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1082294455604847330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1082294455604847330'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2010/02/god.html' title='GOD'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_EK4u-J_MP70/S4anBHVvRJI/AAAAAAAADTQ/tFs5n5neaYs/s72-c/sachintendulkar_1585015c.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-5113116502899609546</id><published>2010-02-22T10:08:00.000+05:30</published><updated>2010-02-22T10:11:14.117+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Photography'/><title type='text'>Save Electricity, Save Earth</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_EK4u-J_MP70/S4IKzXsxxmI/AAAAAAAADTI/EK57Dw_nRHc/s1600-h/save+earth.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 314px; height: 400px;" src="http://3.bp.blogspot.com/_EK4u-J_MP70/S4IKzXsxxmI/AAAAAAAADTI/EK57Dw_nRHc/s400/save+earth.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5440923177468413538" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-5113116502899609546?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/5113116502899609546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/5113116502899609546'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2010/02/save-electricity-save-earth.html' title='Save Electricity, Save Earth'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_EK4u-J_MP70/S4IKzXsxxmI/AAAAAAAADTI/EK57Dw_nRHc/s72-c/save+earth.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-6562844924290136792</id><published>2010-02-17T09:07:00.005+05:30</published><updated>2010-02-17T09:12:58.200+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>Asp.net Life Cycle : A pictorial representation</title><content type='html'>Life Cycle of an ASP.Net Page is an interview question which probably every newbie gets in an interview. Sometimes people tend to forget minute details, but here is a pictorial representation of the same. As they say, picture says a 1000 words.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_EK4u-J_MP70/S3tk5apA95I/AAAAAAAADSk/sErXr0giy8c/s1600-h/ASPNET_LifeCycleOverview_thumb%5B1%5D.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 363px; height: 400px;" src="http://3.bp.blogspot.com/_EK4u-J_MP70/S3tk5apA95I/AAAAAAAADSk/sErXr0giy8c/s400/ASPNET_LifeCycleOverview_thumb%5B1%5D.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5439051912546678674" /&gt;&lt;/a&gt;If you were concern about only the main events then there is another way to remember it, the rule of SILVER &lt;div&gt;S - Start&lt;/div&gt;&lt;div&gt;I - Initialize&lt;/div&gt;&lt;div&gt;L- Load&lt;/div&gt;&lt;div&gt;V - Validate&lt;/div&gt;&lt;div&gt;E -  Event Handling&lt;/div&gt;&lt;div&gt;R - Render&lt;br /&gt;&lt;div&gt;&lt;br /&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/18313898-6562844924290136792?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/6562844924290136792'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/6562844924290136792'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2010/02/aspnet-life-cycle-pictorial.html' title='Asp.net Life Cycle : A pictorial representation'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_EK4u-J_MP70/S3tk5apA95I/AAAAAAAADSk/sErXr0giy8c/s72-c/ASPNET_LifeCycleOverview_thumb%5B1%5D.png' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-2274734425553195601</id><published>2010-02-13T17:59:00.000+05:30</published><updated>2010-02-13T18:00:44.646+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Diwali in February</title><content type='html'>&lt;div style="text-align: justify;"&gt;Coming weekend seems to be time for celebration of the famous trio of Shiv Sena-MNS-Ram Sena. So called Moral police has two reasons to showcase their so called moral responsibilities as SRK Starrer MINK releases in the same weekend on which Valentine’s Day Falls. I guess all activist of the 3 groups would have been training hard to repeat what they did during Valentines day preceding year. This year they even got a bonus. MINK. Early Diwali for the trio I guess. &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Pun apart , it is high time we put such anti-elements behind bars. The atrocities they did last year are still fresh in every youths mind and it is no wonder that the GenX smiled in unison when Rama Sena supreme’s face was blackened recently. Who are they to say which movie to watch and which not to? Is India still a democratic secular country? So much for just gaining Marathi Votes ?  The greed for votes made them even question the Mumbaiker who is whole of world is proud of, the man who answer to the name Sachin Tendulkar. Just because he said he belongs to whole of India ?&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;I guess if we were to follow the paths of the trio, especially MNS and Shiv Sena , we should remove the lessons of humanity, secularism and democracy for from the  text school books from young children,  because when they grow up, that is not what they are going to experience around them.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Time to sign off for the day, but not before saluting the spirit of common-man Mumbaikar who came out to theatres despite Sena threats. &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-2274734425553195601?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/2274734425553195601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/2274734425553195601'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2010/02/diwali-in-february.html' title='Diwali in February'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-5255591301104200260</id><published>2010-02-03T21:24:00.003+05:30</published><updated>2010-02-03T21:28:12.757+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><category scheme='http://www.blogger.com/atom/ns#' term='Techie Tips'/><title type='text'>Express IT - A Series of Technical Seminars</title><content type='html'>&lt;div&gt;Cochin has always been hailed as the IT hub of Kerala for quite a long time. But sadly unlike the Technopark in Trivandrum, the Infopark has failed in conducting in IT related activities on a regular basis Of course there has been few events conducted by the KMUG , but having something on a regular basis was something that was still left desired of.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;We, Tech Experts , a forum of like-minded developers and IT Specialists in Infopark are now driving an initiative to have a series of technical activities in the city, focusing primarily in Infopark companies. As a first step we are conducting technical  seminars are two distinct topics , one based on Microsoft while other from the Free Software Foundation.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_EK4u-J_MP70/S2mcaiQp-gI/AAAAAAAAC9k/dPy_wv5jVbY/s1600-h/Express.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 283px; height: 400px;" src="http://3.bp.blogspot.com/_EK4u-J_MP70/S2mcaiQp-gI/AAAAAAAAC9k/dPy_wv5jVbY/s400/Express.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5434046405086411266" /&gt;&lt;/a&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-5255591301104200260?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/5255591301104200260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/5255591301104200260'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2010/02/express-it-series-of-technical-seminars.html' title='Express IT - A Series of Technical Seminars'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_EK4u-J_MP70/S2mcaiQp-gI/AAAAAAAAC9k/dPy_wv5jVbY/s72-c/Express.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-2982159991545738896</id><published>2010-02-03T07:32:00.005+05:30</published><updated>2010-02-03T07:48:37.956+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Shajean's Travelogues</title><content type='html'>Planning a trip ? well, here is a reference you can rely heavily on. A well written travelogues by Shajean Jaleel.  &lt;a href="http://shajeanstravelogues.blogspot.com/"&gt;http://shajeanstravelogues.blogspot.com/&lt;/a&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://shajeanstravelogues.blogspot.com/"&gt;&lt;/a&gt;This guy has been our unofficial guide for past 3 years. As a person who spends almost every weekend travelling, there is hardly any heard/unheard places in and around Kerala where he hasn't been to. His obsession with wild life sanctuaries has prompted a saying in our friend's circle that he spend more time in forest than at his home.  &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Finally he has decided to pen down his experience and his first entry looks really good. Well done man, Keep writing.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-2982159991545738896?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/2982159991545738896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/2982159991545738896'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2010/02/shajeans-travelogues.html' title='Shajean&apos;s Travelogues'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-6277920608053822170</id><published>2010-01-25T12:35:00.002+05:30</published><updated>2010-02-03T07:52:31.782+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Personal'/><title type='text'>Meet My New Friend : Nikon D3000</title><content type='html'>Meet my new Pal...Nikon D3000. Yes, finally i have bid good bye to my Sony H7 and bought myself a Nikon D3000 ( with a 18-55mm Kit lens ).&lt;div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_EK4u-J_MP70/S11C65LAy-I/AAAAAAAAC84/947t1Yk0RoY/s1600-h/d3000_ambience_3_l_001.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 298px;" src="http://3.bp.blogspot.com/_EK4u-J_MP70/S11C65LAy-I/AAAAAAAAC84/947t1Yk0RoY/s400/d3000_ambience_3_l_001.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5430570305225542626" /&gt;&lt;/a&gt;&lt;div&gt;Yes, the zoom is bit of handicap with a 18-55mm lens after being pampered by the ultra-zoom of Sony H7, but boy, i like that compramise on zoom. At this moment, am enjoying  ( read learning ) my new tool.&lt;/div&gt;&lt;div&gt;&lt;br /&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/18313898-6277920608053822170?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/6277920608053822170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/6277920608053822170'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2010/01/meet-my-new-friend-nikon-d3000.html' title='Meet My New Friend : Nikon D3000'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_EK4u-J_MP70/S11C65LAy-I/AAAAAAAAC84/947t1Yk0RoY/s72-c/d3000_ambience_3_l_001.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-1400373649223130794</id><published>2010-01-20T14:12:00.000+05:30</published><updated>2010-01-20T14:13:18.180+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>Designer View Not Available in VS 2003</title><content type='html'>&lt;div style="text-align: justify;"&gt;There are times when Visual Studio 2003 fails to identity Windows Forms in your projects and displays it just as any normal CS files. This would literally rob you of chance of working on the Designer View of the Form.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Solution to this is quite simple, all you need to do is use the Visual Studio Editor to exclude the particular File ( along with its RESX files ) and include it back again. That's pretty much it and you have your Designer View back.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-1400373649223130794?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1400373649223130794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1400373649223130794'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2010/01/designer-view-not-available-in-vs-2003.html' title='Designer View Not Available in VS 2003'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-3992854414918149393</id><published>2010-01-19T18:28:00.003+05:30</published><updated>2010-02-03T07:56:32.057+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Prejudiced Mind</title><content type='html'>&lt;p class="MsoNormal" style="text-align: justify;"&gt;It is quite interesting how human mind can see a single thing in two different ways. This is quite similar to seeing a cup with 50% content as Half Full or Half Empty.&lt;span style="mso-spacerun:yes"&gt;  &lt;/span&gt;In nearly all cases, this is result of a prejudiced mindset.&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;Friends become enemies in blink of an eye. Reason: Prejudiced Mind. An action done with all sincerity is suspected before one could even understand the logic behind suspicion, Reason , Yet again Prejudiced mind. &lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;We humans tend to be so narrow minded at times that even normal things start looking weird. We cannot blame what is happening around us for it. The reason is how we make our mind think. Why are we so opinionated? What is that prevents us from putting our self in other persons shoes and think like them at least once before we form an opinion?&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;I have seen many people who take pride in saying that once they form an opinion, they never change it. They say that they will stick to it even if the opinions that were formed were against their own family members. They call it their mental strength or determination. But my dears, as much as I respect your statements, why don’t you try to see the world through other person’s eyes before making an opinion.&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;I have heard people say that even if a person do nice things whole day and makes a small mistake in the last second of the day, then they would like to see that mistake more than the good things. For them, a mistake is crime, but dears, what about good things that person has done till then? If that person is ready to apologize for the mistake, doesn’t the person concern need to think about it again?&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;All this is due to the prejudiced mindset of human beings. They want to see the world according to their wish. It is more a Reel World for them than Real World, a world they had orchestrated in their mind when reality is far from it. Strange principles , I must say.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-3992854414918149393?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3992854414918149393'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3992854414918149393'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2010/01/prejudiced-mind.html' title='Prejudiced Mind'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-8956120687037422610</id><published>2010-01-01T00:03:00.000+05:30</published><updated>2010-01-01T00:04:40.078+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Happy New Year</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_EK4u-J_MP70/Szzuq4Q3PMI/AAAAAAAAC8U/Ad20U-5TGTM/s1600-h/moon1.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 267px;" src="http://1.bp.blogspot.com/_EK4u-J_MP70/Szzuq4Q3PMI/AAAAAAAAC8U/Ad20U-5TGTM/s400/moon1.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5421470471872265410" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-8956120687037422610?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/8956120687037422610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/8956120687037422610'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2010/01/happy-new-year.html' title='Happy New Year'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_EK4u-J_MP70/Szzuq4Q3PMI/AAAAAAAAC8U/Ad20U-5TGTM/s72-c/moon1.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-3006536845604978719</id><published>2009-12-25T19:52:00.001+05:30</published><updated>2009-12-25T20:43:09.555+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Personal'/><title type='text'>Back to Blogging.</title><content type='html'>&lt;div style="text-align: justify;"&gt;It has been quite a while I blogged.  I would be lying if I cite tight work schedule as reason for it. Truth is, I have been lazy:).&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Looking back, it has been quite an eventful few months. From Onam celebrations in Kakanad to XStatic at the Kalathil Lake Resort, it has been a fun filled time. Of all the celebrations that we had over last few months, none would have given us more pride than the night at Ramada. Our company UVJ Technologies ( a Calpine Group enterprise ) was accredited with CMMi Level 3 and being part of SEPG group in the company, it is one moment that will be enriched in memory for a long time. &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Of course the Calpine Party ( read XStatic 09 ) was probably the biggest we ever had, in magnitude and the programs we were able to put up.  The Dwarf dance deserves a special mention for the novelty it bought in.  &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;But probably, the highlight of this time period was something else. Some of the things that fell apart at the start of the year somehow managed to come together by end of the year and it brings so much happiness in one’s mind and soul. Anyways, all’s well that ends well.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Now with 2010 staring at you, It is again time for New Year resolutions (it quite another story that did I keep the one I took in 2009). So let me find a new one for myself, but a point I would definitely make is to blog regularly. &lt;/div&gt;&lt;div style="text-align: justify;"&gt;Merry Xmas and Happy New Year Friends.  &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-3006536845604978719?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3006536845604978719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3006536845604978719'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/12/back-to-blogging.html' title='Back to Blogging.'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-1891279243235180784</id><published>2009-10-22T13:34:00.003+05:30</published><updated>2009-10-22T13:36:07.792+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Redirecting Tracing or Debugging output.</title><content type='html'>&lt;div&gt;Attaching Visual Studio IDe to the application for viewing debugging information can turn out to be quite troubleesome, especially when dealing with large applications. In such cases, as developer, one would like to redirect the debugging information to a external file without having to attach the IDE.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Following code verify whether you are running an exe build using debug mode and then redirect the output to a external file.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;#if (DEBUG)&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;TextWriterTraceListener tr2 = new TextWriterTraceListener (System.IO.File.CreateText ("DebuggerLog.txt"));&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Debug.Listeners.Add(tr2);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;#endif&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The output can be redirected to Console using ConsoleTraceListner.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-1891279243235180784?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1891279243235180784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1891279243235180784'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/10/redirecting-tracing-or-debugging-output.html' title='Redirecting Tracing or Debugging output.'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-2468434816413905392</id><published>2009-10-20T13:54:00.000+05:30</published><updated>2009-10-20T13:55:18.199+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>A movie to remember</title><content type='html'>&lt;div&gt;Some movies are meant to be forgotten, while others leave a lasting impression on you. But there are some movies, which remembered for reasons other than what you saw on screen. "Wake up Sid" turned out to be one in the last category, sadly.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The idea of late night movie at Sridhar in Cochin is something we have enjoyed doing for ages, but this particular night turned out to be different. As soon as i stepped out of theatre i realized i had 3 flat tyres !!! and as if icing on cake, a couple of scratches on the side of my car. Fortunately or unfortunately, i wasn't the only one who were cursing the night, 2 other cars experienced the same.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Probably this is one of the sign of Cochin turning out to be a "chotta mumbai". Finally, by the time i reached back home , it was 3PM in night. A movie ticket worth 45 turned out to be worth more than 2000 :(&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-2468434816413905392?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/2468434816413905392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/2468434816413905392'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/10/movie-to-remember.html' title='A movie to remember'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-4696608330599030149</id><published>2009-09-23T17:26:00.002+05:30</published><updated>2009-09-23T17:32:43.055+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><category scheme='http://www.blogger.com/atom/ns#' term='Techie Tips'/><title type='text'>PDM Works Vault deletion error</title><content type='html'>I had uninstalled PDMWorks from my machine. Later, when i attempted to remove the vault from machine, it threw a "Conisio" dialog stating &lt;div&gt;1. "Could not delete view"&lt;/div&gt;&lt;div&gt;2. "Class not registered"&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Fix was right there in registery. I removed following keys and that was it, i was all set . &lt;/div&gt;&lt;div&gt;1. HKEY_LOCAL_MACHINE\SOFTWARE\SolidWorks\Applications &lt;/div&gt;&lt;div&gt;2. HKEY_CURRENT_USER\SOFTWARE\SolidWorks\Applications &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-4696608330599030149?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/4696608330599030149'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/4696608330599030149'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/09/pdm-works-vault-deletion-error.html' title='PDM Works Vault deletion error'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-5275925353503033502</id><published>2009-09-13T01:26:00.002+05:30</published><updated>2009-09-13T01:30:18.847+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sports'/><title type='text'>Men in Blue and Number Uno Spot</title><content type='html'>Indian cricket teams stay at as Number Uno ODI Team was short-lived. Within 24 hours and 19 mins, the Men in Blue lost the position, thanks to thier loss to Sri Lanka in the last league match of tri-series. &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;But Dhoni's devils needn't worry. Their form over past year has so tremendous that it will be only matter of time before they regain the number 1 spot again.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For the moment, we need to applaud thier acheivement, for no other Indian cricket team in history were able to do what these guys did. Kudos !!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-5275925353503033502?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/5275925353503033502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/5275925353503033502'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/09/men-in-blue-and-number-uno-spot.html' title='Men in Blue and Number Uno Spot'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-4417814396772064492</id><published>2009-09-13T01:21:00.002+05:30</published><updated>2009-09-13T01:25:47.375+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Photography'/><category scheme='http://www.blogger.com/atom/ns#' term='Personal'/><title type='text'>BLUE : Droplets from Heaven</title><content type='html'>&lt;div&gt;Finally got myself a tripod today. This is my first shot with it. I loved the way it turned out to be. This is NOT a photoshop effect. The shot was taken at night, with my mobile torch acting as source of light. The slower shutter speed of 1/2 sec enabled the water droplets to act lines to water.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_EK4u-J_MP70/Sqv8iOLOCOI/AAAAAAAACdk/calUMKA8LKk/s1600-h/water-drops.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 267px;" src="http://4.bp.blogspot.com/_EK4u-J_MP70/Sqv8iOLOCOI/AAAAAAAACdk/calUMKA8LKk/s400/water-drops.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5380671844675094754" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;i&gt;BLUE : Droplets from Heaven&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-4417814396772064492?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/4417814396772064492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/4417814396772064492'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/09/blue-droplets-from-heaven.html' title='BLUE : Droplets from Heaven'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_EK4u-J_MP70/Sqv8iOLOCOI/AAAAAAAACdk/calUMKA8LKk/s72-c/water-drops.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-8131684453648428650</id><published>2009-09-08T23:37:00.000+05:30</published><updated>2009-09-08T23:38:12.377+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><category scheme='http://www.blogger.com/atom/ns#' term='Techie Tips'/><title type='text'>Google Doodle Solved.</title><content type='html'>&lt;div&gt;Google’s “Unexplained Phenomenon” doodle which appeared on site on September 5th had caused quite a flutter in the web (though I was surprised why in the first place it was made such big news). The company has finally clarified its stand on the issue, putting in rest innumerous theories which were floated around within a short span of time. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The doodle was in honor of the Zero Wing, the Japanese video game of 1980's, which incidentally was celebrating its 20th anniversary  &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-8131684453648428650?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/8131684453648428650'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/8131684453648428650'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/09/google-doodle-solved.html' title='Google Doodle Solved.'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-2104434802912440791</id><published>2009-09-08T08:39:00.002+05:30</published><updated>2009-09-08T08:42:06.671+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Photography'/><title type='text'>Straczynski on God and Religion</title><content type='html'>&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: arial; color: rgb(34, 34, 34); font-size: 12px; white-space: pre-wrap; "&gt;If I take a lamp and shine it toward the wall, a bright spot will appear on the wall. The lamp is our search for truth ... for understanding. Too often, we assume that the light on the wall is God, but the light is not the goal of the search, it is the result of the search. The more intense the search, the brighter the light on the wall. The brighter the light on the wall, the greater the sense of revelation upon seeing it. Similarly, someone who does not search - who does not bring a lantern - sees nothing. &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"    style="font-family:arial;font-size:100%;color:#222222;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_EK4u-J_MP70/SqXLA8X3oNI/AAAAAAAACdc/WCJqNvDEjyw/s1600-h/vilaku.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 267px;" src="http://2.bp.blogspot.com/_EK4u-J_MP70/SqXLA8X3oNI/AAAAAAAACdc/WCJqNvDEjyw/s400/vilaku.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5378928547030606034" /&gt;&lt;/a&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: arial; color: rgb(34, 34, 34); font-size: 12px; white-space: pre-wrap; "&gt;What we perceive as God is the by-product of our search for God. It may simply be an appreciation of the light ... pure and unblemished ... not understanding that it comes from us. Sometimes we stand in front of the light and assume that we are the center of the universe - God looks astonishingly like we do - or we turn to look at our shadow and assume that all is darkness. If we allow ourselves to get in the way, we defeat the purpose, which is to use the light of our search to illuminate the wall in all its beauty and in all its flaws; and in so doing, better understand the world around us&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"    style="font-family:arial;font-size:100%;color:#222222;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"    style="font-family:arial;font-size:100%;color:#222222;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; white-space: pre-wrap;"&gt;- Straczynski on God and Religion&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"    style="font-family:arial;font-size:100%;color:#222222;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; white-space: pre-wrap; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"    style="font-family:arial;font-size:100%;color:#222222;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-2104434802912440791?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/2104434802912440791'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/2104434802912440791'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/09/straczynski-on-god-and-religion.html' title='Straczynski on God and Religion'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_EK4u-J_MP70/SqXLA8X3oNI/AAAAAAAACdc/WCJqNvDEjyw/s72-c/vilaku.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-5964192163496092773</id><published>2009-09-08T08:37:00.000+05:30</published><updated>2009-09-08T08:39:17.913+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Photography'/><title type='text'>Onam Time</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_EK4u-J_MP70/SqXKtW8YLZI/AAAAAAAACdU/Kgsc1rjtWmo/s1600-h/Hibiscus.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 267px;" src="http://1.bp.blogspot.com/_EK4u-J_MP70/SqXKtW8YLZI/AAAAAAAACdU/Kgsc1rjtWmo/s400/Hibiscus.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5378928210565672338" /&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: arial; color: rgb(34, 34, 34); font-size: 12px; white-space: pre-wrap; "&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-style: italic; "&gt;Onam..Time for love to bloom, for tender moments, and warm embraces&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-5964192163496092773?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/5964192163496092773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/5964192163496092773'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/09/onam-time.html' title='Onam Time'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_EK4u-J_MP70/SqXKtW8YLZI/AAAAAAAACdU/Kgsc1rjtWmo/s72-c/Hibiscus.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-353472891199248839</id><published>2009-08-16T22:09:00.007+05:30</published><updated>2010-02-03T08:22:29.665+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Photography'/><category scheme='http://www.blogger.com/atom/ns#' term='Personal'/><title type='text'>Thomankuth , a weekend break.</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_EK4u-J_MP70/Sog5aEij2yI/AAAAAAAACa4/XR-0GfT2kI4/s1600-h/falls.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 267px;" src="http://2.bp.blogspot.com/_EK4u-J_MP70/Sog5aEij2yI/AAAAAAAACa4/XR-0GfT2kI4/s400/falls.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5370605675697396514" /&gt;&lt;/a&gt;&lt;br /&gt;When tight schedules in the office starts taking toll of you, it is time to take a break away from the laptops and deadlines. First thing that cross your mind is to break away from the fast moving life of city and spend time where even your cell phone doesn't have range.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;That's exactly I did as I decided to go the wild Thomankuth near Idukki district in kerala.  This beautiful virgin forest is known for it's seven step waterfalls.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_EK4u-J_MP70/Sog3TxVdvBI/AAAAAAAACaw/6Nxl3Aw4V_8/s1600-h/falls3.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 267px;" src="http://3.bp.blogspot.com/_EK4u-J_MP70/Sog3TxVdvBI/AAAAAAAACaw/6Nxl3Aw4V_8/s400/falls3.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5370603368439725074" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;We start at 7.30 in morning from Ernakullam and via Muvatupuzha and Thodupuzha reached the serene Thomankuth by 10.30.&lt;br /&gt;&lt;br /&gt;The 2 hour car was fantastic, but much more was in store for us. The trekking in the green forest along the waterfalls was surely a memory to treasure.&lt;br /&gt;&lt;br /&gt;Aaagh, i wish i had a tripod during this trip. The waterfalls were really mesmerizing, but my shaky hands did spoil the snaps whenever i tried a slower shutter speed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_EK4u-J_MP70/Sog25Hh94cI/AAAAAAAACao/dW8Mgcs52jA/s1600-h/falls5.jpg"&gt;&lt;/a&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_EK4u-J_MP70/Sog25Hh94cI/AAAAAAAACao/dW8Mgcs52jA/s1600-h/falls5.jpg" style="text-decoration: none;"&gt;&lt;img style="text-align: left;display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; cursor: pointer; width: 400px; height: 267px; " src="http://4.bp.blogspot.com/_EK4u-J_MP70/Sog25Hh94cI/AAAAAAAACao/dW8Mgcs52jA/s400/falls5.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5370602910541275586" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-353472891199248839?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/353472891199248839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/353472891199248839'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/08/thomankuth-weekend-break.html' title='Thomankuth , a weekend break.'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_EK4u-J_MP70/Sog5aEij2yI/AAAAAAAACa4/XR-0GfT2kI4/s72-c/falls.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-5649350601906107744</id><published>2009-07-30T16:25:00.000+05:30</published><updated>2009-07-30T16:27:04.759+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>UAC Compatible applications - Part 3 ( Getting Process List )</title><content type='html'>So now we have got an idea of how to get our application work in Vista. There are few tips which could help us tackle minor issues which we might face in Vista.&lt;br /&gt;&lt;br /&gt;One of such issues is when we have to get the list of all processes active in the system.  What we usually do is call the &lt;b&gt;System.Diagnostics.Process.GetProcesses() &lt;/b&gt;method. This, however, get us into trouble when running from limited user in vista. The Limited User in vista doesn’t have privilege to fetch this list.&lt;br /&gt;&lt;br /&gt;Of course, it is not end of the world and is definitely, there is one work-around for this as well.&lt;br /&gt;&lt;br /&gt;You could query the &lt;b&gt;WMI Classes&lt;/b&gt; to get the desired result.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;ManagementScope scope = new ManagementScope();&lt;br /&gt;System.Management.ObjectQuery query = new ObjectQuery("select * from Win32_Service");&lt;br /&gt;ManagementObjectSearcher searcher = new ManagementObjectSearcher(scope, query);&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;foreach(ManagementBaseObject objService in searcher.Get())&lt;br /&gt;{&lt;br /&gt;  Console.WriteLine(objService["Name"]);&lt;br /&gt;}&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Simple as it can get.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-5649350601906107744?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/5649350601906107744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/5649350601906107744'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/07/uac-compatible-applications-part-3.html' title='UAC Compatible applications - Part 3 ( Getting Process List )'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-5940548798894638311</id><published>2009-07-22T21:17:00.005+05:30</published><updated>2009-07-30T16:27:24.415+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>UAC Compatible applications - Part 2 ( Access Registry )</title><content type='html'>&lt;div&gt;Okay, so in the part of the posts about Vista, we looked at the ways we could use manifest files to disable Registry Virtualization and subsequently, disable to UAC prompts. So with that out of the way, the next obvious question if how we are going get our application write in the Registry and Program Files directories.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The way I look at this, there are two distinct approaches of accomplishing this.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Method A&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You would need to set permission at the directory/key level for the User Group .&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_EK4u-J_MP70/Smc1zNq1KaI/AAAAAAAACXA/XrIL60NdQQw/s1600-h/final.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 176px;" src="http://3.bp.blogspot.com/_EK4u-J_MP70/Smc1zNq1KaI/AAAAAAAACXA/XrIL60NdQQw/s400/final.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5361313035366771106" /&gt;&lt;/a&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;This would ensure that our application could still write in the registry despite running the application from the Limited User Privileges.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Similar setting can be applied to the installation directory enabling us to write to the particular folder.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Method B&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The second method is how we redesign the architecture of the product by introducing a second layer of code which would help us write the code.  We would implement a Windows Service which would do the registry/folder writing for us. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The basic idea behind this approach is the fact the Windows Service runs in the System account and henceforth enable us in writing in the restricted areas. The custom application would send request to the Windows Service which, in-turn does the restricted operation. The mode of communication can be any of the IPC, from Named Pipes to Mailslot or any other.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_EK4u-J_MP70/Smc4A6lWpeI/AAAAAAAACXQ/OQ18oTXZEcY/s1600-h/Untitled-1.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 334px; height: 400px;" src="http://3.bp.blogspot.com/_EK4u-J_MP70/Smc4A6lWpeI/AAAAAAAACXQ/OQ18oTXZEcY/s400/Untitled-1.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5361315469784950242" /&gt;&lt;/a&gt;&lt;br /&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/18313898-5940548798894638311?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/5940548798894638311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/5940548798894638311'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/07/uac-compatible-applications-part-2.html' title='UAC Compatible applications - Part 2 ( Access Registry )'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_EK4u-J_MP70/Smc1zNq1KaI/AAAAAAAACXA/XrIL60NdQQw/s72-c/final.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-7533539576002935829</id><published>2009-07-21T22:48:00.004+05:30</published><updated>2009-07-30T16:28:06.823+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>UAC Compatible applications - Part 1 ( Disable Virtualization )</title><content type='html'>Vista with UAC enabled is quite a nightmare for developers , especially if you are making an existing application vista compatible.&lt;br /&gt;&lt;br /&gt;One of the first problems we face is how UAC prompts for Administrative credentials whenever it is running an application that performs action that requires administrative privileges.  As a developer, one of first steps we need to do is to disable this.&lt;br /&gt;&lt;br /&gt;All you need to get rid of UAC prompts is the manifest files.&lt;br /&gt;&lt;br /&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;&lt;br /&gt;&amp;lt;assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"&amp;gt;&lt;br /&gt;&amp;lt;assemblyIdentity version="1.3.0.110"&lt;br /&gt; processorArchitecture="X86"&lt;br /&gt; name="MyApplication"&lt;br /&gt; type="win32" /&amp;gt;&lt;br /&gt;&amp;lt;description&amp;gt;MyProjectDescription&amp;lt;/description&amp;gt;&lt;br /&gt;&amp;lt;trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"&amp;gt;&lt;br /&gt;&amp;lt;security&amp;gt;&lt;br /&gt; &amp;lt;requestedPrivileges&amp;gt;&lt;br /&gt;   &amp;lt;requestedExecutionLevel level="asInvoker" /&amp;gt;&lt;br /&gt; &amp;lt;/requestedPrivileges&amp;gt;&lt;br /&gt;&amp;lt;/security&amp;gt;&lt;br /&gt;&amp;lt;/trustInfo&amp;gt;&lt;br /&gt;&amp;lt;/assembly&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;There is two ways you could assign a manifest file to an application.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Method 1:&lt;/b&gt;&lt;br /&gt;You can use Mt.exe to embed the manifest right into the application. Following commands does the job for you.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Mt.exe –manifest TPWPWDbsetup.exe.manifest TPWPWDbsetup.exe&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Method 2:&lt;/b&gt;&lt;br /&gt;The second method is to keep the manifest file along the application. The manifest file should be named as "YourApplicationName.exe.manifest".&lt;br /&gt;Vista would detect the manifest and use the same settings when launching your application.&lt;br /&gt;&lt;br /&gt;Another advantage of using the manifest file is it ensures registry virtualization is turn-off. I would really recommend developers to keep the virtualization turn-off for two reasons&lt;br /&gt;a) Microsoft does seems to have plan to do away with the virtualization in the future editions of OS.&lt;br /&gt;b) With Virtualization turn off, your applications is bound to throw exceptions aiding you in the test phase itself. On other hand, if the virtualization was on, your registry entries are made in localized key without showing any error.&lt;br /&gt;&lt;br /&gt;Following are some of the settings you could use in the manifest file.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;table class="MsoNormalTable" border="1" cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:none;mso-border-alt:solid #A3A3A3 1.0pt;  mso-yfti-tbllook:1184;mso-padding-alt:0in 0in 0in 0in"&gt;  &lt;tbody&gt;&lt;tr style="mso-yfti-irow:0;mso-yfti-firstrow:yes"&gt;   &lt;td width="306" valign="top" style="width:229.3pt;border:solid #A3A3A3 1.0pt;   padding:4.0pt 4.0pt 4.0pt 4.0pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;&lt;b&gt;&lt;span style="font-family:&amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;   mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-Times New Roman&amp;quot;;   font-family:&amp;quot;;font-size:8.5pt;color:#000066;"&gt;Application Marking&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="140" valign="top" style="width:104.7pt;border:solid #A3A3A3 1.0pt;   border-left:none;mso-border-left-alt:solid #A3A3A3 1.0pt;padding:4.0pt 4.0pt 4.0pt 4.0pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;&lt;b&gt;&lt;span style="font-family:&amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;   mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-Times New Roman&amp;quot;;   font-family:&amp;quot;;font-size:8.5pt;color:#000066;"&gt;Virtualize?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:1"&gt;   &lt;td width="306" valign="top" style="width:229.3pt;border:solid #A3A3A3 1.0pt;   border-top:none;mso-border-top-alt:solid #A3A3A3 1.0pt;padding:4.0pt 4.0pt 4.0pt 4.0pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;&lt;span style="font-family:&amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;   mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-Times New Roman&amp;quot;;   font-family:&amp;quot;;font-size:8.5pt;color:black;"&gt;Unmarked&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="140" valign="top" style="width:104.7pt;border-top:none;border-left:   none;border-bottom:solid #A3A3A3 1.0pt;border-right:solid #A3A3A3 1.0pt;   mso-border-top-alt:solid #A3A3A3 1.0pt;mso-border-left-alt:solid #A3A3A3 1.0pt;   padding:4.0pt 4.0pt 4.0pt 4.0pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;&lt;span style="font-family:&amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;   mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-Times New Roman&amp;quot;;   font-family:&amp;quot;;font-size:8.5pt;color:black;"&gt;Yes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:2"&gt;   &lt;td width="306" valign="top" style="width:229.3pt;border:solid #A3A3A3 1.0pt;   border-top:none;mso-border-top-alt:solid #A3A3A3 1.0pt;padding:4.0pt 4.0pt 4.0pt 4.0pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;&lt;span style="font-family:&amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;   mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-Times New Roman&amp;quot;;   font-family:&amp;quot;;font-size:8.5pt;color:black;"&gt;asInvoker&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="140" valign="top" style="width:104.7pt;border-top:none;border-left:   none;border-bottom:solid #A3A3A3 1.0pt;border-right:solid #A3A3A3 1.0pt;   mso-border-top-alt:solid #A3A3A3 1.0pt;mso-border-left-alt:solid #A3A3A3 1.0pt;   padding:4.0pt 4.0pt 4.0pt 4.0pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;&lt;span style="font-family:&amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;   mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-Times New Roman&amp;quot;;   font-family:&amp;quot;;font-size:8.5pt;color:black;"&gt;No&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:3"&gt;   &lt;td width="306" valign="top" style="width:229.3pt;border:solid #A3A3A3 1.0pt;   border-top:none;mso-border-top-alt:solid #A3A3A3 1.0pt;padding:4.0pt 4.0pt 4.0pt 4.0pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;&lt;span style="font-family:&amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;   mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-Times New Roman&amp;quot;;   font-family:&amp;quot;;font-size:8.5pt;color:black;"&gt;requireAdministrator&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="140" valign="top" style="width:104.7pt;border-top:none;border-left:   none;border-bottom:solid #A3A3A3 1.0pt;border-right:solid #A3A3A3 1.0pt;   mso-border-top-alt:solid #A3A3A3 1.0pt;mso-border-left-alt:solid #A3A3A3 1.0pt;   padding:4.0pt 4.0pt 4.0pt 4.0pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;&lt;span style="font-family:&amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;   mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-Times New Roman&amp;quot;;   font-family:&amp;quot;;font-size:8.5pt;color:black;"&gt;No&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="mso-yfti-irow:4;mso-yfti-lastrow:yes"&gt;   &lt;td width="306" valign="top" style="width:229.3pt;border:solid #A3A3A3 1.0pt;   border-top:none;mso-border-top-alt:solid #A3A3A3 1.0pt;padding:4.0pt 4.0pt 4.0pt 4.0pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;&lt;span style="font-family:&amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;   mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-Times New Roman&amp;quot;;   font-family:&amp;quot;;font-size:8.5pt;color:black;"&gt;highestAvailable&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td width="140" valign="top" style="width:104.7pt;border-top:none;border-left:   none;border-bottom:solid #A3A3A3 1.0pt;border-right:solid #A3A3A3 1.0pt;   mso-border-top-alt:solid #A3A3A3 1.0pt;mso-border-left-alt:solid #A3A3A3 1.0pt;   padding:4.0pt 4.0pt 4.0pt 4.0pt"&gt;   &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:   normal"&gt;&lt;span style="font-family:&amp;quot;Verdana&amp;quot;,&amp;quot;sans-serif&amp;quot;;   mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-Times New Roman&amp;quot;;   font-family:&amp;quot;;font-size:8.5pt;color:black;"&gt;No&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-7533539576002935829?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/7533539576002935829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/7533539576002935829'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/07/uac-compatible-applications-part-1.html' title='UAC Compatible applications - Part 1 ( Disable Virtualization )'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-2181711222080599206</id><published>2009-07-02T14:36:00.001+05:30</published><updated>2009-07-02T14:39:22.891+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Virtual Serial Port detection in .Net 1.1</title><content type='html'>&lt;div&gt;.Net  2.0 provides SerialPort  class which helps you in detecting the available Serial Ports in the machine. However, this is one useful class which v1.1 developers find missing in their tool kit.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;As far as 1.1 is concerned we can accomplish it using WMI Classes easily.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;private static void GetAvailablePortListUsingWMI()&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;{&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt; &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;//Below is code pasted from WMICodeCreator&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;try&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;{&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;ManagementObjectSearcher searcher =&lt;/i&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt; &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;new ManagementObjectSearcher("SELECT * FROM Win32_SerialPort");&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;foreach (ManagementObject queryObj in searcher.Get())&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;{&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;    &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;Console.WriteLine("Port : {0}", queryObj["DeviceID"]);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;catch (ManagementException e)&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;{&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;Console.WriteLine(e.Message);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;} &lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;But is this perfect ? At First glance it does give you that impression, but the moment you have your virtual ports running, you are going to run against the wall.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;WMI Classes fails in detecting the Virtual Serial Ports.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Solution wasn't too hard to find. I opened up the reflector against the SerialPort Class supported by .Net 2.0 and checked what it was doing and emulated the same with 1.1 code. The SerialPort class use the registry in detecting the ports and it does support the virtual ports as well.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Following is sample of code which runs in background for the SerialPort class in .Net 2.0&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;private static void  GetAvailablePortListUsingRegistry()&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;  &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;{&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;RegistryKey localMachine = null;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;string[] valueNames=null;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;RegistryKey key2 = null;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;string[] strArray = null;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;new RegistryPermission(RegistryPermissionAccess.Read, @"HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM").Assert();&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;try&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;{&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;    &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;localMachine = Registry.LocalMachine;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;    &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;key2 = localMachine.OpenSubKey(@"HARDWARE\DEVICEMAP\SERIALCOMM", false);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;    &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;if (key2 != null)&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;    &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;{&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;     &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;valueNames = key2.GetValueNames();&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;     &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;strArray = new string[valueNames.Length];&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;     &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;for (int i = 0; i &lt;&gt;&lt;/i&gt;&lt;/span&gt;&lt;i&gt;&lt;/i&gt;&lt;/div&gt;&lt;i&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;     &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;{&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;      &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;strArray[i] = (string) key2.GetValue(valueNames[i]);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;      &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;Console.WriteLine("Port : {0} ",strArray[i]);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;     &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;    &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;catch(Exception ex)&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;{&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;    &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;Console.WriteLine("Error {0}",ex);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;finally&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;{&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;    &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;if (localMachine != null)&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;    &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;{&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;     &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;localMachine.Close();&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;    &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;    &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;if (key2 != null)&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;    &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;{&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;     &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;key2.Close();&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;    &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;    &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;CodeAccessPermission.RevertAssert();&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;   &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;i&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-2181711222080599206?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/2181711222080599206'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/2181711222080599206'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/07/virtual-serial-port-detection-in-net-11.html' title='Virtual Serial Port detection in .Net 1.1'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-3966599496506683557</id><published>2009-06-07T15:52:00.003+05:30</published><updated>2009-06-07T15:55:40.267+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><category scheme='http://www.blogger.com/atom/ns#' term='Techie Tips'/><title type='text'>Tips for buying Laptop</title><content type='html'>&lt;div style="text-align: justify;"&gt;From the time you decide to buy a laptop to the time you actually get it in hand, there are a thousand thoughts that cross your mind. Over the last few years, a whole new generation of Notebooks has hit the market. The technological advances made by these notebooks are so much that an average user finds it scary even to understand the techno jargon let alone make up his mind. So is there an ultimate formula for choosing the right laptop, definitely not. Question of which is the best laptop that’s suits you is something that only you can answer. Once you figure out what you need from your machine depending on your usage, the choice of laptop would automatically appear before you.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div style="text-align: justify;"&gt;Then what I am doing here writing this article? Obviously I am not trying to provide any sort of guidance, rather these are some of the thoughts I personally have based on my experiences with the new age notebooks.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div style="text-align: justify;"&gt;Most of the buyers I have seen give so much importance on brand. But which brand is better ? If I say Sony, there would be hundreds who would argue for Dell. It is one of those questions which will never have an agreeable answer. Each person would answer it depending on his/her experience.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div style="text-align: justify;"&gt;So I would prefer to keep my answer deceptively simple: Choose a well known brand that you believe in.  Probably only point you need to keep in mind choosing a brand is the post sale services. If you are a frequent traveler,  it would be always advisable to stick to a global brand to be on the safer side. Of course it goes without saying that you need to keep an eye on your budget when going for higher brands.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div style="text-align: justify;"&gt;With first hurdle of brand crossed, palpable focus should be on the features. I would personally prefer to give priority on features in following order.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;1.&lt;/b&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;b&gt;Intel Vs AMD.&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;I am not huge fan of AMD Processors and would be any day, recommend the Intel based processors.  This is true despite fact the AMD processors being much cheaper and consequently bring down the laptop cost when compared to its Intel rivals. The sole reason for my loyalty to Intel is due to the fact the Intel chips consume less power when compared to AMD leading to more battery life and less overheating issues.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;2.&lt;/b&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;b&gt;RAM, L2 Cache, Bus Speed&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Have a good eye on this before you choose your machine especially RAM. The higher this number is, the better it is for you. Similarly L2 Cache and Bus Speed also hold high priority as these parameters would largely affect your performance.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;3.&lt;/b&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;b&gt;Graphic Chipset.&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;One common mistake that should be avoided is overlooking this important factor. Quite often consumers are happy with the Integrated Shared memory rather than having a dedicated Graphics card and end up having their CPU power eaten when running a movie.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;I am not asking everyone to go for a high end graphics card. A average user could well settle for a entry level graphics card while a graphics developer for whom 3D Max and Maya forms bread and butter should definitely opt for a higher end graphics card NVedia or any other competitor.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;4.&lt;/b&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;b&gt;HDD Capacity.&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Keep your eyes closed on this one. No matter what the size of HDD is, you will always run short. Remember this rule and don’t even bother about whether to buy a 100Gigs or 200 Gigs laptop.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;5.&lt;/b&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;b&gt;Operating System Support.&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Another key feature you need to look at is the support for different operating system.  Sometime, your desired OS will not be the default one accompanying the OS, in that case make sure the platform you desire to work is supported by the Laptop. Also ensure that the drivers are readily available.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;6.&lt;/b&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;b&gt;Screen Size.&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;If you are a traveler, the common sense smaller the screen, the better you are with portability.Personally, I find 15” laptops quite a hindrance when I move around or even to use it while sitting in a comfortable sofa. If you are a developer or a person who uses laptop quite often better stick to 14” widescreens laptops, but in case you are a multimedia designer you could well be comfortable with the 15” or 17” machines. &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;7.&lt;/b&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;b&gt;Wireless , Bluetooth Capability.&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;In this fast moving world, you just can’t afford to too far away from the internet. Whether you are in a Hotel or Airport, you would prefer to be connected to the internet. Support for wireless connectivity becomes more important under such situations.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;8.&lt;/b&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;b&gt;Extra USB , network ports.&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Gone are the days you would be happy with 2 USB ports. More ports you have, more equipped you are. This holds true in case of network ports.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;9.&lt;/b&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;b&gt;Data Security.&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;If you are a person for data security holds primary importance, you should opt for higher end models. This of course would come with higher price tags.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Despite all this, always remember the Golden Rule : &lt;b&gt;Read review on the model before you buy it&lt;/b&gt;.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-3966599496506683557?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3966599496506683557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3966599496506683557'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/06/tips-for-buying-laptop.html' title='Tips for buying Laptop'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-2557413000527375103</id><published>2009-05-21T13:35:00.001+05:30</published><updated>2009-06-07T15:56:01.958+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Techie Tips'/><title type='text'>Installshield Error</title><content type='html'>&lt;div style="text-align: justify;"&gt;Post install shield 11, the IDE would not successfully launch  when run by a non-administrator and would display following error.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;"InstallShield has not been initialized. InstallShield must be run at least once by a user with Administrator or Power User privileges. "&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;A bit of registry tweaking could help in finding solution to this problem.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;All you need to do is add a key "&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;ProjectTemplatesUpToDate&lt;/span&gt;" ( dword ) with value &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;00000001  &lt;/span&gt;in the following location&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;[HKEY_CURRENT_USER\Software\InstallShield\11.0\Professional\Project Settings] &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Now you will be all set.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-2557413000527375103?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/2557413000527375103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/2557413000527375103'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/05/installshield-error.html' title='Installshield Error'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-3381044877006259632</id><published>2009-05-10T22:38:00.001+05:30</published><updated>2009-05-10T22:43:04.165+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Photography'/><title type='text'>An experiment with lights</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_EK4u-J_MP70/SgcKlXK2_MI/AAAAAAAACFY/-nFlYmjJ_o0/s1600-h/DSC05930.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 300px;" src="http://1.bp.blogspot.com/_EK4u-J_MP70/SgcKlXK2_MI/AAAAAAAACFY/-nFlYmjJ_o0/s400/DSC05930.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5334243920634641602" /&gt;&lt;/a&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;An experiment with light&lt;/span&gt;s&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-3381044877006259632?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3381044877006259632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3381044877006259632'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/05/experiment-with-lights.html' title='An experiment with lights'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_EK4u-J_MP70/SgcKlXK2_MI/AAAAAAAACFY/-nFlYmjJ_o0/s72-c/DSC05930.JPG' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-5536468399322846651</id><published>2009-05-10T18:13:00.001+05:30</published><updated>2009-05-10T18:15:16.133+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Photography'/><title type='text'>Fort Cochin</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_EK4u-J_MP70/SgbMORc8yPI/AAAAAAAACFQ/DsMBeuTEBYY/s1600-h/cochin.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 288px;" src="http://2.bp.blogspot.com/_EK4u-J_MP70/SgbMORc8yPI/AAAAAAAACFQ/DsMBeuTEBYY/s400/cochin.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5334175354241992946" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-5536468399322846651?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/5536468399322846651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/5536468399322846651'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/05/fort-cochin.html' title='Fort Cochin'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_EK4u-J_MP70/SgbMORc8yPI/AAAAAAAACFQ/DsMBeuTEBYY/s72-c/cochin.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-8915683056680830087</id><published>2009-05-10T18:08:00.001+05:30</published><updated>2009-05-10T18:13:01.124+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Photography'/><title type='text'>Book.</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_EK4u-J_MP70/SgbLxT1U4ZI/AAAAAAAACFI/pvtZUQYGTmM/s1600-h/anu+viswan.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 288px;" src="http://2.bp.blogspot.com/_EK4u-J_MP70/SgbLxT1U4ZI/AAAAAAAACFI/pvtZUQYGTmM/s400/anu+viswan.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5334174856664899986" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 238); text-decoration: underline;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;A Writer only begins a book , A Reader finishes it.&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-8915683056680830087?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/8915683056680830087'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/8915683056680830087'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/05/book.html' title='Book.'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_EK4u-J_MP70/SgbLxT1U4ZI/AAAAAAAACFI/pvtZUQYGTmM/s72-c/anu+viswan.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-6457210130878833457</id><published>2009-05-08T12:12:00.000+05:30</published><updated>2009-05-08T12:13:56.434+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Techie Tips'/><title type='text'>Clearing "saved" network passwords</title><content type='html'>Quite often we "save" passwords for frequently used network resources and later end up asking ourself, how the hell are we going to erase it ?&lt;br /&gt;&lt;br /&gt;Unlike email or any other services, there isn't any place to remove the cached files and remove the saved password. Or do we think so ? In fact, you can do it.&lt;br /&gt;&lt;br /&gt;Execute the following statements and you have the list you want.&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;"rundll32.exe keymgr.dll, KRShowKeyMgr"&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-6457210130878833457?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/6457210130878833457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/6457210130878833457'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/05/clearing-saved-network-passwords.html' title='Clearing &quot;saved&quot; network passwords'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-7129944418498026552</id><published>2009-04-25T13:22:00.001+05:30</published><updated>2009-06-07T15:56:49.138+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><category scheme='http://www.blogger.com/atom/ns#' term='Techie Tips'/><title type='text'>Software Craftsman Vs Industrial Programmer</title><content type='html'>&lt;div&gt;&lt;div style="text-align: justify;"&gt;Who do you want in your team ? A Software Craftsman or a Industrial Programmer ? This is question that has provoked strong reactions on both sides.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Question 1 would be who is a Software Craftsman and who is a Industrial Programmer. Let us tackle that first.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Software Craftsman is some one who thinks that software development is not just about put some dear code together, but instead strives to believe and make other believe that it is a craft. He takes pride in his code and strives to bring best of each line of code. He is in love with the code, rather than his task on hand.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Industrial Programmer, on other hand, is someone who understand the nuances of his task. His aim is to build a software that the customer would love. They take pride in delivering value to the customer rather the best.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Neither is better than other; the IT industry needs both.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Where would I put my money on, whom who would I love to have in my team : a Craftsman or Industrial Programmer ? A tricky question.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Although I do admit that it is the later who the business units prefer as they keep mouth shut and focus on  "getting things done" rather than "doing it the right way", I do have my affinity more to the Software Craftsman.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;For me , a Industrial Programmer may be producing "more" business , but a craftsman would produce "valuable" business.  This is because the output is a program that is more complete and optimized.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;There are many traits that you could find in a Craftsman's work, particularly his irresistible desire to stick to the Kiss Principle. Keep it Simple Stupid, or the KISS principle is very special for a craftsman.&lt;/div&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;div style="text-align: justify;"&gt;There is a famous line in "The best software designs look simple, but it takes a lot of hard work to design a simple architecture."&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The power of simplicity cannot be underestimated at any field, let alone coding.  One could actually feel a touch of genius every time you see most baffling problems being solved with most simplest solution.  This happens only because they are so strong in their basics and understanding of the language, that it helps them get best out of each line they write.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;As they say, A designer knows he has arrived at perfection not when there is no longer anything to add, but when there is no longer anything to take away. The craftsman chips away their code until there is nothing to improve further.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;He also understands the benefits of polygot programming and does make it a note to take the best out of each programming language. For instance, even when developing in .Net, he could go for doing bulk of coding in C# but could extract the advantages of functional programming using F#.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Now why would I would prefer a Craftsman ? Because I do believe when someone fell in love with his code, you can be ensured that each he line he writes would invaluable asset.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;As the Great Albert Einstein said, &lt;span class="Apple-style-span" style="font-style: italic;"&gt;"Any fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction&lt;/span&gt; "&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&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/18313898-7129944418498026552?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/7129944418498026552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/7129944418498026552'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/04/software-craftsman-vs-industrial.html' title='Software Craftsman Vs Industrial Programmer'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-1624485422603324635</id><published>2009-04-25T10:39:00.001+05:30</published><updated>2009-04-25T10:42:38.321+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>Disable Right Click in DataGrid , Thanks Justin</title><content type='html'>&lt;div&gt;&lt;div&gt;It is only few days earlier I had posted an entry about disabling right click in a TextBox.  Now how we do the same in DataGrid ?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;It doesn’t seem quite as easy as in case of TextBox.  The idea in assigning ContextMenu to DataGrid backfires when you attempt to right click right inside a cell.  Thanks to my friend Justin Jose, I do have the solution for it.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;DataGridTextBoxColumn dgColumn = new DataGridTextBoxColumn();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;dgColumn.TextBox.ContextMenu = contextMenu1;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;dgColumn.MappingName = "ColumnName";&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;DataGridTableStyle dgTableStyle = new DataGridTableStyle();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;dgTableStyle.GridColumnStyles.Add(dgColumn);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;myDataGrid.TableStyles.Add(dgTableStyle)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Thanks Justin, this is cool&lt;/div&gt;&lt;div&gt;&lt;br /&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/18313898-1624485422603324635?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1624485422603324635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1624485422603324635'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/04/disable-right-click-in-datagrid-thanks.html' title='Disable Right Click in DataGrid , Thanks Justin'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-1492489636526948360</id><published>2009-04-23T15:07:00.002+05:30</published><updated>2009-04-23T15:10:31.482+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Software Engineering'/><title type='text'>Software Craftsman's Ethics</title><content type='html'>Here is the famous Software Craftsman's Ethics published by the group.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;We Care&lt;/span&gt;&lt;br /&gt;We consider it our responsibility&lt;br /&gt;  to gain the trust of the businesses we serve;&lt;br /&gt;    therefore, we&lt;br /&gt;      take our customer's problems as seriously as they do and&lt;br /&gt;      stake our reputation on the quality of the work we produce.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;We Practice&lt;/span&gt;&lt;br /&gt;We consider it our responsibility&lt;br /&gt;  to write code that is defect-free, proven, readable, understandable and malleable;&lt;br /&gt;    therefore, we&lt;br /&gt;      follow our chosen practices meticulously even under pressure and&lt;br /&gt;      practice our techniques regularly.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;We Learn&lt;/span&gt;&lt;br /&gt;We consider it our responsibility&lt;br /&gt;  to hone our craft in pursuit of mastery;&lt;br /&gt;    therefore, we&lt;br /&gt;      continuously explore new technologies and&lt;br /&gt;      read and study the work of other craftsmen.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;We Share&lt;/span&gt;&lt;br /&gt;We consider it our responsibility&lt;br /&gt;  to perpetuate the craft of Software;&lt;br /&gt;    therefore, we&lt;br /&gt;      enlist apprentices to learn it and&lt;br /&gt;      actively engage other craftsmen in dialogue and practice.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-1492489636526948360?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1492489636526948360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1492489636526948360'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/04/software-craftsmans-ethics.html' title='Software Craftsman&apos;s Ethics'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-6735082671578123494</id><published>2009-04-21T17:28:00.000+05:30</published><updated>2009-04-21T17:29:20.831+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>Disable Textbox Right Click Context Menu</title><content type='html'>Earlier today I had a requirement to disable right click context menu inside a TextBox Control. Though the solution looked simple at hindsight,  it did seem cheeky.&lt;br /&gt;&lt;br /&gt;All you needed to do was to add a Context Menu to you Form and attach this as the Context Menu for your Text Box Control. And that is all you need to think about !!&lt;br /&gt;&lt;br /&gt;What happens is when you are not specifying any Context menu explicitly, Windows default Context menu gets attached to your control. By overriding it with another empty menu control, you are denying the default one an appearance.&lt;br /&gt;&lt;br /&gt;Simple as it can get.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-6735082671578123494?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/6735082671578123494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/6735082671578123494'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/04/disable-textbox-right-click-context.html' title='Disable Textbox Right Click Context Menu'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-364529955162832430</id><published>2009-04-20T21:18:00.002+05:30</published><updated>2009-06-07T15:57:28.943+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sports'/><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Strategic Commercialized BREAK</title><content type='html'>&lt;div style="text-align: justify;"&gt;The Indian Premier League was , is and will be always going to be all about fast-paced cricked and lots of money. The franchises who had pooled in monstrous  amount of money to get the best in world in their team, did make sure they get it back by various marketing methods.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;But how could the organizers be left behind ? We saw that in the last season as well, but this time round, they took it to all new level. &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The so called cleverly devised "strategic break" seems to have a sole intention - get the commercial in and fill in your purses. Lalit Modi's explanation about the breaks makes him looks absolutely idiot and he seems to think the general public would buy that.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;For the sake all those who are not quite following IPL, let me just explain what it is all about. The strategy break is a 7 and half minute break, that happens at the end of 10 overs. Modi's explanation is this would allow teams to get their thoughts together and avoid 12th man running in every now and then carrying message from the dug out.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The organizers are licking their lips on the money that is going on roll out in form of TV Commercials, but what it has done is it has taken the momentum out of the game. 20 20 is all about massacre and innovative cricket, but all 5 matches I have seen so far in this edition of IPL, saw the breaks causing disaster for the batting side. &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;CSK was coasting at 100 in 10 overs when they break came in and next two balls on other side of break saw two settled batsman falling and along with it the momentum CSK had.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;So Mr. Modi, your brain child IPL is definitely a  treat to watch, but please don't kill the goose that lay golden eggs with ideas such this.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-364529955162832430?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/364529955162832430'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/364529955162832430'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/04/strategic-commercialized-break.html' title='Strategic Commercialized BREAK'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-7976120593879479216</id><published>2009-04-19T22:59:00.002+05:30</published><updated>2009-04-23T13:47:20.794+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Photography'/><title type='text'>Reflections</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_EK4u-J_MP70/SetgagzmCOI/AAAAAAAACDQ/Dc_kJPCQHDw/s1600-h/DSC05526.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 300px;" src="http://2.bp.blogspot.com/_EK4u-J_MP70/SetgagzmCOI/AAAAAAAACDQ/Dc_kJPCQHDw/s400/DSC05526.JPG" alt="anu viswan" id="BLOGGER_PHOTO_ID_5326456992894945506" border="0" /&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style=";font-family:Verdana;font-size:12;"  &gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;“Reflect on your present blessings, of which every man has many; not on your past misfortunes, of which all men have some.” -Charles Dicken&lt;/span&gt;s&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-7976120593879479216?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/7976120593879479216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/7976120593879479216'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/04/reflections.html' title='Reflections'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_EK4u-J_MP70/SetgagzmCOI/AAAAAAAACDQ/Dc_kJPCQHDw/s72-c/DSC05526.JPG' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-8283303521146278714</id><published>2009-04-19T22:54:00.003+05:30</published><updated>2009-04-23T13:47:51.794+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Photography'/><title type='text'>Splash of life</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_EK4u-J_MP70/SetfF66CVBI/AAAAAAAACDI/QPSgwMfvaeo/s1600-h/DSC05605.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 300px;" src="http://3.bp.blogspot.com/_EK4u-J_MP70/SetfF66CVBI/AAAAAAAACDI/QPSgwMfvaeo/s400/DSC05605.JPG" border="0" alt="anu viswan" id="BLOGGER_PHOTO_ID_5326455539612406802" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;A splash of life&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-8283303521146278714?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/8283303521146278714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/8283303521146278714'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/04/splash-of-life.html' title='Splash of life'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_EK4u-J_MP70/SetfF66CVBI/AAAAAAAACDI/QPSgwMfvaeo/s72-c/DSC05605.JPG' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-1892967418564857632</id><published>2009-04-19T22:48:00.002+05:30</published><updated>2009-04-23T13:48:01.331+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Photography'/><title type='text'>Paradise beyond borders.</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_EK4u-J_MP70/Setdvw11uhI/AAAAAAAACDA/AEBEnyZMnBU/s1600-h/DSC05509.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 300px;" src="http://2.bp.blogspot.com/_EK4u-J_MP70/Setdvw11uhI/AAAAAAAACDA/AEBEnyZMnBU/s400/DSC05509.JPG" border="0" alt="anu viswan" id="BLOGGER_PHOTO_ID_5326454059441699346" /&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: Verdana; font-size: 12px; "&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-style: italic; "&gt;Across the borders, lies an unseen paradise. Why bind ourself in barricade of petty differences.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-1892967418564857632?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1892967418564857632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1892967418564857632'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/04/paradise-beyond-borders.html' title='Paradise beyond borders.'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_EK4u-J_MP70/Setdvw11uhI/AAAAAAAACDA/AEBEnyZMnBU/s72-c/DSC05509.JPG' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-5933230187310908464</id><published>2009-04-16T16:57:00.002+05:30</published><updated>2009-06-07T15:58:16.740+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Being Infamous is NOT Famous.</title><content type='html'>&lt;div style="text-align: justify;"&gt;Earlier in the day I was severely criticized by friends for not casting my vote in general election, but my answer to them was simple, name a single a candidate who is worthy of being voted ?&lt;/div&gt;&lt;br /&gt;My approach stood vindicated later in the day when a senior advocate of Indian judiciary thought of earning some fame for himself. The advocate, who answers to the name Sudhir Kumar Ojha, seems to have forgot that "Being Infamous is NOT Famous". Wonder when people would understand this simple rule of universe.&lt;br /&gt;&lt;br /&gt;Advocate has filed  "criminal case" against M S Dhoni and Harbhajan for not attending the award function.  The cricketers are charged under IPC 499 ( defamation ), 503 ( criminal intimidation ) and 504 ( intentional insult with intend to provoke breach of the peace).&lt;br /&gt;&lt;br /&gt;I agree this is one of the highest award for any indian sportsman and respect the sanctity of the award, but dude, you got to respect the cricketers who get to spend only 2-3 days with their families in months. And for that if you are going to file criminal charges, Mr.Sudhir Kumar, you are making a mockery of Indian Judiciary.&lt;br /&gt;&lt;br /&gt;My Message for Sudhir Kumar would be simple , MSD and Bhajji has done far more for the nation than you could do with all your service. If you really are hungry for fame, better try out some other profession mate.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-5933230187310908464?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/5933230187310908464'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/5933230187310908464'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/04/being-infamous-is-not-famous.html' title='Being Infamous is NOT Famous.'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-959536145277597118</id><published>2009-04-15T12:03:00.000+05:30</published><updated>2009-04-15T12:10:07.825+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ActionScript and Flex'/><title type='text'>Radio Button Binding in Flex</title><content type='html'>How do we bind a radio button group to an XML ? Not all that straightforward in Flex. But not that difficult either.&lt;br /&gt;&lt;br /&gt;What you need to do is to make use of the Repeater Control. Check out the following code.&lt;br /&gt;&lt;br /&gt;       private var treeData:XML =&lt;br /&gt;       &amp;lt;QMS&amp;gt;&lt;br /&gt;               &amp;lt;Question Label="This is Question 1"&amp;gt;&lt;br /&gt;                   &amp;lt;Option Label="This is option one"/&amp;gt;&lt;br /&gt;                   &amp;lt;Option Label="This is option one 2"/&amp;gt;&lt;br /&gt;                   &amp;lt;Option Label="This is option one 3"/&amp;gt;&lt;br /&gt;                   &amp;lt;Option Label="This is option one 4"/&amp;gt;&lt;br /&gt;               &amp;lt;/Question&amp;gt;&lt;br /&gt;           &amp;lt;/QMS&amp;gt;;&lt;br /&gt;&lt;br /&gt;&amp;lt;mx:VBox&amp;gt;&lt;br /&gt; &amp;lt;mx:Repeater  dataProvider="{treeData.Question.Option}" id="repeater1"&amp;gt;&lt;br /&gt;  &amp;lt;mx:RadioButton label="{repeater1.currentItem.@Label}" width="201"  groupName="radioBtnGroup"/&amp;gt;     &lt;br /&gt;&amp;lt;/mx:Repeater&amp;gt;&lt;br /&gt;&amp;lt;/mx:VBox&amp;gt;&lt;br /&gt;&lt;br /&gt;That's all you need. :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-959536145277597118?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/959536145277597118'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/959536145277597118'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/04/radio-button-binding-in-flex.html' title='Radio Button Binding in Flex'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-6636136825978769053</id><published>2009-04-06T14:06:00.002+05:30</published><updated>2009-06-07T15:58:25.050+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ActionScript and Flex'/><title type='text'>AS3 &amp; Flex : Querying the PHP Server</title><content type='html'>&lt;div style="text-align: justify;"&gt;I had to foray into the work Flex over the last week. Quite a newbie into this part of programming world, it was an interesting change to say the least.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;As always, my blog entries are reflection of what I found interesting and thought would be useful to me later on for reference.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;So here is how we query a external datasource like PHP Server for a query in Flex.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;First and most important control you need to declare for the purpose is the HTTPService control.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;mx:httpservice id="serv" url="../Server/Login.PHP" method="POST" result="resultHandler(event)"&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;lt;/mx:httpservice&amp;gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;If you notice, we have given the URL of PHP page to which we would be posting our queries.Also mentioned is a "resultHandler" method which would be handling the events succeeding arrival of  reply from the Server.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;So how do you make the query in first place ? As you would have guessed, we would be making use of the HTTPService.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;var params:Object = {};&lt;/div&gt;&lt;div style="text-align: justify;"&gt;params["ACTION"]="LOGIN";&lt;/div&gt;&lt;div style="text-align: justify;"&gt;params["PARAM_USERNAME"]="anu";&lt;/div&gt;&lt;div style="text-align: justify;"&gt;params["PARAM_PASSWORD"]="anu1";&lt;/div&gt;&lt;div style="text-align: justify;"&gt;serv.send(params);&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;In the above code, I have send the request to server using the serv.Send() method. I am also attaching the Parameters that I need through the method.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Now with that done, the query to PHP server is send out. The PHP page would process the query and send us back the result. In my case the result would be in a XML Format.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;As mentioned earlier, the resultHandler method would be fired once the application receives result from the PHP Server.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;private function resultHandler(event:ResultEvent):void&lt;/div&gt;&lt;div style="text-align: justify;"&gt;{&lt;/div&gt;&lt;div style="text-align: justify;"&gt;}&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The event parameter in the method would contain the required result you have been waiting for.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Now that doesn’t look too different from coding in C#. Doesn’t it ?&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-6636136825978769053?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/6636136825978769053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/6636136825978769053'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/04/as3-flex-querying-php-server.html' title='AS3 &amp; Flex : Querying the PHP Server'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-7706143251258322060</id><published>2009-03-28T22:08:00.005+05:30</published><updated>2009-06-07T15:59:08.074+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Elections: Is there anyone worthy to be Voted for ?</title><content type='html'>&lt;div style="text-align: justify;"&gt;"Vote for XYZ" posters seems covered every inch of walls as I drive down toward my office. Yes, the election in worlds biggest democracy is fast approaching and no political party is leaving any stone unturned to promote their candidate.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;I am 25 years of age but I don’t regret when I say I haven't voted in my country's election yet. The reason is simple, I just don’t believe in the so called leaders of the state.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;If you look at the Indian Cricket Team, a captain like MS Dhoni is someone we adore because he leads by example. He is someone the team believes in and he is made the entire indian fans believe in him. But that’s not the scenario in Indian Politics. It is pretty to sad to say this, but there is not a single political party or individual who makes you feel that here is a person who you can trust.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Even though politics is something I hate talking about,A recent event in the Indian politics has made me write this..I had written in a blog entry earlier about the insensitiveness of a Delhi CM following death of a lady journalist and politicians supported "Moral Police Goons" taking law into their hands.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Just as when I thought politicians would try to keep their image clean during Elections to woe hearts of voters, came the thunderbolt named Varun Ghandhi.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;This guy seems to have either few nuts loose or seems to born &amp;amp; bought up in Taliban. It was pathetic to hear this guy thrashing the secular image of india by swearing to send Muslims to Pakistan or cut their heads off.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;India has been a state that has a diverse collection of people speaking different languages, following different religions and principles living a peaceful life. Kids has been taught from school days about the secularism in India. Now here comes a young politicians who is breathing fire on Muslims and spreading communal hatred.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;And what’s more ?? Day he is arrested , his mom Maneka Ghandhi comes out with a statement that a Muslim Police officer had ordered firing on the mob that were trying to create a riot following Varuns arrest.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;I have always respected Maneka Ghandhi for her contribution towards the wildlife and animal protection activities she has been involved. Probably that respect would no longer exist following her statement today which could well ignite a major communal riot in the country.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;At first I thought Mrs Ghandhi had spend so much time with animals that she bought her son up in same lines, but now it seems she herself too had picked up a trait or two from them.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Probably Varun is following his dad's footprints.Who can forget Sanjay Ghandhi's role in imposing emergency in 1975 and his misuse of power held by mother Indira.Following wrong footsteps is not a new in Indian politics, after all,not much time has passed after Raj Thackeray tried to emulate his uncle in Maharastra.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Man, how can anyone wish such people to lead the nation ? Worst part of story is the man who is said to be the lead runner for the post of Prime Minister is the same person who was leading the charge in a rally which lead to biggest bloodshed India has ever seen. The riots following the Babri Masjid demolitions and unholy alliance of Advani &amp;amp; rioters is something which would have many groaning in disgust if he becomes the Indian PM.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Probably the last individual to have donned a political cap and yet won respect of free-thinkers (ones who are not attached to any political party) is APJ Abdul Kalam. He was one person who could be looked upto and one who could be a hero or role model.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-7706143251258322060?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/7706143251258322060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/7706143251258322060'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/03/elections-is-there-anyone-worthy-to-be.html' title='Elections: Is there anyone worthy to be Voted for ?'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-416424989633697787</id><published>2009-03-27T15:08:00.002+05:30</published><updated>2009-03-27T15:15:20.580+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Get List of Event Handlers.</title><content type='html'>Quite often we would need to get list of Event Handlers of a particular event from outside the Class that has actually implemented it.&lt;br /&gt;&lt;br /&gt;Here is a method which allows you to Check if Event Hendlers are added and if so, gives you the list of method name of those handlers.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;private static ArrayList GetListOfEventHanlders()&lt;br /&gt;{ &lt;br /&gt;ArrayList delgList;&lt;br /&gt;FieldInfo fi = objClassInstance.GetType().GetField("MyEvent",BindingFlags.Instance | BindingFlags.NonPublic);&lt;br /&gt;&lt;br /&gt;object handler = fi.GetValue(objClassInstance);&lt;br /&gt;if(handler!=null)&lt;br /&gt;{&lt;br /&gt;delgList = new ArrayList();&lt;br /&gt;MulticastDelegate originalDelegate = handler as System.MulticastDelegate;&lt;br /&gt;Delegate[] originalHandlers = originalDelegate.GetInvocationList();&lt;br /&gt;foreach(Delegate item in originalHandlers)&lt;br /&gt;{&lt;br /&gt;delgList.Add(item.Method.Name);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;return null;&lt;br /&gt;}&lt;br /&gt;return delgList;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;For more details do check out this excellent article by Stephen Horsfield at http://blogs.interakting.co.uk/steve/archive/2008/05/19/NET--Hacking-events-and-manipulating-delegates.aspx&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-416424989633697787?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/416424989633697787'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/416424989633697787'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/03/get-list-of-event-handlers.html' title='Get List of Event Handlers.'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-779553714155062357</id><published>2009-03-19T00:23:00.000+05:30</published><updated>2009-03-19T00:25:39.725+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Personal'/><title type='text'>Cherishing Memories</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_EK4u-J_MP70/ScFDYrcvgYI/AAAAAAAACCA/EXmWX1TI6dE/s1600-h/friends.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 320px;" src="http://1.bp.blogspot.com/_EK4u-J_MP70/ScFDYrcvgYI/AAAAAAAACCA/EXmWX1TI6dE/s400/friends.jpg" alt="" id="BLOGGER_PHOTO_ID_5314603126533095810" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-779553714155062357?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/779553714155062357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/779553714155062357'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/03/cherishing-memories.html' title='Cherishing Memories'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_EK4u-J_MP70/ScFDYrcvgYI/AAAAAAAACCA/EXmWX1TI6dE/s72-c/friends.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-3208086598438829163</id><published>2009-03-18T08:23:00.004+05:30</published><updated>2009-11-01T20:46:27.364+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Personal'/><category scheme='http://www.blogger.com/atom/ns#' term='My Poems'/><title type='text'>Why did you leave me?</title><content type='html'>&lt;div&gt;[Dedicated to a very dear friend]&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Words would flatter and fumble, if I were to describe what you meant to me&lt;/div&gt;&lt;div&gt;For we were best of friends, or was it just me&lt;/div&gt;&lt;div&gt;It wasn’t long ago when we shared joys and tears&lt;/div&gt;&lt;div&gt;Though, it feels ages now, for the scars and distance that remains&lt;/div&gt;&lt;div&gt;O friend, why did you go away? &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You were the sunshine who woke me from the darkness of solitude&lt;/div&gt;&lt;div&gt;Holding hands, you bought a wandering soul back to life&lt;/div&gt;&lt;div&gt;Like a true friend, you picked me up when I was down&lt;/div&gt;&lt;div&gt;And with affection of a sister, you turned my life around.&lt;/div&gt;&lt;div&gt;I never knew this world was so beautiful &lt;/div&gt;&lt;div&gt;Until your innocence became my eyes&lt;/div&gt;&lt;div&gt;Neither did I realize dark clouds spreading over the blue sky&lt;/div&gt;&lt;div&gt;Until you faded away far into oblivion &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;I still remember the day you said good bye&lt;/div&gt;&lt;div&gt;The moment when I felt lonely in the crowd&lt;/div&gt;&lt;div&gt;By now tears have dried and soul empty, &lt;/div&gt;&lt;div&gt;As if engulfed by a numbing fog&lt;/div&gt;&lt;div&gt;Pathetic smile hid pain in my heart,&lt;/div&gt;&lt;div&gt;As dagger of loneliness penetrate me inside&lt;/div&gt;&lt;div&gt;And utter silence of vacuum filled my ears and world &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;O friend, why did you leave me? Questions that will haunt me forever&lt;/div&gt;&lt;div&gt;O sister, did I ever hurt you? Answers I seek in your eyes &lt;/div&gt;&lt;div&gt;I said sorry, albeit I didn’t know what I did wrong&lt;/div&gt;&lt;div&gt;For you were the blessings, that giving meaning to life that had none&lt;/div&gt;&lt;div&gt;But O dear, if only you could hear me once&lt;/div&gt;&lt;div&gt;Will you tell me reason why you left me?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-3208086598438829163?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3208086598438829163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3208086598438829163'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/03/why-did-you-leave-me.html' title='Why did you leave me?'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-627267639154600988</id><published>2009-03-14T18:07:00.000+05:30</published><updated>2009-03-14T18:09:27.855+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>Lazy Evaluation : A Future CLR Need ?</title><content type='html'>Let's us first have a look at the code below.&lt;br /&gt;&lt;br /&gt;       &lt;span style="font-style: italic;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;static void Main(string[] args)&lt;br /&gt;        {&lt;br /&gt;            GetConstant(GetInfinity());&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        static int GetConstant(int x)&lt;br /&gt;        {&lt;br /&gt;&lt;br /&gt;            return 0;&lt;br /&gt;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        static int GetInfinity()&lt;br /&gt;        {&lt;br /&gt;&lt;br /&gt;            return GetInfinity() + 1;&lt;br /&gt;&lt;br /&gt;        }&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;That looks pretty straightforward code, but if you look closely, we would realize this would end up in a StackOverflowException owing to the infinite recursive GetInfinity Method. If you look furthur closely, do we really need a call to GetInfinity in first place, as GetConstant Method would return a value 0, least bothering the value returned by GetInfinity.&lt;br /&gt;&lt;br /&gt;This is where my thought process starts. Cann't the compiler make the decission of whether to make a call to GetInfinity ?&lt;br /&gt;&lt;br /&gt;At the end of the day, there are 2 different evaluation orders that could be follows.&lt;br /&gt;&lt;br /&gt;a) GetConstant(GetInifinity()) =&gt; GetConstant(GetInifinity()+1) =&gt; GetConstant(GetInifinity() +1 +1 )....&lt;br /&gt;&lt;br /&gt;b) GetConstant(GetInifinity()) =&gt;0&lt;br /&gt;&lt;br /&gt;If you notice, the first one never stops while the second one terminates after the first line.&lt;br /&gt;&lt;br /&gt;This is something which functional programming languages can take pride in, the Lazy Evaluation.&lt;br /&gt;&lt;br /&gt;Wikipedia defines Lazy Evaluation is the technique for delaying a computation until such time as the result of the computation known to be needed.&lt;br /&gt;&lt;br /&gt;CLR engages in eager evaluation and hence get it self tangled in the infinite recursive loop in the code above.&lt;br /&gt;&lt;br /&gt;I believe this is something Microsoft can bring in the future version of C#. Lazy evaluation can save us quite a bit of time.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-627267639154600988?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/627267639154600988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/627267639154600988'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/03/lazy-evaluation-future-clr-need.html' title='Lazy Evaluation : A Future CLR Need ?'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-2709498368420144499</id><published>2009-03-13T10:22:00.000+05:30</published><updated>2009-03-13T10:24:10.008+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Techie Tips'/><title type='text'>Disable restart after Win update</title><content type='html'>The bothersome "Updating your computer is almost complete. You must restart your computer for the updates to take effect. Do you want to restart your computer now?" is one message most Win XP users are irritated with.&lt;br /&gt;&lt;br /&gt;Quite often we would be engrossed in some work and this irritating dialogs start prompting you every 10 Mins.&lt;br /&gt;&lt;br /&gt;Here is a way to disable this prompt.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Start / Run / gpedit.msc / Local Computer Policy / Computer Configuration / Administrative Templates / Windows Components / Windows Update / Re-prompt for restart with scheduled installations&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You can enforce the Group Policies by “&lt;span style="font-weight: bold; font-style: italic;"&gt;gpupdate.exe /force&lt;/span&gt;” command without having to restart the system&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-2709498368420144499?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/2709498368420144499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/2709498368420144499'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/03/disable-restart-after-win-update.html' title='Disable restart after Win update'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-3585416722342839557</id><published>2009-03-11T15:29:00.002+05:30</published><updated>2009-03-11T15:35:17.405+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Get All Physical Drives</title><content type='html'>.Net 2005 provides us with the DriveInfo Class which enables us to get all logical drives in our system. We can use this class along with the property of DriveType to filter out the physical drives. But the problem with this approach is, suppose you were to connect an external USB Hard disk to your system, even that is detected as Physical Drive. Ideally you would want that to be detected as a Removable Drive.&lt;br /&gt;&lt;br /&gt;We can accomplish this using WMI Classes. Check out the following function&lt;br /&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;  private static StringCollection GetDrives()&lt;br /&gt; {&lt;br /&gt;  StringCollection drives = new StringCollection();&lt;br /&gt;&lt;br /&gt; foreach(ManagementObject drive in new ManagementObjectSearcher("select * from Win32_DiskDrive where InterfaceType!='USB'").Get())&lt;br /&gt; {&lt;br /&gt; foreach(ManagementObject partition in new ManagementObjectSearcher("ASSOCIATORS OF {Win32_DiskDrive.DeviceID='" + drive["DeviceID"] + "'} WHERE AssocClass = Win32_DiskDriveToDiskPartition").Get())&lt;br /&gt;  {&lt;br /&gt; foreach(ManagementObject disk in new ManagementObjectSearcher("ASSOCIATORS OF {Win32_DiskPartition.DeviceID='"+ partition["DeviceID"]+ "'} WHERE AssocClass =  Win32_LogicalDiskToPartition").Get())&lt;br /&gt; {&lt;br /&gt;  drives.Add(disk["Name"].ToString());&lt;br /&gt;  }&lt;br /&gt;   }&lt;br /&gt;   }&lt;br /&gt;   return drives;&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/18313898-3585416722342839557?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3585416722342839557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3585416722342839557'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/03/get-all-physical-drives.html' title='Get All Physical Drives'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-4133799494844736856</id><published>2009-03-09T14:26:00.006+05:30</published><updated>2009-03-09T14:35:55.939+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Dynamic Interface Addition to existing Class using Reflection</title><content type='html'>I recently went through an article by Eric McMullen. The power of reflection and dynamic code was so well depicted in the article.&lt;br /&gt;&lt;br /&gt;We know how to create a dynamic code using reflection. But what i liked about this bit of article from Eric was how an already existing type was wrapped by a Interface dynamically at the runtime. Now, isn't that a useful feature to have ??&lt;br /&gt;&lt;br /&gt;Not sure ?? Think in this manner. You have an interface with a method "Name". You also have a class "MyName" which DOES NOT implement the interface but has a virtual method "Name". It is obvious that you cannt create a referance of the interface for the class. But the point , is with Dynamic extension, we could just well do it.&lt;br /&gt;&lt;br /&gt;How do we do it ? lets have a look at the code.&lt;br /&gt;&lt;br /&gt;First and foremost thing you would want is have an assembly, in this case a dynamic one. So let us go ahead and degfine it first.&lt;br /&gt;&lt;br /&gt;I have create a function which would take the target type and interface that needs to be implement as parameters.&lt;br /&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;public object GetNewImplementation(System.Type TargetType,System.Type InterfaceToImplement)&lt;br /&gt;{&lt;br /&gt;AssemblyName an = new AssemblyName();&lt;br /&gt;an.Name = "ExtendedTypes";&lt;br /&gt;assemblyBuilder = AppDomain.CurrentDomain.DefineDynamicAssembly(an, AssemblyBuilderAccess.RunAndSave);&lt;br /&gt;moduleBuilder = assemblyBuilder.DefineDynamicModule("MainModule");&lt;br /&gt;AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler ( CurrentDomain_AssemblyResolve);&lt;br /&gt;Type t =  Subclass (moduleBuilder, TargetType, InterfaceToImplement,  "ClassTest1");&lt;br /&gt;return (Activator.CreateInstance(t,true)) as object;&lt;br /&gt;};&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;As you can see i am calling a SubClass method in later part of the method. This is the magic method which does the trick for us.&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;public Type Subclass(ModuleBuilder builder, Type target, Type interfaceToImplement, string newTypeName)&lt;br /&gt;{&lt;br /&gt;TypeAttributes attributes = TypeAttributes.Public;&lt;br /&gt;&lt;br /&gt;TypeBuilder tb =builder.DefineType("ConsoleApplication1.DynamicClassTest1", attributes,target);&lt;br /&gt;tb.AddInterfaceImplementation(interfaceToImplement);&lt;br /&gt;&lt;br /&gt;Type subClass = tb.CreateType();&lt;br /&gt;return subClass;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;private Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)&lt;br /&gt;{&lt;br /&gt;Assembly returnVal = null;&lt;br /&gt;if(args.Name == this.assemblyBuilder.FullName)&lt;br /&gt;{&lt;br /&gt;returnVal = assemblyBuilder;&lt;br /&gt;}&lt;br /&gt;return returnVal;&lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now is that cool ?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-4133799494844736856?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/4133799494844736856'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/4133799494844736856'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/03/dynamic-interface-addition-to-existing.html' title='Dynamic Interface Addition to existing Class using Reflection'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-3388002898748762231</id><published>2009-03-06T00:40:00.000+05:30</published><updated>2009-03-06T00:43:01.327+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Passing Reference Variable using Pass-by-Value</title><content type='html'>This is bit of going back to school.But at times, it's nice to revisit old classes once in a while.&lt;br /&gt;&lt;br /&gt;Pass-By-Value and and Pass-By-Ref is something we learnt when we all started coding. But these are some very basics which we often tend to overlook. I recently was talking to a friend of mine who was passing a KeyPressEventArgs object to a Method by value. We for a longer part, overlooked the basics of programming and kept wondering why the value of property "Handled" was changed , despite the object being passed as "pass-by-value".&lt;br /&gt;&lt;br /&gt;But that’s exactly how it should be.  The value ought to be changed because we are passing a reference variable by value. That's the quintessential  behavior. Lemme put it up in an example.&lt;br /&gt;&lt;br /&gt;private void ArrayChange(int []G)&lt;br /&gt;{&lt;br /&gt; G[0]= 3434;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;private void MyFunction()&lt;br /&gt;{&lt;br /&gt;int []arr = new int[]{3,4};&lt;br /&gt;ArrayChange(arr);&lt;br /&gt;Console.WriteLine(arr[0]);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The output of this would be 3434 and NOT 3. This is because even though the array is being passed as Value, being the reference variable, it is the reference to array that gets passed and not the entire array as such.&lt;br /&gt;&lt;br /&gt;This is exactly what happened in my case. KeyPressEventArgs being a reference variable reacted in the same way it has been designed to.&lt;br /&gt;&lt;br /&gt;Well, rather to look our self as stupid, optimistically I would prefer to believe that such goof-ups would occur when one started looking beyond the basics. This is also where the KISS ( Keep It Simple Stupid) principle comes along. &lt;br /&gt;&lt;br /&gt;As programmer's we often think too many complicated solutions for a very simple problem. Probably, it is quite a good idea to go back to school and get our basics refreshed.That would encourage us to put the solutions really simple and follow the KISS principle.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-3388002898748762231?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3388002898748762231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3388002898748762231'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/03/passing-reference-variable-using-pass.html' title='Passing Reference Variable using Pass-by-Value'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-8842243270692743848</id><published>2009-03-04T14:49:00.000+05:30</published><updated>2009-03-04T14:51:00.173+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>Windows Form Resizing issue.</title><content type='html'>I recently tried out bring out a form which had a size 2x2 without any border or title bar. The problem i faced was whatever i do, the form always took up a default size evidently larger than the one i set.&lt;br /&gt;&lt;br /&gt;The solution was simple and straightforward. Just put up the MinimumSize and Maximumsize values for the border. By default, due to the draggging and resizing you had done, the values would be now 0,0. Change the value to say 1,1 and you have your way&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-8842243270692743848?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/8842243270692743848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/8842243270692743848'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/03/windows-form-resizing-issue.html' title='Windows Form Resizing issue.'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-3536738658992725597</id><published>2009-02-10T14:16:00.000+05:30</published><updated>2009-02-10T14:17:40.477+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='Techie Tips'/><title type='text'>Expression Blend 2.0 and Silverlight 2.0</title><content type='html'>Expression Studio 2.0 which packages Expression Blend 2.0 would support  only Silverlight 1.0 applications. This would happen even if your system is acquitted with Silverlight 2.0. Silverlight 2.0 is packaged along the 2.5 version of Expression Blend.&lt;br /&gt;&lt;br /&gt;To develop Silverlight 2.0 application using Expression Blend 2.0 you would need to install "Microsoft Expression Blend™ 2 Service Pack 1". This would give you the option to develop Silverlight 2.0 from the 2.0 version of Expression Studio. Of course, you would need DotNet Framework 3.5 SP1 to go along with it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-3536738658992725597?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3536738658992725597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3536738658992725597'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/02/expression-blend-20-and-silverlight-20.html' title='Expression Blend 2.0 and Silverlight 2.0'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-1136315061921905169</id><published>2009-02-04T22:40:00.001+05:30</published><updated>2009-02-04T22:51:28.823+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Chadni Chawk to China : Movie Review</title><content type='html'>Finally after such a long break I am writing a movie review. But really, I just couldn’t wait to start writing about this wonderful movie.&lt;br /&gt;&lt;br /&gt;Never in my dreams did I think that such a hyped movie can turn out to be such horrifying disaster !!!! I think audience should sue Nikhil Advani and co for torturing us for such a long time. Being a action comedy, the only way you could laugh in this movie is by laughing at yourself to be in a theatre to watch a disaster.&lt;br /&gt;&lt;br /&gt;By the time the movie reach its intermission, you would banging your head asking "Oh God, what have I done wrong to see this !!". I would suggest Indian Govt should give captured Terrorist Ajmal Kasab a copy of this movie to watch as a punishment for the cruelty in Mumbai.&lt;br /&gt;&lt;br /&gt;Gals and guys, if you have an enemy, please do them the favor of buying tickets for this movie. They will never trouble you again.&lt;br /&gt;&lt;br /&gt;But you get the RUDEST SHOCK in the last sequence of the movie, when the Sequel of the movie is announced. That's one movie i am surely NOT looking forward to see.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-1136315061921905169?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1136315061921905169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1136315061921905169'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/02/chadni-chawk-to-china-movie-review.html' title='Chadni Chawk to China : Movie Review'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-6406780009586701221</id><published>2009-01-31T11:41:00.001+05:30</published><updated>2009-01-31T11:43:52.368+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Techie Tips'/><title type='text'>Access Denied for MSC files / Administrative Tools in Windows.</title><content type='html'>Recently when I tried to start any of the Administrative Tools ( .msc files ) in my system ( Windows XP Home Edition ), I encountered a strange "Access Denied" error even though I was logged in as the administrator.&lt;br /&gt;&lt;br /&gt;It seemed strange as Administrator, I should have access to these tools and such a response seemed odd.&lt;br /&gt;&lt;br /&gt;The problem was the .msc file types had lost it's association. So once I ensured that msc files are opened using the Microsoft Management Console or mmc.exe, I could resolve the issue in no time.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-6406780009586701221?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/6406780009586701221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/6406780009586701221'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/01/access-denied-for-msc-files.html' title='Access Denied for MSC files / Administrative Tools in Windows.'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-6951195218656865802</id><published>2009-01-29T23:23:00.003+05:30</published><updated>2009-01-29T23:27:03.684+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Techie Tips'/><title type='text'>Nant And WhiteSpaces.</title><content type='html'>Whitespace in file paths can lead to a tricky problem while writing Nant Scripts. Quite we end up with "Path not found" errors only because whitespace in the folder/file names .&lt;br /&gt;&lt;br /&gt;Work around under such circumstances is very simple, use the 8.3 format for that particular file/folder and your script is all set.&lt;br /&gt;&lt;br /&gt;By the way, NantBuilder is quite a handy tool.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-6951195218656865802?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/6951195218656865802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/6951195218656865802'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/01/nant-and-whitespaces.html' title='Nant And WhiteSpaces.'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-1045229796487338870</id><published>2009-01-29T22:11:00.003+05:30</published><updated>2009-01-29T22:34:02.296+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Politicians or Thrash cans !!</title><content type='html'>Way to go India !! Today you have political party acting moral police and beating up youths !!! and guess what ?? the Idiots we have elected and put in the ministry to guard us says "well done" !!!!&lt;br /&gt;&lt;br /&gt;To be really frank, the words that come to my mouth on seeing what happent in Manglore and hearing the politicians react, are so&lt;span style="font-weight: bold;"&gt; "sweat"&lt;/span&gt; that I cannt put it up in my blog !!!!&lt;br /&gt;&lt;br /&gt;Instead of shutting the Goodaisim in the name of moral police, the super genius politicians are saying that pubs should be banned !! What a twist in tale to cover that they did !!&lt;br /&gt;&lt;br /&gt;I absolutely loved the way Raghu Ram from MTV reacted to the interview in Headlines today. If woman is said to have equal rights in this country , why should they be banned from doing all that men do ? If , as per, the very wise moral security guard who was in the show with Raghu,  the problem is that when men drink, they loose theier senses and misbehave. Then my answer is exactly what Raghu said, men should be banned from pub not woman. It is like, since men will do wrong, lets ban woman. What a beautiful piece of equality in the great country !!!&lt;br /&gt;&lt;br /&gt;and remember this is same country where just about same day , another politician's "second" wife created a drama of kidnapping her hubby, same country where politicians son's are indulged in drugs, driving after consuming alcohol and roam scott free, a land where some brainless politician in mumabi say that north indian should be ousted from the state and the question the role of NSG commandoes who laid down thier life battleing in Taj, a place where terrorists acts are said to be not terrosims because they are done by hindu ??&lt;br /&gt;&lt;br /&gt;We should be proud that we have a set of genius politicians who instead of focusing on the issues like terrorism or recession that is hitting the state so badly now, is focusing on making mountain out of a hole.&lt;br /&gt;&lt;br /&gt;Please stop the hindu-muslim thing, every act against humanity is terrorism. Kill them from roots. We youth doesnt care if i am a Keralite or Kasmiri, South Indian or North Indian, Please put that your stupid ideologies in thrash, not in our minds. We the youth is far matured than the fossiled mind of the rotten heads that rule our state. If you have no other work to do, go home and sit at your home. Dont eat our head.&lt;br /&gt;&lt;br /&gt;As Raghu said, probably the next thing they should ban is education because, what is use of filling in brains if we the youth are supposed to do only what our genious leaders thing. And please yaar, can any one bring a retirement age for politicians, seems once someone get old, their minds starting working in opposite way.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-1045229796487338870?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1045229796487338870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1045229796487338870'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/01/politicians-or-thrash-cans.html' title='Politicians or Thrash cans !!'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-1253697213144115699</id><published>2009-01-26T18:18:00.003+05:30</published><updated>2009-01-26T18:25:47.743+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Photography'/><title type='text'>Flower</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_EK4u-J_MP70/SX2x8sROolI/AAAAAAAACA8/pHch891OVlE/s1600-h/DSC05133.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://4.bp.blogspot.com/_EK4u-J_MP70/SX2x8sROolI/AAAAAAAACA8/pHch891OVlE/s320/DSC05133.JPG" alt="" id="BLOGGER_PHOTO_ID_5295584393091261010" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p align="center"&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&lt;strong&gt;&lt;big&gt;&lt;span style="color: rgb(0, 0, 0); font-style: italic; font-weight: normal;font-size:100%;" &gt;Flowers are the sweetest things God&lt;br /&gt;ever made and forgot to put a soul into.&lt;br /&gt;-   Henry Ward Beecher, Life Thoughts&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/big&gt;&lt;/strong&gt;&lt;em&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-1253697213144115699?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1253697213144115699'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1253697213144115699'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/01/flower.html' title='Flower'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_EK4u-J_MP70/SX2x8sROolI/AAAAAAAACA8/pHch891OVlE/s72-c/DSC05133.JPG' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-1277045436937780621</id><published>2009-01-12T22:42:00.002+05:30</published><updated>2009-01-12T22:57:20.780+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Golden Globe for Rehman.</title><content type='html'>A Golden Day for Indian Fim Industry, as A R Rehman became the first Indian to receive the prestigious Golden Globe. I wouldn't say India should call the movie itself Indian since it's basically Danny Boyle's baby and he truely made a story based in India, International.&lt;br /&gt;&lt;br /&gt;But for Rehman, every Indian can be proud of this day. This mozart from madras has given innumorous soul stiring melodies over the past 16 years. Most people in India remember 1992 Roja as the start of the Rehman era, but we Keralaties had the oppurtunity of listening to his midas touch same year in another album, his first and only Malayalam movie, Yodha.&lt;br /&gt;&lt;br /&gt;If you were asked to pick his best till date, i would bet you would scratch your head. Who would be able to pick soul stiring of Puthu velai manam from Roja, or the haunting Bombay theme or Naheen saamne from Taal or and list goes on. These songs were just the melodies from the maestro, how about the foot tapping numbers ?? So what did i say , dont even dream of picking best of Rehman, you just simply cant pick the best from the best !!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-1277045436937780621?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1277045436937780621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1277045436937780621'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2009/01/golden-globe-for-rehman.html' title='Golden Globe for Rehman.'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-6787245036824212217</id><published>2008-12-30T20:57:00.000+05:30</published><updated>2008-12-30T20:58:19.712+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>2008 and India.</title><content type='html'>As the world prepares itself for the final dawn of 2008, I was recollecting the major events which I myself would remember.&lt;br /&gt;&lt;br /&gt;On the darker side, 2008 was a year when the Indian were rocked by a series of bloodshed. Whether it was the serial blasts that rocked Banglore and Ahmedabad, or the inhuman act of insane terrorism in Mumbai, the entire nation were shaken. While the bomb blasts put the common man on guard, the Mumbai shooting bought him to the streets. Angered, but united, the common man had decided enough was enough and decided to show its emotions.&lt;br /&gt;&lt;br /&gt;On the high side, 2008 saw India achieving greater highs in Technology and Sports. While the Chandrayan would enrich in memory as a historic milestone in Indian Space programs, Tata’s Nano bought colors to common mans dreams of owning a car. The Indian Sports too touched its peak when India return with its best ever Olympic collection. The cricket maniac country had more to cheers as the Dhoni’s devils challenged and conquered the mighty Aussies. With South Africa also winning the Test Series in Australia, it wouldn’t be too long before we see a change of world order. Come 2009, and South Africa might just even perform the last rites by winning the third and final test in Australia.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-6787245036824212217?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/6787245036824212217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/6787245036824212217'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/12/2008-and-india.html' title='2008 and India.'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-4442918866856376557</id><published>2008-12-30T20:35:00.000+05:30</published><updated>2008-12-30T20:40:22.049+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Gadgets of 2008</title><content type='html'>What was the Top 10 Gadget of 2008? Well, this is the TIME’s poll had to say.&lt;br /&gt;&lt;br /&gt;1. Peek E-Mail Device&lt;br /&gt;2. T-Mobile G1&lt;br /&gt;3. Macbook&lt;br /&gt;4. iPod Touch&lt;br /&gt;5. Eye Fi SD Card&lt;br /&gt;6. Wii Fit&lt;br /&gt;7. Flip Mino&lt;br /&gt;8. Sanyo Xacti HD 1010&lt;br /&gt;9. Dash Express&lt;br /&gt;10. Cannon PowerShot A590IS&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-4442918866856376557?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/4442918866856376557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/4442918866856376557'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/12/gadgets-of-2008.html' title='Gadgets of 2008'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-4049462083938508792</id><published>2008-12-20T21:39:00.001+05:30</published><updated>2009-07-18T08:27:05.018+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><category scheme='http://www.blogger.com/atom/ns#' term='Personal'/><category scheme='http://www.blogger.com/atom/ns#' term='My Poems'/><title type='text'>3 wise men</title><content type='html'>They traversed the silvery snow&lt;br /&gt;And trekked the emerald forest&lt;br /&gt;But they found their greatest treasure&lt;br /&gt;Only when they conquered the scorching desert&lt;br /&gt;&lt;br /&gt;With the star as their guiding light&lt;br /&gt;The 3 wise men came from the east&lt;br /&gt;Bowing on their knees, they found the greatest joy&lt;br /&gt;At the feet of The savior, the Lord.&lt;br /&gt;&lt;br /&gt;As we walk down aisle of life&lt;br /&gt;Doesn’t life hold the same for us ?&lt;br /&gt;Don’t we go through the same&lt;br /&gt;As did the 3 wise men ?&lt;br /&gt;&lt;br /&gt;Weathering the chilling winter&lt;br /&gt;Smiling through the falling autumn&lt;br /&gt;We find the joys of serene spring&lt;br /&gt;Only after basking the searing summer&lt;br /&gt;&lt;br /&gt;With knowledge as our guiding light&lt;br /&gt;And selflessness as our trait&lt;br /&gt;We find the greatest joy, when we join hands&lt;br /&gt;In love, respect and friendship.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-4049462083938508792?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/4049462083938508792'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/4049462083938508792'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/12/3-wise-men.html' title='3 wise men'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-1315001173637548261</id><published>2008-12-01T15:14:00.001+05:30</published><updated>2008-12-01T15:17:47.311+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Photography'/><title type='text'>God's own country</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_EK4u-J_MP70/STOyb4d-3UI/AAAAAAAAB_s/wi8azR6hqRA/s1600-h/DSC04673.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://3.bp.blogspot.com/_EK4u-J_MP70/STOyb4d-3UI/AAAAAAAAB_s/wi8azR6hqRA/s320/DSC04673.JPG" alt="" id="BLOGGER_PHOTO_ID_5274755780665335106" border="0" /&gt;&lt;/a&gt;&lt;span style="font-style: italic;"&gt;Bharathapuzha,kerala in all its glory&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-1315001173637548261?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1315001173637548261'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1315001173637548261'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/12/gods-own-country.html' title='God&apos;s own country'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_EK4u-J_MP70/STOyb4d-3UI/AAAAAAAAB_s/wi8azR6hqRA/s72-c/DSC04673.JPG' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-7848210318208674538</id><published>2008-12-01T15:01:00.003+05:30</published><updated>2008-12-01T15:10:48.768+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><category scheme='http://www.blogger.com/atom/ns#' term='Techie Tips'/><title type='text'>CMYK Vs RGB in FrameMaker</title><content type='html'>I was importing a Image (JPEG) to Adobe FrameMaker when a certain image started throwing weird problems. Each time I import image, the image's color seems changed drastically.&lt;br /&gt;&lt;br /&gt;A bit of googling and the solution seemed simple. The image was in CMYK format and i needed to change it to RGB to get it working properly in FrameMaker.&lt;br /&gt;&lt;br /&gt;Simple, straightforward..i wonder why Adobe doesn't the same inbuilt inside the FrameMaker. Better they do.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-7848210318208674538?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/7848210318208674538'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/7848210318208674538'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/12/cmyk-vs-rgb-in-framemaker.html' title='CMYK Vs RGB in FrameMaker'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-5941549306724612276</id><published>2008-11-27T22:57:00.003+05:30</published><updated>2008-11-27T23:10:32.045+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Kill Terror...Kill Terrorism</title><content type='html'>The fast paced mumbai city was virtually brought to standtill as anti-social elements launched attacks on some of best hotels and railways stations in the city. Once again, the ugly face of terror has shook the nation.&lt;br /&gt;&lt;br /&gt;More than 125 innocent souls lost their in an act of cowardice by so called terrorist. As we all say our prayers for the departed souls, lets also make sure we join hands to put your hands together  and make your voice loud and clear that "we will not bow down to terror, we have and we will fight it, and make sure these cowards fear even thinking about another act".&lt;br /&gt;&lt;br /&gt;Kill Fear..Kill Terror...Kill Terrorism.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-5941549306724612276?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/5941549306724612276'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/5941549306724612276'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/11/kill-terrorkill-terrorism.html' title='Kill Terror...Kill Terrorism'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-1359805994251957389</id><published>2008-11-25T19:19:00.002+05:30</published><updated>2008-11-25T19:24:15.790+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>Failure while compiling.</title><content type='html'>This is weird little error i got when compiling my application in Visual Studio .Net 2003 IDE.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;"A failure occurred  while attempting to start the compilation."&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Kinda weird one, but fix was simple. I deleted all the .pdb files and cleaned up the solution and that was it. The solution was ready.&lt;br /&gt;&lt;br /&gt;Simple nah ?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-1359805994251957389?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1359805994251957389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1359805994251957389'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/11/failure-while-compiling.html' title='Failure while compiling.'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-3002625179509757891</id><published>2008-11-06T16:20:00.001+05:30</published><updated>2008-11-06T16:28:33.390+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>C# 4.0 : Optional Parameters</title><content type='html'>C# 4.0 Feature list looks promising and adds more flexiblity to the programmer.&lt;br /&gt;&lt;br /&gt;Of course, i dont have hands on experience with this features as it is yet be released for beta, my knowledge is purely based on the blog entries by  Bart De Smet in his blogs.&lt;br /&gt;&lt;br /&gt;First feature i would like to focus is a long-standing request for any C# programmer,The Optional Parameters for methods.&lt;br /&gt;&lt;br /&gt;Optional parameters also bring along default values for parameters.&lt;br /&gt;&lt;br /&gt;The syntax is very much simple and straightforward.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;public static void SayHello(string s = "hello")&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;// body&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The developer can invoke the SayHello method with or without an arguement, which case the default value would be used.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;SayHello();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;SayHello("welcome c# 4.0");&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;One important point to note here is, all optional parameters needs to come at the end of the arguement list.The reason for this is obvious, to remove chances of ambiguities which may be resulted&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;public static void SayHello(string s1 = "Hello World!", string s2)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;What would a call with a single string argument result in? Would the parameter be bound to s1, overriding the default, or would it bind to s2?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-3002625179509757891?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3002625179509757891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3002625179509757891'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/11/c-40-optional-parameters.html' title='C# 4.0 : Optional Parameters'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-2889443972774900325</id><published>2008-10-15T12:04:00.001+05:30</published><updated>2008-10-15T12:23:52.319+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Ban on Chinese Phones</title><content type='html'>The 4 crore Chinese Mobile market is facing a standstill in Indian Market as DoT prepares itself to Ban calls made from such phone.Calls from such phones may be barred since most don’t carry the International Mobile Equipment Identity (IMEI) number, a unique 14-digit code used to identify valid devices.&lt;br /&gt;&lt;br /&gt;Even locally-assembled handsets that don’t have IMEI numbers may be barred, according to a recent note by the department of telecom (DoT).&lt;br /&gt;&lt;br /&gt;One of the reasons such a huge step is being taken is the fact that chinese phones were used in the blasts that rocked the nation recently.&lt;br /&gt;&lt;br /&gt;One thing is for sure, people who brought the chinese handsets since it is cheaper, well, the "buy" just turned expensive for them.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-2889443972774900325?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/2889443972774900325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/2889443972774900325'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/10/ban-on-chinese-phones.html' title='Ban on Chinese Phones'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-232962977794744802</id><published>2008-09-29T20:28:00.002+05:30</published><updated>2008-09-29T20:39:23.568+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Photography'/><title type='text'>Sun..</title><content type='html'>&lt;span style="font-style: italic; font-weight: bold;"&gt;Sun attempting to spread light one final time before it fades down for the day.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_EK4u-J_MP70/SODugHj09BI/AAAAAAAABzY/ER08SYav0es/s1600-h/DSC03611.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_EK4u-J_MP70/SODugHj09BI/AAAAAAAABzY/ER08SYav0es/s320/DSC03611.JPG" alt="" id="BLOGGER_PHOTO_ID_5251459401066542098" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-232962977794744802?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/232962977794744802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/232962977794744802'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/09/sun.html' title='Sun..'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_EK4u-J_MP70/SODugHj09BI/AAAAAAAABzY/ER08SYav0es/s72-c/DSC03611.JPG' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-3962675076556255882</id><published>2008-09-28T22:42:00.005+05:30</published><updated>2008-09-28T22:53:54.661+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Photography'/><title type='text'>Remembering Dears</title><content type='html'>Walking down the aisle of life, many people touch your life. They change you and when you look back after years, you will see their smiling faces.&lt;br /&gt;&lt;br /&gt;Remembering all those who touched my life, especially, my best friend who taught me how to live, whom i , unfortunately are no longer in touch with. She was the person who made me what i am, my best friend, this is for you&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_EK4u-J_MP70/SN-8NveBgvI/AAAAAAAABzQ/glTdViY6pMU/s1600-h/DSC04066.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_EK4u-J_MP70/SN-8NveBgvI/AAAAAAAABzQ/glTdViY6pMU/s320/DSC04066.JPG" alt="" id="BLOGGER_PHOTO_ID_5251122634804003570" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;Remembering Dears who made me what i am&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-3962675076556255882?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3962675076556255882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3962675076556255882'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/09/remembering-dears.html' title='Remembering Dears'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_EK4u-J_MP70/SN-8NveBgvI/AAAAAAAABzQ/glTdViY6pMU/s72-c/DSC04066.JPG' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-5013676571443496590</id><published>2008-09-28T22:17:00.005+05:30</published><updated>2008-09-28T22:34:39.762+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Photography'/><title type='text'>Standing upto the sun</title><content type='html'>One of the nice hobbies i recently got interested in is photography. I was wondering of including some of the snaps i personally liked in my blog. Earlier i used to the slideshow running, but thought why not include few which i personally liked a lot in here.&lt;br /&gt;&lt;br /&gt;This is one of the first photos i took with my Sony H7 Camera. Thanks to my mom for having a small and nice garden at home, i had something to shoot and learn.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_EK4u-J_MP70/SN-3w4joJSI/AAAAAAAABzI/6dyxJyRTUfA/s1600-h/DSC00156.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_EK4u-J_MP70/SN-3w4joJSI/AAAAAAAABzI/6dyxJyRTUfA/s320/DSC00156.JPG" alt="" id="BLOGGER_PHOTO_ID_5251117740980708642" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;I stand , Facing the first rays of dawn, bracing myself to see another day of joy&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-5013676571443496590?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/5013676571443496590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/5013676571443496590'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/09/standing-upto-sun.html' title='Standing upto the sun'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_EK4u-J_MP70/SN-3w4joJSI/AAAAAAAABzI/6dyxJyRTUfA/s72-c/DSC00156.JPG' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-7191625776940978238</id><published>2008-09-27T13:43:00.004+05:30</published><updated>2008-09-27T13:45:44.909+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Techie Tips'/><title type='text'>Missing Address Bar in Explorer for Windows Xp Home</title><content type='html'>Missing Address bar in your Windows Explorer/Internet Explorer in Windows XP Home Edition ??&lt;br /&gt;&lt;br /&gt;Go to the following Registry key:&lt;br /&gt;&lt;br /&gt;HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar&lt;br /&gt;&lt;br /&gt;For Windows Explorer: In the right pane, locate the Explorer sub-key and open it.  In the right pane, locate the ITBarLayout value.  Right click this value and select Delete.&lt;br /&gt;&lt;br /&gt;For Internet Explorer: In the right pane, locate the WebBrowser sub-key and open it.  In the right pane, locate the ITBarLayout value. Right click this value and select Delete.&lt;br /&gt;&lt;br /&gt;That's it. Restart your application and you have your address bar back.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-7191625776940978238?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/7191625776940978238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/7191625776940978238'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/09/missing-address-bar-in-explorer-for.html' title='Missing Address Bar in Explorer for Windows Xp Home'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-3228726059488963058</id><published>2008-09-23T13:22:00.001+05:30</published><updated>2008-09-23T13:40:35.314+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Prefix vs As Casting : Which is faster?</title><content type='html'>.Net Provides two ways to Cast an object, namely, Prefix Casting and "as casting". "As Casting" provides an additional type which results in a null value to be returned in case of casting error. On other hand, Prefix casting would throw an exception in that scenario.&lt;br /&gt;&lt;br /&gt;But which is faster ? Well, it seems strange that even though "as-casting" provides an additional checking it seems faster than the prefix. Following sample code demonstrate the same.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;ArrayList d = new ArrayList();&lt;br /&gt;for (int i = 0; i &lt; 67108864; i++)&lt;br /&gt; {&lt;br /&gt; d.Add(new Class1(i));&lt;br /&gt;} &lt;br /&gt;Class1 obj1;&lt;br /&gt;DateTime dtAS = DateTime.Now; &lt;br /&gt;for (int i = 0; i &lt; 67108864; i++)&lt;br /&gt; { &lt;br /&gt;obj1 = d[i] as Class1;&lt;br /&gt;}&lt;br /&gt;Console.WriteLine((DateTime.Now - dtAS).Milliseconds.ToString());&lt;br /&gt; Class1 obj2; DateTime dtN = DateTime.Now;&lt;br /&gt;for (int i = 0; i &lt; 67108864; i++)&lt;br /&gt;{&lt;br /&gt;obj2 = (Class1)d[i] ;&lt;br /&gt;}&lt;br /&gt;Console.WriteLine((DateTime.Now - dtN).Milliseconds.ToString());&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you look into the IL code for same, you would notice that "as casting" uses isinst IL command while prefix casting uses "castclass" method.&lt;br /&gt;&lt;br /&gt;But if you have a look at how MSDN has defined isinst command, it can lead to think why in the earlier code, as casting works faster.&lt;br /&gt;&lt;br /&gt;Here is a snippet from MSDN about isinst&lt;br /&gt;&lt;br /&gt;Tests whether an object reference (type O) is an instance of a particular class.&lt;br /&gt;&lt;br /&gt;"If the class of the object on the top of the stack implements class (if class is an interface) or is a derived class of class (if class is a regular class) then it is cast to type class and the result is pushed on the stack, exactly as though Castclass had been called. Otherwise, a null reference is pushed on the stack. If the object reference itself is a null reference, then isinst likewise returns a null reference."&lt;br /&gt;&lt;br /&gt;Now if object is casted exactly as though CastClass after validation, then how is it that its faster ?&lt;br /&gt;&lt;br /&gt;anyone has any suggestions ?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-3228726059488963058?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3228726059488963058'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3228726059488963058'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/09/prefix-vs-as-casting-which-is-faster.html' title='Prefix vs As Casting : Which is faster?'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-6530853493673668094</id><published>2008-08-28T16:33:00.000+05:30</published><updated>2008-08-28T16:34:39.479+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><title type='text'>SQL Connection Pooling.</title><content type='html'>First question that arise on ones mind is why do we need connection pooling at first place ? Answer to this would be clear if we look at what happens in a typical server.&lt;br /&gt;&lt;br /&gt;To connect to a server, typically there are many time consuming steps.First, a physical channel such as named pipe must be established, initial handshake with server should occur, connection string needs to be parsed, connection must be authenticated and so on.&lt;br /&gt;&lt;br /&gt;Think how badly performance would be hit if these steps needs to be done for every query you do with server. In most practical cases, most application would use only one or few different configurations for connections. Or in other words, during the entire life cycle of application, many identical connections will be repeatedly opened and closed. To minimize this cost of performance, ADO.Net came up with a much optimized technique called Connection Pooling.&lt;br /&gt;&lt;br /&gt;The Pooler would maintain ownership of the physical connection. It manages by keeping alive a set of active connections for each given connection configurations. &lt;br /&gt;&lt;br /&gt;So whenever a user calls open on a connection, pooler first looks in the available connection pool.If its available, it returns it to caller instead of creating a new connection. When application makes a call to the Close methods, pooler returns the connection to the pooled set instead of closing it.&lt;br /&gt;&lt;br /&gt;This ensures that the number of times new connections are opened are reduced many a folds. Please note that only connections with same configurations can be pooled. But ADO.Net can keep several pools at same time for each configurations.&lt;br /&gt;&lt;br /&gt;One important point to note in here is that SQLConnection object in .Net, by default as the Connection Pooling enabled. To disable it, you need to use &lt;span style="font-weight:bold;"&gt;"Pooling = false"&lt;span style="font-style:italic;"&gt;&lt;/span&gt;&lt;/span&gt; in the connection string.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-6530853493673668094?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/6530853493673668094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/6530853493673668094'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/08/sql-connection-pooling.html' title='SQL Connection Pooling.'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-1374693676095397771</id><published>2008-08-21T07:46:00.001+05:30</published><updated>2008-08-21T08:10:26.572+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Hartal : Media News Channels spread fake news.</title><content type='html'>It won't take too long for "Gods own country" to be rechristened “Hartal’s own country”. India’s most educated state, which boosts itself of near-complete literacy seems have taken special liking for hartals. 80 hartals in last 6 months in the state underlines the same fact.&lt;br /&gt;&lt;br /&gt;But what was most frustrating to see on the hartal called on 20th Aug was how the media helped propagate “negative” news to make hartal a success. Before I tell how media did it, let me tell a small history about kerala hartals.&lt;br /&gt;&lt;br /&gt;Even though rest of Kerala is willing to sit at home on a hartal day, the IT department has always thrown caution to wind and worked every hartal. Infopark in Cochin and Technopark in Trivandrum has seen 100% attendance despite entire state coming to standstill.&lt;br /&gt;&lt;br /&gt;Probably this failure of hartal “conductors” to make IT department dance to their tunes forced them into using “fake” news via media news channels. 20th morning news by (if I am right) Kairali and India Vision stating hartal is 100% success and specifically saying that “the normally working IT Department too is on standstill, with Infopark and Technopark life disrupted”.&lt;br /&gt;&lt;br /&gt;This might have sawed seeds of doubts in minds many IT professionals, but truth was Infopark and Technopark worked without any problems whole day. There was not even a single obstacle in the roads that lead to these IT Hubs.&lt;br /&gt;&lt;br /&gt;So dear politicians and media personnel, please leave us alone. We don’t want to sit at home and yield to a group of people who loves bring kerala to standstill. This is “Generation Next” and for us, hartal or no hartal, we know what our duties are unlike our so-called leaders.&lt;br /&gt;&lt;br /&gt;Media news channels like Kairali and IndiaVision, please watch out before spreading such news again.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-1374693676095397771?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1374693676095397771'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1374693676095397771'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/08/hartal-media-news-channels-spread-fake.html' title='Hartal : Media News Channels spread fake news.'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-8565840022181963149</id><published>2008-07-08T12:39:00.002+05:30</published><updated>2008-07-08T12:43:36.862+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Windows User List</title><content type='html'>&lt;blockquote&gt;&lt;/blockquote&gt;Here is a bit of useful code to fetch the list of all valid widows Users under current domain&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;string defaultDomain = &lt;br /&gt;System.Environment.GetEnvironmentVariable("USERDOMAIN");&lt;br /&gt;string queryString =  string.Format( "select * from Win32_UserAccount where Domain = '{0}' ",defaultDomain);&lt;br /&gt;SelectQuery query = new SelectQuery(queryString);&lt;br /&gt;ManagementObjectSearcher searcher =&lt;br /&gt; ManagementObjectSearcher(query);&lt;br /&gt;ArrayList ExistingWindowsUsers = new ArrayList();&lt;br /&gt;&lt;br /&gt;foreach (ManagementObject envVar in searcher.Get())&lt;br /&gt;  ExistingWindowsUsers.Add(envVar["Name"]);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-8565840022181963149?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/8565840022181963149'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/8565840022181963149'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/07/windows-user-list.html' title='Windows User List'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-3210662036659953811</id><published>2008-06-30T12:27:00.000+05:30</published><updated>2008-06-30T12:30:02.058+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='F#'/><title type='text'>F# : My First Post</title><content type='html'>I recently started looking into F# and I must say that it is highly useful when applying to Mathematical problems. I had this Euler Problem to solve which wanted me to get the value of 2^1000.&lt;br /&gt;&lt;br /&gt;Now if i try the same in C#,I would end of up having a overflow or truncated value as C# doesn't contain any data type that can hold such a big number. However, F# supports a datatype BigInt which can hold such large values and one line of code is all that you need to write a function to calculate it.&lt;br /&gt;&lt;br /&gt;let rec Power (x:bigint) (y:bigint)   =      if y=of_int 1     then x     else      x* Power x  (y-(1|&gt; of_int))&lt;br /&gt;&lt;br /&gt;The above code exemplifies why F# provides more flexibility and ease when solving mathematical problems.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-3210662036659953811?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3210662036659953811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3210662036659953811'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/06/f-my-first-post.html' title='F# : My First Post'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-3398145187932999806</id><published>2008-06-18T21:07:00.003+05:30</published><updated>2008-06-18T21:10:46.153+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>Scrollbar issue with .Net</title><content type='html'>The behavior of scrollbars in container controls like Panel in .Net does raise the question of whether it’s a bug.&lt;br /&gt;&lt;br /&gt;Scroll down the scrollbar to the bottom and attempt to bring it to top most position using code.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;panel1.VerticalScroll.Value = 0;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This would definetly make the contends of the control to be scrolled up, how ever, if you notice the scrollbar associated with the control is still in that topmost position.&lt;br /&gt;&lt;br /&gt;The only available workaround is to assign the VerticalScroll.Value twice.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;panel1.VerticalScroll.Value = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;panel1.VerticalScroll.Value = 0;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Its quite shocking that this bug, which was seen in .Net 2005, hasn’t been fixed in .Net 2008.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-3398145187932999806?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3398145187932999806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/3398145187932999806'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/06/scrollbar-issue-with-net.html' title='Scrollbar issue with .Net'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-8380880162419058155</id><published>2008-06-13T11:56:00.003+05:30</published><updated>2008-06-13T12:07:34.904+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>Making Anonymous Types Read-Write</title><content type='html'>Tried creating anonymous types and changing its value ?? Its strange, but Anonymous types in C# are readonly.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;            var v = new { FName = "aaa" , LName = "bbb" };&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;            v.FName = "aaaa";&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Above lines of code would yield following error&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;"Property or indexer 'AnonymousType#1.FName' cannot be assigned to -- it is read only"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;But ofcourse, there is a workaround, you can use reflection to change the value of the Anonymous Method.&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Type t = v.GetType();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;FieldInfo fi  =  t.GetField( "&lt;fname&gt;i__Field" ,  BindingFlags.NonPublic | BindingFlags.Instance);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;fi.SetValue(v, "1234");&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-style: italic;"&gt;&lt;fname&gt;i__Field &lt;/span&gt;is the internal name used for refering to property "FName". Fire up ildasm to get it.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;Its true that the power of reflection cannot be ignored no matter what new features are added to .Net framework.&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-8380880162419058155?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/8380880162419058155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/8380880162419058155'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/06/making-anonymous-types-read-write.html' title='Making Anonymous Types Read-Write'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-7759830756768333983</id><published>2008-06-07T20:56:00.005+05:30</published><updated>2008-06-07T21:39:04.164+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Project Estimation'/><title type='text'>Wide Band Delhi using Confidence interval</title><content type='html'>In my earlier post I talked about Wide Band Delphi. WBD stands of its own when the requirements are clear and there are no possible hindrances. But, how often do you make software in ideal conditions? As Murphy’s Law states, if something can go wrong, it will go wrong.So it’s better to make a range estimate when compared to a point estimate. These are highly useful in cases where the requirements would become gradually clear and not initially.&lt;br /&gt;&lt;br /&gt;Here, just like WBD, estimators whose have expertise in the particular field assemble. But unlike earlier, here they provide 3 estimates for each task.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;a) Best Case&lt;br /&gt;&lt;br /&gt;b) Worst Case&lt;br /&gt;&lt;br /&gt;c) Most likely&lt;br /&gt;&lt;br /&gt;But we are not done yet. The next step is to assign probability to each of these cases. Let’s say we assign&lt;br /&gt;&lt;br /&gt;a) P(Best Case) = 0.2&lt;br /&gt;&lt;br /&gt;b) P(Most Likely) = 0.6&lt;br /&gt;&lt;br /&gt;c) P(Worst Case) = 0.2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Next step would obviously be calculate the estimated value and of course the Standard deviation as we are mentioning the range.&lt;br /&gt;&lt;br /&gt;Expected Value = μ = Sum ( x ) * P ( x)&lt;br /&gt;&lt;br /&gt;Standard Deviation = σ = Worst Case * P (Worst Case ) – Best Case * P( Best Case)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You would do this for each of the estimators and take their average to find the cumulative Expected Value and Standard Deviation. We now proceed to calculate (μ-3 σ) and (μ+3 σ) values, which would in-effect, give us a better estimate than the usual WBD method.&lt;br /&gt;&lt;br /&gt;We could also calculate (μ-6 σ) and (μ+6 σ) values or (μ-1 σ) and (μ+1 σ) values depending on whether want 68% CI or 95 CI or 99% CI. Now doesn’t this sounds more analytical than the default Wide Band Delphi method ??&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-7759830756768333983?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/7759830756768333983'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/7759830756768333983'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/06/wide-band-delhi-using-confidence.html' title='Wide Band Delhi using Confidence interval'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-88220183188507966</id><published>2008-06-07T20:09:00.002+05:30</published><updated>2008-06-07T20:13:29.340+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Project Estimation'/><title type='text'>Project Estimation : Wide Band Delphi</title><content type='html'>&lt;p class="MsoNormal" style="text-align: justify;"&gt;Software development is inherently unpredictable in nature. Consequently, preparing a project estimate is not the easiest of task to do. It’s much evident from the fact that not more than 20% of software developments around the globe are always out of schedule. It’s true that getting 100% on-time delivery of your work products is a not the easiest of the job, as many volatile factors govern the development process. But, for sure, we can reduce the affects. People often predict the development time and forget the golden rule that, it is project “Estimate” and NOT project “Prediction”. Being part of SEPG group of my organization, this is my journey in studying different Estimation Methods available.&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;First of all, I am looking at WideBand Delphi. WBD, unlike other methods like COCOMO or Function Point Analysis, doesn’t depend on historical datas.&lt;/p&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_EK4u-J_MP70/SEqd8yB1MLI/AAAAAAAABP0/nMCpdwUUCbY/s1600-h/WBD_flow.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp0.blogger.com/_EK4u-J_MP70/SEqd8yB1MLI/AAAAAAAABP0/nMCpdwUUCbY/s200/WBD_flow.gif" alt="" id="BLOGGER_PHOTO_ID_5209149586554564786" border="0" /&gt;&lt;/a&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;A team of experts would join together in an estimation sessions and individually estimate the task list of the project. These individual estimations are summarized by the Estimation co-coordinator, commonly in a tabular format and presented back to the expert panel. In the cases (task list) where there is variance (non-convergence) more than a predefined value, the panel would reassess the tasks and if possible break it down further into sub tasks and once again go through the whole process.&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;As you can see, WBD is a simple method, which underlines the fact that estimation is not rocket science. Its strength lies in fact the estimator has strong domain knowledge and that they are working independently would ensure process is unbiased. &lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;But WBD could be made better, and that’s what we would be looking forward in the next entry. Wide Band Delphi variations like Confidence interval and Neinburg approximation would further enhance this method and making it more analytical. &lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-88220183188507966?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/88220183188507966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/88220183188507966'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/06/project-estimation-wide-band-delphi.html' title='Project Estimation : Wide Band Delphi'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp0.blogger.com/_EK4u-J_MP70/SEqd8yB1MLI/AAAAAAAABP0/nMCpdwUUCbY/s72-c/WBD_flow.gif' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-7100398748677085410</id><published>2008-06-06T17:11:00.003+05:30</published><updated>2008-06-06T17:15:21.485+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>Quick note on Temp File.</title><content type='html'>Quite often we would need to temporary files in C# and having to delete them once we are done with its usage. And it is not uncommon that we tend to forget write code to delete the file we created. There is a  constructor in File Class which makes our life easier.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;FileStream fs = File.Create(@"c:\anuviswan.txt", size, &lt;span style="font-weight: bold;"&gt;FileOptions.DeleteOnClose&lt;/span&gt;);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;That's it and we can forget about deleting it later on. A small thing, but quite useful for people as forgetful like yours truly.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-7100398748677085410?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/7100398748677085410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/7100398748677085410'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/06/quick-note-on-temp-file.html' title='Quick note on Temp File.'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-6576283197596694794</id><published>2008-05-31T11:32:00.004+05:30</published><updated>2008-05-31T12:07:48.713+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Techie Tips'/><title type='text'>Modulo Operation : Microsoft vs Google</title><content type='html'>Modulo operation is something we all aware of from long time and this , infact brings out an interesting perspective on how Microsoft and Google has implemented it. Try out finding the result for following operation in C# or VB or even Windows Calculator.&lt;br /&gt;"-5 mod 6"&lt;br /&gt;&lt;br /&gt;Your result was -5 right ??? Now attempt the same in Google Calculator ?? -1 the result ??&lt;br /&gt;&lt;br /&gt;Which is correct ? Its going to be an interesting argument. The Modulo function is definaed as the amount by which a number exceeds the largest integer multiple of the divisor that is not greater than that number.&lt;br /&gt;&lt;br /&gt;Now if you go by that defination ,  - 5 * -1 would yield 5 with a remaining -1.  That would explain the answer given by Google. But Microsoft's answer too can be argued.&lt;br /&gt;&lt;br /&gt;The normal formula to calculate Mod is given by r = a - n(a/n). Now assuming Microsoft calculates this using r = a - n * abs(a/n) , then answer given by Calculator is correct.&lt;br /&gt;&lt;br /&gt;Counter argument exists in both cases and hence it is argueable on sides of both parties about which is the correct solution.&lt;br /&gt;&lt;span style="font-family: monospace;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-6576283197596694794?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/6576283197596694794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/6576283197596694794'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/05/modulo-operation-microsoft-vs-google.html' title='Modulo Operation : Microsoft vs Google'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-911821043762839171</id><published>2008-05-27T20:47:00.002+05:30</published><updated>2008-05-27T20:56:32.136+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>Event : Public or Private ??</title><content type='html'>Event declaration in a C# class exhibits strange property as far as its access modifiers are concerned.Declare your class with a "public" access modifier attached to your event.&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;public class TestClass&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;        public event EventHandler myTestEvent;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        public TestClass()&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;span style="font-style: italic;"&gt;        }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  }&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;/span&gt;Now build your application and open up in ildasm and observe the access modifier associated with your event. Strangely, it is "private".&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;.field private class [mscorlib]System.EventHandler myTestEvent&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;This somewhat explains why we are able to "catch" a event from another class but not raise another class event from your class even if its public. &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size:100%;"&gt;I should thank my friend Hari for bring  this to my notice.&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-911821043762839171?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/911821043762839171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/911821043762839171'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/05/event-public-or-private.html' title='Event : Public or Private ??'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-2862363522789240905</id><published>2008-05-26T11:45:00.008+05:30</published><updated>2008-05-26T12:06:38.181+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Techie Tips'/><title type='text'>Acer Predator : A Real Beast</title><content type='html'>Speaking about Ultimate PC's and it couldn't have got better.Just couldn't resist writing about this beast machine , awesome configuration and an equally awesome design. Acer Aspire Predator G7700 come across as ultimate gaming machine that you can dream of.&lt;table&gt;&lt;br /&gt;&lt;tbody&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_EK4u-J_MP70/SDpYvhudC3I/AAAAAAAABOw/VAb903XGQIw/s1600-h/acer-predator-picture-1-21may08.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://bp3.blogger.com/_EK4u-J_MP70/SDpYvhudC3I/AAAAAAAABOw/VAb903XGQIw/s200/acer-predator-picture-1-21may08.jpg" alt="" id="BLOGGER_PHOTO_ID_5204569892910336882" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_EK4u-J_MP70/SDpY8hudC4I/AAAAAAAABO4/gJ40_5HkRn0/s1600-h/acer-predator-picture-2-21may08.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://bp3.blogger.com/_EK4u-J_MP70/SDpY8hudC4I/AAAAAAAABO4/gJ40_5HkRn0/s200/acer-predator-picture-2-21may08.jpg" alt="" id="BLOGGER_PHOTO_ID_5204570116248636290" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;table style="border: medium solid white;" bgcolor="#cccccc" border="0" cellpadding="1" cellspacing="1"&gt; &lt;tbody&gt;&lt;tr bgcolor="#f0f0ee"&gt;  &lt;td colspan="2"&gt;  &lt;p class="TH1"&gt;  Acer Aspire G Predator G7700 specifications  &lt;/p&gt;  &lt;/td&gt; &lt;/tr&gt; &lt;tr bgcolor="#f0f0ee"&gt;  &lt;td&gt;  &lt;p class="TTopL"&gt;  Item  &lt;/p&gt;  &lt;/td&gt;  &lt;td&gt;  &lt;p class="TTop"&gt;  Description  &lt;/p&gt;  &lt;/td&gt; &lt;/tr&gt; &lt;tr bgcolor="#ffffff"&gt;  &lt;td&gt;  &lt;p class="TTxtL"&gt;  CPU Support  &lt;/p&gt;  &lt;/td&gt;  &lt;td&gt;&lt;div style="text-align: center;"&gt;  &lt;/div&gt;&lt;p style="text-align: center;" class="TTxt"&gt;  Intel Core 2 Extreme or Core 2 Quad up to 133MHz FSB  &lt;/p&gt;  &lt;/td&gt; &lt;/tr&gt; &lt;tr bgcolor="#ffffff"&gt;  &lt;td&gt;  &lt;p class="TTxtL"&gt;  Chipset  &lt;/p&gt;  &lt;/td&gt;  &lt;td&gt;  &lt;p class="TTxt"&gt;  Nvidia nForce 780i SLI  &lt;/p&gt;  &lt;/td&gt; &lt;/tr&gt; &lt;tr bgcolor="#ffffff"&gt;  &lt;td&gt;  &lt;p class="TTxtL"&gt;  System memory  &lt;/p&gt;  &lt;/td&gt;  &lt;td&gt;  &lt;p class="TTxt"&gt;  Up to 8GB DDR2 1066/800MHz  &lt;/p&gt;  &lt;/td&gt; &lt;/tr&gt; &lt;tr bgcolor="#ffffff"&gt;  &lt;td&gt;  &lt;p class="TTxtL"&gt;  Hard drives  &lt;/p&gt;  &lt;/td&gt;  &lt;td&gt;  &lt;p class="TTxt"&gt;  4x SATA HDD up to 1TB&lt;br /&gt;RAID 0, 1, 5, 1+0&lt;br /&gt;Acer Easy-swap  &lt;/p&gt;  &lt;/td&gt; &lt;/tr&gt; &lt;tr bgcolor="#ffffff"&gt;  &lt;td&gt;  &lt;p class="TTxtL"&gt;  Optical drives  &lt;/p&gt;  &lt;/td&gt;  &lt;td&gt;  &lt;p class="TTxt"&gt;  Blu-ray SuperMulti burner&lt;br /&gt;Blu-ray/HD DVD SuperMulti burner (optional)&lt;br /&gt;SuperMulti burner(optional)  &lt;/p&gt;  &lt;/td&gt; &lt;/tr&gt; &lt;tr bgcolor="#ffffff"&gt;  &lt;td&gt;  &lt;p class="TTxtL"&gt;  Graphics  &lt;/p&gt;  &lt;/td&gt;  &lt;td&gt;  &lt;p class="TTxt"&gt;  3-way SLI ready&lt;br /&gt;2x GeForce 9600 GT&lt;br /&gt;2x GeForce 9800 GTX&lt;br /&gt;2x GeForce 9800 GX2  &lt;/p&gt;  &lt;/td&gt; &lt;/tr&gt; &lt;tr bgcolor="#ffffff"&gt;  &lt;td&gt;  &lt;p class="TTxtL"&gt;  Audio  &lt;/p&gt;  &lt;/td&gt;  &lt;td&gt;  &lt;p class="TTxt"&gt;  Onboard HD 7.1 audio&lt;br /&gt;Creative Sound Blaster X-Fi Platinum (optional)  &lt;/p&gt;  &lt;/td&gt; &lt;/tr&gt; &lt;tr bgcolor="#ffffff"&gt;  &lt;td&gt;  &lt;p class="TTxtL"&gt;  Dimensions  &lt;/p&gt;  &lt;/td&gt;  &lt;td&gt;  &lt;p class="TTxt"&gt;  490×430×190mm (L×H×W)  &lt;/p&gt;  &lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-2862363522789240905?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/2862363522789240905'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/2862363522789240905'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/05/acer-predator-real-beast.html' title='Acer Predator : A Real Beast'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp3.blogger.com/_EK4u-J_MP70/SDpYvhudC3I/AAAAAAAABOw/VAb903XGQIw/s72-c/acer-predator-picture-1-21may08.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-5580753450907505099</id><published>2008-05-21T14:11:00.000+05:30</published><updated>2008-05-21T14:12:54.011+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>TypeForwaredTo Attribute</title><content type='html'>I happent to stumbled upon this cool attribute in RunTime.CompilerServices and just couldn't resist blog about it. TypeForwardedTo attribute allows you to move a type from one assembly to another without having to recompile your parent application that uses your original assembly. Now isnt that wonderful ?&lt;br /&gt;&lt;br /&gt;Imagine you have send out your application to your users and then you decide to move a datatype you initially created with assembly "a1" to assembly "a2". Now longer would you need to recompile the original application again. Instead, all you need is to send the latest version of "a1" and "a2".&lt;br /&gt;&lt;br /&gt;What helps you in this is the TypeForwardedTo Attribute.After moving the code to "a2", you would recompile "a2" and add a reference in "a1". Also you would include following line in your "a1" assembly, preferably in assemblyinfo.&lt;br /&gt;&lt;br /&gt;[assembly:TypeForwardedTo(typeof(MyDataType))]&lt;br /&gt;&lt;br /&gt;Thats all you need and you are ready to use your New assemblies with your parent application without recompiling it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now isnt that a useful one ?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-5580753450907505099?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/5580753450907505099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/5580753450907505099'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/05/typeforwaredto-attribute.html' title='TypeForwaredTo Attribute'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-7371338290151217433</id><published>2008-05-15T03:12:00.002+05:30</published><updated>2008-05-15T03:28:19.939+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><category scheme='http://www.blogger.com/atom/ns#' term='Techie Tips'/><title type='text'>C# coding Guidelines - An alternate naming scheme</title><content type='html'>I have always felt hard to agree with the naming schemes for variables under the "C# Coding standards", which on other grounds is a very find document.&lt;br /&gt;&lt;br /&gt;According to Microsoft, they strictly oppose the use of Hungarian notations. Furthermore, they advise on using camelCase for naming all local, member and parameter variables. Microsoft advocate that it increases readability by supporting a consistent naming scheme throughout.&lt;br /&gt;&lt;br /&gt;This is something I dont agree with. My argument is simple. How would one recognize between local, member and a parameter variable ?? i believe, it would have been helped readability furthur if  we had naming scheme such that all 3 types of variables can be differentiated.&lt;br /&gt;&lt;br /&gt;So what i recommend is&lt;br /&gt;Local Variables : camelCase&lt;br /&gt;Member Variable : "m_" or "g_" prefixed to the name&lt;br /&gt;Parameter Variable : PascalCase&lt;br /&gt;&lt;br /&gt;These are my personal views and i did find the readability much improved in this way.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-7371338290151217433?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/7371338290151217433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/7371338290151217433'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/05/c-coding-guidelines-alternate-naming.html' title='C# coding Guidelines - An alternate naming scheme'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-5152162325255571784</id><published>2008-05-04T13:48:00.012+05:30</published><updated>2008-05-04T21:25:05.782+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>Sieve of Eratosthenes in C#</title><content type='html'>I was trying my hands in problems mentioned in Project Euler (http://projecteuler.net/) and came across quite a bit questions which had to do with Prime Numbers.&lt;br /&gt;&lt;br /&gt;C# doesn't provide any in-built methods to generate prime numbers, but its quite easy to write one. So thought of writing an implementation of the famous "Sieve of Eratosthenes" algorithm to generate prime numbers.&lt;br /&gt;&lt;br /&gt;Sieve of Eratosthenes is an easy and straight forward algorithm and can be summarized as follows (courtesy wikipedia)&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;   1.  Write a list of numbers from 2 to the largest number you want to test for primality. Call this List A. (This is the list of squares on the left side of the picture.)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;   2. Write the number 2, the first prime number, in another list for primes found. Call this List B. (This is the list on the right side of the picture.)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;   3. Strike off 2 and all multiples of 2 from List A.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;   4. The first remaining number in the list is a prime number. Write this number into List B.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;   5. Strike off this number and all multiples of this number from List A. The crossing-off of multiples can be started at the square of the number, as lower multiples have already been crossed out in previous steps.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;   6. Repeat steps 4 and 5 until no more numbers are left in List A. Note that, once you reach a number greater than the Square root of the highest number in List A, all the numbers remaining in List A are prime.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;C# Code for the same is as follows.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;public static List&lt;int&gt; GeneratePrime(int Range)&lt;br /&gt;      {&lt;br /&gt;          var RangeArray = from X in Enumerable.Range(2, Range-1)&lt;br /&gt;                       where X!=1&lt;br /&gt;                       select X;&lt;br /&gt;&lt;br /&gt;          List&lt;int&gt; Results = new List&lt;int&gt;();&lt;br /&gt;          var Prime = 2;&lt;br /&gt;       &lt;br /&gt;          while (Prime &lt;= Math.Sqrt(RangeArray.Max()))&lt;br /&gt; {                &lt;br /&gt;Prime = RangeArray.First();                &lt;br /&gt;Results.Add(Prime);                &lt;br /&gt;RangeArray = from x in RangeArray                         where x % Prime != 0                         select x;            &lt;br /&gt;}             &lt;br /&gt;return Results;                    &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/int&gt;&lt;/int&gt;&lt;/int&gt;&lt;/span&gt;A poem, replicating the essence of the algorithm, is as follows: &lt;p&gt;&lt;i&gt;Sift the Two's and sift the Three's,&lt;br /&gt;&lt;/i&gt; &lt;i&gt;The Sieve of Eratosthenes.&lt;br /&gt;&lt;/i&gt; &lt;i&gt;When the multiples sublime,&lt;br /&gt;&lt;/i&gt; &lt;i&gt;The numbers that remain are Prime.&lt;/i&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-5152162325255571784?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/5152162325255571784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/5152162325255571784'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/05/sieve-of-eratosthenes-in-c.html' title='Sieve of Eratosthenes in C#'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-1484904201456257168</id><published>2008-04-09T22:16:00.004+05:30</published><updated>2008-04-10T00:18:45.497+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Having a good car doesn't make you a Schumacher</title><content type='html'>&lt;p class="MsoNormal"&gt;I recently read an article in one of the newspapers which pointed out on some interesting facts, which I thought is quite true from my personal experience in this software field.&lt;/p&gt;&lt;br /&gt;What do a good F1 car  and softwares have in common ?? well, both needs to be in right hands to get its maximum utility.&lt;br /&gt;  &lt;p class="MsoNormal"&gt;Many non-IT organizations are moving towards automating their processes and this trend is only going to increase. Good sign at the first glance, isn’t?? There is nothing wrong in it, but just like the old saying of all that glitters is not gold, these changes have also another face to it.&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;It is quite alarming that a recent survey pointed out that almost 50 percent organization implementing ERP would be going for a major upgrade in less than 3 years. And this is not a one time business, almost every 2-3 years; these organizations undergo a major upgrade to their software. This would mean pooling in extra money and time.&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;You needn’t scratch your head much to find an answer to this. Those organizations didn’t have a proper process in place nor did they know exactly what they wanted.&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;Many a times we software engineers are asked to develop ERP or similar applications where the clients isn’t particularly sure of their requirements, just because they don’t have a process in place in their organizations. What these organizations need to understand is that bringing in a ERP or CRM application wouldn’t bring in a good ROI unless and until you know what your are doing and what you are capable of. The first step any organization planning to implement ERP or similar applications would be to clearly define and implement their processes.&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;The golden rule should be “Fix your organization and processes before you even think about automating.” A good car doesn’t make you a Schumacher.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-1484904201456257168?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1484904201456257168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/1484904201456257168'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/04/having-good-car-doesnt-make-you.html' title='Having a good car doesn&apos;t make you a Schumacher'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-4198238189234320622</id><published>2008-04-01T12:10:00.003+05:30</published><updated>2008-04-01T12:14:16.354+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>Total Number of Pages in PrintPreviewControl</title><content type='html'>This is strange but, it seems like the Print Preview Control doesn't exposes a property/method that would give total number of pages. Then how do you get it ?? Well , there exist a private property inside the PrintPreviewControl and you need to use reflection to get it. Here is the code for it.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;        private int NumberOfPages()&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;Type ObjectType = typeof(PrintPreviewControl);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;            MethodInfo CalculatePageInfo =  ObjectType.GetMethod("CalculatePageInfo", BindingFlags.Instance | BindingFlags.NonPublic);&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;CalculatePageInfo.Invoke(this.printPreviewControl1,null);&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;            FieldInfo PageInfo = ObjectType.GetField("pageInfo",  &lt;/span&gt;&lt;span style="font-style: italic;"&gt;BindingFlags.Instance | BindingFlags.NonPublic);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;            PreviewPageInfo[] infos = (PreviewPageInfo[]) &lt;/span&gt;&lt;span style="font-style: italic;"&gt;PageInfo.GetValue(this.printPreviewControl1);&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;return infos.Length;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;            &lt;/span&gt;&lt;span style="font-style: italic;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-4198238189234320622?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/4198238189234320622'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/4198238189234320622'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/04/total-number-of-pages-in.html' title='Total Number of Pages in PrintPreviewControl'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-6139350079976414854</id><published>2008-03-28T14:55:00.005+05:30</published><updated>2008-03-28T15:04:12.603+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>Longest Valid Code with Keywords only</title><content type='html'>What is the longest set of valid C# code that can be created using keywords only  ??? my attempt gave me a 43 keywords with each keyword appearing only once and braces not included in count.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;font-size:85%;" &gt;set&lt;br /&gt;           {&lt;br /&gt;               lock ( value = this as object)&lt;br /&gt;               {&lt;br /&gt;                   throw  null;&lt;br /&gt;               }&lt;br /&gt;           }&lt;br /&gt;           get&lt;br /&gt;           {&lt;br /&gt;               unsafe&lt;br /&gt;               {&lt;br /&gt;                   try&lt;br /&gt;                   {&lt;br /&gt;                       do&lt;br /&gt;                       {&lt;br /&gt;                           switch ((int)(uint)(ulong)(long)(sbyte)(byte)(ushort)(short) (float)(double)unchecked(sizeof(char)))&lt;br /&gt;                           {&lt;br /&gt;                               default:&lt;br /&gt;                                   break;&lt;br /&gt;                           }&lt;br /&gt;                           for (; ; )&lt;br /&gt;                           { continue; }&lt;br /&gt;                       } while (true);&lt;br /&gt;                   }&lt;br /&gt;                   catch&lt;br /&gt;                   {}&lt;br /&gt;                   finally&lt;br /&gt;                   {}&lt;br /&gt;&lt;br /&gt;                   if (false)&lt;br /&gt;                   { }&lt;br /&gt;                   else&lt;br /&gt;                    &lt;br /&gt;                       return checked(typeof(decimal)) is string;&lt;br /&gt;&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/18313898-6139350079976414854?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/6139350079976414854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/6139350079976414854'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/03/longest-valid-code-with-keywords-only.html' title='Longest Valid Code with Keywords only'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-490581194916734757</id><published>2008-03-25T10:49:00.002+05:30</published><updated>2008-03-25T10:52:19.278+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>Buffer.BlockCopy Vs Array.Copy</title><content type='html'>Yes, I do agree that am guilty of being repetitive in my posts. This is yet another comparison of different methods of doing the same thing.&lt;br /&gt;&lt;br /&gt;Consider you have two arrays, how do you concatenate them??  Gone are days when you needed to loop through elements and append them. Managed C# has two inbuilt static methods , Array.Copy and Buffer.BlockCopy that helps you in the same.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;byte[] c1 = new byte[]{ 2, 3, 4, 5, 6 };&lt;br /&gt;byte[] c2 = new byte[]{ 0,0,0,0,0,22,33,44,55,66};&lt;br /&gt;byte[] c3 = new byte[]{ 0,0,0,0,0,22,33,44,55,66};&lt;br /&gt;&lt;br /&gt;Buffer.BlockCopy(c1, 0, c2, 0, 5);&lt;br /&gt;Array.Copy(c1,0,c3,0,5);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now the question arises why you need two methods for achieving the same results?? Answer lies in the way both Array.Copy and Buffer.BlockCopy handles the elements while copying.&lt;br /&gt;&lt;br /&gt;While Array.Copy copies the elements in an index to index manner, its Buffer Class counterpart uses an offset to offset (byte based) copying method for accomplish its goal.&lt;br /&gt;&lt;br /&gt;So what is the impact?? Well, when you are using byte array it has no effect. But what about when you are dealing with int arrays ?? Each Each Int occupies 4 bytes. Lets see the difference in code when above is re-written with int arrays.&lt;br /&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;&lt;br /&gt;int[] c1 = new int[]{ 2, 3, 4, 5, 6 };&lt;br /&gt;int[] c2 = new int[]{ 0,0,0,0,0,22,33,44,55,66};&lt;br /&gt;&lt;br /&gt;Buffer.BlockCopy(c1, 0, c2, 0, 20);&lt;br /&gt;Array.Copy(c1,0,c2,0,5);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Notice that we have changed the number of elements to be copied parameter in the Buffer.BlockCopy Method to 20. This is because each int occupies 4 bytes and hence ( 5 x 4 = 20 bytes ) needs to be copied.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-490581194916734757?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/490581194916734757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/490581194916734757'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/03/bufferblockcopy-vs-arraycopy.html' title='Buffer.BlockCopy Vs Array.Copy'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-9024273564991752387</id><published>2008-03-20T21:21:00.001+05:30</published><updated>2008-03-20T21:24:07.198+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Code Monkey</title><content type='html'>&lt;span style="font-family:Trebuchet MS, Verdana, Arial;font-size:-1;"&gt;A funny and interesting song by Jonathan Coulton. Do check out the song in it, really nice to hear.&lt;br /&gt;-------------------------------------------------&lt;br /&gt;Code Monkey get up get coffee&lt;br /&gt;Code Monkey go to job&lt;br /&gt;have boring meeting with boring manager Rob&lt;br /&gt;Rob say Code Monkey very diligent&lt;br /&gt;but his output stink&lt;br /&gt;his code not functional or elegant&lt;br /&gt;what do Code Monkey think&lt;br /&gt;Code Monkey think maybe manager oughta write goddamn login page himself&lt;br /&gt;Code Monkey not say it out loud&lt;br /&gt;Code Monkey not crazy just proud&lt;br /&gt;&lt;br /&gt;Code Monkey like Fritos&lt;br /&gt;Code Monkey like Tab and Mountain Dew&lt;br /&gt;Code Monkey very simple man&lt;br /&gt;with big warm fuzzy secret heart&lt;br /&gt;Code Monkey like you&lt;br /&gt;Code Monkey like you&lt;br /&gt;&lt;br /&gt;Code Monkey hang around at front desk&lt;br /&gt;tell you sweater look nice&lt;br /&gt;Code Monkey offer buy you soda&lt;br /&gt;bring you cup bring you ice&lt;br /&gt;you say no thank you for the soda ’cause&lt;br /&gt;soda make you fat&lt;br /&gt;anyway you busy with the telephone&lt;br /&gt;no time for chat&lt;br /&gt;&lt;br /&gt;Code Monkey have long walk back to cubicle&lt;br /&gt;he sit down pretend to work&lt;br /&gt;Code Monkey not thinking so straight&lt;br /&gt;Code Monkey not feeling so great&lt;br /&gt;&lt;br /&gt;Code Monkey like Fritos&lt;br /&gt;Code Monkey like Tab and Mountain Dew&lt;br /&gt;Code Monkey very simple man&lt;br /&gt;with big warm fuzzy secret heart&lt;br /&gt;Code Monkey like you&lt;br /&gt;Code Monkey like you a lot&lt;br /&gt;&lt;br /&gt;Code Monkey have every reason&lt;br /&gt;to get out this place&lt;br /&gt;Code Monkey just keep on working&lt;br /&gt;to see your soft pretty face&lt;br /&gt;Much rather wake up eat a coffee cake&lt;br /&gt;Take bath, take nap&lt;br /&gt;This job fulfilling in creative way&lt;br /&gt;such a load of crap&lt;br /&gt;Code Monkey think someday he have everything even pretty girl like you&lt;br /&gt;Code Monkey just waiting for now&lt;br /&gt;Code Monkey say someday, somehow&lt;br /&gt;&lt;br /&gt;Code Monkey like Fritos&lt;br /&gt;Code Monkey like Tab and Mountain Dew&lt;br /&gt;Code Monkey very simple man&lt;br /&gt;with big warm fuzzy secret heart&lt;br /&gt;Code Monkey like you&lt;br /&gt;Code Monkey like you&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-9024273564991752387?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/9024273564991752387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/9024273564991752387'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/03/code-monkey.html' title='Code Monkey'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-9204327509046269156</id><published>2008-03-20T10:44:00.003+05:30</published><updated>2008-03-20T13:45:04.866+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>Running code from same assembly in difference application domain</title><content type='html'>Running a particular function from same assembly in a difference application domain than the default one is pretty straightforward. I guess the code below is self explainatory.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;class RemoteClass : MarshalByRefObject&lt;br /&gt;  {&lt;br /&gt;      public void Action()&lt;br /&gt;      {&lt;br /&gt;          Console.WriteLine("Running From Appplication Domain :- {0}",AppDomain.CurrentDomain.FriendlyName);&lt;br /&gt;      }&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  class Class1&lt;br /&gt;  {&lt;br /&gt;      [STAThread]&lt;br /&gt;      static void Main(string[] args)&lt;br /&gt;      {&lt;br /&gt;           string ClassFullName =typeof(RemoteClass).FullName ;&lt;br /&gt;           string AssemblyName = Assembly.GetExecutingAssembly().FullName;&lt;br /&gt;&lt;br /&gt;           AppDomain TempDomain = AppDomain.CreateDomain("secondDomain");&lt;br /&gt;           TempDomain.Load(Assembly.GetExecutingAssembly().FullName);&lt;br /&gt;         &lt;br /&gt;           RemoteClass objSecondDomain = TempDomain.CreateInstanceAndUnwrap( AssemblyName , ClassFullName ) as RemoteClass;&lt;br /&gt;           objSecondDomain.Action();&lt;br /&gt;           RemoteClass objMainDomain = new RemoteClass();&lt;br /&gt;           objMainDomain.Action();&lt;br /&gt;           AppDomain.Unload(TempDomain);&lt;br /&gt;           Console.ReadLine();&lt;br /&gt;      }&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Output&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;------&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;Running From Appplication Domain :- secondDomain&lt;br /&gt;Running From Appplication Domain :- ConsoleApplication1.vshost.exe&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;PS: &lt;/span&gt;Point to be noted here is that the Class whose instance is being created should inherit from &lt;span style="font-style: italic;"&gt;MarshalByRefObject&lt;/span&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-9204327509046269156?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/9204327509046269156'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/9204327509046269156'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/03/running-code-from-same-assembly-in.html' title='Running code from same assembly in difference application domain'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-2511553698074778591</id><published>2008-03-19T14:28:00.000+05:30</published><updated>2008-03-19T14:30:27.052+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>Initialization Order and Virtual Functions.</title><content type='html'>Initialization Order in C# class is a interesting area to probe. When constructing a C# object, especially one that is derived from another class , its important that we are aware of the initialization order.&lt;br /&gt;&lt;br /&gt;Following is the usual initialization order.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:85%;" &gt;   1. Derived static fields&lt;br /&gt;   2. Derived static constructor&lt;br /&gt;   3. Derived instance fields&lt;br /&gt;   4. Base static fields&lt;br /&gt;   5. Base static constructor&lt;br /&gt;   6. Base instance fields&lt;br /&gt;   7. Base instance constructor&lt;br /&gt;   8. Derived instance constructor&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What i am trying to focus in here is the way virtual functions are handled when using a derived class.&lt;br /&gt;&lt;br /&gt;Consider following code.&lt;br /&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;    class Program&lt;br /&gt;    {&lt;br /&gt;        static void Main( string[] args )&lt;br /&gt;        {&lt;br /&gt;            Derived d = new Derived();&lt;br /&gt;            Console.ReadLine();&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;class Base&lt;br /&gt;    {&lt;br /&gt;        public Base()&lt;br /&gt;        {&lt;br /&gt;            Console.WriteLine("Base Instance Constructor");&lt;br /&gt;            this.MyVirtual("Base");&lt;br /&gt;        }&lt;br /&gt;        public virtual void MyVirtual(string str)&lt;br /&gt;        {&lt;br /&gt;            Console.WriteLine("Base Virtual Function called from "+ str);&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    class Derived : Base&lt;br /&gt;    {&lt;br /&gt;        public Derived()&lt;br /&gt;        {&lt;br /&gt;            Console.WriteLine("Derived Instance Construcor");&lt;br /&gt;            this.MyVirtual("Derived");&lt;br /&gt;        }&lt;br /&gt;        public override void MyVirtual(string str)&lt;br /&gt;        {&lt;br /&gt;            Console.WriteLine("Derived Virtual Function called from " +str);&lt;br /&gt;        }&lt;br /&gt;    }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Following is the output.&lt;br /&gt;&lt;span style="font-weight: bold;font-size:85%;" &gt;Base Instance Constructor&lt;br /&gt;Derived Virtual Function called from Base&lt;br /&gt;Derived Instance Construcor&lt;br /&gt;Derived Virtual Function called from Derived&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As you can see, the derived virtual function is being invoked by the base class even before the derived class constructor is called. This shows why it is a bad design to call the virtual function from the constructor.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-2511553698074778591?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/2511553698074778591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/2511553698074778591'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/03/initialization-order-and-virtual.html' title='Initialization Order and Virtual Functions.'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-18313898.post-237347137504286044</id><published>2008-03-19T12:45:00.002+05:30</published><updated>2008-03-19T13:01:06.225+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>String to Bytes : Comparing Methods</title><content type='html'>Suppose you have a string and you want to convert it to a array of bytes, there are two ways of doing so. Using the Encoding Class directly or using the Encoding class with the stream writers.&lt;br /&gt;&lt;br /&gt;Lets examine both ways. Here I have written two functions which would convert same string to bytes and print those bytes.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-size:85%;" &gt;static void Main(string[] args)&lt;br /&gt;{&lt;br /&gt;string strTest = "this is a test";&lt;br /&gt;Encoding encodingType = Encoding.ASCII;&lt;br /&gt;Console.WriteLine("First Method");&lt;br /&gt;FirstMethod(strTest, encodingType);&lt;br /&gt;Console.WriteLine("Second Method");&lt;br /&gt;SecondMethod(strTest, encodingType);&lt;br /&gt;Console.ReadLine();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;private static void FirstMethod(string strTest,Encoding encodingType)&lt;br /&gt;{&lt;br /&gt;foreach (byte b in encodingType.GetBytes(strTest))&lt;br /&gt;{&lt;br /&gt;  Console.Write("{0},", b);&lt;br /&gt;}&lt;br /&gt;Console.WriteLine(Environment.NewLine);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;private static void SecondMethod(string strTest,Encoding encodingType)&lt;br /&gt;{&lt;br /&gt;MemoryStream mo = new MemoryStream();&lt;br /&gt;StreamWriter so = new StreamWriter(mo,encodingType);&lt;br /&gt;so.Write(strTest);&lt;br /&gt;so.Close();&lt;br /&gt;foreach (byte b in mo.ToArray())&lt;br /&gt;{&lt;br /&gt;  Console.Write("{0},", b);&lt;br /&gt;}&lt;br /&gt;mo.Close();&lt;br /&gt;Console.WriteLine(Environment.NewLine);&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now the output would be same for both the function if you want them as Ascii characters. Check the output below.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;First Method&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;116,104,105,115,32,105,115,32,97,32,116,101,115,116,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;Second Method&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;116,104,105,115,32,105,115,32,97,32,116,101,115,116,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;But what about the case when the Encoding is Unicode ?? Well , then there is a difference. The second method would prepended by two bytes 255 and 254. Check the output.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;First Method&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;116,0,104,0,105,0,115,0,32,0,105,0,115,0,32,0,97,0,32,0,116,0,101,0,115,0,116,0,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;Second Method&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;255,254,116,0,104,0,105,0,115,0,32,0,105,0,115,0,32,0,97,0,32,0,116,0,101,0,115,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;0,116,0,&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;The two additional bytes are the preamble. the preamble is a set of bytes that usually denote the byte order for the decoder.&lt;br /&gt;The Unicode byte order mark (BOM) is serialized as follows (in hexadecimal):&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;UTF-8: EF BB BF&lt;br /&gt;&lt;br /&gt;UTF-16 big endian byte order: FE FF&lt;br /&gt;&lt;br /&gt;UTF-16 little endian byte order: FF FE&lt;br /&gt;&lt;br /&gt;UTF-32 big endian byte order: 00 00 FE FF&lt;br /&gt;&lt;br /&gt;UTF-32 little endian byte order: FF FE 00 00&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18313898-237347137504286044?l=anuviswan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/237347137504286044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18313898/posts/default/237347137504286044'/><link rel='alternate' type='text/html' href='http://anuviswan.blogspot.com/2008/03/string-to-bytes-comp.html' title='String to Bytes : Comparing Methods'/><author><name>Anu VIswan</name><uri>http://www.blogger.com/profile/08937911686951298892</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-Tr8QsX5bISg/TsfYCx3_QUI/AAAAAAAAGvI/w3aRwmx04CQ/s220/68696_490176066612_678956612_7072428_7816152_n.jpg'/></author></entry></feed>
