<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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/"
	>

<channel>
	<title>Code Sleuth's Blog &#187; Blog</title>
	<atom:link href="http://blog.codesleuth.co.uk/index.php/category/codesleuth/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.codesleuth.co.uk</link>
	<description>The .NET Pimp</description>
	<lastBuildDate>Wed, 24 Mar 2010 09:21:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Items for Sale (eBay)</title>
		<link>http://blog.codesleuth.co.uk/index.php/2009/11/30/items-for-sale-ebay/</link>
		<comments>http://blog.codesleuth.co.uk/index.php/2009/11/30/items-for-sale-ebay/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 22:14:59 +0000</pubDate>
		<dc:creator>Sleuth</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[ds]]></category>
		<category><![CDATA[eBay]]></category>
		<category><![CDATA[geforce]]></category>
		<category><![CDATA[leadtek]]></category>
		<category><![CDATA[nds]]></category>
		<category><![CDATA[nintendo]]></category>

		<guid isPermaLink="false">http://blog.codesleuth.co.uk/?p=224</guid>
		<description><![CDATA[It&#8217;s clearly shameless, but I&#8217;m doing it anyway. I posted some listing on eBay to generate a little cash to pay for some gifts for people at Christmas; take a look: Metroid Prime Hunters for Nintendo DS Tony Hawk&#8217;s Downhill Jam for Nintendo DS Leadtek WinFast PX7800 GT TDH Extreme PCI Express Graphics card I [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s clearly shameless, but I&#8217;m doing it anyway.</p>
<p>I posted some listing on eBay to generate a little cash to pay for some gifts for people at Christmas; take a look:</p>
<ul>
<li><a href="http://cgi.ebay.co.uk/METROID-Prime-Hunters-Nintendo-DS-DSi_W0QQitemZ150393525318QQcmdZViewItemQQptZUK_PC_Video_Games_Video_Games_JS?hash=item2304271446" target="_blank">Metroid Prime Hunters</a> for Nintendo DS</li>
<li><a href="http://cgi.ebay.co.uk/Tony-Hawks-DOWNHILL-JAM-Nintendo-DS-DSi_W0QQitemZ150393537538QQcmdZViewItemQQptZUK_PC_Video_Games_Video_Games_JS?hash=item2304274402" target="_blank">Tony Hawk&#8217;s Downhill</a> Jam for Nintendo DS</li>
<li><a href="http://cgi.ebay.co.uk/Leadtek-WinFast-PX7800-GT-TDH-EXTREME-PCI-Express-256mb_W0QQitemZ150393559824QQcmdZViewItemQQptZUK_Computing_Computer_Components_Graphics_Video_TV_Cards_TW?hash=item2304279b10" target="_blank">Leadtek WinFast PX7800 GT TDH Extreme</a> PCI Express Graphics card</li>
</ul>
<p>I feel dirty posting links to my eBay listing on my blog, but fuck it. Clicky please!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codesleuth.co.uk/index.php/2009/11/30/items-for-sale-ebay/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Weather FAIL</title>
		<link>http://blog.codesleuth.co.uk/index.php/2009/07/23/weather-fail/</link>
		<comments>http://blog.codesleuth.co.uk/index.php/2009/07/23/weather-fail/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 09:04:17 +0000</pubDate>
		<dc:creator>Sleuth</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[weather]]></category>

		<guid isPermaLink="false">http://blog.codesleuth.co.uk/?p=219</guid>
		<description><![CDATA[moar funny pictures Shameless plug to promote voting&#8230; click here. Credits to Sion Edwards for this find]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://cheezburger.com/view.aspx?ciid=4773922"><img src="http://images.cheezburger.com/completestore/2009/7/23/128928127055176924.jpg" alt="funny pictures" /></a><br />
moar <a href="http://icanhascheezburger.com">funny pictures</a></p>
<p>Shameless plug to promote voting&#8230; <a href="http://cheezburger.com/view.aspx?ciid=4773922">click here</a>.</p>
<p>Credits to <a title="Sion Edwards @ Twitter" href="http://twitter.com/sion_edwards" target="_blank">Sion Edwards</a> for this find <img src='http://blog.codesleuth.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codesleuth.co.uk/index.php/2009/07/23/weather-fail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Twitter Page</title>
		<link>http://blog.codesleuth.co.uk/index.php/2009/06/25/my-twitter-page/</link>
		<comments>http://blog.codesleuth.co.uk/index.php/2009/06/25/my-twitter-page/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 23:20:56 +0000</pubDate>
		<dc:creator>Sleuth</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://blog.codesleuth.co.uk/?p=210</guid>
		<description><![CDATA[So I joined the revolution into the new internet fad Twitter recently, and although I&#8217;m having trouble with some bugs (I think&#8230;) I&#8217;m having fun reading other people&#8217;s profiles. My page is http://twitter.com/Codesleuth &#8211; followers welcome]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter" title="Twitter Logo" src="http://assets0.twitter.com/images/twitter_logo_header.png" alt="" width="155" height="36" /></p>
<p>So I joined the revolution into the new internet fad <a href="http://twitter.com" target="_blank">Twitter</a> recently, and although I&#8217;m having trouble with some bugs (I think&#8230;) I&#8217;m having fun reading other people&#8217;s profiles.<br />
My page is <a href="http://twitter.com/Codesleuth">http://twitter.com/Codesleuth</a> &#8211; followers welcome <img src='http://blog.codesleuth.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codesleuth.co.uk/index.php/2009/06/25/my-twitter-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snoutbreak 09 Media Pandemic</title>
		<link>http://blog.codesleuth.co.uk/index.php/2009/04/29/snoutbreak-09-media-pandemic/</link>
		<comments>http://blog.codesleuth.co.uk/index.php/2009/04/29/snoutbreak-09-media-pandemic/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 12:48:22 +0000</pubDate>
		<dc:creator>Sleuth</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[swine flu]]></category>

		<guid isPermaLink="false">http://blog.codesleuth.co.uk/?p=202</guid>
		<description><![CDATA[You&#8217;ve probably caught a glimpse of the &#8216;pandemic&#8217; &#8216;outbreak&#8217; of swine influenza that is doing the rounds in the media at the moment. I thought I would contribute to the (excuse the pun) tripe that we&#8217;re all faced with and raise a point we&#8217;re all thinking: this is media hype. Look at any news network, [...]]]></description>
			<content:encoded><![CDATA[<p>You&#8217;ve probably caught a glimpse of the &#8216;pandemic&#8217; &#8216;outbreak&#8217; of swine influenza that is doing the rounds in the media at the moment.<br />
I thought I would contribute to the (excuse the pun) <em>tripe</em> that we&#8217;re all faced with and raise a point we&#8217;re all thinking: <strong>this is media hype</strong>.</p>
<p>Look at any news network, paper, or blog roll, and you will find comments that show there is no real need for this particular piece of <em>news</em> to be escalated this far.</p>
<p>I loved this Daily Show video, which summarises all that is stupid about the media:</p>
<table style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: #333333; background-color: #f5f5f5; height: 353px;" border="0" cellspacing="0" cellpadding="0" width="360">
<tbody>
<tr style="background-color:#e5e5e5" valign="middle">
<td style="padding:2px 1px 0px 5px;"><a style="color:#333; text-decoration:none; font-weight:bold;" href="http://www.thedailyshow.com/" target="_blank">The Daily Show With Jon Stewart</a></td>
<td style="padding:2px 5px 0px 5px; text-align:right; font-weight:bold;">M &#8211; Th 11p / 10c</td>
</tr>
<tr style="height: 14px;" valign="middle">
<td style="padding:2px 1px 0px 5px;" colspan="2"><a style="color:#333; text-decoration:none; font-weight:bold;" href="http://www.thedailyshow.com/video/index.jhtml?videoId=225152&amp;title=snoutbreak-09-the-last-100-days" target="_blank">Snoutbreak &#8217;09 &#8211; The Last 100 Days</a></td>
</tr>
<tr style="height: 14px; background-color: #353535;" valign="middle">
<td style="padding: 2px 5px 0px; overflow: hidden; width: 360px; text-align: right;" colspan="2"><a style="color:#96deff; text-decoration:none; font-weight:bold;" href="http://www.thedailyshow.com/" target="_blank">thedailyshow.com</a></td>
</tr>
<tr valign="middle">
<td style="padding:0px;" colspan="2"><object width="360" height="301" data="http://media.mtvnservices.com/mgid:cms:item:comedycentral.com:225152" type="application/x-shockwave-flash"><param name="bgcolor" value="#000000" /><param name="flashvars" value="autoPlay=false" /><param name="src" value="http://media.mtvnservices.com/mgid:cms:item:comedycentral.com:225152" /><param name="wmode" value="window" /><param name="allowfullscreen" value="true" /></object></td>
</tr>
<tr style="height: 18px;" valign="middle">
<td style="padding:0px;" colspan="2">
<table style="margin: 0px; text-align: center; height: 100%;" border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr valign="middle">
<td style="padding: 3px; width: 33%;"><a style="font:10px arial; color:#333; text-decoration:none;" href="http://www.thedailyshow.com/full-episodes/index.jhtml" target="_blank">Daily Show<br />
Full Episodes</a></td>
<td style="padding: 3px; width: 33%;"><a style="font:10px arial; color:#333; text-decoration:none;" href="http://www.thedailyshow.com/tagSearchResults.jhtml?term=Clusterf%23%40k+to+the+Poor+House" target="_blank">Economic Crisis</a></td>
<td style="padding: 3px; width: 33%;"><a style="font:10px arial; color:#333; text-decoration:none;" href="http://www.thedailyshow.com/tagSearchResults.jhtml?term=Barack+Obama" target="_blank">First 100 Days</a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p>If you&#8217;re looking for information, go to <a href="http://scienceblogs.com/effectmeasure/">Effect Measure</a>. Otherwise, laugh it off like the rest of us.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codesleuth.co.uk/index.php/2009/04/29/snoutbreak-09-media-pandemic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTC Touch Diamond ROM Update (Again)</title>
		<link>http://blog.codesleuth.co.uk/index.php/2009/04/06/htc-touch-diamond-rom-update-again/</link>
		<comments>http://blog.codesleuth.co.uk/index.php/2009/04/06/htc-touch-diamond-rom-update-again/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 10:09:03 +0000</pubDate>
		<dc:creator>Sleuth</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Technology News]]></category>
		<category><![CDATA[htc]]></category>
		<category><![CDATA[rom]]></category>
		<category><![CDATA[touch diamond]]></category>

		<guid isPermaLink="false">http://blog.codesleuth.co.uk/?p=194</guid>
		<description><![CDATA[The new update released by HTC for the Touch Diamond is available from their website, but unfortunately (as usual) Orange haven&#8217;t yet offered this to their current userbase of the Diamond branded to Orange. I&#8217;ve been hack-attacking the site with some random S/N codes and found the following versions of ROMs available: ROM: v2.03 Radio: [...]]]></description>
			<content:encoded><![CDATA[<p>The new update released by HTC for the Touch Diamond is available from their website, but unfortunately (as usual) Orange haven&#8217;t yet offered this to their current userbase of the Diamond branded to Orange.</p>
<p>I&#8217;ve been hack-attacking the site with some random S/N codes and found the following versions of ROMs available:</p>
<p>ROM: v2.03<br />
Radio: v52.51.25.26<br />
Released: <span id="ctl00_ContentPlaceHolder1_lblCreated">2009-02-27</span></p>
<ul>
<li><a href="http://dl.htc.com/downloadfiles/RomCode/%5CHTC%20Touch%20Diamond%5CMRII%5CRUU_Diamond_HTC_Europe_2.03.401.3_Radio_Signed_Diamond_52.51.25.26_1.09.25.23_Ship.exe">Europe</a></li>
<li><a href="http://dl.htc.com/downloadfiles/RomCode/%5CHTC%20Touch%20Diamond%5CMRII%5CRUU_Diamond_HTC_NLD_2.03.404.3_Radio_Signed_Diamond_52.51.25.26_1.09.25.23_Ship.exe">Dutch</a></li>
<li><a href="http://dl.htc.com/downloadfiles/RomCode/%5CHTC%20Touch%20Diamond%5CMR%5CRUU_Diamond_HTC_FRA_2.03.406.2_Radio_Signed_Diamond_52.51.25.26_1.09.25.23_Ship.exe">French</a></li>
</ul>
<p>If anyone is brave enough to test these versions and overwrite their Orange branded ROM, please let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codesleuth.co.uk/index.php/2009/04/06/htc-touch-diamond-rom-update-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting a Virtual Machine to Automatically Start</title>
		<link>http://blog.codesleuth.co.uk/index.php/2009/02/23/setting-a-virtual-machine-to-automatically-start/</link>
		<comments>http://blog.codesleuth.co.uk/index.php/2009/02/23/setting-a-virtual-machine-to-automatically-start/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 16:21:26 +0000</pubDate>
		<dc:creator>Sleuth</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[virtual server]]></category>

		<guid isPermaLink="false">http://blog.codesleuth.co.uk/?p=179</guid>
		<description><![CDATA[One of the problems I had with our development and testing virtual server at work was that automatic updates on the host machine (necessary to maintain security) would reboot the server and our virtual machines would no longer be running. Fair enough; you would expect that. And the solution is to obviously set them to [...]]]></description>
			<content:encoded><![CDATA[<p>One of the problems I had with our development and testing virtual server at work was that automatic updates on the host machine (necessary to maintain security) would reboot the server and our virtual machines would no longer be running.</p>
<p>Fair enough; you would expect that. And the solution is to obviously set them to auto start once virtual server has booted and the service is running. Here are the steps to get the whole thing working:</p>
<h3>1. Create a user account</h3>
<p>The best way to tackle this step is to create a local user account that is dedicated to automating virtual machines. This user account should not be given any permissions on the server (preferably not even &#8216;<a title="Allow log on locally: Security Configuration Editor; Security Services" href="http://technet.microsoft.com/en-us/library/cc756809.aspx" target="_blank">Allow log on locally</a>&#8216; rights but unfortunately when I tested this it failed to start the VMs) and should be given a strong password. See below:</p>
<div id="attachment_180" class="wp-caption aligncenter" style="width: 404px"><img class="size-full wp-image-180" title="create-user-account" src="http://blog.codesleuth.co.uk/wp-content/uploads/2009/02/01-create-user-account.jpg" alt="Create the Local User account" width="394" height="388" /><p class="wp-caption-text">Create the Local User account</p></div>
<h3>2. Apply permissions to virtual machines</h3>
<p>Once you have your user account created and ready, you must give it permissions to <strong>read</strong>, <strong>write</strong>, and <strong>modify </strong>your virtual machine&#8217;s .VHD and .VMC files. When I did this, I added these permissions to my root virtual machines folder to allow all virtual machines to inherit the permissions and therefore start automatically from this account. See below:</p>
<div id="attachment_181" class="wp-caption aligncenter" style="width: 386px"><img class="size-full wp-image-181" title="apply-permissions" src="http://blog.codesleuth.co.uk/wp-content/uploads/2009/02/02-apply-permissions.jpg" alt="Applying permissions to the virtual machines folder" width="376" height="482" /><p class="wp-caption-text">Applying permissions to the virtual machines folder</p></div>
<h3>3. Apply permissions to virtual network configuration files</h3>
<p>In order to access the virtual networks (and physical networks!) permissions need to be added to <strong>read</strong>, <strong>write</strong>, and <strong>modify </strong>the .VNC files that represent each network available to the VM. You can find these configuration files (by default) in &#8220;C:\Documents and Settings\All Users\Documents\Shared Virtual Networks&#8221;, then add the permissions as shown:</p>
<div id="attachment_182" class="wp-caption aligncenter" style="width: 383px"><img class="size-full wp-image-182" title="apply-vnc-permissions" src="http://blog.codesleuth.co.uk/wp-content/uploads/2009/02/03-apply-vnc-permissions.jpg" alt="Applying virtual network permissions to the Shared Networks folder" width="373" height="479" /><p class="wp-caption-text">Applying virtual network permissions to the Shared Networks folder</p></div>
<h3>4. Set the virtual machine to automatically start using the new user account</h3>
<p>Head on over to your Virtual Server administration page and select <strong>Edit Configuration</strong> for the virtual machine you wish to automate. If the virtual machine is currently running, you must ensure it is fully stopped before setting it to automatically start (the site will prevent you from changing any settings):</p>
<div id="attachment_185" class="wp-caption aligncenter" style="width: 522px"><img class="size-full wp-image-185" title="edit-configuration" src="http://blog.codesleuth.co.uk/wp-content/uploads/2009/02/04-edit-configuration.jpg" alt="Edit configuration for the virtual machine" width="512" height="181" /><p class="wp-caption-text">Edit configuration for the virtual machine</p></div>
<p>Next select the <strong>General properties</strong> link to go to the required section to add automation for the virtual machine:</p>
<div id="attachment_186" class="wp-caption aligncenter" style="width: 502px"><img class="size-full wp-image-186" title="general-properties" src="http://blog.codesleuth.co.uk/wp-content/uploads/2009/02/05-general-properties.jpg" alt="General properties for the virtual machine" width="492" height="390" /><p class="wp-caption-text">General properties for the virtual machine</p></div>
<p>You should be presented with the following page, which is pretty self-explanitory:</p>
<div id="attachment_187" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.codesleuth.co.uk/wp-content/uploads/2009/02/06-automatically-start.jpg"><img class="size-medium wp-image-187" title="automatically-start" src="http://blog.codesleuth.co.uk/wp-content/uploads/2009/02/06-automatically-start-300x101.jpg" alt="The General properties page for a virtual machine" width="300" height="101" /></a><p class="wp-caption-text">The General properties page for a virtual machine</p></div>
<p>Tick <strong>Run virtual machine under the following user account </strong>and enter the user account you created under <strong>User name</strong> and <strong>Password</strong> in the form of &lt;Server&gt;\&lt;Account&gt; (so in my example it is <strong>XAVIER\LocalVSUser</strong>) then select what conditions you wish the server to be started from, and what type of delay you would like to give before it starts. I usually give each VM a 360 second delay to allow adequate time for other services to finish loading before the Virtual Server takes over the system.</p>
<div id="attachment_188" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.codesleuth.co.uk/wp-content/uploads/2009/02/07-automatically-start-filled-in.jpg"><img class="size-medium wp-image-188" title="automatically-start-filled-in" src="http://blog.codesleuth.co.uk/wp-content/uploads/2009/02/07-automatically-start-filled-in-300x100.jpg" alt="The final step to automate virtual machines" width="300" height="100" /></a><p class="wp-caption-text">The final step to automate virtual machines</p></div>
<h3>Done!</h3>
<p>This should be all you need to set the virtual machine to automatically start. One thing to remember is that most problems that arise from being unable to run or use a virtual machine when set to automatically start come from permissions. Extra help is available from Microsoft here: <a title="Modifying general virtual machine properties" href="http://technet.microsoft.com/en-us/library/cc708357.aspx" target="_blank">Modifying general virtual machine properties</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codesleuth.co.uk/index.php/2009/02/23/setting-a-virtual-machine-to-automatically-start/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>House For Sale</title>
		<link>http://blog.codesleuth.co.uk/index.php/2009/02/16/house-for-sale/</link>
		<comments>http://blog.codesleuth.co.uk/index.php/2009/02/16/house-for-sale/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 08:20:22 +0000</pubDate>
		<dc:creator>Sleuth</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[greece]]></category>
		<category><![CDATA[house]]></category>
		<category><![CDATA[sale]]></category>

		<guid isPermaLink="false">http://blog.codesleuth.co.uk/?p=173</guid>
		<description><![CDATA[My parents, who currently live in Afandou (Rhodes, Greece), are now selling their house on the island in order to move back to England within the next 6 months. Have a look at their blog I hosted for them to get more details on the property. http://kendiane.codesleuth.co.uk/?p=19]]></description>
			<content:encoded><![CDATA[<p>My parents, who currently live in Afandou (<a title="Rhodes - Wikipedia" href="http://en.wikipedia.org/wiki/Rhodes" target="_blank">Rhodes</a>, Greece), are now selling their house on the island in order to move back to England within the next 6 months.</p>
<p>Have a look at their blog I hosted for them to get more details on the property.</p>
<p><a href="http://kendiane.codesleuth.co.uk/?p=19">http://kendiane.codesleuth.co.uk/?p=19</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codesleuth.co.uk/index.php/2009/02/16/house-for-sale/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTC Touch Diamond Orange ROM October 2008</title>
		<link>http://blog.codesleuth.co.uk/index.php/2008/12/17/htc-touch-diamond-orange-rom-october-2008/</link>
		<comments>http://blog.codesleuth.co.uk/index.php/2008/12/17/htc-touch-diamond-orange-rom-october-2008/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 16:58:03 +0000</pubDate>
		<dc:creator>Sleuth</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Technology News]]></category>
		<category><![CDATA[htc]]></category>
		<category><![CDATA[rom]]></category>
		<category><![CDATA[touch diamond]]></category>

		<guid isPermaLink="false">http://blog.codesleuth.co.uk/?p=169</guid>
		<description><![CDATA[Just a quick note to spread the word of the new HTC Touch Diamond ROM update for Orange branded phones, and that it can be obtained from this post. This new update promises to improve performance, battery life, and fix some bugs some of us may have noticed while using the device. A word of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://ant0ny.net/?p=11"><img class="aligncenter" title="HTC Touch Diamond Orange ROM Update" src="http://www.ant0ny.net/images/htctouchdiamondofficial.jpg" alt="" width="299" height="336" /></a></p>
<p>Just a quick note to spread the word of the new HTC Touch Diamond ROM update for Orange branded phones, and that it can be obtained from <a href="http://ant0ny.net/?p=11">this post</a>. This new update promises to improve performance, battery life, and fix some bugs some of us may have noticed while using the device.</p>
<p>A word of warning: <strong>completely backup your phone</strong> before applying this update as it will wipe it clean.</p>
<p>Direct link to download: <a href="http://www.ant0ny.net/RUU_Diamond_HTC_WWE_1.93.405.1_Radio_Signed_Diamond_52.29.25.12_1.00.25.05_Ship.exe">ROM Update Utility<br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codesleuth.co.uk/index.php/2008/12/17/htc-touch-diamond-orange-rom-october-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>T-SQL Race Conditions (and how to avoid them)</title>
		<link>http://blog.codesleuth.co.uk/index.php/2008/11/25/t-sql-race-conditions-and-how-to-avoid-them/</link>
		<comments>http://blog.codesleuth.co.uk/index.php/2008/11/25/t-sql-race-conditions-and-how-to-avoid-them/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 11:09:39 +0000</pubDate>
		<dc:creator>Sleuth</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[T-SQL]]></category>

		<guid isPermaLink="false">http://blog.codesleuth.co.uk/?p=164</guid>
		<description><![CDATA[I&#8217;ve been writing T-SQL stored procedures for many years now, and I never fully understood how the concurrency of multiple users truly affects the asynchronous operation of certain types of paradigms until now. Take the following T-SQL: SELECT @ID = ID FROM tblTable WHERE nvhSomeText = 'match' IF @ID IS NULL INSERT INTO tblTable (nvhSomeText, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been writing T-SQL stored procedures for many years now, and I never fully understood how the concurrency of multiple users truly affects the asynchronous operation of certain types of paradigms until now.<br />
Take the following T-SQL:</p>
<pre style="padding-left: 30px;">SELECT @ID = ID FROM tblTable WHERE nvhSomeText = 'match'</pre>
<pre style="padding-left: 30px;">IF @ID IS NULL
INSERT INTO tblTable (nvhSomeText, intSomeNumber) VALUES ('match', 10)
ELSE
UPDATE tblTable SET nvhSomeValue = 10 WHERE ID = @ID</pre>
<p>Imagine this section of T-SQL being part of a stored procedure that is executed an insanely large amount of times per second by multiple different users. There is the possibility that two or more executing instances of the stored procedure both find @ID to be NULL at the same time (a race condition), and then both add the same record which should not happen due to business logic or whatever. Of course, if you have checks on your tblTable this may prevent a catastrophe, but you still should prevent that check being necessary in the first place (at least in this case).<br />
The trick to solving the race condition here is to use table hints such as UPDCHECK or HOLDLOCK within a transaction as follows:</p>
<pre style="padding-left: 30px;"><strong><span style="text-decoration: underline;">BEGIN TRAN</span></strong></pre>
<pre style="padding-left: 30px;">SELECT @ID = ID FROM tblTable <strong><span style="text-decoration: underline;">WITH (UPDCHECK, HOLDLOCK)</span></strong> WHERE nvhSomeText = 'match'</pre>
<pre style="padding-left: 30px;">IF @ID IS NULL
INSERT INTO tblTable (nvhSomeText, intSomeNumber) VALUES ('match', 10)
ELSE
UPDATE tblTable SET nvhSomeValue = 10 WHERE ID = @ID</pre>
<pre style="padding-left: 30px;"><strong><span style="text-decoration: underline;">COMMIT</span></strong></pre>
<p>Placing the UPDLOCK within the SELECT statement forces a hold lock on the table specified before the WITH keyword. The official text for the use of UPDLOCK in the <a title="Table Hints (Transact-SQL)" href="http://msdn.microsoft.com/en-us/library/ms187373.aspx" target="_blank">SQL Server 2008 Documentation</a> is:</p>
<p style="padding-left: 30px;">Specifies that update locks are to be taken and held until the transaction  completes.</p>
<p>Placing a HOLDLOCK on a table simply specifies that the lock is to be held for only the table it was specified for, and that it should only exist for the current transaction (BEGIN TRAN -&gt; COMMIT block). Official text is:</p>
<p style="padding-left: 30px;">HOLDLOCK applies only to the table or view for which it is specified and only  for the duration of the transaction defined by the statement that it is used in.  HOLDLOCK cannot be used in a SELECT statement that includes the FOR BROWSE  option.</p>
<p>Please review <a href="http://weblogs.sqlteam.com/dang/archive/2007/10/28/Conditional-INSERTUPDATE-Race-Condition.aspx" target="_blank">the site here</a> for some extra information on the topic.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codesleuth.co.uk/index.php/2008/11/25/t-sql-race-conditions-and-how-to-avoid-them/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Boots Nail Polish Remover Pads Melt Keys</title>
		<link>http://blog.codesleuth.co.uk/index.php/2008/11/05/boots-nail-polish-remover-pads-melt-keys/</link>
		<comments>http://blog.codesleuth.co.uk/index.php/2008/11/05/boots-nail-polish-remover-pads-melt-keys/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 09:33:42 +0000</pubDate>
		<dc:creator>Sleuth</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[election]]></category>
		<category><![CDATA[nail polish]]></category>
		<category><![CDATA[obama]]></category>

		<guid isPermaLink="false">http://blog.codesleuth.co.uk/?p=159</guid>
		<description><![CDATA[Today I was planning to write a really long post about how I&#8217;m &#8216;oh so grateful&#8217; that Obama has won the presidency election, and that many years ago I was assured by a friend that there would never be a black American president within my lifetime. Instead, I wish to tell you about Boots Conditioning [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 210px"><img title="Boots Conditioning Nail Polish Remover Pads" src="http://boots.scene7.com/is/image/Boots/10021567?wid=200&amp;hei=250&amp;op_sharpen=1" alt="Boots Conditioning Nail Polish Remover Pads" width="200" height="250" /><p class="wp-caption-text">Boots Conditioning Nail Polish Remover Pads</p></div>
<p>Today I was planning to write a really long post about how I&#8217;m &#8216;oh so grateful&#8217; that Obama has won the presidency election, and that many years ago I was assured by a friend that there would never be a black American president within my lifetime.</p>
<p>Instead, I wish to tell you about <a href="http://www.boots.com/webapp/wcs/stores/servlet/ProductDisplay?storeId=10052&amp;productId=6559&amp;callingViewName=&amp;categoryId=4802&amp;langId=-1&amp;catalogId=11051">Boots Conditioning Nail Polish Remover Pads</a> which you can buy in store and from their website.</p>
<p>Yesterday I finally bought a pack of these from my local Boots store to remove the black nail polish left over from our Saturday Halloween party. While sat at my desk, I was frantically attempting to both type and continue to remove the nail polish from my nails. A few minutes into this task I noticed my fingerprints were now shown very clearly on my keyboard keys &#8211; melted actually into the key.</p>
<p>There. Interesting? No? OK, go read the <a href="http://news.bbc.co.uk/1/hi/in_depth/americas/2008/vote_usa_2008/default.stm" target="_blank">BBC News article on Obama&#8217;s win</a> then!</p>
<div class="wp-caption aligncenter" style="width: 236px"><a href="http://news.bbc.co.uk/1/hi/in_depth/americas/2008/vote_usa_2008/default.stm" target="_blank"><img title="Obama" src="http://newsimg.bbc.co.uk/media/images/45172000/jpg/_45172532_obama_getty_226.jpg" alt="Obama © Getty Images" width="226" height="170" /></a><p class="wp-caption-text">Obama © Getty Images</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.codesleuth.co.uk/index.php/2008/11/05/boots-nail-polish-remover-pads-melt-keys/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
