Geeks With Blogs

News hi and welcome my name is edo van vliet, i'm a freelance microsoft developer and overall geek (and proud of it :)
readme.txt a geek. now armed with a blog. December 2008 Entries
commadelimitedstringcollection makes nice csv
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. public static string ListToCsv<T>(List<... list) { CommaDelimitedStringCollection commaStr = new CommaDelimitedStringCollect... list.ForEach(delegate(T item) { commaStr.Add(item.ToString()); }); return commaStr.ToString(); } -edoode ......

Posted On Monday, December 15, 2008 4:54 PM

windows foldershare beta is now windows live sync
i've been using the foldershare 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 windows live sync. the upgrade went with unexpected smoothness. i installed the new client, and all my settings and shared folders were migrated. big kudo's to the team! -edoode ......

Posted On Friday, December 12, 2008 10:49 AM

sql issue with cast
was working with a quick query to find some data in a netxt field containing a comma-seperated list of countries, so i wrote: select id, countries from tablea where cast(countries as varchar) LIKE '%mozambique%' 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. my curiosity ......

Posted On Thursday, December 11, 2008 1:28 PM

Copyright © edoode | Powered by: