<feed xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US">
    <title>readme.txt</title>
    <link rel="self" type="application/xml" href="http://blog.swiftalpha.com/Atom.aspx" />
    <subtitle type="html">a geek. now armed with a blog.</subtitle>
    <id>http://blog.swiftalpha.com/Default.aspx</id>
    <author>
        <name>edoode</name>
        <uri>http://blog.swiftalpha.com/Default.aspx</uri>
    </author>
    <generator uri="http://subtextproject.com" version="Subtext Version 0.0.0.0">Subtext</generator>
    <updated>2008-12-15T16:55:51Z</updated>
    <entry>
        <title>commadelimitedstringcollection makes nice csv</title>
        <link rel="self" type="text/html" href="http://blog.swiftalpha.com/archive/2008/12/15/commadelimitedstringcollection-makes-nice-csv.aspx" />
        <id>http://blog.swiftalpha.com/archive/2008/12/15/commadelimitedstringcollection-makes-nice-csv.aspx</id>
        <published>2008-12-15T16:54:25-06:00:00</published>
        <updated>2008-12-15T16:55:51Z</updated>
        <content type="html">&lt;div style="color: rgb(51, 102, 255);"&gt;just posted this here as a reminder to myself or anyone else looking for a quick way to create a comma-seperated string from a list of things. &lt;/div&gt;
&lt;div style="color: rgb(51, 102, 255);"&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div style="font-family: Courier New; color: rgb(51, 102, 255);"&gt;public static string ListToCsv&amp;lt;T&amp;gt;(List&amp;lt;T&amp;gt; list)&lt;br /&gt;
{&lt;/div&gt;
&lt;div style="margin-left: 40px; font-family: Courier New; color: rgb(51, 102, 255);"&gt;CommaDelimitedStringCollection commaStr = new CommaDelimitedStringCollection();&lt;br /&gt;
list.ForEach(delegate(T item)&lt;br /&gt;
  {&lt;br /&gt;
&lt;div style="margin-left: 40px;"&gt;  commaStr.Add(item.ToString());&lt;br /&gt;
&lt;/div&gt;
   });&lt;br /&gt;
&lt;/div&gt;
&lt;div style="font-family: Courier New; color: rgb(51, 102, 255);"&gt;       return commaStr.ToString();&lt;br /&gt;
}&lt;/div&gt;
&lt;div&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;   -edoode&lt;/span&gt;&lt;/div&gt;&lt;img src="http://blog.swiftalpha.com/aggbug/127908.aspx" width="1" height="1" /&gt;</content>
    </entry>
    <entry>
        <title>windows foldershare beta is now windows live sync</title>
        <link rel="self" type="text/html" href="http://blog.swiftalpha.com/archive/2008/12/12/windows-foldershare-beta-is-now-windows-live-sync.aspx" />
        <id>http://blog.swiftalpha.com/archive/2008/12/12/windows-foldershare-beta-is-now-windows-live-sync.aspx</id>
        <published>2008-12-12T10:49:29-06:00:00</published>
        <updated>2008-12-12T10:52:37Z</updated>
        <content type="html">&lt;div&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;i've been using the &lt;/span&gt;&lt;a style="color: rgb(51, 102, 255);" href="https://www.foldershare.com/" target="_blank"&gt;foldershare &lt;/a&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;beta for some time now, and I like it! it keeps folders between my home pc and laptop syncronized without any fuss. just set it up and boom, instant sync. works behind nat, firewall etc. when I started up this day foldershare notified me that they have gone out of beta. the new name is now &lt;/span&gt;&lt;a style="color: rgb(51, 102, 255);" href="https://sync.live.com"&gt;windows live sync&lt;/a&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;. the upgrade went with unexpected smoothness. i installed the new client, and all my settings and shared folders were migrated. &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br style="color: rgb(51, 102, 255);" /&gt;
&lt;span style="color: rgb(51, 102, 255);"&gt;big kudo's to the team!&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br style="color: rgb(51, 102, 255);" /&gt;
&lt;span style="color: rgb(51, 102, 255);"&gt;  -edoode&lt;/span&gt;&lt;/div&gt;&lt;img src="http://blog.swiftalpha.com/aggbug/127835.aspx" width="1" height="1" /&gt;</content>
    </entry>
    <entry>
        <title>sql issue with cast</title>
        <link rel="self" type="text/html" href="http://blog.swiftalpha.com/archive/2008/12/11/sql-issue-with-cast.aspx" />
        <id>http://blog.swiftalpha.com/archive/2008/12/11/sql-issue-with-cast.aspx</id>
        <published>2008-12-11T13:28:58-06:00:00</published>
        <updated>2008-12-12T11:54:00Z</updated>
        <content type="html">&lt;span style="color: rgb(51, 102, 255);"&gt;was working with a quick query to find some data in a netxt field containing a comma-seperated list of countries, so i wrote:&lt;/span&gt;&lt;br style="color: rgb(51, 102, 255);" /&gt;
&lt;pre style="color: rgb(51, 102, 255);"&gt;select id, countries from tablea where cast(countries as varchar) LIKE '%mozambique%'&lt;/pre&gt;
&lt;span style="color: rgb(51, 102, 255);"&gt; this didn't return the number of rows i expected so i investigated further. it seems that using cast() in this way (without specifiying  a length) creates a varchar of default length. if a string in my ntext fields is longer than this length thestring is terminated. hmm, fun.&lt;/span&gt;&lt;br style="color: rgb(51, 102, 255);" /&gt;
&lt;span style="color: rgb(51, 102, 255);"&gt; my curiosity got the better of my so i checked to see what the default length actually &lt;/span&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;is.&lt;/span&gt;&lt;br style="color: rgb(51, 102, 255);" /&gt;
&lt;pre style="color: rgb(51, 102, 255);"&gt;select len(cast(countries as varchar)), datalength(cast(countries as varchar)), countries &lt;br /&gt;from tablea&lt;/pre&gt;
&lt;span style="color: rgb(51, 102, 255);"&gt; returns 30 for both len() and datalenght(). 30? why 30?? what an decidly odd default.&lt;br /&gt;
&lt;br /&gt;
  -edoode&lt;br /&gt;
&lt;br /&gt;
[update] thanks to my friends at &lt;a href="http://stackoverflow.com/questions/359257/why-is-the-default-length-for-varchar-30-when-using-cast"&gt;stackoverflow &lt;/a&gt;i now see the &lt;a href="http://msdn.microsoft.com/en-us/library/ms176089.aspx"&gt;official ms doc&lt;/a&gt; stating that the default is 30. I still wonder about the &lt;span style="text-decoration: underline;"&gt;why&lt;/span&gt; though...&lt;/span&gt;&lt;img src="http://blog.swiftalpha.com/aggbug/127813.aspx" width="1" height="1" /&gt;</content>
    </entry>
    <entry>
        <title>stack overflow</title>
        <link rel="self" type="text/html" href="http://blog.swiftalpha.com/archive/2008/11/24/stack-overflow.aspx" />
        <id>http://blog.swiftalpha.com/archive/2008/11/24/stack-overflow.aspx</id>
        <published>2008-11-24T14:45:12-06:00:00</published>
        <updated>2008-12-11T13:39:00Z</updated>
        <content type="html">&lt;div style="color: rgb(51, 102, 255);"&gt;i love &lt;a href="javascript:void(0);/*1227534012458*/"&gt;stack overflow&lt;/a&gt;. it's like experts exchange, only it works. i have posted several questions (see &lt;a href="javascript:void(0);/*1227534072785*/"&gt;here&lt;/a&gt;) and got answers on almost all &lt;img alt="" src="/Providers/BlogEntryEditor/FCKeditor/editor/images/smiley/msn/teeth_smile.gif" /&gt; happy happy joy joy. answering questions gains you reputation. more reputation means more functions, like up or downvoting. elegant. go try it with a question.&lt;/div&gt;
&lt;div style="color: rgb(51, 102, 255);"&gt;&lt;br /&gt;
  -edoode&lt;/div&gt;&lt;img src="http://blog.swiftalpha.com/aggbug/127341.aspx" width="1" height="1" /&gt;</content>
    </entry>
    <entry>
        <title>blogging is back</title>
        <link rel="self" type="text/html" href="http://blog.swiftalpha.com/archive/2008/11/24/blogging-is-back.aspx" />
        <id>http://blog.swiftalpha.com/archive/2008/11/24/blogging-is-back.aspx</id>
        <published>2008-11-24T14:35:31-06:00:00</published>
        <updated>2008-12-11T13:39:14Z</updated>
        <content type="html">&lt;span style="font-family: Verdana; color: rgb(51, 102, 255);"&gt;after a well deserved break from the blog stratosphere, i have returned. i'll try and post an entry weekly&lt;/span&gt;&lt;br style="font-family: Verdana; color: rgb(51, 102, 255);" /&gt;
&lt;br style="font-family: Verdana; color: rgb(51, 102, 255);" /&gt;
&lt;span style="font-family: Verdana; color: rgb(51, 102, 255);"&gt; stay tuned!&lt;/span&gt;&lt;br style="font-family: Verdana; color: rgb(51, 102, 255);" /&gt;
&lt;br style="font-family: Verdana; color: rgb(51, 102, 255);" /&gt;
&lt;span style="font-family: Verdana; color: rgb(51, 102, 255);"&gt;   -edoode&lt;/span&gt;&lt;img src="http://blog.swiftalpha.com/aggbug/127340.aspx" width="1" height="1" /&gt;</content>
    </entry>
</feed>