<?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>Tardis Technologies</title>
	<atom:link href="http://www.tardistech.com/wp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tardistech.com/wp</link>
	<description>Advanced Software for Microsoft Windows and the Web</description>
	<lastBuildDate>Thu, 08 Mar 2012 23:52:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Want to add color to PowerShell code in your docs?</title>
		<link>http://www.tardistech.com/wp/2012/03/08/want-to-add-color-to-powershell-code-in-your-docs/</link>
		<comments>http://www.tardistech.com/wp/2012/03/08/want-to-add-color-to-powershell-code-in-your-docs/#comments</comments>
		<pubDate>Thu, 08 Mar 2012 23:52:40 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://www.tardistech.com/wp/?p=248</guid>
		<description><![CDATA[I was writing a Word document and wanted syntax highlighting for my PowerShell scripts.  It turns out that ISE (Integrated Scripting Environment) has an extension for copying text with color (and for copying text with color as HTML).  Just do the following: Install the PowerShellPack.msi file from here. Open ISE and your .ps1 PowerShell file. [...]]]></description>
			<content:encoded><![CDATA[<p>I was writing a Word document and wanted syntax highlighting for my PowerShell scripts.  It turns out that ISE (Integrated Scripting Environment) has an extension for copying text with color (and for copying text with color as HTML).  Just do the following:</p>
<ol>
<li>Install the PowerShellPack.msi file from <a title="PowerShellPack" href="http://code.msdn.microsoft.com/PowerShellPack/Release/ProjectReleases.aspx?ReleaseId=3341" target="_blank">here</a>.</li>
<li>Open ISE and your .ps1 PowerShell file.</li>
<li>In the bottom third of the window, enter the following PowerShell command:</li>
<ol>
<li><strong>Import-Module PowerShellPack</strong></li>
</ol>
<li>You will now see an Add-ons menu in ISE; it may have already been there.</li>
<li>Highlight the PowerShell code you wish to copy and choose Add-ons, IsePack, Edit, Copy-Colored from the menu.</li>
<li>Now switch to Word and paste in your PowerShell code with full syntax highlighting.</li>
<li>You can also use Copy-ColoredAsHtml to put syntax-highlighted HTML into your clipboard.</li>
<li>Note that Ctrl-Shift-C will perform the Copy-Colored function and Ctrl-Alt-Shift-C will perform the Copy-ColoredAsHtml function.</li>
</ol>
<p>This information came from &#8220;<a title="TechNet Wiki Article" href="http://social.technet.microsoft.com/wiki/contents/articles/256.how-to-insert-formatted-windows-powershell-code-on-technet-wiki-en-us.aspx" target="_blank">How to Insert Formatted Windows PowerShell Code on TechNet Wiki (en-US)</a>&#8220;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tardistech.com/wp/2012/03/08/want-to-add-color-to-powershell-code-in-your-docs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>File Hashing Is Built Into Windows</title>
		<link>http://www.tardistech.com/wp/2012/01/13/file-hashing-is-built-into-windows/</link>
		<comments>http://www.tardistech.com/wp/2012/01/13/file-hashing-is-built-into-windows/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 15:21:35 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.tardistech.com/wp/?p=238</guid>
		<description><![CDATA[I always used to download the md5sum.exe and sha1sum.exe files when I needed to generate a file&#8217;s hash in Windows.  I just discovered that certutil.exe, included with Windows 7 and Windows Server 2008 R2, will do this for you (I&#8217;m not sure if it was included in earlier versions of Windows).  Just use the following [...]]]></description>
			<content:encoded><![CDATA[<p>I always used to download the md5sum.exe and sha1sum.exe files when I needed to generate a file&#8217;s hash in Windows.  I just discovered that certutil.exe, included with Windows 7 and Windows Server 2008 R2, will do this for you (I&#8217;m not sure if it was included in earlier versions of Windows).  Just use the following commands to generate the appropriate hash:</p>
<p>MD5:      certutil -hashfile C:\Windows\notepad.exe MD5</p>
<p>SHA1:     certutil -hashfile C:\Windows\notepad.exe SHA1</p>
<p>SHA256: certutil -hashfile C:\Windows\notepad.exe SHA256</p>
<p>SHA512: certutil -hashfile C:\Windows\notepad.exe SHA512</p>
<p>Note that it defaults to SHA1 if you do not specify a hashing algorithm.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tardistech.com/wp/2012/01/13/file-hashing-is-built-into-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making Image Backgrounds Transparent with Paint.Net</title>
		<link>http://www.tardistech.com/wp/2011/12/05/making-image-backgrounds-transparent-with-paint-net/</link>
		<comments>http://www.tardistech.com/wp/2011/12/05/making-image-backgrounds-transparent-with-paint-net/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 20:40:13 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Graphics]]></category>

		<guid isPermaLink="false">http://www.tardistech.com/wp/?p=234</guid>
		<description><![CDATA[I found this solution on the getpaint.net web site: I use the Bucket (fill) with a full transparent color. Set the foreground to white and fully transparent, i.e. RGB all = 255, Transparency &#8211; Alpha = 0 Set the background to white and not transparent, i.e. RGB all = 255, Transparency &#8211; Alpha = 255 [...]]]></description>
			<content:encoded><![CDATA[<p>I found <a href="http://forums.getpaint.net/index.php?/topic/19145-convert-image-to-transparent-background/" target="_blank">this solution</a> on the getpaint.net web site:</p>
<ul>
<li>I use the Bucket (fill) with a full transparent color.</li>
<ul>
<li>Set the foreground to white and fully transparent, i.e. RGB all = 255, Transparency &#8211; Alpha = 0</li>
<li>Set the background to white and not transparent, i.e. RGB all = 255, Transparency &#8211; Alpha = 255</li>
</ul>
<li>You have to change the tool parameters from &#8220;Normal blend&#8221; to &#8220;Overwrite&#8221; in advance, or you won&#8217;t see any effect.</li>
<ul>
<li>Tool = Bucket Fill</li>
<li>Flood Mode = Contiguous</li>
<li>Fill = Solid Color</li>
<li>Tolerance = 17%</li>
<li>Antialiasing = Enabled</li>
<li>Overwrite</li>
</ul>
<li>You can access the parameters after choosing the bucket. Press the little chemical bottle icon, in the right to the fill tolerance slider.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.tardistech.com/wp/2011/12/05/making-image-backgrounds-transparent-with-paint-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2010 / SP1 / Windows SDK Install Order</title>
		<link>http://www.tardistech.com/wp/2011/11/26/visual-studio-2010-sp1-windows-sdk-install-order/</link>
		<comments>http://www.tardistech.com/wp/2011/11/26/visual-studio-2010-sp1-windows-sdk-install-order/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 19:09:37 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.tardistech.com/wp/?p=231</guid>
		<description><![CDATA[When you plan to install the Windows 7/2008 R2 SDK, the SDK needs to be installed before VS2010 SP1.  Here is the recommended install order: 1. Visual Studio 2010 2. Windows SDK 7.1 3. Visual Studio 2010 SP1 4. Visual C++ 2010 SP1 Compiler Update for the Windows SDK 7.1 Here is the link to [...]]]></description>
			<content:encoded><![CDATA[<p>When you plan to install the Windows 7/2008 R2 SDK, the SDK needs to be installed before VS2010 SP1.  Here is the recommended install order:</p>
<p>1. Visual Studio 2010<br />
2. Windows SDK 7.1<br />
3. Visual Studio 2010 SP1<br />
4. <a href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;id=4422" target="_blank">Visual C++ 2010 SP1 Compiler Update for the Windows SDK 7.1</a></p>
<p>Here is the link to the blog post about this: <a href="http://blogs.msdn.com/b/vcblog/archive/2011/03/31/10148110.aspx" target="_blank">http://blogs.msdn.com/b/vcblog/archive/2011/03/31/10148110.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tardistech.com/wp/2011/11/26/visual-studio-2010-sp1-windows-sdk-install-order/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unit Testing Private Static Methods in C#</title>
		<link>http://www.tardistech.com/wp/2011/11/21/unit-testing-private-static-methods/</link>
		<comments>http://www.tardistech.com/wp/2011/11/21/unit-testing-private-static-methods/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 21:27:07 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[CSharp]]></category>

		<guid isPermaLink="false">http://www.tardistech.com/wp/?p=224</guid>
		<description><![CDATA[I had never needed to unit test a private static class method in C# before, but it turns out that Microsoft created a special object type to handle just such a case. To test the private static method DetermineFilename (that takes filePath as a string parameter and returns a string) in the FileManager class, do [...]]]></description>
			<content:encoded><![CDATA[<p>I had never needed to unit test a private static class method in C# before, but it turns out that Microsoft created a special object type to handle just such a case.</p>
<p>To test the private static method DetermineFilename (that takes filePath as a string parameter and returns a string) in the FileManager class, do the following:</p>
<pre class="brush: csharp; title: ;">
PrivateType privateFileManagerObject = new PrivateType(typeof(FileManager));
string filename = (string)privateFileManagerObject.InvokeStatic(&quot;DetermineFilename&quot;, filePath);
</pre>
<p>Thanks to Venkat for posting this solution on his web site here:<br />
<a href="http://venkatcsharpinterview.blogspot.com/2011/07/unit-testing-private-static-method-in-c.html" target="_blank">http://venkatcsharpinterview.blogspot.com/2011/07/unit-testing-private-static-method-in-c.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tardistech.com/wp/2011/11/21/unit-testing-private-static-methods/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get SQL Server Version/Edition Information</title>
		<link>http://www.tardistech.com/wp/2011/11/17/get-sql-server-versionedition-information/</link>
		<comments>http://www.tardistech.com/wp/2011/11/17/get-sql-server-versionedition-information/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 16:28:57 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.tardistech.com/wp/?p=210</guid>
		<description><![CDATA[Just connect to the database in which you are interested, open a new query window, and enter the following query: SELECT SERVERPROPERTY('ProductVersion') as 'Product Version', SERVERPROPERTY('ProductLevel') as 'Product Level', SERVERPROPERTY('Edition') as 'Edition' For me, this produced the following: Product Version Product Level Edition 10.50.1600.1 RTM Enterprise Edition (64-bit)]]></description>
			<content:encoded><![CDATA[<p>Just connect to the database in which you are interested, open a new query window, and enter the following query:</p>
<pre class="brush: sql; title: ;">
SELECT SERVERPROPERTY('ProductVersion') as 'Product Version',
SERVERPROPERTY('ProductLevel') as 'Product Level',
SERVERPROPERTY('Edition') as 'Edition'
</pre>
<p>For me, this produced the following:</p>
<blockquote>
<pre>
Product Version  Product Level  Edition
10.50.1600.1     RTM            Enterprise Edition (64-bit)</pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.tardistech.com/wp/2011/11/17/get-sql-server-versionedition-information/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable C# “var” Recommendation in ReSharper</title>
		<link>http://www.tardistech.com/wp/2011/09/02/disable-c-%e2%80%9cvar%e2%80%9d-recommendation-in-resharper/</link>
		<comments>http://www.tardistech.com/wp/2011/09/02/disable-c-%e2%80%9cvar%e2%80%9d-recommendation-in-resharper/#comments</comments>
		<pubDate>Fri, 02 Sep 2011 18:07:30 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[CSharp]]></category>
		<category><![CDATA[ReSharper]]></category>

		<guid isPermaLink="false">http://www.tardistech.com/wp/?p=169</guid>
		<description><![CDATA[I have been trying to use type names instead of &#8220;var&#8221; in my C# code lately.  However, ReSharper wants me to convert every type name in a declaration to &#8220;var”.  The squiggles under my type names were driving me nuts, so I decided to dig into the settings to turn this off. To disable these [...]]]></description>
			<content:encoded><![CDATA[<p>I have been trying to use type names instead of &#8220;var&#8221; in my C# code lately.  However, ReSharper wants me to convert every type name in a declaration to &#8220;var”.  The squiggles under my type names were driving me nuts, so I decided to dig into the settings to turn this off.</p>
<p>To disable these suggestions, do the following:</p>
<ol>
<li>Go to the ReSharper menu and select Options…</li>
<li>From the resulting dialog box, select Code Inspection, Inspection Severity.</li>
<li>Select the C# tab and then Language Usage Opportunities.</li>
<li>Set both “Use ‘var’ keyword when initializer explicitly declares type” and “Use ‘var’ keyword when possible” to “Do not show”.</li>
</ol>
<p>Rob</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tardistech.com/wp/2011/09/02/disable-c-%e2%80%9cvar%e2%80%9d-recommendation-in-resharper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Where to Store Your PowerShell Profiles</title>
		<link>http://www.tardistech.com/wp/2011/08/20/powershell-profiles/</link>
		<comments>http://www.tardistech.com/wp/2011/08/20/powershell-profiles/#comments</comments>
		<pubDate>Sat, 20 Aug 2011 22:14:45 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://www.tardistech.com/wp/?p=152</guid>
		<description><![CDATA[I recently decided to get on the PowerShell bandwagon again (after starting many times and then forgetting &#8220;everything&#8221;), so I went to Scott Hanselman&#8217;s blog about using the Visual Studio environment from the PowerShell prompt. I followed everything in his article except where I was supposed to store my profile (i.e. startup script) for PowerShell.  It [...]]]></description>
			<content:encoded><![CDATA[<p>I recently decided to get on the <a title="Windows PowerShell on MSDN" href="http://msdn.microsoft.com/en-us/library/dd835506(v=VS.85).aspx" target="_blank">PowerShell</a> bandwagon again (after starting many times and then forgetting &#8220;everything&#8221;), so I went to Scott Hanselman&#8217;s blog about <a title="Awesome Visual Studio Command Prompt and PowerShell icons with Overlays" href="http://www.hanselman.com/blog/AwesomeVisualStudioCommandPromptAndPowerShellIconsWithOverlays.aspx" target="_blank">using the Visual Studio environment from the PowerShell prompt</a>. I followed everything in his article except where I was supposed to store my profile (i.e. startup script) for PowerShell.  It turns out that there are four places where you can put your profile, depending on whether it&#8217;s per-user or machine-wide.  They are as follows:</p>
<ul>
<li><strong>%windir%\system32\WindowsPowerShell\v1.0\profile.ps1</strong></li>
</ul>
<p style="padding-left: 30px;">This profile applies to all users and all shells.</p>
<ul>
<li><strong>%windir%\system32\WindowsPowerShell\v1.0\ Microsoft.PowerShell_profile.ps1</strong></li>
</ul>
<p style="padding-left: 30px;">This profile applies to all users, but only to the Microsoft.PowerShell shell.</p>
<ul>
<li><strong>%UserProfile%\My Documents\WindowsPowerShell\profile.ps1</strong></li>
</ul>
<p style="padding-left: 30px;">This profile applies only to the current user, but affects all shells.</p>
<ul>
<li><strong>%UserProfile%\My Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1</strong></li>
</ul>
<p style="padding-left: 30px;">This profile applies only to the current user and the Microsoft.PowerShell shell.</p>
<p>I found this information on the <a title="Windows PowerShell Profiles MSDN page" href="http://msdn.microsoft.com/en-us/library/bb613488(v=VS.85).aspx" target="_blank">following MSDN page</a>.  I&#8217;m still learning about what the &#8220;Microsoft.PowerShell shell&#8221; is, but that&#8217;s where Scott recommended putting it.</p>
<p>So, here are the lines I added to the end of Scott&#8217;s VsVars32 function:</p>
<pre class="brush: powershell; title: ;">

# add a call to set-consoleicon as seen below...hm...!
. 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Set-ConsoleIcon.ps1'
Set-ConsoleIcon 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\vspowershell.ico'
</pre>
<p>Also, for those of your writing PowerShell scripts, note that the &#8216;#&#8217; character is used at the beginning of a line to indicate a comment.</p>
<p>Finally, if you modify your profile and want to reload it, you can just issue the following command from the PowerShell prompt:</p>
<pre><code>. $profile
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.tardistech.com/wp/2011/08/20/powershell-profiles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using EF 4.1 Code First without SQL Express</title>
		<link>http://www.tardistech.com/wp/2011/08/15/using-ef-4-1-without-sql-express/</link>
		<comments>http://www.tardistech.com/wp/2011/08/15/using-ef-4-1-without-sql-express/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 17:52:47 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://www.tardistech.com/wp/?p=145</guid>
		<description><![CDATA[I began following Julie Lerman&#8217;s excellent tutorials on getting started with Entity Framework (EF) version 4.1 and the Code First technique of generated databases on the MSDN web site.  However, the defaults for Code First expect you to have SQL Server Express installed for the examples to work.  I was able to get EF Code First to [...]]]></description>
			<content:encoded><![CDATA[<p>I began following Julie Lerman&#8217;s <a href="http://msdn.microsoft.com/en-us/data/cc300162#entity" target="_blank">excellent tutorials</a> on getting started with Entity Framework (EF) version 4.1 and the Code First technique of generated databases on the <a title="Getting Started with EF 4.1" href="http://msdn.microsoft.com/en-us/data/hh134816" target="_blank">MSDN</a> web site.  However, the defaults for Code First expect you to have SQL Server Express installed for the examples to work.  I was able to get EF Code First to work with SQL Server (not Express) by adding the following connection string to my web.config file:</p>
<pre>    &lt;add name="BlogContext"
         connectionString="Server=.;Database=BlogContext.mdf;Integrated Security=SSPI;"
         providerName="System.Data.SqlClient" /&gt;</pre>
<p>Just make sure that the name, e.g. BlogContext, matches the name of the class derived from DbContext.  Note that you will also likely need to replace the &#8220;.&#8221; in &#8220;Server=.&#8221; with whatever your server name is.  The &#8220;.&#8221; is just a reference to the SQL Server running on your local machine.</p>
<p>Rob</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tardistech.com/wp/2011/08/15/using-ef-4-1-without-sql-express/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Where TFS Connections Are Stored</title>
		<link>http://www.tardistech.com/wp/2011/08/12/where-tfs-connections-are-stored/</link>
		<comments>http://www.tardistech.com/wp/2011/08/12/where-tfs-connections-are-stored/#comments</comments>
		<pubDate>Fri, 12 Aug 2011 19:21:07 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Version Control]]></category>

		<guid isPermaLink="false">http://www.tardistech.com/wp/?p=141</guid>
		<description><![CDATA[I am migrating from one dev machine to another and wanted to export/import my TFS connections for Visual Studio 2010.  It turns out they are all stored in the following registry key: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\TeamFoundation\Instances If you&#8217;re looking for the Visual Studio 2008 entries, they are located here: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\TeamFoundation\Servers Rob]]></description>
			<content:encoded><![CDATA[<p>I am migrating from one dev machine to another and wanted to export/import my TFS connections for Visual Studio 2010.  It turns out they are all stored in the following registry key:</p>
<pre style="padding-left: 30px;">HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\TeamFoundation\Instances</pre>
<p>If you&#8217;re looking for the Visual Studio 2008 entries, they are located here:</p>
<pre style="padding-left: 30px;">HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\TeamFoundation\Servers</pre>
<p>Rob</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tardistech.com/wp/2011/08/12/where-tfs-connections-are-stored/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

