<?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:blogger='http://schemas.google.com/blogger/2008' 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-6365021392171983365</id><updated>2026-03-30T12:28:53.982+05:30</updated><category term="visual studio 2005"/><category term="BSNL"/><category term="Data One"/><category term="visual studio"/><category term="web automation"/><category term="WPF"/><category term="service pack"/><category term="vista"/><title type='text'>Sambhav&#39;s Blog</title><subtitle type='html'>Software construction and a whole lot of off-topic ramblings from the mind of Sambhav Sacheti</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dotnet-junk.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default'/><link rel='alternate' type='text/html' href='http://dotnet-junk.blogspot.com/'/><author><name>sambhav</name><uri>http://www.blogger.com/profile/15727774094519899533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_vK873D5Ylp0/TKJyHEJjGQI/AAAAAAAAM2g/WL1Wf0ttQ_g/S220/14241_203415690468_528040468_4680426_6398299_n.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6365021392171983365.post-5965614217480118212</id><published>2010-10-23T23:47:00.003+05:30</published><updated>2010-10-23T23:55:12.818+05:30</updated><title type='text'></title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;I have decided to move this blog to a new home. Please visit  &lt;/span&gt;&lt;a href=&quot;http://dotnetjunk.wordpress.com/&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; &gt;http://dotnetjunk.wordpress.com&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot; &gt; for latest posts :-)&lt;/span&gt;&lt;/span&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/5965614217480118212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/5965614217480118212'/><link rel='alternate' type='text/html' href='http://dotnet-junk.blogspot.com/2010/10/i-have-decided-to-move-this-blog-to-new.html' title=''/><author><name>sambhav</name><uri>http://www.blogger.com/profile/15727774094519899533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_vK873D5Ylp0/TKJyHEJjGQI/AAAAAAAAM2g/WL1Wf0ttQ_g/S220/14241_203415690468_528040468_4680426_6398299_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6365021392171983365.post-1892493296082905338</id><published>2009-07-28T12:34:00.004+05:30</published><updated>2009-08-11T19:51:48.913+05:30</updated><title type='text'>Constants vs Static Variables</title><content type='html'>&lt;div&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color: rgb(0, 0, 128); font-family:Arial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:medium;&quot;&gt;Today I discussed with my colleague natwar on difference between use of constant variables and static variables.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:Arial;color:navy;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:medium;&quot;&gt;Sometimes, we declare a class to store &lt;/span&gt;&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:medium;&quot;&gt;constant string&lt;/span&gt;&lt;/i&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:medium;&quot;&gt; and this functionality can also be implemented by using the &lt;/span&gt;&lt;i&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:medium;&quot;&gt;static&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:medium;&quot;&gt; keyword.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:Arial;color:navy;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:medium;&quot;&gt;I have created a small program to demonstrate the same.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:Arial;color:navy;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:medium;&quot;&gt;Code Listing&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;;color:blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;namespace&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family:&amp;quot;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; TestingApp&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;;&quot;&gt;&lt;span style=&quot;color:blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;class&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color:#2B91AF;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;Program&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;span&gt;&lt;/span&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;static&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;void&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; &lt;/span&gt;&lt;st1:place st=&quot;on&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;Main&lt;/span&gt;&lt;/st1:place&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;( &lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;string&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;[] args )&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#2B91AF;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;Console&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;.WriteLine( &lt;/span&gt;&lt;span style=&quot;color:#2B91AF;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;ClassWithConsts&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;.HelloWorld );&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#2B91AF;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;Console&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;.WriteLine( &lt;/span&gt;&lt;span style=&quot;color:#2B91AF;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;ClassWithStatic&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;.HelloWorld );&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;class&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color:#2B91AF;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;ClassWithConsts&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;public&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;const&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;string&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; HelloWorld = &lt;/span&gt;&lt;span style=&quot;color:#A31515;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&quot;Hello World&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;;&quot;&gt;&lt;span style=&quot;color:blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;class&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color:#2B91AF;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;ClassWithStatic&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;span&gt;&lt;/span&gt;{&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;public&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;static&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color:blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;string&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; HelloWorld = &lt;/span&gt;&lt;span style=&quot;color:#A31515;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&quot;Hello World&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:&amp;quot;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color: rgb(0, 0, 128); font-family:Arial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:medium;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:Arial;color:navy;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:medium;&quot;&gt;After disassembling, we have come to know that, when we use &lt;/span&gt;&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:medium;&quot;&gt;constant variables&lt;/span&gt;&lt;/i&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:medium;&quot;&gt;, Compiler replaces them with their value in the source code.&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:medium;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:Arial;color:navy;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:medium;&quot;&gt;This is not the case with the &lt;/span&gt;&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:medium;&quot;&gt;static variables&lt;/span&gt;&lt;/i&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:medium;&quot;&gt;, as every time they are used a &lt;/span&gt;&lt;i&gt;&lt;span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:medium;&quot;&gt;new instance&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:medium;&quot;&gt; of the variable type is created and subsequently used.&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:medium;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:Arial;color:navy;&quot;&gt;&lt;o:p&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:medium;&quot;&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:Arial;color:navy;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:medium;&quot;&gt;Check the disassembled code&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDWwGfXrfvQBNJZSH7L_nMiHUREUpW9OhWfV5v2AQ2avKjmYzoiLnMByhfUpsqjARtxsyiN8F8IQFkTlxetjyN99wsmpnf6rKtfgQe4aDhrAA1rLZJgDcgkpvKlvy5HkA2H-8Avkle_9E/s1600-h/constsvsstatic_ILDASM.bmp&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 244px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDWwGfXrfvQBNJZSH7L_nMiHUREUpW9OhWfV5v2AQ2avKjmYzoiLnMByhfUpsqjARtxsyiN8F8IQFkTlxetjyN99wsmpnf6rKtfgQe4aDhrAA1rLZJgDcgkpvKlvy5HkA2H-8Avkle_9E/s400/constsvsstatic_ILDASM.bmp&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5363407764388391250&quot; /&gt;&lt;/a&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;font-family:Arial;color:#000080;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;font-family:Georgia;color:#000000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:Arial;color:navy;&quot;&gt;&lt;o:p&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt; &lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family:Arial;color:navy;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;Now we will use constant variables instead of static for strings which do not change during the executon of the program. Thanks to ILDASM !&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;font-family:Arial;color:#000080;&quot;&gt;[&lt;a href=&quot;http://www.divshare.com/download/8157490-494&quot;&gt;Source Code&lt;/a&gt;]&lt;/span&gt;&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/1892493296082905338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/1892493296082905338'/><link rel='alternate' type='text/html' href='http://dotnet-junk.blogspot.com/2009/07/constants-vs-static-variables.html' title='Constants vs Static Variables'/><author><name>sambhav</name><uri>http://www.blogger.com/profile/15727774094519899533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_vK873D5Ylp0/TKJyHEJjGQI/AAAAAAAAM2g/WL1Wf0ttQ_g/S220/14241_203415690468_528040468_4680426_6398299_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDWwGfXrfvQBNJZSH7L_nMiHUREUpW9OhWfV5v2AQ2avKjmYzoiLnMByhfUpsqjARtxsyiN8F8IQFkTlxetjyN99wsmpnf6rKtfgQe4aDhrAA1rLZJgDcgkpvKlvy5HkA2H-8Avkle_9E/s72-c/constsvsstatic_ILDASM.bmp" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-6365021392171983365.post-6111936977796713185</id><published>2007-12-24T12:54:00.000+05:30</published><updated>2007-12-24T13:21:19.759+05:30</updated><title type='text'>Google PicasaWeb API Example</title><content type='html'>&lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:Arial;font-size:10;&quot;  &gt;&lt;a href=&quot;http://www.google.com/&quot;&gt;Google &lt;/a&gt;has launched &lt;a href=&quot;http://code.google.com/apis/picasaweb/overview.html&quot;&gt;Picasa Web Albums Data API&lt;/a&gt; in march 2007 . Last week , I developed some code using this new API which is part GData API family. In case you are still wondering what GData APIs consists of then check out the &lt;a href=&quot;http://code.google.com/apis/gdata/&quot;&gt;official homepage&lt;/a&gt;.&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:Arial;font-size:10;&quot;  &gt;Here are some of the things you can do with the Picasa Web Albums Data API:&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:Arial;font-size:10;&quot;  &gt;Include your public photos in your own web page, and      allow users to comment on them (and have the comments stored in Picasa Web      Albums).&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:Arial;font-size:10;&quot;  &gt;Write a plugin to manage your albums and photos from a      desktop or mobile phone client.&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:Arial;font-size:10;&quot;  &gt;Create a custom screensaver to display your Picasa Web      Albums photos on your computer. &lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:Arial;font-size:10;&quot;  &gt;Google is providing &lt;a href=&quot;http://code.google.com/apis/gdata/clientlibs.html&quot;&gt;client libraries&lt;/a&gt; to help you write GData client applications in a variety of languages like java, python, c#, php, javascript. &lt;u1:p&gt;&lt;/u1:p&gt;I will show how easy it is to query PicasaWeb and download entire albums for a user using the &lt;a href=&quot;http://code.google.com/apis/gdata/client-cs.html&quot;&gt;.net client library&lt;/a&gt;&lt;a href=&quot;http://code.google.com/apis/gdata/client-cs.html&quot;&gt; for GData&lt;/a&gt;.&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;;font-family:Arial;font-size:10;&quot;  &gt;Download the &lt;a href=&quot;http://code.google.com/apis/gdata/client-cs.html&quot;&gt;GData .NET Client Library&lt;/a&gt; &lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:Arial;font-size:10;&quot;  &gt;Now, create a new Console Application project for c#. Add a reference to GData.Client, Gdata.Extenstion and GData.Photos Dlls from the output directory of the first project.&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:Arial;font-size:10;&quot;  &gt;Now the stage is ready. &lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:Arial;font-size:10;&quot;  &gt;Here is the code for a function which takes User name and name of the album as arguments and download all the pictures from this album.&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;;font-family:Arial;font-size:10;&quot;  &gt;&lt;u1:p&gt;code listing &lt;/u1:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;;font-family:Arial;font-size:10;&quot;  &gt;&lt;br /&gt;&lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;color:blue;&quot;   &gt;private&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt; &lt;span style=&quot;color:blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color:blue;&quot;&gt;void&lt;/span&gt; DownAlbum(&lt;span style=&quot;color:blue;&quot;&gt;string&lt;/span&gt; UserN, &lt;span style=&quot;color:blue;&quot;&gt;string&lt;/span&gt; AlbumN)&lt;br /&gt;{&lt;br /&gt;&lt;span style=&quot;color:blue;&quot;&gt;string&lt;/span&gt; fileName;&lt;br /&gt;&lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;Uri&lt;/span&gt; uriPath;&lt;br /&gt;&lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;WebClient&lt;/span&gt; HttpClient = &lt;span style=&quot;color:blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;WebClient&lt;/span&gt;();&lt;br /&gt;&lt;span style=&quot;color:green;&quot;&gt;// Three important elements of PicasaWeb API are&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color:green;&quot;&gt;// PhotoQuery, PicasaService and PicasaFeed&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;PhotoQuery&lt;/span&gt; query = &lt;span style=&quot;color:blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;PhotoQuery&lt;/span&gt;();&lt;br /&gt;query.Uri = &lt;span style=&quot;color:blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;Uri&lt;/span&gt;(&lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;PhotoQuery&lt;/span&gt;.CreatePicasaUri(UserN, AlbumN));&lt;br /&gt;&lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;PicasaService&lt;/span&gt; service = &lt;span style=&quot;color:blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;PicasaService&lt;/span&gt;(&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;&quot;Sams PicasaWeb Explorer&quot;&lt;/span&gt;);&lt;br /&gt;&lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;PicasaFeed&lt;/span&gt; feed = (&lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;PicasaFeed&lt;/span&gt;)service.Query(query);&lt;u1:p&gt; &lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;Directory&lt;/span&gt;&lt;span style=&quot;;font-family:&amp;quot;;font-size:10;&quot;  &gt;.SetCurrentDirectory(&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;&quot;c:\\&quot;&lt;/span&gt;);&lt;br /&gt;&lt;span style=&quot;color:blue;&quot;&gt;foreach&lt;/span&gt; (&lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;AtomEntry&lt;/span&gt; aentry &lt;span style=&quot;color:blue;&quot;&gt;in&lt;/span&gt; feed.Entries)&lt;br /&gt;{&lt;br /&gt;uriPath = &lt;span style=&quot;color:blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;Uri&lt;/span&gt;(aentry.Content.Src.ToString());&lt;br /&gt;fileName = uriPic.LocalPath.Substring(uriPath.LocalPath.LastIndexOf(&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;&#39;/&#39;&lt;/span&gt;)+1);&lt;br /&gt;&lt;span style=&quot;color:blue;&quot;&gt;try&lt;/span&gt; {&lt;br /&gt;&lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;&quot;Downloading: &quot;&lt;/span&gt; + fileName);&lt;br /&gt;HttpClient.DownloadFile(aentry.Content.Src.ToString(), fileName);&lt;br /&gt;&lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;&quot;Download Complete&quot;&lt;/span&gt;);&lt;br /&gt;}&lt;br /&gt;&lt;span style=&quot;color:blue;&quot;&gt;catch&lt;/span&gt; (&lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;WebException&lt;/span&gt; we)&lt;br /&gt;{ &lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;Console&lt;/span&gt;.WriteLine(we.Message); }&lt;br /&gt;}&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:Arial;font-size:10;&quot;  &gt;Code is easy to understand. I am using HttpClient.DownloadFile() to download file from picasaweb server. &lt;span style=&quot;&quot;&gt; &lt;/span&gt;To improve readability I have not included error handling code here.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;;font-family:Arial;font-size:10;&quot;  &gt;&lt;a href=&quot;http://www.divshare.com/download/3227836-b45&quot;&gt;[Source code]&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/6111936977796713185'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/6111936977796713185'/><link rel='alternate' type='text/html' href='http://dotnet-junk.blogspot.com/2007/12/google-has-launched-picasa-web-albums_24.html' title='Google PicasaWeb API Example'/><author><name>sambhav</name><uri>http://www.blogger.com/profile/15727774094519899533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_vK873D5Ylp0/TKJyHEJjGQI/AAAAAAAAM2g/WL1Wf0ttQ_g/S220/14241_203415690468_528040468_4680426_6398299_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6365021392171983365.post-4103864734295225544</id><published>2007-09-03T16:15:00.000+05:30</published><updated>2007-09-03T16:34:09.967+05:30</updated><title type='text'>A project on OMR in C#</title><content type='html'>&lt;span style=&quot;font-family:arial;&quot;&gt;Last week, We decided that this semester&#39;s college project should be on Optical Mark Recognization. A OMR system is a idle tool for collecting and analysing data from paper and web surveys, tests, assessments, evaluations and other forms.&lt;br /&gt;After googling and burning mid night oil for 3 days, I have found that the following things are required&lt;br /&gt;1) OMR sheets -- OMR forms are typically multiple choice sheets, which may or may not be made of special paper and ink.&lt;br /&gt;2) Scanner -- Since I want to develop a software based system, it should support a wide variety of scanners.&lt;br /&gt;3) Recognization engine -- Image processing and analysis has to be done here, and data collected should be forwarded for further processing.&lt;br /&gt;4) OMR Sheets management system&lt;br /&gt;&lt;/span&gt;&lt;dd&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;a) Development of sheet designs&lt;br /&gt;&lt;/span&gt;&lt;dd&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;b) Master sheet or Answer sheet&lt;br /&gt;&lt;/span&gt;&lt;dd&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;c) Score calculation and analysis&lt;/span&gt;&lt;/dd&gt;&lt;br /&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;em&gt;PS:&lt;/em&gt; More points may be added later.&lt;br /&gt;&lt;br /&gt;Now, I have decided to build the Recognization Engine first and my colleagues will help in developing the rest of the system.&lt;br /&gt;I have developed some graphics intensive apps. Softwares with impressive uncoventional UI ( latest one using WPF and Expression Blend posted &lt;/span&gt;&lt;a href=&quot;http://dotnet-junk.blogspot.com/2007/03/sams-cricket-score-live-sample.html&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;here&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;) and also small 2-D games . It was never required before to play directly with the pixels of a image.&lt;/span&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/4103864734295225544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/4103864734295225544'/><link rel='alternate' type='text/html' href='http://dotnet-junk.blogspot.com/2007/09/project-on-omr-in-c.html' title='A project on OMR in C#'/><author><name>sambhav</name><uri>http://www.blogger.com/profile/15727774094519899533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_vK873D5Ylp0/TKJyHEJjGQI/AAAAAAAAM2g/WL1Wf0ttQ_g/S220/14241_203415690468_528040468_4680426_6398299_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6365021392171983365.post-2272177927229418012</id><published>2007-07-27T06:54:00.000+05:30</published><updated>2007-07-27T07:02:54.931+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="visual studio"/><title type='text'>VS 2008 &#39;orcas&#39; beta 2 released</title><content type='html'>I&#39;m very pleased to announce that the Beta 2 release of VS 2008 and .NET 3.5 Beta2 is now available for download. You can download the Visual Studio 2008 product &lt;a href=&quot;http://msdn2.microsoft.com/en-us/vstudio/aa700831.aspx&quot;&gt;&lt;strong&gt;here&lt;/strong&gt;&lt;/a&gt;. You can alternatively download the smaller VS 2008 Express Editions &lt;a href=&quot;http://msdn.microsoft.com/vstudio/express/future/default.aspx&quot;&gt;&lt;strong&gt;here&lt;/strong&gt;&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;MSDN Library for Visual Studio 2008 Beta 2 can be downloaded from this &lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyID=E2B71A06-F8AE-4D1E-AAEF-DF748784933D&amp;amp;displaylang=en&quot;&gt;&lt;strong&gt;link&lt;/strong&gt;&lt;/a&gt; .&lt;br /&gt;&lt;br /&gt;I will spend next few days to grasp the changes in this new release. And come up with new posts soon.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/2272177927229418012'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/2272177927229418012'/><link rel='alternate' type='text/html' href='http://dotnet-junk.blogspot.com/2007/07/vs-2008-orcas-beta-2-released.html' title='VS 2008 &#39;orcas&#39; beta 2 released'/><author><name>sambhav</name><uri>http://www.blogger.com/profile/15727774094519899533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_vK873D5Ylp0/TKJyHEJjGQI/AAAAAAAAM2g/WL1Wf0ttQ_g/S220/14241_203415690468_528040468_4680426_6398299_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6365021392171983365.post-6439797568711676222</id><published>2007-07-26T03:14:00.000+05:30</published><updated>2007-07-26T03:43:48.873+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="visual studio"/><title type='text'>VS 2008 &#39;orcas&#39; beta 2 will be available in few days</title><content type='html'>I have been waiting for this release since many days !&lt;br /&gt;&lt;br /&gt;Microsoft will announce Thursday morning the release of Visual Studio 2008 Beta 2. According to Scott Guthrie, the general manager of Microsoft&#39;s Developer Division, the release will be nearly feature complete and will likely be the last major release before the product is released to manufacturing in preparation for its launch on February 27, 2008.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/6439797568711676222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/6439797568711676222'/><link rel='alternate' type='text/html' href='http://dotnet-junk.blogspot.com/2007/07/vs-2008-orcas-beta-2-will-be-available.html' title='VS 2008 &#39;orcas&#39; beta 2 will be available in few days'/><author><name>sambhav</name><uri>http://www.blogger.com/profile/15727774094519899533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_vK873D5Ylp0/TKJyHEJjGQI/AAAAAAAAM2g/WL1Wf0ttQ_g/S220/14241_203415690468_528040468_4680426_6398299_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6365021392171983365.post-3698212114946044956</id><published>2007-07-09T15:45:00.000+05:30</published><updated>2007-12-24T13:13:45.784+05:30</updated><title type='text'></title><content type='html'>&lt;p class=&quot;MsoNormal&quot;&gt;&lt;strong&gt;&lt;u&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;Reading a XML file using JScript &lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;&lt;br /&gt;My current project required me to consume and display data from a xml file. XML! hey microsoft has made programmer&#39;s life easy by providing various xml classes. But i was asked to use same old scripting languages. I started with javascript and then XMLDOM. Document Object Model, yeah we all have heard about it since last decade. Now let me show how you can also make use of XMLDOM using JScript&lt;br /&gt;&lt;br /&gt;Requirements :&lt;br /&gt;1. MSXML 3.0 or above&lt;br /&gt;2. Text editor like notepad&lt;br /&gt;3. Internet Explorer 4.0 or later&lt;br /&gt;4. A XML file, Products.xml is included in the attached file&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Note:&lt;/u&gt; If u have windows xp or 2003 installed on &lt;st1:city st=&quot;on&quot;&gt;&lt;st1:place st=&quot;on&quot;&gt;ur&lt;/st1:place&gt;&lt;/st1:City&gt; system , then dont worry about the above requirements.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt; dom = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; ActiveXObject(&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;&quot;msxml2.DOMDocument.3.0&quot;&lt;/span&gt;);&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;&lt;br /&gt;&lt;br /&gt;First create a instance of msxml DOM object.Above code will work for MSXML 3.0 or above as &lt;em&gt;&lt;span style=&quot;font-family: Arial; font-style: normal;&quot;&gt;&quot;Msxml2.DOMDocument.3.0&quot;&lt;/span&gt;&lt;/em&gt; is ProgID for MSXML 3.0.&lt;br /&gt;For those who are still wondering, MSXML is the Microsoft XML Core Services.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;dom.load(&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;&quot;products.xml&quot;&lt;/span&gt;);&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;&lt;br /&gt;&lt;br /&gt;once this is done we can use various DOM methods and properties to access and manipulate the XML data.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt; oNodes = dom.selectNodes(&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;&quot;//Product[0]/*&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt; node = oNodes.nextNode; alert(node.text);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;&lt;br /&gt;This was my first experience with JScript and also MSXML. Also attached a &lt;span style=&quot;&quot;&gt; &lt;/span&gt;hello world test file to get you started with MSXML DOM. Do write to me about any queries.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;em&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-style: normal;font-family:Arial;font-size:10;&quot;  &gt;&lt;/span&gt;&lt;/b&gt;&lt;/em&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;;font-family:Arial;font-size:10;&quot;  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;;font-family:Arial;font-size:10;&quot;  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style=&quot;font-size:130%;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuU0aHnWef6h9Djl2vCtfhJEgjzGxTw52DRqesHF47SfjptOLtxbAhE1iZ7b_GCMrrLkF3VAbSn8gWs-Q6yvGLBSAwFoN7bIYJbTrmiV5fqdnmnnuLi2bM39vhkV5icJT3ImN2plbq7qk/s1600-h/MSXML+Hello+World.JPG&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5085140009788567794&quot; style=&quot;&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuU0aHnWef6h9Djl2vCtfhJEgjzGxTw52DRqesHF47SfjptOLtxbAhE1iZ7b_GCMrrLkF3VAbSn8gWs-Q6yvGLBSAwFoN7bIYJbTrmiV5fqdnmnnuLi2bM39vhkV5icJT3ImN2plbq7qk/s400/MSXML+Hello+World.JPG&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/span&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/3698212114946044956'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/3698212114946044956'/><link rel='alternate' type='text/html' href='http://dotnet-junk.blogspot.com/2007/07/my-current-project-required-me-to.html' title=''/><author><name>sambhav</name><uri>http://www.blogger.com/profile/15727774094519899533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_vK873D5Ylp0/TKJyHEJjGQI/AAAAAAAAM2g/WL1Wf0ttQ_g/S220/14241_203415690468_528040468_4680426_6398299_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuU0aHnWef6h9Djl2vCtfhJEgjzGxTw52DRqesHF47SfjptOLtxbAhE1iZ7b_GCMrrLkF3VAbSn8gWs-Q6yvGLBSAwFoN7bIYJbTrmiV5fqdnmnnuLi2bM39vhkV5icJT3ImN2plbq7qk/s72-c/MSXML+Hello+World.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-6365021392171983365.post-7842108626461969815</id><published>2007-03-20T20:56:00.000+05:30</published><updated>2007-03-27T03:46:55.642+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="visual studio 2005"/><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><title type='text'>Microsoft Expression Blend in Action  - A sample application</title><content type='html'>This is my first application using Microsoft Expression Blend and Windows Presentation Foundation. This app gets and display Cricket Scores from CricInfo R&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKdQ1O_6lXVk1FrIYRQpV0UwmEKv382Wt3az2TYGjJe0gObh49N1QOMBn_Jl-3aAMQmgfPTV_KjAoallzqgAmGYgQbzPM_xywEePanEGy95RiApZmmoiAHVrRTZyLoLOGyyKzzflzSUD4/s1600-h/SamsCricketScore.bmp&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5044059813307344354&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKdQ1O_6lXVk1FrIYRQpV0UwmEKv382Wt3az2TYGjJe0gObh49N1QOMBn_Jl-3aAMQmgfPTV_KjAoallzqgAmGYgQbzPM_xywEePanEGy95RiApZmmoiAHVrRTZyLoLOGyyKzzflzSUD4/s400/SamsCricketScore.bmp&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;SS feed.&lt;br/&gt;The User Interface has been entirely developed using Expression Blend and very little code has been written using Visual Studio.net 2005.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Here are the three main features i worked on&lt;/strong&gt; &lt;br/&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br/&gt;1) Connection to XML source and dispalying the data&lt;br/&gt;&lt;br/&gt;2) Transparent Window and cool UI elements&lt;br/&gt;&lt;br/&gt;3) updating a control&#39;s property using DispatcherTimer&lt;br/&gt;&lt;br/&gt;Connecting to the xml data source is straight forward in Microsoft Expression Blend. Select XML Source in the Data panel. &lt;em&gt;Add XML data Source&lt;/em&gt; Dialog box will appear. Type the URL of the the RSS feed and press OK button. Now create a new grid and a the desired node on to grid.&lt;br/&gt;select the control to be data bounded .&lt;br/&gt;&lt;br/&gt;The main application window is made transparent by setting allowtransparancy&lt;br/&gt;&lt;br/&gt;&lt;span&gt;AllowTransparancy = true;&lt;/span&gt;&lt;br/&gt;&lt;em&gt;&lt;/em&gt;&lt;br/&gt;This will also hide the menubar and then the window could not be moved.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;How to solve this problem&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br/&gt;Select &lt;em&gt;Window&lt;/em&gt; in &lt;em&gt;Object and TimeLine Panel &lt;/em&gt;and then select events in the &lt;em&gt;properties &lt;/em&gt;panel.&lt;br/&gt;Now type OnMouseLeftButtonDown at MouseButtonDown and press Enter key.&lt;br/&gt;This will load the project in Microsoft Visual Studio.net 2005 and the &lt;em&gt;OnMouseLeftButtonDown &lt;/em&gt;event will be automatically added .&lt;br/&gt;&lt;br/&gt;Here&#39;s the code to fix this so you can move the window.&lt;br/&gt;&lt;br/&gt;&lt;span&gt;override void OnMouseLeftButtonDown(MouseButtonEventArgs e)&lt;br/&gt;{&lt;br/&gt;DragMove();&lt;br/&gt;}&lt;br/&gt;&lt;/span&gt;&lt;br/&gt;&lt;strong&gt;Updating UI controls property uisng DispatcherTimer&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;I thought that it would look nice if we could display the time when the score card information was last updated. Its wasy to guess that this task requries a Timer object. &lt;/p&gt;&lt;br/&gt;&lt;p&gt;Windows Presentation Foundation comes with DispatcherTimer Class. This is a timer that is integrated into the Dispatcher queue which is processed at a specified interval of time and at a specified priority. &lt;/p&gt;&lt;br/&gt;&lt;p&gt;Reasons for using a DispatcherTimer opposed to a System.Timers.Timer are that the DispatcherTimer runs on the same thread as the Dispatcher and a DispatcherPriority can be set on the DispatcherTimer.&lt;/p&gt;&lt;br/&gt;&lt;p&gt;&lt;span&gt;dispatcherTimer = new DispatcherTimer();&lt;br/&gt;// Score should be updated every 30 seconds -:)&lt;br/&gt;dispatcherTimer.Interval = new TimeSpan(0, 0, 30);&lt;br/&gt;dispatcherTimer.Tick += new EventHandler(dispatcherTimer_Tick);&lt;br/&gt;dispatcherTimer.Start();&lt;/span&gt;&lt;/p&gt;&lt;br/&gt;&lt;p&gt;After developing this app, i must say WPF and Expression Blend rocks!&lt;br/&gt;&lt;br/&gt;&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/7842108626461969815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/7842108626461969815'/><link rel='alternate' type='text/html' href='http://dotnet-junk.blogspot.com/2007/03/sams-cricket-score-live-sample.html' title='Microsoft Expression Blend in Action  - A sample application'/><author><name>sambhav</name><uri>http://www.blogger.com/profile/15727774094519899533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_vK873D5Ylp0/TKJyHEJjGQI/AAAAAAAAM2g/WL1Wf0ttQ_g/S220/14241_203415690468_528040468_4680426_6398299_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKdQ1O_6lXVk1FrIYRQpV0UwmEKv382Wt3az2TYGjJe0gObh49N1QOMBn_Jl-3aAMQmgfPTV_KjAoallzqgAmGYgQbzPM_xywEePanEGy95RiApZmmoiAHVrRTZyLoLOGyyKzzflzSUD4/s72-c/SamsCricketScore.bmp" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-6365021392171983365.post-385924983945903591</id><published>2007-03-07T13:27:00.000+05:30</published><updated>2007-03-12T19:20:29.257+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="service pack"/><category scheme="http://www.blogger.com/atom/ns#" term="vista"/><category scheme="http://www.blogger.com/atom/ns#" term="visual studio 2005"/><title type='text'>Visual Studio 2005 SP1 for Vista is officially released</title><content type='html'>&lt;a href=&quot;http://blogs.msdn.com/tims/&quot;&gt;Tim Sneath &lt;/a&gt;reported that the final release of the Visual Studio 2005 update for Windows Vista is &lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyID=90e2942d-3ad1-4873-a2ee-4acc0aace5b6&amp;amp;DisplayLang=en&quot;&gt;now available&lt;/a&gt;. This update fixes most of the issues that you may have faced with running Microsoft Visual Studio 2005 on Windows Vista. Install Visual Studio 2005, the &lt;a href=&quot;http://msdn.microsoft.com/vstudio/support/vs2005sp1/default.aspx&quot;&gt;Service Pack 1&lt;/a&gt; update, and then the Windows Vista update to get a fully-supported developer environment.&lt;br /&gt;There&#39;s also an &lt;a href=&quot;http://www.microsoft.com/presspass/features/2007/mar07/03-06VisualStudio.mspx&quot;&gt;interesting interview with Soma&lt;/a&gt; (the VP responsible for the Developer Division here) on Microsoft Presspass. The questions are a little soft (the interview is posted on our press relations site, after all!) but it&#39;s a good review of where the developer platform is today and the focus areas for the developer tools and platform part of the business.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/385924983945903591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/385924983945903591'/><link rel='alternate' type='text/html' href='http://dotnet-junk.blogspot.com/2007/03/vs2005-sp1-for-vista-is-officially.html' title='Visual Studio 2005 SP1 for Vista is officially released'/><author><name>sambhav</name><uri>http://www.blogger.com/profile/15727774094519899533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_vK873D5Ylp0/TKJyHEJjGQI/AAAAAAAAM2g/WL1Wf0ttQ_g/S220/14241_203415690468_528040468_4680426_6398299_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6365021392171983365.post-7979333623532030983</id><published>2007-03-05T17:33:00.000+05:30</published><updated>2007-03-12T19:14:40.991+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="visual studio 2005"/><title type='text'>New tutorial site for newbies and kids by microsoft</title><content type='html'>Microsoft Corporation unveiled a new &lt;a href=&quot;http://msdn.microsoft.com/vstudio/express/beginner/default.aspx&quot;&gt;tutorial website&lt;/a&gt; yesterday. It is to help people with no programming experience learn to build Windows applications or Web sites using Microsoft Visual Studio 2005 .&lt;br /&gt;The new Beginning Developer Learning Center offers such developers 45 lessons and 31 short “how-to” videos on programming using Visual Studio 2005 Express Edition products, Microsoft said.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzK5mhYvgoQmY849hcV8UD8MYk6QlaJRxatvPYFrhulcpKbS-AFCIVVq2YPo_D6mdSjdmN3mqr0J-w8j6Gws6nO1an47FGjthUoiBVoCX3185h8P_-gIYo4Mt9YMmSy_FVU_3ORH65FUs/s1600-h/vbWall.jpg&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5038415818896640946&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 406px; CURSOR: hand; HEIGHT: 256px; TEXT-ALIGN: center&quot; height=&quot;151&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzK5mhYvgoQmY849hcV8UD8MYk6QlaJRxatvPYFrhulcpKbS-AFCIVVq2YPo_D6mdSjdmN3mqr0J-w8j6Gws6nO1an47FGjthUoiBVoCX3185h8P_-gIYo4Mt9YMmSy_FVU_3ORH65FUs/s400/vbWall.jpg&quot; width=&quot;179&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgm6yrunYkd3rrkkPIitMPjwSLAZX5sydkc52WJxU6Z0K1pfu5VqKFyp4BghAeFo-I8aH_mG1XWhp0ntW8C2C7Fbpk7E_pKpohfYFSWSy9nTdjdh-R3RNyEDsMS0Dm-LfWCcs2_Q0BUnkU/s1600-h/vbWall.jpg&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;It starts with the very basics, and guides you through step-by-step to becoming a fully-fledged developer.It is suitable for students that have no prior knowledge of programming.&lt;br /&gt;All lessons in the Beginner Developer Learning Center are organized into two development tracks (Windows Development and Web Development). They are further classified into Tiers or levels of difficulty.&lt;br /&gt;To view all the lesson available, click on &lt;a title=&quot;Learning Path&quot; href=&quot;http://msdn.microsoft.com/vstudio/express/beginner/learningpath/&quot; target=&quot;_blank&quot;&gt;Learning Path&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Since last 2-3 years Microsoft has been providing tools and services for students and non-developers. &lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/7979333623532030983'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/7979333623532030983'/><link rel='alternate' type='text/html' href='http://dotnet-junk.blogspot.com/2007/03/new-tutorial-site-for-newbies-and-kids.html' title='New tutorial site for newbies and kids by microsoft'/><author><name>sambhav</name><uri>http://www.blogger.com/profile/15727774094519899533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_vK873D5Ylp0/TKJyHEJjGQI/AAAAAAAAM2g/WL1Wf0ttQ_g/S220/14241_203415690468_528040468_4680426_6398299_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzK5mhYvgoQmY849hcV8UD8MYk6QlaJRxatvPYFrhulcpKbS-AFCIVVq2YPo_D6mdSjdmN3mqr0J-w8j6Gws6nO1an47FGjthUoiBVoCX3185h8P_-gIYo4Mt9YMmSy_FVU_3ORH65FUs/s72-c/vbWall.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-6365021392171983365.post-781128912496601144</id><published>2007-03-05T11:25:00.000+05:30</published><updated>2007-03-05T11:59:34.548+05:30</updated><title type='text'>Adding  a Proxy server to your code can never be so easy !</title><content type='html'>Today i have created a small console program which uses multiple proxy servers to fetch data from &lt;a href=&quot;http://www.google.com&quot;&gt;www.google.com&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;HttpWebRequest.Proxy Property is used to specify the proxy server through which the rquest is posted.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGNbbG98e03wS_m4TROZnFWECH29jMGFmZjR3zgg32OsDlOhdCZGB4RGKmBkrR260OhUNzqBebR-ZqTSjGdsJJ-aJrb7pdKQdKden16xrRvD8zTxsqXt07QrI7joTP6L0AMJK38tx243w/s1600-h/samTest.jpg&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5038315613014657938&quot; style=&quot;WIDTH: 385px; CURSOR: hand; HEIGHT: 271px&quot; height=&quot;261&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGNbbG98e03wS_m4TROZnFWECH29jMGFmZjR3zgg32OsDlOhdCZGB4RGKmBkrR260OhUNzqBebR-ZqTSjGdsJJ-aJrb7pdKQdKden16xrRvD8zTxsqXt07QrI7joTP6L0AMJK38tx243w/s400/samTest.jpg&quot; width=&quot;507&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;download source code: &lt;/span&gt;&lt;a href=&quot;http://www.divshare.com/download/188899-47e&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;http://www.divshare.com/download/188899-47e&lt;/span&gt;&lt;/a&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/781128912496601144'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/781128912496601144'/><link rel='alternate' type='text/html' href='http://dotnet-junk.blogspot.com/2007/03/adding-proxy-server-to-your-code-can.html' title='Adding  a Proxy server to your code can never be so easy !'/><author><name>sambhav</name><uri>http://www.blogger.com/profile/15727774094519899533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_vK873D5Ylp0/TKJyHEJjGQI/AAAAAAAAM2g/WL1Wf0ttQ_g/S220/14241_203415690468_528040468_4680426_6398299_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGNbbG98e03wS_m4TROZnFWECH29jMGFmZjR3zgg32OsDlOhdCZGB4RGKmBkrR260OhUNzqBebR-ZqTSjGdsJJ-aJrb7pdKQdKden16xrRvD8zTxsqXt07QrI7joTP6L0AMJK38tx243w/s72-c/samTest.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-6365021392171983365.post-1028294005757309682</id><published>2007-03-05T10:34:00.000+05:30</published><updated>2007-03-05T10:40:09.039+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="BSNL"/><category scheme="http://www.blogger.com/atom/ns#" term="Data One"/><category scheme="http://www.blogger.com/atom/ns#" term="web automation"/><title type='text'>Posting to a webpage and using it&#39;s response</title><content type='html'>&lt;strong&gt;HttpWebRequest and HttpWebResponse - &lt;/strong&gt;here are the two classes to simulate the web browser funtionality in smart client applications.&lt;br /&gt;We can use the following method when we had to call  a web page which return the result as Xml.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;public static string GetHttpRequest(StringBuilder data, string sourcePath)&lt;br /&gt;{&lt;br /&gt;Stream aStream = null;&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;//Send POST request web page&lt;br /&gt;HttpWebRequest req = (HttpWebRequest)WebRequest.Create(sourcePath);&lt;br /&gt;req.Method = &quot;POST&quot;;&lt;br /&gt;// Content type is xml&lt;br /&gt;req.ContentType = &quot;text/xml&quot;;&lt;br /&gt;req.Credentials = CredentialCache.DefaultCredentials;&lt;br /&gt;if (data.Length &gt; 0)&lt;br /&gt;{&lt;br /&gt;req.ContentLength = data.Length;&lt;br /&gt;StreamWriter sw = new StreamWriter(req.GetRequestStream());&lt;br /&gt;sw.Write(data.ToString());&lt;br /&gt;sw.Flush();&lt;br /&gt;sw.Close();&lt;br /&gt;}&lt;br /&gt;// Create The Response Object And Fill It By Sending The Request;&lt;br /&gt;HttpWebResponse response = (HttpWebResponse)req.GetResponse();&lt;br /&gt;aStream = response.GetResponseStream();&lt;br /&gt;StreamReader sr = new StreamReader(aStream);&lt;br /&gt;StringBuilder sbOutput = new StringBuilder();&lt;br /&gt;char[] buffer = new char[1024];&lt;br /&gt;int r;&lt;br /&gt;while ((r = sr.Read(buffer, 0, buffer.Length)) &gt; 0)&lt;br /&gt;sbOutput.Append(buffer, 0, r);&lt;br /&gt;return sbOutput.ToString();&lt;br /&gt;}&lt;br /&gt;catch (WebException ex)&lt;br /&gt;{&lt;br /&gt;//TODO: handle exception&lt;br /&gt;}&lt;br /&gt;catch (Exception ex)&lt;br /&gt;{&lt;br /&gt;//TODO: handle exception&lt;br /&gt;}&lt;br /&gt;finally&lt;br /&gt;{&lt;br /&gt;aStream.Close();&lt;br /&gt;}&lt;br /&gt;return string.Empty;&lt;br /&gt;}&lt;/span&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/1028294005757309682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/1028294005757309682'/><link rel='alternate' type='text/html' href='http://dotnet-junk.blogspot.com/2007/03/posting-to-webpage-and-using-its.html' title='Posting to a webpage and using it&#39;s response'/><author><name>sambhav</name><uri>http://www.blogger.com/profile/15727774094519899533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_vK873D5Ylp0/TKJyHEJjGQI/AAAAAAAAM2g/WL1Wf0ttQ_g/S220/14241_203415690468_528040468_4680426_6398299_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6365021392171983365.post-6601051876788539694</id><published>2007-03-04T20:13:00.000+05:30</published><updated>2007-03-05T10:18:09.320+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="BSNL"/><category scheme="http://www.blogger.com/atom/ns#" term="Data One"/><category scheme="http://www.blogger.com/atom/ns#" term="web automation"/><title type='text'>web automation - Fetch / Send HTTP Post data to a Web Server</title><content type='html'>Since last two days i am googling for how to fetch and post data on websites using the standard .net aplication.&lt;br /&gt;Such applications will be helpful in many scenarios . Examples of application using the above technique&lt;br /&gt;1) Website Testing&lt;br /&gt;2) Website Downloader&lt;br /&gt;3) Stress testing of Server and Websites&lt;br /&gt;4) Data pulling from websites - like fetching usage data from BSNL Data One server -:)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/6601051876788539694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/6601051876788539694'/><link rel='alternate' type='text/html' href='http://dotnet-junk.blogspot.com/2007/03/web-automation-fetch-send-http-post.html' title='web automation - Fetch / Send HTTP Post data to a Web Server'/><author><name>sambhav</name><uri>http://www.blogger.com/profile/15727774094519899533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_vK873D5Ylp0/TKJyHEJjGQI/AAAAAAAAM2g/WL1Wf0ttQ_g/S220/14241_203415690468_528040468_4680426_6398299_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6365021392171983365.post-781860920879898117</id><published>2007-02-28T10:45:00.000+05:30</published><updated>2007-03-05T11:53:06.359+05:30</updated><title type='text'>My first post</title><content type='html'>Wouldn&#39;t you know it. I finally decide to create a blog and work on my first post.&lt;br /&gt;I&#39;ve finally decided to enter the blogosphere. I&#39;ve been a long-time reader and have wanted to start a blog for a while. The reason I&#39;ve waited is that I wanted to make sure I wasn&#39;t one of those &quot;one blog wonders.&quot; You know, the person that writes one blog entry and then you never hear from them again. Well, after thinking about ways to mitigate that, I&#39;ve decided that I have no way to guarantee that I won&#39;t be one of those, but I promise to try not to be.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/781860920879898117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6365021392171983365/posts/default/781860920879898117'/><link rel='alternate' type='text/html' href='http://dotnet-junk.blogspot.com/2007/03/my-first-post.html' title='My first post'/><author><name>sambhav</name><uri>http://www.blogger.com/profile/15727774094519899533</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://4.bp.blogspot.com/_vK873D5Ylp0/TKJyHEJjGQI/AAAAAAAAM2g/WL1Wf0ttQ_g/S220/14241_203415690468_528040468_4680426_6398299_n.jpg'/></author></entry></feed>