<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Invested Development</title>
	<atom:link href="http://devblog.stuartthompson.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://devblog.stuartthompson.net</link>
	<description>Thoughtful Approaches to Software Architecture</description>
	<lastBuildDate>Tue, 20 Jul 2010 20:55:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Changing Visual Studio Registration Information</title>
		<link>http://devblog.stuartthompson.net/2010/03/changing-visual-studio-registration-information/</link>
		<comments>http://devblog.stuartthompson.net/2010/03/changing-visual-studio-registration-information/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 20:58:53 +0000</pubDate>
		<dc:creator>stuartthompson</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Registration]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://devblog.stuartthompson.net/2010/03/changing-visual-studio-registration-information/</guid>
		<description><![CDATA[This morning as I started Visual Studio it bugged me that the splash screen reported my registration information as “User” at “Microsoft”. My name isn’t “User” and I don’t work for “Microsoft”, at least not directly. This is something that has bothered me in the past but I’ve never dug into it far enough to [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">This morning as I started Visual Studio it bugged me that the splash screen reported my registration information as “User” at “Microsoft”. My name isn’t “User” and I don’t work for “Microsoft”, at least not directly. This is something that has bothered me in the past but I’ve never dug into it far enough to figure out how to fix it.</p>
<p style="text-align: justify;">This afternoon after a little research I was able to piece together the steps necessary to update the information. I found <a href="http://stackoverflow.com/questions/200635/how-to-change-registration-company-name-for-visual-studio-2008">this question on Stack Overflow</a> that had some useful information but not a complete solution. I also came across <a href="http://www.wintellect.com/CS/blogs/jrobbins/archive/2009/09/30/changing-the-visual-studio-splash-screen-registered-user.aspx">this post on John Robbins’ blog</a> and between the two of them I was able to close the gap.</p>
<p><strong>Updating Company Name and User for Windows</strong><br />
The first step is to open the registry editor and navigate to:</p>
<p><em>32 bit:</em> HKLM\Software\Microsoft\Windows NT\CurrentVersion<br />
<em>64 bit:</em> HKLM\Software\Wow6432Node\Microsoft\WindowsNT\CurrentVersion</p>
<p>Here you can edit the RegisteredOrganization and RegisteredOwner values.</p>
<p><a href="http://devblog.stuartthompson.net/wp-content/uploads/2010/03/CompanyNameKey.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="CompanyNameKey" src="http://devblog.stuartthompson.net/wp-content/uploads/2010/03/CompanyNameKey_thumb.png" border="0" alt="CompanyNameKey" width="244" height="110" /></a></p>
<p><strong>Updating Visual Studio User Registry Key</strong><br />
The next step is to update the user name for your Visual Studio registration. This is also a key in the registry at:</p>
<p><em>32 bit:</em> HKLM\Software\Microsoft\VisualStudio\9.0\Registration<br />
<em>64 bit:</em> HKLM\Software\Wow6432Node\Microsoft\VisualStudio\9.0\Registration</p>
<p><a href="http://devblog.stuartthompson.net/wp-content/uploads/2010/03/VisualStudioRegistrationKey.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="VisualStudioRegistrationKey" src="http://devblog.stuartthompson.net/wp-content/uploads/2010/03/VisualStudioRegistrationKey_thumb.png" border="0" alt="VisualStudioRegistrationKey" width="244" height="102" /></a></p>
<p style="text-align: justify;"><strong>Getting Visual Studio to Use the New Information</strong><br />
Modifying the keys is the first step. However, it turns out that Visual Studio actually stores the information to be displayed in a SplashInfo key. The info is stored in binary data. Fortunately we do not need to modify the binary value in the registry. Instead simply run devenv /setup and the information will be updated automatically.</p>
<p><a href="http://devblog.stuartthompson.net/wp-content/uploads/2010/03/RunDevEnvSetup.png"><img style="display: inline; border-width: 0px;" title="Run DevEnv Setup" src="http://devblog.stuartthompson.net/wp-content/uploads/2010/03/RunDevEnvSetup_thumb.png" border="0" alt="Run DevEnv Setup" width="244" height="160" /></a> <a href="http://devblog.stuartthompson.net/wp-content/uploads/2010/03/SplashInfoKey.png"><img style="display: inline; border-width: 0px;" title="SplashInfoKey" src="http://devblog.stuartthompson.net/wp-content/uploads/2010/03/SplashInfoKey_thumb.png" border="0" alt="SplashInfoKey" width="226" height="244" /></a></p>
<p><strong>Verifying the Information</strong><br />
To verify that the information was updated correctly you can either view the SplashInfo key in the registry or simply run Visual Studio. I’m now “Stuart Thompson” at “SoftSource Consulting”. Much better!</p>
<p><a href="http://devblog.stuartthompson.net/wp-content/uploads/2010/03/SplashScreen.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="SplashScreen" src="http://devblog.stuartthompson.net/wp-content/uploads/2010/03/SplashScreen_thumb.png" border="0" alt="SplashScreen" width="208" height="244" /></a></p>
<p style="text-align: justify;"><strong>Disclaimer</strong><br />
This process worked for me. Your mileage may vary. This information is provided as is without any implied warranty of fitness for any purpose. I am not responsible for corrupted Visual Studio installations or registry hives nor for any other problems that may arise as a result of using these steps. USE AT YOUR OWN RISK.</p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Changing+Visual+Studio+Registration+Information:+http://bit.ly/aN5qvR" title="Post to Twitter"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-twitter-micro3.png" alt="Post to Twitter" /></a> <a target="_blank" class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://devblog.stuartthompson.net/2010/03/changing-visual-studio-registration-information/&amp;submitHeadline=Changing+Visual+Studio+Registration+Information" title="Post to Yahoo Buzz"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-buzz-micro3.png" alt="Post to Yahoo Buzz" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://devblog.stuartthompson.net/2010/03/changing-visual-studio-registration-information/&amp;title=Changing+Visual+Studio+Registration+Information" title="Post to Delicious"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-delicious-micro3.png" alt="Post to Delicious" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://devblog.stuartthompson.net/2010/03/changing-visual-studio-registration-information/&amp;title=Changing+Visual+Studio+Registration+Information" title="Post to Digg"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-digg-micro3.png" alt="Post to Digg" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://devblog.stuartthompson.net/2010/03/changing-visual-studio-registration-information/&amp;t=Changing+Visual+Studio+Registration+Information" title="Post to Facebook"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-facebook-micro3.png" alt="Post to Facebook" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://devblog.stuartthompson.net/2010/03/changing-visual-studio-registration-information/&amp;title=Changing+Visual+Studio+Registration+Information" title="Post to Reddit"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-reddit-micro3.png" alt="Post to Reddit" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://devblog.stuartthompson.net/2010/03/changing-visual-studio-registration-information/&amp;title=Changing+Visual+Studio+Registration+Information" title="Post to StumbleUpon"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-su-micro3.png" alt="Post to StumbleUpon" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://devblog.stuartthompson.net/2010/03/changing-visual-studio-registration-information/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Serialize SQL parameters</title>
		<link>http://devblog.stuartthompson.net/2010/03/serialize-sql-parameters/</link>
		<comments>http://devblog.stuartthompson.net/2010/03/serialize-sql-parameters/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 20:22:28 +0000</pubDate>
		<dc:creator>stuartthompson</dc:creator>
				<category><![CDATA[.NET Framework]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[csharp]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://devblog.stuartthompson.net/2010/03/serialize-sql-parameters/</guid>
		<description><![CDATA[Convert a collection of SQL parameters into a name:value string suitable for writing to a log. /// &#60;summary&#62; /// Serializes a collection of /// &#60;see cref=&#34;System.Data.SqlClient.SqlParameter&#34;/&#62;s. /// &#60;/summary&#62; /// &#60;param name=&#34;parameters&#34;&#62; /// The collection of parameters to serialize. /// &#60;/param&#62; /// &#60;returns&#62; /// A &#60;see cref=&#34;System.String&#34;/&#62; that contains the parameter values. /// &#60;/returns&#62; public string [...]]]></description>
			<content:encoded><![CDATA[<p>Convert a collection of SQL parameters into a name:value string suitable for writing to a log.</p>
</p>
<pre class="brush:csharp">/// &lt;summary&gt;
/// Serializes a collection of
/// &lt;see cref=&quot;System.Data.SqlClient.SqlParameter&quot;/&gt;s.
/// &lt;/summary&gt;
/// &lt;param name=&quot;parameters&quot;&gt;
/// The collection of parameters to serialize.
/// &lt;/param&gt;
/// &lt;returns&gt;
/// A &lt;see cref=&quot;System.String&quot;/&gt; that contains the parameter values.
/// &lt;/returns&gt;
public string SerializeSqlParameterCollection(
    SqlParameterCollection parameters)
{
    StringBuilder sb = new StringBuilder();
    foreach (SqlParameter parameter in parameters)
        sb.Append(
            String.Format(&quot;{0}:{1} &quot;,
                parameter.ParameterName, parameter.Value));
    return sb.ToString();
}</pre>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Serialize+SQL+parameters:+http://bit.ly/b9ia5V" title="Post to Twitter"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-twitter-micro3.png" alt="Post to Twitter" /></a> <a target="_blank" class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://devblog.stuartthompson.net/2010/03/serialize-sql-parameters/&amp;submitHeadline=Serialize+SQL+parameters" title="Post to Yahoo Buzz"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-buzz-micro3.png" alt="Post to Yahoo Buzz" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://devblog.stuartthompson.net/2010/03/serialize-sql-parameters/&amp;title=Serialize+SQL+parameters" title="Post to Delicious"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-delicious-micro3.png" alt="Post to Delicious" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://devblog.stuartthompson.net/2010/03/serialize-sql-parameters/&amp;title=Serialize+SQL+parameters" title="Post to Digg"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-digg-micro3.png" alt="Post to Digg" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://devblog.stuartthompson.net/2010/03/serialize-sql-parameters/&amp;t=Serialize+SQL+parameters" title="Post to Facebook"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-facebook-micro3.png" alt="Post to Facebook" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://devblog.stuartthompson.net/2010/03/serialize-sql-parameters/&amp;title=Serialize+SQL+parameters" title="Post to Reddit"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-reddit-micro3.png" alt="Post to Reddit" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://devblog.stuartthompson.net/2010/03/serialize-sql-parameters/&amp;title=Serialize+SQL+parameters" title="Post to StumbleUpon"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-su-micro3.png" alt="Post to StumbleUpon" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://devblog.stuartthompson.net/2010/03/serialize-sql-parameters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What&#8217;s new in the .NET Framework 4?</title>
		<link>http://devblog.stuartthompson.net/2010/03/whats-new-in-the-net-framework-4/</link>
		<comments>http://devblog.stuartthompson.net/2010/03/whats-new-in-the-net-framework-4/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 18:10:20 +0000</pubDate>
		<dc:creator>stuartthompson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://devblog.stuartthompson.net/2010/03/whats-new-in-the-net-framework-4/</guid>
		<description><![CDATA[This article gives a great overview of the new features that are coming in the next version of the .NET framework. http://msdn.microsoft.com/en-us/library/ms171868(v=VS.100).aspx#core_new_features_and_improvements I’m very excited for April 12th 2010.]]></description>
			<content:encoded><![CDATA[<p align="justify">This article gives a great overview of the new features that are coming in the next version of the .NET framework.</p>
<p align="justify"><a href="http://msdn.microsoft.com/en-us/library/ms171868(v=VS.100).aspx#core_new_features_and_improvements">http://msdn.microsoft.com/en-us/library/ms171868(v=VS.100).aspx#core_new_features_and_improvements</a></p>
<p align="justify">I’m very excited for April 12th 2010.</p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=What%E2%80%99s+new+in+the+.NET+Framework+4%3F:+http://bit.ly/9tTEWg" title="Post to Twitter"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-twitter-micro3.png" alt="Post to Twitter" /></a> <a target="_blank" class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://devblog.stuartthompson.net/2010/03/whats-new-in-the-net-framework-4/&amp;submitHeadline=What%E2%80%99s+new+in+the+.NET+Framework+4%3F" title="Post to Yahoo Buzz"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-buzz-micro3.png" alt="Post to Yahoo Buzz" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://devblog.stuartthompson.net/2010/03/whats-new-in-the-net-framework-4/&amp;title=What%E2%80%99s+new+in+the+.NET+Framework+4%3F" title="Post to Delicious"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-delicious-micro3.png" alt="Post to Delicious" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://devblog.stuartthompson.net/2010/03/whats-new-in-the-net-framework-4/&amp;title=What%E2%80%99s+new+in+the+.NET+Framework+4%3F" title="Post to Digg"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-digg-micro3.png" alt="Post to Digg" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://devblog.stuartthompson.net/2010/03/whats-new-in-the-net-framework-4/&amp;t=What%E2%80%99s+new+in+the+.NET+Framework+4%3F" title="Post to Facebook"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-facebook-micro3.png" alt="Post to Facebook" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://devblog.stuartthompson.net/2010/03/whats-new-in-the-net-framework-4/&amp;title=What%E2%80%99s+new+in+the+.NET+Framework+4%3F" title="Post to Reddit"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-reddit-micro3.png" alt="Post to Reddit" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://devblog.stuartthompson.net/2010/03/whats-new-in-the-net-framework-4/&amp;title=What%E2%80%99s+new+in+the+.NET+Framework+4%3F" title="Post to StumbleUpon"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-su-micro3.png" alt="Post to StumbleUpon" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://devblog.stuartthompson.net/2010/03/whats-new-in-the-net-framework-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Http Modules</title>
		<link>http://devblog.stuartthompson.net/2010/02/http-modules/</link>
		<comments>http://devblog.stuartthompson.net/2010/02/http-modules/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 20:07:31 +0000</pubDate>
		<dc:creator>stuartthompson</dc:creator>
				<category><![CDATA[.NET Framework]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[HttpModule]]></category>

		<guid isPermaLink="false">http://devblog.stuartthompson.net/2010/02/http-modules/</guid>
		<description><![CDATA[The .NET framework provides several mechanisms for extending the behaviors of web pages and other endpoints. One such technique is the http module. Modules are often either overlooked as a solution or are considered too heavyweight or scary for use. This is unfortunate as they are a powerful item in the ASP.NET development toolbox. An [...]]]></description>
			<content:encoded><![CDATA[<p align="justify">The <a title="Microsoft .NET Framework" href="http://www.microsoft.com/net/" target="_blank">.NET framework</a> provides several mechanisms for extending the behaviors of web pages and other endpoints. One such technique is the http module. Modules are often either overlooked as a solution or are considered too heavyweight or scary for use. This is unfortunate as they are a powerful item in the ASP.NET development toolbox.</p>
<p align="justify">An <a title="Http Modules on MSDN" href="http://msdn.microsoft.com/en-us/library/zec9k340(VS.71).aspx" target="_blank">http module</a> is a single unit of code that is executed as part of the web request pipeline. When a web request is received, the list of registered modules are afforded the opportunity to inject themselves at several stages in the execution pipeline. Each module has the opportunity to inspect or modify parts of the request before or after it is processed. This makes them a powerful mechanism for attaching custom behaviors. Modules also have a flexible activation model as they can be attached or detached via configuration allowing them to be enabled or disabled at will without affecting a production site.</p>
<p align="justify">The full source code for this example can be found <a title="Links to the http module sample in the code repository at stuartthompson.net." href="http://code.stuartthompson.net/public/Samples/Http%20Modules/">here</a>.</p>
<p align="justify"><strong>How to Create an HttpModule</strong>    <br />The ASP.NET Module type is in the Web category under the Add New Item dialog.</p>
<p><a href="http://devblog.stuartthompson.net/wp-content/uploads/2010/02/241229_tmp6C6D.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="241@229_tmp6C6D" border="0" alt="241@229_tmp6C6D" src="http://devblog.stuartthompson.net/wp-content/uploads/2010/02/241229_tmp6C6D_thumb.png" width="244" height="171" /></a></p>
<p align="justify">Remove the default sample code that is included in the template. The LogContext event handler is implemented in the template for demonstration purposes but is not used in this example. Your class should now look similar to the following:</p>
</p>
<pre class="brush:csharp">using System;
using System.Web;

namespace ModuleWebApp
{

    ///
<summary>
    /// Custom http module.
    /// </summary>

    public class MyNewModule : IHttpModule
    {

        #region IHttpModule Members

        public void Dispose() {}

        ///
<summary>
        /// Initializes the module.
        /// </summary>

        /// &lt;param name=&quot;context&quot;&gt;The application context.&lt;/param&gt;
        public void Init(HttpApplication context)
        {

        }

        #endregion

    }
}</pre>
</p>
<p align="justify"><strong>Initializing the Module</strong></p>
<p>Modules perform work by registering handlers for events in the request execution pipeline such as BeginRequest and EndRequest. It is within the event handlers that they perform their task. In the example below, the Init method is used to register handlers for the BeginRequest and EndRequest events.</p>
</p>
<pre class="brush:csharp">///
<summary>
/// Raised when the module is initialized.
/// </summary>

/// &lt;param name=&quot;context&quot;&gt;The application context.&lt;/param&gt;
public void Init(HttpApplication context)
{
    context.BeginRequest += new EventHandler(context_BeginRequest);
    context.EndRequest += new EventHandler(context_EndRequest);
}</pre>
</p>
<p align="justify"><strong>Implementing the Event Handlers and Finishing the Module</strong></p>
<p>Next provide implementations for the event handlers. This example module is going to calculate and display the time it takes to execute a page within the application. The code example below is for the completed module class. It contains the following changes:</p>
<ul>
<li>Declaration of a dictionary of stopwatches that stores the execution timers. </li>
<li>Implementation of the BeginRequest and EndRequest handlers to start and stop the timers. </li>
<li>Instantiation of the dictionary of timers in the Init method. </li>
</ul>
<pre class="brush:csharp">using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Web;

namespace ModuleWebApp
{

    /// &lt;summary&gt;
    /// A custom http module used to time request execution.
    /// &lt;/summary&gt;
    public class RequestTimer : IHttpModule
    {

        #region IHttpModule Members

        public void Dispose() { }

        /// &lt;summary&gt;
        /// Raised when the module is initialized.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;context&quot;&gt;The application context.&lt;/param&gt;
        public void Init(HttpApplication context)
        {
            _timers = new Dictionary&lt;Guid, Stopwatch&gt;();

            context.BeginRequest += new EventHandler(context_BeginRequest);
            context.EndRequest += new EventHandler(context_EndRequest);
        }

        #endregion

        #region Event Handlers

        /// &lt;summary&gt;
        /// Raised when the request begins.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;sender&quot;&gt;The source of the event; the &lt;see cref=&quot;System.Web.HttpApplication&quot; /&gt;.&lt;/param&gt;
        /// &lt;param name=&quot;e&quot;&gt;An &lt;see cref=&quot;System.EventsArgs&quot;/&gt; that contains event data.&lt;/param&gt;
        protected void context_BeginRequest(object sender, EventArgs e)
        {
            Guid timerId = Guid.NewGuid();
            Stopwatch timer = new Stopwatch();
            _timers.Add(timerId, timer);

            HttpContext.Current.Items.Add(EXECUTION_TIMER_KEY, timerId.ToString());

            timer.Start();
        }

        /// &lt;summary&gt;
        /// Raised when the request ends.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;sender&quot;&gt;The source of the event; the &lt;see cref=&quot;System.Web.HttpApplication&quot; /&gt;.&lt;/param&gt;
        /// &lt;param name=&quot;e&quot;&gt;An &lt;see cref=&quot;System.EventsArgs&quot;/&gt; that contains event data.&lt;/param&gt;
        protected void context_EndRequest(object sender, EventArgs e)
        {
            string timerId = HttpContext.Current.Items[EXECUTION_TIMER_KEY] as string;

            if (String.IsNullOrEmpty(timerId))
                return;

            Stopwatch timer = _timers[new Guid(timerId)];
            if (timer == null)
                return;

            timer.Stop();

            double elapsedSeconds = (timer.ElapsedMilliseconds) / (double)1000;

            HttpContext.Current.Response.Write(
                String.Format(
                    &quot;Request executed in {0} seconds ({1} ticks).&quot;,
                    elapsedSeconds.ToString(),
                    timer.ElapsedTicks.ToString()));
        }

        #endregion

        #region Fields

        /// &lt;summary&gt;
        /// The collection of execution timers.
        /// &lt;/summary&gt;
        private Dictionary&lt;Guid, Stopwatch&gt; _timers;

        #endregion

        #region Constants

        private const string EXECUTION_TIMER_KEY = &quot;__ExecutionTimer_Id&quot;;

        #endregion

    }

}</pre>
</p>
<p align="justify">Some of the concepts used here are beyond the scope of this discussion. Research the <a href="http://msdn.microsoft.com/en-us/library/system.diagnostics.stopwatch.aspx">Stopwatch</a> class for more information on how to use timers. See the <a href="http://msdn.microsoft.com/en-us/library/system.web.httpcontext.aspx">HttpContext</a> class to learn more about <a href="http://msdn.microsoft.com/en-us/library/system.web.httprequest.aspx">request</a> and <a href="http://msdn.microsoft.com/en-us/library/system.web.httpresponse.aspx">response</a> objects. </p>
<p align="justify"><strong>Registering the Module</strong></p>
<p>The final step is to register the module so that it is instantiated and executed on every request. This is done via the web.config file. The &lt;system.web&gt; section contains an &lt;httpModules&gt; section. The registration configuration line for the module should be added to the &lt;httpModules&gt; section as shown below:</p>
</p>
<pre class="brush:xml"><system.web>
	<!-- ... other configuration information ... -->
	<httpmodules>
		<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
		<add name="CustomUrlParser" type="ModuleWebApp.CustomUrlParser, ModuleWebApp" />
    <add name="RequestTimer" type="ModuleWebApp.RequestTimer, ModuleWebApp" />
	</httpmodules>
</system.web></pre>
</p>
<p align="justify">That&#8217;s it! Running the web application should display the default.aspx page, which now shows the execution time in elapsed seconds (and ticks). This information is displayed at the end of every web request so it works on every page in the system. If you inspect the context_EndRequest handler you can see the following lines: </p>
<pre class="brush:csharp">
HttpContext.Current.Response.Write(
	String.Format(
		&quot;Request executed in {0} seconds ({1} ticks).&quot;,
		elapsedSeconds.ToString(),
		timer.ElapsedTicks.ToString()));</pre>
</p>
<p align="justify">The HttpContext class exposes the current Request and Response. These are the http request and response that are received from and sent to the client respectively. The execution time was displayed on the page because this handler wrote to the response object after the request had finished executing. The timer was started when the request started and stopped when the request ended. The time taken for the page to performing its processing and the request to finish is then displayed in the response. It is in this way that modules interact with all requests in the system and provide global level behaviors that are attached via configuration. </p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Http+Modules:+http://bit.ly/cshmg4" title="Post to Twitter"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-twitter-micro3.png" alt="Post to Twitter" /></a> <a target="_blank" class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://devblog.stuartthompson.net/2010/02/http-modules/&amp;submitHeadline=Http+Modules" title="Post to Yahoo Buzz"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-buzz-micro3.png" alt="Post to Yahoo Buzz" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://devblog.stuartthompson.net/2010/02/http-modules/&amp;title=Http+Modules" title="Post to Delicious"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-delicious-micro3.png" alt="Post to Delicious" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://devblog.stuartthompson.net/2010/02/http-modules/&amp;title=Http+Modules" title="Post to Digg"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-digg-micro3.png" alt="Post to Digg" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://devblog.stuartthompson.net/2010/02/http-modules/&amp;t=Http+Modules" title="Post to Facebook"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-facebook-micro3.png" alt="Post to Facebook" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://devblog.stuartthompson.net/2010/02/http-modules/&amp;title=Http+Modules" title="Post to Reddit"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-reddit-micro3.png" alt="Post to Reddit" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://devblog.stuartthompson.net/2010/02/http-modules/&amp;title=Http+Modules" title="Post to StumbleUpon"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-su-micro3.png" alt="Post to StumbleUpon" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://devblog.stuartthompson.net/2010/02/http-modules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android Emulator Problems in Eclipse</title>
		<link>http://devblog.stuartthompson.net/2009/09/android-emulator-problems-in-eclipse/</link>
		<comments>http://devblog.stuartthompson.net/2009/09/android-emulator-problems-in-eclipse/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 23:08:53 +0000</pubDate>
		<dc:creator>stuartthompson</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Android SDK]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Emulator]]></category>
		<category><![CDATA[G1]]></category>

		<guid isPermaLink="false">http://devblog.stuartthompson.net/?p=111</guid>
		<description><![CDATA[I&#8217;ve recently been playing with the Android SDK using Eclipse 3.5 as a development environment.  I coded up the Hello World sample and all was progressing smoothly.  However, I then coded my own project and after a couple of runs the Android emulator simply refused to initialize.  I would always get the same error message [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I&#8217;ve recently been playing with the <a href="http://developer.android.com/index.html" target="_blank">Android SDK</a> using <a href="http://eclipse.org/" target="_blank">Eclipse 3.5</a> as a development environment.  I coded up the <a href="http://developer.android.com/guide/tutorials/hello-world.html" target="_blank">Hello World</a> sample and all was progressing smoothly.  However, I then coded my own project and after a couple of runs the Android emulator simply refused to initialize.  I would always get the same error message about how the runtime had requested to terminate the emulator in an unexpected way.  A few short <a href="http://www.lmgtfy.com/?q=android+sdk+This+application+has+requested+the+Runtime+to+terminate+it+in+an+unusual+way." target="_blank">Googles</a> later and it seemed as though <a href="http://markmail.org/message/h6y5kkgl6auxbi5r#query:android%20emulator%20This%20application%20has%20requested%20the%20Runtime%20to%20terminate%20it%20in%20an%20unusual%20way.+page:1+mid:bszmuiry7amwbfsr+state:results" target="_blank">I was not alone</a> in experiencing this problem.</p>
<p style="text-align: justify;"><span style="color: #ff0000;font-family:Lucida Console;">This application has requested the Runtime to terminate it in an unusual way.</span><br />
<span style="color: #ff0000;font-family:Lucida Console;">Please contact the application&#8217;s support team for more information.</span></p>
<p style="text-align: justify;">I tried rebooting my machine but to no avail as well as completely cleaning out my project.  It seemed that several people had even tried uninstalling and reinstalling the Android SDK without success.  It was at this point that I remembered I&#8217;d switched some of the emulator settings right around the time that the failure started to occur.  A little investigation showed that I&#8217;d added support for an 8MB  SD card to my virtual device in an attempt to more closely emulate the <a href="http://www.t-mobileg1.com/" target="_blank">G1</a> that I own.  I quickly adjusted the settings back to their defaults and the emulator started functioning again.  I&#8217;m hopeful that with more experience I&#8217;d have been able to diagnose the problem via logging output or a more detailed debug mode.  As it is right now I&#8217;m something of a newbie to Android development so I just figured that some temporary files for the emulator were borked.</p>
<p style="text-align: justify;">Every so often I seem to need to do this sort of thing to remind myself of the age old truth.  If software starts to break without any clear indication of why, it&#8217;s most likely due to something seemingly innocuous that the developer intentionally changed.  Always question your own actions first. <img src='http://devblog.stuartthompson.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Android+Emulator+Problems+in+Eclipse:+http://bit.ly/aVitCk" title="Post to Twitter"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-twitter-micro3.png" alt="Post to Twitter" /></a> <a target="_blank" class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://devblog.stuartthompson.net/2009/09/android-emulator-problems-in-eclipse/&amp;submitHeadline=Android+Emulator+Problems+in+Eclipse" title="Post to Yahoo Buzz"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-buzz-micro3.png" alt="Post to Yahoo Buzz" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://devblog.stuartthompson.net/2009/09/android-emulator-problems-in-eclipse/&amp;title=Android+Emulator+Problems+in+Eclipse" title="Post to Delicious"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-delicious-micro3.png" alt="Post to Delicious" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://devblog.stuartthompson.net/2009/09/android-emulator-problems-in-eclipse/&amp;title=Android+Emulator+Problems+in+Eclipse" title="Post to Digg"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-digg-micro3.png" alt="Post to Digg" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://devblog.stuartthompson.net/2009/09/android-emulator-problems-in-eclipse/&amp;t=Android+Emulator+Problems+in+Eclipse" title="Post to Facebook"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-facebook-micro3.png" alt="Post to Facebook" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://devblog.stuartthompson.net/2009/09/android-emulator-problems-in-eclipse/&amp;title=Android+Emulator+Problems+in+Eclipse" title="Post to Reddit"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-reddit-micro3.png" alt="Post to Reddit" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://devblog.stuartthompson.net/2009/09/android-emulator-problems-in-eclipse/&amp;title=Android+Emulator+Problems+in+Eclipse" title="Post to StumbleUpon"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-su-micro3.png" alt="Post to StumbleUpon" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://devblog.stuartthompson.net/2009/09/android-emulator-problems-in-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mathematical Notation on the Web</title>
		<link>http://devblog.stuartthompson.net/2009/08/mathnotationontheweb/</link>
		<comments>http://devblog.stuartthompson.net/2009/08/mathnotationontheweb/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 20:22:31 +0000</pubDate>
		<dc:creator>stuartthompson</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[Equations]]></category>
		<category><![CDATA[FireFox]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[MathML]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://devblog.stuartthompson.net/?p=106</guid>
		<description><![CDATA[I&#8217;ve recently been researching ways of displaying math equations online. To my surprise I have found that the packaged options for doing this are quite limited, especially on the Microsoft technology stack. There is fairly good coverage for Java and in the form of php and perl scripts, but very little natively for the .NET [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I&#8217;ve recently been researching ways of displaying math equations online.  To my surprise I have found that the packaged options for doing this are quite limited, especially on the Microsoft technology stack.  There is fairly good coverage for <a href="http://www.java.com/en/">Java</a> and in the form of <a href="http://www.php.net/">php</a> and <a href="http://www.perl.org/">perl</a> scripts, but very little natively for the <a href="http://www.microsoft.com/net/">.NET framework</a>.  As usual there are several formats for storing equations, including <a href="http://en.wikipedia.org/wiki/Microsoft_Equation_Editor">OMML</a> from <a href="http://www.microsoft.com">Microsoft</a>, a recommendation from <a href="http://www.w3.org/">W3C</a> called <a href="http://www.w3.org/Math/">MathML</a> and what is best described as the <em>lingua franca</em> in the form of <a href="http://www.latex-project.org/">LaTeX</a>.</p>
<p><img class="alignnone size-full wp-image-105" title="image001" src="http://devblog.stuartthompson.net/wp-content/uploads/2009/08/image001.png" alt="image001" width="169" height="51" /></p>
<p style="text-align: justify;"><span style="text-decoration: underline;">Native Browser Support</span><br />
Several <a href="http://www.lmgtfy.com/?q=render+math+equations+on+the+web">google searches</a> showed that I was <a href="http://stackoverflow.com/questions/1060764/mathml-or-omml-to-png-w-net">not alone</a> in <a href="http://markmail.org/message/ngmgljmz6xu5nltg">this search</a>.  However, most of the solutions I found came with caveats about which browsers they would work with and required the installation of additional software on client machines in order to work.  Installing additional software on client machines defeats the purpose of providing a browser-based experience and in some environments isn&#8217;t even an option.  I needed to find something that would work all modern browsers without requiring changes on the client.</p>
<p style="text-align: justify;"><span style="text-decoration: underline;">Internet Explorer &#8211; MathPlayer</span><br />
<a href="http://www.dessci.com/en/">Design Science</a> (who originally created the <a href="http://en.wikipedia.org/wiki/Microsoft_Equation_Editor">Equation Editor</a> that is now part of <a href="http://office.microsoft.com/en-us/default.aspx">Microsoft Office</a>) offer a product called <a href="http://www.dessci.com/en/products/mathplayer/">Math Player</a>.  Math Player is an ActiveX control that renders MathML equations within <a href="http://www.microsoft.com/windows/internet-explorer/default.aspx">Internet Explorer</a>. It provides good accessibility support, is free for non-commercial uses, and as ActiveX controls go it was a painless installation. However, because it is an ActiveX control is requires a client installation and only works in IE. Furthermore, the player only seemed to work for pages with the .xhtml extension that declared that XHTML doctype and exhibited some strange visual artifacts if either the MathML or containing page were not formatted correctly.</p>
<p style="text-align: justify;"><span style="text-decoration: underline;">FireFox MathML Support</span><br />
FireFox has made some good progress towards natively supporting MathML.  However, at present it does not contain a full solution and instead requires downloading the latest <a href="http://ftp.mozilla.org/pub/mozilla.org/mozilla/nightly/latest/">nightly build</a> and the installation of <a href="http://www.mozilla.org/projects/mathml/fonts/">several fonts</a>.</p>
<p style="text-align: justify;"><span style="text-decoration: underline;">Chrome MathML Support</span><br />
Despite being <a href="http://groups.google.com/group/google-chrome-help-suggestions/browse_thread/thread/5adc548c9528e2c3/bf667829953b4b27">widely</a> <a href="http://google-opensource.blogspot.com/2008/09/google-chrome-our-fresh-take-on-browser.html?showComment=1220390520000#c8643581418640429468">requested</a>, Chrome does not natively support MathML.  I could not find conclusive information either way as to whether MathML support is on the <a href="http://www.google.com/chrome">Chrome</a> development roadmap.</p>
<p style="text-align: justify;">For the next part of my research I&#8217;m going to look into <a title="LaTeX" href="http://www.latex-project.org/" target="_blank">LaTeX</a> as it really seems to be the de facto standard from a tools and community support perspective. I have seen several examples, including <a href="http://www.wikipedia.org">WikiPedia</a> that stores equations and diagrams in LaTeX format and then renders them to images on the fly as part of the page. That sounds like it could be a good way to go.</p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Mathematical+Notation+on+the+Web:+http://bit.ly/cwB6qj" title="Post to Twitter"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-twitter-micro3.png" alt="Post to Twitter" /></a> <a target="_blank" class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://devblog.stuartthompson.net/2009/08/mathnotationontheweb/&amp;submitHeadline=Mathematical+Notation+on+the+Web" title="Post to Yahoo Buzz"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-buzz-micro3.png" alt="Post to Yahoo Buzz" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://devblog.stuartthompson.net/2009/08/mathnotationontheweb/&amp;title=Mathematical+Notation+on+the+Web" title="Post to Delicious"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-delicious-micro3.png" alt="Post to Delicious" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://devblog.stuartthompson.net/2009/08/mathnotationontheweb/&amp;title=Mathematical+Notation+on+the+Web" title="Post to Digg"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-digg-micro3.png" alt="Post to Digg" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://devblog.stuartthompson.net/2009/08/mathnotationontheweb/&amp;t=Mathematical+Notation+on+the+Web" title="Post to Facebook"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-facebook-micro3.png" alt="Post to Facebook" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://devblog.stuartthompson.net/2009/08/mathnotationontheweb/&amp;title=Mathematical+Notation+on+the+Web" title="Post to Reddit"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-reddit-micro3.png" alt="Post to Reddit" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://devblog.stuartthompson.net/2009/08/mathnotationontheweb/&amp;title=Mathematical+Notation+on+the+Web" title="Post to StumbleUpon"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-su-micro3.png" alt="Post to StumbleUpon" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://devblog.stuartthompson.net/2009/08/mathnotationontheweb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Secret to Organizational Agility</title>
		<link>http://devblog.stuartthompson.net/2008/12/the-secret-to-organizational-agility/</link>
		<comments>http://devblog.stuartthompson.net/2008/12/the-secret-to-organizational-agility/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 21:25:32 +0000</pubDate>
		<dc:creator>stuartthompson</dc:creator>
				<category><![CDATA[Agile]]></category>

		<guid isPermaLink="false">http://stuartthompsontech.wordpress.com/?p=99</guid>
		<description><![CDATA[Mike Cottmeyer wrote an excellent article about the importance of eliminating dependencies in agile projects: http://www.leadingagile.com/2008/12/secret-to-organizational-agility.html How many times have the following been true: &#8220;Many teams are trying to sprint through product development using a traditional MRD or PRD.&#8221; &#8220;Many teams are working with traditional project managers who are doing their best to be agile, [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Mike Cottmeyer wrote an excellent article about the importance of eliminating dependencies in agile projects:<br />
<a href="void(0);/*1228771232703*/">http://www.leadingagile.com/2008/12/secret-to-organizational-agility.html</a></p>
<p style="text-align:justify;">How many times have the following been true:</p>
<ul style="font-style:italic;text-align:justify;">
<li>&#8220;Many teams are trying to sprint through product development using a traditional MRD or PRD.&#8221;</li>
<li>&#8220;Many teams are working with traditional project managers who are doing their best to be agile, but have been trained to manage dependencies and tell people what to do.&#8221;</li>
<li>&#8220;Teams are trying to be agile with tightly coupled software architectures, insufficient test coverage, legacy code bases, and unable to do a daily build.&#8221;</li>
</ul>
<p style="text-align:justify;">Removing dependencies is a key step that can be taken towards a truly agile development environment.</p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=The+Secret+to+Organizational+Agility:+http://bit.ly/buYWKH" title="Post to Twitter"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-twitter-micro3.png" alt="Post to Twitter" /></a> <a target="_blank" class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://devblog.stuartthompson.net/2008/12/the-secret-to-organizational-agility/&amp;submitHeadline=The+Secret+to+Organizational+Agility" title="Post to Yahoo Buzz"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-buzz-micro3.png" alt="Post to Yahoo Buzz" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://devblog.stuartthompson.net/2008/12/the-secret-to-organizational-agility/&amp;title=The+Secret+to+Organizational+Agility" title="Post to Delicious"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-delicious-micro3.png" alt="Post to Delicious" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://devblog.stuartthompson.net/2008/12/the-secret-to-organizational-agility/&amp;title=The+Secret+to+Organizational+Agility" title="Post to Digg"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-digg-micro3.png" alt="Post to Digg" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://devblog.stuartthompson.net/2008/12/the-secret-to-organizational-agility/&amp;t=The+Secret+to+Organizational+Agility" title="Post to Facebook"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-facebook-micro3.png" alt="Post to Facebook" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://devblog.stuartthompson.net/2008/12/the-secret-to-organizational-agility/&amp;title=The+Secret+to+Organizational+Agility" title="Post to Reddit"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-reddit-micro3.png" alt="Post to Reddit" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://devblog.stuartthompson.net/2008/12/the-secret-to-organizational-agility/&amp;title=The+Secret+to+Organizational+Agility" title="Post to StumbleUpon"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-su-micro3.png" alt="Post to StumbleUpon" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://devblog.stuartthompson.net/2008/12/the-secret-to-organizational-agility/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Be careful with your online brand&#8230;</title>
		<link>http://devblog.stuartthompson.net/2008/12/be-careful-with-your-online-brand/</link>
		<comments>http://devblog.stuartthompson.net/2008/12/be-careful-with-your-online-brand/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 21:24:43 +0000</pubDate>
		<dc:creator>stuartthompson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://stuartthompsontech.wordpress.com/?p=97</guid>
		<description><![CDATA[As the popularity of Web 2.0 is growing, so is the ability for others to observe and evaluate your story and your personal online brand.  This article from JASE marketing reports that a &#8220;survey of 500 top colleges found that 10 percent of admissions officers said they look at MySpace and Facebook to evaluate applicants.&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">As the popularity of Web 2.0 is growing, so is the ability for others to observe and evaluate your story and your personal online brand.  <a href="void(0);/*1228762305907*/">This article from</a> JASE marketing reports that a <span style="font-style:italic;">&#8220;survey of 500 top colleges found that 10 percent of admissions officers said they look at </span><a title="JASE Group MySpace" href="http://www.myspace.com/" target="_blank">MySpace</a><span style="font-style:italic;"> and </span><a title="JASE Group Facebook" href="http://www.facebook.com/" target="_blank">Facebook</a><span style="font-style:italic;"> to evaluate applicants.&#8221;</span></p>
<p style="text-align:justify;">I&#8217;ve always lived by two golden rules with regards to blogging:<br />
1) Blog only something you would wish to see printed and cited at any time in the future.<br />
2) Do not edit or update a blog assuming that a printed/archived/cached copy of the original does not exist.</p>
<p style="text-align:justify;">It&#8217;s a general faux pas to update a blog post for any reason.  The web is alive with caches and indexes so the chances are that the original is still out there for people to compare.  Spelling errors are generally ok, but if the content of an article is to be updated it is good form to list at <span style="font-style:italic;">Updated: [description of update]</span> at the top or bottom of the post.  If an opinion is being revised, be clear about why there is a change in stance.  Comments are a great way to revise an opinion after learning new information as it allows readers to see the thought processes and perhaps benefit from the same line of thinking that provoked your own turn around.</p>
<p style="text-align:justify;">Web 2.0 means we are all ultra-connected.  This can be great not only for staying in touch with friends but also for business networking and establishing a reputation and a brand in the online world.  However, remember that this &#8220;permanent record&#8221; can go both ways: and this one is for the world to see.</p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Be+careful+with+your+online+brand%E2%80%A6:+http://bit.ly/97X1jM" title="Post to Twitter"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-twitter-micro3.png" alt="Post to Twitter" /></a> <a target="_blank" class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://devblog.stuartthompson.net/2008/12/be-careful-with-your-online-brand/&amp;submitHeadline=Be+careful+with+your+online+brand%E2%80%A6" title="Post to Yahoo Buzz"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-buzz-micro3.png" alt="Post to Yahoo Buzz" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://devblog.stuartthompson.net/2008/12/be-careful-with-your-online-brand/&amp;title=Be+careful+with+your+online+brand%E2%80%A6" title="Post to Delicious"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-delicious-micro3.png" alt="Post to Delicious" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://devblog.stuartthompson.net/2008/12/be-careful-with-your-online-brand/&amp;title=Be+careful+with+your+online+brand%E2%80%A6" title="Post to Digg"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-digg-micro3.png" alt="Post to Digg" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://devblog.stuartthompson.net/2008/12/be-careful-with-your-online-brand/&amp;t=Be+careful+with+your+online+brand%E2%80%A6" title="Post to Facebook"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-facebook-micro3.png" alt="Post to Facebook" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://devblog.stuartthompson.net/2008/12/be-careful-with-your-online-brand/&amp;title=Be+careful+with+your+online+brand%E2%80%A6" title="Post to Reddit"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-reddit-micro3.png" alt="Post to Reddit" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://devblog.stuartthompson.net/2008/12/be-careful-with-your-online-brand/&amp;title=Be+careful+with+your+online+brand%E2%80%A6" title="Post to StumbleUpon"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-su-micro3.png" alt="Post to StumbleUpon" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://devblog.stuartthompson.net/2008/12/be-careful-with-your-online-brand/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby on Rails Setup with DreamHost</title>
		<link>http://devblog.stuartthompson.net/2008/10/ruby-on-rails-setup-with-dreamhost/</link>
		<comments>http://devblog.stuartthompson.net/2008/10/ruby-on-rails-setup-with-dreamhost/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 21:11:43 +0000</pubDate>
		<dc:creator>stuartthompson</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[DreamHost]]></category>
		<category><![CDATA[Instructions]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Setup]]></category>
		<category><![CDATA[The Experiment]]></category>

		<guid isPermaLink="false">http://stuartthompsontech.wordpress.com/?p=54</guid>
		<description><![CDATA[As step 1 of my latest experiment, I&#8217;ve started by configuring a Ruby on Rails site with DreamHost.  This actually involved quite a bit of setup work, which is not unusual when remotely hosting a new website.  I have documented the steps as fully as I can for anyone else curious about trying development in [...]]]></description>
			<content:encoded><![CDATA[<p>As step 1 of <a href="http://stuartthompsontech.wordpress.com/2008/10/27/the-aspnet-silverlight-php-rails-experiment/" target="_blank">my latest experiment</a>, I&#8217;ve started by configuring a <a href="http://www.rubyonrails.org" target="_blank">Ruby on Rails</a> site with <a href="http://www.dreamhost.com" target="_blank">DreamHost</a>.  This actually involved quite a bit of setup work, which is not unusual when remotely hosting a new website.  I have documented the steps as fully as I can for anyone else curious about trying development in Rails.</p>
<p><strong>Step 1 &#8211; Signup with DreamHost</strong><br />
You can sign up <a href="http://www.dreamhost.com/r.cgi?461119" target="_blank">using this link</a> or use the promo code LETMETRYRAILS and receive $50 off (i.e. no setup fee).</p>
<p style="text-align:justify;"><strong>Step 2 &#8211; Configure your domain</strong><br />
The next step is to configure your domain.   We&#8217;ll start at the <a href="http://panel.dreamhost.com" target="_blank">DreamHost configuration panel</a>.  Select <em>Domains</em> and then <em>Manage Domains</em> from the left-hand sidebar.  This will bring up the list of domains in your account.  Click the <em>Edit </em>button in the <em>Web Hosting</em> column.</p>
<p><a href="http://stuartthompsontech.files.wordpress.com/2008/10/dreamhost_managedomains2.jpg"><img class="alignnone size-full wp-image-62" title="dreamhost_managedomains2" src="http://stuartthompsontech.files.wordpress.com/2008/10/dreamhost_managedomains2.jpg" alt="" width="460" height="228" /></a></p>
<p>This will open the settings page for that domain.  Check the FastCGI and Passenger (mod_rails) checkboxes.  Finally click the <em>Change fully hosted settings now!</em> button (note that this button is not at the bottom of the page, rather at the end of the first section).</p>
<p><a href="http://stuartthompsontech.files.wordpress.com/2008/10/dreamhost_configuredomain1.jpg"><img class="alignnone size-full wp-image-63" title="dreamhost_configuredomain1" src="http://stuartthompsontech.files.wordpress.com/2008/10/dreamhost_configuredomain1.jpg" alt="" width="460" height="366" /></a></p>
<p style="text-align:justify;">FastCGI support allows your Rails project to run much faster.  The Passenger (mod_rails) option allows your Rails application to be configured much more easily and is the <a href="http://wiki.dreamhost.com/Passenger" target="_blank">preferred DreamHost method</a> for hosting Ruby on Rails applications.</p>
<p style="text-align:justify;"><strong>Step 3 &#8211; Configure your FTP/SSH user</strong><br />
We will be performing much of the setup and configuration of the website via SSH.  We will need to setup a user account for this purpose.  During your initial setup you should have created an ftp account for your domain, probably with the same name as that domain (if you accepted the defaults).  Select the <em>Users</em> and then <em>Manage Users</em> options from the left side-bar.  Click the <em>Edit</em> button next to your user in the <em>Actions </em>column.</p>
<p><a href="http://stuartthompsontech.files.wordpress.com/2008/10/dreamhost_editusers.jpg"><img class="alignnone size-full wp-image-61" title="dreamhost_editusers" src="http://stuartthompsontech.files.wordpress.com/2008/10/dreamhost_editusers.jpg" alt="" width="460" height="216" /></a></p>
<p style="text-align:justify;">This will open the following page where you can edit your user.  Change the User <em>Account Type</em> to <em>Shell account</em> and select the <em>/bin/bash</em> shell type.  Finally, hit the <em>Save Changes</em> button at the bottom of the page.</p>
<p style="text-align:left;"><a href="http://stuartthompsontech.files.wordpress.com/2008/10/dreamhost_editingftpuser.jpg"><img class="alignnone size-full wp-image-64" title="dreamhost_editingftpuser" src="http://stuartthompsontech.files.wordpress.com/2008/10/dreamhost_editingftpuser.jpg" alt="" width="460" height="297" /></a></p>
<p style="text-align:left;">This enables the user to connect using a Telnet/SSH client, which is exactly what we are going to do next.</p>
<p style="text-align:justify;"><strong>Step 4 &#8211; Download some tools</strong><br />
Next we&#8217;re going to download the tools we&#8217;ll need to create and configure our rails website.  We&#8217;ll need the latest release of Ruby, MySQL, HeidiSql, and PuTTY.  HeidiSql is a free gui for maintaining MySQL databases.  PuTTY is a free Telnet/SSH client that we&#8217;ll use for remote configuration of our site.  Note that you do not need to signup on the MySQL site to get the download.  Click the <em>No thanks, just let me download</em> link.</p>
<ul>
<li>Ruby 1.8.6-27 RC1 can be <a href="http://rubyforge.org/frs/?group_id=167" target="_blank">downloaded here</a>.</li>
<li>MySQL 5.0 Community Server can be <a href="http://dev.mysql.com/downloads/mysql/5.0.html#win32" target="_blank">downloaded here</a> (select the Windows ZIP/Setup.EXE (x86) option)</li>
<li>HeidiSQL 3.2 can be <a href="http://www.heidisql.com/download.php" target="_blank">downloaded here</a>.</li>
<li>PuTTY can be <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">downloaded here</a>.</li>
</ul>
<p style="text-align:justify;"><strong>Step 5 &#8211; Installing Rails</strong><br />
Now that we have the necessary tools installed it is time to setup Rails locally.  Fortunately, Ruby comes with everything we need to get setup and running, including the WEBrick web server that we can use to run and test our site before deployment.  When installing Ruby, be sure to check the <em>Enable RubyGems </em>option on the first page of the installer.</p>
<p style="text-align:left;"><a href="http://stuartthompsontech.files.wordpress.com/2008/10/rubyinstallation.jpg"><img class="alignnone size-full wp-image-66" title="rubyinstallation" src="http://stuartthompsontech.files.wordpress.com/2008/10/rubyinstallation.jpg" alt="" width="460" height="355" /></a></p>
<p style="text-align:left;">Once the installer completes, open up a command window and execute the following commands:</p>
<p style="text-align:left;padding-left:30px;"><span style="color:#000080;">cd ruby/bin<br />
gem update &#8211;system<br />
gem install rails &#8211;version 2.1.2</span></p>
<p style="text-align:justify;">This will use the gem system to install rails locally.  If everything is successful, your command window should look something like this:</p>
<p style="text-align:left;"><a href="http://stuartthompsontech.files.wordpress.com/2008/10/installrails1.jpg"><img class="alignnone size-full wp-image-69" title="installrails1" src="http://stuartthompsontech.files.wordpress.com/2008/10/installrails1.jpg" alt="" width="460" height="294" /></a></p>
<p style="text-align:justify;">You may need to restart your system at this point.  Ughh.  This is because Windows Vista and XP sometimes struggle to detect that new environment variables were added to the $PATH.  Unless you relish fully qualifying the <em>C:/Ruby/bin</em> directory on the next few commands, I&#8217;d advise you restart now.  It&#8217;s also not a bad idea since we did just install four new programs.  I&#8217;ve found Windows seems to run more smoothly if you reboot after installing new things.</p>
<p style="text-align:justify;"><strong>Step 6 &#8211; Create your Rails site locally</strong><br />
Now that we have Rails setup, let&#8217;s create a simple site locally.  I created a new directory on C:\ called <em>projects</em> in which to develop the site.  Open a command prompt and type the following:</p>
<p style="padding-left:30px;"><span style="color:#000080;">cd \<br />
md projects<br />
cd projects<br />
rails MyRailsSite</span></p>
<p>This will create your rails site in <em>C:\projects\MyRailsSite</em>.  Before we add our first view and controller, let&#8217;s quickly check that everything wired up properly.  To do this we need to start the WEBrick server:</p>
<p style="padding-left:30px;"><span style="color:#000080;">cd C:\projects\MyRailsSite<br />
ruby script/server</span></p>
<p>Vista may ask if you wish to <em>unblock</em> Ruby, which you do.  Your command prompt should look something like the following:</p>
<p><a href="http://stuartthompsontech.files.wordpress.com/2008/10/rails_webrickserver.jpg"><img class="alignnone size-full wp-image-71" title="rails_webrickserver" src="http://stuartthompsontech.files.wordpress.com/2008/10/rails_webrickserver.jpg" alt="" width="460" height="141" /></a></p>
<p>You can now navigate to <a href="http://127.0.0.1:3000" target="_blank">http://127.0.0.1:3000</a> to see your site.  If everything is configured correctly you should see the Ruby on Rails welcome page:</p>
<p><a href="http://stuartthompsontech.files.wordpress.com/2008/10/rubyonrails_welcomescreen.jpg"><img class="alignnone size-full wp-image-72" title="rubyonrails_welcomescreen" src="http://stuartthompsontech.files.wordpress.com/2008/10/rubyonrails_welcomescreen.jpg" alt="" width="460" height="336" /></a></p>
<p>We can shutdown the WEBrick server by pressing Ctrl-C in the command prompt window.</p>
<p>Now let&#8217;s create our first controller and view.  We&#8217;re going to keep it simple and put up a page that displays the message &#8220;Hello World!&#8221;.  At the command prompt type the following:</p>
<p style="padding-left:30px;"><span style="color:#000080;">cd projects\MyRailsSite<br />
ruby script/generate controller HelloWorld</span></p>
<p><span style="color:#000080;"><a href="http://stuartthompsontech.files.wordpress.com/2008/10/rails_createcontroller.jpg"><img class="alignnone size-full wp-image-73" title="rails_createcontroller" src="http://stuartthompsontech.files.wordpress.com/2008/10/rails_createcontroller.jpg" alt="" width="460" height="167" /></a><br />
</span></p>
<p style="text-align:justify;">This will generate a new controller for you as well as a new view.  If you aren&#8217;t familiar with MVC development, just follow along for now until the sample becomes clear.  The rest will come in time and with additional reading and practice.  For now it is suffice to say that a controller will perform the work for a web page request where the view will display the results of that work.</p>
<p style="text-align:justify;">Let&#8217;s edit the controller that was generated.  To do this, open up an explorer window, navigate to <em>C:\projects\MyRailsSite\app\controllers</em>, right-click over the <em>hello_world_controller.rb</em> file and select <em>Edit</em> from the context menu.  This should open the controller file in the SciTE editor.  We need to add lines to the class to respond to the <em>index</em> action.  The <em>index</em> action is the default action that will be performed for a controller.  To do this, edit the file to look like the following:</p>
<p style="text-align:justify;"><a href="http://stuartthompsontech.files.wordpress.com/2008/10/rails_editcontroller.jpg"><img class="alignnone size-full wp-image-74" title="rails_editcontroller" src="http://stuartthompsontech.files.wordpress.com/2008/10/rails_editcontroller.jpg" alt="" width="442" height="186" /></a></p>
<p style="text-align:justify;">This <em>controller</em> will now set the variable <em>@message</em> to the literal &#8220;Hello World&#8221;; when the index <em>action</em> is requested.  Controllers perform actions.</p>
<p style="text-align:justify;">Save the file and close it.  Now we will create a view to display the message.  Navigate to the <em>C:\projects\MyRailsSite\app\views\hello_world</em> directory in explorer (notice how Rails created the view directory for us).  Right-click in the directory and create a new file called <em>index.html.erb</em>.  Now right-click this file and open it in your favorite editor (Notepad will suffice).  Add the following to the file:</p>
<p style="text-align:justify;"><a href="http://stuartthompsontech.files.wordpress.com/2008/10/rails_createview.jpg"><img class="alignnone size-full wp-image-75" title="rails_createview" src="http://stuartthompsontech.files.wordpress.com/2008/10/rails_createview.jpg" alt="" width="347" height="194" /></a></p>
<p style="text-align:justify;">Save the file and close the editor.  We&#8217;re almost ready to test out our new controller and view.  First, however, we need to configure a <em>route</em> for our site.  A <em>route</em> is a mapping from an end-point (url) in our site to an actual controller and view that will fulfil the request.  In explorer, navigate to <em>C:\projects\MyRailsSite\config</em>, right-click the file <em>routes.rb</em> and select <em>Edit</em> from the context-menu.  This will open your routes file in the SciTE editor.  Almost the entire file is commented out.  Most of this file contains instructions for configuring custom routes.  We&#8217;re going to comment out the last two lines of the file and insert a single mapped route of our own.  Edit the end of the file to look like the following:</p>
<p style="text-align:justify;"><a href="http://stuartthompsontech.files.wordpress.com/2008/10/rails_editroutes.jpg"><img class="alignnone size-full wp-image-76" title="rails_editroutes" src="http://stuartthompsontech.files.wordpress.com/2008/10/rails_editroutes.jpg" alt="" width="460" height="105" /></a></p>
<p style="text-align:justify;">This line connects the <em>helloworld</em> route to the <em>hello_world</em> controller for the <em>index</em> action.  The action specification isn&#8217;t actually necessary as the index action is assumed by default if none is specified, but I prefer to be explicit.</p>
<p style="text-align:justify;">There is one final thing we&#8217;ll need to do before we can browse to our page locally.  We need to install and configure MySQL.</p>
<p style="text-align:justify;"><strong>Step 7 &#8211; Install and configure MySQL</strong><br />
This is a very short step.  Run the MySQL setup package you downloaded earlier and select the <em>Typical</em> installation option.  Then hit Next-&gt;Next-&gt;Finish all the way to the end.  When the configuration wizard runs, choose <em>Detailed Configuration</em>, then <em>Developer Machine, </em>then<em> </em><em>Multifunctional Database</em>.  When asked for a location for the Inno files, I used <em>C:\projects\MySQL</em>.  Choose <em>Decision Support (DSS)/OLAP</em> then leave both boxes checked on the next dialog with 3306 as the port number.  Choose <em>Standard Character Set</em>, then check <em>Install As Windows Service</em> and leave <em>Include Bin Directory in Windows PATH</em> unchecked.  Enter a new root password, leave <em>Create An Anonymous Account</em> unchecked.  Finally, hit <em>Execute</em> to finish the configuration wizard.  MySQL is now installed and configured.</p>
<p style="text-align:justify;"><strong>Step 8 &#8211; Create a database for our project</strong><br />
We&#8217;ll need to create a database for our project.  To do this we&#8217;ll need to install HeidiSql.  Let&#8217;s run that installer now.  I use the defaults from the installer except on the <em>Select Additional Tasks</em> dialog where I uncheck <em>Associate .SQL Files with HeidiSQL. </em>When the installer completes it will launch the HeidiSQL gui.  Click the New button at the top of the first dialog.  Name the connection <em>MyRailsSite</em>, click OK, and then enter the password you selected during your MySQL installation into the password box provided.  The first thing we&#8217;re going to do is create a new database.  Right-click over root@127.0.0.1 in the left side-bar and select <em>Create database</em> from the context menu.  Enter <em>MyRailsSite</em> as the database name and click ok.  Now select Tools-&gt;User-Manager from the top menu.  We&#8217;re going to create a new user to avoid using the root user in our application.  For the <em>Username</em> type myrailsdbuser, set<em> From Host </em>to<em> localhost</em>, and type a password for your new user.  Don&#8217;t use the same password you used for root.  In the <em>Allow access to</em> list, left-click over the <em>myrailssite</em> database (it will turn yellow).  Now click <em>Add User</em>.  Then click <em>Close</em> to close the user manager dialog.  Now we&#8217;ve created a database and a specific user for our Rails application to use.</p>
<p style="text-align:justify;"><strong>Step 9 &#8211; Configure Rails to use the database</strong><br />
Finally we need to configure our Rails site to use our new database.  In an Explorer window, navigate to <em>C:\projects\MyRailsSite\config</em>, right-click the <em>database.yml</em> file and edit it in your favorite editor (I use <a href="http://www.textpad.com/" target="_blank">TextPad</a> but NotePad will suffice).  Edit your file to look like the following:</p>
<p style="text-align:justify;"><a href="http://stuartthompsontech.files.wordpress.com/2008/10/rails_dbconfig2.jpg"><img class="alignnone size-full wp-image-83" title="rails_dbconfig2" src="http://stuartthompsontech.files.wordpress.com/2008/10/rails_dbconfig2.jpg" alt="" width="285" height="380" /></a></p>
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;"><strong>Step 10 &#8211; Testing the site locally</strong><br />
We&#8217;re finally ready to test the site locally!  Open up a command window are run the following to start the WEBrick server:</p>
<p style="text-align:justify;padding-left:30px;"><span style="color:#000080;">cd c:\projects\myrailssite<br />
ruby script/server</span></p>
<p style="text-align:justify;">Then open a browser and navigate to <a href="http://127.0.0.1:3000/" target="_blank">http://127.0.0.1:3000/</a>.  You&#8217;ll notice that the Rails welcome page still displays.  However, change the url in the browser to point to <a href="http://127.0.0.1:3000/helloworld" target="_blank">http://127.0.0.1:3000/helloworld</a>.  You should now see your view displaying the message &#8220;Hello World!&#8221;.  Let&#8217;s remove the default index page now and then make your default route point to your <em>helloworld</em> view.  To do this, open up Explorer and navigate to <em>c:\projects\myrailssite\public</em>.  This is your site&#8217;s public directory.  From here, delete the <em>index.html</em> file.  That&#8217;s the welcome page gone; we don&#8217;t need it anymore.  Now navigate to <em>c:\projects\myrailssite\config</em> and open the <em>routes.rb</em> file again.  Add the following line just before the map.connect line we added earlier:</p>
<p style="text-align:justify;padding-left:30px;"><span style="color:#000080;">map.root :controller=&gt;&#8221;hello_world&#8221;</span></p>
<p style="text-align:justify;">This configures the <em>root</em> route to point to our hello world controller.  As we stated earlier, there is no need to specify the <em>index</em> action as it is assumed by default.  Save and close the file, then browse to <a href="http://127.0.0.1:3000" target="_blank">http://127.0.0.1:3000</a> once more.  Your site should now be displaying your &#8220;Hello World!&#8221; message.  Note how the url is just <a href="http://127.0.0.1:3000" target="_blank">http://127.0.0.1:3000</a> and doesn&#8217;t have helloworld at the end.  This is an important point about routes.  You aren&#8217;t navigating a particular directory structure on the site, you are simply navigating routes and actions.  The controller could be named anything you like as long as the route for a particular end-point correctly routed requests for that end-point to your controller.  For now, let&#8217;s stop the WEBrick server and close the command window.  The final task is to get your Rails site up to <a href="http://www.dreamhost.com">DreamHost</a> and serve your &#8220;Hello World!&#8221; request remotely.</p>
<p style="text-align:justify;"><strong>Step 11 &#8211; Configuring DreamHost for your site</strong><br />
This final configuration step may seem a little confusing at first, but only if you aren&#8217;t familiar with Linux and BASH.  It doesn&#8217;t take very long and it isn&#8217;t important to understand how it works because you&#8217;ll only need to do it once.  We&#8217;re going to install version 2.1.2 of rails to your remote host because that&#8217;s the version that Passenger (mod_rails) needs in order to run your site.  This is where we&#8217;ll need PuTTY.  Fortunately there is no installation step with PuTTY.  It is simply an executable that you download and run.</p>
<p style="text-align:justify;">When you run PuTTY, you will need to supply the username and password of the user we configured in step 3.  This will connect you to the server that will host your site.  The following instructions are commands to enter into the BASH shell as well as instructions on editing your ~/.bash_profile file (which is similar to environment settings for the command shell in Windows).  The first part of these instructions is about editing your ~/.bash_profile file to ensure that some paths and other required settings are configured before beginning installation.  These instructions have been adapted from the <a href="http://wiki.dreamhost.com/RubyGems" target="_blank">DreamHost wiki article on this topic</a>.</p>
<p style="text-align:justify;">Before we update rails, let&#8217;s first create our Rails site remotely.  To do this, first run PuTTY.  For the <em>Host Name</em> you will supply your domain name in the form www.MyDomainName.com.  Then click <em>Open</em>.  I choose <em>No</em> from the next dialog as I don&#8217;t want to store anything in the registry.  You will now enter the username and password for the user we created in step 3.  When you connect, type <em>ls</em> and hit enter.  This is the BASH command to list the contents of the current directory.  You should see <em>MyDomainName.com</em> listed in the output.  We are going to navigate to that folder and then create a rails site inside that folder.</p>
<p style="text-align:justify;padding-left:30px;"><span style="color:#000080;">cd MyDomainName.com<br />
rails MyRailsSite</span></p>
<p style="text-align:justify;">This will create a Rails site on the DreamHost server, the same way we did it locally earlier.  We&#8217;re going to create the site like this and then upload our site files from our local machine to the remote site.  To upload our files, we&#8217;ll use an Explorer window and ftp.  First, however, we need to create a copy of our database.yml and environment.rb files.  This is because those files will be different on our remote host than they are locally.  Create a copy of each of those files called database.yml.live and environment.rb.live now.  Now edit the database.yml.live file to look like the following:</p>
<p style="text-align:justify;"><a href="http://stuartthompsontech.files.wordpress.com/2008/10/rails_dbconfiglive2.jpg"><img class="alignnone size-full wp-image-87" title="rails_dbconfiglive2" src="http://stuartthompsontech.files.wordpress.com/2008/10/rails_dbconfiglive2.jpg" alt="" width="281" height="134" /></a></p>
<p style="text-align:justify;">
<p style="text-align:justify;">Edit your environment.rb.live file and uncomment the following line (its on line 5):</p>
<p style="text-align:justify;padding-left:30px;"><span style="color:#000080;">ENV['RAILS_ENV'] ||= &#8216;production&#8217;</span></p>
<p style="text-align:justify;">This is important because running in development mode under FastCGI will cause memory leaks on the DreamHost server.  They will catch them and clean them up but it&#8217;s better to run in full production mode and not cause problems.</p>
<p style="text-align:justify;">One final change we need to make locally is to update the <em>c:\projects\myrailssite\config\environments\production.rb</em> file.  Comment out the <em>config.action_view.cache_template_loading = true</em> line as it causes problems with the Passenger product that will host our site.</p>
<p style="text-align:justify;">Now we&#8217;re ready to install Rails 2.1.2 remotely.  Switch back to your PuTTY session (or log in again if you <em>exit</em>ed).  Let&#8217;s first edit the ~/.bash_profile file.  To do this we will be using the <em>nano</em> text editor.  To open the ~/.bash_profile file in nano, type the following:</p>
<p style="text-align:justify;padding-left:30px;"><span style="color:#000080;">nano ~/.bash_profile</span></p>
<p style="text-align:justify;">Now you can use the cursor keys to navigate the file.  We need to add the following lines to the end of the file:</p>
<p style="text-align:justify;padding-left:30px;"><span style="color:#000080;"># Path settings<br />
export GEM_HOME=&#8221;$HOME/.gems&#8221;<br />
export GEM_PATH=&#8221;$GEM_HOME:/usr/lib/ruby/gems/1.8&#8243;<br />
export PATH=&#8221;$HOME/bin:$HOME/.gems/bin:$PATH&#8221;<br />
export RUBYLIB=&#8221;$HOME/lib:$RUBYLIB&#8221;</span></p>
<p style="padding-left:30px;"><span style="color:#000080;"># Stops the DreamHost processes from killing the gem install process<br />
alias gem=&#8221;nice -n19 ~/bin/gem&#8221;</span></p>
<p style="text-align:justify;">To save your changes press Ctrl-O then hit enter.  Press Ctrl-X to exit the editor and return to the shell.  You can now type <span style="color:#000080;">cat ~/.bash_profile</span> and the contents of the file should be printed out.  This is a good way to check that your changes were saved and that you typed everything correctly.</p>
<p style="text-align:justify;">Now we need to perform the installation.  The following commands will achieve this:</p>
<p style="text-align:justify;padding-left:30px;"><span style="color:#000080;">cd ~<br />
mkdir .gems</span></p>
<p style="padding-left:30px;"><span style="color:#000080;">mkdir bin lib src</span></p>
<p style="padding-left:30px;"><span style="color:#000080;">cd ~/src<br />
wget http://rubyforge.org/frs/download.php/43985/rubygems-1.3.0.tgz<br />
tar xzvf rubygems-1.3.0.tgz<br />
cd rubygems-1.3.0<br />
ruby setup.rb &#8211;prefix=$HOME</span></p>
<p style="padding-left:30px;"><span style="color:#000080;">cd ~/bin<br />
ln -s gem1.8 gem</span></p>
<p style="text-align:justify;">For more information on what each of these steps is doing check the <a href="http://wiki.dreamhost.com/RubyGems" target="_blank">DreamHost wiki article</a>.  We can check that the path and gem versions are correct by typing the following:</p>
<p style="text-align:justify;padding-left:30px;"><span style="color:#000080;">which gem<br />
gem -v</span></p>
<p style="text-align:justify;">These commands should return <span style="color:#000080;">/home/USERNAME/bin/gem</span> and <span style="color:#000080;">1.3.0</span> respectively.  Now we can execute the command to install Rails 2.1.2, which is:</p>
<p style="text-align:justify;padding-left:30px;"><span style="color:#000080;">gem install rails &#8211;version 2.1.2</span></p>
<p style="text-align:justify;">What we&#8217;ve accomplished here is to install RubyGems and Rails 2.1.2 to our hosted server.  The last thing we need to do to make everything work is to use rake to <em>freeze</em> our version of Rails to 2.1.2 so that Passenger will use our Rails installation when running our site.  The commands to do this are as follows.  Please note that you need to supply your domain name in the format MyDomainName.com and the name of your Rails site in place of MyRailsSite in the first command.  This simply changes the current directory so that we&#8217;re running rake in the right place.</p>
<p style="text-align:justify;padding-left:30px;"><span style="color:#000080;">cd ~/MyDomainName.com/MyRailsSite/<br />
rake rails:freeze:edge TAG=rel_2-1-2</span></p>
<p style="text-align:justify;">That&#8217;s it!  Phew.  That felt like a lot of work, but at least you only have to do it once.</p>
<p style="text-align:justify;"><strong>Step 12 &#8211; Deploying and testing your site remotely</strong><br />
Now that we&#8217;ve set up the environment with <a href="http://www.dreamhost.com" target="_blank">DreamHost</a>, the only task left is to deploy the site remotely and test it out.  Before we do that though, we are going to check one last configuration setting in the DreamHost control panel, just to be sure that everything is setup correctly.  If you navigate to Domains-&gt;Manage Domains in the left side-bar and then click the <em>Edit</em> button again (see step 2), then check out the <em>Specify your web directory</em> setting.  This is where <a href="http://www.dreamhost.com" target="_blank">DreamHost</a> will send requests to <em>MyDomainName.com</em>.  It should be set to:</p>
<p style="text-align:justify;padding-left:30px;"><span style="color:#000080;">/home/username/MyDomainName.com/MyRailsSite/public</span></p>
<p style="text-align:justify;">By setting the directory to the <em>public</em> directory of your Rails site, it means that users cannot navigate outside of that directory and browse places that they aren&#8217;t supposed to be.</p>
<p style="text-align:justify;">Let&#8217;s finish up and deploy our Rails site from the local machine to the remote server.  We&#8217;ll use Explorer and ftp to do this.  Open up Explorer and type <em>ftp://ftp.MyDomainName.com</em> into the address bar.  Now open up the <em>MyDomainName.com</em> and then <em>MyRailsSite</em> folders.  You will need to copy your app directory from your local machine at <em>c:\projects\myrrailssite\app</em> up to the remote server.  When you have copied these files, navigate to the <em>pubilc </em>directory on the remote server and delete the index.html file.  We don&#8217;t need the Rails welcome page on live anymore either!  Then navigate to the <em>config</em> directory and copy the <em>routes.rb</em>, <em>environment.rb.live</em> and <em>database.yml.live</em> files up to the corresponding folder on the server.  Don&#8217;t forget to rename these to <em>environment.rb</em> and <em>database.yml</em> on the remote server.  We only renamed them so that we could have two different files locally.  Finally, navigate to the <em>config/environments</em> folder and copy the <em>production.rb</em> file that we edited up to the corresponding location on the remote server.  From now on, when you deploy your site, you will only have to copy the <em>app</em> folder to the remote server (unless you change config settings that is).</p>
<p style="text-align:justify;">The final step before we can test our site on live is to setup the MySQL database on the DreamHost side to match the one we set up locally.  Since we didn&#8217;t create any database tables, this is fairly simple to do through the DreamHost interface.  Go to Goodies-&gt;Manage MySQL and repeat the same steps here as we did in step 8.  You can also use HeidiSQL if you want to manage your database remotely that way.  However, for now I recommend using the DreamHost web interface to do this work.  All you need to ensure is that the database name and username/password for that database match the settings you specified in your database.yml file.  I&#8217;m going to cover using databases in Rails in more detail in a future article.  For now we just need to get an empty database and a user that has access to keep Rails happy.</p>
<p style="text-align:left;">Congratulations!  Assuming that everything was wired up correctly, you should now be able to open a browser and navigate to <em>http://www.MyDomainName.com</em> to see your site being hosted remotely.</p>
<p style="text-align:justify;">Hopefully this article will help you get up and running with a basic Rails site that is hosted remotely.  The focus of this article was understanding the relationship between running a Rails site locally and hosting it on a remote server.  Setting up your development in this way from day one will save a lot of headaches later when it comes to deployment time.  Developing and testing locally, then deploying to a live host means that problems can be identified early and that changes can be tested locally rather than on a live site.  I&#8217;m going to expand upon this article as part of my ongoing experiement with ASP.NET, Silverlight, PHP, and Ruby on Rails.  Next we&#8217;re going to develop a database, understand models using ActiveRecord, and dig a little deeper into Rails.  For now: happy hosting!</p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Ruby+on+Rails+Setup+with+DreamHost:+http://bit.ly/aTqQgA" title="Post to Twitter"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-twitter-micro3.png" alt="Post to Twitter" /></a> <a target="_blank" class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://devblog.stuartthompson.net/2008/10/ruby-on-rails-setup-with-dreamhost/&amp;submitHeadline=Ruby+on+Rails+Setup+with+DreamHost" title="Post to Yahoo Buzz"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-buzz-micro3.png" alt="Post to Yahoo Buzz" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://devblog.stuartthompson.net/2008/10/ruby-on-rails-setup-with-dreamhost/&amp;title=Ruby+on+Rails+Setup+with+DreamHost" title="Post to Delicious"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-delicious-micro3.png" alt="Post to Delicious" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://devblog.stuartthompson.net/2008/10/ruby-on-rails-setup-with-dreamhost/&amp;title=Ruby+on+Rails+Setup+with+DreamHost" title="Post to Digg"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-digg-micro3.png" alt="Post to Digg" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://devblog.stuartthompson.net/2008/10/ruby-on-rails-setup-with-dreamhost/&amp;t=Ruby+on+Rails+Setup+with+DreamHost" title="Post to Facebook"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-facebook-micro3.png" alt="Post to Facebook" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://devblog.stuartthompson.net/2008/10/ruby-on-rails-setup-with-dreamhost/&amp;title=Ruby+on+Rails+Setup+with+DreamHost" title="Post to Reddit"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-reddit-micro3.png" alt="Post to Reddit" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://devblog.stuartthompson.net/2008/10/ruby-on-rails-setup-with-dreamhost/&amp;title=Ruby+on+Rails+Setup+with+DreamHost" title="Post to StumbleUpon"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-su-micro3.png" alt="Post to StumbleUpon" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://devblog.stuartthompson.net/2008/10/ruby-on-rails-setup-with-dreamhost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The ASP.NET, Silverlight, PHP, Rails Experiment</title>
		<link>http://devblog.stuartthompson.net/2008/10/the-aspnet-silverlight-php-rails-experiment/</link>
		<comments>http://devblog.stuartthompson.net/2008/10/the-aspnet-silverlight-php-rails-experiment/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 20:05:50 +0000</pubDate>
		<dc:creator>stuartthompson</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://stuartthompsontech.wordpress.com/?p=47</guid>
		<description><![CDATA[I&#8217;ve been working with Microsoft technologies for over ten years, specifically Microsoft&#8217;s web development technologies.  During that time I have built a variety of sites ranging in scope from e-commerce, educational, service provision, SaaS, to dashboards, portals, internal tools, and even SAP-migration.  While I praise the technology stack for what it allows me to do, [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">I&#8217;ve been working with <a href="http://msdn.microsoft.com/en-us/default.aspx" target="_blank">Microsoft technologies</a> for over ten years, specifically <a href="http://www.asp.net/" target="_blank">Microsoft&#8217;s web development technologies</a>.  During that time I have built a variety of sites ranging in scope from e-commerce, educational, service provision, <a href="http://en.wikipedia.org/wiki/Software_as_a_Service" target="_blank">SaaS</a>, to dashboards, portals, internal tools, and even SAP-migration.  While I praise the technology stack for what it allows me to do, it also comes with a whole host of limitations that make it hard for me to deliver the experience my clients would like.  Throughout this decade of web development I have heard a lot from those around me about alternative technology stacks that promise all manner of improvements and experiences.  Unfortunately there is a lot of resistance from any one technology stack to listen to and learn from the stacks around them, most of the cross-platform feedback comes in the form of &#8220;Microsoft sucks&#8221; or &#8220;PHP is for fan-boy script kiddies&#8221;.  The truth is that a large number of successful business are hosted on a wide variety of platforms.  Each technology stack has to at least be viable for that to be true.  The problem is getting at the truth without the zealous noise of &#8220;my stacks better than your stack&#8221; getting in the way.</p>
<p style="text-align:justify;">I decided that it was time for me to branch out and become more informed on these technologies myself so that I could truly understand the differences and what made each of them unique.  I&#8217;m hoping that as part of this experience I can not only become a better developer but also learn the problems that Ruby on Rails or PHP addresses.  I&#8217;ll like to be able to speak from an informed standpoint about the differences between the Microsoft and open-source approaches as well as better understand the problems each of those development worlds faces on a daily basis.  Either way, it&#8217;s going to be a heck of a lot of fun.</p>
<p style="text-align:justify;">The experiment I have in mind is to build the same web-site using four different technologies.  From the Microsoft camp I have chosen <a href="http://www.asp.net" target="_blank">ASP.NET</a> and <a href="http://silverlight.net/" target="_blank">Silverlight</a>.  From the open-source perspective I have chosen <a href="http://www.php.net/" target="_blank">PHP</a> and <a href="http://www.rubyonrails.org/" target="_blank">Ruby on Rails</a>.  I chose PHP and RoR because they are two technologies that I have always wanted to learn.  Learning both of those will also require some digging into <a href="http://httpd.apache.org/" target="_blank">Apache</a> and <a href="http://www.linux.org" target="_blank">Linux</a>, another two areas that I have too little direct experience with to effectively participate in an informed conversation.</p>
<p style="text-align:center;"><a href="http://www.asp.net"><img class="alignnone size-full wp-image-48" title="ASP.NET" src="http://stuartthompsontech.files.wordpress.com/2008/10/logo.png" alt="" width="108" height="44" /> </a> <a href="http://www.silverlight.net"><img class="alignnone size-full wp-image-49" title="silverlightlogo" src="http://stuartthompsontech.files.wordpress.com/2008/10/silverlightlogo.jpg" alt="" width="131" height="45" /> </a><a href="http://www.php.net"><img class="alignnone size-full wp-image-50" title="php" src="http://stuartthompsontech.files.wordpress.com/2008/10/php.gif" alt="" width="86" height="49" /> </a><a href="http://www.rubyonrails.org"><img class="alignnone size-thumbnail wp-image-51" title="rails" src="http://stuartthompsontech.files.wordpress.com/2008/10/rails.png?w=74" alt="" width="42" height="54" /></a></p>
<p style="text-align:justify;">Our horses are ready to race.  In terms of hosting, I have selected <a href="http://www.dreamhost.com" target="_blank">DreamHost</a> for the PHP and Rails sites, and I&#8217;m going to use <a href="http://www.stormhosts.com" target="_blank">StormHosts</a> for the <a href="http://www.asp.net" target="_blank">ASP.NET</a> and <a href="http://www.silverlight.net" target="_blank">Silverlight</a> projects (assuming that SH can do .NET 3.5, which I believe I saw at some point).  The reason I&#8217;m using remote hosting services for this experiment is that I don&#8217;t believe you get the true experience of a technology stack until you host it in this way.  It is very easy to get a Rails site up and running using <a href="http://www.webrick.org" target="_blank">WEBrick</a> and a local installation of Ruby.  Similarly, it is easy to get an ASP.NET site running on the personal web server that ships with <a href="http://msdn.microsoft.com/en-us/vstudio/default.aspx" target="_blank">Visual Studio 2008</a>.</p>
<p style="text-align:justify;">The first phase of the experiment is to get a &#8220;Hello World!&#8221; site up and running for each of the four environments.  The specifications are that a single end-point be accessible that displays the text &#8220;Hello World!&#8221; and that this end-point is accessible in both <a href="http://www.microsoft.com/windows/products/winfamily/ie/default.mspx" target="_blank">Internet Explorer</a> 7 and <a href="http://www.mozilla.com/en-US/firefox/" target="_blank">FireFox</a> 3.</p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=The+ASP.NET%2C+Silverlight%2C+PHP%2C+Rails+Experiment:+http://bit.ly/d7jMRz" title="Post to Twitter"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-twitter-micro3.png" alt="Post to Twitter" /></a> <a target="_blank" class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://devblog.stuartthompson.net/2008/10/the-aspnet-silverlight-php-rails-experiment/&amp;submitHeadline=The+ASP.NET%2C+Silverlight%2C+PHP%2C+Rails+Experiment" title="Post to Yahoo Buzz"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-buzz-micro3.png" alt="Post to Yahoo Buzz" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://devblog.stuartthompson.net/2008/10/the-aspnet-silverlight-php-rails-experiment/&amp;title=The+ASP.NET%2C+Silverlight%2C+PHP%2C+Rails+Experiment" title="Post to Delicious"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-delicious-micro3.png" alt="Post to Delicious" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://devblog.stuartthompson.net/2008/10/the-aspnet-silverlight-php-rails-experiment/&amp;title=The+ASP.NET%2C+Silverlight%2C+PHP%2C+Rails+Experiment" title="Post to Digg"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-digg-micro3.png" alt="Post to Digg" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://devblog.stuartthompson.net/2008/10/the-aspnet-silverlight-php-rails-experiment/&amp;t=The+ASP.NET%2C+Silverlight%2C+PHP%2C+Rails+Experiment" title="Post to Facebook"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-facebook-micro3.png" alt="Post to Facebook" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://devblog.stuartthompson.net/2008/10/the-aspnet-silverlight-php-rails-experiment/&amp;title=The+ASP.NET%2C+Silverlight%2C+PHP%2C+Rails+Experiment" title="Post to Reddit"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-reddit-micro3.png" alt="Post to Reddit" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://devblog.stuartthompson.net/2008/10/the-aspnet-silverlight-php-rails-experiment/&amp;title=The+ASP.NET%2C+Silverlight%2C+PHP%2C+Rails+Experiment" title="Post to StumbleUpon"><img class="nothumb" src="http://devblog.stuartthompson.net/wp-content/plugins/tweet-this/icons/tt-su-micro3.png" alt="Post to StumbleUpon" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://devblog.stuartthompson.net/2008/10/the-aspnet-silverlight-php-rails-experiment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
