<?xml version="1.0" encoding="utf-8"?>
<feed xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom">
  <title>TheThoughtfulCoder.com</title>
  <link rel="alternate" type="text/html" href="http://thethoughtfulcoder.com/" />
  <link rel="self" href="http://thethoughtfulcoder.com/SyndicationService.asmx/GetAtom" />
  <icon>favicon.ico</icon>
  <updated>2010-08-06T22:53:45.609375-04:00</updated>
  <author>
    <name>Nathan Fox</name>
  </author>
  <subtitle>Gone coding (or changing diapers)</subtitle>
  <id>http://thethoughtfulcoder.com/</id>
  <generator uri="http://dasblog.info/" version="2.3.9074.18820">DasBlog</generator>
  <entry>
    <title>What to check when ClientBuildManager.GetCompiledType returns null</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/08/07/What-To-Check-When-ClientBuildManagerGetCompiledType-Returns-Null" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,973b87e6-8671-4110-b643-ec9d13e1e8fc</id>
    <published>2010-08-06T22:53:45.609375-04:00</published>
    <updated>2010-08-06T22:53:45.609375-04:00</updated>
    <category term="ASP.NET" label="ASP.NET" scheme="http://thethoughtfulcoder.com/CategoryView,category,ASPNET" />
    <category term="ASP.NET MVC" label="ASP.NET MVC" scheme="http://thethoughtfulcoder.com/CategoryView,category,ASPNETMVC" />
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
The ClientBuildManager is a .NET BCL class that facilitates compiling ASP.NET markup
files outside of IIS. I did run into an issue using this class which others may hit
as well.
</p>
        <p>
I compiled some ASP.NET MVC .aspx views and tried to get the type using ClientBuildManager.GetCompiledType,
but the GetCompiledType function returned null. Hmm…I could see the compilation was
working because the assemblies were seemingly generated correctly.
</p>
        <p>
It ends up that the type would not load because the calling project did not reference
all the assemblies needed to load the type. The ClientBuildManager compiles the web
components in a separate application domain. When trying to retrieve the type, the
assembly is loaded into the calling application domain, and then the type retrieval
is attempted. If the type can not load no error is thrown, instead you get a null
return value.
</p>
        <p>
So make sure the application using ClientBuildManager references all assemblies referenced
by the web application you are compiling.
</p>
        <p>
I hope this saves someone some time. It took a bit of head banging to figure this
one out. I had to debug down into System.Web to figure out what was going on :-(
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=973b87e6-8671-4110-b643-ec9d13e1e8fc" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Navigate from interface to implementation in Visual Studio using CodeRush</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/08/03/Navigate-From-Interface-To-Implementation-In-Visual-Studio-Using-CodeRush" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,2871ff37-89f0-4553-83e4-a911d26b1d2e</id>
    <published>2010-08-02T23:41:58.923875-04:00</published>
    <updated>2010-08-02T23:42:48.5645-04:00</updated>
    <category term="CodeRush" label="CodeRush" scheme="http://thethoughtfulcoder.com/CategoryView,category,CodeRush" />
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <category term="Visual Studio" label="Visual Studio" scheme="http://thethoughtfulcoder.com/CategoryView,category,VisualStudio" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
One feature of <a href="http://devexpress.com/Products/Visual_Studio_Add-in/Coding_Assistance/">CodeRush</a> from <a href="http://devexpress.com/">DevExpress</a> which
I use a lot when navigating code is the ability to navigate to a function/method/property
implementation from a variable that is of an interface type. I do a lot interface
programming (OK OK I get a bit interface happy) and this navigation feature rocks.
</p>
        <p>
The default shortcut keys to bring up the Navigate/Jump To menu is Ctrl + Alt + N.
I prefer to bind the Navigate command to Ctrl + E, as it is a bit quicker to type
when your fingers are in home position on the keyboard. I show how to update the binding
in the screen cast embedded with this blog post.
</p>
        <p>
With the cursor on a function/property of a variable of some interface type, bring
up the <strong>Jump To</strong> menu.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/NavigatetointerfaceimplementationinVisua_10B5D/VisualStudioCodeRushNavigateInterfaceImplementation_2.png">
            <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Visual Studio CodeRush Navigate Interface to Implementation" border="0" alt="Visual Studio CodeRush Navigate Interface to Implementation" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/NavigatetointerfaceimplementationinVisua_10B5D/VisualStudioCodeRushNavigateInterfaceImplementation_thumb.png" width="568" height="316" />
          </a>
        </p>
        <p>
        </p>
        <p>
If you pick <strong>Implementations </strong>from the popup menu,<strong> </strong>you’ll
be taken to the class implementation of the interface function/property. If multiple
implementations exist, then a popup menu displaying the various choices will be displayed.
</p>
        <p>
I created a screen cast to show this feature in action:
</p>
        <object width="660" height="405">
          <param name="movie" value="http://www.youtube.com/v/10oTpB4jM8k&amp;hl=en_US&amp;fs=1?color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
          <param name="allowFullScreen" value="true" />
          <param name="allowscriptaccess" value="always" />
          <embed src="http://www.youtube.com/v/10oTpB4jM8k&amp;hl=en_US&amp;fs=1?color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
          </embed>
        </object>
        <p>
I’d suggest experimenting with the other <strong>Jump To</strong> options as well
as they come in handy when navigating code.
</p>
        <p>
I hope this helps! 
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=2871ff37-89f0-4553-83e4-a911d26b1d2e" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Extract and implement interfaces in Visual Studio using CodeRush</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/08/03/Extract-And-Implement-Interfaces-In-Visual-Studio-Using-CodeRush" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,ceba3ea2-9be4-4478-8ed7-81d6e0271c90</id>
    <published>2010-08-02T23:33:18.0645-04:00</published>
    <updated>2010-08-02T23:33:18.0645-04:00</updated>
    <category term="CodeRush" label="CodeRush" scheme="http://thethoughtfulcoder.com/CategoryView,category,CodeRush" />
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <category term="Visual Studio" label="Visual Studio" scheme="http://thethoughtfulcoder.com/CategoryView,category,VisualStudio" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
A <a href="http://devexpress.com/Products/Visual_Studio_Add-in/Coding_Assistance/">CodeRush</a> feature
that comes in very handy from time to time is the ability to easily extract and implement
interfaces in Visual Studio.
</p>
        <p>
This tip involves using the Refactor command included with <a href="http://devexpress.com/Products/Visual_Studio_Add-in/Coding_Assistance/">CodeRush/Refactor
Pro</a>. The default shortcut key is Ctrl + ` .  Personally I prefer to map the
Refactor command to Ctrl + R for a more convenient key stroke. I show how to do the
mapping in the screen cast embedded later in this blog post.
</p>
        <h2>Extract an interface from a class
</h2>
        <p>
You can easily extract interfaces from an existing class. With the cursor on a class,
bring up the Refactor menu and select <strong>Extract Interface</strong>. 
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/ExtractandimplementinterfacesinVisualStu_10657/VisualStudioCodeRushExtractInterface_2.png">
            <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Visual Studio CodeRush Extract Interface" border="0" alt="Visual Studio CodeRush Extract Interface" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/ExtractandimplementinterfacesinVisualStu_10657/VisualStudioCodeRushExtractInterface_thumb.png" width="656" height="313" />
          </a>
        </p>
        <p>
This will create an interface that contains the public properties and methods of the
class. You can then move the interface to it’s own file by using the Refactor menu
once again and select <strong>Move Type to File</strong>.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/ExtractandimplementinterfacesinVisualStu_10657/CodeRushMoveTypeToFileInterface_2.png">
            <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="CodeRush Move Type To File Interface" border="0" alt="CodeRush Move Type To File Interface" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/ExtractandimplementinterfacesinVisualStu_10657/CodeRushMoveTypeToFileInterface_thumb.png" width="612" height="320" />
          </a>
        </p>
        <h2>Create an interface implementation
</h2>
        <p>
You can very quickly create and interface implementation. With the cursor on an interface,
bring up the Refactor menu and select <strong>Create Implementer</strong>.<strong></strong>You
can choose to create an implicit or explicit implementation.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/ExtractandimplementinterfacesinVisualStu_10657/VisualStudioCodeRushImplementInterface_2.png">
            <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Visual Studio CodeRush Implement Interface" border="0" alt="Visual Studio CodeRush Implement Interface" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/ExtractandimplementinterfacesinVisualStu_10657/VisualStudioCodeRushImplementInterface_thumb.png" width="644" height="280" />
          </a>
        </p>
        <p>
You can quickly move the implementation to a separate file the same way as shown above
for extracting an interface.
</p>
        <p>
I created a screen cast to show this in action:
</p>
        <object width="660" height="405">
          <param name="movie" value="http://www.youtube.com/v/qCCsturrQeE&amp;hl=en_US&amp;fs=1?color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
          <param name="allowFullScreen" value="true" />
          <param name="allowscriptaccess" value="always" />
          <embed src="http://www.youtube.com/v/qCCsturrQeE&amp;hl=en_US&amp;fs=1?color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
          </embed>
        </object>
        <p>
          <a href="http://devexpress.com/Products/Visual_Studio_Add-in/Coding_Assistance/">CodeRush/Refactor
Pro</a> is a rock’in Visual Studio add-on from <a href="http://devexpress.com/">DevExpress</a>.
</p>
        <p>
I hope this helps!
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=ceba3ea2-9be4-4478-8ed7-81d6e0271c90" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Shortcut to popup intellisense in Visual Studio</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/07/30/Shortcut-To-Popup-Intellisense-In-Visual-Studio" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,95cfa755-f626-46c2-8e2b-00ada1065d49</id>
    <published>2010-07-29T22:13:32.777375-04:00</published>
    <updated>2010-07-29T22:13:32.777375-04:00</updated>
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <category term="Visual Studio" label="Visual Studio" scheme="http://thethoughtfulcoder.com/CategoryView,category,VisualStudio" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Visual Studio tip: if the cursor is located after a variable followed by a dot without
intellisense showing, press Ctrl + Space Bar to bring up intellisense. One common
use of this shortcut is if the wrong property or function is chosen you can quickly
select the property or function, delete the selection, and press Ctrl + Space Bar
to popup intellisense to pick the correct one.
</p>
        <p>
I created a short demonstration to show the shortcut in action:
</p>
        <object width="660" height="405">
          <param name="movie" value="http://www.youtube.com/v/9AopJBZEShk&amp;hl=en_US&amp;fs=1?color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
          <param name="allowFullScreen" value="true" />
          <param name="allowscriptaccess" value="always" />
          <embed src="http://www.youtube.com/v/9AopJBZEShk&amp;hl=en_US&amp;fs=1?color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
          </embed>
        </object>
        <p>
I hope this helps!
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=95cfa755-f626-46c2-8e2b-00ada1065d49" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Shortcut to popup function/method parameter help in Visual Studio</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/07/30/Shortcut-To-Popup-Functionmethod-Parameter-Help-In-Visual-Studio" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,262086c5-5581-4167-badd-adb2a999155c</id>
    <published>2010-07-29T21:35:50.464875-04:00</published>
    <updated>2010-07-29T21:35:50.464875-04:00</updated>
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <category term="Visual Studio" label="Visual Studio" scheme="http://thethoughtfulcoder.com/CategoryView,category,VisualStudio" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Visual Studio tip: if your cursor is located between the parenthesis in a C# function/method
you can use use Ctrl + Shift + Space Bar to bring up the function parameter help popup.  
</p>
        <p>
I created a short video to demonstrate how the shortcut works:
</p>
        <object width="660" height="405">
          <param name="movie" value="http://www.youtube.com/v/rzDr7DH2Ozw&amp;hl=en_US&amp;fs=1?color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
          <param name="allowFullScreen" value="true" />
          <param name="allowscriptaccess" value="always" />
          <embed src="http://www.youtube.com/v/rzDr7DH2Ozw&amp;hl=en_US&amp;fs=1?color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
          </embed>
        </object>
        <p>
I hope this tip helps!
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=262086c5-5581-4167-badd-adb2a999155c" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Selecting text in Visual Studio with CodeRush</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/07/24/Selecting-Text-In-Visual-Studio-With-CodeRush" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,8362aa1c-5213-4da4-a42c-f1e74f375b12</id>
    <published>2010-07-24T01:18:15.2525-04:00</published>
    <updated>2010-07-24T01:18:15.2525-04:00</updated>
    <category term="CodeRush" label="CodeRush" scheme="http://thethoughtfulcoder.com/CategoryView,category,CodeRush" />
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <category term="Visual Studio" label="Visual Studio" scheme="http://thethoughtfulcoder.com/CategoryView,category,VisualStudio" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I created a screen cast to show how to use <a href="http://devexpress.com/Products/Visual_Studio_Add-in/Coding_Assistance/">CodeRush’s</a> SelectionExpand
and SelectionReduce commands. This is one of those “I can’t live without” features
that I use when editing code. These keyboard commands allow quick selection of blocks
of code which speed up your code editing time.
</p>
        <object width="660" height="405">
          <param name="movie" value="http://www.youtube.com/v/3qGdveUBwDI&amp;hl=en_US&amp;fs=1?color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
          <param name="allowFullScreen" value="true" />
          <param name="allowscriptaccess" value="always" />
          <embed src="http://www.youtube.com/v/3qGdveUBwDI&amp;hl=en_US&amp;fs=1?color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
          </embed>
        </object>
        <p>
Use it and code on!
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=8362aa1c-5213-4da4-a42c-f1e74f375b12" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Quickly change function/method visibility using CodeRush for Visual Studio</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/07/23/Quickly-Change-Functionmethod-Visibility-Using-CodeRush-For-Visual-Studio" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,e0aa9bc5-069f-4043-b3fc-f44a466b8259</id>
    <published>2010-07-22T23:35:08.643125-04:00</published>
    <updated>2010-07-22T23:35:08.643125-04:00</updated>
    <category term="CodeRush" label="CodeRush" scheme="http://thethoughtfulcoder.com/CategoryView,category,CodeRush" />
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <category term="Visual Studio" label="Visual Studio" scheme="http://thethoughtfulcoder.com/CategoryView,category,VisualStudio" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Using <a href="http://devexpress.com/Products/Visual_Studio_Add-in/Coding_Assistance/">CodeRush
from DevExpress</a> you can very quickly change function/method visibility without
typing the visibility text :-)
</p>
        <p>
In a code file, if your cursor is anywhere within or on a function definition, you
can use the left Alt key plus the up and down arrow keys to cycle through the various
visibility modifiers.
</p>
        <p>
I created a short screen cast to show it in action.
</p>
        <object width="660" height="405">
          <param name="movie" value="http://www.youtube.com/v/bcDnbAdTP-s&amp;hl=en_US&amp;fs=1?color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
          <param name="allowFullScreen" value="true" />
          <param name="allowscriptaccess" value="always" />
          <embed src="http://www.youtube.com/v/bcDnbAdTP-s&amp;hl=en_US&amp;fs=1?color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
          </embed>
        </object>
        <p>
I hope this tip helps :-)
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=e0aa9bc5-069f-4043-b3fc-f44a466b8259" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Visual Studio unit test runner using CodeRush from DevExpress</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/07/22/Visual-Studio-Unit-Test-Runner-Using-CodeRush-From-DevExpress" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,34c5a717-e253-417b-8f70-f12f7046bff1</id>
    <published>2010-07-21T23:45:08.84625-04:00</published>
    <updated>2010-07-21T23:49:16.59625-04:00</updated>
    <category term="CodeRush" label="CodeRush" scheme="http://thethoughtfulcoder.com/CategoryView,category,CodeRush" />
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <category term="Visual Studio" label="Visual Studio" scheme="http://thethoughtfulcoder.com/CategoryView,category,VisualStudio" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
CodeRush is one of my can’t live without tools :-) I created a short screen cast to
demo the unit test runner that comes with <a href="http://devexpress.com/Products/Visual_Studio_Add-in/Coding_Assistance/">CodeRush
from DevExpress</a>.
</p>
        <object width="660" height="405">
          <param name="movie" value="http://www.youtube.com/v/JeKEGZasIR8&amp;hl=en_US&amp;fs=1?color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
          <param name="allowFullScreen" value="true" />
          <param name="allowscriptaccess" value="always" />
          <embed src="http://www.youtube.com/v/JeKEGZasIR8&amp;hl=en_US&amp;fs=1?color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
          </embed>
        </object>
        <p>
I use it to run my unit tests at home and work :-D
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=34c5a717-e253-417b-8f70-f12f7046bff1" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Why is PowerShell losing my carriage returns and line feeds?</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/07/22/Why-Is-PowerShell-Losing-My-Carriage-Returns-And-Line-Feeds" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,3d326931-4b63-4cb8-a385-66bdf92434b2</id>
    <published>2010-07-21T23:41:03.080625-04:00</published>
    <updated>2010-07-21T23:41:03.080625-04:00</updated>
    <category term="PowerShell" label="PowerShell" scheme="http://thethoughtfulcoder.com/CategoryView,category,PowerShell" />
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I was assigning the output of Git to a variable in a Windows PowerShell script and
it looked as if I was losing the carriage returns and line feeds in the output. What
is actually happening is the output of the executable is being broken out into an
array of strings.
</p>
        <p>
The following shows an example PowerShell session with an explanation following.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/WhyisPowerShelllosingmycarriagereturnsan_13CC6/WindowsPowerShellLosingLineFeedExample_6.png">
            <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Windows PowerShell Losing Line Feed Example" border="0" alt="Windows PowerShell Losing Line Feed Example" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/WhyisPowerShelllosingmycarriagereturnsan_13CC6/WindowsPowerShellLosingLineFeedExample_thumb_2.png" width="541" height="434" />
          </a>
        </p>
        <ol>
          <li>
Running the git program returns output that is delimited by line breaks. 
</li>
          <li>
Assign the output of the program to a variable. 
</li>
          <li>
Write-Host the variable and the line breaks are gone &gt;:-{ 
</li>
          <li>
You can see the variable is actually an array! 
</li>
          <li>
You can create a string using the .NET String.Join function. 
</li>
          <li>
Now Write-Host of the variable has the line breaks. 
</li>
        </ol>
        <p>
I created a short screen cast to explain this as well.
</p>
        <object width="660" height="405">
          <param name="movie" value="http://www.youtube.com/v/6bhbKvqL6mk&amp;hl=en_US&amp;fs=1?color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
          <param name="allowFullScreen" value="true" />
          <param name="allowscriptaccess" value="always" />
          <embed src="http://www.youtube.com/v/6bhbKvqL6mk&amp;hl=en_US&amp;fs=1?color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
          </embed>
        </object>
        <p>
I hope this helps. Code on!
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=3d326931-4b63-4cb8-a385-66bdf92434b2" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Show Git repository status on a Windows PowerShell prompt</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/07/22/Show-Git-Repository-Status-On-A-Windows-PowerShell-Prompt" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,2983d8fa-5e4f-4915-985c-635c81727848</id>
    <published>2010-07-21T23:36:53.78375-04:00</published>
    <updated>2010-07-21T23:38:47.299375-04:00</updated>
    <category term="Git" label="Git" scheme="http://thethoughtfulcoder.com/CategoryView,category,Git" />
    <category term="PowerShell" label="PowerShell" scheme="http://thethoughtfulcoder.com/CategoryView,category,PowerShell" />
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Hmm… I want to show the status of my Git repository on my Windows PowerShell prompt.
I found a post on Stack Overflow that gives a good example of <a href="http://stackoverflow.com/questions/1287718/how-can-i-display-my-current-git-branch-name-in-my-powershell-prompt">showing
Git repo status on a PowerShell prompt</a>, but I customized it a bit to show data
I want to see.
</p>
        <p>
Git status on my PowerShell prompt when the index and working directory are clean:
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/ShowGitrepositorystatusonaWindowsPowerSh_14C45/GitPowerShellPromptNothingToCommitWorkingDirectoryClean_4.png">
            <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Git PowerShell Prompt Nothing To Commit Working Directory Clean" border="0" alt="Git PowerShell Prompt Nothing To Commit Working Directory Clean" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/ShowGitrepositorystatusonaWindowsPowerSh_14C45/GitPowerShellPromptNothingToCommitWorkingDirectoryClean_thumb_1.png" width="470" height="245" />
          </a>
        </p>
        <p>
        </p>
        <p>
When there are differences in the Git index or in the working folder then the prompt
will look like the following:
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/ShowGitrepositorystatusonaWindowsPowerSh_14C45/GitPowerShellPromptWithIndexAndWorkingDirectoryChanges_2.png">
            <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Git PowerShell Prompt With Index And Working Directory Changes" border="0" alt="Git PowerShell Prompt With Index And Working Directory Changes" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/ShowGitrepositorystatusonaWindowsPowerSh_14C45/GitPowerShellPromptWithIndexAndWorkingDirectoryChanges_thumb.png" width="446" height="139" />
          </a>
        </p>
        <p>
The meaning of the status is documented on the <a href="http://www.kernel.org/pub/software/scm/git/docs/git-status.html">git-status
man page</a> for the --s, –short, or --porcelain argument. I’m using git status –porcelain,
as it not supposed to change in the future. <em>Please note that I replace the space
in the status with a dash</em>.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/ShowGitrepositorystatusonaWindowsPowerSh_14C45/GitStatusKey_2.png">
            <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="GitStatusKey" border="0" alt="GitStatusKey" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/ShowGitrepositorystatusonaWindowsPowerSh_14C45/GitStatusKey_thumb.png" width="627" height="695" />
          </a>
        </p>
        <p>
The script for the profile.ps1 file follows:
</p>
        <pre class="brush:powershell">$Global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent()
$UserType = "User"
$CurrentUser.Groups | foreach {
      if ($_.value -eq "S-1-5-32-544")
      {
         $UserType = "Admin"
      }
   }

function prompt
{
   # Fun stuff if using the standard PowerShell prompt; not useful for Console2.
   # This, and the variables above, could be commented out.
   if($UserType -eq "Admin")
   {
      $host.UI.RawUI.WindowTitle = "" + $(get-location) + " : Admin"
      $host.UI.RawUI.ForegroundColor = "white"
   }
   else
   {
      $host.ui.rawui.WindowTitle = $(get-location)
   }

   Write-Host("")
   $statusString = ""
   $symbolicref = git symbolic-ref HEAD
   if($symbolicref -ne $NULL)
   {
      $statusString += "GIT [" + $symbolicref.substring($symbolicref.LastIndexOf("/") +1) + "] "

      $status = git status --porcelain #--untracked-files=all
   
      if ( $status )
      {
         $matches = [regex]::matches([system.string]::join("`n", $status), "(?m)^.{2}")
         
         $statusTotals = @{} # Create hash table
         
         foreach ( $match in $matches )
         {
            if ( ![string]::IsNullOrEmpty($match.Value) )
            {
               $matchValue = $match.Value.Replace(" ", "-")
               
               if ( !$statusTotals.ContainsKey($matchValue) )
               {
                  $statusTotals.Add($matchValue, 1)
               }
               else
               {
                  $statusTotals.Set_Item($matchValue, $statusTotals.Get_Item($matchValue) + 1)
               }
            }
         }
   
         foreach ( $dictEntry in $statusTotals.GetEnumerator() | Sort-Object Name)
         {
            $statusString += $outVal = [string]::format("{0}:{1} ", $dictEntry.Name, $dictEntry.Value)
         }
      }
      else
      {
         $statusString += "nothing to commit (working dir clean)"
      }
   }
   else
   {
      $statusString = "PS "
   }

   if ($statusString.StartsWith("GIT")) {
      Write-Host ($statusString + [System.Environment]::NewLine + $(get-location) + "&gt;") -nonewline -foregroundcolor yellow
   }
   else {
      Write-Host ($statusString + $(get-location) + "&gt;") -nonewline -foregroundcolor green
   }
   return " "
}</pre>
        <p>
You can place your profile.ps1 file in your ~\Document\WindowsPowerShell folder.
</p>
        <p>
I created a short screen cast to go over the Git PowerShell prompt as well:
</p>
        <object width="660" height="405">
          <param name="movie" value="http://www.youtube.com/v/Coyf6S7OitI&amp;hl=en_US&amp;fs=1?color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
          <param name="allowFullScreen" value="true" />
          <param name="allowscriptaccess" value="always" />
          <embed src="http://www.youtube.com/v/Coyf6S7OitI&amp;hl=en_US&amp;fs=1?color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
          </embed>
        </object>
        <p>
Hope you like it :-) It has brought me much Git PowerShell happiness :-D
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=2983d8fa-5e4f-4915-985c-635c81727848" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Moq – Use Setup arguments (parameters) in the Returns of a mocked function</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/07/22/Moq-Use-Setup-Arguments-Parameters-In-The-Returns-Of-A-Mocked-Function" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,cba0a1c7-e1c9-4cb2-9165-2e82218abb83</id>
    <published>2010-07-21T23:18:25.455625-04:00</published>
    <updated>2010-07-22T17:38:27.674375-04:00</updated>
    <category term=".NET" label=".NET" scheme="http://thethoughtfulcoder.com/CategoryView,category,NET" />
    <category term="Moq" label="Moq" scheme="http://thethoughtfulcoder.com/CategoryView,category,Moq" />
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
It can be useful when mocking a function with Moq to use parameters passed into the
Setup of a mocked function in the Returns function.
</p>
        <p>
I created a unit test to illustrate the basic idea:
</p>
        <pre class="brush:csharp">  
[TestFixture]
public class TestFixture1
{
   public interface ITest
   {
      int Func(int x, int y);
   }

   [Test]
   public void Test()
   {
      Mock&lt;ITest&gt; mockTest = new Mock&lt;ITest&gt;(MockBehavior.Strict);

      mockTest.Setup(x =&gt; x.Func(It.IsAny&lt;int&gt;(), It.IsAny&lt;int&gt;()))
         .Returns((int x, int y) =&gt; { return FuncData(x, y); });

      ITest test = mockTest.Object;

      Assert.AreEqual(5, test.Func(2, 3));
      Assert.AreEqual(3, test.Func(1, 2));
   }

   private int FuncData(int x, int y)
   {
      return x + y;
   }
}</pre>
        <p>
The main idea is to use a lambda expression in the Returns function that specifies
the arguments that can be used in whatever way is needed.
</p>
        <p>
I created a short screen cast to demo how this works:
</p>
        <object width="660" height="405">
          <param name="movie" value="http://www.youtube.com/v/1OCeGyaL2vI&amp;hl=en_US&amp;fs=1?color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
          <param name="allowFullScreen" value="true" />
          <param name="allowscriptaccess" value="always" />
          <embed src="http://www.youtube.com/v/1OCeGyaL2vI&amp;hl=en_US&amp;fs=1?color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
          </embed>
        </object>
        <p>
I hope this helps! Code on :-)
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=cba0a1c7-e1c9-4cb2-9165-2e82218abb83" />
      </div>
    </content>
  </entry>
  <entry>
    <title>A way to Pass data from an ASP.NET MVC View to the Master Page</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/07/22/A-Way-To-Pass-Data-From-An-ASPNET-MVC-View-To-The-Master-Page" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,5a7ef665-466b-4fc6-988b-463aa7f555b2</id>
    <published>2010-07-21T23:05:35.065-04:00</published>
    <updated>2010-07-21T23:05:35.065-04:00</updated>
    <category term=".NET" label=".NET" scheme="http://thethoughtfulcoder.com/CategoryView,category,NET" />
    <category term="ASP.NET MVC" label="ASP.NET MVC" scheme="http://thethoughtfulcoder.com/CategoryView,category,ASPNETMVC" />
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
There is no clear cut mechanism provided by the ASP.NET MVC framework to pass data
from a view to it’s master page. I’ve been using a technique that I’m reasonably happy
with, which I’ll describe in this blog post.
</p>
        <p>
For starters, my example will be using the ITypeInstanceDictionary provided in the
TTC Tools. Please read my blog post <a href="http://thethoughtfulcoder.com/2010/07/22/Pass-Data-From-An-ASPNET-MVC-Controller-To-The-View-Using-The-TTC-Tools-Type-Instance-Dictionary">pass
data from an ASP.NET MVC controller to view</a> to learn more. The code shown in this
blog post is included in a demo web application on the <a href="http://github.com/nfox-ttc/TTC-Tools">TTC
Tools GitHub</a> page.
</p>
        <p>
There are many scenarios in which you want to drive master page values from the view.
For example: some CSS styling that exists in the master page will be dependent on
the view. Personally I feel this should not be driven by the controller, as there
are many situations in which CSS styles are purely display driven.
</p>
        <p>
I’ll summarize the basic concepts for passing data from the view to it’s master page. 
</p>
        <ul>
          <li>
Create an interface that is used by the master page for use in the master page markup
code, and allow the view to override these values. 
</li>
          <li>
Setup the master page view data at the top of the master page 
</li>
          <li>
Follow up the master page code with a content place holder. 
</li>
          <li>
This content place holder will be used by the view to override any master page data
values. 
</li>
        </ul>
        <p>
My example code will show how to override the pages body element id in the master
page from a view.
</p>
        <p>
The following code snippet shows an example master page implementation:
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/AwayhowtoPassd.NETMVCViewtotheMasterPage_13769/SetupAspNetMvcMasterPageToAllowViewToOverrideData_2.png">
            <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Setup ASP.NET MVC Master Page To Allow View To Override Data" border="0" alt="Setup ASP.NET MVC Master Page To Allow View To Override Data" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/AwayhowtoPassd.NETMVCViewtotheMasterPage_13769/SetupAspNetMvcMasterPageToAllowViewToOverrideData_thumb.png" width="649" height="707" />
          </a>
        </p>
        <p>
The view can override master page view data by creating a content control for the
master page’s content place holder which follows the setup of the master page’s view
data.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/AwayhowtoPassd.NETMVCViewtotheMasterPage_13769/AspNetViewPassDataToMasterPage_2.png">
            <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="ASP.NET MVC View Pass Data To Master Page" border="0" alt="ASP.NET MVC View Pass Data To Master Page" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/AwayhowtoPassd.NETMVCViewtotheMasterPage_13769/AspNetViewPassDataToMasterPage_thumb.png" width="650" height="513" />
          </a>
        </p>
        <p>
        </p>
        <p>
The ASP.NET MVC view engine rendering execution flow will start at the top of the
master page and then flow into the content place holders. This allows the view to
override the master page view data before it is used later in the master page markup
code.
</p>
        <p>
I created a screen cast which might help explain this technique in a bit more detail.
</p>
        <object width="660" height="405">
          <param name="movie" value="http://www.youtube.com/v/yJwzb9nrhbk&amp;hl=en_US&amp;fs=1?color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
          <param name="allowFullScreen" value="true" />
          <param name="allowscriptaccess" value="always" />
          <embed src="http://www.youtube.com/v/yJwzb9nrhbk&amp;hl=en_US&amp;fs=1?color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
          </embed>
        </object>
        <p>
If you need any further explanation or have any questions please let me know. I hope
someone finds this useful :-)
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=5a7ef665-466b-4fc6-988b-463aa7f555b2" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Pass data from an ASP.NET MVC Controller to the View using the TTC Tools type instance dictionary</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/07/22/Pass-Data-From-An-ASPNET-MVC-Controller-To-The-View-Using-The-TTC-Tools-Type-Instance-Dictionary" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,7832276c-963b-4310-af20-1fe3ddf9209c</id>
    <published>2010-07-21T22:40:22.205625-04:00</published>
    <updated>2010-07-21T22:46:41.799375-04:00</updated>
    <category term=".NET" label=".NET" scheme="http://thethoughtfulcoder.com/CategoryView,category,NET" />
    <category term="ASP.NET MVC" label="ASP.NET MVC" scheme="http://thethoughtfulcoder.com/CategoryView,category,ASPNETMVC" />
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
The default mechanism for passing data from an ASP.NET MVC controller to the view
is to use the ViewData property of the controller and view which is of type ViewDataDictionary.
The ViewDataDictionary is a string indexed collection of type object. My main issue
with this mechanism is two fold. I’m not a big fan of string indexed collections and
I don’t want to have to cast to get at the type of the class instance in the collection.
</p>
        <p>
The next option is to use the Model property of the ViewDataDictionary. The Model
property of ViewData allows a strongly typed way to pass data from the controller
to the view. The question becomes what type should be used? One choice is to use a
specific type for each controller action and view, but this gets a bit cumbersome.
Instead I propose using a collection indexed by type which is assigned to the Model
property of ViewData.
</p>
        <p>
I created a project called TTC Tools which houses the ITypeInstanceDictionary, which
provides a generic mechanism to pass various types from controller to view in a more
strongly typed way than the ViewDataDictionary.
</p>
        <p>
I documented some <a href="http://wiki.thethoughtfulcoder.com/TTC-Tools.TypeInstanceDictionary-Usage.ashx">basic
usage scenarios for the type instance dictionary</a> on my wiki. I also created a
screen cast to document basic usage in an ASP.NET MVC application.
</p>
        <object width="660" height="405">
          <param name="movie" value="http://www.youtube.com/v/ZrEvCotAp4M&amp;hl=en_US&amp;fs=1?color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
          <param name="allowFullScreen" value="true" />
          <param name="allowscriptaccess" value="always" />
          <embed src="http://www.youtube.com/v/ZrEvCotAp4M&amp;hl=en_US&amp;fs=1?color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
          </embed>
        </object>
        <p>
The basic idea is the dictionary provides the template functions Add&lt;T&gt;, Get&lt;T&gt;,
and Contains&lt;T&gt;. The type T is used as the indexer of the dictionary, so instances
of various types can be added and retrieved from the dictionary.
</p>
        <p>
A very basic usage scenario from a unit test is illustrated as follows:
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/Awaytopassdata.NETMVCControllertotheView_1309A/ITypeInstanceDictionaryBasicUsageExample_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="ITypeInstanceDictionary Basic Usage Example" border="0" alt="ITypeInstanceDictionary Basic Usage Example" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/Awaytopassdata.NETMVCControllertotheView_1309A/ITypeInstanceDictionaryBasicUsageExample_thumb.png" width="625" height="305" />
          </a>
        </p>
        <p>
The type does not have to be specified for the Add call, as the declared type of the
parameter will be used. The Get call must declare the type, as the type T is used
for the dictionary index.
</p>
        <p>
The type instance dictionary does allow multiple instances of the same type to be
added, but only if some other type of instance identifier is supplied. For example
an enumeration can be used to differentiate the types. An example of adding and retrieving
multiple instances of the same type using an enumerated type for the instance id follows:
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/Awaytopassdata.NETMVCControllertotheView_1309A/ITypeInstanceDictionaryMultipleOfSameInstanceExample_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="ITypeInstanceDictionary Multiple Of Same Instance Example" border="0" alt="ITypeInstanceDictionary Multiple Of Same Instance Example" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/Awaytopassdata.NETMVCControllertotheView_1309A/ITypeInstanceDictionaryMultipleOfSameInstanceExample_thumb.png" width="662" height="302" />
          </a>
        </p>
        <h3>Basic use in an ASP.NET MVC application
</h3>
        <p>
For convenience, derive all your controllers from a base controller that provides
a  property of type ITypeInstanceDictionary. My example uses a property named
TypeViewData.  The code for the base controller follows:
</p>
        <pre class="brush:csharp">   public class BaseController : Controller
   {
      ITypeInstanceDictionary _typeViewData = new TypeInstanceDictionary();

      public ITypeInstanceDictionary TypeViewData
      {
         get
         {
            return _typeViewData;
         }
         set
         {
            _typeViewData = value;
         }
      }
   }</pre>
        <p>
Controller actions that return a ViewResult should use the controller View function
overload which accepts the model argument. The TypeViewData property should be passed
into the view function as follows:
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/Awaytopassdata.NETMVCControllertotheView_1309A/ReturnITypeInstanceDictionaryFromAspNetMvcControllerAction_2.png">
            <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Return ITypeInstanceDictionary From ASP.NET MVC Controller Action" border="0" alt="Return ITypeInstanceDictionary From ASP.NET MVC Controller Action" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/Awaytopassdata.NETMVCControllertotheView_1309A/ReturnITypeInstanceDictionaryFromAspNetMvcControllerAction_thumb.png" width="490" height="265" />
          </a>
        </p>
        <p>
The view should then use the template version of the ViewPage class, with the type
set to TTC.Tools.ITypeInstanceDictionary. The template version of the ViewPage class
strongly types the Model property of the View.  The Model property can then use
the Get&lt;T&gt; function to retrieve the data sent from the controller. An example
of the view code follows:
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/Awaytopassdata.NETMVCControllertotheView_1309A/ITypeInstanceDictionaryAspNetMvcViewExample_2.png">
            <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="ITypeInstanceDictionary ASP.NET MVC View Example" border="0" alt="ITypeInstanceDictionary ASP.NET MVC View Example" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/Awaytopassdata.NETMVCControllertotheView_1309A/ITypeInstanceDictionaryAspNetMvcViewExample_thumb.png" width="634" height="524" />
          </a>
        </p>
        <p>
You can find the code, which includes a sample web site using the type instance dictionary,
at the <a href="http://github.com/nfox-ttc/TTC-Tools">TTC Tools GitHub page</a>. I’ve
also created some <a href="http://wiki.thethoughtfulcoder.com/TTC-Tools.TTC-Tools-Home.ashx">basic
documentation on my wiki</a>.
</p>
        <p>
If you have any questions please let me know!  I’m not sure if others will find
this useful, but you never know :-)
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=7832276c-963b-4310-af20-1fe3ddf9209c" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Wii Lego Harry Potter room with two tables bug (Year 2 Expelliarmus Lesson)</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/07/08/Wii-Lego-Harry-Potter-Room-With-Two-Tables-Bug-Year-2-Expelliarmus-Lesson" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,b8778eed-d8bb-4292-9f60-5391839d5b01</id>
    <published>2010-07-07T22:41:21.236-04:00</published>
    <updated>2010-07-07T22:41:21.236-04:00</updated>
    <category term="Entertainment" label="Entertainment" scheme="http://thethoughtfulcoder.com/CategoryView,category,Entertainment" />
    <category term="Games" label="Games" scheme="http://thethoughtfulcoder.com/CategoryView,category,Games" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
You might get stuck on the Wii Lego Harry Potter Expelliarmus Lesson. You can end
up in the room stuck on the tables unable to get off.  I searched a bit and found
the solution on this <a href="http://www.videogamesblogger.com/2010/06/25/lego-harry-potter-walkthrough-video-guide-wii-xbox-360-ps3-pc-psp.htm">Lego
Harry Potter walkthrough</a>. The short of it is to press C to skip the video of Snape
attacking the other teacher :-)
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=b8778eed-d8bb-4292-9f60-5391839d5b01" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Copy and paste text in Windows PowerShell with mouse right clicks</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/07/05/Copy-And-Paste-Text-In-Windows-PowerShell-With-Mouse-Right-Clicks" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,50dbbf54-8b04-4ba1-9515-9025da9557d7</id>
    <published>2010-07-04T23:42:40.251625-04:00</published>
    <updated>2010-07-04T23:42:40.251625-04:00</updated>
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I happened across a nice shortcut to copy and paste text in Windows PowerShell. Highlight
some text in PowerShell with the mouse, right click to copy the text, and right click
again to paste the text at the cursor. If you right click in PowerShell, the current
text content of the clipboard will be copied at the cursor.
</p>
        <p>
I did a short video showing this happy shortcut on Windows 7.
</p>
        <object width="660" height="405">
          <param name="movie" value="http://www.youtube.com/v/zn8lTJcveIE&amp;hl=en_US&amp;fs=1?color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
          <param name="allowFullScreen" value="true" />
          <param name="allowscriptaccess" value="always" />
          <embed src="http://www.youtube.com/v/zn8lTJcveIE&amp;hl=en_US&amp;fs=1?color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
          </embed>
        </object>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=50dbbf54-8b04-4ba1-9515-9025da9557d7" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Visual Studio 2010 Attach Security Warning – Trying to attach to w3wp.exe</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/04/25/Visual-Studio-2010-Attach-Security-Warning-Trying-To-Attach-To-W3wpexe" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,28697dfc-dce6-4a35-aaa2-fff1762c0a15</id>
    <published>2010-04-24T22:56:16.164625-04:00</published>
    <updated>2010-04-24T22:56:16.164625-04:00</updated>
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <category term="Visual Studio" label="Visual Studio" scheme="http://thethoughtfulcoder.com/CategoryView,category,VisualStudio" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
When debugging web projects, I always use Attach to Process. Initially when attaching
to the w3wp.exe process after a fresh Visual Studio 2010 install the following warning
will popup every time:
</p>
        <p>
          <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Attach To Process Dialog" border="0" alt="Attach To Process Dialog" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/VisualStudio2010AttachSecurityWarnin.exe_14220/AttachToProcessDialog_3.png" width="433" height="248" />
        </p>
        <p>
This will not do!
</p>
        <p>
You can modify the following registry entry to stop this dialog from popping up:
</p>
        <p>
 <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="DisableAttachSecurityWarning Registry Entry" border="0" alt="DisableAttachSecurityWarning Registry Entry" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/VisualStudio2010AttachSecurityWarnin.exe_14220/DisableAttachSecurityWarningRegistryEntry_8.png" width="634" height="331" /></p>
        <p>
        </p>
        <p>
Set the value DisableAttachSecurityWarning to 1 under the registry key HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\Debugger
.
</p>
        <p>
I believe this applies to Visual 2008 as well although you would use 9.0 instead of
10.0 in the registry key path.
</p>
        <p>
I hope this helps :-)
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=28697dfc-dce6-4a35-aaa2-fff1762c0a15" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Godzilla Final Wars – A fun Godzilla movie</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/04/01/Godzilla-Final-Wars-A-Fun-Godzilla-Movie" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,4467c5a5-338b-4911-8d56-1a6da04c16e4</id>
    <published>2010-03-31T22:43:49.765625-04:00</published>
    <updated>2010-03-31T22:43:49.765625-04:00</updated>
    <category term="Entertainment" label="Entertainment" scheme="http://thethoughtfulcoder.com/CategoryView,category,Entertainment" />
    <category term="Movies" label="Movies" scheme="http://thethoughtfulcoder.com/CategoryView,category,Movies" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-AtomicRay_2.png">
            <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Godzilla Fina lWars Atomic Ray" border="0" alt="Godzilla Fina lWars Atomic Ray" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-AtomicRay_thumb.png" width="651" height="248" />
          </a>
        </p>
        <div style="float: right; margin-left: 8px">
          <iframe style="width: 120px; height: 240px" marginheight="0" src="http://rcm.amazon.com/e/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;nou=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=thethoucom-20&amp;o=1&amp;p=8&amp;l=as1&amp;m=amazon&amp;f=ifr&amp;md=10FE9736YVPPT7A0FBG2&amp;asins=B000BMY2L0" frameborder="0" marginwidth="0" scrolling="no">
          </iframe>
        </div>
        <p>
I watched <a href="http://www.imdb.com/title/tt0399102/">Godzilla Final Wars</a> the
other night with my son. He thinks Godzilla is cool! Hopefully I’m not raising him
to be too much of a nerd :-) 
</p>
        <p>
I grew up watching Godzilla movies in the theatre during 70’s and have been hooked
ever since. I was a huge Godzilla fan as a kid. If only we had a VCR back then so
I could have taped the creature features.
</p>
        <p>
Godzilla is definitely a love hate thing. Either you see a guy in a suite or you see
a giant monster trashing everything in sight. I’m still a kid at heart, so I still
see a giant monster. It is not as magical as it was back in the day, but I still love
it.
</p>
        <p>
What I really enjoyed about Final Wars is that it pulls out all the stops and throws
in every campy idea including aliens, bad acting, tons of monsters, and a ridiculous
story line which make for a good Godzilla flick :-D
</p>
        <p>
I gave Godzilla Final Wars 7/10 on <a href="http://www.imdb.com/">IMDb</a>.
</p>
        <p>
Here are some highlights of the film:
</p>
        <p align="center">
You have to love how Godzilla gets hit with a blast like the following:
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-Explosion_2.png">
            <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Godzilla Final Wars Explosion" border="0" alt="Godzilla Final Wars Explosion" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-Explosion_thumb.png" width="538" height="205" />
          </a>
        </p>
        <p align="center">
Then he is standing there in an enormous crater :-D He’s one tough customer!
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-ImpactCrater_2.png">
            <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Godzilla Final Wars Impact Crater" border="0" alt="Godzilla Final Wars Impact Crater" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-ImpactCrater_thumb.png" width="538" height="205" />
          </a>
        </p>
        <p align="center">
I love how the Hollywood Godzilla makes an appearance in the film only to end up at
the end of a bit of atomic fire :-)
</p>
        <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-AmericanGodzilla_2.png">
          <img style="border-right-width: 0px; margin: 0px 0px 0px 25px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Godzilla Final Wars Hollywood Godzilla" border="0" alt="Godzilla Final Wars Hollywood Godzilla" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-AmericanGodzilla_thumb.png" width="244" height="151" />
        </a>
        <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-TheEndOfTheAmericanGodzilla_2.png">
          <img style="border-right-width: 0px; margin: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="GodzillaFinalWars-TheEndOfTheAmericanGodzilla" border="0" alt="GodzillaFinalWars-TheEndOfTheAmericanGodzilla" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-TheEndOfTheAmericanGodzilla_thumb.png" width="385" height="147" />
        </a>
        <p align="center">
I like to call the Hollywood Godzilla Giguana. It certainly looks more like a giant
iguana than Godzilla.
</p>
        <p align="center">
Many <a href="http://en.wikipedia.org/wiki/Kaiju">kaiju</a> make appearances in Final
Wars. Some of the contestants include <a href="http://en.wikipedia.org/wiki/Gigan">Gigan</a>, <a href="http://en.wikipedia.org/wiki/Anguirus">Anguirus</a>, <a href="http://en.wikipedia.org/wiki/Kamacuras">Kamacuras</a>, <a href="http://en.wikipedia.org/wiki/Kumonga">Kumonga</a>, <a href="http://en.wikipedia.org/wiki/Ebirah">Ebirah</a>, <a href="http://en.wikipedia.org/wiki/King_Caesar">King
Caesar</a>, <a href="http://en.wikipedia.org/wiki/Mothra">Mothra</a>, <a href="http://en.wikipedia.org/wiki/Rodan">Rodan</a>,
and <a href="http://en.wikipedia.org/wiki/Hedorah">Hedorah</a>. Some of them are shown
below.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-Gigan_2.png">
            <img style="border-right-width: 0px; margin: 0px 0px 0px 35px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Godzilla Final Wars Gigan" border="0" alt="Godzilla Final Wars Gigan" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-Gigan_thumb.png" width="208" height="205" />
          </a>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-Kumonga_2.png">
            <img style="border-right-width: 0px; margin: 0px 0px 35px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Godzilla Final Wars Kumonga" border="0" alt="Godzilla Final Wars Kumonga" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-Kumonga_thumb.png" width="382" height="146" />
          </a>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-KingCaesar_4.png">
            <img style="border-right-width: 0px; margin: 0px 0px 0px 75px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Godzilla Final Wars King Caesar" border="0" alt="Godzilla Final Wars King Caesar" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-KingCaesar_thumb_1.png" width="244" height="151" />
          </a>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-Rodan_2.png">
            <img style="border-right-width: 0px; margin: 0px 0px 15px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Godzilla Final Wars Rodan" border="0" alt="Godzilla Final Wars Rodan" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-Rodan_thumb.png" width="244" height="122" />
          </a>  <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-Anguirus_4.png"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Godzilla Final Wars Anguirus" border="0" alt="Godzilla Final Wars Anguirus" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-Anguirus_thumb_1.png" width="244" height="129" /></a></p>
        <p>
        </p>
        <p>
        </p>
        <p>
        </p>
        <p>
        </p>
        <p>
        </p>
        <p align="center">
I thought the latest kaiju, Monster X, was cool. 
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-MonsterXLiftingGodzilla_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Godzilla Final Wars Monster X Lifting Godzilla" border="0" alt="Godzilla Final Wars Monster X Lifting Godzilla" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-MonsterXLiftingGodzilla_thumb.png" width="390" height="228" />
          </a>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-MonsterXBattlesGodzilla_2.png">
            <img style="border-right-width: 0px; margin: 0px 0px 15px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Godzilla Final Wars Monster X Battles Godzilla" border="0" alt="Godzilla Final Wars Monster X Battles Godzilla" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-MonsterXBattlesGodzilla_thumb.png" width="244" height="186" />
          </a>
        </p>
        <p>
        </p>
        <p align="center">
You have to love the alien’s shades.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-CoolShades_4.png">
            <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Godzilla Final Wars Cool Shades" border="0" alt="Godzilla Final Wars Cool Shades" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-CoolShades_thumb_1.png" width="434" height="265" />
          </a>
        </p>
        <p align="center">
I love the M. Bison look!
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-M-Bison_2.png">
            <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Godzilla Final Wars M. Bison Look" border="0" alt="Godzilla Final Wars M. Bison Look" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-M-Bison_thumb.png" width="339" height="227" />
          </a>
        </p>
        <p align="center">
Godzilla taught his son well.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-MinillaWearsASeatBelt_4.png">
            <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Godzilla Final Wars Minilla Wears A Seat Belt" border="0" alt="Godzilla Final Wars Minilla Wears A Seat Belt" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GodzillaFinalWarsAfunGodzillamovie_15142/GodzillaFinalWars-MinillaWearsASeatBelt_thumb_1.png" width="640" height="242" />
          </a>
        </p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=4467c5a5-338b-4911-8d56-1a6da04c16e4" />
      </div>
    </content>
  </entry>
  <entry>
    <title>All That Remains – The Fall Of Ideals – This album rocks!</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/03/27/All-That-Remains-The-Fall-Of-Ideals-This-Album-Rocks" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,9e69aaad-7c16-4306-880c-911a52edd979</id>
    <published>2010-03-27T14:44:12.435-04:00</published>
    <updated>2010-03-27T14:44:22.71625-04:00</updated>
    <category term="Entertainment" label="Entertainment" scheme="http://thethoughtfulcoder.com/CategoryView,category,Entertainment" />
    <category term="Music" label="Music" scheme="http://thethoughtfulcoder.com/CategoryView,category,Music" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <div style="position: relative; float: right; right: 20px">
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/AllThatRemainsTheFallOfIdeals_6D2/AllThatRemains-TheFallOfIdeals_2.jpg">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="AllThatRemains-TheFallOfIdeals" border="0" alt="AllThatRemains-TheFallOfIdeals" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/AllThatRemainsTheFallOfIdeals_6D2/AllThatRemains-TheFallOfIdeals_thumb.jpg" width="180" height="180" />
          </a> 
</div>
        <div style="position: absolute; top: 290px; right: 50px">
          <strike>
          </strike>
          <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" id="Player_4cb03343-42ef-4260-9a7b-cd5987ca263d" width="250px" height="250px">
            <param name="movie" value="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&amp;MarketPlace=US&amp;ID=V20070822%2FUS%2Fthethoucom-20%2F8014%2F4cb03343-42ef-4260-9a7b-cd5987ca263d&amp;Operation=GetDisplayTemplate" />
            <param name="quality" value="high" />
            <param name="bgcolor" value="#FFFFFF" />
            <param name="allowscriptaccess" value="always" />
            <embed src="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&amp;MarketPlace=US&amp;ID=V20070822%2FUS%2Fthethoucom-20%2F8014%2F4cb03343-42ef-4260-9a7b-cd5987ca263d&amp;Operation=GetDisplayTemplate" id="Player_4cb03343-42ef-4260-9a7b-cd5987ca263d" quality="high" bgcolor="#ffffff" name="Player_4cb03343-42ef-4260-9a7b-cd5987ca263d" allowscriptaccess="always" type="application/x-shockwave-flash" align="middle" height="250px" width="250px">
            </embed>
          </object>
          <noscript>
          </noscript>
        </div>
        <div style="width: 430px; float: left">
          <p>
This album absolutely rocks. Usually I only like a portion of the songs on an album,
but this compilation from <a href="http://www.allthatremainsonline.com/">All That
Remains</a> is freakin awesome. The Fall Of Ideals has hard hitting vocals and sound
on every song. I’ve been listening to this album a lot ever since I discovered it.
This is good coding music :-) If you are not familiar with the metal genre, I suggest
you read my post <a href="http://thethoughtfulcoder.com/2010/03/27/How-To-Start-Listening-To-Metal-Its-An-Acquired-Taste">How
to start listening to Metal – It’s an acquired taste</a>.
</p>
          <p>
Songs on my playlist:
</p>
          <ul>
            <li>
This Calling 
</li>
            <li>
Not Alone 
</li>
            <li>
It Dwells In Me 
</li>
            <li>
We Stand 
</li>
            <li>
Whispers (I Hear You) 
</li>
            <li>
The Weak Willed 
</li>
            <li>
Six 
</li>
            <li>
Become the Catalyst 
</li>
            <li>
The Air that I Breath 
</li>
            <li>
Empty Inside (this is my favorite) 
</li>
          </ul>
          <p>
Songs not on my playlist:
</p>
          <ul>
            <li>
Indictment 
</li>
          </ul>
          <p>
So 10/11 songs are on my playlist. Yes it rocks!
</p>
        </div>
        <div style="clear: both">
        </div>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=9e69aaad-7c16-4306-880c-911a52edd979" />
      </div>
    </content>
  </entry>
  <entry>
    <title>How to start listening to Metal – It’s an acquired taste</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/03/27/How-To-Start-Listening-To-Metal-Its-An-Acquired-Taste" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,6016efa9-e60d-4d6c-bb18-a0c9e6bcd25b</id>
    <published>2010-03-27T14:41:13.27875-04:00</published>
    <updated>2010-03-27T14:41:58.169375-04:00</updated>
    <category term="Entertainment" label="Entertainment" scheme="http://thethoughtfulcoder.com/CategoryView,category,Entertainment" />
    <category term="Music" label="Music" scheme="http://thethoughtfulcoder.com/CategoryView,category,Music" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <div style="float: right; margin-left: 8px">
          <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" id="Player_b55c68b3-e360-4e29-b0ae-bbfa551472f7" width="250px" height="250px">
            <param name="movie" value="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&amp;MarketPlace=US&amp;ID=V20070822%2FUS%2Fthethoucom-20%2F8014%2Fb55c68b3-e360-4e29-b0ae-bbfa551472f7&amp;Operation=GetDisplayTemplate" />
            <param name="quality" value="high" />
            <param name="bgcolor" value="#FFFFFF" />
            <param name="allowscriptaccess" value="always" />
            <embed src="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&amp;MarketPlace=US&amp;ID=V20070822%2FUS%2Fthethoucom-20%2F8014%2Fb55c68b3-e360-4e29-b0ae-bbfa551472f7&amp;Operation=GetDisplayTemplate" id="Player_b55c68b3-e360-4e29-b0ae-bbfa551472f7" quality="high" bgcolor="#ffffff" name="Player_b55c68b3-e360-4e29-b0ae-bbfa551472f7" allowscriptaccess="always" type="application/x-shockwave-flash" align="middle" height="250px" width="250px">
            </embed>
          </object>
          <noscript>
          </noscript>
        </div>
        <p>
Ever since my cousin told me to listen to Metallica’s <strong>…<em>And Justice for
All</em></strong> some 20 years ago I’ve been a metal listener. I remember when I
first listened to the album, I couldn’t stand it. My cousin advised me I needed to
listen to it many times before I came to a judgment. At first my ear could not pick
up the speed and sound of the music. Gradually it started to slow down and the music
started make sense. Before I knew it, I realized this music rocks :-)
</p>
        <p>
I imagine metal is a bit like beer, it is an acquired taste for most people. Actually,
I suppose for most listeners it is the proverbial nails on the chalk board :-) Metal
is certainly music living on the fringe. I believe this genre of music is misunderstood
and, if given a chance, stands strong on its own merits. It has a power and energy
that is unmatched in the music world. After you acquire a taste for metal other music
seems to lack a little something.
</p>
        <p>
It is not that metal is the best and everything else sucks. I enjoy the full spectrum
of music genres. Certainly music is a completely subjective experience, but missing
a little metal in your diet might deprive your ears of some much needed noise.
</p>
        <p>
I normally listen to music while coding. For years sleep apnea made it hard for me
to push through the day, so listening to music helped me to keep me going and stay
focused. I couldn’t exactly listen to Enya and keep alert :-) Metal is a bit of an
aural caffeine.
</p>
        <p>
So I suggest starting out with Metallica’s<strong><em> …And Justice for All</em></strong>.
Listen to the album at least 5 times. If it doesn’t start making sense then maybe
metal just isn’t for you :-(
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=6016efa9-e60d-4d6c-bb18-a0c9e6bcd25b" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Astro Boy (2009) – Many seem to dislike it, but my son and I really enjoyed it</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/03/27/Astro-Boy-2009-Many-Seem-To-Dislike-It-But-My-Son-And-I-Really-Enjoyed-It" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,72840713-c8b4-4da0-b33a-cb04735e27f2</id>
    <published>2010-03-27T00:37:43.31-04:00</published>
    <updated>2010-03-27T00:37:43.31-04:00</updated>
    <category term="Entertainment" label="Entertainment" scheme="http://thethoughtfulcoder.com/CategoryView,category,Entertainment" />
    <category term="Movies" label="Movies" scheme="http://thethoughtfulcoder.com/CategoryView,category,Movies" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/AstroBoy2009Manyseemtodislikeitbutmysona_7BA/AstroBoy_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="AstroBoy" border="0" alt="AstroBoy" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/AstroBoy2009Manyseemtodislikeitbutmysona_7BA/AstroBoy_thumb.png" width="665" height="285" />
          </a>
        </p>
        <div style="float: right; margin-left: 8px">
          <iframe style="width: 120px; height: 240px" marginheight="0" src="http://rcm.amazon.com/e/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;nou=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=thethoucom-20&amp;o=1&amp;p=8&amp;l=as1&amp;m=amazon&amp;f=ifr&amp;md=10FE9736YVPPT7A0FBG2&amp;asins=B001PR0Y80" frameborder="0" marginwidth="0" scrolling="no">
          </iframe>
        </div>
        <p>
My son and I watched Astro Boy this evening and we both really enjoyed it. As of writing
this blog entry <a href="http://www.imdb.com/title/tt0375568/">Astro Boy has a rating
of 6.4/10 on IMDb</a>. It seems like many people really dislike the film. Personally
I found the story engaging and a bit sad in many ways. A father creating a robot to
replace his dead son is a bit heart wrenching.
</p>
        <p>
The plot line involving the villain probably could have been better, but I think the
rest of the story was engaging for adults and kids.
</p>
        <p>
After watching Astro Boy my son excitedly stated we should buy it :-) After all, guns
popping out of Astro Boy’s butt was a highlight not to soon be forgotten and I”m sure
will often be recounted in the days to come :-D
</p>
        <p>
I give the movie 8/10. 
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=72840713-c8b4-4da0-b33a-cb04735e27f2" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Visual Studio Compiler Error CS1548 - Cryptographic failure while signing assembly on Windows 7</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/03/27/Visual-Studio-Compiler-Error-CS1548-Cryptographic-Failure-While-Signing-Assembly-On-Windows-7" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,6af8d060-c53e-4ac5-8900-e2011e48d681</id>
    <published>2010-03-26T23:23:47.21625-04:00</published>
    <updated>2010-03-26T23:25:43.888125-04:00</updated>
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <category term="Visual Studio" label="Visual Studio" scheme="http://thethoughtfulcoder.com/CategoryView,category,VisualStudio" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I received the error Compiler Error CS1548 Cryptographic failure while signing assembly
from a Visual Studio 2008 build after modifying a project to sign the assembly with
a strong name from an existing key file. 
</p>
        <p>
I had a similar issue when trying to create a strong name key file on a different
machine.  I created a blog post about <a href="http://thethoughtfulcoder.com/2010/03/16/Strong-Name-Access-Denied-Error-On-Windows-7-64bit-From-Visual-Studio-And-Snexe">an
error creating a strong name key file from Visual Studio or sn.exe.</a> It ends up
adding the security rights mentioned in my other blog post fixes this issue as well.
</p>
        <p>
To solve the issue on Windows 7 you can add modify permissions to your user for the
C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys folder. Please see my other post for
more information.
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=6af8d060-c53e-4ac5-8900-e2011e48d681" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Numbered Google search results in FireFox</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/03/21/Numbered-Google-Search-Results-In-FireFox" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,63b2a932-fae8-4831-9296-16bf72f42abb</id>
    <published>2010-03-21T10:04:40.27875-04:00</published>
    <updated>2010-03-21T10:05:23.84125-04:00</updated>
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I’ve been using a nice <a href="http://www.mozilla.com/en-US/firefox/personal.html">FireFox</a> <a href="https://addons.mozilla.org/en-US/firefox/addon/748">Greasemonkey</a> script
to number my Google search results.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/NumberedGooglesearchresults_8CF6/NumberedGoogleSearchResults_2.png">
            <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Numbered Google Search Results" border="0" alt="Numbered Google Search Results" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/NumberedGooglesearchresults_8CF6/NumberedGoogleSearchResults_thumb.png" width="602" height="599" />
          </a> 
</p>
        <p>
I originally found the <a href="http://www.scratch99.com/greasemonkey-script-google-numbered-search-results/">Google
search results numbering script on the blog More Than Scratch The Surface</a>. The <a href="http://userscripts.org/scripts/show/57306">Google
search results script can be found on userscripts.org</a>.
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=63b2a932-fae8-4831-9296-16bf72f42abb" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Strong name access denied error on Windows 7 64-bit from Visual Studio and sn.exe</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/03/16/Strong-Name-Access-Denied-Error-On-Windows-7-64bit-From-Visual-Studio-And-Snexe" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,b792dff6-6f1f-4e45-9c29-823539f512bb</id>
    <published>2010-03-15T23:58:48.888125-04:00</published>
    <updated>2010-03-22T21:05:14.513125-04:00</updated>
    <category term=".NET" label=".NET" scheme="http://thethoughtfulcoder.com/CategoryView,category,NET" />
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <category term="Visual Studio" label="Visual Studio" scheme="http://thethoughtfulcoder.com/CategoryView,category,VisualStudio" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I was trying to create a strong name for an assembly in Visual Studio from the project
properties using the dialog:
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/StrongnameaccessdeniederroronWindows.exe_15108/CreateStrongNameKeyDialog_2.png">
            <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Create Strong Name Key Dialog" border="0" alt="Create Strong Name Key Dialog" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/StrongnameaccessdeniederroronWindows.exe_15108/CreateStrongNameKeyDialog_thumb.png" width="458" height="284" />
          </a>
        </p>
        <p>
After clicking OK I received the following error message: The operation could not
be completed. Access is denied.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/StrongnameaccessdeniederroronWindows.exe_15108/StrongNameAccessDeniedMessageBox_2.png">
            <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Strong Name Access Denied Message Box" border="0" alt="Strong Name Access Denied Message Box" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/StrongnameaccessdeniederroronWindows.exe_15108/StrongNameAccessDeniedMessageBox_thumb.png" width="424" height="175" />
          </a>
        </p>
        <p>
I then tried from the command prompt using sn.exe and received the same type of message:
Failed to generate a strong name key pair -- Access is denied.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/StrongnameaccessdeniederroronWindows.exe_15108/sn-AccessDeniedCommandPromptMessage_2.png">
            <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="sn-AccessDeniedCommandPromptMessage" border="0" alt="sn-AccessDeniedCommandPromptMessage" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/StrongnameaccessdeniederroronWindows.exe_15108/sn-AccessDeniedCommandPromptMessage_thumb.png" width="644" height="174" />
          </a>
        </p>
        <p>
        </p>
        <p>
I found the following blog post <a href="http://www.dasblonde.net/2006/02/19/ClickOnceCreateStrongNameKeyAccessDeniedError.aspx" target="_blank">Create
Strong Name Key - Access Denied Error</a>, but it applies to Windows XP. I searched
around for a RSA\MachineKeys folder and found three different locations but it seems
the folder C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys is the magic place.
</p>
        <p>
I gave my user the following permissions on the MachineKeys folder and then I was
able to sign my assembly :-D
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/StrongnameaccessdeniederroronWindows.exe_15108/ModifyPermissions_2.png">
            <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Modify Permissions" border="0" alt="Modify Permissions" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/StrongnameaccessdeniederroronWindows.exe_15108/ModifyPermissions_thumb.png" width="333" height="137" />
          </a>
        </p>
        <p>
When I changed the permissions on the folder it complained I could not change permissions
on the files in the folder, so I cancelled out of the application of the file permissions.
It looks like I’d have to take ownership of the existing files in order to change
their permissions which I decided not to do at this point.
</p>
        <p>
I hope this helps :-)
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=b792dff6-6f1f-4e45-9c29-823539f512bb" />
      </div>
    </content>
  </entry>
  <entry>
    <title>A way to determine if an ASP.NET MVC view exists</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/03/16/A-Way-To-Determine-If-An-ASPNET-MVC-View-Exists" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,03a75244-b7bd-4401-9e2a-4eec4dc3e9b2</id>
    <published>2010-03-15T22:25:18.794375-04:00</published>
    <updated>2010-03-15T22:25:18.794375-04:00</updated>
    <category term="ASP.NET MVC" label="ASP.NET MVC" scheme="http://thethoughtfulcoder.com/CategoryView,category,ASPNETMVC" />
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I needed some code to determine if an ASP.NET MVC view exists. For a particular controller
I’m dynamically determining the view to return by name. I looked at the source code
for ASP.NET MVC and figured out how views are found and came up with the following
code:
</p>
        <pre class="brush: csharp">public ActionResult Page(string viewName)
{
   ViewEngineResult viewResult = ViewEngines.Engines.FindView(ControllerContext, viewName, null);

   if (viewResult.View == null)
   {
      throw new HttpException(404, "404 - View Not Found");
   }

   return View(viewName);
}</pre>
        <p>
This function is a member of a controller class. I wanted to check if the view exists
and return a HTTP 404 result if the view is not found. There is likely a better way
to wrap up the call in a helper function, but this illustrates the principle.
</p>
        <p>
There may be another or better way to do this, but this works for now and hopefully
might help someone else as well :-)
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=03a75244-b7bd-4401-9e2a-4eec4dc3e9b2" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Visual Studio 2010 highlighted reference color may cause an issue with non-default color schemes</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/03/14/Visual-Studio-2010-Highlighted-Reference-Color-May-Cause-An-Issue-With-Nondefault-Color-Schemes" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,3eb1792b-1ecf-4156-8c5f-41214b816db0</id>
    <published>2010-03-13T20:30:03.484375-05:00</published>
    <updated>2010-03-13T20:30:03.484375-05:00</updated>
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <category term="Visual Studio" label="Visual Studio" scheme="http://thethoughtfulcoder.com/CategoryView,category,VisualStudio" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
After importing my color scheme from Visual Studio 2008 into Visual Studio 2010 I
found a problem with the color used to highlight references. The background highlight
shows up on the text under the caret for things like variables, functions, classes,
etc. and any text that is a reference.
</p>
        <p>
I created a short video to show how to deal with this issue.
</p>
        <p>
          <object width="660" height="405">
            <param name="movie" value="http://www.youtube.com/v/xAATK7kUBQ4&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
            <param name="allowFullScreen" value="true" />
            <param name="allowscriptaccess" value="always" />
            <embed src="http://www.youtube.com/v/xAATK7kUBQ4&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
            </embed>
          </object>
        </p>
        <p>
The setting in Visual Studio 2010 is under the Tools…Options menu.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/VisualStudio2010highlightedreferencecolo_D4F1/VisualStudio2010ToolsMenu_4.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Visual Studio 2010 Tools Menu" border="0" alt="Visual Studio 2010 Tools Menu" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/VisualStudio2010highlightedreferencecolo_D4F1/VisualStudio2010ToolsMenu_thumb_1.png" width="353" height="421" />
          </a>
        </p>
        <p>
Go to Environment… fonts and colors… Display item Highlighted Reference and change
the item background.  If you want to get rid of the Highlighted Reference color
then choose an item background of Automatic.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/VisualStudio2010highlightedreferencecolo_D4F1/VisualStudio2010-OptionsFontsColorsDialog_4.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Visual Studio 2010 Options Fonts Colors Dialog" border="0" alt="Visual Studio 2010 Options Fonts Colors Dialog" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/VisualStudio2010highlightedreferencecolo_D4F1/VisualStudio2010-OptionsFontsColorsDialog_thumb_1.png" width="644" height="376" />
          </a>
        </p>
        <p>
        </p>
        <p>
        </p>
        <p>
        </p>
        <p>
        </p>
        <p>
I hope this helps someone :-)
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=3eb1792b-1ecf-4156-8c5f-41214b816db0" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Visual Studio 2010 floating code windows</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/03/06/Visual-Studio-2010-Floating-Code-Windows" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,06f4b7db-2a31-481b-ab47-8467d92708d8</id>
    <published>2010-03-06T13:42:16.671-05:00</published>
    <updated>2010-03-07T00:19:49.95225-05:00</updated>
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <category term="Visual Studio" label="Visual Studio" scheme="http://thethoughtfulcoder.com/CategoryView,category,VisualStudio" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I’ve wanted floating code windows in Visual Studio for a long time now. Visual Studio
2010 now supports it :-D I created a short video showing floating code windows in
Visual Studio 2010 release candidate 1.
</p>
        <object width="660" height="405">
          <param name="movie" value="http://www.youtube.com/v/lR2Pf9YH4Fo&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
          <param name="allowFullScreen" value="true" />
          <param name="allowscriptaccess" value="always" />
          <embed src="http://www.youtube.com/v/lR2Pf9YH4Fo&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
          </embed>
        </object>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=06f4b7db-2a31-481b-ab47-8467d92708d8" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Getting Starcraft to run on Windows 7</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/03/05/Getting-Starcraft-To-Run-On-Windows-7" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,b92d8a05-ffb8-41af-a117-9003a7c3f99a</id>
    <published>2010-03-04T23:55:17.342875-05:00</published>
    <updated>2010-03-07T00:20:51.249125-05:00</updated>
    <category term="Entertainment" label="Entertainment" scheme="http://thethoughtfulcoder.com/CategoryView,category,Entertainment" />
    <category term="Games" label="Games" scheme="http://thethoughtfulcoder.com/CategoryView,category,Games" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I haven’t played Starcraft in forever and decided to play it again. I went out and
bought a copy which surprisingly is still in the store given its age. I was a bit
worried about being able to get Starcraft to run on 64 bit Windows 7 but I found a
solution on Youtube from <a href="http://www.youtube.com/user/JimmyRogain">JimmyRogain</a> that
works for me.
</p>
        <object width="660" height="405">
          <param name="movie" value="http://www.youtube.com/v/N1_h3zDAVus&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
          <param name="allowFullScreen" value="true" />
          <param name="allowscriptaccess" value="always" />
          <embed src="http://www.youtube.com/v/N1_h3zDAVus&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
          </embed>
        </object>
        <p>
I thought this solution was very insightful. Nice fix :-)
</p>
        <p>
I’m running Starcraft on 64 bit Windows 7 using a batch file like the one described
in the video. I’ve included a sample <a href="http://thethoughtfulcoder.com/files/starcraft.zip">batch
file you can download from this link</a>. If you are running 64 bit you’ll need to
change the path to Program Files (x86) or change the path to your installation directory.
</p>
        <p>
I hope this helps :-D Happy crafting :-)
</p>
        <p>
          <strong>EDIT:</strong>
        </p>
        <p>
These are the compatibility settings I use for the starcraft.exe file.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GettingStarcrafttoworkonWindows7_14A6D/StarcraftWindows7CompatibilitySettings_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Starcraft Windows 7 Compatibility Settings" border="0" alt="Starcraft Windows 7 Compatibility Settings" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/GettingStarcrafttoworkonWindows7_14A6D/StarcraftWindows7CompatibilitySettings_thumb.png" width="381" height="537" />
          </a>
        </p>
        <p>
I haven’t tried the various permutations, but what is pictured seems to work for me.
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=b92d8a05-ffb8-41af-a117-9003a7c3f99a" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Microsoft Excel popup image for a worksheet cell</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/03/01/Microsoft-Excel-Popup-Image-For-A-Worksheet-Cell" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,01b86e77-5986-4a32-a264-2de2800f38d0</id>
    <published>2010-03-01T00:31:50.32725-05:00</published>
    <updated>2010-03-01T00:31:50.32725-05:00</updated>
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I was working on a Microsoft Excel 2007 spreadsheet and I wanted an image to popup
for a cell. I found a number of sites listing a solution, but they only explained
it in text so I thought I’d do it with some images and a video to make it clear. It
is a bit confusing.
</p>
        <p>
The first step is to add a comment for a cell.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/MicrosoftExcelpopupimageforaworksheetcel_14919/ExcelInsertComment_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Excel Insert Comment" border="0" alt="Excel Insert Comment" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/MicrosoftExcelpopupimageforaworksheetcel_14919/ExcelInsertComment_thumb.png" width="346" height="348" />
          </a>
        </p>
        <p>
Delete out the comment text.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/MicrosoftExcelpopupimageforaworksheetcel_14919/ExcelDeleteCommentText_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Excel Delete Comment Text" border="0" alt="Excel Delete Comment Text" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/MicrosoftExcelpopupimageforaworksheetcel_14919/ExcelDeleteCommentText_thumb.png" width="354" height="287" />
          </a>
        </p>
        <p>
Right click on the comment border and select the Format Comment… menu item.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/MicrosoftExcelpopupimageforaworksheetcel_14919/ExcelFormatCommentRightClick_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Excel Format Comment Right Click" border="0" alt="Excel Format Comment Right Click" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/MicrosoftExcelpopupimageforaworksheetcel_14919/ExcelFormatCommentRightClick_thumb.png" width="583" height="332" />
          </a>
        </p>
        <p>
On the Format Comment dialog choose the Colors and Lines tab. Then from the Color
drop down list choose the Fill Effects drop list item.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/MicrosoftExcelpopupimageforaworksheetcel_14919/ExcelFormatCommentDialog_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Excel Format Comment Dialog" border="0" alt="Excel Format Comment Dialog" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/MicrosoftExcelpopupimageforaworksheetcel_14919/ExcelFormatCommentDialog_thumb.png" width="451" height="440" />
          </a>
        </p>
        <p>
From the Fill Effects dialog choose the Picture tab and click the Select Picture…
button.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/MicrosoftExcelpopupimageforaworksheetcel_14919/ExcelFormatCommentFillEffectsPictureTab_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Excel Format Comment Fill Effects Picture Tab" border="0" alt="Excel Format Comment Fill Effects Picture Tab" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/MicrosoftExcelpopupimageforaworksheetcel_14919/ExcelFormatCommentFillEffectsPictureTab_thumb.png" width="460" height="502" />
          </a>
        </p>
        <p>
Choose the image file you want to use as the cell comment background and click the
Insert button.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/MicrosoftExcelpopupimageforaworksheetcel_14919/ExcelSelectPictureDialog_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Excel Select Picture Dialog" border="0" alt="Excel Select Picture Dialog" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/MicrosoftExcelpopupimageforaworksheetcel_14919/ExcelSelectPictureDialog_thumb.png" width="644" height="432" />
          </a>
        </p>
        <p>
Now click OK on the remaining open dialogs and when done you should see the comment
background showing the image you chose.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/MicrosoftExcelpopupimageforaworksheetcel_14919/ExcelImagePopupForACell_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Excel Image Popup For A Cell" border="0" alt="Excel Image Popup For A Cell" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/MicrosoftExcelpopupimageforaworksheetcel_14919/ExcelImagePopupForACell_thumb.png" width="369" height="272" />
          </a>
        </p>
        <p>
Please be mindful of the image file size as this image will make your Excel spreadsheet
that much bigger.
</p>
        <p>
I’ve created a video tutorial about how to add a popup image as well.
</p>
        <object width="660" height="525">
          <param name="movie" value="http://www.youtube.com/v/uZU52uN6Qvg&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
          <param name="allowFullScreen" value="true" />
          <param name="allowscriptaccess" value="always" />
          <embed src="http://www.youtube.com/v/uZU52uN6Qvg&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="525">
          </embed>
        </object>
        <p>
I hope this helps :-)
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=01b86e77-5986-4a32-a264-2de2800f38d0" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Lego Space Police Smash’n’Grab Built Fast</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/03/01/Lego-Space-Police-SmashnGrab-Built-Fast" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,44eb4146-faa0-4a89-8384-fc202fb16afb</id>
    <published>2010-02-28T22:39:07.217875-05:00</published>
    <updated>2010-03-07T00:27:22.01475-05:00</updated>
    <category term="Fatherhood" label="Fatherhood" scheme="http://thethoughtfulcoder.com/CategoryView,category,Fatherhood" />
    <category term="Legos" label="Legos" scheme="http://thethoughtfulcoder.com/CategoryView,category,Legos" />
    <category term="Personal" label="Personal" scheme="http://thethoughtfulcoder.com/CategoryView,category,Personal" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I built the Lego Space Police Smash’n’Grab model 5982 with my son. It took us a little
over 30 minutes to build but in this video we build it in around 1 minute :-)
</p>
        <object width="660" height="525">
          <param name="movie" value="http://www.youtube.com/v/oqMW6gcO5Jg&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
          <param name="allowFullScreen" value="true" />
          <param name="allowscriptaccess" value="always" />
          <embed src="http://www.youtube.com/v/oqMW6gcO5Jg&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="525">
          </embed>
        </object>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=44eb4146-faa0-4a89-8384-fc202fb16afb" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Google mysticism – How SEO really works</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/02/26/Google-Mysticism-How-SEO-Really-Works" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,016d9e7b-2466-4b58-8bfb-0eb03be1e514</id>
    <published>2010-02-25T23:13:00-05:00</published>
    <updated>2010-02-26T00:19:34.938875-05:00</updated>
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Since Google has secret algorithms for determining the organic search results there
ends up being lots of conjecture about how it works. Everyone has a theory and much
of it is contradictory. Even though the algorithms are secret, there is still a ton
of gaming of the search engine so Google spends a lot of time and resources trying
to identify those who are breaking the rules. Trying to get a handle on how to proceed
can be difficult. Many make a living just help websites with their SEO.
</p>
        <p>
When I comb through so much of the information out there it starts to feel like some
mystical entity exists called Google that millions a people spend a ton of time trying
to understand. Whether or not Google is pleased with your website can determine a
lot about how successful a website becomes. So I came up with some of the mystical
laws that we all need to follow in order to please Google.
</p>
        <ol>
          <li>
Matt Cutts shall be the voice of Google. All shall attempt to divine the meaning of
his every word. 
</li>
          <li>
If you publish too many gateway pages you shall be removed from the Index. 
</li>
          <li>
If you violate the law of Google you may be sent to the Sandbox and someday may be
allowed back into the Index. 
</li>
          <li>
Strive for many backlinks that are not nofollow and your Page Rank will be great. 
</li>
          <li>
If you try to gain SERP placement through hidden page content you will be removed
from the Index. 
</li>
          <li>
If you stray into the darkness of Black Hat SEO you shall be removed from the Index. 
</li>
          <li>
Strive to create great content and you shall be blessed with many backlinks and Google
will be pleased. 
</li>
          <li>
If you are removed from the Index you can request reconsideration through Google’s
Webmaster Tools. Google may have mercy on you and allow you back into the Index. 
</li>
          <li>
If you buy backlinks Google will know and you will be removed from the Index. 
</li>
          <li>
Do not question Google about removal from the Index, repent and hope for reconsideration. 
</li>
          <li>
Beware links to and from bad neighbors, Google shall reduce your SERP placement. 
</li>
          <li>
In the end Google shall own the world through the power of AdWords. 
</li>
        </ol>
        <p>
So please follow these laws and you might just end up with great Google search engine
placement.
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=016d9e7b-2466-4b58-8bfb-0eb03be1e514" />
      </div>
    </content>
  </entry>
  <entry>
    <title>The Chaser’s War on Everything – Spoof on The Secret</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/02/26/The-Chasers-War-On-Everything-Spoof-On-The-Secret" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,d6d7499c-c1b4-4ab2-94a0-bf69ec2452dc</id>
    <published>2010-02-25T22:30:14.751375-05:00</published>
    <updated>2010-02-26T00:22:24.892-05:00</updated>
    <category term="Entertainment" label="Entertainment" scheme="http://thethoughtfulcoder.com/CategoryView,category,Entertainment" />
    <category term="Funny" label="Funny" scheme="http://thethoughtfulcoder.com/CategoryView,category,Funny" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
The Chaser’s are a group of Australian comedians that I had not heard of before. From
what I’ve watched on Youtube they tend to push the edge a bit and seem to upset a
lot of people. But I can’t help it, these guys are freakin’ hilarious :-)
</p>
        <object width="660" height="525">
          <param name="movie" value="http://www.youtube.com/v/usbNJMUZSwo&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
          <param name="allowFullScreen" value="true" />
          <param name="allowscriptaccess" value="always" />
          <embed src="http://www.youtube.com/v/usbNJMUZSwo&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="525">
          </embed>
        </object>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=d6d7499c-c1b4-4ab2-94a0-bf69ec2452dc" />
      </div>
    </content>
  </entry>
  <entry>
    <title>The original song Angel of My Dreams by Frances Bennigan</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/02/26/The-Original-Song-Angel-Of-My-Dreams-By-Frances-Bennigan" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,13316920-1f1c-496a-9bd0-9f6d735423f1</id>
    <published>2010-02-25T21:46:20.142-05:00</published>
    <updated>2010-03-07T00:27:53.296-05:00</updated>
    <category term="Entertainment" label="Entertainment" scheme="http://thethoughtfulcoder.com/CategoryView,category,Entertainment" />
    <category term="Music" label="Music" scheme="http://thethoughtfulcoder.com/CategoryView,category,Music" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
My cousin Fran wrote and sings her original song Angel of My Dreams. I think it is
a great song. She has an original voice and sings with heart and soul. I wish her
all the luck in the world :-D
</p>
        <object width="660" height="525">
          <param name="movie" value="http://www.youtube.com/v/zjoaZUfasUE&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
          <param name="allowFullScreen" value="true" />
          <param name="allowscriptaccess" value="always" />
          <embed src="http://www.youtube.com/v/zjoaZUfasUE&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="525">
          </embed>
        </object>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=13316920-1f1c-496a-9bd0-9f6d735423f1" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Sick kids = sick parents</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/02/25/Sick-Kids-Sick-Parents" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,5f22eb51-01a9-489b-b235-1f2aa3c27f2e</id>
    <published>2010-02-24T21:15:00-05:00</published>
    <updated>2010-03-07T00:23:19.905375-05:00</updated>
    <category term="Fatherhood" label="Fatherhood" scheme="http://thethoughtfulcoder.com/CategoryView,category,Fatherhood" />
    <category term="Personal" label="Personal" scheme="http://thethoughtfulcoder.com/CategoryView,category,Personal" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I’m sick again :-(
</p>
        <p>
One difficulty about being a parent that is getting sick all the time! It used to
be I’d be sick maybe a couple times a year. Now it it seems like 5 plus time a year.
It is especially hard with a baby or toddler as they are all over you all the time
sneezing everywhere with snot running down their face all day. You can only wipe their
nose so many times a day :-) I realize it is part of building a child’s immune system,
but I just wish it didn’t mean building mine as well :-)
</p>
        <p>
Before kids, when I was sick I’d just lie in bed and sleep or lay on the couch watching
the tube most of the day. Now you have to deal with a sick kid, contract their sickness,
then deal with a kid while sick :-(
</p>
        <p>
Parenthood has so many great aspects, but the sickness is one of the bummers.
</p>
        <p>
I recall one day years ago when both my wife and I had a really bad stomach flu. My
son was around 2 years old. We were both laying on the floor taking turns getting
to the bathroom while trying to take care of our son! The good part was I remember
him being really good about the whole situation. He’s such a good kid :-D That was
a tough day I’ll never forget :-)
</p>
        <p>
Fortunately my wife and children get over being sick very quickly :-) Unfortunately
I don’t :’(
</p>
        <p>
But hey, it’s all good!
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=5f22eb51-01a9-489b-b235-1f2aa3c27f2e" />
      </div>
    </content>
  </entry>
  <entry>
    <title>My review of Dan Brown’s The Lost Symbol</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/02/22/My-Review-Of-Dan-Browns-The-Lost-Symbol" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,5e3ccca7-93b1-417e-8f90-216fd79a08dd</id>
    <published>2010-02-21T21:24:00-05:00</published>
    <updated>2010-03-07T00:28:20.655375-05:00</updated>
    <category term="Books" label="Books" scheme="http://thethoughtfulcoder.com/CategoryView,category,Books" />
    <category term="Entertainment" label="Entertainment" scheme="http://thethoughtfulcoder.com/CategoryView,category,Entertainment" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <div style="float: right; margin-left: 5px">
          <iframe style="width: 120px; height: 240px" marginheight="0" src="http://rcm.amazon.com/e/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=thethoucom-20&amp;o=1&amp;p=8&amp;l=as1&amp;m=amazon&amp;f=ifr&amp;md=10FE9736YVPPT7A0FBG2&amp;asins=0385504225" frameborder="0" marginwidth="0" scrolling="no">
          </iframe>
        </div>
        <p>
I just finished reading Dan Brown’s book The Lost Symbol. I tend to like his stories
and The Lost Symbol is no exception.
</p>
        <p>
The story kept me interested from start to finish. At times it is a bit hard to accept
Langdon’s search engine like memory skills, but a bit of willing suspension of disbelief
makes it reasonably acceptable. Langdon’s off the cuff puzzle solving skills are in
full form throughout his current adventure. Langdon also seems to innately possess
certain ninja escaping skills. He is very tough to catch :-)
</p>
        <p>
Brown has found a certain sweet spot by melding interesting scientific concepts (albeit
not always factual), mysticism, symbols, and conspiracy theory. The Lost Symbol wraps
the story around Masonic legend and symbols. I’m not sure of the accuracy of any of
the content, but I guess it really does not matter as it is fun to read.
</p>
        <p>
One thing I found interesting was the incorporation of Noetic Science in the story.
It is not a major part of the book, but it brings forth some interesting ideas. Personally
I’ve always wondered about the physics of consciousness. Consciousness is as much
a part of the universe as electricity and magnetism so there may be some deeper physics
about it that we do not yet understand. Brown presents an interesting idea about the
physics of consciousness. I think Brown does a good job of presenting interesting
scientific food for thought in addition to the conspiracy theories. Even if everything
is not factual, it all feels plausible.
</p>
        <p>
Bottom line, if you liked The Da Vinci Code I’d recommend this book. If you didn’t
care for The Da Vinci Code then you won’t like this one. If you haven’t read any of
Dan Brown’s Robert Langdon books, then I’d recommend you start with The Da Vinci code
and see what you think.
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=5e3ccca7-93b1-417e-8f90-216fd79a08dd" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Visual Studio macro to switch between ASP.NET markup and code-behind</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/01/26/Visual-Studio-Macro-To-Switch-Between-ASPNET-Markup-And-Codebehind" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,ea7f12c7-245a-4f9a-8850-6bc78fcef6e5</id>
    <published>2010-01-26T00:30:34.390625-05:00</published>
    <updated>2010-03-07T00:24:59.8585-05:00</updated>
    <category term="ASP.NET" label="ASP.NET" scheme="http://thethoughtfulcoder.com/CategoryView,category,ASPNET" />
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <category term="Visual Studio" label="Visual Studio" scheme="http://thethoughtfulcoder.com/CategoryView,category,VisualStudio" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I’ve been using a Visual Studio macro to switch between markup and code-behind for
years now. I’ve forgotten where I originally obtained the code for this Visual Studio
macro.  If you search around you can find incarnations of it floating around
the web. I created a really short tutorial explaining how to setup the macro at the
end of this post.
</p>
        <pre class="brush: vb">Public Sub Switch()
  Dim FileName As String

  If (DTE.ActiveWindow.Document.FullName.ToLower().EndsWith(".cs")) Then
      ' swith from .aspx.cs to .aspx
      FileName = DTE.ActiveWindow.Document.FullName.ToLower().Replace(".cs", "")
      If System.IO.File.Exists(FileName) Then
          DTE.ItemOperations.OpenFile(FileName)
      End If
  ElseIf (DTE.ActiveWindow.Document.FullName.ToLower().EndsWith(".aspx")) Then
      ' swith from .aspx to .aspx.cs 
      FileName = DTE.ActiveWindow.Document.FullName.ToLower().Replace(".aspx", ".aspx.cs")
      If System.IO.File.Exists(FileName) Then
          DTE.ItemOperations.OpenFile(FileName)
      End If
  ElseIf (DTE.ActiveWindow.Document.FullName.ToLower().EndsWith(".ascx")) Then
      FileName = DTE.ActiveWindow.Document.FullName.ToLower().Replace(".ascx", ".ascx.cs")
      If System.IO.File.Exists(FileName) Then
          DTE.ItemOperations.OpenFile(FileName)
      End If
  ElseIf (DTE.ActiveWindow.Document.FullName.ToLower().EndsWith(".master")) Then
      FileName = DTE.ActiveWindow.Document.FullName.ToLower().Replace(".master", ".master.cs")
      If System.IO.File.Exists(FileName) Then
          DTE.ItemOperations.OpenFile(FileName)
      End If
  End If
End Sub</pre>
        <p>
I created a short tutorial to show how to setup the macro in Visual Studio. 
</p>
        <p>
          <object width="660" height="405">
            <param name="movie" value="http://www.youtube.com/v/SwwjSVrlGNA&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
            <param name="allowFullScreen" value="true" />
            <param name="allowscriptaccess" value="always" />
            <embed src="http://www.youtube.com/v/SwwjSVrlGNA&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
            </embed>
          </object>
        </p>
        <p>
I hope this helps! Enjoy :-D
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=ea7f12c7-245a-4f9a-8850-6bc78fcef6e5" />
      </div>
    </content>
  </entry>
  <entry>
    <title>dasBlog macros used by TheThoughtfulCoder.com</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/01/25/dasBlog-Macros-Used-By-TheThoughtfulCodercom" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,756a8854-e213-43dd-bf9f-5dc8992780f8</id>
    <published>2010-01-24T19:53:00-05:00</published>
    <updated>2010-01-24T21:54:28.90625-05:00</updated>
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I’ve created a few custom <a href="http://www.dasblog.info/">dasBlog</a> macros for
this blog.  For now I’m going to use this page as the home for these macros.
</p>
        <p>
        </p>
        <hr />
        <p>
        </p>
        <p>
You can use these links to download the macros. 
</p>
        <ul>
          <li>
            <a href="http://thethoughtfulcoder.com/files/TTC-MacroAssembly.zip">The TTC-Macros.dll
assembly</a>. 
</li>
          <li>
            <a href="http://thethoughtfulcoder.com/files/TTC-MacrosSource.zip">The TTC-Macros
project with source code</a>. 
</li>
        </ul>
        <p>
To install the macros you need to put the TTC-Macros.dll file in the web site bin
folder. Then you need to add the following to the web.config &lt;configuration&gt;
section.
</p>
        <p>
        </p>
        <pre class="brush: xml">&lt;newtelligence.DasBlog.Macros&gt;
   &lt;add macro="ttcMacros" type="TTC_Macros.TTCMacros,TTC-Macros" /&gt;
&lt;/newtelligence.DasBlog.Macros&gt;</pre>
        <p>
These macros were built against dasBlog version 2.3.9074.18820.
</p>
        <p>
Please read the remainder of this post for a description of the macros.
</p>
        <p>
        </p>
        <hr />
        <p>
        </p>
        <h3>dasBlog macro to set page title
</h3>
        <p>
By default dasBlog shows the page title as the blog title-page title. The problem
with this page title is the link that displays in the search engine results page is
not what I want.
</p>
        <p>
The next example shows how the page title is truncated in the search results.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/dasBlogmacrosIuseforTheThoughtfulCod.com_C43A/GooglePageTitleResult_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Google Page Title Result" border="0" alt="Google Page Title Result" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/dasBlogmacrosIuseforTheThoughtfulCod.com_C43A/GooglePageTitleResult_thumb.png" width="571" height="76" />
          </a>
        </p>
        <p>
        </p>
        <p>
The next example shows the page title fits in the Google search results. The blog
title is not visible, but is not really important in the search results.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/dasBlogmacrosIuseforTheThoughtfulCod.com_C43A/GooglePageTitleFits_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Google Page Title Fits" border="0" alt="Google Page Title Fits" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/dasBlogmacrosIuseforTheThoughtfulCod.com_C43A/GooglePageTitleFits_thumb.png" width="549" height="75" />
          </a>
        </p>
        <p>
It may have SEO impact as well, although I’m not sure if the page title starting with
the blog title matters so much.
</p>
        <p>
The usage for the page title macro in a dasBlog .blogtemplate file is as follows:
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/dasBlogmacrosIuseforTheThoughtfulCod.com_C43A/dasBlogPageTitleMacro_4.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="dasBlog Page Title Macro" border="0" alt="dasBlog Page Title Macro" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/dasBlogmacrosIuseforTheThoughtfulCod.com_C43A/dasBlogPageTitleMacro_thumb_1.png" width="640" height="87" />
          </a>
        </p>
        <p>
        </p>
        <hr />
        <p>
        </p>
        <h3>dasBlog macro to add NOINDEX meta tag
</h3>
        <p>
I like to keep the pages in the search engine nice and clean. Given a blog has a lot
of duplicate pages, I wanted to keep a number of the pages out of the index. So I
created a macro to add a NOINDEX meta tag to the page for certain dasBlog pages.
</p>
        <p>
The usage for the macro is shown below.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/dasBlogmacrosIuseforTheThoughtfulCod.com_C43A/dasBlogNoindexMacro_4.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="dasBlog NOINDEX Macro" border="0" alt="dasBlog NOINDEX Macro" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/dasBlogmacrosIuseforTheThoughtfulCod.com_C43A/dasBlogNoindexMacro_thumb_1.png" width="640" height="111" />
          </a>
        </p>
        <p>
The NOINDEX meta tag will be added for all category view, paging, month, date, default
page (not /), login, and search view pages. Basically only the blog post pages, the
root, and the archives page will be in the search engine index.
</p>
        <hr />
        <h3>dasBlog macro to set comment link
</h3>
        <p>
This macro that can be used in place of the default comment view hyperlink. By default
the hyperlink is something like CommentView,guid,1920be4a-2789-4d12-b667-edf2e7f4ff77.aspx#commentstart.
The search engines pick this up and will put it in the index. I prefer is just use
the regular page title.
</p>
        <p>
The usage for the macro is shown below.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/dasBlogmacrosIuseforTheThoughtfulCod.com_C43A/dasBlogCommentLink_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="dasBlog Comment Link" border="0" alt="dasBlog Comment Link" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/dasBlogmacrosIuseforTheThoughtfulCod.com_C43A/dasBlogCommentLink_thumb.png" width="372" height="68" />
          </a>
        </p>
        <p>
So use the TTCCommentLink macro in place of the CommentLink macro.
</p>
        <p>
        </p>
        <hr />
        <p>
        </p>
        <p>
If you have any questions please feel free to ask and I’ll try to help.
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=756a8854-e213-43dd-bf9f-5dc8992780f8" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Lego Power Miner Rock Wrecker Fast Build</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/01/15/Lego-Power-Miner-Rock-Wrecker-Fast-Build" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,97a2eb8b-b404-46c3-a77e-007ad262e274</id>
    <published>2010-01-14T23:49:33.719-05:00</published>
    <updated>2010-03-07T00:28:58.26475-05:00</updated>
    <category term="Fatherhood" label="Fatherhood" scheme="http://thethoughtfulcoder.com/CategoryView,category,Fatherhood" />
    <category term="Legos" label="Legos" scheme="http://thethoughtfulcoder.com/CategoryView,category,Legos" />
    <category term="Personal" label="Personal" scheme="http://thethoughtfulcoder.com/CategoryView,category,Personal" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I built the Lego Power Miner Rock Wrecker with my son. Of course it is sped up a bit
:-) It was fun to create! Enjoy!
</p>
        <p>
          <object width="660" height="405">
            <param name="movie" value="http://www.youtube.com/v/5AjFUpNQHL4&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
            <param name="allowFullScreen" value="true" />
            <param name="allowscriptaccess" value="always" />
            <embed src="http://www.youtube.com/v/5AjFUpNQHL4&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
            </embed>
          </object>
        </p>
        <p>
This is a response to this <a href="http://www.windowfruit.com/post/Lego-Time-Lapse.aspx">Lego
time lapse video at WindowFruit.com</a> .
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=97a2eb8b-b404-46c3-a77e-007ad262e274" />
      </div>
    </content>
  </entry>
  <entry>
    <title>WindowFruit.com – a new blog</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/01/08/WindowFruitcom-A-New-Blog" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,7db6543d-1be8-49b0-a4f2-520a18d16d19</id>
    <published>2010-01-07T19:03:10.825-05:00</published>
    <updated>2010-01-07T19:04:03.153125-05:00</updated>
    <category term="Personal" label="Personal" scheme="http://thethoughtfulcoder.com/CategoryView,category,Personal" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <a href="http://www.windowfruit.com">
          <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="WindowFruit.com" border="0" alt="WindowFruit.com" align="right" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/WindowFruit.comanewblog_10A8F/image_3.png" width="316" height="62" />
        </a>
        <p>
A friend started a new blog called <a href="http://www.windowfruit.com" target="_blank">WindowFruit.com</a>.
Tim created a very cool theme! It starts with a nice time lapsed Lego building video
:-)  
</p>
        <p>
Good luck with the blog! 
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=7db6543d-1be8-49b0-a4f2-520a18d16d19" />
      </div>
    </content>
  </entry>
  <entry>
    <title>I use an eye mask to help with a CPAP causing dry eyes</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/01/06/I-Use-An-Eye-Mask-To-Help-With-A-CPAP-Causing-Dry-Eyes" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,f789a9f6-91de-4ffe-9526-cba62304b28e</id>
    <published>2010-01-06T00:54:11.91875-05:00</published>
    <updated>2010-01-06T00:54:38.075-05:00</updated>
    <category term="Personal" label="Personal" scheme="http://thethoughtfulcoder.com/CategoryView,category,Personal" />
    <category term="Sleep Apnea" label="Sleep Apnea" scheme="http://thethoughtfulcoder.com/CategoryView,category,SleepApnea" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <iframe style="width: 120px; float: right; height: 240px; margin-left: 10px" marginheight="0" src="http://rcm.amazon.com/e/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;nou=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=thethoucom-20&amp;o=1&amp;p=8&amp;l=as1&amp;m=amazon&amp;f=ifr&amp;md=10FE9736YVPPT7A0FBG2&amp;asins=B000SKXRNO" frameborder="0" marginwidth="0" scrolling="no">
        </iframe>
        <p>
I’ve used a CPAP machine now for a couple years and my main issue is it can cause
my eyes to dry out a bit. I ended up getting an eye mask and it really helps alleviate
the eye dryness. It does not completely eliminate my dry eyes, but it really helps
cut it down.
</p>
        <p>
I’ve read others use goggles that are available to wear when sleeping.  I like
the softness of the eye mask and the ease of sliding it up my forehead if I need to
see while I’m wearing my CPAP mask.
</p>
        <p>
The mask pictured is the one I purchased on Amazon. There may be better ones, so of
course look around, but this one has done the job for me. It is a good price as well
:-)
</p>
        <p>
Please keep in mind, this works for me but may not work for others. I hope it does
help
</p>
        <p>
Please note that I am an Amazon affiliate.
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=f789a9f6-91de-4ffe-9526-cba62304b28e" />
      </div>
    </content>
  </entry>
  <entry>
    <title>X-Robots-Tag HTTP header and Google Webmaster Tools URL Removal</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/01/06/XRobotsTag-HTTP-Header-And-Google-Webmaster-Tools-URL-Removal" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,673b93c4-a1b3-48fd-ac55-ee57de36ad66</id>
    <published>2010-01-06T00:49:08.16875-05:00</published>
    <updated>2010-01-06T00:49:08.16875-05:00</updated>
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <author>
      <name />
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I read about being able to use the <a href="http://googleblog.blogspot.com/2007/07/robots-exclusion-protocol-now-with-even.html" target="_blank">HTTP
header X-Robots-Tag</a> to specify Google search index control options. For my purposes,
I wanted to specify that certain pages on my blog would not go in the index. So I
specified the header X-Robots-Tag: noindex using Microsoft’s URL Rewrite module 2
which can use out bound rules to rewrite page content and page headers.
</p>
        <p>
The header was correctly being added to the pages, but when I used the remove URL
tool in Google webmaster tools to remove the pages the result was the request for
page removal was denied. 
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/b54702f23054_10613/image_2.png">
            <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://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/b54702f23054_10613/image_thumb.png" width="644" height="212" />
          </a>
        </p>
        <p>
The information about the X-Robots-Tag discusses using it for page content like PDF
files and such. It does not specifically state that it will or will not work for regular
content type text/html. I asked on the Google webmaster tools help forum, but I did
not get any response.
</p>
        <p>
I ended up modifying my blog’s code to add a meta ROBOTS tag to the HTML head element
of my pages which works as expected.
</p>
        <p>
I can’t be 100% sure that the X-Robots-Tag will not do the job, but I could not get
it to work. If someone has found out otherwise please let me know.
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=673b93c4-a1b3-48fd-ac55-ee57de36ad66" />
      </div>
    </content>
  </entry>
  <entry>
    <title>One thing I realized I’ll miss as a father – rocking my kids</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/01/06/One-Thing-I-Realized-Ill-Miss-As-A-Father-Rocking-My-Kids" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,7ab8c6f0-a623-403e-836a-ad7df2891974</id>
    <published>2010-01-05T20:08:10.85625-05:00</published>
    <updated>2010-01-05T20:16:40.23125-05:00</updated>
    <category term="Fatherhood" label="Fatherhood" scheme="http://thethoughtfulcoder.com/CategoryView,category,Fatherhood" />
    <category term="Personal" label="Personal" scheme="http://thethoughtfulcoder.com/CategoryView,category,Personal" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
The other night my youngest son was very tired. I was rocking him on the glider and
he turned around and laid his head on my shoulder. I rocked him like that for a while
and realized that it might be the last time I do that with my children. He’s gotten
to the point where he just does not do that anymore.
</p>
        <p>
There is something about rocking your children when they are so young. It is hard
to explain, but there is a certain comfort about it that is indescribable. It is amazing
how much comfort our children give us. Sometimes it feels like there is a lot of wining
and crying, oh wait there is a whole lot of that :-) But there are moments that have
a certain magic.
</p>
        <p>
My connection with my sons is a bond unlike anything I’ve ever experienced. I’m grateful
and eternally thankful for it. Every morning I’m glad to greet them and every evening
I look forward to getting home from work to see them again.
</p>
        <p>
I will not miss rocking them in a sad sense, I am always excited to see them change
and grow, instead I will reflect on those moments as treasures captured in time :-D
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=7ab8c6f0-a623-403e-836a-ad7df2891974" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Blogging with children</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2010/01/05/Blogging-With-Children" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,54c5b502-b96d-446f-967e-07d788ce1362</id>
    <published>2010-01-05T00:18:07.8125-05:00</published>
    <updated>2010-01-05T00:18:38.671875-05:00</updated>
    <category term="Fatherhood" label="Fatherhood" scheme="http://thethoughtfulcoder.com/CategoryView,category,Fatherhood" />
    <category term="Personal" label="Personal" scheme="http://thethoughtfulcoder.com/CategoryView,category,Personal" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Even though my blog will focus on a lot of technical information, it is still my personal
blog. Hopefully I can keep the signal to noise ratio reasonable within the categories,
but it might be a bit low overall. I realize a blog is supposed to have some focused
purpose, but I’m breaking the rules a bit. I guess I’ll just have to wait and see
how it goes.
</p>
        <p>
I’ve had this blog for roughly four months now and it is interesting what a challenge
it has been. Between full time work and two young children it is difficult to find
any free time. Creating content an hour here and there is difficult. To all those
creating content my hat is off to you!
</p>
        <p>
There seems to be a stigma about bloggers that they are just a bunch of lazy slackers
sitting in pajamas all day lackadaisically creating posts. I’d like to challenge this
stereotype! Creating content is work, and not easy work at that. It is time that could
be spent doing something fun. World of Warcraft anyone? Or maybe SkiFree :-) 
</p>
        <p>
With kids, it is even tougher as the days are long. From early morning until late
evening it is difficult to keep up with everything that needs to be done. Between
a kid’s demand for attention, baths, hassles about bedtime, diaper changes, sickness,
and all those things a parent has to do, free time is precious. Blogging with children
is hard :-) Don’t get me wrong though, I love my kids beyond all else and enjoy every
minute I have with them!
</p>
        <p>
For some reason I’ve decided to do this on top of everything else. I just hope my
wife won’t get sick of me too quickly. I’m hoping to get back into the swing of things
after the holidays and make some more content. We’ll see if I can pull it off ;-)
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=54c5b502-b96d-446f-967e-07d788ce1362" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Remember SkiFree?</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2009/12/16/Remember-SkiFree" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,bf1f5457-d12d-4b7e-ae0b-eaad0e0a80b6</id>
    <published>2009-12-15T22:02:00-05:00</published>
    <updated>2009-12-16T01:04:10.93525-05:00</updated>
    <category term="Entertainment" label="Entertainment" scheme="http://thethoughtfulcoder.com/CategoryView,category,Entertainment" />
    <category term="Games" label="Games" scheme="http://thethoughtfulcoder.com/CategoryView,category,Games" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I was looking at the MSDN OS downloads and noticed MS-DOS and Windows 3.1 are still
available for download :-) Boy, that brings back memories. Windows 7 is sure a long
way from those days. I jokingly sent an email about the old OS downloads and a colleague
responded we might want to install Windows 3.1 in case we want to play <a href="http://ski.ihoc.net/" target="_blank">SkiFree</a>!
</p>
        <p>
Now that really brings back memories! You can still download it at <a title="http://ski.ihoc.net/" href="http://ski.ihoc.net/">http://ski.ihoc.net/</a> and
it runs on Windows 7! Sweet :-)
</p>
        <p>
          <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="SkiFree!" border="0" alt="SkiFree!" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/DoyourememberSkiFree_ABD/image_thumb.png" width="561" height="462" />
        </p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=bf1f5457-d12d-4b7e-ae0b-eaad0e0a80b6" />
      </div>
    </content>
  </entry>
  <entry>
    <title>How to screen capture an image of a scrolling window</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2009/12/11/How-To-Screen-Capture-An-Image-Of-A-Scrolling-Window" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,5c197d82-fc82-4d3c-a9d2-737052c07891</id>
    <published>2009-12-10T22:28:21.4375-05:00</published>
    <updated>2009-12-13T00:14:04.6875-05:00</updated>
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <category term="Tools" label="Tools" scheme="http://thethoughtfulcoder.com/CategoryView,category,Tools" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Between work and this blog I do a lot of screen captures and trying to capture a scrolling
window is at best problematic. I purchased a tool called <a href="http://www.techsmith.com/screen-capture.asp" target="_blank">Snagit</a> from <a href="http://www.techsmith.com/" target="_blank">Techsmith</a> which
accomplishes scrolling window screen captures :-) Happiness!
</p>
        <p>
I recommend it for screen captures in general as well. It does cost just under $50,
but it has been worth it.
</p>
        <p>
I created a short tutorial to show how it works:
</p>
        <p>
          <object width="660" height="405">
            <param name="movie" value="http://www.youtube.com/v/73nKEBGQGXY&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
            <param name="allowFullScreen" value="true" />
            <param name="allowscriptaccess" value="always" />
            <embed src="http://www.youtube.com/v/73nKEBGQGXY&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
            </embed>
          </object>
        </p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=5c197d82-fc82-4d3c-a9d2-737052c07891" />
      </div>
    </content>
  </entry>
  <entry>
    <title>A way to find missing HTML element open and close tags</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2009/12/09/A-Way-To-Find-Missing-HTML-Element-Open-And-Close-Tags" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,9f67a8ba-0908-472e-8d49-969b242066d4</id>
    <published>2009-12-09T01:05:02.273-05:00</published>
    <updated>2009-12-12T20:55:27.3125-05:00</updated>
    <category term="HTML" label="HTML" scheme="http://thethoughtfulcoder.com/CategoryView,category,HTML" />
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
This is a basic method I’ve used to find missing HTML element open and close tags.
I use the text editor <a href="http://www.editpadpro.com" target="_blank">EditPad
Pro</a> which is very regular expression friendly. The idea is to use a regular expression
to match a type or types of HTML elements and then fold the lines of the HTML text
to the lines that match the regular expression. From there you have a view of the
HTML source with only the lines that have the type of HTML tag(s) you are interested
in viewing.
</p>
        <p>
I created a short tutorial to demonstrate what to do:
</p>
        <p>
          <object width="660" height="405">
            <param name="movie" value="http://www.youtube.com/v/KTMyp-tWuPc&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
            <param name="allowFullScreen" value="true" />
            <param name="allowscriptaccess" value="always" />
            <embed src="http://www.youtube.com/v/KTMyp-tWuPc&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
            </embed>
          </object>
        </p>
        <p>
I hope I’ve gotten the basic idea across. There may be better ways to do this, but
if you are stuck with only your text editor and HTML then this technique might bail
you out ;-)
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=9f67a8ba-0908-472e-8d49-969b242066d4" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Why are my IIS 7.5 HTTP error pages blank?</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2009/12/07/Why-Are-My-IIS-75-HTTP-Error-Pages-Blank" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,38012c40-6044-4122-b9cb-ffc8fc22b411</id>
    <published>2009-12-07T00:20:53.078125-05:00</published>
    <updated>2009-12-12T20:56:29.640625-05:00</updated>
    <category term="IIS" label="IIS" scheme="http://thethoughtfulcoder.com/CategoryView,category,IIS" />
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I recently upgraded to Windows 7 and while doing some IIS tinkering I noticed my HTTP
404 page was blank. I was getting a HTTP 404 header back in the response so I was
a bit confused. It ends up when I turned on IIS I missed checking the HTTP Errors
check box in the windows features.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/WhyaremyIIS7.5HTTPerrorpagesblank_458/image_2.png">
            <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://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/WhyaremyIIS7.5HTTPerrorpagesblank_458/image_thumb.png" width="433" height="379" />
          </a>
        </p>
        <p>
I created a short tutorial showing what I did as well.
</p>
        <p>
          <object width="660" height="405">
            <param name="movie" value="http://www.youtube.com/v/CRcVuH_G7Lk&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
            <param name="allowFullScreen" value="true" />
            <param name="allowscriptaccess" value="always" />
            <embed src="http://www.youtube.com/v/CRcVuH_G7Lk&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
            </embed>
          </object>
        </p>
        <p>
Hopefully this might help someone quickly figure this out :-)
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=38012c40-6044-4122-b9cb-ffc8fc22b411" />
      </div>
    </content>
  </entry>
  <entry>
    <title>The basics of hiding the page extension when using ASP.NET</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2009/12/07/The-Basics-Of-Hiding-The-Page-Extension-When-Using-ASPNET" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,38719e1e-cc94-4090-8a3e-7ae6fa04b840</id>
    <published>2009-12-06T23:38:20.859375-05:00</published>
    <updated>2009-12-12T21:26:05.75-05:00</updated>
    <category term="ASP.NET" label="ASP.NET" scheme="http://thethoughtfulcoder.com/CategoryView,category,ASPNET" />
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Classic ASP.NET uses the page extension .aspx. If you want to hide the .aspx page
from the browser URL I’d recommend using URL rewriting to make your pages extensionless.
</p>
        <p>
I’ve created a screencast which goes over the basic idea of how to implement extensionless
URLs in your ASP.NET application. I use Microsoft’s URL Rewrite module which can be
used for IIS 7. There are other URL rewrite modules available which can be used to
accomplish the same thing for IIS 6.
</p>
        <p>
          <object width="660" height="405">
            <param name="movie" value="http://www.youtube.com/v/DC9kg3sa8Cw&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
            <param name="allowFullScreen" value="true" />
            <param name="allowscriptaccess" value="always" />
            <embed src="http://www.youtube.com/v/DC9kg3sa8Cw&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
            </embed>
          </object>
        </p>
        <p>
I created this tutorial because of a question about <a href="http://stackoverflow.com/questions/1851276/how-to-hide-change-asp-net-page-extension-from-the-viewer/1851318#1851318">hiding
ASP.NET pages extensions on Stack Overflow</a>.
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=38719e1e-cc94-4090-8a3e-7ae6fa04b840" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Google Website Optimizer (GWO) Tutorial - Advanced Usage My Way</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2009/12/05/Google-Website-Optimizer-GWO-Tutorial-Advanced-Usage-My-Way" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,657670ad-f6bc-4cd1-af9a-9913f6370e1d</id>
    <published>2009-12-05T00:42:00-05:00</published>
    <updated>2009-12-29T18:38:37.6875-05:00</updated>
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I’ve created a series of tutorials about <a href="https://www.google.com/accounts/ServiceLogin?service=websiteoptimizer&amp;hl=en&amp;continue=https%3A%2F%2Fwww.google.com%2Fanalytics%2Fsiteopt%2F%3Fet%3Dreset%26hl%3Den&amp;utm_medium=et&amp;utm_source=us-en-et-bizsol-0-biz1-all&amp;utm_campaign=en">Google
Website Optimizer</a> that will hopefully help others. These screencasts are not perfect
by any means, but hopefully they will get the point across.
</p>
        <p>
Google Website Optimizer is a tool you can use to serve out various versions of website
pages and measure how those variations affect the rate for visitors reaching a goal
on your website. One obvious case is for ecommerce sites to measure changes to pages
and how it affects order placement conversion rate. I’ve seen on the job various changes
to a website that can have a significant affect on conversion rate.
</p>
        <p>
I do not follow the method that Google prescribes to create Website Optimizer experiments.
Google attempted to make the GWO experiment creation process as easy as possible,
but I find it a bit constricting. I’ve implemented GWO experiments on the job and
have found ways to work with GWO that I find more to my liking.
</p>
        <p>
Please note that I only go over creating multivariate experiments. I do not cover
A/B experiments.
</p>
        <p>
In the following tutorial I discuss how I go about creating Google Website Optimizer
experiments.
</p>
        <p>
          <object width="660" height="405">
            <param name="movie" value="http://www.youtube.com/v/UGroG3zM-14&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
            <param name="allowFullScreen" value="true" />
            <param name="allowscriptaccess" value="always" />
            <embed src="http://www.youtube.com/v/UGroG3zM-14&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
            </embed>
          </object>
        </p>
        <p>
Here I go over Google Website Optimizer experiment creation once again, but in a much
more abbreviated manner.
</p>
        <p>
          <object width="660" height="405">
            <param name="movie" value="http://www.youtube.com/v/Qpr-SQZZXOU&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
            <param name="allowFullScreen" value="true" />
            <param name="allowscriptaccess" value="always" />
            <embed src="http://www.youtube.com/v/Qpr-SQZZXOU&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
            </embed>
          </object>
        </p>
        <p>
In the next tutorial I go over how I approach implementing GWO experiments in website
code. For this example I’m using an ASP.NET MVC website. I go over how to vary page
content based on a page section variation using jQuery.
</p>
        <p>
          <object width="660" height="405">
            <param name="movie" value="http://www.youtube.com/v/CzAEaNajmmg&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
            <param name="allowFullScreen" value="true" />
            <param name="allowscriptaccess" value="always" />
            <embed src="http://www.youtube.com/v/CzAEaNajmmg&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
            </embed>
          </object>
        </p>
        <p>
In the next tutorial I discuss implementing GWO experiments and XHTML compliance.
The default mechanism provided by Google is not XHTML compliant, so I go over how
to use GWO and maintain XHTML compliance. The JavaScript script provided by Google
is not XHTML and Google also recommends using a &lt;/noscript&gt;HTML element which
is way off from being well formatted!
</p>
        <p>
          <object width="660" height="405">
            <param name="movie" value="http://www.youtube.com/v/FHf41O0JxE8&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
            <param name="allowFullScreen" value="true" />
            <param name="allowscriptaccess" value="always" />
            <embed src="http://www.youtube.com/v/FHf41O0JxE8&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
            </embed>
          </object>
        </p>
        <p>
In my final GWO tutorial, I go over how to interpret GWO results. You have to be careful
about how to interpret if a certain page variation is better than other variations.
</p>
        <p>
          <object width="660" height="405">
            <param name="movie" value="http://www.youtube.com/v/SD8fThxKPgU&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
            <param name="allowFullScreen" value="true" />
            <param name="allowscriptaccess" value="always" />
            <embed src="http://www.youtube.com/v/SD8fThxKPgU&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
            </embed>
          </object>
        </p>
        <p>
I hope these tutorials are useful to someone :-)
</p>
        <p>
I also highly recommend you check out <a href="http://www.gwotricks.com" target="_blank">www.gwotricks.com</a> which
is a great GWO resource.
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=657670ad-f6bc-4cd1-af9a-9913f6370e1d" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Configure host headers with SSL using IIS 7 or IIS 7.5</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2009/12/03/Configure-Host-Headers-With-SSL-Using-IIS-7-Or-IIS-75" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,5810678d-b233-4c26-bc85-c0ddc4e3fdb6</id>
    <published>2009-12-03T14:47:00-05:00</published>
    <updated>2009-12-12T21:27:14.15625-05:00</updated>
    <category term="IIS" label="IIS" scheme="http://thethoughtfulcoder.com/CategoryView,category,IIS" />
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I configured SSL on this blog site and found some info on the Microsoft TechNet page <a href="http://technet.microsoft.com/en-us/library/cc753195%28WS.10%29.aspx">Configure
a Host Header for a Web Site (IIS 7)</a>. The TechNet page was a start, but it didn’t
quite get me all the way there. With a bit of experimentation I successfully configured
SSL on my web server. You can view a <a href="#hostHeaderScreencast">screencast</a> of
what I did at the end of this post.
</p>
        <p>
For this post I’m going to use a non-existent website www.abc-test1.com.
</p>
        <p>
First I added an SSL binding to the web site. In IIS Manager, with the web site selected,
click on the Bindings… link.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/ConfigureIIS7hostheaderswithSSL_69D/image_2.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Actions Bindings" border="0" alt="Actions Bindings" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/ConfigureIIS7hostheaderswithSSL_69D/image_thumb.png" width="201" height="143" />
          </a>
        </p>
        <p>
On the Site Bindings dialog you’ll want to click the Add… button.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/ConfigureIIS7hostheaderswithSSL_69D/image_8.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Site Bindings Dialog" border="0" alt="Site Bindings Dialog" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/ConfigureIIS7hostheaderswithSSL_69D/image_thumb_3.png" width="580" height="273" />
          </a>
        </p>
        <p>
Then select https from the Type drop list, select your IP address, and pick your installed
SSL certificate. For my testing I created a self signed certificate.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/ConfigureIIS7hostheaderswithSSL_69D/image3.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Add Site Binding" border="0" alt="Add Site Binding" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/ConfigureIIS7hostheaderswithSSL_69D/image3_thumb.png" width="487" height="267" />
          </a>
        </p>
        <p>
Then from the command prompt you’ll want to issue the command:
</p>
        <p>
        </p>
        <pre class="brush: text; wrap-lines: false">appcmd set site /site.name:www.abc-test1.com /bindings.[protocol='https',bindingInformation='*:443:'].bindingInformation:*:443:www.abc-test1.com</pre>
        <p>
You can go back in IIS manager to check you SSL binding’s host name. You should see
the host header you configured at this point.
</p>
        <p>
          <a href="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/ConfigureIIS7hostheaderswithSSL_69D/image_10.png">
            <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Site Bindings with host header" border="0" alt="Site Bindings with host header" src="http://thethoughtfulcoder.com/content/binary/WindowsLiveWriter/ConfigureIIS7hostheaderswithSSL_69D/image_thumb_4.png" width="580" height="273" />
          </a>
        </p>
        <p>
I created this tutorial describing how to configure host headers in IIS 7.5 using
Windows 7. It is the same process for any version of IIS 7.x.
</p>
        <p>
        </p>
        <a name="hostHeaderScreencast">
        </a>
        <p>
          <object width="660" height="405">
            <param name="movie" value="http://www.youtube.com/v/zVCmzBfx3BE&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" />
            <param name="allowFullScreen" value="true" />
            <param name="allowscriptaccess" value="always" />
            <embed src="http://www.youtube.com/v/zVCmzBfx3BE&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405">
            </embed>
          </object>
        </p>
        <p>
I hope this post helps :-)
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=5810678d-b233-4c26-bc85-c0ddc4e3fdb6" />
      </div>
    </content>
  </entry>
  <entry>
    <title>You just gave away your password!</title>
    <link rel="alternate" type="text/html" href="http://TheThoughtfulCoder.com/2009/12/03/You-Just-Gave-Away-Your-Password" />
    <id>http://thethoughtfulcoder.com/PermaLink,guid,0887764f-4065-4d6a-9f48-e0b51e6c210e</id>
    <published>2009-12-03T14:43:12.171875-05:00</published>
    <updated>2009-12-03T14:43:12.171875-05:00</updated>
    <category term="Technical" label="Technical" scheme="http://thethoughtfulcoder.com/CategoryView,category,Technical" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Years ago I was discussing password security with a good friend at work and at one
point we disagreed on some aspect of password security. He asserted that in one sense
the password did not really matter as it is so easy to get someone’s password. He
stated he could get one of my passwords if he really wanted it. I thought to myself
“no way”. I don’t click on email attachments, I’m wary about what I download, and
I consider myself careful about not doing stupid stuff.
</p>
        <p>
Later in the day, after having forgotten about the challenge, I was in my friend’s
office and he said he was having trouble logging in to our Oracle database. He tried
a few times and his login was not working. He asked if I could try my logon, so I
tried typing in my user name and password and it worked. He tried again and his worked,
no harm no foul ;-)  I sat back at my desk and an email was in my inbox with
my password! :-)
</p>
        <p>
I immediately realized he had gotten it when I typed it in on his machine. Ends up
he used a Visual Studio program called Spy++ to monitor windows messages. So he captured
the windows keystroke messages and easily logged my password keystrokes.
</p>
        <p>
Ever since then I have been interested in computer security or really the lack thereof!
If someone has physical access to a machine, then whatever anyone types on that machine
can not be considered secure. Especially if you are dealing with a coder. There is
no security when there is familiarity between the parties. You are left to trust and
decency with those you know.
</p>
        <p>
As a developer I believe you should think about how to hack computer systems in order
to think about how to secure it. It is one of the mindsets you should have when coding.
I’m not the type of person who would do any type of hacking, but if you are oblivious
to what can be done you are more likely to make mistakes when designing computer software
that open you up to standard hacking attacks.
</p>
        <p>
Ever since my password was obtained so quickly and easily whenever I type my password
I always think, “Someone just hacked my password” :-)
</p>
        <img width="0" height="0" src="http://thethoughtfulcoder.com/aggbug.ashx?id=0887764f-4065-4d6a-9f48-e0b51e6c210e" />
      </div>
    </content>
  </entry>
</feed>