<?xml version="1.0" encoding="utf-8"?>
<feed xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom">
  <title>Scott Seely's Blog</title>
  <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/" />
  <link rel="self" href="http://www.scottseely.com/Blog/SyndicationService.asmx/GetAtom" />
  <logo>http://www.scottseely.com/images/PageLogo.jpg</logo>
  <icon>favicon.ico</icon>
  <updated>2009-01-04T16:14:46.5066634-05:00</updated>
  <author>
    <name>Scott Seely</name>
  </author>
  <subtitle>.NET, Windows, "Stuff"</subtitle>
  <id>http://www.scottseely.com/Blog/</id>
  <generator uri="http://www.dasblog.net" version="2.0.7180.0">DasBlog</generator>
  <entry>
    <title>What does #light mean?</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2009/01/07/WhatDoesLightMean.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,d87097a5-cf24-411e-aca7-43466133ed4f.aspx</id>
    <published>2009-01-07T12:00:29-05:00</published>
    <updated>2009-01-04T16:14:46.5066634-05:00</updated>
    <category term=".NET" label=".NET" scheme="http://www.scottseely.com/Blog/CategoryView,category,.NET.aspx" />
    <category term="F#" label="F#" scheme="http://www.scottseely.com/Blog/CategoryView,category,F%23.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
If you see any F# code listing, you will see that almost all of them start with the
command <em>#light</em>. Right now, this is a requirement. The first line in any F#
file must have <em>#light</em>. After reading about the language, I grokked that it
allowed for a shorter syntax than the alternative, <em>#light "off"</em>.
Here's what I've been able to figure out so far. From <a href="http://dougfinke.com/blog/?p=144" target="_blank">Development
in a Blink</a>, I see this: 
</p>
        <blockquote>
          <p>
The #light declaration makes whitespace significant. Allowing the developer to omit
certain keywords such as <em>in</em>, <em>;</em>, <em>begin</em>, and <em>end</em>.
</p>
        </blockquote>
        <p>
For those of you that have used Python, this makes sense. Indentation gets to have
meaning when <em>#light</em> is on. Blocks of code are physically aligned, so indicating
where something starts and stops is redundant and, potentially, useless. So, what
happens when we turn <em>#light</em> off? Let's take the Name type developed in a
recent post. With #light, the class looks like this:
</p>
        <p>
        </p>
        <div style="font-size: 11pt; background: white; color: black; font-family: verdana">
          <p style="margin: 0px">
            <span style="color: blue">#light </span>
          </p>
          <p style="margin: 0px">
 
</p>
          <p style="margin: 0px">
            <span style="color: blue">namespace</span> SomeNamespace
</p>
          <p style="margin: 0px">
            <span style="color: blue">type</span> Name(fname : string) =
</p>
          <p style="margin: 0px">
    <span style="color: blue">let</span><span style="color: blue">mutable</span> fName 
= fname
</p>
          <p style="margin: 0px">
    <span style="color: blue">member</span> this.FName <span style="color: blue">with</span> get()
= fName
</p>
          <p style="margin: 0px">
                                    <span style="color: blue">and</span> set(x)
= fName &lt;- x
</p>
        </div>
        <p>
So, what did #light buy us? Well, it meant that we couldn't write the following, equivalent
code:
</p>
        <p>
        </p>
        <div style="font-size: 11pt; background: white; color: black; font-family: verdana">
          <p style="margin: 0px">
            <span style="color: blue">#light "off"</span>
          </p>
          <p style="margin: 0px">
 
</p>
          <p style="margin: 0px">
            <span style="color: blue">namespace</span> SomeNamespace
</p>
          <p style="margin: 0px">
            <span style="color: blue">type</span> Name(fname : string) =
</p>
          <p style="margin: 0px">
            <span style="color: blue">class</span>
          </p>
          <p style="margin: 0px">
            <span style="color: blue">let</span>
            <span style="color: blue">mutable</span> fName 
= fname
</p>
          <p style="margin: 0px">
            <span style="color: blue">member</span> this.FName <span style="color: blue">with</span> get()
= fName
</p>
          <p style="margin: 0px">
            <span style="color: blue">and</span> set(x) = fName &lt;- x
</p>
          <p style="margin: 0px">
            <span style="color: blue">end</span>
          </p>
        </div>
        <p>
The difference, in case you missed it, is that <em>class</em> and <em>end</em> HAD
to be declared. Furthermore, the indentation/whitespace was no longer significant.
This let's me write code that is harder to visually parse. And yes, I could have indented
the code to make it more readable:
</p>
        <p>
        </p>
        <div style="font-size: 11pt; background: white; color: black; font-family: verdana">
          <p style="margin: 0px">
            <span style="color: blue">#light "off"</span>
          </p>
          <p style="margin: 0px">
 
</p>
          <p style="margin: 0px">
            <span style="color: blue">namespace</span> SomeNamespace
</p>
          <p style="margin: 0px">
    <span style="color: blue">type</span> Name(fname : string) =
</p>
          <p style="margin: 0px">
    <span style="color: blue">class</span></p>
          <p style="margin: 0px">
        <span style="color: blue">let</span><span style="color: blue">mutable</span> fName 
= fname
</p>
          <p style="margin: 0px">
        <span style="color: blue">member</span> this.FName <span style="color: blue">with</span> get()
= fName
</p>
          <p style="margin: 0px">
            <span style="color: blue">and</span> set(x)
= fName &lt;- x
</p>
          <p style="margin: 0px">
    <span style="color: blue">end</span></p>
        </div>
        <p>
        </p>
        <p>
I think I'll be using <em>#light</em> since most examples on the web stick with this
syntax. Being the odd man out won't help me or anyone else who eventually needs to
use my code. Good habits start now. <em>#light</em> also let's me write less code.
I have a fairly consistent ratio of lines of code/defects. If I can avoid some little
details and lines of code, I will have fewer mistakes. 
</p>
        <img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=d87097a5-cf24-411e-aca7-43466133ed4f" />
        <br />
        <hr />
Visit my site, http://www.scottseely.com/.
</div>
    </content>
  </entry>
  <entry>
    <title>Predicting the name of an F# type</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2009/01/05/PredictingTheNameOfAnFType.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,18ee444f-5abb-4a27-850f-1255bff70543.aspx</id>
    <published>2009-01-05T12:00:46-05:00</published>
    <updated>2009-01-04T15:18:15.5031938-05:00</updated>
    <category term=".NET" label=".NET" scheme="http://www.scottseely.com/Blog/CategoryView,category,.NET.aspx" />
    <category term="F#" label="F#" scheme="http://www.scottseely.com/Blog/CategoryView,category,F%23.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
One of the first questions I came up with yesterday when digging into F# was this:
what does an F# type look like to C#? As a noob, that's an interesting question to
me. Of course, being a noob, I had no clue about how to create a custom type. So,
I asked <a href="http://www.google.com" target="_blank">Google</a> what an F# type
definition looked like, then massaged that until I had something that I might not
completely understand, but that does show the problem at hand. I created a lame Name
class that only supports a first name. Boo-yah!
</p>
        <p>
First, I went to an existing file in an F# library called <em>stuff.fs</em>. There,
I added the following class:
</p>
        <p>
        </p>
        <div style="font-size: 11pt; background: white; color: black; font-family: verdana">
          <p style="margin: 0px">
            <span style="color: #2b91af">    </span> <span style="color: blue">type</span> Name(fname
: string) =
</p>
          <p style="margin: 0px">
            <span style="color: #2b91af">    </span>     <span style="color: blue">let</span><span style="color: blue">mutable</span> fName 
= fname
</p>
          <p style="margin: 0px">
            <span style="color: #2b91af">    </span>     <span style="color: blue">member</span> this.FName <span style="color: blue">with</span> get()
= fName
</p>
          <p style="margin: 0px">
            <span style="color: #2b91af">    </span>                                     <span style="color: blue">and</span> set(x)
= fName &lt;- x
</p>
        </div>
        <p>
For you C# heads out there, let's look at what the code above really is saying.
</p>
        <ul>
          <li>
Create a new type, Name. 
</li>
          <li>
Name has a single constructor that takes a string. 
</li>
          <li>
Name has a member variable, <strong>fName</strong>, whose value can change at runtime. 
</li>
          <li>
Name has a public property, <strong>FName</strong>, that has a getter and a setter. 
</li>
        </ul>
        <p>
OK, so now what does this look like in C#? I add the F# library to a C# project, instantiate
a copy of <em>Stuff.Name</em> (I'll get to the <em>Stuff</em> item in a moment), and
then I right click on <em>Stuff.Name</em> and pick <em>Go to Definition</em>. Since
we are in C# land, VS 2008 will pull up the C# vision. This looks exactly like the
following:
</p>
        <p>
        </p>
        <div style="font-size: 11pt; background: white; color: black; font-family: verdana">
          <p style="margin: 0px">
            <span style="color: blue">using</span> System;
</p>
          <p style="margin: 0px">
 
</p>
          <p style="margin: 0px">
            <span style="color: blue">public</span>
            <span style="color: blue">static</span>
            <span style="color: blue">class</span>
            <span style="color: #2b91af">Stuff</span>
          </p>
          <p style="margin: 0px">
{
</p>
          <p style="margin: 0px">
 
</p>
          <p style="margin: 0px">
    [<span style="color: #2b91af">Serializable</span>]
</p>
          <p style="margin: 0px">
    <span style="color: blue">public</span><span style="color: blue">class</span><span style="color: #2b91af">Name</span></p>
          <p style="margin: 0px">
    {
</p>
          <p style="margin: 0px">
        <span style="color: blue">public</span> Name(<span style="color: blue">string</span> fname);
</p>
          <p style="margin: 0px">
 
</p>
          <p style="margin: 0px">
        <span style="color: blue">public</span><span style="color: blue">string</span> FName
{ <span style="color: blue">get</span>; <span style="color: blue">set</span>; }
</p>
          <p style="margin: 0px">
    }
</p>
          <p style="margin: 0px">
}
</p>
        </div>
        <p>
That's kind of weird. I didn't expect to see Name declared as a inner class from a
static class whose name comes from the name of the F# file. Still, that's what we
have. Does this mean that F# code doesn't allow one to create CLR namespaces? No--
of course not! So, how do you get the <em>Name</em> class into a CLR namespace called <em>SomeNamespace</em>?
I did a little digging and found out how:
</p>
        <div style="font-size: 11pt; background: white; color: black; font-family: verdana">
          <p style="margin: 0px">
            <span style="color: blue">namespace</span> SomeNamespace 
</p>
          <p style="margin: 0px">
    <span style="color: blue">type</span> Name(fname : string) =
</p>
          <p style="margin: 0px">
        <span style="color: blue">let</span><span style="color: blue">mutable</span> fName 
= fname
</p>
          <p style="margin: 0px">
        <span style="color: blue">member</span> this.FName <span style="color: blue">with</span> get()
= fName
</p>
          <p style="margin: 0px">
                                        <span style="color: blue">and</span> set(x)
= fName &lt;- x
</p>
        </div>
        <p>
Yeah-- there's a keyword called namespace that allows you to add objects to a CLR
namespace. The odd bit here is that one doesn't say namespace blah =. Instead, you
omit the '='. The '=' will work, but you will get a message saying that the syntax
has been deprecated. With this small change in place, things look more correct to
my C# eyes. The static class disappears, and that's good! 
</p>
        <p>
        </p>
        <div style="font-size: 11pt; background: white; color: black; font-family: verdana">
          <p style="margin: 0px">
            <span style="color: blue">using</span> System;
</p>
          <p style="margin: 0px">
 
</p>
          <p style="margin: 0px">
            <span style="color: blue">namespace</span> SomeNamespace
</p>
          <p style="margin: 0px">
{
</p>
          <p style="margin: 0px">
    [<span style="color: #2b91af">Serializable</span>]
</p>
          <p style="margin: 0px">
    <span style="color: blue">public</span><span style="color: blue">class</span><span style="color: #2b91af">Name</span></p>
          <p style="margin: 0px">
    {
</p>
          <p style="margin: 0px">
        <span style="color: blue">public</span> Name(<span style="color: blue">string</span> fname);
</p>
          <p style="margin: 0px">
 
</p>
          <p style="margin: 0px">
        <span style="color: blue">public</span><span style="color: blue">string</span> FName
{ <span style="color: blue">get</span>; <span style="color: blue">set</span>; }
</p>
          <p style="margin: 0px">
    }
</p>
          <p style="margin: 0px">
}
</p>
        </div>
        <p>
Right now, I think my focus will be on writing F# code that plays well/looks natural
to C# developers. I'll keep that point of view until I see a reason to change. 
</p>
        <img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=18ee444f-5abb-4a27-850f-1255bff70543" />
        <br />
        <hr />
Visit my site, http://www.scottseely.com/.
</div>
    </content>
  </entry>
  <entry>
    <title>What am I doing now?</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2009/01/04/WhatAmIDoingNow.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,e5ad598c-3f87-4f6c-a16f-f35e34ffb4e7.aspx</id>
    <published>2009-01-04T12:00:25.236173-05:00</published>
    <updated>2009-01-04T12:00:25.236173-05:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
A long while back, I mentioned that my wife, Jean, and I were looking at <a href="http://www.scottseely.com/Blog/2008/06/21/NewVentureStartingUp.aspx" target="_blank">starting
up a company</a>. Well, we've done a lot of thinking about what the product should
do and how this should be done. Because of other <a href="http://www.amazon.com/Effective-REST-Services-via-NET/dp/0321613252/" target="_blank">recent
activities</a>, I haven't had a lot of time to execute on the idea. The fact of the
matter is that we still like the underlying concept, but the implementation concept
has morphed several times since we had the idea. The biggest changes are these:
</p>
        <ol>
          <li>
            <a href="http://msdn.microsoft.com/fsharp" target="_blank">F#</a>: A VS2010 language
(currently in Beta)</li>
          <li>
            <a href="http://www.microsoft.com/azure/default.mspx" target="_blank">Azure</a>: A
Cloud platform</li>
        </ol>
        <p>
F# is a functional .NET language. I've always been a fan of functional programming
as it typically allows me to write my applications using fewer lines than what I would
do in pure imperative mode. For better or worse, imperative languages are still center
stage (and have been for decades). In order to pay the bills, it is easier to find
work using C++/C#/Java than using LISP/Prolog/Scala. However, with F# (an OCaml based
language), we have a chance of seeing functional programming go mainstream. I have
a project in mind that needs a .NET language, so why not use the project as a means
to really get into F#.
</p>
        <p>
The second thing that happened is the beta release of Azure at the 2008 PDC. A big
concern of mine has been hosting the set of servers that will eventually be needed
if the web site idea takes off. Yes, I'm familiar with how to make sites scalable,
how to buy a server, etc. I'm also familiar with the fact that more servers means
more people I'd have to hire who may or may not have the chops to manage a large-ish
web site. The cloud stuff is very appealing to me as it allows someone who worries
only about managing servers do whatever that is. I can then focus on conserving space,
writing better algorithms, and paying a smaller price to keep that service up and
running (yeah, I'm assuming that, like other managed services, the cost of going to
the cloud is less that the cost of personnel + equipment + power + licensing). 
</p>
        <p>
So, until I either lose interest or get so swamped with work/life/whatever, expect
to see the blog focus on F# and Azure stuff. Right now, I'm a noob. 
</p>
        <img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=e5ad598c-3f87-4f6c-a16f-f35e34ffb4e7" />
        <br />
        <hr />
Visit my site, http://www.scottseely.com/.
</div>
    </content>
  </entry>
  <entry>
    <title>I'm back</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2009/01/04/ImBack.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,d704d62f-dc7d-4abb-b68f-eb0362b520cb.aspx</id>
    <published>2009-01-04T11:29:08.1820746-05:00</published>
    <updated>2009-01-04T11:29:08.1820746-05:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
For anyone who read this thing, I apologize for the long break. Between my last post
and now, I wrote a book with my good friend, <a href="http://www.endurasoft.com" target="_blank">Kenn
Scribner</a>. The book, <a href="http://www.amazon.com/Effective-REST-Services-via-NET/dp/0321613252/" target="_blank">Effective
REST Services via .NET</a>, is currently in the technical review stage. This means
that some really smart people are reviewing the book and letting Kenn and I know where
things don't make sense or are just wrong. Kenn was asked to write this book back
in July of 2008 after developing a bunch of samples and other content for the folks
involved with WCF/Oslo. Kenn then asked me to collaborate with him and I accepted. 
</p>
        <p>
Anyhow, writing a book removes any drive I might otherwise have to blog. Now that
I'm able to get things done in smaller chunks based on the reviews that are flowing
in, I have the writing bug back again. 
</p>
        <p>
I haven't been completely out-- if you want to see what I've been writing up for my
day job, check out the <a href="http://developer.myspace.com/Community/blogs/devteam/default.aspx" target="_blank">MySpace
developer blog</a>. I'm one of several contributors there, posting as "Scott".
</p>
        <img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=d704d62f-dc7d-4abb-b68f-eb0362b520cb" />
        <br />
        <hr />
Visit my site, http://www.scottseely.com/.
</div>
    </content>
  </entry>
  <entry>
    <title>A LINQ Book you need</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2008/09/27/ALINQBookYouNeed.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,e6bc60c5-0ec2-46ae-92fe-83a5c8b67cde.aspx</id>
    <published>2008-09-27T16:38:54.4327368-04:00</published>
    <updated>2008-09-27T16:42:14.4158319-04:00</updated>
    <category term=".NET" label=".NET" scheme="http://www.scottseely.com/Blog/CategoryView,category,.NET.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p class="Body" style="MARGIN: 0in 0in 3pt">
          <font face="Times New Roman" color="#000000" size="3">If you do any work with LINQ,
you have to go out and buy the <a href="http://www.amazon.com/LINQ-Pocket-Reference-OReilly/dp/0596519249/">LINQ
Pocket Reference</a> by Joseph and Ben Albahari, ISBN 978-0-596-51924-7, O’Reilly.
It’s a tiny, 160 page book that will literally fit into the back pocket of your jeans.
I love it, use it whenever I'm doing LINQ stuff. It's a permanent fixture on my desk
and in my laptop bag. Just go buy it, now! It's $10.19 at Amazon. If you program for
.NET, there is no excuse to NOT own this book. Skip lunch today if you need to budget
for the money. </font>
        </p>
        <img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=e6bc60c5-0ec2-46ae-92fe-83a5c8b67cde" />
        <br />
        <hr />
Visit my site, http://www.scottseely.com/.
</div>
    </content>
  </entry>
  <entry>
    <title>Visual Studio 2008 SP1 causes IIS/WAS to Fail to Start</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2008/08/18/VisualStudio2008SP1CausesIISWASToFailToStart.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,6aef2bfb-eb10-4641-83f0-1bd53d857816.aspx</id>
    <published>2008-08-18T15:39:44.9583297-04:00</published>
    <updated>2008-08-18T15:39:44.9583297-04:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I found this in the forums, but it wasn't super easy to dig out. Hopefully, this post
will help someone find things a bit easier. 
</p>
        <p>
Symptoms: You can't access a site on local IIS after installing Visual Studio 2008
IIS on Vista or later. 
</p>
        <p>
Event log at Windows Logs\System will have an entry that reads as follows: 
</p>
        <p>
Log Name: System 
</p>
        <p>
Source: Microsoft-Windows-WAS 
</p>
        <p>
Date: 8/18/2008 2:24:10 PM 
</p>
        <p>
Event ID: 5189 
</p>
        <p>
Task Category: None 
</p>
        <p>
Level: Error 
</p>
        <p>
Keywords: Classic 
</p>
        <p>
User: N/A 
</p>
        <p>
Computer: xxxx 
</p>
        <p>
Description: 
</p>
        <p>
The Windows Process Activation Service failed to generate an application pool config
file for application pool '*'. The error type is '0'. To resolve this issue, please
ensure that the applicationhost.config file is correct and recommit the last configuration
changes made. The data field contains the error number. 
</p>
        <p>
Event Xml: 
</p>
        <p>
&lt;Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"&gt; 
</p>
        <p>
&lt;System&gt; 
</p>
        <p>
&lt;Provider Name="Microsoft-Windows-WAS" Guid="{524B5D04-133C-4A62-8362-64E8EDB9CE40}"
EventSourceName="WAS" /&gt; 
</p>
        <p>
&lt;EventID Qualifiers="49152"&gt;5189&lt;/EventID&gt; 
</p>
        <p>
&lt;Version&gt;0&lt;/Version&gt; 
</p>
        <p>
&lt;Level&gt;2&lt;/Level&gt; 
</p>
        <p>
&lt;Task&gt;0&lt;/Task&gt; 
</p>
        <p>
&lt;Opcode&gt;0&lt;/Opcode&gt; 
</p>
        <p>
&lt;Keywords&gt;0x80000000000000&lt;/Keywords&gt; 
</p>
        <p>
&lt;TimeCreated SystemTime="2008-08-18T19:24:10.000Z" /&gt; 
</p>
        <p>
&lt;EventRecordID&gt;79948&lt;/EventRecordID&gt; 
</p>
        <p>
&lt;Correlation /&gt; 
</p>
        <p>
&lt;Execution ProcessID="0" ThreadID="0" /&gt; 
</p>
        <p>
&lt;Channel&gt;System&lt;/Channel&gt; 
</p>
        <p>
&lt;Computer&gt;xxxx&lt;/Computer&gt; 
</p>
        <p>
&lt;Security /&gt; 
</p>
        <p>
&lt;/System&gt; 
</p>
        <p>
&lt;EventData&gt; 
</p>
        <p>
&lt;Data Name="AppPoolID"&gt;*&lt;/Data&gt; 
</p>
        <p>
&lt;Data Name="ErrorType"&gt;0&lt;/Data&gt; 
</p>
        <p>
&lt;Binary&gt;90040780&lt;/Binary&gt; 
</p>
        <p>
&lt;/EventData&gt; 
</p>
        <p>
&lt;/Event&gt; 
</p>
        <p>
This is caused by SP1 incorrectly updating applicationHost.config. To fix, do the
following: 
</p>
        <ol>
          <li>
Open an administrative command prompt. 
</li>
          <li>
Type in: notepad %windir%\system32\inetsrv\config\applicationHost.config 
</li>
          <li>
            <div>Add this text at /configuration/configSections/sectionGroup[@name=system.applicationHost]/ 
</div>
            <p>
&lt;section name="configHistory" overrideModeDefault="Deny" /&gt; 
</p>
          </li>
          <li>
Save applicationHost.config 
</li>
          <li>
Close Notepad 
</li>
          <li>
In the administrative command prompt, type in: iisreset /start 
</li>
        </ol>
        <p>
For reference, the sectionGroup in applicationHost.config should look like this: 
</p>
        <p>
&lt;sectionGroup name="system.applicationHost"&gt; 
</p>
        <p>
&lt;section name="applicationPools" allowDefinition="AppHostOnly" overrideModeDefault="Deny"
/&gt; 
</p>
        <p>
&lt;section name="customMetadata" allowDefinition="AppHostOnly" overrideModeDefault="Deny"
/&gt; 
</p>
        <p>
&lt;section name="listenerAdapters" allowDefinition="AppHostOnly" overrideModeDefault="Deny"
/&gt; 
</p>
        <p>
&lt;section name="log" allowDefinition="AppHostOnly" overrideModeDefault="Deny" /&gt; 
</p>
        <p>
&lt;section name="sites" allowDefinition="AppHostOnly" overrideModeDefault="Deny"
/&gt; 
</p>
        <p>
&lt;section name="webLimits" allowDefinition="AppHostOnly" overrideModeDefault="Deny"
/&gt; 
</p>
        <p>
          <span style="background-color:yellow">&lt;section name="configHistory" overrideModeDefault="Deny"
/&gt;</span>
        </p>
        <p>
&lt;/sectionGroup&gt; 
</p>
        <p>
The original source of some of this information is: <a href="http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=2859933&amp;SiteID=17">http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=2859933&amp;SiteID=17</a>. 
</p>
        <img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=6aef2bfb-eb10-4641-83f0-1bd53d857816" />
        <br />
        <hr />
Visit my site, http://www.scottseely.com/.
</div>
    </content>
  </entry>
  <entry>
    <title>Chicago Area .NET User Groups Call for Speakers</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2008/06/25/ChicagoAreaNETUserGroupsCallForSpeakers.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,7edfba8a-dda3-4bf4-b564-78e2a5b1c622.aspx</id>
    <published>2008-06-25T19:34:34.569191-04:00</published>
    <updated>2008-06-25T19:34:34.569191-04:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <a href="http://www.cnug.org">CNUG.org</a> sent this to me, and I'm passing it on
as a member of <a href="http://www.lcnug.org/">LCNUG.org</a>. This will be a lot of
fun for Chicago area developers! 
</p>
        <p>
          <strong>What</strong>: Chicago Day of Dot Net/Chicago Tech Fest (Name to be decided) 
</p>
        <p>
          <strong>When</strong>: September 6<sup>th</sup> 2008 – 8:30 am – 5:00 pm 
</p>
        <p>
          <strong>Where</strong>: Wheaton IIT 
</p>
        <p>
          <strong>Overview </strong>
        </p>
        <p>
The Chicago area .Net based users groups are looking for speakers for our forth coming
conference on September 6th. 
</p>
        <p>
This is a one day event that will be hosted by located at The Illinois Institute of
Technology (IIT) Wheaton Campus and is a free, community based event. This means we
are looking for both seasoned speakers as well as ones trying to get their feet wet.
Our sessions will last between 1 – 1.5 hours and are meant to teach and enlighten
the audience. 
</p>
        <p>
We are in process of planning a great day of learning and we need your help. We are
looking for energetic, charismatic, passionate and engaging speakers. If this is you,
we want you to help us out. We need your passion towards software development to fill
our session slots. We are planning on having 5-6 tracks with 5 sessions per track
(25-30 total sessions). 
</p>
        <p>
Possible areas of interested are 
<br />
.Net based technologies (Linq, .Net 3.5, Asp.Net, Smart Client, MVC) 
</p>
        <p>
Agile techniques (TDD, BDD, DDD, CI) 
</p>
        <p>
MOSS/Sharepoint 
</p>
        <p>
User Experience 
</p>
        <p>
Biztalk 
</p>
        <p>
XNA 
</p>
        <p>
TFS 
</p>
        <p>
If you are someone who would like to present, please send the following information
to Keith Franklin (<a href="mailto:KeithF@Magenic.com">KeithF@Magenic.com</a>). 
</p>
        <p>
Your Name 
</p>
        <p>
Company 
</p>
        <p>
Email 
</p>
        <p>
Phone: 
</p>
        <p>
Session Name 
</p>
        <p>
Session Abstraction
</p>
        <img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=7edfba8a-dda3-4bf4-b564-78e2a5b1c622" />
        <br />
        <hr />
Visit my site, http://www.scottseely.com/.
</div>
    </content>
  </entry>
  <entry>
    <title>New venture starting up</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2008/06/21/NewVentureStartingUp.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,09036f22-0908-4321-9489-afabcc166969.aspx</id>
    <published>2008-06-21T15:14:10.9598867-04:00</published>
    <updated>2008-06-21T15:14:10.9598867-04:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
My wife and I have had ideas for different ventures over the years. Because we always
had a youngster in the house and not in school, we focused a lot on making the years
before school started as happy years. This Fall, our youngest enters full day Kindergarten
in Lake Villa, IL. This means that Mom and I will finally be able to get one or two
of these ideas off the ground. We like the idea of an arrangement where I act as Architect
on most projects and as a developer as needed. To this end, we are launching Friseton.com.
Jean and I got to name the titles we wanted. She's the president of the company. She's
been in charge of running the household for the last 13 years, so this title just
seems right. I always liked the idea of a Chief Software Architect. Bill Gates gave
himself that title when he stepped down as Microsoft's CEO. 
</p>
        <p>
This doesn't mean I get to quit my day job. We don't have the resources to do this
and, quite frankly, I don't know that any of our ideas will ever generate that kind
of income. We are hoping for something that will generate enough revenue to pay expenses
and allow us to save for a more comfortable retirement. The current crop of ideas
centers around things we would like to make available to charities so that they can
run more efficiently. We are on the committees for a few different charities and know
what we wish we had access to for coordination and collaboration. Our goal is to make
something that helps all the issues one runs into and charge enough to make the services
generate a positive cash flow within 18 months of our initial deployment. If annual
net revenue ever got to $50,000 US, we'd be thrilled. 
</p>
        <p>
I'll post news and update as we progress. Right now, Jean and I are learning SilverLight
2.0. She's quite a bit ahead of me on this one, so it's likely she'll handle the UI
portion of the site. You can check out where we are at by keeping tabs on <a href="http://www.friseton.com">www.friseton.com</a>.
If you subscribe to this blog, I promise that I'll post updates as we make progress.
At this point, the site represents a total of 60 minutes time in Powerpoint (to generate
the banner) and VS 2008. 
</p>
        <p>
The site is hosted over at <a href="http://www.crystaltech.com">www.crystaltech.com</a>.
We have a developer account setup now. I have to say that I really like the admin
tools they have. This is far better than others I have used. That said, I've only
hosted through <a href="http://www.verio.com">Verio</a> and <a href="http://www.godaddy.com">GoDaddy</a>.
Verio and GoDaddy were ok. CrystalTech has developed a web interface that is extremely
easy to navigate. I've read almost no documentation and figured out how to setup e-mail
accounts, FTP, etc. I like the fact that I don't have to think too hard in order to
get stuff working. 
</p>
        <img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=09036f22-0908-4321-9489-afabcc166969" />
        <br />
        <hr />
Visit my site, http://www.scottseely.com/.
</div>
    </content>
  </entry>
  <entry>
    <title>SqlTrackingService Doesn’t Work on Windows Vista</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2008/06/16/SqlTrackingServiceDoesntWorkOnWindowsVista.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,e229fd3d-5063-42d7-878b-17b9c029dc8f.aspx</id>
    <published>2008-06-15T20:48:00.4149659-04:00</published>
    <updated>2008-06-15T20:48:00.4149659-04:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Tonight, I ran into a scenario where adding the SqlTrackingService to my WorkflowRuntime
set of services caused the completion of a simple workflow to hang. To diagnose, I
instructed Visual Studio to break when exceptions were thrown. With this, I was treated
to a break in System.Data.Sql.SqlConnection.OnError. The SqlException being thrown
stated "MSDTC on server '<em>[machine name]</em>' is unavailable." If you look, you'll
see that MSDTC is a manual start service on Vista. To fix this issue, just start MSDTC
in the Services Control Panel applet and run your workflow code again. You'll be treated
to full tracing at this point.
</p>
        <img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=e229fd3d-5063-42d7-878b-17b9c029dc8f" />
        <br />
        <hr />
Visit my site, http://www.scottseely.com/.
</div>
    </content>
  </entry>
  <entry>
    <title>Languages that I have used</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2008/06/14/LanguagesThatIHaveUsed.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,9208990b-a4ae-444d-81f6-246a42218c5f.aspx</id>
    <published>2008-06-14T15:42:30.8317958-04:00</published>
    <updated>2008-06-14T15:42:30.8317958-04:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Some friends recently saw my <a href="http://www.scottseely.com/Downloads/Scott%20Seely-%20resume.pdf">resume</a> and
asked about the 40+ languages that I claim to have written code in. Essentially, they
asked why I have that claim and questioned if it was even factual. I have that claim
because many employers want someone who knows 'Special Language X' in addition to
all the other qualifications. In any interview, I usually explain this as follows:
"I want to make it clear that no matter what odd wrinkle you have in your system,
I know enough about languages and programming in general to tackle your special case." 
</p>
        <p>
Still, 40 sounds like a big number. How, exactly, did I arrive at that figure? First
off, understand that many of the languages I have programmed in have had little more
than two weeks of the following: 
</p>
        <ol style="margin-left: 38pt">
          <li>
Learn the language. This involves finding a good tutorial and burning a day getting
conversant. The language choice was frequently driven by either class work, larger
system requirements, or "this looks like fun". 
</li>
          <li>
Write the application. Again, this might be "deliver a PHP web page," an assignment,
or an interesting experiment. 
</li>
          <li>
Deliver the application. 
</li>
        </ol>
        <p>
I have used enough of these to know that learning a new language is something that
one can do in a day or two. Mastering a new language and its toolset still takes some
serious time—I would guess about 3000 hours of full time use prototyping, developing
and debugging in that language. Many folks tend to learn a language by learning just
enough to get by. In mastery, I would say that the person also actively tries to understand
the language grammar, libraries, and how the language interacts with the systems it
runs on. 3000 hours just getting stuff done will not allow for mastery. 
</p>
        <p>
With that in mind, I've probably only mastered a handful of languages: 
</p>
        <ol>
          <li>
C 
</li>
          <li>
C++ 
</li>
          <li>
C# 
</li>
          <li>
Visual Basic (3.0<span style="font-family:Wingdings">à</span>6.0) 
</li>
        </ol>
        <p>
For another set of languages, I'm just at the intermediate level. I define the intermediate
level as this: the user can write moderately complex systems with minimal access to
reference material. Code can be debugged, augmented, and generally 'read' with little
to no difficulty. This encompasses a larger set of languages—some of which are cheating
but included since I see so many places where things like each XML technology counts
as a separate 'language': 
</p>
        <ol>
          <li>
Ada 
</li>
          <li>
ASP 
</li>
          <li>
ASP.NET 
</li>
          <li>
Basic (think QBasic and its relatives) 
</li>
          <li>
COBOL 
</li>
          <li>
DOS Batch programming 
</li>
          <li>
EcmaScript/JavaScript 
</li>
          <li>
FORTRAN 
</li>
          <li>
HTML 
</li>
          <li>
Java 
</li>
          <li>
Ladder Logic (programming Programmable Logic Controllers/PLCs) 
</li>
          <li>
SQL 
</li>
          <li>
Visual Basic.NET 
</li>
          <li>
WSDL 
</li>
          <li>
x86 Assembler 
</li>
          <li>
XML 
</li>
          <li>
XPath 
</li>
          <li>
XQuery 
</li>
          <li>
XSD 
</li>
        </ol>
        <p>
Finally, there are the languages I'm a beginner in. Let's define beginner as a language
one can read and write with the assistance of the Internet and a good reference book.
At some point, I have written at least a small application (~2 weeks of effort) in
these languages: 
</p>
        <ol>
          <li>
LISP 
</li>
          <li>
MSIL 
</li>
          <li>
Bash shell 
</li>
          <li>
Eiffel 
</li>
          <li>
F# 
</li>
          <li>
Forth 
</li>
          <li>
FoxPro 
</li>
          <li>
Haskell 
</li>
          <li>
HyperTalk 
</li>
          <li>
JCL 
</li>
          <li>
Logo 
</li>
          <li>
Mathematica 
</li>
          <li>
Motorola Assembly 
</li>
          <li>
Objective C 
</li>
          <li>
OCaml 
</li>
          <li>
Pascal 
</li>
          <li>
Perl 
</li>
          <li>
PHP 
</li>
          <li>
PL/1 
</li>
          <li>
PowerShell 
</li>
          <li>
Prolog 
</li>
          <li>
Python 
</li>
          <li>
Ruby 
</li>
          <li>
Simula 
</li>
          <li>
SmallTalk 
</li>
        </ol>
        <p>
Is this a long list? Sure. But I also know of many folks who know far more than this.
Consider any language designer or language geek. Many of these folks have actually
mastered more languages than I've gotten to beginner on. 
</p>
        <p>
Finally, I want to take note of one recent observation. In the past 5 years, I have
slowed down the pace at which I learn new languages. This is happening largely because
C# and .NET are providing many of the facilities I would normally need to be more
productive. C# 3.0 has added functional language features in the form of LINQ. Its
libraries are surprisingly rich. .NET provides so many other features that I'm finding
that its pace of innovation is keeping me busy enough without needing to look elsewhere
to get the productivity gains I used to look for in other languages. .NET adds wonderful
libraries, language features, and more at such a pace that I don't have time for learning
language X when technologies like WPF and WF are beckoning to me.
</p>
        <img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=9208990b-a4ae-444d-81f6-246a42218c5f" />
        <br />
        <hr />
Visit my site, http://www.scottseely.com/.
</div>
    </content>
  </entry>
  <entry>
    <title>Visual Studio Lockups: ContextSwitchDeadlock</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2008/06/07/VisualStudioLockupsContextSwitchDeadlock.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,2b6aaac6-3f35-4871-b83e-d6b457d3bc8e.aspx</id>
    <published>2008-06-07T17:19:38.6910584-04:00</published>
    <updated>2008-06-07T17:19:38.6910584-04:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Every once in a while, Visual Studio 2008 will lock up on me. When it was in beta
and even after release, I ran into a situation where it put up a dialog saying "Blah
blah blah" with the options: 
</p>
        <ul>
          <li>
Switch to application 
</li>
          <li>
Continue waiting 
</li>
        </ul>
        <p>
From someone, probably either directly from <a href="http://www.wintellect.com/cs/blogs/jrobbins/default.aspx">John
Robbins</a> or via one of the many blogs he has recommended through his presentations,
I learned that this was being caused by a managed debugging assistant. Looking around
on the web, it seems that this bug has been known for quite a while. Here is the issue
and why it happens as explained by a Jim Stall from the Visual Studio team (<a href="http://blogs.msdn.com/jmstall/archive/2005/11/11/ContextSwitchDeadLock.aspx">link
to post</a>): 
</p>
        <p style="margin-left: 36pt">
          <em>It is possible for this MDA to be falsely activated when all of the following
conditions are met:<br />
* An application creates COM components from STA threads either directly or indirectly
through libraries.<br />
* The application was stopped in the debugger and the user either continued the application
or performed a step operation.<br />
*Unmanaged debugging is not enabled. </em>
        </p>
        <p style="margin-left: 36pt">
          <em>The reasoning is that:<br />
1) When you're stopped in the debugger while managed-only debugging, <a href="http://blogs.msdn.com/jmstall/archive/2005/10/04/managed_suspension.aspx">unmanaged
threads are still running</a>. This means that any unmanaged threads that are waiting
on some timeout from managed code will continue to run. The unmanaged thread will
see the timeout fire, but it won't realize that the managed thread is actually stopped
by the debugger. Thus the managed thread looks it's deadlocked. This is not an issue
when unmanaged debugging because then the timeout thread is also frozen when stopped
in the debugger, and so the timeout won't fire. </em>
        </p>
        <p style="margin-left: 36pt">
          <em>2) The finalizer for an STA COM objects needs to run code on the STA thread. So
there's some cross-thread stuff between the finalizer thread and the STA thread. </em>
        </p>
        <p style="margin-left: 36pt">
          <em>So the STA thread may be blocked by the debugger (since the whole managed process
is frozen at a breakpoint), while the timeout check (on an unmanaged thread) is still
ticking. </em>
        </p>
        <p style="margin-left: 36pt">
          <em>This is a race because it needs the finalization and debugger event to happen
at just the right windows.<br />
We assessed that this scenario as a rare situation. I'd expect you to see this only
on very rare occasions (due to prerequisite timing issues).<br />
If you are hitting this bogusly, one workaround is to disable this specific MDA. </em>
        </p>
        <p>
Let's walk you through disabling the specific MDA, since this problem still exists
and is not as rare as these guys think. I don't get the issue when debugging normally,
but I will get it when I run Visual Studio as an admin. Running Visual Studio 2008
as admin is required if you want to deploy applications straight over to the same
machine's IIS instance—something I do often enough. Note: I haven't run into this
issue in a non-admin context in several months. I think the two conditions are somehow
linked. 
</p>
        <p>
Please note—you have to run this sequence for every project. VS2008 will not remember
your settings across invocations. 
</p>
        <ol>
          <li>
With an open project, go into the menus and select Debug<span style="font-family:Wingdings">à</span>Exceptions. 
</li>
          <li>
            <div>Expand the Managed Debugging Assistants node. You will see the following screen: 
</div>
            <p>
              <img src="http://www.scottseely.com/Blog/content/binary/060708_2119_VisualStudi1.png" alt="" />
            </p>
          </li>
          <li>
Select ContextSwitchDeadlock and uncheck it. 
</li>
          <li>
Click OK. 
</li>
        </ol>
        <p>
I hope this helps a few other brave souls out there. 
</p>
        <img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=2b6aaac6-3f35-4871-b83e-d6b457d3bc8e" />
        <br />
        <hr />
Visit my site, http://www.scottseely.com/.
</div>
    </content>
  </entry>
  <entry>
    <title>Reading the classics</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2008/06/04/ReadingTheClassics.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,2e469d9e-eba9-4303-a466-43c27dfc0298.aspx</id>
    <published>2008-06-03T20:56:13.6986476-04:00</published>
    <updated>2008-06-03T20:56:13.6986476-04:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Over the past month, I've finally taken the plunge and decided to finally read those
classic technical books that everyone seems to have read (though that many have only
skimmed). I've also been reading oddball classics that are recommended by acquaintances
and folks in the know. As for the big classics that I've read since May 1: 
</p>
        <ul>
          <li>
            <a href="http://www.amazon.com/Algorithm-Design-Manual-Steve-Skiena/dp/0387948600">The
Algorithm Design Manual</a> by Steve Skiena 
</li>
          <li>
            <a href="http://www.amazon.com/Programming-Pearls-2nd-ACM-Press/dp/0201657880">Programming
Pearls</a> by Jon Bentley 
</li>
          <li>
            <a href="http://www.amazon.com/Peopleware-Productive-Projects-Teams-Second/dp/0932633439/">Peopleware</a> by
Tom DeMarco and Timothy Lister 
</li>
          <li>
            <a href="http://www.amazon.com/Mythical-Man-Month-Software-Engineering-Anniversary/dp/0201835959/">The
Mythical Man-Month</a> by Frederick Brooks 
</li>
        </ul>
        <p>
I've also been paging through my <a href="http://www.amazon.com/Art-Computer-Programming-Volumes-Boxed/dp/0201485419/">Knuth's</a> again.
Why, oh why would I be doing this? First off, I love the act of designing systems,
writing code, and just geeking out in my chosen profession. Second, I know that I
needed to read these classics so I could stop being an architect with no grounding
in classic computer literature. I mean, I knew what the books were all about, but
that was only through someone else's eyes, not my own. So, with this journey still
in motion, what have I been learning? 
</p>
        <p>
First, I needed a refresher on my algorithms. I was able to get most of the exercises
in Programming Pearls and Skiena with a little bit of thought and some time by a compiler.
It felt good to go through Bentley's text and figure out the really advanced, best
performing solutions to many problems. It was a morale boost to see that I could still
figure this kind of thing out with just a little bit of effort. 
</p>
        <p>
From <span style="text-decoration:underline">Peopleware</span>, I took many ideas
I have for this programming shop I want to start up 'someday' and refined the heck
out of a bunch of ideas. For example, did you know that most people find performance
reviews to be demotivating? I didn't. I thought I was the oddball that hates performance
reviews and would prefer life much better if I never got another one. It turns out
that no one likes these—they are stressful. Unfortunately, I also learned some things
about businesses I've been introduced to in my area. There are a lot of poisonous
businesses out there taking a great profession and turning it into something where
you feel odd to be one of the following: 
</p>
        <ol>
          <li>
A proud, 36 year old developer. In my opinion, that's still young. Yet, many folks
in the profession stop coding much before this age. I'm SOOOO glad I'm not one of
those people. 
</li>
          <li>
Unwilling to ship because the quality bar is not only low, it doesn't exist. Apparently,
the shipping feature matters even when things aren't right. 
</li>
          <li>
Unit testing is an OLD idea. <a href="http://junit.org/">JUnit</a>, <a href="http://nunit.org/index.php">NUnit</a>,
and other unit testing tools are not new ideas. Shoot, Fred Brooks talks about unit
testing going on for IBM back in the 1950s and 1960s. And yet, I still have a really
hard time convincing folks that unit testing is important and it is an OLD idea. Unfortunately,
fixing build breaks takes time when unit tests are present. They slow down development
and make it take longer to get to the official test, file bug, fix, repeat cycle. 
</li>
        </ol>
        <p>
I find that my focus on my career is getting sharper. I'm seeing how I can make a
difference, how to achieve it without stepping on toes and hurting feelings, and I'm
seeing how fast people can be expected to change. People hate change and will only
do so slowly when you are trying to move a group. People are more willing to change
when they are being assimilated into a group—it feels better to be a part of the group
than apart from the group. (yes, the use of 'a part' and 'apart' is intentional) At
the moment, I'm trying to find a place where I can be a positive force for change
and I need to make sure that I do this at a proper speed. If you know of a development
shop that is top notch and just wants to get better, give me a call. I'd love <a href="mailto:scott@scottseely.com">to
talk to you</a> and find out what you are doing to make things happen.
</p>
        <img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=2e469d9e-eba9-4303-a466-43c27dfc0298" />
        <br />
        <hr />
Visit my site, http://www.scottseely.com/.
</div>
    </content>
  </entry>
  <entry>
    <title>David Chappell on Software + Services</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2008/05/23/DavidChappellOnSoftwareServices.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,0fd9b9b8-efa1-489f-b1f8-984903c49bb9.aspx</id>
    <published>2008-05-22T20:35:38.7053207-04:00</published>
    <updated>2008-05-22T20:35:38.7053207-04:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I had a chance to see <a href="http://www.davidchappell.com/">David Chappell</a> speak
at the Microsoft offices in Downers Grove this past week. If he is coming anywhere
near you to talk on Software + Services, I recommend that you go see the talk. I've
got a summary of what he covers here, but you've got to see him in person to get the
talk. The man is an amazing communicator and helped me connect some dots that I hadn't
quite connected in a while—whether that was due to sloth on my part of great speaking
on David's part, I don't know<span style="font-family:Wingdings">J</span>. 
</p>
        <p>
Anyhow, here's a few hundred words explaining some of what I got out of it. 
</p>
        <p>
Training Date: May 20, 2008, 1-4 PM 
</p>
        <p>
Location: Microsoft offices, Downers Grove, IL 
</p>
        <p>
Presenter: David Chappell, <a href="http://www.davidchappell.com/">http://www.davidchappell.com/</a></p>
        <h1>Summary 
</h1>
        <p>
The reliability of the Internet, relatively low cost of connectivity, and widespread
presence of high bandwidth connections has provided a path for application architectures
to evolve. Specifically, this set of changes allows application vendors to provide
common applications to end users. Today, these common applications include e-mail,
CRM, storage, web site hosting, mapping (ex. 1 Main St., Mundelein, IL), and database
hosting. Providers host these services on the Internet, also called the 'cloud' by
the software services community. These services commonly provide the following features: 
</p>
        <ul>
          <li>
Data mobility: Consumers own their data and can change providers or move the data
in house as needed. 
</li>
          <li>
Application integration: The service in the cloud is part of a larger application
used at the enterprise. 
</li>
          <li>
Application customization: The service in the cloud may allow the consumer to customize
the application to handle special business needs. 
</li>
        </ul>
        <p>
Two terms describe the different business models for the services in the cloud: Software
as a Service, SaaS, and Software + Services, S+S. SaaS offers a complete software
package in the cloud. SaaS instances may allow for integration and customization.
SaaS does not provide much of a role for corporate IT departments outside of application
development. S+S describes a hybridization between today's common model of self-hosting
applications and the SaaS world. SalesForce.com offers an example of a SaaS application.
SalesForce.com manages all the data, the application uptime, etc. An S+S example is
a bit more involved, but probably more common for businesses as it allows for control
of the perceived competitive advantages of a business. 
</p>
        <p>
S+S includes the types of applications that use cloud services as well as custom,
in-house services. For example, a business could host Exchange Server locally but
make use of a service provider to handle advanced Exchange functionality such as Outlook
Web Access, web calendaring, or discussion lists. 
</p>
        <p>
With terminology and ideas covered, what else does a business need to look out for?
The business should evaluate the service provider in the same way that they would
evaluate a packaged, installable software. Beyond that the consumer needs to decide
if the service meets their needs. 
</p>
        <p>
In both packaged software and services, one must look at how the vendor is trying
to lock in the consumer. This lock in happens in different ways. They may lock down
data, making it difficult to move to a new vendor. They may also create a platform
type of lock in. The platform lock in can cause many different kinds of problems.
If the lock in is through the tooling and programming languages, a consumer may find
it difficult to port customizations to equally good platforms. Likewise, it may prove
difficult to find reasonably priced developer talent. For example, SalesForce.com
uses the Apex programming language. Apex is specific to SalesForce.com and isn't commonly
available elsewhere. Other tools, like Microsoft Dynamics CRM and Google Apps, use
common extension languages, allowing for a larger developer pool. Microsoft Dynamics
uses .NET based languages and Google Apps uses Python. 
</p>
        <img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=0fd9b9b8-efa1-489f-b1f8-984903c49bb9" />
        <br />
        <hr />
Visit my site, http://www.scottseely.com/.
</div>
    </content>
  </entry>
  <entry>
    <title>Data Structures</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2008/05/14/DataStructures.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,01a676e3-7774-4cbb-9021-e4a08005e15f.aspx</id>
    <published>2008-05-13T23:19:38.982-04:00</published>
    <updated>2008-05-13T23:27:56.6514428-04:00</updated>
    <category term="JavaScript" label="JavaScript" scheme="http://www.scottseely.com/Blog/CategoryView,category,JavaScript.aspx" />
    <category term="EcmaScript" label="EcmaScript" scheme="http://www.scottseely.com/Blog/CategoryView,category,EcmaScript.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I have a friend who teaches Computer Science. One of the things we've discussed is
the need for students/entry level hires to really understand basic data structures.
This is true even though most popular languages do the basic ones quite well (linked
list, hashtable, queue, stack). A consequence of these things being in most languages
is that many of today's students aren't being required to actually build these data
structures as part of their education. Many problems in the work place involve situations
where one needs to know the characteristics of the data structure in order to implement
the most efficient algorithms. One acquires this knowledge through actually building
the data structures at least once. 
</p>
        <p>
I believe that many of the folks who grew up programming for the web are getting to
a point where their script skills will need to fill in these gaps in their education.
Browser apps are approaching desktop applications in terms of presentation, interactivity,
and capability. The next step in the evolution of browser applications will require
developers to have knowledge of the basic data structures and their variance implementation
options. The reason: unlike the desktop languages we all use, the browser's programming
language, JavaScript, doesn't have any of these. (If I'm mistaken, <a href="mailto:scott@scottseely.com">let
me know</a>!) 
</p>
        <p>
Right now, I'm reviewing the data structures and algorithms that I learned during
the first two years of college. I'm also trying to bring myself up on my level of
understanding JavaScript. I think that some of these diversions might prove interesting
to the world at large. Today, I've implemented a linked list. A linked list has the
following characteristics: 
</p>
        <ol>
          <li>
Add at the front or end of the list takes O(1) time. 
</li>
          <li>
Extraction of the nth element takes O(n) time. 
</li>
          <li>
Insert at a given position, k, takes O(k) time. 
</li>
          <li>
Delete at a given position, k, takes O(k) time. 
</li>
        </ol>
        <p>
Linked lists are effective when typical usage of the list is in scanning all elements.
A linked list is 'nice' to memory management. That is, the room needed for the list
+ one more linked list node is: 
</p>
        <p style="MARGIN-LEFT: 36pt">
Z = (size of node) = ((size of data) + (reference to next node)) 
</p>
        <p style="MARGIN-LEFT: 36pt">
(total memory in use when adding a node) = Z x (number of nodes + 1) 
</p>
        <p>
This is an improvement over the typical JavaScript Array type whose worst case characteristics
for adding one more element to the list is 
</p>
        <p style="MARGIN-LEFT: 36pt">
Z = (size of node) = (size of data) 
</p>
        <p style="MARGIN-LEFT: 36pt">
(total memory needed when adding a node) = Z x ((2 + growth size) x number of nodes) 
</p>
        <p>
In many algorithms for array growth, the algorithm calls for a doubling of the array's
allocated memory. The reason that so much memory is required is that arrays require
contiguous memory in order to maintain O(1) lookup time at any given element. 
</p>
        <h1>A Doubly Linked List Implementation 
</h1>
        <p>
A doubly linked list is a list that one can use to go both forward and backward from
one node to the next. To accomplish this, I've created three classes: 
</p>
        <p>
          <span style="FONT-FAMILY: Verdana">
            <span style="COLOR: blue">function</span> LinkedListNode()
{ </span>
        </p>
        <p>
          <span style="FONT-FAMILY: Verdana">} </span>
        </p>
        <p>
 
</p>
        <p>
          <span style="FONT-FAMILY: Verdana">LinkedList.LinkedListNode = { </span>
        </p>
        <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
          <p>
            <span style="FONT-FAMILY: Verdana">Data: <span style="COLOR: blue">null</span>, </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">Next: <span style="COLOR: blue">null</span>, </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">Previous: <span style="COLOR: blue">null </span></span>
          </p>
        </blockquote>
        <p>
          <span style="FONT-FAMILY: Verdana">}; </span>
        </p>
        <p>
 
</p>
        <p>
LinkedListNode keeps track of the data, the Next, and the Previous nodes. The algorithms
involved all assume that the linked list Next and Previous members will only be other
LinkedListNodes or null. 
</p>
        <p>
          <span style="FONT-FAMILY: Verdana">
            <span style="COLOR: blue">function</span> LinkedListIterator(){} </span>
        </p>
        <p>
 
</p>
        <p>
          <span style="FONT-FAMILY: Verdana">LinkedListIterator.prototype = { </span>
        </p>
        <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
          <p>
            <span style="FONT-FAMILY: Verdana">_current: <span style="COLOR: blue">null</span>, </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">Current: <span style="COLOR: blue">function</span>()
{ </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">
              <span style="COLOR: blue">var</span> retval = <span style="COLOR: blue">null</span>; </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">
              <span style="COLOR: blue">if</span> (<span style="COLOR: blue">this</span>._current
!= <span style="COLOR: blue">null</span>) </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">{ </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">retval = <span style="COLOR: blue">this</span>._current.Data; </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">} </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">
              <span style="COLOR: blue">return</span> retval; </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">}, </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">Next: <span style="COLOR: blue">function</span>()
{ </span>
          </p>
          <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
            <p>
              <span style="FONT-FAMILY: Verdana">
                <span style="COLOR: blue">if</span> (<span style="COLOR: blue">this</span>._current
!= <span style="COLOR: blue">null</span>) </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">{ </span>
            </p>
            <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
              <p>
                <span style="FONT-FAMILY: Verdana">
                  <span style="COLOR: blue">this</span>._current
= <span style="COLOR: blue">this</span>._current.Next; </span>
              </p>
            </blockquote>
            <p>
              <span style="FONT-FAMILY: Verdana">} </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">
                <span style="COLOR: blue">return</span>
                <span style="COLOR: blue">this</span>._current
!= <span style="COLOR: blue">null</span>; </span>
            </p>
          </blockquote>
          <p>
            <span style="FONT-FAMILY: Verdana">}, </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">Previous: <span style="COLOR: blue">function</span>()
{ </span>
          </p>
          <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
            <p>
              <span style="FONT-FAMILY: Verdana">
                <span style="COLOR: blue">if</span> (<span style="COLOR: blue">this</span>._current
!= <span style="COLOR: blue">null</span>) </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">{ </span>
            </p>
            <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
              <p>
                <span style="FONT-FAMILY: Verdana">
                  <span style="COLOR: blue">this</span>._current
= <span style="COLOR: blue">this</span>._current.Previous; </span>
              </p>
            </blockquote>
            <p>
              <span style="FONT-FAMILY: Verdana">} </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">
                <span style="COLOR: blue">return</span>
                <span style="COLOR: blue">this</span>._current
!= <span style="COLOR: blue">null</span>; </span>
            </p>
          </blockquote>
          <p>
            <span style="FONT-FAMILY: Verdana">}, </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">HasData: <span style="COLOR: blue">function</span>()
{ </span>
          </p>
          <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
            <p>
              <span style="FONT-FAMILY: Verdana">
                <span style="COLOR: blue">return</span>
                <span style="COLOR: blue">this</span>._current
!= <span style="COLOR: blue">null</span>; </span>
            </p>
          </blockquote>
          <p>
            <span style="FONT-FAMILY: Verdana">} </span>
          </p>
        </blockquote>
        <p>
          <span style="FONT-FAMILY: Verdana">}; </span>
        </p>
        <p>
LinkedListIterator allows one to go forward and backward within a LinkedList. The
iterator can become invalid when it runs off the front or back of the LinkedList. 
</p>
        <p>
          <span style="FONT-FAMILY: Verdana">
            <span style="COLOR: blue">function</span> LinkedList(){} </span>
        </p>
        <p>
 
</p>
        <p>
          <span style="FONT-FAMILY: Verdana">LinkedList.prototype = { </span>
        </p>
        <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
          <p>
            <span style="FONT-FAMILY: Verdana">_head: <span style="COLOR: blue">null</span>, </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">_back: <span style="COLOR: blue">null</span>, </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">_length: 0, </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">Add: <span style="COLOR: blue">function</span>(data)
{ </span>
          </p>
          <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
            <p>
              <span style="FONT-FAMILY: Verdana">
                <span style="COLOR: blue">var</span> newNode = <span style="COLOR: blue">new</span> LinkedListNode(); </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">newNode.Data = data; </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">
                <span style="COLOR: blue">if</span> (<span style="COLOR: blue">this</span>._head
== <span style="COLOR: blue">null</span>) </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">{ </span>
            </p>
            <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
              <p>
                <span style="FONT-FAMILY: Verdana">
                  <span style="COLOR: blue">this</span>._head = newNode; </span>
              </p>
              <p>
                <span style="FONT-FAMILY: Verdana">
                  <span style="COLOR: blue">this</span>._back = newNode; </span>
              </p>
            </blockquote>
            <p>
              <span style="FONT-FAMILY: Verdana">} </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">
                <span style="COLOR: blue">else </span>
              </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">{ </span>
            </p>
            <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
              <p>
                <span style="FONT-FAMILY: Verdana">newNode.Previous = <span style="COLOR: blue">this</span>._back; </span>
              </p>
              <p>
                <span style="FONT-FAMILY: Verdana">
                  <span style="COLOR: blue">this</span>._back.Next
= newNode; </span>
              </p>
              <p>
                <span style="FONT-FAMILY: Verdana">
                  <span style="COLOR: blue">this</span>._back = newNode; </span>
              </p>
            </blockquote>
            <p>
              <span style="FONT-FAMILY: Verdana">} </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">++<span style="COLOR: blue">this</span>._length; </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">
                <span style="COLOR: blue">return</span> newNode; </span>
            </p>
          </blockquote>
          <p>
            <span style="FONT-FAMILY: Verdana">}, </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">RemoveAt: <span style="COLOR: blue">function</span>(index)
{ </span>
          </p>
          <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
            <p>
              <span style="FONT-FAMILY: Verdana">
                <span style="COLOR: blue">var</span> currentIndex
= 0; </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">
                <span style="COLOR: blue">var</span> nextNode = <span style="COLOR: blue">this</span>._head; </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">
                <span style="COLOR: blue">while</span> (nextNode
!= <span style="COLOR: blue">null</span> &amp;&amp; currentIndex &lt; index) </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">{ </span>
            </p>
            <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
              <p>
                <span style="FONT-FAMILY: Verdana">++currentIndex; </span>
              </p>
              <p>
                <span style="FONT-FAMILY: Verdana">nextNode = nextNode.Next; </span>
              </p>
            </blockquote>
            <p>
              <span style="FONT-FAMILY: Verdana">} </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">
                <span style="COLOR: blue">if</span> (currentIndex
== index) </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">{ </span>
            </p>
            <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
              <p>
                <span style="FONT-FAMILY: Verdana">nextNode.Previous.Next = nextNode.Next; </span>
              </p>
              <p>
                <span style="FONT-FAMILY: Verdana">
                  <span style="COLOR: blue">if</span> (nextNode.Next
!= <span style="COLOR: blue">null</span>) </span>
              </p>
              <p>
                <span style="FONT-FAMILY: Verdana">{ </span>
              </p>
              <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
                <p>
                  <span style="FONT-FAMILY: Verdana">nextNode.Next.Previous = nextNode.Previous; </span>
                </p>
              </blockquote>
              <p>
                <span style="FONT-FAMILY: Verdana">} </span>
              </p>
            </blockquote>
            <p>
              <span style="FONT-FAMILY: Verdana">} </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">
                <span style="COLOR: blue">return</span> nextNode; </span>
            </p>
          </blockquote>
          <p>
            <span style="FONT-FAMILY: Verdana">}, </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">Length: <span style="COLOR: blue">function</span>(){ </span>
          </p>
          <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
            <p>
              <span style="FONT-FAMILY: Verdana">
                <span style="COLOR: blue">return</span>
                <span style="COLOR: blue">this</span>._length; </span>
            </p>
          </blockquote>
          <p>
            <span style="FONT-FAMILY: Verdana">}, </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">InsertAt: <span style="COLOR: blue">function</span>(index,
data) { </span>
          </p>
          <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
            <p>
              <span style="FONT-FAMILY: Verdana">
                <span style="COLOR: blue">var</span> currentIndex
= 0; </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">
                <span style="COLOR: blue">var</span> nextNode = <span style="COLOR: blue">this</span>._head; </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">
                <span style="COLOR: blue">var</span> newNode = <span style="COLOR: blue">new</span> LinkedListNode(); </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">newNode.Data = data; </span>
            </p>
            <p>
 
</p>
            <p>
              <span style="FONT-FAMILY: Verdana">
                <span style="COLOR: blue">if</span> (index == 0) </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">{ </span>
            </p>
            <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
              <p>
                <span style="FONT-FAMILY: Verdana">
                  <span style="COLOR: green">// Insert at head </span>
                </span>
              </p>
              <p>
                <span style="FONT-FAMILY: Verdana">
                  <span style="COLOR: blue">if</span> (<span style="COLOR: blue">this</span>._head
== <span style="COLOR: blue">null</span>) </span>
              </p>
              <p>
                <span style="FONT-FAMILY: Verdana">{ </span>
              </p>
              <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
                <p>
                  <span style="FONT-FAMILY: Verdana">
                    <span style="COLOR: blue">this</span>.Add(data); </span>
                </p>
              </blockquote>
              <p>
                <span style="FONT-FAMILY: Verdana">} </span>
              </p>
              <p>
                <span style="FONT-FAMILY: Verdana">
                  <span style="COLOR: blue">else </span>
                </span>
              </p>
              <p>
                <span style="FONT-FAMILY: Verdana">{ </span>
              </p>
              <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
                <p>
                  <span style="FONT-FAMILY: Verdana">newNode.Next = <span style="COLOR: blue">this</span>._head; </span>
                </p>
                <p>
                  <span style="FONT-FAMILY: Verdana">
                    <span style="COLOR: blue">this</span>._head.Previous
= newNode; </span>
                </p>
                <p>
                  <span style="FONT-FAMILY: Verdana">
                    <span style="COLOR: blue">this</span>._head = newNode; </span>
                </p>
                <p>
                  <span style="FONT-FAMILY: Verdana">++<span style="COLOR: blue">this</span>._length; </span>
                </p>
              </blockquote>
              <p>
                <span style="FONT-FAMILY: Verdana">} </span>
              </p>
            </blockquote>
            <p>
              <span style="FONT-FAMILY: Verdana">} </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">
                <span style="COLOR: blue">else</span>
                <span style="COLOR: blue">if</span> (index
&gt;= <span style="COLOR: blue">this</span>._length) </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">{ </span>
            </p>
            <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
              <p>
                <span style="FONT-FAMILY: Verdana">
                  <span style="COLOR: green">// Add to the end. </span>
                </span>
              </p>
              <p>
                <span style="FONT-FAMILY: Verdana">
                  <span style="COLOR: blue">this</span>.Add(data); </span>
              </p>
            </blockquote>
            <p>
              <span style="FONT-FAMILY: Verdana">} </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">
                <span style="COLOR: blue">else</span>
              </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">{ </span>
            </p>
            <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
              <p>
                <span style="FONT-FAMILY: Verdana">
                  <span style="COLOR: green">// Insert in the middle </span>
                </span>
              </p>
              <p>
                <span style="FONT-FAMILY: Verdana">
                  <span style="COLOR: blue">while</span> (nextNode
!= <span style="COLOR: blue">null</span> &amp;&amp; currentIndex &lt; index) </span>
              </p>
              <p>
                <span style="FONT-FAMILY: Verdana">{ </span>
              </p>
              <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
                <p>
                  <span style="FONT-FAMILY: Verdana">++currentIndex; </span>
                </p>
                <p>
                  <span style="FONT-FAMILY: Verdana">nextNode = nextNode.Next; </span>
                </p>
              </blockquote>
              <p>
                <span style="FONT-FAMILY: Verdana">} </span>
              </p>
              <p>
                <span style="FONT-FAMILY: Verdana">
                  <span style="COLOR: blue">if</span> (currentIndex
== index) </span>
              </p>
              <p>
                <span style="FONT-FAMILY: Verdana">{ </span>
              </p>
              <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
                <p>
                  <span style="FONT-FAMILY: Verdana">nextNode.Previous.Next = newNode; </span>
                </p>
                <p>
                  <span style="FONT-FAMILY: Verdana">newNode.Previous = nextNode.Previous; </span>
                </p>
                <p>
                  <span style="FONT-FAMILY: Verdana">newNode.Next = nextNode; </span>
                </p>
                <p>
                  <span style="FONT-FAMILY: Verdana">nextNode.Previous = newNode; </span>
                </p>
                <p>
                  <span style="FONT-FAMILY: Verdana">++<span style="COLOR: blue">this</span>._length; </span>
                </p>
              </blockquote>
              <p>
                <span style="FONT-FAMILY: Verdana">} </span>
              </p>
            </blockquote>
            <p>
              <span style="FONT-FAMILY: Verdana">} </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">
                <span style="COLOR: blue">return</span> nextNode; </span>
            </p>
          </blockquote>
          <p>
            <span style="FONT-FAMILY: Verdana">}, </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">GetIterator: <span style="COLOR: blue">function</span>(){ </span>
          </p>
          <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
            <p>
              <span style="FONT-FAMILY: Verdana">
                <span style="COLOR: blue">var</span> retval = <span style="COLOR: blue">new</span> LinkedListIterator(); </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">retval._current = <span style="COLOR: blue">this</span>._head; </span>
            </p>
            <p>
              <span style="FONT-FAMILY: Verdana">
                <span style="COLOR: blue">return</span> retval; </span>
            </p>
          </blockquote>
          <p>
            <span style="FONT-FAMILY: Verdana">} </span>
          </p>
        </blockquote>
        <p>
          <span style="FONT-FAMILY: Verdana">}; </span>
        </p>
        <p>
Finally, this is the linked list data structure. It allows you to insert at a given
location, remove a given item, add an item to the end of the list, and can create
a bi-directional iterator to allow you to walk the list from front to back and to
the front again. Since I'm a Windows guy, I tested out the structure using cscript.exe. 
</p>
        <font color="#0000ff" size="3">
        </font>
        <p>
function<font size="3"><font color="#000000"> DisplayList(list)</font></font></p>
        <p>
{
</p>
        <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
          <p>
            <font color="#0000ff" size="3">var</font>
            <font size="3"> iterator = list.GetIterator();
</font>
          </p>
          <p>
            <font color="#0000ff" size="3">if</font>
            <font size="3"> (iterator.HasData())
</font>
          </p>
          <p>
{
</p>
          <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
            <p>
              <font color="#0000ff" size="3">do</font>
              <font size="3">
              </font>
            </p>
            <p>
{
</p>
            <p>
WScript.Echo(iterator.Current());
</p>
            <p>
}<font color="#0000ff" size="3">while</font><font size="3">(iterator.Next());
</font></p>
          </blockquote>
          <p>
}
</p>
        </blockquote>
        <p>
}
</p>
        <p>
          <span style="FONT-FAMILY: Verdana">
            <span style="COLOR: blue">
            </span>
          </span> 
</p>
        <p>
          <span style="FONT-FAMILY: Verdana">
            <span style="COLOR: blue">
            </span>
          </span> 
</p>
        <p>
          <span style="FONT-FAMILY: Verdana">
            <span style="COLOR: blue">function</span> TestLinkedList() </span>
        </p>
        <p>
          <span style="FONT-FAMILY: Verdana">{ </span>
        </p>
        <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
          <p>
            <span style="FONT-FAMILY: Verdana">
              <span style="COLOR: blue">var</span> list = <span style="COLOR: blue">new</span> LinkedList(); </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">list.Add(15); </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">list.Add(<span style="COLOR: #a31515">"Hello, World!"</span>); </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">WScript.Echo(list.Length()); </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">DisplayList(list); </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">WScript.Echo(<span style="COLOR: #a31515">"---"</span>); </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">list.InsertAt(1, <span style="COLOR: blue">new</span> Date()); </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">DisplayList(list); </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">WScript.Echo(<span style="COLOR: #a31515">"---"</span>); </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">list.RemoveAt(2); </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">DisplayList(list); </span>
          </p>
          <p>
            <span style="FONT-FAMILY: Verdana">WScript.Echo(<span style="COLOR: #a31515">"---"</span>); </span>
          </p>
        </blockquote>
        <p>
          <span style="FONT-FAMILY: Verdana">} </span>
        </p>
        <p>
 
</p>
        <p>
          <span style="FONT-FAMILY: Verdana">TestLinkedList(); </span>
        </p>
        <p>
If you need a refresher on linked lists and their variants, <a href="http://en.wikipedia.org/wiki/Linked_list">Wikipedia
has a good write-up</a> that I won't repeat here.
</p>
        <font color="#0000ff" size="3">
          <p>
          </p>
        </font>
        <font size="3"> 
</font>
        <img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=01a676e3-7774-4cbb-9021-e4a08005e15f" />
        <br />
        <hr />
Visit my site, http://www.scottseely.com/.
</div>
    </content>
  </entry>
  <entry>
    <title>Group is gathering momentum</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2008/05/02/GroupIsGatheringMomentum.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,44e373e7-b4f2-4386-baf5-4a0d09b134da.aspx</id>
    <published>2008-05-01T21:36:24.1231083-04:00</published>
    <updated>2008-05-01T21:36:24.1231083-04:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
In case anyone in Lake County, Illinois/Kenosha County, Wisconsin reads this blog,
I'd like you all to know that the <a href="http://www.lcnug.org">LCNUG</a> group is
already gaining momentum. To give some people an idea of how fast things can move,
I'd like to take some time to explain what is going on. I'll post (when I remember
to do so) about what is going on with the group and how we are doing as we go through
our gestational phase. 
</p>
        <p>
The first thing I did was pick a 'dream venue'. In this case, I wanted a local location
with great parking, centrally located, and with space to host a largish group. The
local community college was my first choice. I sent a message to the head of the CLC
Computer department who put me in contact with their .NET instructor, John North.
John and I talked about what a .NET User Group is, when they meet, etc. He then worked
with his department and got us a location. CLC has a charter that includes working
with the community. His department used this reasoning to get approval for the LCNUG
to meet on the last Thursday of the month for every month except November and December
(dates are November 20 and December 18 in these cases). Once this was done, I set
out to contact the local developer community so that we could have some attendees
at our first meeting. 
</p>
        <p>
In the process, I found out that another local programmer, <a href="http://timstall.dotnetdevelopersjournal.com/read/page/bio.htm">Tim
Stall</a>, had just started meeting with his coworkers for the same reasons as me—driving
to downtown Chicago or Downers Grove is a bit far for folks who work in Lake County.
Tim and I found each other by contacting our local Developer and Architect Evangelist.
At this point in time, that's <a href="http://www.davebost.com">Dave Bost</a> and <a href="http://www.larryclarkin.com/">Larry
Clarkin</a>. Dave and Larry made sure that Tim and I got on the same page. They also
looped in Keith Franklin, who runs <a href="http://cnug.org/Default.aspx">CNUG</a>,
so that we could get linked from their site. This all happened over the course of
a few hours. I've also got people sending me messages and asking to help out. 
</p>
        <p>
Why do I bring this up? I thought that anyone else looking to start a .NET Users Group
would be interested in finding out what does it look like from the time one says 'we
need a group in this area' to actually getting a group together. I started the process
when I contacted CLC on April 17, 2008. At this point, I've got the following things
'done': 
</p>
        <ul>
          <li>
Scheduled a venue through the end of the year 
</li>
          <li>
Contacted Microsoft 
</li>
          <li>
Setup a <a href="http://www.lcnug.org">web site</a></li>
          <li>
Setup an account on <a href="http://www.codezone.com">CodeZone</a>. 
</li>
          <li>
Setup an account on <a href="http://www.ineta.org">INETA</a>. FWIW, their 'register
a .NET user group' form is busted. I'm looking for alternate ways to register. Fortunately,
I have some avenues to investigate. 
</li>
          <li>
Have some feelers out for sponsors. 
</li>
        </ul>
        <p>
Doing this isn't too hard. Like I said, I'm also starting to get help from others.
I don't want this to be the 'Scott Seely' show. I want a group where I and other like
me can learn and socialize. 
</p>
        <p>
I'll let you know how everything works out.
</p>
        <img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=44e373e7-b4f2-4386-baf5-4a0d09b134da" />
        <br />
        <hr />
Visit my site, http://www.scottseely.com/.
</div>
    </content>
  </entry>
  <entry>
    <title>Lake County .NET Users Group is Here!</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2008/04/29/LakeCountyNETUsersGroupIsHere.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,41ad0e13-e01e-4177-840d-a06535ba301e.aspx</id>
    <published>2008-04-28T20:04:48.2673713-04:00</published>
    <updated>2008-04-28T20:04:48.2673713-04:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I want to take a few moments to announce the formation of a .NET Users Group in Lake
County, Illinois. Our first meeting will be at CLC in Grayslake, IL. I'll be the inaugural
speaker giving a beginner level talk on Windows Workflow. For details, please visit <a href="http://www.lcnug.org">www.lcnug.org</a>.
If you plan on attending, are interested in sponsoring, or have questions, feel free
to contact me (scott at scottseely.com). 
</p>
        <img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=41ad0e13-e01e-4177-840d-a06535ba301e" />
        <br />
        <hr />
Visit my site, http://www.scottseely.com/.
</div>
    </content>
  </entry>
  <entry>
    <title>Setting the proxy for all users</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2008/04/16/SettingTheProxyForAllUsers.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,a9b37e78-20fd-4112-898a-47c4a2c25d1e.aspx</id>
    <published>2008-04-16T13:40:52.3308429-04:00</published>
    <updated>2008-04-16T13:51:36.4673454-04:00</updated>
    <category term="Windows" label="Windows" scheme="http://www.scottseely.com/Blog/CategoryView,category,Windows.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Today, I had to debug a strange problem. We have a web application that does some
fancy printing. The main application server is a Unix machine, the print component
lives on Windows. The network between these two has all sorts of fun firewall rules
that HTTP type requests can navigate so long as the proxy on the machine is setup
correctly. Unfortunately, the Windows test box didn't have the proxy setup correctly
and I didn't have easy access to the one account that runs the service. To make the
proxy set for all users, I had to ask my good friend, Google, how to do this. Google
answered "Change the default connection policy for all users." Google didn't explain
how to do this very nicely (what a jerk!).
</p>
        <p>
I then thought that maybe Google didn't have the whole answer in one place. (not a
jerk!) So, I asked Google "How do I set the local policy on a Windows 2003 server?" 
</p>
        <p>
Google answered, "Start--&gt;Run--&gt;gpedit.msc". Cool, gpedit.msc is the name of
the Group Policy Editor and it is a Microsoft Management Console plugin (yeah, you
can get all that info from the filename if you live in Windows long enough-- I've
in some sort of Microsoft DOS/Windows mode since 1984).
</p>
        <p>
From there, I just figured things out. So that you too can benefit from my digging,
here is the info:
</p>
        <ol>
          <li>
Navigate to User Configuration--&gt;Windows Settings--&gt;Internet Explorer Maintenance--&gt;Connection</li>
          <li>
Double click on 'Proxy Settings'</li>
          <li>
Set your proxy. 
</li>
        </ol>
        <p>
These settings then get applied to all users, including those whose passwords you
can't recall:) For what it's worth, this also works on Windows XP. I haven't tried
Vista, but I bet the results are the same there too. 
</p>
        <img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=a9b37e78-20fd-4112-898a-47c4a2c25d1e" />
        <br />
        <hr />
Visit my site, http://www.scottseely.com/.
</div>
    </content>
  </entry>
  <entry>
    <title>Got a ViewSonic VX2235wm-- nice!</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2008/04/10/GotAViewSonicVX2235wmNice.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,dc00d2e3-f1bb-485b-b171-3a450ff8aef9.aspx</id>
    <published>2008-04-10T19:28:05.8182609-04:00</published>
    <updated>2008-04-10T19:37:12.7522605-04:00</updated>
    <category term="Miscellaneous" label="Miscellaneous" scheme="http://www.scottseely.com/Blog/CategoryView,category,Miscellaneous.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I was checking out the ads for the local office supply and electronics stores during
my lunch hour and I saw that Office Depot was selling the ViewSonic VX2235wm for $259--
the same price as I paid for the <a href="http://www.scottseely.com/Blog/PermaLink,guid,b73564fc-2380-485b-9240-0f9b81651b9a.aspx">hunk
of junk Samsung</a>. I plugged it in to my laptop and IT JUST WORKED! Everything is
crisp, clear, perfect! 
</p>
        <p>
The installation experience went like this: I plugged in the monitor to power and
my laptop. Vista asked me if I wanted the display on the left or right of my primary
display (right) and then I was in business. This is NOT what happened this weekend
with the Samsung. 
</p>
        <p>
So far, I've adjusted nothing on the monitor. I'm so HAPPY that this thing works.
ViewSonic is just a better monitor manufacturer. 
</p>
        <p>
One other thing-- my 1st grader, Angie, introduced me to Pivot. Here's a nose picking,
butt scratching stick figure that I created tonight to get a laugh out of the kids.
</p>
        <p>
          <img src="http://www.scottseely.com/Blog/content/binary/scratchbutt.gif" border="0" />
        </p>
        <img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=dc00d2e3-f1bb-485b-b171-3a450ff8aef9" />
        <br />
        <hr />
Visit my site, http://www.scottseely.com/.
</div>
    </content>
  </entry>
  <entry>
    <title>Samsung SyncMaster 223BW Review</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2008/04/10/SamsungSyncMaster223BWReview.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,b73564fc-2380-485b-9240-0f9b81651b9a.aspx</id>
    <published>2008-04-10T10:59:04.7-04:00</published>
    <updated>2008-04-10T11:07:08.9631555-04:00</updated>
    <category term="Miscellaneous" label="Miscellaneous" scheme="http://www.scottseely.com/Blog/CategoryView,category,Miscellaneous.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
This last weekend, my wife bought a 21.6" Samsung SyncMaster 223BW monitor for me
for my birthday (happy 36th to me!) so that I could bask in dual monitor
goodness when working on projects at home. I attached the monitor to my PC over the
analog hookup (because I don't have an digital port available on my laptop). I know
this port to be very good for other projectors. I used this laptop to teach at a number
of locations over the past few years and have never had a problem when connecting
to a fancy overhead projector. It worked great on several projectors at Microsoft
when I worked there, it worked fine when I taught for Wintellect last year, so I know
this wasn't the issue (though I did think 'hmm-- could the port be goofy?').
</p>
        <p>
The images I got from the monitor were crap. I tried every adjustment, got the latest
drivers for the monitor, etc. I just couldn't get the monitor to generate clear, crisp
text. For someone who processes lots of code when sitting at a machine, this was an
absolute deal breaker. If you do get one of these monitors and plan to use an analog
(D-SUB 15) connector, then just pick something else. Right now, you can pick these
things up at Sam's Club for about $260. Mine goes back today.
</p>
        <p>
I think I'm going to go with a ViewSonic-- I've always been happy with their
stuff though I never like the fact that I have to pay extra. Hopefully, I'll have
a good experience to post about for that one tomorrow.
</p>
        <img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=b73564fc-2380-485b-9240-0f9b81651b9a" />
        <br />
        <hr />
Visit my site, http://www.scottseely.com/.
</div>
    </content>
  </entry>
  <entry>
    <title>System.Transactions, interesting tidbit</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2008/04/07/SystemTransactionsInterestingTidbit.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,2e8d0601-fa26-4a86-92c2-c6c30f632cc9.aspx</id>
    <published>2008-04-07T10:24:36.8448849-04:00</published>
    <updated>2008-04-07T10:32:11.1388524-04:00</updated>
    <category term=".NET" label=".NET" scheme="http://www.scottseely.com/Blog/CategoryView,category,.NET.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Florin Lazar has an interesting post on using C# 3.0 to make writing transaction blocks
a little 'pithier'. In '<a href="http://blogs.msdn.com/florinlazar/archive/2008/03/24/8334137.aspx">A
Simpler TransactionScope</a>', he suggests using a delegate and a lambda expression to
accomplish his goals. 
</p>
        <p>
          <font face="Courier New">
            <strong>transacted(()=&gt;</strong>
            <br />
{<br />
   using (SqlConnection connection = new SqlConnection(connectionString))<br />
   {<br />
      connection.Open();<br /><br />
      SqlCommand command1 = new SqlCommand(commandString1,
connection);<br />
      command1.ExecuteNonQuery();<br /><br />
      SqlCommand command2 = new SqlCommand(commandString2,
connection);<br />
      command2.ExecuteNonQuery();<br />
   }<br /><strong>});</strong><br /></font>
        </p>
        <p>
          <font face="Courier New">delegate void TransactedCodeDelegate();<br />
void transacted(TransactedCodeDelegate txCode)<br />
{<br />
   using (TransactionScope ts = new TransactionScope())<br />
   {<br />
      txCode();<br />
      ts.Complete();<br />
   }<br />
}</font>
          <br />
        </p>
        <p>
The thing that bothered me about this is, can't I approach this using C# 2.0? And,
yes, I can!
</p>
        <p>
          <font face="Courier New">transacted(delegate()<br />
{<br />
   using (SqlConnection connection = new SqlConnection(connectionString))<br />
   {<br />
      connection.Open();<br /><br />
      SqlCommand command1 = new SqlCommand(commandString1,
connection);<br />
      command1.ExecuteNonQuery();<br /><br />
      SqlCommand command2 = new SqlCommand(commandString2,
connection);<br />
      command2.ExecuteNonQuery();<br />
   }<br />
});</font>
        </p>
        <p>
In case you are missing the change, Florin suggests using <font face="Courier New">()=&gt;</font> (4
characters) and I suggest using <font face="Courier New">delegate() </font><font face="Verdana">(10
characters). Otherwise, these are identical. They both use an anonymous delegate to
get the job done.</font></p>
        <p>
          <font face="Verdana">I'm not suggesting that Florin's method is flawed. I'm just suggesting
that folks who still use VS 2005 in their day to day job can pick up this trick without
an upgrade.
</font>
        </p>
        <p>
          <br />
        </p>
        <img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=2e8d0601-fa26-4a86-92c2-c6c30f632cc9" />
        <br />
        <hr />
Visit my site, http://www.scottseely.com/.
</div>
    </content>
  </entry>
  <entry>
    <title>Test Windows Live Writer</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2008/03/16/TestWindowsLiveWriter.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,f6c6d739-fce9-4fd5-806a-3899756a2879.aspx</id>
    <published>2008-03-16T15:50:08.7248816-04:00</published>
    <updated>2008-03-16T15:50:08.7248816-04:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I just want to test the Windows Live Writer.
</p>
        <p>
Some code:
</p>
        <div class="csharpcode">
          <pre class="alt">
            <span class="lnum"> 1: </span>
            <span class="kwrd">static</span>
            <span class="kwrd">void</span> ListEm&lt;T&gt;(IEnumerable&lt;T&gt;
vals) </pre>
          <pre>
            <span class="lnum"> 2: </span> {</pre>
          <pre class="alt">
            <span class="lnum"> 3: </span>
            <span class="kwrd">new</span> List&lt;T&gt;(vals).ForEach(a
=&gt; Console.Write(a.ToString() + <span class="str">","</span>));</pre>
          <pre>
            <span class="lnum"> 4: </span> Console.WriteLine();</pre>
          <pre class="alt">
            <span class="lnum"> 5: </span> }</pre>
        </div>
        <style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
        <img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=f6c6d739-fce9-4fd5-806a-3899756a2879" />
        <br />
        <hr />
Visit my site, http://www.scottseely.com/.
</div>
    </content>
  </entry>
  <entry>
    <title>Just some LINQ code</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2008/03/14/JustSomeLINQCode.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,be6fbb76-8dce-4639-8754-e1c95c31b80d.aspx</id>
    <published>2008-03-13T22:43:57.2033074-04:00</published>
    <updated>2008-03-13T22:43:57.2033074-04:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Scott Hanselman put up a <a href="http://www.hanselman.com/blog/TheWeeklySourceCode19LINQAndMoreWhatLessHow.aspx">post
showing some nifty LINQ code</a>. I've been dabbling with it a little here and there,
trying to see what it gave me. I like the new way of declaring member variables: 
</p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">int</span> _age; </span>
        </p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">public</span>
            <span style="color:blue">int</span> Age </span>
        </p>
        <p>
          <span style="font-family:Verdana"> { </span>
        </p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">get</span> { <span style="color:blue">return</span> _age;
} </span>
        </p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">set</span> { _age = <span style="color:blue">value</span>;
} </span>
        </p>
        <p>
          <span style="font-family:Verdana"> } </span>
        </p>
        <p>
        </p>
        <p>
is fairly verbose, and it doesn't add any real value for readability. So, I'm a huge
fan of this: 
</p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">public</span>
            <span style="color:blue">int</span> Age
{ <span style="color:blue">get</span>; <span style="color:blue">set</span>; } </span>
        </p>
        <p>
        </p>
        <p>
which is identical in the eyes of the compiler, but way better for doing a code review. 
</p>
        <p>
I also like the vanishing need to add properties and appropriate constructors. I like
being able to write 
</p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">new</span>
            <span style="color:#2b91af">Person</span>(){Age
= 11, Gender=<span style="color:#2b91af">Gender</span>.Male, Name=<span style="color:#a31515">"Vince"</span>} </span>
        </p>
        <p>
without needing to write something like this: 
</p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">public</span> Person(<span style="color:blue">int</span> age, <span style="color:#2b91af">Gender</span> gender, <span style="color:blue">string</span> name) </span>
        </p>
        <p>
I also like the simpler lambdas and other expressions. So, tonight I finally put together
all the different basic features and had this running: 
</p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">using</span> System; </span>
        </p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">using</span> System.Collections.Generic; </span>
        </p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">using</span> System.Linq; </span>
        </p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">using</span> System.Collections; </span>
        </p>
        <p>
        </p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">namespace</span> LinqStuff </span>
        </p>
        <p>
          <span style="font-family:Verdana">{ </span>
        </p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">enum</span>
            <span style="color:#2b91af">Gender </span>
          </span>
        </p>
        <p>
          <span style="font-family:Verdana"> { </span>
        </p>
        <p>
          <span style="font-family:Verdana"> Male, </span>
        </p>
        <p>
          <span style="font-family:Verdana"> Female </span>
        </p>
        <p>
          <span style="font-family:Verdana"> } </span>
        </p>
        <p>
        </p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">class</span>
            <span style="color:#2b91af">Person </span>
          </span>
        </p>
        <p>
          <span style="font-family:Verdana"> { </span>
        </p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">public</span>
            <span style="color:blue">int</span> Age
{ <span style="color:blue">get</span>; <span style="color:blue">set</span>; } </span>
        </p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">public</span>
            <span style="color:#2b91af">Gender</span> Gender
{ <span style="color:blue">get</span>; <span style="color:blue">set</span>; } </span>
        </p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">public</span>
            <span style="color:blue">string</span> Name
{ <span style="color:blue">get</span>; <span style="color:blue">set</span>; } </span>
        </p>
        <p>
        </p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">public</span>
            <span style="color:blue">override</span>
            <span style="color:blue">string</span> ToString() </span>
        </p>
        <p>
          <span style="font-family:Verdana"> { </span>
        </p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">return</span>
            <span style="color:blue">string</span>.Format(<span style="color:#a31515">"{0}:
{1}: {2}"</span>, Name, Age, Gender.ToString()); </span>
        </p>
        <p>
          <span style="font-family:Verdana"> } </span>
        </p>
        <p>
          <span style="font-family:Verdana"> } </span>
        </p>
        <p>
        </p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">class</span>
            <span style="color:#2b91af">Program </span>
          </span>
        </p>
        <p>
          <span style="font-family:Verdana"> { </span>
        </p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">static</span>
            <span style="color:blue">void</span> Main(<span style="color:blue">string</span>[]
args) </span>
        </p>
        <p>
          <span style="font-family:Verdana"> { </span>
        </p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">var</span> people = <span style="color:blue">new</span><span style="color:#2b91af">List</span>&lt;<span style="color:#2b91af">Person</span>&gt;(<span style="color:blue">new</span><span style="color:#2b91af">Person</span>[]
{ </span>
        </p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">new</span>
            <span style="color:#2b91af">Person</span>(){Age
= 11, Gender=<span style="color:#2b91af">Gender</span>.Male, Name=<span style="color:#a31515">"Vince"</span>}, </span>
        </p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">new</span>
            <span style="color:#2b91af">Person</span>(){Age
= 6, Gender=<span style="color:#2b91af">Gender</span>.Female, Name=<span style="color:#a31515">"Angeline"</span>}, </span>
        </p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">new</span>
            <span style="color:#2b91af">Person</span>(){Age
= 5, Gender=<span style="color:#2b91af">Gender</span>.Male, Name=<span style="color:#a31515">"Phillip"</span>} </span>
        </p>
        <p>
          <span style="font-family:Verdana"> }); </span>
        </p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">var</span> boys = <span style="color:blue">from</span> a <span style="color:blue">in</span> people <span style="color:blue">where</span> a.Gender
== <span style="color:#2b91af">Gender</span>.Male <span style="color:blue">orderby</span> a.Name <span style="color:blue">select</span> a; </span>
        </p>
        <p>
          <span style="font-family:Verdana"> people.Add(<span style="color:blue">new</span><span style="color:#2b91af">Person</span>()
{ Age = 37, Gender = <span style="color:#2b91af">Gender</span>.Female, Name = <span style="color:#a31515">"Jean"</span> }); </span>
        </p>
        <p>
        </p>
        <p>
          <span style="font-family:Verdana"> ListEm&lt;<span style="color:#2b91af">Person</span>&gt;(boys); </span>
        </p>
        <p>
        </p>
        <p>
          <span style="font-family:Verdana"> people.Add(<span style="color:blue">new</span><span style="color:#2b91af">Person</span>()
{ Age = 35, Gender = <span style="color:#2b91af">Gender</span>.Male, Name = <span style="color:#a31515">"Scott"</span> }); </span>
        </p>
        <p>
          <span style="font-family:Verdana"> ListEm&lt;<span style="color:#2b91af">Person</span>&gt;(boys); </span>
        </p>
        <p>
          <span style="font-family:Verdana"> } </span>
        </p>
        <p>
        </p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">static</span>
            <span style="color:blue">void</span> ListEm&lt;T&gt;(<span style="color:#2b91af">IEnumerable</span>&lt;T&gt;
vals) </span>
        </p>
        <p>
          <span style="font-family:Verdana"> { </span>
        </p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:blue">new</span>
            <span style="color:#2b91af">List</span>&lt;T&gt;(vals).ForEach(a
=&gt; <span style="color:#2b91af">Console</span>.Write(a.ToString() + <span style="color:#a31515">","</span>)); </span>
        </p>
        <p>
          <span style="font-family:Verdana">
            <span style="color:#2b91af">Console</span>.WriteLine(); </span>
        </p>
        <p>
          <span style="font-family:Verdana"> } </span>
        </p>
        <p>
          <span style="font-family:Verdana"> } </span>
        </p>
        <p>
          <span style="font-family:Verdana">} </span>
        </p>
        <p>
        </p>
        <p>
The coolest thing here? My wife is learning C#. She took one look at the code and
was able to instantly see that boys would automatically update as the people collection
changed. The syntax passes the 'is it instantly grokkable' test for my sample audience
of 1. I do like the fact that this syntax does focus more on what I want done instead
of having to prescribe how to do it.
</p>
        <img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=be6fbb76-8dce-4639-8754-e1c95c31b80d" />
        <br />
        <hr />
Visit my site, http://www.scottseely.com/.
</div>
    </content>
  </entry>
  <entry>
    <title>Living the Microsoft Lifestyle</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2008/02/28/LivingTheMicrosoftLifestyle.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,167eb707-205a-4e4e-8225-afffce05b9df.aspx</id>
    <published>2008-02-27T22:08:30.418-05:00</published>
    <updated>2008-02-27T22:11:21.9667579-05:00</updated>
    <category term="Windows" label="Windows" scheme="http://www.scottseely.com/Blog/CategoryView,category,Windows.aspx" />
    <category term="Microsoft" label="Microsoft" scheme="http://www.scottseely.com/Blog/CategoryView,category,Microsoft.aspx" />
    <summary>Did you know that you could run a simple, effective home with your Web surfing, telephone calling, TV watching, machine backups, book writing, code editing, music listening, game playing life, all on Microsoft products and all for a reasonable price? Over the next several posts, I want to cover how my family is using Microsoft technology to make our lives better. Today, I want to give a brief description of the home network. &lt;img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=167eb707-205a-4e4e-8225-afffce05b9df"/&gt;&lt;br/&gt;&lt;hr/&gt;Visit my site, http://www.scottseely.com/.</summary>
  </entry>
  <entry>
    <title>What's more important, eyeball count or eyeball hours?</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2008/02/15/WhatsMoreImportantEyeballCountOrEyeballHours.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,27c05ae4-e89f-4af4-b377-10498bfb91e4.aspx</id>
    <published>2008-02-15T13:33:43.808-05:00</published>
    <updated>2008-02-15T13:33:43.808975-05:00</updated>
    <category term="Miscellaneous" label="Miscellaneous" scheme="http://www.scottseely.com/Blog/CategoryView,category,Miscellaneous.aspx" />
    <summary>Just some random thoughts while reading the news over lunch. 

Nielsen Rating apparently released their numbers for websites for January 2008. According to the numbers reported at http://blog.seattlepi.nwsource.com/venture/archives/131937.asp, Google got the most eyeballs in January. What I find interesting is that the numbers for time spent on the web site implies a different ranking. I whipped out Excel for some simple analysis. The results? The top 4 companies in terms of eyeball hours are in the exact wrong order. Companies are presented in order of unique audience #s, measured in thousands (000). I added the 'Person Hours/1000 people' and 'Rank on Person Hours' columns.
&lt;img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=27c05ae4-e89f-4af4-b377-10498bfb91e4"/&gt;&lt;br/&gt;&lt;hr/&gt;Visit my site, http://www.scottseely.com/.</summary>
  </entry>
  <entry>
    <title>Fake Steve Ballmer is Priceless Today</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2008/02/05/FakeSteveBallmerIsPricelessToday.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,596e7b29-3700-4615-b53a-f40425c3ff82.aspx</id>
    <published>2008-02-05T09:11:14.326-05:00</published>
    <updated>2008-02-05T09:11:14.3266464-05:00</updated>
    <category term="Miscellaneous" label="Miscellaneous" scheme="http://www.scottseely.com/Blog/CategoryView,category,Miscellaneous.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Usually, FSB is entertaining. Today, the guy running the FSB blog is hilarious. The
post isn't much until the last line. I won't spoil this for you but, if you have 30
seconds, <a href="http://fakesteveballmer.blogspot.com/2008/02/drink-kool-aid-children.html">go
here now and read</a>. Hilarious!
</p>
        <img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=596e7b29-3700-4615-b53a-f40425c3ff82" />
        <br />
        <hr />
Visit my site, http://www.scottseely.com/.
</div>
    </content>
  </entry>
  <entry>
    <title>What Microsoft Should Do With Their $44.6 Billion</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2008/02/05/WhatMicrosoftShouldDoWithTheir446Billion.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,91509dc0-5ce4-45d1-9f0f-280a865c3368.aspx</id>
    <published>2008-02-04T22:39:48.638-05:00</published>
    <updated>2008-02-05T09:39:04.3578964-05:00</updated>
    <summary>I don't think that buying Yahoo is a good thing for Microsoft. Instead, they should continue to out innovate their competition. One thing that has been a weakness for Microsoft recruiting has always been that they can't get many great developers. Really, really good developers can work wherever they like. If they prefer to live near family over Redmond, they typically tell Microsoft 'no' when asked to join the firm. Others, like me, say yes and then eventually decide to leave because one can't develop Microsoft product outside of their core development centers (Shanghai, China; Bangalore, India; Cambridge, England; Fargo, ND, USA; Silicon Valley; and Redmond, WA, USA). They avoid the many big cities that have first rate developers. My short list for new development centers in the USA is as follows: &lt;img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=91509dc0-5ce4-45d1-9f0f-280a865c3368"/&gt;&lt;br/&gt;&lt;hr/&gt;Visit my site, http://www.scottseely.com/.</summary>
  </entry>
  <entry>
    <title>Measure Twice, Code Once</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2008/01/31/MeasureTwiceCodeOnce.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,3ab5a27a-175d-4f52-a1d0-edb4967fb3ca.aspx</id>
    <published>2008-01-30T20:15:36.611-05:00</published>
    <updated>2008-01-31T08:36:36.5196864-05:00</updated>
    <category term=".NET" label=".NET" scheme="http://www.scottseely.com/Blog/CategoryView,category,.NET.aspx" />
    <category term="Performance" label="Performance" scheme="http://www.scottseely.com/Blog/CategoryView,category,Performance.aspx" />
    <category term="SQL" label="SQL" scheme="http://www.scottseely.com/Blog/CategoryView,category,SQL.aspx" />
    <summary>I have had the pleasure of spending the last few days improving application performance. Specifically, my job is to improve the 'speed' dimension of the application. In doing this, I've been getting reacquainted with some well used tools: SQL Query Analyzer and dotTrace Profiler. (For those of you familiar with when SQL Query Analyzer was last available under that name, I'm working with a completely functional, happy, SQL Server 2000 installation.) It's been quite a few months since I last did this. Given that not many people get a chance to do performance analysis and improvement on a regular basis, I think that now might be a good time to rehash some common mistakes and the way to fix those mistakes. &lt;img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=3ab5a27a-175d-4f52-a1d0-edb4967fb3ca"/&gt;&lt;br/&gt;&lt;hr/&gt;Visit my site, http://www.scottseely.com/.</summary>
  </entry>
  <entry>
    <title>What does a technical writer do when book sales are down?</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2008/01/21/WhatDoesATechnicalWriterDoWhenBookSalesAreDown.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,0a479a0e-0c06-4337-894f-8e14abad3b0a.aspx</id>
    <published>2008-01-20T22:45:42.171-05:00</published>
    <updated>2008-01-21T07:00:37.7005389-05:00</updated>
    <category term=".NET" label=".NET" scheme="http://www.scottseely.com/Blog/CategoryView,category,.NET.aspx" />
    <summary>I have a sickness. My illness causes me to skip sleep, to skip meals, and to allocate no time to play video games. Occasionally, enablers have given me money to encourage me to indulge in this illness. I have no interest in getting ‘help’. I am an author and I write about technology topics. ...&lt;img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=0a479a0e-0c06-4337-894f-8e14abad3b0a"/&gt;&lt;br/&gt;&lt;hr/&gt;Visit my site, http://www.scottseely.com/.</summary>
  </entry>
  <entry>
    <title>SOA Projects</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2008/01/14/SOAProjects.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,2fc776d9-1083-4557-87e6-1b05a46f39f4.aspx</id>
    <published>2008-01-14T07:07:51.836-05:00</published>
    <updated>2008-01-30T20:17:41.2048014-05:00</updated>
    <category term="SOA" label="SOA" scheme="http://www.scottseely.com/Blog/CategoryView,category,SOA.aspx" />
    <summary>Tony Baer has an interesting post at http://www.onstrategies.com/blog/?p=251, 'SOA in a Recession?'. The question here is 'what will SOA investments look like during a recession?' Having been a part of the big client server moves of the mid to late 1990s, web deployments of 1997 to the present, and someone who has done training on SOA across the country for Wintellect, I have to say that SOA feels different from the previous two items. For client server, we had to start thinking about our applications differently. Bits of the application lived in different processes on different machines. Here, we had to rearchitect applications to deal with a new security model and to deal with the greater latencies involved in method and database calls. &lt;img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=2fc776d9-1083-4557-87e6-1b05a46f39f4"/&gt;&lt;br/&gt;&lt;hr/&gt;Visit my site, http://www.scottseely.com/.</summary>
  </entry>
  <entry>
    <title>New home for my blog.</title>
    <link rel="alternate" type="text/html" href="http://www.scottseely.com/Blog/2008/01/12/NewHomeForMyBlog.aspx" />
    <id>http://www.scottseely.com/Blog/PermaLink,guid,1d20ce6d-7cae-45e7-ad3f-719cf190c4fe.aspx</id>
    <published>2008-01-12T08:55:32.474-05:00</published>
    <updated>2008-01-12T08:55:32.4744689-05:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
My blog is back up and running. Expect lots of stuff on WCF, .NET, and other things
that interest me.
</p>
        <img width="0" height="0" src="http://www.scottseely.com/Blog/aggbug.ashx?id=1d20ce6d-7cae-45e7-ad3f-719cf190c4fe" />
        <br />
        <hr />
Visit my site, http://www.scottseely.com/.
</div>
    </content>
  </entry>
</feed>