<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US"><title type="html">Word Entropy</title><subtitle type="html">Blog of Shital Shah (shitals) on .Net, learning machines, life at Microsoft, physics, mathematics and such stuff</subtitle><id>http://blogs.msdn.com/shitals/atom.xml</id><link rel="alternate" type="text/html" href="http://blogs.msdn.com/shitals/default.aspx" /><link rel="self" type="application/atom+xml" href="http://blogs.msdn.com/shitals/atom.xml" /><generator uri="http://communityserver.org" version="2.1.61025.2">Community Server</generator><updated>2008-03-07T14:15:00Z</updated><entry><title>The Best Culture Invariant Format for DateTime</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/shitals/archive/2009/11/08/9919341.aspx" /><id>http://blogs.msdn.com/shitals/archive/2009/11/08/9919341.aspx</id><published>2009-11-09T01:35:41Z</published><updated>2009-11-09T01:35:41Z</updated><content type="html">&lt;p&gt;If you are looking to display how to display DateTime as text without causing confusion to users in different countries then good choices is either &amp;quot;o&amp;quot; or &amp;quot;r&amp;quot;. The &amp;quot;o&amp;quot; format is in general more preferable as it also puts timezone offset.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 8pt"&gt;long&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 8pt"&gt; t = &lt;span style="color: #2b91af"&gt;DateTime&lt;/span&gt;.Now.Ticks;      &lt;br /&gt;&amp;#160;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 8pt"&gt;&lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine((&lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;DateTime&lt;/span&gt;(t)).ToString(&lt;span style="color: #a31515"&gt;&amp;quot;o&amp;quot;&lt;/span&gt;));      &lt;br /&gt;&amp;#160;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 8pt"&gt;&lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine((&lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;DateTime&lt;/span&gt;(t, &lt;span style="color: #2b91af"&gt;DateTimeKind&lt;/span&gt;.Local)).ToString(&lt;span style="color: #a31515"&gt;&amp;quot;o&amp;quot;&lt;/span&gt;));      &lt;br /&gt;&amp;#160;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 8pt"&gt;&lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine((&lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;DateTime&lt;/span&gt;(t, &lt;span style="color: #2b91af"&gt;DateTimeKind&lt;/span&gt;.Unspecified)).ToString(&lt;span style="color: #a31515"&gt;&amp;quot;o&amp;quot;&lt;/span&gt;));      &lt;br /&gt;&amp;#160;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 8pt"&gt;&lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine((&lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;DateTime&lt;/span&gt;(t, &lt;span style="color: #2b91af"&gt;DateTimeKind&lt;/span&gt;.Utc)).ToString(&lt;span style="color: #a31515"&gt;&amp;quot;o&amp;quot;&lt;/span&gt;));      &lt;p&gt;&lt;/p&gt;   &lt;/span&gt;    &lt;p&gt;&lt;/p&gt; &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Prints followings when actual date time is 2009-11-08T17:16:13.7791953 PST:   &lt;br /&gt;2009-11-08T17:16:13.7791953    &lt;br /&gt;2009-11-08T17:16:13.7791953-08:00    &lt;br /&gt;2009-11-08T17:16:13.7791953    &lt;br /&gt;2009-11-08T17:16:13.7791953Z&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;If you use &amp;quot;r&amp;quot; instead it would print followings:    &lt;br /&gt;Sun, 08 Nov 2009 17:26:02 GMT    &lt;br /&gt;Sun, 08 Nov 2009 17:26:02 GMT    &lt;br /&gt;Sun, 08 Nov 2009 17:26:02 GMT    &lt;br /&gt;Sun, 08 Nov 2009 17:26:02 GMT&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9919341" width="1" height="1"&gt;</content><author><name>shitals</name><uri>http://blogs.msdn.com/members/shitals.aspx</uri></author></entry><entry><title>Find Path of a Command Line Tool</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/shitals/archive/2009/10/29/9915008.aspx" /><id>http://blogs.msdn.com/shitals/archive/2009/10/29/9915008.aspx</id><published>2009-10-29T23:06:45Z</published><updated>2009-10-29T23:06:45Z</updated><content type="html">&lt;p&gt;Many times you work on different machines, execute a command line tool but often wonder where that tool is actually installed. One way to figure this out is to look at all environment PATH variables and search them manually in same order as Windows does. But you don’t have to because luckily there is a little known built-in command called WHERE that does that for you:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/shitals/WindowsLiveWriter/FindPathofaCommandLineTool_E24B/image_8.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/shitals/WindowsLiveWriter/FindPathofaCommandLineTool_E24B/image_thumb_3.png" width="644" height="92" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;This is similar to Unix commands like WHICH and WHEREIS.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9915008" width="1" height="1"&gt;</content><author><name>shitals</name><uri>http://blogs.msdn.com/members/shitals.aspx</uri></author></entry><entry><title>How to Right Align Address in Word Document</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/shitals/archive/2009/10/08/9905289.aspx" /><id>http://blogs.msdn.com/shitals/archive/2009/10/08/9905289.aspx</id><published>2009-10-09T08:33:23Z</published><updated>2009-10-09T08:33:23Z</updated><content type="html">&lt;p&gt;May be the silliest thing but how do you align address on the right side of a letter in Microsoft Word 2010? Select the text you need and then click on that little square in Ribbon bar:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/shitals/WindowsLiveWriter/HowtoRightAlignAddressinWordDocument_13D2F/image_2.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/shitals/WindowsLiveWriter/HowtoRightAlignAddressinWordDocument_13D2F/image_thumb.png" width="526" height="484" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Type amount of indentation you need. It’s typically 5” for letter size:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/shitals/WindowsLiveWriter/HowtoRightAlignAddressinWordDocument_13D2F/image_4.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/shitals/WindowsLiveWriter/HowtoRightAlignAddressinWordDocument_13D2F/image_thumb_1.png" width="644" height="473" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;And you have right aligned address!&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/shitals/WindowsLiveWriter/HowtoRightAlignAddressinWordDocument_13D2F/image_6.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/shitals/WindowsLiveWriter/HowtoRightAlignAddressinWordDocument_13D2F/image_thumb_2.png" width="644" height="303" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9905289" width="1" height="1"&gt;</content><author><name>shitals</name><uri>http://blogs.msdn.com/members/shitals.aspx</uri></author><category term="howto" scheme="http://blogs.msdn.com/shitals/archive/tags/howto/default.aspx" /><category term="tips" scheme="http://blogs.msdn.com/shitals/archive/tags/tips/default.aspx" /></entry><entry><title>Selecting Random Row From SQL Server Table</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/shitals/archive/2009/10/05/9903484.aspx" /><id>http://blogs.msdn.com/shitals/archive/2009/10/05/9903484.aspx</id><published>2009-10-06T03:08:25Z</published><updated>2009-10-06T03:08:25Z</updated><content type="html">&lt;p&gt;It is important to make sure your automated tests covers various real-world data combinations (for instance, some columns could be null or some rows could be duplicate). For perf testing you want to reduce effects of caching by not firing same SQL over and over. In these cases, ability to select a random row for your test could come in handy and here’s neat little trick to do it:&lt;/p&gt;  &lt;p&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;select&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt; &lt;span style="color: blue"&gt;top&lt;/span&gt; 1 &lt;span style="color: gray"&gt;*       &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;from&lt;/span&gt;&lt;span style="font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt; &lt;span style="color: blue"&gt;table       &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="line-height: 115%; font-family: &amp;#39;Courier New&amp;#39;; color: blue; font-size: 10pt; mso-no-proof: yes"&gt;order&lt;/span&gt;&lt;span style="line-height: 115%; font-family: &amp;#39;Courier New&amp;#39;; font-size: 10pt; mso-no-proof: yes"&gt; &lt;span style="color: blue"&gt;by&lt;/span&gt; &lt;span style="color: fuchsia"&gt;newid&lt;/span&gt;&lt;span style="color: gray"&gt;()&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9903484" width="1" height="1"&gt;</content><author><name>shitals</name><uri>http://blogs.msdn.com/members/shitals.aspx</uri></author><category term="sql" scheme="http://blogs.msdn.com/shitals/archive/tags/sql/default.aspx" /></entry><entry><title>What’s in a name?</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/shitals/archive/2009/08/07/9860825.aspx" /><id>http://blogs.msdn.com/shitals/archive/2009/08/07/9860825.aspx</id><published>2009-08-08T03:32:48Z</published><updated>2009-08-08T03:32:48Z</updated><content type="html">&lt;p&gt;When you want to store the name of a person a typical design starts out by creating two fields (in database or class):&lt;/p&gt;  &lt;p&gt;&lt;u&gt;&lt;strong&gt;&lt;font face="Courier New"&gt;Person&lt;/font&gt;&lt;/strong&gt;&lt;/u&gt;     &lt;br /&gt;&lt;font face="Courier New"&gt;First Name&lt;/font&gt;     &lt;br /&gt;&lt;font face="Courier New"&gt;Last Name&lt;/font&gt;     &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;Soon you realize lot of people have middle name, especially, when name change occurs after marriages. So you go and add one more field:&lt;/p&gt;  &lt;p&gt;&lt;u&gt;&lt;strong&gt;&lt;font face="Courier New"&gt;Person&lt;/font&gt;&lt;/strong&gt;&lt;/u&gt;     &lt;br /&gt;&lt;font face="Courier New"&gt;First Name     &lt;br /&gt;Middle Name&lt;/font&gt;&amp;#160; &lt;br /&gt;&lt;font face="Courier New"&gt;Last Name      &lt;br /&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;This is all good… until you encounter people in countries such as Spain and Cuba who have custom to have two last names. Both are equally important and both are required in any official document (including ones your website or app may print out). So you go in and add one more field while thinking this ought to do it once and for all:&lt;/p&gt;  &lt;p&gt;&lt;u&gt;&lt;strong&gt;&lt;font face="Courier New"&gt;Person&lt;/font&gt;&lt;/strong&gt;&lt;/u&gt;     &lt;br /&gt;&lt;font face="Courier New"&gt;First Name     &lt;br /&gt;Middle Name&lt;/font&gt;&amp;#160; &lt;br /&gt;&lt;font face="Courier New"&gt;Last Name      &lt;br /&gt;2nd Last Name&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;Not so fast…&amp;#160; Lot of people from Hong Kong and few other places in Asia actually carry two first names. One of these first names is traditional while other is typically a Western/Roman name. Both first names are important and often many people will know only Western/Roman first name of a person although official documents would only refer to traditional names. &lt;/p&gt;  &lt;p&gt;For example, consider name of Hong Kong’s Chief Secretary &lt;a href="http://en.wikipedia.org/wiki/Anson_Chan"&gt;Anson Chan Fang On Sang&lt;/a&gt;. Here Anson is English given name, On Sang is Chinese given name, Chan is husband’s surname and Fang is her own surname.&lt;/p&gt;  &lt;p&gt;So time to add few more field so we can store everybody’s names on planet without loss of semantics:&lt;/p&gt;  &lt;p&gt;&lt;u&gt;&lt;strong&gt;&lt;font face="Courier New"&gt;Person&lt;/font&gt;&lt;/strong&gt;&lt;/u&gt;     &lt;br /&gt;&lt;font face="Courier New"&gt;Traditional Given Name     &lt;br /&gt;&lt;font face="Courier New"&gt;English Given Name&lt;/font&gt;      &lt;br /&gt;Middle Name&lt;/font&gt;&amp;#160; &lt;br /&gt;&lt;font face="Courier New"&gt;Last Name      &lt;br /&gt;2nd Last Name&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;Ok… so are we done now? Well, almost! We are still missing at least two critical pieces of information: Salutation and Suffix. &lt;/p&gt;  &lt;p&gt;Example of common salutations are Dr, Mr, Mrs, Mr. While salutations are quickly falling out of fashion it might be still required, for example, if you are printing out an official letter to your customer and don’t want to make it look very casual. &lt;/p&gt;  &lt;p&gt;Example of common suffixes are Jr, Sr, III, IV etc. These are required in official/legal communication to avoid confusion with other family members of a person.&lt;/p&gt;  &lt;p&gt;&lt;u&gt;&lt;strong&gt;&lt;font face="Courier New"&gt;Person&lt;/font&gt;&lt;/strong&gt;&lt;/u&gt;     &lt;br /&gt;&lt;font face="Courier New"&gt;Salutation     &lt;br /&gt;Traditional Given Name      &lt;br /&gt;&lt;font face="Courier New"&gt;English Given Name&lt;/font&gt;      &lt;br /&gt;Middle Name&lt;/font&gt;&amp;#160; &lt;br /&gt;&lt;font face="Courier New"&gt;Last Name      &lt;br /&gt;2nd Last Name      &lt;br /&gt;Suffix&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;Now we have covered most of the globe. There are still two more nice-to-have fields if you want to make your customers happy: Phonetic Given Name and Phonetic Last Name. Remember the times when you call customer support and each time you have a guy struggling to say your name? These two fields would avoid those moments:&lt;/p&gt;  &lt;p&gt;&lt;u&gt;&lt;strong&gt;&lt;font face="Courier New"&gt;Person&lt;/font&gt;&lt;/strong&gt;&lt;/u&gt;     &lt;br /&gt;&lt;font face="Courier New"&gt;Salutation     &lt;br /&gt;Traditional Given Name      &lt;br /&gt;&lt;font face="Courier New"&gt;English Given Name&lt;/font&gt;      &lt;br /&gt;Middle Name&lt;/font&gt;&amp;#160; &lt;br /&gt;&lt;font face="Courier New"&gt;Last Name      &lt;br /&gt;2nd Last Name      &lt;br /&gt;Phonetic Given Name      &lt;br /&gt;Phonetic Last Name      &lt;br /&gt;Suffix&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;So there you have it. A structure that can store almost anybody’s name on planet while maintaining semantics of each component of a name. &lt;/p&gt;  &lt;p&gt;Most applications won’t need to go to this extreme because it’s OK to just have one first name and one last name that correctly identifies a person for its purpose even if it’s culturally incorrectly and technically incomplete. However if you are in a business where legal implications are high or if any information loss about your customer is not tolerable then it’s good to think about these possibilities.&lt;/p&gt;  &lt;p&gt;There are probably better solutions than giant structure like above just to store name of a person. Instead of having all these different fields you can simply have one free form field, say, Full Name and another field called Full Name Style which takes values indicating how different components of names are arranged:&lt;/p&gt;  &lt;p&gt;&lt;u&gt;&lt;strong&gt;&lt;font face="Courier New"&gt;Person&lt;/font&gt;&lt;/strong&gt;&lt;/u&gt;     &lt;br /&gt;&lt;font face="Courier New"&gt;Full Name     &lt;br /&gt;Full Name Style      &lt;br /&gt;&lt;/font&gt;&lt;/p&gt; This structure will make searches for specific components of a name little difficult but it would extend well as your application grows around the planet.&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9860825" width="1" height="1"&gt;</content><author><name>shitals</name><uri>http://blogs.msdn.com/members/shitals.aspx</uri></author></entry><entry><title>Solving Shared Notebook Sync Issue With OneNote 2010</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/shitals/archive/2009/08/07/9859969.aspx" /><id>http://blogs.msdn.com/shitals/archive/2009/08/07/9859969.aspx</id><published>2009-08-07T10:55:14Z</published><updated>2009-08-07T10:55:14Z</updated><content type="html">&lt;p&gt;Since about 3 years we used Groove to share calendar, notes and files within family – until I discovered a feature in OneNote called “Shared Notebooks”. The Shared Notebooks are just like any other OneNote notebooks with a difference that they get synced with other people! If someone added new note or modified a note you get it next time and vice a versa. On conflicts it created new pages and also you can take automated backups. This feature requires either file share or SharePoint. So I’ve now got my personal SharePoint website on Internet (which costs $10 per year) to host our shared OneNotes as well as&amp;#160; our shared calendar that gets synced in Outlook.&lt;/p&gt;  &lt;p&gt;Unfortunately in OneNote 2010 Technical Preview, the sync stopped working because OneNote for some reason does not popup a dialog to ask for a password to connect to SharePoint website on Internet anymore. Very troublesome. But here’s the work around I’ve found:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Right click on the Notebook, select Properties.&lt;/li&gt;    &lt;li&gt;Click on Change Location button.&lt;/li&gt;    &lt;li&gt;Type URL of your SharePoint website. This will popup password dialog.&lt;/li&gt;    &lt;li&gt;Cancel all dialogs and sync! It should work now.&lt;/li&gt; &lt;/ol&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9859969" width="1" height="1"&gt;</content><author><name>shitals</name><uri>http://blogs.msdn.com/members/shitals.aspx</uri></author><category term="issue fixes" scheme="http://blogs.msdn.com/shitals/archive/tags/issue+fixes/default.aspx" /><category term="collaboration" scheme="http://blogs.msdn.com/shitals/archive/tags/collaboration/default.aspx" /></entry><entry><title>Twitter Dishing Out 417 - Expectation Failed to .Net Clients</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/shitals/archive/2008/12/27/9254245.aspx" /><id>http://blogs.msdn.com/shitals/archive/2008/12/27/9254245.aspx</id><published>2008-12-27T12:20:00Z</published><updated>2008-12-27T12:20:00Z</updated><content type="html">&lt;p&gt;My little &lt;a href="http://www.codeplex.com/QckTwit" mce_href="http://www.codeplex.com/QckTwit"&gt;Twitter app&lt;/a&gt; was broke since past few days with error 417 - Expectation Failed. Infect most .Net apps calling Twitter APIs would be broken right now so I thought to write this up.&lt;/p&gt;
&lt;p&gt;This error is seemingly because Twitter servers have started rejecting Expect HTTP header with value "!00-Continue". I'm not sure if this was planned event or enough warnings were issued to developers but it would be guaranteed to drive you nuts.&lt;/p&gt;
&lt;p&gt;The error is because of default behavior in HttpWebRequest object that &lt;a href="http://haacked.com/archive/2004/05/15/http-web-request-expect-100-continue.aspx" mce_href="http://haacked.com/archive/2004/05/15/http-web-request-expect-100-continue.aspx"&gt;adds an HTTP header&lt;/a&gt; called Expect with value "100-Continue" to almost every outgoing POST request. This header basically tells the server that it's going to send all the data in&amp;nbsp;form in the next request instead of current request so that if server has redirects or auth then it doesn't have to resend it all over again. This is a good thing if your web form has lots of data or if you are on low latency network or most servers in the word have either redirects or auth when submitting forms&amp;nbsp;but a bad thing for server performance because now it gets hit twice for each request. I think performance might be the reason Twitter has turned off support for such two partter POST requests which unfortunately happens to be the default&amp;nbsp;for HttpWebRequest.&lt;/p&gt;
&lt;p&gt;In any case, it turns out that HttpWebRequest does all these thing under the hood so to get rid of this error you will need to set a static flag in ServicePointManager class like this:&lt;/p&gt;
&lt;code&gt;System.Net.ServicePointManager.Expect100Continue = false;&lt;/code&gt;
&lt;p&gt;Above statement will cause elimination of HTTP Expect header from your calls to Twitter and it will be happy again. &lt;br&gt;&lt;/p&gt;&lt;p&gt;I'm using &lt;a href="http://devblog.yedda.com/index.php/twitter-c-library/" mce_href="http://devblog.yedda.com/index.php/twitter-c-library/"&gt;Yedda's C# wrapper&lt;/a&gt; for Twitter APIs for &lt;a href="http://www.codeplex.com/QckTwit" mce_href="http://www.codeplex.com/QckTwit"&gt;QckTwit&lt;/a&gt; so above line goes in to start of ExecutePostCommand method. &lt;/p&gt;
&lt;p&gt;PS: If you are new to Twitter try out free simple lightweight app &lt;a href="http://www.codeplex.com/QckTwit" mce_href="http://www.codeplex.com/QckTwit"&gt;QckTwit&lt;/a&gt;. It just sits in your system tray, asks you about what you are doing at reminder interval you set, updates the Twitter and gets out of your way!&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9254245" width="1" height="1"&gt;</content><author><name>shitals</name><uri>http://blogs.msdn.com/members/shitals.aspx</uri></author><category term="my apps" scheme="http://blogs.msdn.com/shitals/archive/tags/my+apps/default.aspx" /><category term="issue fixes" scheme="http://blogs.msdn.com/shitals/archive/tags/issue+fixes/default.aspx" /></entry><entry><title>Space Elevator Conference</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/shitals/archive/2008/06/27/8663210.aspx" /><id>http://blogs.msdn.com/shitals/archive/2008/06/27/8663210.aspx</id><published>2008-06-28T07:10:03Z</published><updated>2008-06-28T07:10:03Z</updated><content type="html">&lt;p&gt;They do have &lt;a href="http://www.spaceelevatorconference.org/"&gt;Space Elevator Conference&lt;/a&gt;, complete with a &lt;a href="http://www.spaceelevatorblog.com/"&gt;blog&lt;/a&gt;! Looks like MSR is participating too (Microsoft employees gets discount - just $225 for a ride of, uhm..., armchair presentations,&amp;#160; for now).&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8663210" width="1" height="1"&gt;</content><author><name>shitals</name><uri>http://blogs.msdn.com/members/shitals.aspx</uri></author></entry><entry><title>Why would you still get "Strong name validation failed"?</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/shitals/archive/2008/05/01/8446582.aspx" /><id>http://blogs.msdn.com/shitals/archive/2008/05/01/8446582.aspx</id><published>2008-05-01T10:34:00Z</published><updated>2008-05-01T10:34:00Z</updated><content type="html">&lt;P&gt;There are not many web pages mentioning this so I would just post this so it comes up in search. Having personally spent 4 hours tracking this little thing down, I would want anyone else to go through same :). &lt;/P&gt;
&lt;P&gt;So... if you are using delay signing, you will need to run the following command so you can still debug from Visual Studio.Net: &lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size=2&gt;sn -Vr *,[public key token]&lt;/FONT&gt; &lt;/P&gt;
&lt;P&gt;Apparently if you are using Vista 64-bit it just won't work! You will still keep getting error something like, &lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size=2&gt;Could not load file or assembly '[Your file], Version=2.0.0.0, Culture=neutral, PublicKeyToken=[public ket token]' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)&lt;/FONT&gt; &lt;/P&gt;
&lt;P&gt;&lt;BR&gt;You can try viewing Fusion log, cleaning solution, rebooting machine, watch FileMon, run Process Explorer, rebuild everything 10 times... but it just won't work. Infect if you try removing signing and if your app is WPF 3.5 then you might even get even more weird errors like &lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size=2&gt;Could not create an instance of type 'StaticExtension'&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;The solution is hidden in a one liner in &lt;A href="http://weblogs.asp.net/dwahlin/archive/2007/08/06/fixing-a-vs-net-2008-asp-net-debugging-issue-on-vista-quot-strong-name-validation-failed-quot.aspx" mce_href="http://weblogs.asp.net/dwahlin/archive/2007/08/06/fixing-a-vs-net-2008-asp-net-debugging-issue-on-vista-quot-strong-name-validation-failed-quot.aspx"&gt;Dan Wahlin's blog&lt;/A&gt;: &lt;/P&gt;
&lt;P&gt;&lt;EM&gt;If you're running a 64-bit installation of Vista you'll need to use the sn.exe located at &lt;STRONG&gt;C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\x64\sn.exe&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;I'm pretty sure tons of developers adopting shiny 64-bit OS are/would run in to this. The root cause here is sn.exe designed for 32-bit doesn't error out instead it happily lets you know that "&lt;EM&gt;Verification entry added for assembly '*,*&lt;/EM&gt;'" successfully! It's not! So I also filed &lt;A href="https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=341426" mce_href="https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=341426"&gt;a bug in out Connect web site&lt;/A&gt;. Please vote to make 64-bit world a better place!&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8446582" width="1" height="1"&gt;</content><author><name>shitals</name><uri>http://blogs.msdn.com/members/shitals.aspx</uri></author></entry><entry><title>A quicker way to Twitter</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/shitals/archive/2008/04/22/8416241.aspx" /><id>http://blogs.msdn.com/shitals/archive/2008/04/22/8416241.aspx</id><published>2008-04-22T11:25:03Z</published><updated>2008-04-22T11:25:03Z</updated><content type="html">&lt;p&gt;Past weekend, I finally thought about giving Twitter a try and started looking for a client app that just allows me to very quickly update the status with a global keyboard shot cut. I'm not in to following anyone or replying anyone but wanted this very simple app with one text box. Apparently no such apps existed in Twitter Fan Wiki which actually turned out to be a good thing because I immediately started looking at Twitter's API and any C# wrappers. About 90 minutes later I'd my app ready. On the way I also added functionality to break the big updates in to multiple twits. This little (literally) app is now open sourced on CodePlex and ready for you to &lt;a href="http://www.codeplex.com/QckTwit/Release/ProjectReleases.aspx"&gt;try it out&lt;/a&gt;!&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/shitals/WindowsLiveWriter/AquickerwaytoTwitter_13E9/image_2.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="157" alt="image" src="http://blogs.msdn.com/blogfiles/shitals/WindowsLiveWriter/AquickerwaytoTwitter_13E9/image_thumb.png" width="244" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8416241" width="1" height="1"&gt;</content><author><name>shitals</name><uri>http://blogs.msdn.com/members/shitals.aspx</uri></author><category term="download" scheme="http://blogs.msdn.com/shitals/archive/tags/download/default.aspx" /><category term="MyApps" scheme="http://blogs.msdn.com/shitals/archive/tags/MyApps/default.aspx" /></entry><entry><title>Run As... is back in Vista!</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/shitals/archive/2008/04/22/8416222.aspx" /><id>http://blogs.msdn.com/shitals/archive/2008/04/22/8416222.aspx</id><published>2008-04-22T11:09:24Z</published><updated>2008-04-22T11:09:24Z</updated><content type="html">&lt;p&gt;Yes, this dearly missed shell context menu item is now available again in Windows Vista, thanks to Mark Russinovich. This little new utility is a new addition to Sysinternals toolset and can be &lt;a href="http://technet.microsoft.com/en-us/sysinternals/cc300361.aspx"&gt;downloaded here&lt;/a&gt;. Just run ShellRunAs /reg to register context menu for Shell &amp;quot;Run as different user&amp;quot;. This menu will then be available in Start menu items as well as Windows Explorer right clicks :).&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/shitals/WindowsLiveWriter/RunAs.isbackinVista_103C/image_2.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="149" alt="image" src="http://blogs.msdn.com/blogfiles/shitals/WindowsLiveWriter/RunAs.isbackinVista_103C/image_thumb.png" width="244" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8416222" width="1" height="1"&gt;</content><author><name>shitals</name><uri>http://blogs.msdn.com/members/shitals.aspx</uri></author><category term="download" scheme="http://blogs.msdn.com/shitals/archive/tags/download/default.aspx" /><category term="utilities" scheme="http://blogs.msdn.com/shitals/archive/tags/utilities/default.aspx" /></entry><entry><title>Phun With Physics Simulations</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/shitals/archive/2008/03/08/8116042.aspx" /><id>http://blogs.msdn.com/shitals/archive/2008/03/08/8116042.aspx</id><published>2008-03-09T06:30:03Z</published><updated>2008-03-09T06:30:03Z</updated><content type="html">This addictive program can easily keep you busy for rest of the weekend so be careful :). Phun is a physics simulator that even kids can use and its absolutely a delight. I watched the video and had to immediately download to give it a try. At first the interface might seem not as easy but after reading tutorial in main page and forums, you might be able to accomplish everything shown in video in less than 15 min of learning curve! Simply the easiest, powerful and most fun physics program I&amp;#8217;ve...(&lt;a href="http://blogs.msdn.com/shitals/archive/2008/03/08/8116042.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8116042" width="1" height="1"&gt;</content><author><name>shitals</name><uri>http://blogs.msdn.com/members/shitals.aspx</uri></author><category term="physics" scheme="http://blogs.msdn.com/shitals/archive/tags/physics/default.aspx" /><category term="download" scheme="http://blogs.msdn.com/shitals/archive/tags/download/default.aspx" /></entry><entry><title>Hello Word</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/shitals/archive/2008/03/07/hello-word.aspx" /><id>http://blogs.msdn.com/shitals/archive/2008/03/07/hello-word.aspx</id><published>2008-03-08T01:15:00Z</published><updated>2008-03-08T01:15:00Z</updated><content type="html">Hello, I'm Shital Shah . I currently work with NGIM team at Microsoft as SDE. I intend to use my MSDN blog for mostly technology/programming related stuff with occasional detours :). Let me put out standard big disclaimer: All views expressed in this blog are mine and not my employer or any teams at Microsoft. The information, data and opinions being presented here are neither validated nor endorsed by Microsoft and should not be considered as an official statement of the company. So let's get started....(&lt;a href="http://blogs.msdn.com/shitals/archive/2008/03/07/hello-word.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8106829" width="1" height="1"&gt;</content><author><name>shitals</name><uri>http://blogs.msdn.com/members/shitals.aspx</uri></author><category term="linq" scheme="http://blogs.msdn.com/shitals/archive/tags/linq/default.aspx" /><category term="sql" scheme="http://blogs.msdn.com/shitals/archive/tags/sql/default.aspx" /><category term="personal" scheme="http://blogs.msdn.com/shitals/archive/tags/personal/default.aspx" /></entry></feed>