<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Chinh Do</title>
	
	<link>http://www.chinhdo.com</link>
	<description>Chinh's not quite random thoughts on software development, .NET, gadgets, and other things.</description>
	<lastBuildDate>Fri, 01 Feb 2013 18:45:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/ChinhDo" /><feedburner:info uri="chinhdo" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>37.661647</geo:lat><geo:long>-77.526326</geo:long><feedburner:emailServiceId>ChinhDo</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2FChinhDo" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FChinhDo" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2FChinhDo" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/ChinhDo" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FChinhDo" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FChinhDo" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FChinhDo" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><item>
		<title>An Export of My .NET RSS Feeds</title>
		<link>http://feedproxy.google.com/~r/ChinhDo/~3/RdDxpwbKh_E/</link>
		<comments>http://www.chinhdo.com/20130125/an-export-of-my-net-rss-feeds/#comments</comments>
		<pubDate>Fri, 25 Jan 2013 15:31:49 +0000</pubDate>
		<dc:creator>Chinh Do</dc:creator>
				<category><![CDATA[Dotnet/.NET - C#]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.chinhdo.com/20130125/an-export-of-my-net-rss-feeds/</guid>
		<description><![CDATA[If you are looking for some more .NET bloggers to subscribe to, check out my .NET Programming RSS Feeds. It’s a exported bundle from my Google Reader. I’ve subscribed to these feeds over several years so I am sure many of the blogs are no longer active. http://www.google.com/reader/bundle/user%2F06213114670216208115%2Fbundle%2FProgramming%20-%20Dotnet]]></description>
				<content:encoded><![CDATA[<p>If you are looking for some more .NET bloggers to subscribe to, check out my .NET Programming RSS Feeds. It’s a exported bundle from my Google Reader. I’ve subscribed to these feeds over several years so I am sure many of the blogs are no longer active.</p>
<p><a title="http://www.google.com/reader/bundle/user%2F06213114670216208115%2Fbundle%2FProgramming%20-%20Dotnet" href="http://www.google.com/reader/bundle/user%2F06213114670216208115%2Fbundle%2FProgramming%20-%20Dotnet">http://www.google.com/reader/bundle/user%2F06213114670216208115%2Fbundle%2FProgramming%20-%20Dotnet</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ChinhDo?a=RdDxpwbKh_E:PSf3o8CBHUY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ChinhDo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChinhDo?a=RdDxpwbKh_E:PSf3o8CBHUY:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/ChinhDo?i=RdDxpwbKh_E:PSf3o8CBHUY:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ChinhDo/~4/RdDxpwbKh_E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.chinhdo.com/20130125/an-export-of-my-net-rss-feeds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.chinhdo.com/20130125/an-export-of-my-net-rss-feeds/</feedburner:origLink></item>
		<item>
		<title>Replacement straws for Thermos Bottles</title>
		<link>http://feedproxy.google.com/~r/ChinhDo/~3/HZXjQiWs9SE/</link>
		<comments>http://www.chinhdo.com/20120821/replacement-straws-for-thermos-bottles/#comments</comments>
		<pubDate>Tue, 21 Aug 2012 19:07:36 +0000</pubDate>
		<dc:creator>Chinh Do</dc:creator>
				<category><![CDATA[Kids]]></category>

		<guid isPermaLink="false">http://www.chinhdo.com/20120821/replacement-straws-for-thermos-bottles/</guid>
		<description><![CDATA[Sorry this has nothing to do with coding. But if you have kids and have the Thermos aluminum straw Bottles such as the Thermos Funtainer or Foogo Straw bottles, you can get replacement straws directly from Thermos for $1 a piece. My kids like to bite the straws and they get destroyed pretty quickly. If [...]]]></description>
				<content:encoded><![CDATA[<p>Sorry this has nothing to do with coding.</p>
<p>But if you have kids and have the Thermos aluminum straw Bottles such as the Thermos Funtainer or Foogo Straw bottles, you can get replacement straws directly from Thermos for $1 a piece. My kids like to bite the straws and they get destroyed pretty quickly. If you need just the top part of the straw, that would be $0.50.</p>
<p><img alt="Thermos Funtainer Bottle, Disney&#39;s Cars" src="http://ecx.images-amazon.com/images/I/418EEaCev8L._SL500_AA300_.jpg" /><a href="http://www.chinhdo.com/wp-content/uploads/2013/02/image.png"><img title="image" style="display: inline" alt="image" src="http://www.chinhdo.com/wp-content/uploads/2013/02/image_thumb.png" width="213" height="237" /></a></p>
<p>Apparently, people are reselling these straws on Ebay and other sites for $7-$10 a piece! So Thermos is limiting each order to 5 straws. I am putting this out there to hopefully direct people to the source.</p>
<p>Call Thermos directly at <strong>1-800-831-9242</strong> to order your replacement straws.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ChinhDo?a=HZXjQiWs9SE:ARijhkx9c9Y:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ChinhDo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChinhDo?a=HZXjQiWs9SE:ARijhkx9c9Y:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/ChinhDo?i=HZXjQiWs9SE:ARijhkx9c9Y:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ChinhDo/~4/HZXjQiWs9SE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.chinhdo.com/20120821/replacement-straws-for-thermos-bottles/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		<feedburner:origLink>http://www.chinhdo.com/20120821/replacement-straws-for-thermos-bottles/</feedburner:origLink></item>
		<item>
		<title>Removing Excess Whitespace from a String</title>
		<link>http://feedproxy.google.com/~r/ChinhDo/~3/LiNUcYoaEYA/</link>
		<comments>http://www.chinhdo.com/20120309/removing-excess-whitespace-from-a-string/#comments</comments>
		<pubDate>Sat, 10 Mar 2012 01:09:37 +0000</pubDate>
		<dc:creator>Chinh Do</dc:creator>
				<category><![CDATA[Dotnet/.NET - C#]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.chinhdo.com/20120309/removing-excess-whitespace-from-a-string/</guid>
		<description><![CDATA[I was looking for the most efficient way to remove excess white space from a string and wrote the following benchmark. Guess which algorithm is faster? const int iterations = 200000; const string expr = &#34; Hello world! Why are so many spaces? Testing One two three four five.&#34;; // Remove excess space using Regex [...]]]></description>
				<content:encoded><![CDATA[<p>I was looking for the most efficient way to remove excess white space from a string and wrote the following benchmark. Guess which algorithm is faster?</p>
<pre class="brush: csharp;">const int iterations = 200000;
const string expr = &quot; Hello    world! Why    are so    many spaces?  Testing One   two three    four    five.&quot;;

// Remove excess space using Regex
var doRegex = new Action(() =&gt;
{
    for (int i = 0; i &lt; iterations; i++)
    {
        var newStr = Regex.Replace(expr, @&quot;\s{2,}&quot;, &quot; &quot;);
    }
});


// Remove excess space using Split/Join
var doSplit = new Action(() =&gt;
{
    for (int i = 0; i &lt; iterations; i++)
    {
        var newStr = String.Join(&quot; &quot;, expr.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries));
    }
});</pre>
<pre class="brush: csharp;">var benchMark = new Func&lt;string, Action, long&gt;((name, a) =&gt;</pre>
<pre class="brush: csharp;">{
    var sw = Stopwatch.StartNew();
    a();
    sw.Stop();
    Console.WriteLine(name + &quot;: &quot; + sw.ElapsedMilliseconds);
    return sw.ElapsedMilliseconds;
});

// Warming up
Console.WriteLine(&quot;Warming up.&quot;);
doRegex();
doSplit();

// Run benchmark
long regexElapsed = benchMark(&quot;Regex&quot;, doRegex);
long splitElapsed = benchMark(&quot;Split&quot;, doSplit);</pre>
<p>On my PC, the Split method is about 7.5 times faster than Regex.</p>
<p><a href="http://www.chinhdo.com/wp-content/uploads/2012/03/image.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.chinhdo.com/wp-content/uploads/2012/03/image_thumb.png" width="521" height="313" /></a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ChinhDo?a=LiNUcYoaEYA:w56YS-kP2mk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ChinhDo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChinhDo?a=LiNUcYoaEYA:w56YS-kP2mk:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/ChinhDo?i=LiNUcYoaEYA:w56YS-kP2mk:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ChinhDo/~4/LiNUcYoaEYA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.chinhdo.com/20120309/removing-excess-whitespace-from-a-string/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.chinhdo.com/20120309/removing-excess-whitespace-from-a-string/</feedburner:origLink></item>
		<item>
		<title>Transactional File Manager Version 1.2 .1 Released</title>
		<link>http://feedproxy.google.com/~r/ChinhDo/~3/SgaYUuYrD-U/</link>
		<comments>http://www.chinhdo.com/20110806/transactional-file-manager-version-1-2-released/#comments</comments>
		<pubDate>Sat, 06 Aug 2011 21:04:14 +0000</pubDate>
		<dc:creator>Chinh Do</dc:creator>
				<category><![CDATA[Dotnet/.NET - C#]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.chinhdo.com/20110806/transactional-file-manager-version-1-2-released/</guid>
		<description><![CDATA[Version 1.2 of Transactional File Manager is now available on CodePlex. Here’s the release notes: Release Notes This is a minor bug-fix/minor refactor release. Fixes: Copy now uses the overwrite parameter correctly. Fixes crashing problem on some machines due to use of GetsequentialGuid. CreateDirectory now supports rolling back nested directories. RollbackFile Rollback() may throw exception [...]]]></description>
				<content:encoded><![CDATA[<p>Version 1.2 of Transactional File Manager is <a href="http://transactionalfilemgr.codeplex.com/releases/view/46998">now available on CodePlex</a>.</p>
<p>Here’s the release notes:</p>
<h5>Release Notes</h5>
<p>This is a minor bug-fix/minor refactor release.   <br /><b>Fixes:</b></p>
<ul>
<li>Copy now uses the overwrite parameter correctly. </li>
<li>Fixes crashing problem on some machines due to use of GetsequentialGuid. </li>
<li>CreateDirectory now supports rolling back nested directories. </li>
<li>RollbackFile Rollback() may throw exception when original directory has been deleted. </li>
<li>Security issue when writing to event logs.</li>
</ul>
<p><b>Enhancements:</b>
<ul>
<li>Upgrade solution/project files to Visual Studio 2010 </li>
<li>Use NUnit instead of VSTS framework </li>
<li>Changes to support Visual Studio Express</li>
</ul>
<p>Thanks to karbuke and dorong for their contributions.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ChinhDo?a=SgaYUuYrD-U:UJuK6qgTSOw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ChinhDo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChinhDo?a=SgaYUuYrD-U:UJuK6qgTSOw:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/ChinhDo?i=SgaYUuYrD-U:UJuK6qgTSOw:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ChinhDo/~4/SgaYUuYrD-U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.chinhdo.com/20110806/transactional-file-manager-version-1-2-released/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.chinhdo.com/20110806/transactional-file-manager-version-1-2-released/</feedburner:origLink></item>
		<item>
		<title>Managing, Tagging, Organizing Videos with Picasa</title>
		<link>http://feedproxy.google.com/~r/ChinhDo/~3/N7Kja1mJxWo/</link>
		<comments>http://www.chinhdo.com/20110415/managing-tagging-organizing-videos-with-picasa/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 23:32:00 +0000</pubDate>
		<dc:creator>Chinh Do</dc:creator>
				<category><![CDATA[Photography and Video]]></category>

		<guid isPermaLink="false">http://www.chinhdo.com/?p=495</guid>
		<description><![CDATA[I enjoy making taking and making short videos. My kids are usually featured in the videos in one way or another. Last year we went on a month-long vacation to Vietnam and I recorded a huge number of raw videos. With so many raw takes to work with, using Windows Explorer and browsing around without [...]]]></description>
				<content:encoded><![CDATA[<p>I enjoy making taking and making short videos. My kids are usually featured in the videos in one way or another. Last year we went on a month-long vacation to Vietnam and I recorded a huge number of raw videos. With so many raw takes to work with, using Windows Explorer and browsing around without some system of tagging, keyword searching, etc. becomes extremely tedious and unmanageable.</p>
<p>So I started to look for a way to manage/categorize all of these raw videos and I think I’ve found a pretty good and free solution: Picasa (from Google).</p>
<p>The current version of Picasa for Windows (version 3.8) allows you to specify titles for images and videos, as well as assigning various tags to them. The user interface is very user-friendly. And the actual searches are typical Google-lighting-fast.</p>
<p><a href="http://www.chinhdo.com/wp-content/uploads/2011/04/image3.png"><img style="display: inline" title="Picasa, video manager" alt="Using Picasa as a video manager" src="http://www.chinhdo.com/wp-content/uploads/2011/04/image_thumb3.png" width="640" height="461" /></a></p>
<p>What I do is I go through each raw video take, give it a title and assign some tags. Then later I am able to very quickly search for videos. For example, if I need a take involving a dolly pan to the right, I just type “dolly pan” into Picasa and instantly the takes with those keywords come up.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ChinhDo?a=N7Kja1mJxWo:0YMqtzmu7eQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ChinhDo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChinhDo?a=N7Kja1mJxWo:0YMqtzmu7eQ:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/ChinhDo?i=N7Kja1mJxWo:0YMqtzmu7eQ:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ChinhDo/~4/N7Kja1mJxWo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.chinhdo.com/20110415/managing-tagging-organizing-videos-with-picasa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.chinhdo.com/20110415/managing-tagging-organizing-videos-with-picasa/</feedburner:origLink></item>
		<item>
		<title>WBR HTML Tag</title>
		<link>http://feedproxy.google.com/~r/ChinhDo/~3/ViA-v5RqQEQ/</link>
		<comments>http://www.chinhdo.com/20110113/wbr-html-tag/#comments</comments>
		<pubDate>Fri, 14 Jan 2011 02:02:46 +0000</pubDate>
		<dc:creator>Chinh Do</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.chinhdo.com/20110113/wbr-html-tag/</guid>
		<description><![CDATA[The little known WBR tag is great for formatting HTML tables. Add it to specific places in your table cell values to give the browser the option to add a line break there. This is very useful when displaying tables with long strings that would otherwise cause horizontal scrolling. Here’s a sample table, displaying some [...]]]></description>
				<content:encoded><![CDATA[<p>The little known WBR tag is great for formatting HTML tables. Add it to specific places in your table cell values to give the browser the option to add a line break there. This is very useful when displaying tables with long strings that would otherwise cause horizontal scrolling.</p>
<p>Here’s a sample table, displaying some info. Since the values in the tables do not have spaces or tabs, the browser is forced to display the values on one line:</p>
<table cellspacing="2" cellpadding="2" width="100" style="border: black 1px solid">
<tbody>
<tr>
<td valign="top" style="border: black 1px solid">Key</td>
<td valign="top" style="border: black 1px solid">Value</td>
</tr>
<tr>
<td valign="top" style="border: black 1px solid">ChinhDo.TestApp.TestClass.ExampleKey1</td>
<td valign="top" style="border: black 1px solid">this.is.an.example.of.a.very.long.string</td>
</tr>
</tbody>
</table>
<p>Here&#8217;s the same table, with &lt;wbr/&gt; tags inserted where periods are:</p>
<table border="1" cellspacing="2" cellpadding="2" width="100" style="border: black 1px solid">
<tbody>
<tr>
<td valign="top" style="border: black 1px solid">Key</td>
<td valign="top" style="border: black 1px solid">Value</td>
</tr>
<tr>
<td valign="top" style="border: black 1px solid">ChinhDo.<wbr></wbr>TestApp.<wbr></wbr>TestClass.<wbr></wbr>ExampleKey1</td>
<td valign="top" style="border: black 1px solid">this.<wbr></wbr>is.<wbr></wbr>an.<wbr></wbr>example.<wbr></wbr>of.<wbr></wbr>a.<wbr></wbr>very.<wbr></wbr>long.<wbr></wbr>string</td>
</tr>
</tbody>
</table>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ChinhDo?a=ViA-v5RqQEQ:-up_wUAellI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ChinhDo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChinhDo?a=ViA-v5RqQEQ:-up_wUAellI:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/ChinhDo?i=ViA-v5RqQEQ:-up_wUAellI:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ChinhDo/~4/ViA-v5RqQEQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.chinhdo.com/20110113/wbr-html-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.chinhdo.com/20110113/wbr-html-tag/</feedburner:origLink></item>
		<item>
		<title>Getting the Starting Day of the Week for Any Date</title>
		<link>http://feedproxy.google.com/~r/ChinhDo/~3/w9HgNO-9PGw/</link>
		<comments>http://www.chinhdo.com/20100907/getting-the-starting-day-of-the-week-for-any-date/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 23:33:00 +0000</pubDate>
		<dc:creator>Chinh Do</dc:creator>
				<category><![CDATA[Dotnet/.NET - C#]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.chinhdo.com/20100907/getting-the-starting-day-of-the-week-for-any-date/</guid>
		<description><![CDATA[From my code snippets, here’s a function that will return the starting day of the week for any date: /// &#60;summary&#62; /// Gets the start of the week that contains the specified date. /// &#60;/summary&#62; /// &#60;param name=&#34;date&#34;&#62;The date.&#60;/param&#62; /// &#60;param name=&#34;weekStartsOn&#34;&#62;The day that each week starts on.&#60;/param&#62; /// &#60;returns&#62;The start date of the week.&#60;/returns&#62; [...]]]></description>
				<content:encoded><![CDATA[<p>From my code snippets, here’s a function that will return the starting day of the week for any date:</p>
<pre class="brush: csharp;">
/// &lt;summary&gt;
/// Gets the start of the week that contains the specified date.
/// &lt;/summary&gt;
/// &lt;param name=&quot;date&quot;&gt;The date.&lt;/param&gt;
/// &lt;param name=&quot;weekStartsOn&quot;&gt;The day that each week starts on.&lt;/param&gt;
/// &lt;returns&gt;The start date of the week.&lt;/returns&gt;
public static DateTime GetStartOfWeek(DateTime date, DayOfWeek weekStartsOn)
{
    int days = date.DayOfWeek - weekStartsOn;
    DateTime startOfWeek = days&gt;=0 ? date.AddDays(-days) : date.AddDays(-7 - days);
    return startOfWeek;
}
</pre>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ChinhDo?a=w9HgNO-9PGw:oWgUcZflvAs:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ChinhDo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChinhDo?a=w9HgNO-9PGw:oWgUcZflvAs:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/ChinhDo?i=w9HgNO-9PGw:oWgUcZflvAs:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ChinhDo/~4/w9HgNO-9PGw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.chinhdo.com/20100907/getting-the-starting-day-of-the-week-for-any-date/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.chinhdo.com/20100907/getting-the-starting-day-of-the-week-for-any-date/</feedburner:origLink></item>
		<item>
		<title>World Cup 2010 In Glorious 3D</title>
		<link>http://feedproxy.google.com/~r/ChinhDo/~3/lC3rwvb9nd8/</link>
		<comments>http://www.chinhdo.com/20100611/world-cup-2010-in-glorious-3d/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 00:19:00 +0000</pubDate>
		<dc:creator>Chinh Do</dc:creator>
				<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[HDTV]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.chinhdo.com/20100611/world-cup-2010-in-glorious-3d/</guid>
		<description><![CDATA[3DTV is here! This message shows up on my DirecTV receiver/DVR yesterday: Wow! 25 World cup soccer games in 3D! Wait a minute, I think I see some dead pixels on my current HDTV.]]></description>
				<content:encoded><![CDATA[<p>3DTV is here! This message shows up on my DirecTV receiver/DVR yesterday:</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Your receiver is now 3D ready! With a 3D television and 3D glasses, you can view up to 25 matches of the 2010 FIFA World Coup tournament in spectacular 3D on ESPN 3D Channel 106." border="0" alt="Your receiver is now 3D ready! With a 3D television and 3D glasses, you can view up to 25 matches of the 2010 FIFA World Coup tournament in spectacular 3D on ESPN 3D Channel 106." src="http://www.chinhdo.com/wp-content/uploads/2010/06/image1.png" width="479" height="364" /> </p>
<p>Wow! 25 World cup soccer games in 3D! Wait a minute, I think I see some dead pixels on my current HDTV.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ChinhDo?a=lC3rwvb9nd8:xco9OmW_C0M:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ChinhDo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChinhDo?a=lC3rwvb9nd8:xco9OmW_C0M:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/ChinhDo?i=lC3rwvb9nd8:xco9OmW_C0M:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ChinhDo/~4/lC3rwvb9nd8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.chinhdo.com/20100611/world-cup-2010-in-glorious-3d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.chinhdo.com/20100611/world-cup-2010-in-glorious-3d/</feedburner:origLink></item>
		<item>
		<title>Transactional File Manager Is Now On CodePlex</title>
		<link>http://feedproxy.google.com/~r/ChinhDo/~3/uUr523WpX28/</link>
		<comments>http://www.chinhdo.com/20100608/transactional-file-manager-is-now-on-codeplex/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 22:38:00 +0000</pubDate>
		<dc:creator>Chinh Do</dc:creator>
				<category><![CDATA[Dotnet/.NET - C#]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.chinhdo.com/20100608/transactional-file-manager-is-now-on-codeplex/</guid>
		<description><![CDATA[It’s my first open source project! I’ve gone open source with my Transactional File Manager. Check out the CodePlex link here. Use any file system as a transactional file system! Transactional File Manager is a .NET API that supports including file system operations such as file copy, move, delete in a transaction. It&#8217;s an implementation [...]]]></description>
				<content:encoded><![CDATA[<p>It’s my first open source project! I’ve gone open source with my Transactional File Manager. Check out the CodePlex link <a href="http://transactionalfilemgr.codeplex.com/" target="_blank">here</a>.</p>
<p>Use any file system as a transactional file system! Transactional File Manager is a .NET API that supports including file system operations such as file copy, move, delete in a transaction. It&#8217;s an implementation of System.Transaction.IEnlistmentNotification (works with System.Transactions.TransactionScope).</p>
<p><a href="http://transactionalfilemgr.codeplex.com/"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.chinhdo.com/wp-content/uploads/2010/06/image_thumb.png" width="505" height="234" /></a></p>
<p>More on Transactional File Manager in my original blog <a href="http://www.chinhdo.com/20080825/transactional-file-manager/" target="_blank">post</a> on it. If you are interested in contributing to the project, let me know.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ChinhDo?a=uUr523WpX28:pCIcUHTOOeE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ChinhDo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChinhDo?a=uUr523WpX28:pCIcUHTOOeE:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/ChinhDo?i=uUr523WpX28:pCIcUHTOOeE:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ChinhDo/~4/uUr523WpX28" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.chinhdo.com/20100608/transactional-file-manager-is-now-on-codeplex/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.chinhdo.com/20100608/transactional-file-manager-is-now-on-codeplex/</feedburner:origLink></item>
		<item>
		<title>MSMQ Installation on Windows Server 2008 Fail with 0×80070643</title>
		<link>http://feedproxy.google.com/~r/ChinhDo/~3/YhzA4f4mvUM/</link>
		<comments>http://www.chinhdo.com/20100510/msmq-installation-on-windows-server-2008-fail-with-0x80070643/#comments</comments>
		<pubDate>Tue, 11 May 2010 01:49:00 +0000</pubDate>
		<dc:creator>Chinh Do</dc:creator>
				<category><![CDATA[Dotnet/.NET - C#]]></category>
		<category><![CDATA[MSMQ]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.chinhdo.com/20100515/msmq-installation-on-windows-server-2008-fail-with-0x80070643/</guid>
		<description><![CDATA[If you get one of these errors starting MSMQ Server or installing MSMQ on Windows (Server 2008), this article describes a potential solution: You cannot start MSMQ Service with the following entry in the Application Event Log: The Message Queuing service cannot start. The internal private queue &#8216;admin_queue$&#8217; cannot be initialized. If the problem persists, [...]]]></description>
				<content:encoded><![CDATA[<p>If you get one of these errors starting MSMQ Server or installing MSMQ on Windows (Server 2008), this article describes a potential solution:</p>
<ul>
<li>You cannot start MSMQ Service with the following entry in the Application Event Log: The Message Queuing service cannot start. The internal private queue &#8216;admin_queue$&#8217; cannot be initialized. If the problem persists, reinstall Message Queuing. Error 0xc00e0001.</li>
<li>You cannot install MSMQ with the following error: Attempt to install Message Queuing Server failed with error code 0&#215;80070643. Fatal error during installation. The following features were not installed: Message Queuing Services/Message Queuing Server.
<p><a href="http://www.chinhdo.com/wp-content/uploads/2010/05/2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="MSMQ Installation Result" border="0" alt="MSMQ Installation Result" src="http://www.chinhdo.com/wp-content/uploads/2010/05/2_thumb.png" width="575" height="434" /></a> </li>
</ul>
<p>&#160;</p>
<p>For me, the solution was to delete the Registry key KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ, then try the installation again.</p>
<h4>See also:</h4>
<ul>
<li><a href="http://blogs.msdn.com/johnbreakwell/archive/2009/06/04/msmq-won-t-install-on-windows-2008-with-a-fatal-error-0x80070643.aspx">MSMQ won&#8217;t install on Windows 2008 with a Fatal Error (0&#215;80070643)</a></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ChinhDo?a=YhzA4f4mvUM:jCKcbs1DUgU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ChinhDo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ChinhDo?a=YhzA4f4mvUM:jCKcbs1DUgU:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/ChinhDo?i=YhzA4f4mvUM:jCKcbs1DUgU:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ChinhDo/~4/YhzA4f4mvUM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.chinhdo.com/20100510/msmq-installation-on-windows-server-2008-fail-with-0x80070643/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		<feedburner:origLink>http://www.chinhdo.com/20100510/msmq-installation-on-windows-server-2008-fail-with-0x80070643/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 0.197 seconds. --><!-- Cached page generated by WP-Super-Cache on 2013-06-19 20:47:01 -->
