<?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>Schwammy Says...</title>
  <link rel="alternate" type="text/html" href="http://www.blog.ingenuitynow.net/" />
  <link rel="self" href="http://www.blog.ingenuitynow.net/SyndicationService.asmx/GetAtom" />
  <icon>favicon.ico</icon>
  <updated>2009-09-12T23:08:35.279241-04:00</updated>
  <author>
    <name>Andrew Schwam</name>
  </author>
  <subtitle>Whatever comes to mind.</subtitle>
  <id>http://www.blog.ingenuitynow.net/</id>
  <generator uri="http://www.dasblog.net" version="1.9.6264.0">DasBlog</generator>
  <entry>
    <title>After Installing Windows 7, Disk Boot Failure, Insert System Disk and Press Enter &amp;ndash; Problem Solved!</title>
    <link rel="alternate" type="text/html" href="http://www.blog.ingenuitynow.net/After+Installing+Windows+7+Disk+Boot+Failure+Insert+System+Disk+And+Press+Enter+Ndash+Problem+Solved.aspx" />
    <id>http://www.blog.ingenuitynow.net/PermaLink,guid,2286c7cc-b661-4382-a436-fbd064ee3b77.aspx</id>
    <published>2009-09-12T23:08:35.279241-04:00</published>
    <updated>2009-09-12T23:08:35.279241-04:00</updated>
    <category term="Windows 7" label="Windows 7" scheme="http://www.blog.ingenuitynow.net/CategoryView,category,Windows%2B7.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
With a day off and nothing to do, I was excited to migrate my home PC to Windows 7. 
I’ve used the beta and RC for a while on my laptop but my home PC is a different story. 
This is my “main” computer in the house and I need it for lots of stuff. I wasn’t
worried about Windows 7 but I also decided to go 64 bit!  Plus I have a lot of
software to install and licenses to find, so that always makes me nervous.  All
(hopefully) of my data is on different drives than my OS so that makes life easy.
</p>
        <p>
Anyway, I installed Windows 7 64 bit with no issues, so I thought.  Afterwards
I even started installing additional software.  It wasn’t until I rebooted my
PC without the Windows 7 install DVD in the drive that I realized I had a problem! 
On boot up, I got the following doosy of an error:
</p>
        <blockquote>
          <p>
Disk Boot Failure, Insert System Disk and Press Enter
</p>
        </blockquote>
        <p>
That is one of those errors that really makes you pause.  It really makes you
feel like you are in big trouble.  Figuring maybe there was some piece of installation
that wasn’t yet complete, I put the Windows 7 install DVD back in and it booted just
fine!  But of course, I still couldn’t boot without the DVD.  This had me
bewildered for a while, I tried various combinations of rebooting, and then searched
the internet for answers.  All the while, this seemed strangely familiar – I’ve
had this happen to me before, but I can’t remember when and why (don’t you hate that?). 
I did a reinstallation of Windows 7 but that didn’t fix anything.  I was reading
articles about bootmgr and active drives and all kinds of stuff.  From my research,
I started to figure out that (I may explain this wrong) when you install Windows,
some information about how to boot up goes on your hard drive but it isn’t necessarily
the same hard drive (or partition) that Windows gets installed on.  I mentioned
early that I had a separate data drive.  As a matter of fact, I have 4 hard drives
in my PC.  So now I had an idea of the problem (just an idea at this point) –
my PC was probably reading hard drives in the wrong order and couldn’t figure out
how to boot up.  I wasn’t sure how to fix it.  Then the answer came to me,
it was really quite simple.  Here is how to solve the problem:
</p>
        <blockquote>
          <p>
When installing Windows 7 (or any Windows version, I’d guess), disconnect all additional
hard drives except for the C drive!  Then you know all of the right information
goes on the drive that you want to boot off of.
</p>
        </blockquote>
        <p>
I did just that.  I left just the one HDD connected in my pc and reinstalled
Windows 7.  I’m sure there are exceptions to this and reasons why you shouldn’t
do this.  I’m not an IT Pro, just a software developer who’s done installations
more than a few times.  But this worked for me!  After installation, I just
hooked up my additional drives and everything worked perfectly!  
</p>
        <p>
I hope this helps and good luck.  By the way, if you have additional questions
related to installation problems, I am probably NOT the guy to ask.  I just got
lucky on this one.
</p>
        <p>
 
</p>
        <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:32391010-80ac-4661-9a51-998e53f96cb4" class="wlWriterEditableSmartContent">Technorati
Tags: <a href="http://technorati.com/tags/Windows+7+installation" rel="tag">Windows
7 installation</a>,<a href="http://technorati.com/tags/Disk+Boot+Failure" rel="tag">Disk
Boot Failure</a></div>
        <img width="0" height="0" src="http://www.blog.ingenuitynow.net/aggbug.ashx?id=2286c7cc-b661-4382-a436-fbd064ee3b77" />
      </div>
    </content>
  </entry>
  <entry>
    <title>The Ben Chronicles - A Broken Leg!</title>
    <link rel="alternate" type="text/html" href="http://www.blog.ingenuitynow.net/The+Ben+Chronicles+A+Broken+Leg.aspx" />
    <id>http://www.blog.ingenuitynow.net/PermaLink,guid,92589190-dce4-4819-843c-087b0038b05d.aspx</id>
    <published>2009-06-13T15:01:10.0365914-04:00</published>
    <updated>2009-06-13T15:01:10.0365914-04:00</updated>
    <category term="Ben" label="Ben" scheme="http://www.blog.ingenuitynow.net/CategoryView,category,Ben.aspx" />
    <category term="Family" label="Family" scheme="http://www.blog.ingenuitynow.net/CategoryView,category,Family.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
It's been a busy few months since my last post.  Ben's building his vocabulary
and knows a bunch of words.  He's also working on his "animal sounds". 
He knows that a cow says "moo" and a bunch of others.  If you ask him what a
pig says, he makes a sort of coughing sound.  I figured out he is saying the
end of the word "oinK".  Ben was a little late to the game for walking. But he
really got the hang of it and was very proud to be walking around.  But then
he had a bit of an accident and broke his leg!  It sounds pretty crazy but the
doctor says it is really quite common.  The specific break is actually called
a "<a href="http://en.wikipedia.org/wiki/Toddler's_fracture">toddler's fracture</a>" 
To be clear, we aren't talking about one of those nasty "dangling limb" breaks. 
Just a crack.  It still sucks for a 15 month old kid.  So poor Benny has
a cast on his leg and that put an end to walking for a while.  
</p>
        <p>
It's actually quite interesting to see Ben respond to this situation.  When the
accident happened he was really unhappy and scared.  I don't think he was in
a terrible amount of pain if he kept still.  But he was really scared, he knew
something was not right in a serious way.  It took a while in the hospital and
he did not like it when they splinted and wrapped his leg (the cast would get put
on the next day at the Orthopedist's office).  However, as soon as his leg was
immobilized he was out of pain and started turning back to normal, even playing a
bit.  I expected him to play with the splint or try and take it off.  But
he just ignored it.  I think somehow he actually understood that it was helping
him.  Even when the cast got put on, he never pulled at it or anything. 
He just accepted the situation - "now I have a cast on my leg, what's next?" He was
back to crawling full time but didn't seem to care about the broken leg at all. 
He eventually started to stand on it (leaning  on furniture) and now even takes
as many as 8-10 steps on it!  He's not really supposed to but it isn't so easy
to keep him off it.  The worst part of the whole thing is 6 weeks with no baths
(not real ones, anyway), sand, swimming, dirt etc.  Anyway, in 2 weeks the cast
is coming off.  My expectation is he'll quickly adjust back, start walking and
that will be the end of that story.
</p>
        <p>
We've also joined the <a href="http://www.philadelphiazoo.org/">Philadelphia Zoo</a>. 
This is a great idea for any family and we are really liking it, with 2 trips in so
far this summer.  Benny loves it and points and yells at the animals.  We've
also seen a lot of family lately including a visit to the park with Grandma and <a href="http://www.monmouthcountyparks.com/page.asp?agency=130&amp;Id=2530">Longstreet
Farm</a> with his cousins.  
</p>
        <p>
The last new thing is that we've been taking Ben for bike rides (he hangs out in a
trailer), it's fun for the whole family.  Wow, so much to talk about, I really
need to post these things more often!  Here's a bunch of photos:
</p>
        <ul>
          <li>
Craft Time for Ben, Mommy and cousin Fiona!</li>
        </ul>
        <p>
          <a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBrokenLeg_C6E9/DSC04082.jpg">
            <img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="DSC04082" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBrokenLeg_C6E9/DSC04082_thumb.jpg" width="184" height="244" />
          </a>
          <a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBrokenLeg_C6E9/DSC04084.jpg">
            <img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="DSC04084" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBrokenLeg_C6E9/DSC04084_thumb.jpg" width="244" height="184" />
          </a>
        </p>
        <ul>
          <li>
With Grandma on Passover.  A classic "how big is Benny?" photo!</li>
        </ul>
        <p>
 <a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBrokenLeg_C6E9/DSC04093.jpg"><img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="DSC04093" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBrokenLeg_C6E9/DSC04093_thumb.jpg" width="244" height="184" /></a></p>
        <ul>
          <li>
Me and Ben at the <a href="http://www.philadelphiazoo.org/">Philadelphia Zoo</a>. 
Also... Making a mess eating ice cream, helping out in the garden, and Ben with his
car (<a href="http://www.nextautos.com/little-tikes-cozy-coupe-the-best-selling-car-in-america">the
best selling car in America!</a>) and a picnic with Mommy and Grandma.</li>
        </ul>
        <p>
 <a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBrokenLeg_C6E9/DSC04104.jpg"><img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="DSC04104" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBrokenLeg_C6E9/DSC04104_thumb.jpg" width="244" height="184" /></a> <a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBrokenLeg_C6E9/DSC04110.jpg"><img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="DSC04110" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBrokenLeg_C6E9/DSC04110_thumb.jpg" width="244" height="184" /></a><a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBrokenLeg_C6E9/DSC04120.jpg"><img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="DSC04120" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBrokenLeg_C6E9/DSC04120_thumb.jpg" width="244" height="184" /></a><a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBrokenLeg_C6E9/DSC04121.jpg"><img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="DSC04121" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBrokenLeg_C6E9/DSC04121_thumb.jpg" width="244" height="184" /></a><a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBrokenLeg_C6E9/DSC04137.jpg"><img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="DSC04137" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBrokenLeg_C6E9/DSC04137_thumb.jpg" width="244" height="184" /></a></p>
        <ul>
          <li>
Here's a shot of Ben with his cast.</li>
        </ul>
        <p>
          <a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBrokenLeg_C6E9/DSC04142.jpg">
            <img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="DSC04142" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBrokenLeg_C6E9/DSC04142_thumb.jpg" width="184" height="244" />
          </a>
        </p>
        <ul>
          <li>
Benny's catching a free ride with Uncle Dennis, and posing with cousins Kaycie, Allie,
Sami and Jake at <a href="http://www.monmouthcountyparks.com/page.asp?agency=130&amp;Id=2530">Longstreet
Farm</a>.  Also Benny is his bike trailer - and looking cool too!</li>
        </ul>
        <p>
 <a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBrokenLeg_C6E9/DSC04146.jpg"><img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="DSC04146" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBrokenLeg_C6E9/DSC04146_thumb.jpg" width="184" height="244" /></a><a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBrokenLeg_C6E9/DSC04154.jpg"><img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="DSC04154" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBrokenLeg_C6E9/DSC04154_thumb.jpg" width="244" height="184" /></a><a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBrokenLeg_C6E9/DSC04167.jpg"><img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="DSC04167" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBrokenLeg_C6E9/DSC04167_thumb.jpg" width="244" height="184" /></a></p>
        <img width="0" height="0" src="http://www.blog.ingenuitynow.net/aggbug.ashx?id=92589190-dce4-4819-843c-087b0038b05d" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Some Great Free Utility Programs</title>
    <link rel="alternate" type="text/html" href="http://www.blog.ingenuitynow.net/Some+Great+Free+Utility+Programs.aspx" />
    <id>http://www.blog.ingenuitynow.net/PermaLink,guid,7ed70900-9693-45bb-a807-0f31abae1392.aspx</id>
    <published>2009-05-04T22:35:41.3844044-04:00</published>
    <updated>2009-05-04T22:35:41.3844044-04:00</updated>
    <category term="Technology" label="Technology" scheme="http://www.blog.ingenuitynow.net/CategoryView,category,Technology.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Lot's of bloggers have written a post just like this.  It's almost a staple for
the tech-blogger.  I've avoided it until now because there are lots of posts
like it out there already.  Wow, really makes you want to read on, huh? 
Well since I am in the process of installing Windows 7 RC on my laptop, I couldn't
help but notice my list of favorite utility programs. So here they are in no particular
order.  Check em out!
</p>
        <p>
          <em>Disclaimer/Note - I am not affiliated with any of these products in any way, I
just like them.</em>  
</p>
        <p>
          <a href="http://www.slysoft.com/en/virtual-clonedrive.html">Virtual Clone Drive</a>: 
This tool is great because it allows you to take an ISO image and treat it like it
is a drive on your computer.  So if you download an install CD/DVD image, you
don't need to burn it onto a disk in order to install it.  Just use Virtual Clone
Drive and you can click on it like any other drive on your computer and browse or
run files.  Very Cool!  Plus, they've got one of the coolest logos around.
</p>
        <p>
          <a href="http://www.getpaint.net/">Paint.Net</a>:  I'm a developer, not a professional
designer.  Paint.Net is similar to programs like PhotoShop but it is free. 
It certainly doesn't have as many features as PhotoShop but most of the time, for
me, it gets the job done.  I've been using this tool a lot for years!  And
it is FREE! If you think you need photoshop, but just for casual use, check out Paint.Net.
</p>
        <p>
          <a href="http://www.linxexplorer.com/colorpicker.html">Visual Color Picker:</a> 
This is a great tool to use if you need to figure out what color something is on your
computer.  Just open a web page, application, or whatever you want to investigate
and use Visual Color Picker to "pick" the color with it's dropper tool.  Piece
of cake.  Then just copy the color name or code into the application you are
working on and you are all set.  Off all the tools on my list, this one seems
to be the "best kept secret".  You should really try this out, it is awesome.
</p>
        <p>
          <a href="http://www.terabyteunlimited.com/downloads-free-software.htm">BurnCDCC</a>: 
I just learned about this one from an old post <a href="http://www.hanselman.com/blog/FreeISODiskImageBurningUtilityThatWorksOnVista.aspx">Scott
Hanselman's blog</a>.  (If I ever need a cool tool, I search his blog!) 
Burn CDCC lets you put an ISO image on DVD as a true image, not just data.  This
is important when you download a cd/dvd and need it to actually run off of disk (such
as to install some software). 
</p>
        <p>
          <a href="http://technet.microsoft.com/en-us/sysinternals/bb897434.aspx">Zoomit</a>: 
This is a great little app for when you are doing presentations.  It allows you
to easily zoom in on a portion of your screen, and scribble on it too!  This
one is written by Mark Russinovich but available for free from Microsoft.
</p>
        <p>
Lastly, an Honorable Mention...
</p>
        <p>
Windows Snipping Tool:  Honorable mention, because it is already included on
most computers with Vista or Windows 7.  If you need to highlight and clip just
a portion of a screen shot and paste it somewhere (like into a Word doc or a blog
post) Snipping Tool makes it easy.  Like some of the other tools listed above,
there are some great products available out there for purchase.  In this case,
Snipping Tool is similar to <a href="http://www.techsmith.com/screen-capture.asp">SnagIt</a>,
which is a cooler, better product.  And actually, SnagIt isn't priced too highly. 
But Snipping Tool makes for a decent, free version.  Oddly, up until a few weeks
ago, I didn't even know I had it!  And In 1 week, two different people told me
about it.  Turns out, in an effort to enhance the performance of my computer
while using the processor/memory hog Vista, I shut down a lot of things, including
the Tablet PC Features in Vista.  For some reason, Snipping Tool is included
in that package.  So for all this time, I didn't have access to a really neat
little feature.  Oh well.  Now I've got it, and I use it all the time!
</p>
        <p>
 
</p>
        <p>
While I'm at it, I may as well list the software getting installed on my laptop too.
</p>
        <p>
          <strong>Things I can't do without:</strong>
        </p>
        <p>
          <a href="http://www.mozilla.com/en-US/firefox/ie.html">Firefox</a> (with Firebug,
WaveToolbar, and YSlow addons), <a href="http://download.live.com/writer">Live Writer</a> (for
composing blog posts like this one!), <a href="http://www.digsby.com/?utm_campaign=new_n&amp;utm_content=new&amp;utm_medium=new&amp;utm_source=new">Digsby</a> (for
Instant Messaging), <a href="http://www.twhirl.org/">Twirl</a> (twitter client), <a href="http://www.blog.ingenuitynow.net/Use+Live+Mesh+To+Sync+Your+Internet+Favorites+On+All+Machines.aspx">Live
Mesh</a></p>
        <p>
          <strong>And then:</strong>
        </p>
        <p>
Office 2007 and Outlook, SQL Server, Visual Studio 2008, <a href="http://www.jetbrains.com/resharper/">ReSharper</a> (my
favorite VS Add on!), Bit Defender (Anti Virus), Tortoise SVN (source control) and
more...
</p>
        <p>
Something tells me that after I publish this, I'll think of a bunch of stuff that
I left off the list
</p>
        <p>
 
</p>
        <div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:34bc4c2c-683c-44a0-9482-dce308a6cff4" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati
Tags: <a href="http://technorati.com/tags/Free%20Utility%20Software" rel="tag">Free
Utility Software</a>, <a href="http://technorati.com/tags/Tools" rel="tag">Tools</a></div>
        <img width="0" height="0" src="http://www.blog.ingenuitynow.net/aggbug.ashx?id=7ed70900-9693-45bb-a807-0f31abae1392" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Cascading Select Lists with MVC and jQuery</title>
    <link rel="alternate" type="text/html" href="http://www.blog.ingenuitynow.net/Cascading+Select+Lists+With+MVC+And+JQuery.aspx" />
    <id>http://www.blog.ingenuitynow.net/PermaLink,guid,264188f7-de3d-45be-b803-9496546284cb.aspx</id>
    <published>2009-04-23T20:30:44.7857448-04:00</published>
    <updated>2009-04-23T20:30:44.7857448-04:00</updated>
    <category term=".Net" label=".Net" scheme="http://www.blog.ingenuitynow.net/CategoryView,category,.Net.aspx" />
    <category term="asp.net mvc" label="asp.net mvc" scheme="http://www.blog.ingenuitynow.net/CategoryView,category,asp.net%2Bmvc.aspx" />
    <category term="jquery" label="jquery" scheme="http://www.blog.ingenuitynow.net/CategoryView,category,jquery.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
jQuery rocks.  It makes it really easy to do cool stuff client side with JavaScript,
like these cascading DropDowns (aka Select Lists).  But at the end of the day,
jQuery is JavaScript, and it can still be tricky to work with.  One of these
days, Visual Studio will treat JavaScript like a first class language and life will
be much easier.  You'll see that there isn't much JavaScript here, but it took
me several iterations to get this right.
</p>
        <p>
I'll start with the UI code and JavaScript.  If you want, you can read further
and see the Controller code and more.
</p>
        <p>
In my View, I have two DropDowns (Select Lists) and some JavaScript:
</p>
        <pre class="code">
          <span style="color: rgb(0,0,255)">&lt;</span>
          <span style="color: rgb(163,21,21)">p</span>
          <span style="color: rgb(0,0,255)">&gt; </span> Country: <span style="background: rgb(255,238,98)">&lt;%<span style="color: rgb(0,0,255)"></span>=</span> Html.DropDownList(<span style="color: rgb(163,21,21)">"Countries"</span>,
ViewData[<span style="color: rgb(163,21,21)">"Countries"</span>] <span style="color: rgb(0,0,255)">as</span><span style="color: rgb(43,145,175)">List</span>&lt;<span style="color: rgb(43,145,175)">SelectListItem</span>&gt;) <span style="background: rgb(255,238,98)">%&gt; <span style="color: rgb(0,0,255)"></span>&lt;/</span><span style="color: rgb(163,21,21)">p</span><span style="color: rgb(0,0,255)">&gt;
&lt;</span><span style="color: rgb(163,21,21)">p</span><span style="color: rgb(0,0,255)">&gt; </span> Region: <span style="background: rgb(255,238,98)">&lt;%<span style="color: rgb(0,0,255)"></span>=</span> Html.DropDownList(<span style="color: rgb(163,21,21)">"Regions"</span>, <span style="color: rgb(0,0,255)">new</span><span style="color: rgb(43,145,175)">List</span>&lt;<span style="color: rgb(43,145,175)">SelectListItem</span>&gt;()) <span style="background: rgb(255,238,98)">%&gt; <span style="color: rgb(0,0,255)"></span>&lt;/</span><span style="color: rgb(163,21,21)">p</span><span style="color: rgb(0,0,255)">&gt;
&lt;</span><span style="color: rgb(163,21,21)">script</span><span style="color: rgb(255,0,0)">src</span><span style="color: rgb(0,0,255)">="../../Scripts/jquery-1.3.2.js"&gt;&lt;/</span><span style="color: rgb(163,21,21)">script</span><span style="color: rgb(0,0,255)">&gt;
&lt;</span><span style="color: rgb(163,21,21)">script</span><span style="color: rgb(255,0,0)">type</span><span style="color: rgb(0,0,255)">="text/javascript"&gt; </span> $(function()
{ var countries = $("#Countries"); var regions = $("#Regions"); countries.change(function()
{ regions.find('option').remove(); $.getJSON('/Home/Regions', { countryId: countries.val()
}, function(data) { $(data).each(function() { $("&lt;option value=" + this.RegionId
+ "&gt;" + this.RegionName + "&lt;/option&gt;").appendTo(regions); }); }); }); }); <span style="color: rgb(0,0,255)">&lt;/</span><span style="color: rgb(163,21,21)">script</span><span style="color: rgb(0,0,255)">&gt;</span></pre>
        <p>
          <a href="http://11011.net/software/vspaste">
          </a>The Countries DropDown is pre-populated
with data passed in ViewData.  
</p>
        <p>
The second DropDown, Regions gets loaded when Countries changes.
</p>
        <p>
Here's how the JavaScript and jQuery stuff works...
</p>
        <p>
First I get the two Select Lists, using jQuery and the ID as the selector (jQuery
makes it easy!):
</p>
        <pre class="code">        var countries = $("#Countries");
        var regions = $("#Regions");
</pre>
        <a href="http://11011.net/software/vspaste">
        </a>
        <p>
Next I wire up the change event on the Countries list to an anonymous function (jQuery
makes it easy!):
</p>
        <pre class="code">        countries.change(<span style="color: rgb(0,0,255)">function</span>()
{ <span style="color: rgb(0,128,0)">// ... </span> }); </pre>
        <p>
          <a href="http://11011.net/software/vspaste">
          </a>Inside that function I do a few things. 
First, find all options in the Region Select List and remove them:
</p>
        <pre class="code">            regions.find(<span style="color: rgb(163,21,21)">'option'</span>).remove(); </pre>
        <p>
          <a href="http://11011.net/software/vspaste">
          </a>Next I need to get the data for the
second Select List. Guess what?  jQuery makes this easy too.  Using the
getJSON() method, I supply the Controller and Action, as well as the Id of the country
so I can get the correct regions.  I also declare a function to call when the
JSON result comes back:
</p>
        <pre class="code">        $.getJSON(<span style="color: rgb(163,21,21)">'/Home/Regions'</span>,
{ countryId: countries.val() }, <span style="color: rgb(0,0,255)">function</span>(data)
{ <span style="color: rgb(0,128,0)">// ... </span> }); </pre>
        <a href="http://11011.net/software/vspaste">
        </a>
        <p>
The last thing to do is load all of the results into the Select List.  This actually
was the hardest thing to do but in the end it is very little code.  I tried using
jQuery to create options and adding them to the select list.  I tried creating
a list of options and setting the html value of the Select list.  I tried a bunch
of stuff.  But this worked great... Iterate over the results with jQuery's .each
function and call a function for each iteration.  The function creates some dynamic
html and appends it to the Region list.  I must admit, I was surprised this worked. 
I'd assume that appending would put it after the select list (&lt;select id="Regions"
/&gt;) but it actually put it inside it!
</p>
        <pre class="code">        $(data).each(<span style="color: rgb(0,0,255)">function</span>()
{ $(<span style="color: rgb(163,21,21)">"&lt;option value="</span> + <span style="color: rgb(0,0,255)">this</span>.RegionId
+ <span style="color: rgb(163,21,21)">"&gt;"</span> + <span style="color: rgb(0,0,255)">this</span>.RegionName
+ <span style="color: rgb(163,21,21)">"&lt;/option&gt;"</span>).appendTo(regions);
}); </pre>
        <a href="http://11011.net/software/vspaste">
        </a>
        <p>
That's it!  It works great.  Of course there are more complex ways to do
this, with caching etc.  This is just one way to accomplish the goal.
</p>
        <p>
Here's some code from the Controller that helps make it work.  Just remember,
this is demo code.  I'm not too worried about separation of concerns and similar
details. In a production app, I'd be calling more services! 
</p>
        <p>
In the Index Action (in this sample the Select Lists are in my Index View) I load
the countries list into ViewData.  Again, this is a demo and that may not be
the best practice.
</p>
        <pre class="code">
          <span style="color: rgb(0,0,255)">public</span>
          <span style="color: rgb(43,145,175)">ActionResult</span> Index()
{ ViewData[<span style="color: rgb(163,21,21)">"Countries"</span>] = GetCountries(); <span style="color: rgb(0,0,255)">return</span> View();
}</pre>
        <a href="http://11011.net/software/vspaste">
        </a>
        <pre class="code">
          <span style="color: rgb(0,0,255)">private</span>
          <span style="color: rgb(43,145,175)">List</span>&lt;<span style="color: rgb(43,145,175)">SelectListItem</span>&gt;
GetCountries() { <span style="color: rgb(43,145,175)">List</span>&lt;<span style="color: rgb(43,145,175)">SelectListItem</span>&gt;
countries = _countryList.Select(c =&gt; <span style="color: rgb(0,0,255)">new</span><span style="color: rgb(43,145,175)">SelectListItem</span> {Text
= c.CountryName, Value = c.CountryId.ToString()}).ToList(); countries.Insert(0, <span style="color: rgb(0,0,255)">new</span><span style="color: rgb(43,145,175)">SelectListItem</span>{
Text=<span style="color: rgb(163,21,21)">""</span>, Value = <span style="color: rgb(163,21,21)">"0"</span>}); <span style="color: rgb(0,0,255)">return</span> countries;
} </pre>
        <a href="http://11011.net/software/vspaste">
        </a>
        <p>
Then I have a Regions Action that returns the JSON result with the values to add to
my Regions Select List:
</p>
        <pre class="code">    [<span style="color: rgb(43,145,175)">AcceptVerbs</span>(<span style="color: rgb(43,145,175)">HttpVerbs</span>.Get)] <span style="color: rgb(0,0,255)">public</span><span style="color: rgb(43,145,175)">ActionResult</span> Regions(<span style="color: rgb(0,0,255)">int</span> countryId)
{ <span style="color: rgb(0,0,255)">return</span> Json(_regionList.Where(r =&gt; r.CountryId
== countryId).Select(r =&gt; <span style="color: rgb(0,0,255)">new </span> { r.RegionName,
r.RegionId })); } </pre>
        <p>
          <a href="http://11011.net/software/vspaste">
          </a> 
</p>
        <p>
That covers most of it.  Happy coding.
</p>
        <div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:943aaacc-3d44-4b8d-b203-91e1979fbcb2" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati
Tags: <a href="http://technorati.com/tags/jquery" rel="tag">jquery</a>, <a href="http://technorati.com/tags/asp.net%20mvc" rel="tag">asp.net
mvc</a>, <a href="http://technorati.com/tags/select%20list" rel="tag">select list</a></div>
        <img width="0" height="0" src="http://www.blog.ingenuitynow.net/aggbug.ashx?id=264188f7-de3d-45be-b803-9496546284cb" />
      </div>
    </content>
  </entry>
  <entry>
    <title>MVC Controller Action Argument Binding Tip</title>
    <link rel="alternate" type="text/html" href="http://www.blog.ingenuitynow.net/MVC+Controller+Action+Argument+Binding+Tip.aspx" />
    <id>http://www.blog.ingenuitynow.net/PermaLink,guid,86074024-2791-4034-941f-8672d191f782.aspx</id>
    <published>2009-04-22T22:01:18.152-04:00</published>
    <updated>2009-04-23T20:31:47.6755648-04:00</updated>
    <category term=".Net" label=".Net" scheme="http://www.blog.ingenuitynow.net/CategoryView,category,.Net.aspx" />
    <category term="asp.net mvc" label="asp.net mvc" scheme="http://www.blog.ingenuitynow.net/CategoryView,category,asp.net%2Bmvc.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
When using strongly typed views, don't name the controller action arguments with the
same name as another form value!
</p>
        <p>
I've been working with ASP.NET MVC for a couple of months now.  It is really
pretty awesome.  It's worked so well, I haven't had much to blog about! 
The other day I ran into an issue so I'm sharing the solution.   MVC will
"automagically" bind the parameters of a controller action based on the values in
the form.  And if your View is strongly typed and your controller action has
a parameter of that same type, it will bind it too.  But in my case, the parameter
was null.  MVC wasn't loading it. And there was no exception to help me out.
</p>
        <p>
Here's a simple demo, I'm not showing every line of code...
</p>
        <p>
 
</p>
        <p>
Typical for an MVC application, I have a view that is strongly typed:
</p>
        <pre class="code">
          <span style="BACKGROUND: rgb(255,238,98)">&lt;%<span style="COLOR: rgb(0,0,255)"></span>@</span>
          <span style="COLOR: rgb(163,21,21)">Page</span>
          <span style="COLOR: rgb(255,0,0)">Title</span>
          <span style="COLOR: rgb(0,0,255)">=""</span>
          <span style="COLOR: rgb(255,0,0)">Language</span>
          <span style="COLOR: rgb(0,0,255)">="C#"</span>
          <span style="COLOR: rgb(255,0,0)">MasterPageFile</span>
          <span style="COLOR: rgb(0,0,255)">="~/Views/Shared/Site.Master"</span>
          <br />
          <span style="COLOR: rgb(255,0,0)">Inherits</span>
          <span style="COLOR: rgb(0,0,255)">="System.Web.Mvc.ViewPage&lt;OrganizationRole&gt;"</span>
          <span style="BACKGROUND: rgb(255,238,98)">%&gt; </span>
        </pre>
        <a href="http://11011.net/software/vspaste">
        </a>
        <p>
 
</p>
        <p>
The View has a simple form which includes two text boxes:
</p>
        <pre class="code">
          <span style="COLOR: rgb(0,0,255)">&lt;</span>
          <span style="COLOR: rgb(163,21,21)">p</span>
          <span style="COLOR: rgb(0,0,255)">&gt; </span>
          <span style="COLOR: rgb(0,0,255)">&lt;</span>
          <span style="COLOR: rgb(163,21,21)">label</span>
          <span style="COLOR: rgb(255,0,0)">for</span>
          <span style="COLOR: rgb(0,0,255)">="OrganizationName"&gt;</span>OrganizationName:<span style="COLOR: rgb(0,0,255)">&lt;/</span><span style="COLOR: rgb(163,21,21)">label</span><span style="COLOR: rgb(0,0,255)">&gt; </span><span style="BACKGROUND: rgb(255,238,98)">&lt;%<span style="COLOR: rgb(0,0,255)"></span>=</span> Html.TextBox(<span style="COLOR: rgb(163,21,21)">"OrganizationName"</span>) <span style="BACKGROUND: rgb(255,238,98)">%&gt; </span><span style="BACKGROUND: rgb(255,238,98)">&lt;%<span style="COLOR: rgb(0,0,255)"></span>=</span> Html.ValidationMessage(<span style="COLOR: rgb(163,21,21)">"OrganizationName"</span>, <span style="COLOR: rgb(163,21,21)">"*"</span>) <span style="BACKGROUND: rgb(255,238,98)">%&gt; <span style="COLOR: rgb(0,0,255)"></span>&lt;/</span><span style="COLOR: rgb(163,21,21)">p</span><span style="COLOR: rgb(0,0,255)">&gt;
&lt;</span><span style="COLOR: rgb(163,21,21)">p</span><span style="COLOR: rgb(0,0,255)">&gt; </span><span style="COLOR: rgb(0,0,255)">&lt;</span><span style="COLOR: rgb(163,21,21)">label</span><span style="COLOR: rgb(255,0,0)">for</span><span style="COLOR: rgb(0,0,255)">="Role"&gt;</span>Role:<span style="COLOR: rgb(0,0,255)">&lt;/</span><span style="COLOR: rgb(163,21,21)">label</span><span style="COLOR: rgb(0,0,255)">&gt; </span><span style="BACKGROUND: rgb(255,238,98)">&lt;%<span style="COLOR: rgb(0,0,255)"></span>=</span> Html.TextBox(<span style="COLOR: rgb(163,21,21)">"Role"</span>) <span style="BACKGROUND: rgb(255,238,98)">%&gt; </span><span style="BACKGROUND: rgb(255,238,98)">&lt;%<span style="COLOR: rgb(0,0,255)"></span>=</span> Html.ValidationMessage(<span style="COLOR: rgb(163,21,21)">"Role"</span>, <span style="COLOR: rgb(163,21,21)">"*"</span>) <span style="BACKGROUND: rgb(255,238,98)">%&gt; <span style="COLOR: rgb(0,0,255)"></span>&lt;/</span><span style="COLOR: rgb(163,21,21)">p</span><span style="COLOR: rgb(0,0,255)">&gt; </span></pre>
        <p>
          <a href="http://11011.net/software/vspaste">
          </a> 
</p>
        <p>
A button on the form posts back to the controller, calling the Create Action. 
Here is Action Code:
</p>
        <pre class="code">[<span style="COLOR: rgb(43,145,175)">AcceptVerbs</span>(<span style="COLOR: rgb(43,145,175)">HttpVerbs</span>.Post)] <span style="COLOR: rgb(0,0,255)">public</span><span style="COLOR: rgb(43,145,175)">ActionResult</span> Create(<span style="COLOR: rgb(43,145,175)">OrganizationRole</span> role)
{ <span style="COLOR: rgb(0,128,0)">// Do Something Here... </span><span style="COLOR: rgb(0,0,255)">return</span> View();
} </pre>
        <a href="http://11011.net/software/vspaste">
        </a>
        <p>
In the screenshot below, you can see that when I debug the app, the role parameter
has not been loaded.
</p>
        <p>
          <a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/MVCArgumentBindingTip_128E2/image_2.png">
            <img style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height="94" alt="image" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/MVCArgumentBindingTip_128E2/image_thumb.png" width="363" border="0" />
          </a>
        </p>
        <p>
The fix was simple but it took a while to figure it out!  All I had to do was
re-name the parameter from "role" to "organizationRole":
</p>
        <p>
[<span style="COLOR: rgb(43,145,175)">AcceptVerbs</span>(<span style="COLOR: rgb(43,145,175)">HttpVerbs</span>.Post)]<br /><span style="COLOR: rgb(0,0,255)">public</span><span style="COLOR: rgb(43,145,175)">ActionResult</span> Create(<span style="COLOR: rgb(43,145,175)">OrganizationRole</span> organizationRole)<br />
{<br />
    <span style="COLOR: rgb(0,128,0)">// Do Something Here...<br /></span>    <span style="COLOR: rgb(0,0,255)">return</span> View();<br />
}<br /></p>
        <p>
You see, I was being lazy and abbreviated the argument's name.  That is ok, you
can name the parameter almost anything you want.  But I gave the parameter the
same name as one of the other form variables!  Notice above that my form has
a text box named "Role"!  MVC tried to load the values of my parameters - it
takes each of the posted values from the form ("OrganizationName" and "Role") and
tries to match them up with arguments with the same names (it is not case sensitive)
if they exist.  It also tries to load the entire form value (strongly typed as
the class OrganizationRole) to the argument of type OrganizationRole, if one exists. 
But an argument of type OrganizationRole with the name "Role" screws the who thing
up!  The only problem is that it doesn't throw any exceptions.  Anyway,
I changed the name and presto, it works.
</p>
        <img width="0" height="0" src="http://www.blog.ingenuitynow.net/aggbug.ashx?id=86074024-2791-4034-941f-8672d191f782" />
      </div>
    </content>
  </entry>
  <entry>
    <title>The Ben Chronicles - Mommy, Mommy, Mommy!</title>
    <link rel="alternate" type="text/html" href="http://www.blog.ingenuitynow.net/The+Ben+Chronicles+Mommy+Mommy+Mommy.aspx" />
    <id>http://www.blog.ingenuitynow.net/PermaLink,guid,b71683b8-b682-4092-8459-0717e10650e6.aspx</id>
    <published>2009-04-04T10:48:13.7103446-04:00</published>
    <updated>2009-04-04T10:48:13.7103446-04:00</updated>
    <category term="Ben" label="Ben" scheme="http://www.blog.ingenuitynow.net/CategoryView,category,Ben.aspx" />
    <category term="Family" label="Family" scheme="http://www.blog.ingenuitynow.net/CategoryView,category,Family.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
It's hard to keep up with posting these photos of Ben.  Time flies.  Lots
more news since my last blog post.  First of all, Ben had his 1st birthday! 
His grandma made him an awesome cake (and cupcakes) and they were a big hit.  
</p>
        <p>
Ben is really trying to gain some weight (he's a on the small side).  The Dr.
put him on a "butter" diet, telling us to put butter on everything he eats. 
Somehow he got the message.  All of a sudden he started eating everything in
sight.  He gained 1 lb in 6 weeks.  Then he stopped eating again and got
really finicky and cranky.  After a few days Rebecca took him to the Dr. to find
out that he had an ear infection!  After a day or 2 of antibiotics, he was back
to eating again.  He's a pretty funny eater.  One day he'll be eating Brussels
sprout (yes, spelled with an "s" at the end, I looked it up), broccoli, meatloaf,
spaghetti and meat sauce, salmon, and more.  It's like he loves all different
flavor foods.  And the next day, he's bored of it all and won't eat anything!
</p>
        <p>
Right around the time of the ear infection Benny developed another ailment, much to
our dismay.  He's become a bit of a "momma's boy"!  All he wants is for
his mommy to hold him.  It's pretty funny too because if it's just me and him
hanging out, it's all good. He laughs and plays and is perfectly content.  But
when Rebecca comes in the room, he starts to get cranky and he just wants her. 
I'm sure this is pretty typical behavior for a kid his age.  For me, it's a little
insulting - "what, I'm not good enough for you?".  But for Rebecca it is just
plain annoying because she can't get anything done when he is around.  This too
shall pass.
</p>
        <p>
We've had a few other big achievements lately.  Ben started taking some steps
on his own.  Still just 2 or 3 at a time, but people say once it starts, he'll
be walking soon enough.  He also has increased his vast vocabulary to 3 words. 
In addition to "momma" and "dadda", he now says "dog".  Well, more like "daw
daw" but we are impressed.  It's funny too because we don't have a dog. 
But he gets excited when he sees them on TV or out walking around, or at friends'
houses.
</p>
        <p>
OK, as usual, here are some recent photos...
</p>
        <p>
No, that first one isn't Ben, but a classic just the same.  Big Steve eating
Chicken Holiday!  Below are pictures of ben playing, at the park with Grandma,
and showing off his new "Vail" shirt (he wants to go skiing there next year!). 
Also, three classic "messy face" pictures.  The first is Ben eating his 1st Birthday
Cake (his first sugar fix ever).  I think he liked it because you can see him
eating his friend Ricky's cake too (with the red icing).  Think he enjoyed it? 
And there's another with him covered in Oreo cookie!  Don't worry, he eats a
lot of veggies and fruit too!
</p>
        <p>
          <a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesIWantMyMommy_8B39/DSC03995.jpg"> <img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="184" alt="DSC03995" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesIWantMyMommy_8B39/DSC03995_thumb.jpg" width="244" border="0" /><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="184" alt="DSC04006" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesIWantMyMommy_8B39/DSC04006_thumb.jpg" width="244" border="0" /></a>
          <a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesIWantMyMommy_8B39/DSC04023.jpg">
            <img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="184" alt="DSC04023" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesIWantMyMommy_8B39/DSC04023_thumb.jpg" width="244" border="0" />
          </a>
          <a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesIWantMyMommy_8B39/DSC04036.jpg">
            <img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="244" alt="DSC04036" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesIWantMyMommy_8B39/DSC04036_thumb.jpg" width="184" border="0" />
          </a>
          <a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesIWantMyMommy_8B39/DSC04037.jpg">
            <img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="184" alt="DSC04037" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesIWantMyMommy_8B39/DSC04037_thumb.jpg" width="244" border="0" />
          </a>
          <a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesIWantMyMommy_8B39/DSC04045.jpg">
            <img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="184" alt="DSC04045" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesIWantMyMommy_8B39/DSC04045_thumb.jpg" width="244" border="0" />
          </a>
          <a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesIWantMyMommy_8B39/DSC04062.jpg">
            <img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="184" alt="DSC04062" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesIWantMyMommy_8B39/DSC04062_thumb.jpg" width="244" border="0" />
          </a>
          <a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesIWantMyMommy_8B39/DSC04072.jpg">
            <img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="244" alt="DSC04072" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesIWantMyMommy_8B39/DSC04072_thumb.jpg" width="184" border="0" />
          </a>
        </p>
        <img width="0" height="0" src="http://www.blog.ingenuitynow.net/aggbug.ashx?id=b71683b8-b682-4092-8459-0717e10650e6" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Another Gig, Another Direction</title>
    <link rel="alternate" type="text/html" href="http://www.blog.ingenuitynow.net/Another+Gig+Another+Direction.aspx" />
    <id>http://www.blog.ingenuitynow.net/PermaLink,guid,ba8a2bf8-31ca-4818-a9af-96e715ec6d10.aspx</id>
    <published>2009-04-02T21:45:44.3822896-04:00</published>
    <updated>2009-04-02T21:45:44.3822896-04:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
My blog has been pretty quiet lately.  Things got a little hectic in mid February.  
</p>
        <p>
          <strong>More new technology:</strong>
        </p>
        <p>
After struggling to get the hang of <a href="http://silverlight.net">Silverlight</a> for
a while, I was really starting to get comfortable with it.  Development on my
project was moving along, the client was liking the results, and I was learning a
lot!  Just when things were going well, my client informed me that he'd be dropping
the project (hopefully temporarily) due to financial issues.  I was disappointed
for many reasons.  I felt bad for the client (this economy is hurting a lot of
people) and I felt bad for me, I had to find another client without much notice.
</p>
        <p>
Lucky for me, I was able to get started on a new project pretty quickly.  I was
very excited to dive into <a href="http://www.asp.net/mvc/">ASP.Net MVC</a> too! 
But from a blogging perspective, it meant another shift in direction.  I had
been trying to focus on one thing and blog about it a lot.  I like the fact that
my blog isn't tied to a particular technology, but it is fun to get good at something
and share information.  Oh well.  The fact is, I have been very lucky lately
regarding new technology.  I was fortunate to start using VS2008/.Net 3.5 during
the Beta at <a href="http://www.orbius.com/">Orbius</a> (lots of LINQ to SQL), then
Silverlight 2 for my next client (and lots more LINQ to SQL) and now I'm doing <a href="http://www.asp.net/mvc/">ASP.Net
MVC</a> with <a href="http://jquery.com/">jQuery</a>, <a href="http://en.wikipedia.org/wiki/Dependency_injection">Dependency
Injection</a>, and other related stuff (and still lots more LINQ to SQL!) in my current
situation.
</p>
        <p>
          <strong>What to blog about?</strong>
        </p>
        <p>
So now, no more Silverlight posts (unless I find some time to play around with Silverlight
3 which I am very excited about).  But I hope to continue blogging about what
I am learning now.  There is one problem.  I typically try to blog about
something that I struggled with and then resolved, hoping to spare others the frustration. 
That was easy with Silverlight 2 which I thought was sort of painful to use (but I
enjoyed it and liked the result).  But MVC doesn't seem to be like that. 
The switch to ASP.Net MVC was pretty easy for me.  And it seems to work pretty
well.  The basics are pretty simple, in many ways less confusing that ASP.Net
web forms, and I haven't had too many issues yet.  Could it be that MVC really
is the right way to go?  So far, it seems that way.  As I dig in more, I'm
sure I'll find plenty of blog worthy material.  As a matter of fact, I already
have one, to be posted soon.
</p>
        <p>
          <strong>Business Update:</strong>
        </p>
        <p>
I've been pretty busy and haven't been focusing on the "business side" of business. 
A lot of independent consultants aren't sure how to set up a business and I promised
to write about it.  Here's a quick update... I had debated back and forth about
incorporating by forming an LLC or S-Corp.  I spoke with a lot of people including
some accountants.  In the end, it seemed that there was no need to rush. 
I had a client that didn't care.  So I started to operate as a sole proprietor. 
However, as a sole proprietor you can operate in several ways.  You can just
mix up all of your personal and business money and confuse everything.  Or you
can be a sole proprietor and act like a business.  That is what I am doing. 
I have separate bank accounts and check books, I got a business credit card, and I
record all of my income and expenses in QuickBooks.  Also, being a sole proprietor,
I learned that you can also "do business as" <em>some other name</em>. It's called
DBA (not like a database).  This is a good idea for someone like me, since I
do already have the my web site, blog and email on the domain IngenuityNow.net. 
You don't need to actually be incorporated to use a business name!
</p>
        <p>
I also looked into insurance and learned about liability and E and O (Errors and Omissions)
insurance.  You need liability so you can't get sued if you knock over a server
rack at a client, or a client falls walking into your house (nope, personal insurance
doesn't cover that).  E and O is to cover you if you screw up an application,
trash a database, or find some other way to ruin a client's business.  From talking
to a lot of people, it seems that E and O isn't so popular and most people only get
it if the client insists.  It is also pretty expensive.  Liability insurance
is much cheaper and seems like a good idea.
</p>
        <p>
I also set up a <a href="http://www.ingenuitynow.net/">web site</a> and got business
cards.  A little marketing goes a long way towards professionalism!  The
web site is pretty simple so far but it will grow in time.  Please let me know
what you think. 
</p>
        <p>
So what is next on the business front?  I've got to keep the networking up. 
There are lots of clients out there, we just need to find them!  I also plan
to get the incorporation thing going.  There are some good benefits to it (for
taxes and liability) and I have spoken with a few clients that won't work with you
without being incorporated (although I know many consultants who never incorporate). 
My only pain point so far on all of this is the accounting stuff.  QuickBooks
helps, but it isn't that easy to use if you don't grok all of the accounting concepts,
so I have a lot to learn
</p>
        <img width="0" height="0" src="http://www.blog.ingenuitynow.net/aggbug.ashx?id=ba8a2bf8-31ca-4818-a9af-96e715ec6d10" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Silverlight Firestarter Event Saturday Feb 21</title>
    <link rel="alternate" type="text/html" href="http://www.blog.ingenuitynow.net/Silverlight+Firestarter+Event+Saturday+Feb+21.aspx" />
    <id>http://www.blog.ingenuitynow.net/PermaLink,guid,f4af3e95-237b-4d4e-acc1-194da91ba758.aspx</id>
    <published>2009-02-19T09:42:51.4362904-05:00</published>
    <updated>2009-02-19T09:42:51.4362904-05:00</updated>
    <category term="Microsoft" label="Microsoft" scheme="http://www.blog.ingenuitynow.net/CategoryView,category,Microsoft.aspx" />
    <category term="Silverlight" label="Silverlight" scheme="http://www.blog.ingenuitynow.net/CategoryView,category,Silverlight.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
If you are looking to learn about <a href="http://silverlight.net">Silverlight</a> development,
here is your chance.  Our local Microsoft Developer Evangelists are running a <a href="https://msevents.microsoft.com/cui/eventdetail.aspx?culture=en-us&amp;eventid=1032402421&amp;flag=1&amp;lc=1033">free
full day event</a> this Saturday featuring a good variety of information.  
</p>
        <p>
To learn more or register, click <a href="https://msevents.microsoft.com/cui/eventdetail.aspx?culture=en-us&amp;eventid=1032402421&amp;flag=1&amp;lc=1033">here</a>.
</p>
        <p>
If you are a beginner or haven't gotten started yet, this is a great opportunity. 
I'm not a beginner and my weekends are pretty busy these days.  So initially,
I was going to skip this event.  But from my conversation with <a href="http://smallandmighty.net/">Dani
Diaz</a> last night, it sounds like there will be a decent range of information here,
so I think I will attend too.  
</p>
        <p>
I don't know the full agenda but some of the speakers include Dani, <a href="http://blogs.msdn.com/lindsay/default.aspx">Lindsay
Rutter</a>, Bill Wolff and <a href="http://community.irritatedvowel.com/blogs/pete_browns_blog/default.aspx">Pete
Brown</a>.  That's a good line up but to be perfectly honest, Pete Brown is the
big draw for me.  I've been reading his blog since I started doing Silverlight
development, this guy really knows his stuff.  One thing I've learned over time
is that if a good speaker if giving a talk, even on a topic that I think I know fairly
well, it is worth attending.  You never know what kind of tidbit you may pick
up from them!
</p>
        <p>
Hope to see you there.
</p>
        <img width="0" height="0" src="http://www.blog.ingenuitynow.net/aggbug.ashx?id=f4af3e95-237b-4d4e-acc1-194da91ba758" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Can't we just delete all of the Silverlight Beta &amp;quot;noise&amp;quot; from the Internet?</title>
    <link rel="alternate" type="text/html" href="http://www.blog.ingenuitynow.net/Cant+We+Just+Delete+All+Of+The+Silverlight+Beta+Quotnoisequot+From+The+Internet.aspx" />
    <id>http://www.blog.ingenuitynow.net/PermaLink,guid,fe18ba26-b93d-4d5a-89f0-78d9131970b8.aspx</id>
    <published>2009-02-13T08:45:17.9970734-05:00</published>
    <updated>2009-02-13T08:45:17.9970734-05:00</updated>
    <category term=".Net" label=".Net" scheme="http://www.blog.ingenuitynow.net/CategoryView,category,.Net.aspx" />
    <category term="Silverlight" label="Silverlight" scheme="http://www.blog.ingenuitynow.net/CategoryView,category,Silverlight.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
One thing I really hate about doing Silverlight development is trying to search for
good information on the Internet.  When I look for a solution to a problem I
am having, I always run into a lot of "noise" in the form of outdated posts that aren't
relevant anymore.  There are a ton of questions, answers, and sample solutions
on the web from developers working with the Silverlight 2 Beta release.  I know
this was all helpful information to share at the time, but a lot of it is useless
now.  The problem is, sometimes you have to read the post a bit in order to figure
out that the developer was on the Beta.  I've gotten to the point where the first
thing I do is look at the date on the post before I read on.  What makes this
even more complicated, is sometimes the information in these posts is still relevant
and very helpful!  
</p>
        <p>
Oh well, at least we are lucky to be developers in an age where so much information
is shared among members of the community.  Can you imaging having to read manuals
for all your information ;) ?  I don't mean to discourage anyone from posting. 
Don't take me too seriously, I'm just ranting.
</p>
        <img width="0" height="0" src="http://www.blog.ingenuitynow.net/aggbug.ashx?id=fe18ba26-b93d-4d5a-89f0-78d9131970b8" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Silverlight - Error: Layout Cycle Detected and a ListBox that supports &amp;quot;Edit Mode&amp;quot;</title>
    <link rel="alternate" type="text/html" href="http://www.blog.ingenuitynow.net/Silverlight+Error+Layout+Cycle+Detected+And+A+ListBox+That+Supports+QuotEdit+Modequot.aspx" />
    <id>http://www.blog.ingenuitynow.net/PermaLink,guid,c033382f-216f-4eb0-923a-9c33d590c6cb.aspx</id>
    <published>2009-02-10T22:01:36.7804955-05:00</published>
    <updated>2009-02-10T22:01:36.7804955-05:00</updated>
    <category term=".Net" label=".Net" scheme="http://www.blog.ingenuitynow.net/CategoryView,category,.Net.aspx" />
    <category term="Silverlight" label="Silverlight" scheme="http://www.blog.ingenuitynow.net/CategoryView,category,Silverlight.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
The other day I was working on a Silverlight app when I got this error:  Layout
Cycle Detected.  The good news is that Silverlight actually gave me an error
message that meant something.  That is unusual for Silverlight.  Of course
the message didn't tell me what caused it, or how to fix it!  Luckily, there
is this thing called the Internet ;-).  I found some information on <a href="http://blog.davidyack.com/journal/2009/1/12/silverlight-layout-cycle-detected.html">David
Yack's blog</a> (I don't know him) that helped.
</p>
        <p>
It turns out that Silverlight doesn't like it if you put too many TextBoxes in a ListBox
(or possibly any other "repeater" kind of list control).  I'm not sure why it
only applies to TextBoxes and not other controls, but here is my understanding of
the problem...  Each time you add a TextBox to a ListBox it needs to figure out
how much space to give the control, as well as all the other controls around it. 
It figures that out, and then sizes all of the controls that don't have specific sizes
set, and then lays everything out for you.  But I guess in a list, it needs to
do this over and over and over again and Silverlight thinks it has gone into an endless
loop, so at a certain point it cuts it off and says "Layout Cycle Detected". 
Each time a control gets resized, the controls around it get resized, and that goes
on and on until you get to the top level control.  I guess I can understand that
it could be a problem, but I think the developers at Microsoft have got to come up
with a better way to resolve this.  If I want to put a lot of TextBoxes in a
list, I should be allowed to do so!  Also, the limit is supposedly 250 TextBoxes,
but I am pretty sure I had less than that.
</p>
        <p>
There are a few ways to get around the problem, as far as I know.  In my case
there are a bunch of controls that made up the DataTemplate for my ListBox. 
Since they are in a StackPanel, I put a fixed size on the StackPanel.  That prevents
the "bubble up" of resizing going all the way to the page level.  That seemed
to fix my problem most of the time, but not all of the time.  I could probably
have kept playing with the layout and putting fixed sizes on more panels.  Instead,
I gave in.  
</p>
        <p>
I didn't want to fight with Silverlight any more so I changed all of my TextBoxes
to TextBlocks.  Then I set the the ListBox items up so that you can switch them
into "Edit Mode".  The problem here is that the ListBox doesn't have built in
support for that.  So here is how I did it.  By the way, this is not dependent
upon the "SelectedItem" in the ListBox, so you can have multiple items in EditMode
at the same time.
</p>
        <p>
The purpose of my list is to display a list of Services to the user.  My ListBox
is bound to a collection: <span style="color: rgb(0,0,255)">ObservableCollection&lt;ServiceListItem&gt;.  </span>ServiceListItem
is just a class that represents my data.  Among it's other properties, the ServiceListItem
has a property for IsInEditMode.  It is nothing fancy:
</p>
        <pre class="code">
          <span style="color: rgb(0,0,255)">public</span>
          <span style="color: rgb(0,0,255)">bool</span> IsInEditMode
{ <span style="color: rgb(0,0,255)">get</span> { <span style="color: rgb(0,0,255)">return</span> _isInEditMode;
} <span style="color: rgb(0,0,255)">set </span> { <span style="color: rgb(0,0,255)">if</span> (_isInEditMode
== <span style="color: rgb(0,0,255)">value</span>) <span style="color: rgb(0,0,255)">return</span>;
_isInEditMode = <span style="color: rgb(0,0,255)">value</span>; NotifyPropertyChanged(<span style="color: rgb(163,21,21)">"IsInEditMode"</span>);
} } <span style="color: rgb(0,0,255)">private</span><span style="color: rgb(0,0,255)">bool</span> _isInEditMode; </pre>
        <a href="http://11011.net/software/vspaste">
        </a>
        <p>
In my DataTemplate for the ListBox I have two StackPanels, one for ReadOnly mode and
one for Edit Mode.  The ReadOnly template has a button to switch to EditMode. 
The EditMode template has two buttons.  The Cancel button reverts the data to
it's original state and switched to ReadOnly mode.  The Save button saves the
data and switched to ReadOnly Mode.  Here is the one that puts the template into
Edit Mode (nothing fancy here):
</p>
        <blockquote>
          <pre class="code">
            <span style="color: rgb(0,0,255)">&lt;</span>
            <span style="color: rgb(163,21,21)">Button</span>
            <span style="color: rgb(255,0,0)"> x</span>
            <span style="color: rgb(0,0,255)">:</span>
            <span style="color: rgb(255,0,0)">Name</span>
            <span style="color: rgb(0,0,255)">="EditService"</span>
            <span style="color: rgb(255,0,0)"> Click</span>
            <span style="color: rgb(0,0,255)">="EditService_Click"&gt; </span>
            <span style="color: rgb(163,21,21)">
            </span>
            <span style="color: rgb(0,0,255)">&lt;</span>
            <span style="color: rgb(163,21,21)">Button.Template</span>
            <span style="color: rgb(0,0,255)">&gt; </span>
            <span style="color: rgb(163,21,21)">
            </span>
            <span style="color: rgb(0,0,255)">&lt;</span>
            <span style="color: rgb(163,21,21)">ControlTemplate</span>
            <span style="color: rgb(0,0,255)">&gt; </span>
            <span style="color: rgb(163,21,21)">
            </span>
            <span style="color: rgb(0,0,255)">&lt;</span>
            <span style="color: rgb(163,21,21)">Image</span>
            <span style="color: rgb(255,0,0)"> Source</span>
            <span style="color: rgb(0,0,255)">="../images/pencil.png"</span>
            <span style="color: rgb(255,0,0)"> Height</span>
            <span style="color: rgb(0,0,255)">="10"</span>
            <span style="color: rgb(255,0,0)"> Width</span>
            <span style="color: rgb(0,0,255)">="10"</span>
            <span style="color: rgb(255,0,0)"> Cursor</span>
            <span style="color: rgb(0,0,255)">="Hand"</span>
            <span style="color: rgb(255,0,0)"> VerticalAlignment</span>
            <span style="color: rgb(0,0,255)">="Center"</span>
            <span style="color: rgb(255,0,0)"> HorizontalAlignment</span>
            <span style="color: rgb(0,0,255)">="Center"/&gt; </span>
            <span style="color: rgb(163,21,21)">
            </span>
            <span style="color: rgb(0,0,255)">&lt;/</span>
            <span style="color: rgb(163,21,21)">ControlTemplate</span>
            <span style="color: rgb(0,0,255)">&gt; </span>
            <span style="color: rgb(163,21,21)">
            </span>
            <span style="color: rgb(0,0,255)">&lt;/</span>
            <span style="color: rgb(163,21,21)">Button.Template</span>
            <span style="color: rgb(0,0,255)">&gt;
&lt;/</span>
            <span style="color: rgb(163,21,21)">Button</span>
            <span style="color: rgb(0,0,255)">&gt;</span>
          </pre>
        </blockquote>
        <a href="http://11011.net/software/vspaste">
        </a>
        <p>
The code for the button click is pretty simple too:
</p>
        <pre class="code">
          <span style="color: rgb(0,0,255)">private</span>
          <span style="color: rgb(0,0,255)">void</span> EditService_Click(<span style="color: rgb(0,0,255)">object</span> sender, <span style="color: rgb(43,145,175)">RoutedEventArgs</span> e)
{ <span style="color: rgb(43,145,175)">ServiceListItem</span> item = (<span style="color: rgb(43,145,175)">ServiceListItem</span>)((<span style="color: rgb(43,145,175)">Button</span>)sender).DataContext;
item.IsInEditMode = <span style="color: rgb(0,0,255)">true</span>; } </pre>
        <p>
Actually, the only cool part of this is how the control figures out which StackPanel
to display.  Each one has it's Visibility Property bound to the IsInEditMode
property!
</p>
        <p>
          <span style="color: rgb(163,21,21)">                           </span>
          <span style="color: rgb(0,0,255)">&lt;</span>
          <span style="color: rgb(163,21,21)">StackPanel</span>
          <span style="color: rgb(255,0,0)"> x</span>
          <span style="color: rgb(0,0,255)">:</span>
          <span style="color: rgb(255,0,0)">Name</span>
          <span style="color: rgb(0,0,255)">="EditPanel"</span>
          <br />
                                       <span style="color: rgb(255,0,0)"> Visibility</span><span style="color: rgb(0,0,255)">="{</span><span style="color: rgb(163,21,21)">Binding</span><span style="color: rgb(255,0,0)"> IsInEditMode</span><span style="color: rgb(0,0,255)">,</span><span style="color: rgb(255,0,0)"> Converter</span><span style="color: rgb(0,0,255)">={</span><span style="color: rgb(163,21,21)">StaticResource</span><span style="color: rgb(255,0,0)"> BoolVisibilityConverter</span><span style="color: rgb(0,0,255)">}}"</span>  
<br />
                                       <span style="color: rgb(255,0,0)"> Orientation</span><span style="color: rgb(0,0,255)">="Horizontal"</span><span style="color: rgb(255,0,0)"> Height</span><span style="color: rgb(0,0,255)">="20"
&gt;</span></p>
        <p>
The trick is the Converter.  We're using a Converter that converts a boolean
value into a value from the Visibility Enumeration:
</p>
        <p>
 
</p>
        <pre class="code">
          <span style="color: rgb(0,0,255)">public</span>
          <span style="color: rgb(0,0,255)">class</span>
          <span style="color: rgb(43,145,175)">BoolVisibilityConverter</span> : <span style="color: rgb(43,145,175)">IValueConverter </span> { <span style="color: rgb(0,0,255)">public</span><span style="color: rgb(0,0,255)">object</span> Convert(<span style="color: rgb(0,0,255)">object</span> value, <span style="color: rgb(43,145,175)">Type</span> targetType, <span style="color: rgb(0,0,255)">object</span> parameter, <span style="color: rgb(43,145,175)">CultureInfo</span> culture)
{ <span style="color: rgb(0,0,255)">if</span> (value == <span style="color: rgb(0,0,255)">null</span> || <span style="color: rgb(0,0,255)">string</span>.IsNullOrEmpty(value.ToString())
|| !(<span style="color: rgb(0,0,255)">bool</span>)value) <span style="color: rgb(0,0,255)">return</span><span style="color: rgb(43,145,175)">Visibility</span>.Collapsed; <span style="color: rgb(0,0,255)">return</span><span style="color: rgb(43,145,175)">Visibility</span>.Visible;
} <span style="color: rgb(0,0,255)">public</span><span style="color: rgb(0,0,255)">object</span> ConvertBack(<span style="color: rgb(0,0,255)">object</span> value, <span style="color: rgb(43,145,175)">Type</span> targetType, <span style="color: rgb(0,0,255)">object</span> parameter, <span style="color: rgb(43,145,175)">CultureInfo</span> culture)
{ <span style="color: rgb(0,128,0)">// we don't need it to convert back but we could
implement that later. </span><span style="color: rgb(0,0,255)">return</span> value;
} }</pre>
        <pre class="code">
          <font face="Trebuchet MS">Don't forget to add the Converter to your
user control's resources:</font>
        </pre>
        <pre class="code">
          <span style="color: rgb(163,21,21)">
          </span>
          <span style="color: rgb(0,0,255)">&lt;</span>
          <span style="color: rgb(163,21,21)">UserControl.Resources</span>
          <span style="color: rgb(0,0,255)">&gt; </span>
          <span style="color: rgb(163,21,21)">
          </span>
          <span style="color: rgb(0,0,255)">&lt;</span>
          <span style="color: rgb(163,21,21)">ClientUtilties</span>
          <span style="color: rgb(0,0,255)">:</span>
          <span style="color: rgb(163,21,21)">BoolVisibilityConverter</span>
          <span style="color: rgb(255,0,0)"> x</span>
          <span style="color: rgb(0,0,255)">:</span>
          <span style="color: rgb(255,0,0)">Key</span>
          <span style="color: rgb(0,0,255)">="BoolVisibilityConverter"
/&gt; </span>
          <span style="color: rgb(163,21,21)">
          </span>
          <span style="color: rgb(0,0,255)">&lt;</span>
          <span style="color: rgb(163,21,21)">ClientUtilties</span>
          <span style="color: rgb(0,0,255)">:</span>
          <span style="color: rgb(163,21,21)">BoolInverseVisibilityConverter</span>
          <span style="color: rgb(255,0,0)"> x</span>
          <span style="color: rgb(0,0,255)">:</span>
          <span style="color: rgb(255,0,0)">Key</span>
          <span style="color: rgb(0,0,255)">="BoolInverseVisibilityConverter"
/&gt; </span>
          <span style="color: rgb(163,21,21)">
          </span>
          <span style="color: rgb(0,0,255)">&lt;/</span>
          <span style="color: rgb(163,21,21)">UserControl.Resources</span>
          <span style="color: rgb(0,0,255)">&gt; </span>
        </pre>
        <a href="http://11011.net/software/vspaste">
        </a>
        <pre class="code">
          <font face="Trebuchet MS">And
it all just works!</font>
        </pre>
        <pre class="code">
          <font face="Trebuchet MS">From this, you should be able to figure
out the other end of this, switching back to Read Only Mode. </font>
        </pre>
        <pre class="code">
          <font face="Trebuchet MS">I hope this helps. </font>
        </pre>
        <img width="0" height="0" src="http://www.blog.ingenuitynow.net/aggbug.ashx?id=c033382f-216f-4eb0-923a-9c33d590c6cb" />
      </div>
    </content>
  </entry>
  <entry>
    <title>The Ben Chronicles - Benny is Back!</title>
    <link rel="alternate" type="text/html" href="http://www.blog.ingenuitynow.net/The+Ben+Chronicles+Benny+Is+Back.aspx" />
    <id>http://www.blog.ingenuitynow.net/PermaLink,guid,2684a3b2-9314-448a-bfd2-10b619af0794.aspx</id>
    <published>2009-02-10T20:35:26.1657281-05:00</published>
    <updated>2009-02-10T20:35:26.1657281-05:00</updated>
    <category term="Ben" label="Ben" scheme="http://www.blog.ingenuitynow.net/CategoryView,category,Ben.aspx" />
    <category term="Family" label="Family" scheme="http://www.blog.ingenuitynow.net/CategoryView,category,Family.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
If you read my last post about Ben, you'll know that the winter wasn't going so well. 
It seemed like Ben was always sick and in a "bad mood".  Well not anymore! 
The little guy that we love is back and crazier than ever.  One day he just changed
completely back to his old self.  These days he is sleeping great, eating great,
playful as can be and all about having fun!
</p>
        <p>
Ben is loving "real" food.  He really wants to feed himself so we let him do
that most of the time.  He eats pasta, scrambled eggs, sweet potatoes and regular
potatoes, chicken nuggets, fish sticks, pears, turkey meatloaf, veggie burgers, pizza
(crust), peas, broccoli, carrots, mac and cheese and a bunch of other stuff. 
He watches what Mommy and Daddy eat and always wants food off of our plates. 
Plus, he is taking his bottles more too.  So all that is going well.
</p>
        <p>
Play time is completely different these days.  Benny really seems to "get" the
game.  I don't know what goes on in his mind but he is really starting to learn
things.  The little gears are really turning in his head.  He loves to play
with his <a href="http://www.fisher-price.com/fp.aspx?st=2341&amp;e=detail&amp;pcat=bulnl&amp;pid=30446">Fisher
Price "House"</a>.  He plays peek-a-boo by lifting the window up and down. 
He also loves his "<a href="http://www.fisher-price.com/fp.aspx?st=10&amp;e=littlepeople">Little
People</a>".  And he has car that he can ride on and walk behind.  We are
noticing more hand coordination too as he can put balls into a slot or put his blocks
together (sometimes).  He's very proud of himself too, especially when he is
walking (with our help), standing - yes on his own for a few seconds at a time, and
other fun stuff.  Yesterday I said "How big is Benny" and up went his hands. 
I had been trying that for a while with him with no result.  But it just clicked
and how he does it all the time.  
</p>
        <p>
Ben is really looking forward to turning 1 year old.  He had a lot of fun with
his cousin Grace at her Birthday party.  She's older by 10 days!  Check
out the picture of them together, it is pretty funny because Grace is big for her
age, while Ben is pretty small.
</p>
        <p>
OK, here are some of my favorite pictures from the last few weeks.  Oh, by the
way, Benny got his first haircut too.
</p>
        <p>
          <a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBennyisBack_11A5F/DSC03884.jpg">
            <img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="244" alt="DSC03884" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBennyisBack_11A5F/DSC03884_thumb.jpg" width="184" border="0" />
          </a>
          <a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBennyisBack_11A5F/DSC03915.jpg">
            <img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="184" alt="DSC03915" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBennyisBack_11A5F/DSC03915_thumb.jpg" width="244" border="0" />
          </a>
          <a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBennyisBack_11A5F/DSC03922.jpg">
            <img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="244" alt="DSC03922" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBennyisBack_11A5F/DSC03922_thumb.jpg" width="184" border="0" />
          </a>
          <a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBennyisBack_11A5F/DSC03967.jpg">
            <img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="184" alt="DSC03967" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBennyisBack_11A5F/DSC03967_thumb.jpg" width="244" border="0" />
          </a>
          <a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBennyisBack_11A5F/DSC03976.jpg">
            <img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="184" alt="DSC03976" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBennyisBack_11A5F/DSC03976_thumb.jpg" width="244" border="0" />
          </a>
          <a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBennyisBack_11A5F/DSC03982.jpg">
            <img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="244" alt="DSC03982" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBennyisBack_11A5F/DSC03982_thumb.jpg" width="184" border="0" />
          </a>
          <a href="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBennyisBack_11A5F/DSC03983.jpg">
            <img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="184" alt="DSC03983" src="http://www.blog.ingenuitynow.net/content/binary/WindowsLiveWriter/TheBenChroniclesBennyisBack_11A5F/DSC03983_thumb.jpg" width="244" border="0" />
          </a>
        </p>
        <img width="0" height="0" src="http://www.blog.ingenuitynow.net/aggbug.ashx?id=2684a3b2-9314-448a-bfd2-10b619af0794" />
      </div>
    </content>
  </entry>
</feed>