<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>DevHawk</title><link>http://devhawk.net</link><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Devhawk" /><description>Passion * Technology * Ruthless Competence</description><language>en</language><lastBuildDate>Fri, 11 Nov 2011 09:49:52 PST</lastBuildDate><sy:updatePeriod xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">hourly</sy:updatePeriod><sy:updateFrequency xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">1</sy:updateFrequency><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Devhawk" /><feedburner:info uri="devhawk" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>47.640972</geo:lat><geo:long>-122.033189</geo:long><feedburner:browserFriendly>(Enter a personal message you would like to have appear at the top of your feed.)</feedburner:browserFriendly><item><title>My //build Talk</title><link>http://devhawk.net/2011/10/06/my-build-talk/</link><category>Development</category><category>Windows</category><category>Windows Runtime</category><category>//build</category><category>C#</category><category>Metro style apps</category><category>Windows 8</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DevHawk</dc:creator><pubDate>Thu, 06 Oct 2011 08:17:52 PDT</pubDate><guid isPermaLink="false">http://devhawk.net/?p=1927</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>I just realized that while I posted the <a href="http://devhawk.net/2011/09/15/using-winrt-from-csharp-build-demo/">demo steps</a> from my //build talk, I never posted the talk itself here on DevHawk. Consider that oversight rectified with this post.</p>
<p>(Note, the static image below appears cut-off, but the video should scale to the width of my blog automatically. If not, head on over to the <a href="http://channel9.msdn.com/events/BUILD/BUILD2011/TOOL-531T">official page</a> for the talk over on Channel 9)</p>
<p><iframe style="width: 620px; height: 351px;" src="http://channel9.msdn.com/Events/BUILD/BUILD2011/TOOL-531T/player?w=620&amp;h=351" frameborder="0" scrolling="no" width="320" height="240"></iframe></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Devhawk?a=RNZ03qrmiY4:KiYyQIFKQpc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=RNZ03qrmiY4:KiYyQIFKQpc:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=RNZ03qrmiY4:KiYyQIFKQpc:XQ266DUsA9M"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=XQ266DUsA9M" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=RNZ03qrmiY4:KiYyQIFKQpc:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=RNZ03qrmiY4:KiYyQIFKQpc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Devhawk?i=RNZ03qrmiY4:KiYyQIFKQpc:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Devhawk/~4/RNZ03qrmiY4" height="1" width="1"/>]]></content:encoded><description>I just realized that while I posted the demo steps from my //build talk, I never posted the talk itself here on DevHawk. Consider that oversight rectified with this post. (Note, the static image below appears cut-off, but the video should scale to the width of my blog automatically. If not, head on over to the [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devhawk.net/2011/10/06/my-build-talk/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments></item><item><title>Using WinRT from C# //build Demo</title><link>http://devhawk.net/2011/09/15/using-winrt-from-csharp-build-demo/</link><category>Development</category><category>Windows</category><category>Windows Runtime</category><category>//build</category><category>C#</category><category>Metro style apps</category><category>Windows 8</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DevHawk</dc:creator><pubDate>Thu, 15 Sep 2011 09:39:30 PDT</pubDate><guid isPermaLink="false">http://devhawk.net/?p=1924</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Yesterday at<a href="http://www.buildwindows.com/"> //build</a>, Jesse Kaplan and I delivered the <a href="http://channel9.msdn.com/Events/BUILD/BUILD2011/TOOL-531T">Using Windows Runtime from C# and Visual Basic</a> talk. In the talk, I demonstrated how natural and familiar it is to use WinRT from C# by building a simple Metro style app. This app  takes a picture with a webcam and implements the share charm contract in less than 15 lines of C# code.</p>
<p>Instead of making you try and read code off the recorded video stream that should be published soon, I&#8217;ve written this walkthru to explain exactly what I did in that demo. In addition, I&#8217;ve started from scratch (i.e. File-&gt;New Project) so that you can follow along at home if you wish.</p>
<p>First, you need to install the <a href="http://msdn.microsoft.com/en-us/windows/apps/br229516">Windows Developer Preview</a>. I recommend the x64 version with tools. Scott Hanselman has a <a href="http://www.hanselman.com/blog/GuideToInstallingAndBootingWindows8DeveloperPreviewOffAVHDVirtualHardDisk.aspx">great write up</a> on using boot to VHD to run the preview. (though I do disagree w/ his assessment of dual boot. I&#8217;ve been dual booting Win7 and Win8 on my laptop for months and it&#8217;s never ended in tears or blood). Also, you&#8217;re going to need a webcam in order to run the app yourself.</p>
<p>Once the Windows Developer Preview is up and running, run the Socialite app and login with your Facebook credentials. We&#8217;re going to use Socialite to share the picture we take with the webcam. Giving it your credentials up front makes the demo run smoother!</p>
<p>Next, fire up VS11 (aka Microsoft Visual Studio 11 Express for Windows Developer Preview). Create a new project and select the Visual C# -&gt; Windows Metro Style -&gt; Application template.</p>
<p>Once the new project has been created, you should be looking at the MainPage.xaml file. Update the Grid element to contain a button and an image.</p>
<pre class="brush:xml">&lt;Grid x:Name="LayoutRoot" Background="#FF0C0C0C"&gt;
    &lt;Button x:Name="ClickMe" Click="ClickMe_Click"&gt;Click Me&lt;/Button&gt;
    &lt;Image x:Name="Photo" Width="800" Height="600"
           HorizontalAlignment="Center" VerticalAlignment="Center"/&gt;
&lt;/Grid&gt;</pre>
<p>Next, hover over the Click=&#8221;ClickMe_Click&#8221; attribute of the button, right click and select &#8220;Navigate to Event Handler&#8221;. VS11 will take you to MainPage.xaml.cs and automatically generate a skeleton event handler for you.</p>
<p>In my //build session, I demonstrated that VS11 can automatically resolve WinRT namespaces the same way that it resolves managed namespaces. But for the purposes of this blog post, it&#8217;s easier if you just add the additional using statements we&#8217;re going to need at the top of MainPage.xaml.cs now.</p>
<pre class="brush:csharp">using Windows.Media.Capture;
using Windows.Storage;
using Windows.UI.Xaml.Media.Imaging;
using Windows.ApplicationModel.DataTransfer;
using Windows.Storage.Streams;</pre>
<p>Now, we add the code for ClickMe_Click:</p>
<pre class="brush:csharp">private async void ClickMe_Click(object sender, RoutedEventArgs e)
{
    var ui = new CameraCaptureUI();
    ui.PhotoSettings.CroppedAspectRatio = new Size(4, 3);

    var file = await ui.CaptureFileAsync(CameraCaptureUIMode.Photo);

    if (file != null)
    {
        var stream = await file.OpenAsync(FileAccessMode.Read);

        var bitmap = new BitmapImage();
        bitmap.SetSource(stream);
        Photo.Source = bitmap;
    }
}</pre>
<p>A few things to note about this code:</p>
<ul>
<li>Even though it&#8217;s using native WinRT libraries, the C# feels natural and familiar &#8211; as if you were calling into traditional managed libraries. We&#8217;re newing up classes, we&#8217;re passing in constructor parameters, we&#8217;re using primitive numbers and enums, we&#8217;re assigning properties, etc. That is very much by design.</li>
<li>We&#8217;re using a couple of async WinRT methods (CaptureFileAsync and OpenAsync). C# 5.0&#8242;s new await keyword to make it extremely easy to write linear looking code that doesn&#8217;t block on async operations.</li>
<li>No P/Invoke or COM Interop attributes anywhere to be seen!</li>
</ul>
<p>Finally, before we can run this code we need to declare our intent to use the webcam. Double click on the Package.appxmanifest file, click on the &#8220;Capabilites&#8221; tab, and then check the Webcam checkbox.</p>
<p>With the capability declared, now we can run the app. Hit F5 and VS11 will compile and deploy the Metro style app you just built. Click the button, acknowledge that you want to let the program use the webcam, take a pic, crop it, and there it is in your UI!</p>
<p>For the second part of the demo, I added share contract support. Here&#8217;s how to do that.</p>
<p>First, we need to pull the stream variable into class instance scope so that we can access it in the share contract event handler. We do that by adding a private IRandomAccessStream variable named stream and removing the var declarations from the line where we call OpenAsync. The updated click event handler looks like this:</p>
<pre class="brush:csharp">//here's the instance scope stream variable
IRandomAccessStream stream;

private async void ClickMe_Click(object sender, RoutedEventArgs e)
{
    var ui = new CameraCaptureUI();
    ui.PhotoSettings.CroppedAspectRatio = new Size(4, 3);

    var file = await ui.CaptureFileAsync(CameraCaptureUIMode.Photo);

    if (file != null)
    {
        //the only change from the code above was to remove
        //the var declaration from the following line
        stream = await file.OpenAsync(FileAccessMode.Read);

        var bitmap = new BitmapImage();
        bitmap.SetSource(stream);
        Photo.Source = bitmap;
    }
}</pre>
<p>Next, we need to wire up the share event handler in the XAML page&#8217;s constructor. That&#8217;s a single line of code and VS11 intellisense writes most of  it for you</p>
<pre class="brush:csharp">public MainPage()
{
    InitializeComponent();
    DataTransferManager.GetForCurrentView().DataRequested +=
        new TypedEventHandler&lt;DataTransferManager, DataRequestedEventArgs&gt;(MainPage_DataRequested);
}</pre>
<p>If you&#8217;ve ever wired up an event handler in C# before with VS, you&#8217;ll be familiar with the &#8220;Press TAB to insert&#8221; the correct event handler type followed by &#8220;TAB to generate handler&#8221;. Even though hthis is a WinRT event, VS11 helps you wire it up just the same as it does for managed events.</p>
<p>Now we implement the share contract event handler. That&#8217;s just a simple if statement &#8211; calling args.Request.Data.SetBitmap if the user has taken a picture and calling args.Request.FailWithDisplayText with an error message if they have not.</p>
<pre class="brush:csharp">private void MainPage_DataRequested(DataTransferManager sender,
    DataRequestedEventArgs args)
{
    if (stream == null)
        args.Request.FailWithDisplayText("No picture taken!");
    else
        args.Request.Data.SetBitmap(stream);
}</pre>
<p>This part of the demo shows off static methods and event handlers. Again, note how natural and familiar it feels to use WinRT from C#.</p>
<p>And we&#8217;re done, so hit F5 to build, deploy and run the app again.</p>
<p>I didn&#8217;t remember to do this in the //build talk, but first try selecting the share contract <em>before </em>taking a picture. Windows will display the &#8220;No picture taken&#8221; text in share contract window since the user taken a picture to share yet. That&#8217;s pretty boring so dismiss the share contract and take a picture like you did before. Then select the share contract, select Socalite, write a pithy message and press &#8220;Share in Facebook&#8221;.</p>
<p>That&#8217;s the entire demo! Taking a picture with the webcam, uploading to facebook, calling native WinRT APIs from C# in a natural and familiar way and all in just under 15 lines of code!</p>
<p>With our talk and demos, Jesse and I wanted to communicate just how important C# and VB are in the overall developer story for Windows 8. This demo shows off the hard work our two teams have done in order to make sure the managed developer&#8217;s experience with Windows 8 was the best that it could be. As I said in the talk &#8211; if you&#8217;re a managed developer, <span style="text-decoration: underline;">you already know how to build these Metro style apps</span>.</p>
<p>I know I <a href="http://devhawk.net/2011/09/15/the-windows-runtime/">said it before</a>, but I really can&#8217;t wait to see what you guys build with Windows 8!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Devhawk?a=GaLuqADVRTo:i97L0YP2f8k:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=GaLuqADVRTo:i97L0YP2f8k:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=GaLuqADVRTo:i97L0YP2f8k:XQ266DUsA9M"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=XQ266DUsA9M" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=GaLuqADVRTo:i97L0YP2f8k:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=GaLuqADVRTo:i97L0YP2f8k:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Devhawk?i=GaLuqADVRTo:i97L0YP2f8k:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Devhawk/~4/GaLuqADVRTo" height="1" width="1"/>]]></content:encoded><description>Yesterday at //build, Jesse Kaplan and I delivered the Using Windows Runtime from C# and Visual Basic talk. In the talk, I demonstrated how natural and familiar it is to use WinRT from C# by building a simple Metro style app. This app  takes a picture with a webcam and implements the share charm contract in less than [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devhawk.net/2011/09/15/using-winrt-from-csharp-build-demo/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">6</slash:comments></item><item><title>The Windows Runtime</title><link>http://devhawk.net/2011/09/15/the-windows-runtime/</link><category>Development</category><category>Windows</category><category>Windows Runtime</category><category>//build</category><category>Activation</category><category>C#</category><category>C++</category><category>JavaScript</category><category>Lanugages</category><category>Metadata</category><category>Metro style apps</category><category>Visual Basic</category><category>Windows 8</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DevHawk</dc:creator><pubDate>Thu, 15 Sep 2011 07:40:31 PDT</pubDate><guid isPermaLink="false">http://devhawk.net/?p=1919</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>After nearly 2 years of not being able to tell anyone what I was working on &#8211; or even the name of the team I was on! &#8211; <a href="http://www.buildwindows.com/">//build</a> is finally here and the <a href="http://msdn.microsoft.com/en-us/windows/apps/br229516">Windows 8 developer preview</a> is finally out there in the open for everyone to start building applications for. You have NO idea how hard it&#8217;s been for me to keep my mouth shut and blog quiet about this!</p>
<p>I am a program manager on the Runtime Experience team, one of <a href="http://blogs.msdn.com/b/b8/archive/2011/08/17/introducing-the-team.aspx">many teams</a> in the Windows division building Windows 8. Our team is responsible for building the underlying infrastructure that powers the <a href="http://msdn.microsoft.com/en-us/library/windows/apps/hh464942(v=VS.85).aspx">Windows Runtime</a> (or WinRT for short). In particular, I work on the WinRT metadata infrastructure. I also work closely with our partners in Developer Division that use the metadata to project WinRT APIs into multiple languages.</p>
<p>In a nutshell, WinRT is the new API surface area for <a href="http://msdn.microsoft.com/en-us/windows/apps/">Metro style apps</a> in Windows 8. WinRT APIs are available across multiple languages &#8211; C#, Visual Basic, C++ and JavaScript &#8211; enabling developers to build Metro style apps using the language and frameworks they are most familiar with. Much, much more info is available on the new <a href="http://dev.windows.com">Windows Dev Center</a>.</p>
<p>In addition to the <a href="http://msdn.microsoft.com/en-us/library/windows/apps/hh464942(v=VS.85).aspx">developer preview docs for WinRT</a>, there are several sessions at //build focusing on WinRT &#8211; what it is, how it works under the covers, and how you use it from the various languages. Here&#8217;s a handy list of all the //build sessions you should check out if you want to know more about WinRT:</p>
<ul>
<li><a href="http://channel9.msdn.com/Events/BUILD/BUILD2011/PLAT-874T">Lap Around Windows Runtime</a><br />
Martyn Lovell &#8211; the dev manager for the Runtime Experience team &#8211; provides a overview of the Windows Runtime.</li>
<li><a href="http://channel9.msdn.com/Events/BUILD/BUILD2011/TOOL-531T">Using the Windows Runtime from C# and Visual Basic</a><br />
Jesse Kaplan from the CLR team and I cover how you can build managed Metro style apps and how you use WinRT from C# and VB. Obviously, I highly recommend this session because&#8230;Well, it&#8217;s my session isn&#8217;t it? What am I gonna say? Don&#8217;t watch my talk?</li>
<li><a href="http://channel9.msdn.com/Events/BUILD/BUILD2011/TOOL-533T">Using the Windows Runtime from JavaScript</a><br />
Luke Hoban from the JavaScript team talks about how WinRT is used when building the new Metro style apps in HTML5 and JavaScript.</li>
<li><a href="http://channel9.msdn.com/Events/BUILD/BUILD2011/TOOL-532T">Using the Windows Runtime from C++</a><br />
Herb Sutter from the C++ team as well as the C++ standards committee talks about how WinRT is used for C++ developers building native Metro style apps.</li>
<li><a href="http://channel9.msdn.com/Events/BUILD/BUILD2011/PLAT-203T">Async Everywhere: creating responsive APIs and apps</a><br />
Ben Kuhn, a developer on the Runtime Experience team, dives deep on how async is exposed and implemented in WinRT</li>
<li><a href="http://channel9.msdn.com/Events/BUILD/BUILD2011/PLAT-875T">Windows Runtime Internals: understanding &#8220;Hello World&#8221;</a><br />
Matt Merry, a teammate on the Runtime Experience PM team, goes under the hood and shows you how the internals of WinRT work.</li>
<li><a href="http://channel9.msdn.com/Events/BUILD/BUILD2011/PLAT-877T">Being Pragmatic by leveraging existing code in Metro style apps</a><br />
<a href="http://twitter.com/#!/jolson88">Jason Olson</a>, a teammate on the Runtime Experience PM team and my next door office neighbor, talks about how you bring your existing code into the new world of Metro style apps. In particular, he&#8217;s got a <a href="http://code.msdn.microsoft.com/windowsapps/Groove-Drum-Sequencer-cc6028ec">wicked cool demo</a>.</li>
<li><a href="http://channel9.msdn.com/Events/BUILD/BUILD2011/PLAT-657T">Windows Interns: our summer of apps</a><br />
John Lam, my immediate boss, is MCing this session with some of the Windows Interns who built the first Windows 8 Metro style apps over the summer.</li>
</ul>
<p>As I write this, not all the sessions have been delivered and none of them are available online yet. But they should all be online within a couple of days. Also, you can also get more information as well as ask questions over at the <a href="http://forums.dev.windows.com">Windows Dev Center Forums</a>. Our dev manager has already been <a href="http://social.msdn.microsoft.com/profile/martyn%20lovell%20%5Bmsft%5D/">very busy answering questions</a>!</p>
<p>I am so excited that you can finally see what we&#8217;ve been working on and I can wait to see what <span style="text-decoration: underline;">you</span> build with Windows 8!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Devhawk?a=XCTI_RlWPq0:4bxIXNS-ST8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=XCTI_RlWPq0:4bxIXNS-ST8:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=XCTI_RlWPq0:4bxIXNS-ST8:XQ266DUsA9M"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=XQ266DUsA9M" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=XCTI_RlWPq0:4bxIXNS-ST8:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=XCTI_RlWPq0:4bxIXNS-ST8:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Devhawk?i=XCTI_RlWPq0:4bxIXNS-ST8:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Devhawk/~4/XCTI_RlWPq0" height="1" width="1"/>]]></content:encoded><description>After nearly 2 years of not being able to tell anyone what I was working on &amp;#8211; or even the name of the team I was on! &amp;#8211; //build is finally here and the Windows 8 developer preview is finally out there in the open for everyone to start building applications for. You have NO [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devhawk.net/2011/09/15/the-windows-runtime/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">5</slash:comments></item><item><title>Open Position On My Team</title><link>http://devhawk.net/2011/06/15/open-position-on-my-team/</link><category>Windows</category><category>Working at MSFT</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DevHawk</dc:creator><pubDate>Wed, 15 Jun 2011 10:58:45 PDT</pubDate><guid isPermaLink="false">http://devhawk.net/?p=1913</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>My team is hiring. I don&#8217;t have a link to the job description on the Microsoft Careers site yet, but the job description is below.</p>
<p>Interested? <a title="Job Opening on your team" href="mailto:harry.pierson@microsoft.com">Send me mail</a>.</p>
<blockquote><p><span style="text-decoration: underline;"><strong>IC PM2/Senior Program Manager Position in the Windows Developer Experience Team </strong></span></p>
<p>Do you want to help ship the most ambitious release of Windows to date? Do you want to make your impact on millions of developers and hundreds of millions of users?</p>
<p>We are the Developer Experience Team. We are building the next generation of developer technologies for creating Windows applications. Our platform powers the new APIs that developers will use to create stunning new Windows applications. You will own the design and delivery of key platform features that will be used by developers in the Windows org, at Microsoft, and around the world to create the APIs that power the next generation of Windows applications.</p>
<p>What do we need from you? Awesomeness. What exactly does that mean? You can drive ambiguous goals independently to completion. You know what needs to get done and by when. You lead by example, cat-herd by necessity, and make a positive impact on your peers in PM, Dev and Test. Others in your org seek out your help because they know you will get it done, or that you will show them how to get it done better if they are coming to you for advice.</p>
<p>Requirements:</p>
<ul>
<li>You have 5+ years of experience in Program Management.</li>
<li>You love software developers and can see the world from their perspective.</li>
<li>You have strong JavaScript/C#/C++ skills</li>
<li>You have completed multiple ship cycles on a large-scale product.</li>
<li>You have intellectual horsepower and creativity, and can quickly adapt to new technologies and go deep in new areas.</li>
<li>You have excellent communication and partnering skills. You can drive features<br />
across teams who have different needs and priorities.</li>
<li>Experience delivering developer platforms a significant plus.</li>
</ul>
</blockquote>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Devhawk?a=P-7MSkBWRlI:GaMwl9FMdmo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=P-7MSkBWRlI:GaMwl9FMdmo:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=P-7MSkBWRlI:GaMwl9FMdmo:XQ266DUsA9M"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=XQ266DUsA9M" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=P-7MSkBWRlI:GaMwl9FMdmo:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=P-7MSkBWRlI:GaMwl9FMdmo:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Devhawk?i=P-7MSkBWRlI:GaMwl9FMdmo:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Devhawk/~4/P-7MSkBWRlI" height="1" width="1"/>]]></content:encoded><description>My team is hiring. I don&amp;#8217;t have a link to the job description on the Microsoft Careers site yet, but the job description is below. Interested? Send me mail. IC PM2/Senior Program Manager Position in the Windows Developer Experience Team Do you want to help ship the most ambitious release of Windows to date? Do [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devhawk.net/2011/06/15/open-position-on-my-team/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments></item><item><title>Using Task in ASP.NET MVC Today</title><link>http://devhawk.net/2011/05/19/using-task-of-t-in-asp-net-mvc-today-2/</link><category>Development</category><category>ASP.NET</category><category>ASP.NET MVC</category><category>Async</category><category>C#</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DevHawk</dc:creator><pubDate>Thu, 19 May 2011 18:44:07 PDT</pubDate><guid isPermaLink="false">http://devhawk.net/?p=1864</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>I&#8217;ve been experimenting with the <a href="http://msdn.microsoft.com/en-us/vstudio/async.aspx">new async support</a> coming in the next version of C# (and VB). I must say, I&#8217;m very impressed. Async is one of those things you know you&#8217;re supposed to be doing. However, traditionally it has taken a lot of code and been hard to get right. The new await keyword changes all that.</p>
<p>For example, here&#8217;s an async function to download the <a href="http://dev.twitter.com/doc/get/statuses/public_timeline">Twitter public timeline</a>:</p>
<pre class="brush:csharp">public async Task PublicTimelineAsync()
{
  var url = "http://api.twitter.com/1/statuses/public_timeline.xml";
  var xml = await new WebClient().DownloadStringTaskAsync(url);
  return XDocument.Parse(xml);
}</pre>
<p>That&#8217;s not much more difficult that writing the synchronous version. By using the new async and await keywords, all the ugly async <a href="http://en.wikipedia.org/wiki/Continuation-passing_style">CPS</a> code you&#8217;re supposed to write is generated for you automatically by the compiler. That&#8217;s a huge win.</p>
<p>The only downside to async is that support for it is spotty in the .NET Framework today. Each major release of .NET to date has introduced a new async API pattern. .NET 1.0 had the <a href="http://msdn.microsoft.com/en-us/library/ms228963.aspx">Async Programming Model (APM)</a>. .NET 2.0 introduced the <a href="http://msdn.microsoft.com/en-us/library/wewwczdw.aspx">Event-based Async Pattern (EAP)</a>. Finally .NET 4.0 gave us the <a href="http://msdn.microsoft.com/en-us/library/dd537609.aspx">Task Parallel Library (TPL)</a>. The await keyword only works with APIs writen using the TPL pattern. APIs using older async patterns have to be wrapped as TPL APIs to work with await. The <a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=4738205d-5682-47bf-b62e-641f6441735b&amp;displaylang=en">Async CTP</a> includes a bunch of extension methods that wrap common async APIs, such as DownloadStringTaskAsync from the code above.</p>
<p>The async wrappers are nice, but there are a few places where we really need the TPL pattern plumbed deeper. For example, ASP.NET MVC supports <a href="http://msdn.microsoft.com/en-us/library/ee728598.aspx">AsyncControllers</a>. AsyncControllers are used to avoid blocking IIS threads waiting on long running I/O operations &#8211; such as getting the public timeline from Twitter. Now that I&#8217;ve been bitten by the <a href="http://blogs.msdn.com/b/lucian/archive/2011/04/15/async-ctp-refresh-design-changes.aspx">async zombie virus</a>, I want to write my async controller methods using await:</p>
<pre class="brush:csharp">public async Task&lt;ActionResult&gt; Index()
{
    var t = new Twitter();
    var timeline = await t.PublicTimelineAsync();
    var data = timeline.Root.Elements("status")
        .Elements("text").Select(e =&gt; e.Value);
    return View(data);
}</pre>
<p>Unfortunately, neither the main trunk of MVC nor the MVC futures project has support for the TPL model [1]. Instead, I have to manually write some semblance of the async code that await would have emitted on my behalf. In particular, I have to manage the outstanding operations, implement a continuation method and map the parameters in my controller manually.</p>
<pre class="brush:csharp">public void IndexAsync()
{
    var twitter = new Twitter();

    AsyncManager.OutstandingOperations.Increment();
    twitter
        .PublicTimelineAsync()
        .ContinueWith(task =&gt;
        {
            AsyncManager.Parameters["timeline"] = task.Result;
            AsyncManager.OutstandingOperations.Decrement();
        });
}

public ActionResult IndexCompleted(XDocument timeline)
{
    var data = timeline.Root.Elements("status")
        .Elements("text").Select(e =&gt; e.Value);
    return View(data);
}</pre>
<p>I promise you, writing that boilerplate code over and over gets old pretty darn quick. So I wrote the following helper function to eliminate as much boilerplate code as I could.</p>
<pre class="brush:csharp">public static void RegisterTask&lt;T&gt;(
    this AsyncManager asyncManager,
    Task&lt;T&gt; task,
    Func&lt;T, object&gt; func)
{
    asyncManager.OutstandingOperations.Increment();
    task.ContinueWith(task2 =&gt;
    {
        //invoke the provided function with the
        //result of running the task
        var o = func(task2.Result);

        //use reflection to set asyncManager.Parameters
        //for the returned object's fields and properties
        var ty = o.GetType();
        foreach (var f in ty.GetFields())
        {
            asyncManager.Parameters[f.Name] = f.GetValue(o);
        }
        foreach (var p in ty.GetProperties())
        {
            var v = p.GetGetMethod().Invoke(o, null);
            asyncManager.Parameters[p.Name] = v;
        }

        asyncManager.OutstandingOperations.Decrement();
    });
}</pre>
<p>With this helper function, you pass in the Task&lt;T&gt; that you are waiting on as well as a delegate to invoke when the task completes. RegisterTask takes care of incrementing and decrementing the outstanding operations count as appropriate. It also registers a continuation that reflects over the object returned from the invoked delegate to populate the Parameters collection.</p>
<p>With this helper function, you can write the async controller method like this:</p>
<pre class="brush:csharp">public void IndexAsync()
{
    var twitter = new Twitter();

    AsyncManager.RegisterTask(
        twitter.PublicTimelineAsync(),
        data =&gt; new { timeline = data });
}

//IndexCompleted hasn't changed
public ActionResult IndexCompleted(XDocument timeline)
{
    var data = timeline.Root.Elements("status")
        .Elements("text").Select(e =&gt; e.Value);
    return View(data);
}</pre>
<p>It&#8217;s not as clean as the purely TPL based version. In particular, you still need to write separate Async and Completed methods for each controller method. You also need to build an object to map values from the completed tasks into parameters in the completed method. Mapping parameters is a pain, but the anonymous object syntax is terser than setting values in the AsyncManager Parameter collection.</p>
<p>It&#8217;s not full TPL support, but it&#8217;ll do for now. Here&#8217;s hoping that the MVC team has async controller methods with TPL on their backlog.</p>
<hr />
<p>[1] I&#8217;m familiar with Craig Cavalier&#8217;s <a href="http://craigcav.wordpress.com/2010/12/23/asynchronous-mvc-using-the-task-parallel-library/">Async MVC with TPL</a> post, but a fork of the MVC Futures project is a bit too bleeding edge for my needs at this point.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Devhawk?a=oIyOzVP0w8I:3QJOjncAruI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=oIyOzVP0w8I:3QJOjncAruI:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=oIyOzVP0w8I:3QJOjncAruI:XQ266DUsA9M"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=XQ266DUsA9M" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=oIyOzVP0w8I:3QJOjncAruI:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=oIyOzVP0w8I:3QJOjncAruI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Devhawk?i=oIyOzVP0w8I:3QJOjncAruI:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Devhawk/~4/oIyOzVP0w8I" height="1" width="1"/>]]></content:encoded><description>I&amp;#8217;ve been experimenting with the new async support coming in the next version of C# (and VB). I must say, I&amp;#8217;m very impressed. Async is one of those things you know you&amp;#8217;re supposed to be doing. However, traditionally it has taken a lot of code and been hard to get right. The new await keyword changes [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devhawk.net/2011/05/19/using-task-of-t-in-asp-net-mvc-today-2/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">7</slash:comments></item><item><title>Build Your Own WDS Discovery Image</title><link>http://devhawk.net/2011/05/19/build-your-own-wds-discovery-image/</link><category>General Geekery</category><category>Deployment</category><category>WDS</category><category>Windows</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DevHawk</dc:creator><pubDate>Thu, 19 May 2011 06:19:23 PDT</pubDate><guid isPermaLink="false">http://devhawk.net/?p=1900</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Given that I <a href="http://devhawk.net/2009/10/26/joining-windows/">work on the Windows team</a>, it shouldn’t come as a surprise that we use <a href="http://technet.microsoft.com/en-us/library/cc772106(v=WS.10).aspx">Windows Deployment Services</a> to distribute Windows images internally. For most machines, it’s really convenient. You trigger a network boot (on my Lenovo, you press the “ThinkVantage” button during start up), select the image to install and what partition to install it to, wait a while, answer the installation finalization questions (machine name, user name, etc) and you’re done.</p>
<p>However, I have an <a href="http://www.dell.com/us/p/inspiron-duo/pd">Dell Inspiron Duo</a> (with the cool flip screen) netbook that lacks a built in network port. No network port, no network boot. I’ve got a USB network dongle, but it doesn’t support network boot either. No network boot, no ultra-convenient WDS installation, sad DevHawk.</p>
<p>I was able to work around this by building a custom <a href="http://technet.microsoft.com/en-us/library/cc730907(WS.10).aspx">WDS Discover image</a> that I loaded onto a USB flash drive. Now, I plug in the USB drive, select it as the boot device and I’m off and running…err, off and installing at any rate. Building the image was kind of tricky, so I figured it would be a good idea to write it down and share.</p>
<p><strong>Step One: Install the <a href="http://technet.microsoft.com/en-us/library/dd349343(v=WS.10).aspx">Windows Automated Installation Kit (AIK)<br />
</a></strong>The AIK is a set of tools for customizing Windows Images and deployment. In particular, it includes the <a href="http://technet.microsoft.com/en-us/library/dd744322(v=WS.10).aspx">Windows Preinstallation Environment</a> (aka WinPE) which is the minimal OS environment that Windows Setup runs in. We’ll be building a custom WinPE image to launch the WDS discovery and setup from.</p>
<p><strong>Step Two: Create a new PE image<br />
</strong>The AIK includes a command line tool for creating a blank PE image. Step 1 of this <a href="http://technet.microsoft.com/en-us/library/dd744530(v=WS.10).aspx">walkthru</a> shows you how to use it. It’s pretty easy. Open the Deployment Tools Command Prompt as an administrator and run the following commands:</p>
<pre class="brush:plain">copype.cmd x86 C:\winpe_x86
copy winpe.wim ISO\sources\boot.wim</pre>
<p>The copype.cmd batch file creates a new PE image of the specified architecture in the specified location. The Inspiron is an Atom processor so I chose an x86 PE image.</p>
<p>Note, in several steps below I assume you’ve created your  PE image in c:\winpe_x86. If you’ve created it somewhere else, make sure to swap in the correct path when executing the steps below.</p>
<p><strong>Step Three: Mount the PE Boot image with DISM<br />
</strong>Now that we have our basic PE boot image, we need to update it with custom drivers and the setup experience that can load WDS images across the network. Before we can update boot.wim, we need to mount it on the file system.</p>
<p>The AIK includes the <a href="http://technet.microsoft.com/en-us/library/dd744256(WS.10).aspx">Deployment Image Servicing and Management (DISM)</a> tool for working with WIM files. To mount the boot.wim file, execute the following command:</p>
<pre class="brush:plain">dism /Mount-WIM /WimFile:C:\winpe_x86\ISO\sources\boot.wim /index:1 /MountDir:c:\winpe_x86\mount</pre>
<p>Copype.cmd created an empty mount directory specifically for DISM to mount WIM images in.</p>
<p><strong>Step Four: Add Custom Device Driver<br />
</strong>The driver for my USB network dongle is not included in the standard Windows driver package, so it needs to be <a href="http://technet.microsoft.com/en-us/library/dd799289(WS.10).aspx">manually added to the PE image</a>. Again, we use DISM to do this.</p>
<pre class="brush:plain">dism /image:c:\winpe_x86\mount /add-driver /driver:"PATHTODRIVERDIRECTORY"</pre>
<p><strong>Step Five: Add Setup packages<br />
</strong>The PE image does not include the Windows Setup program by default. There are <a href="http://technet.microsoft.com/en-us/library/dd744533(WS.10).aspx">several optional packages</a> that you can add to your PE image. For WDS discovery, you need to add the setup and setup-client packages. Again, we use DISM to update the image.</p>
<pre class="brush:plain">dism /image:c:\winpe_x86\mount /add-package /packagepath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-setup.cab"
dism /image:c:\winpe_x86\mount /add-package /packagepath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-setup-client.cab"</pre>
<p><strong>Step Six: Add winpeshl.ini file<br />
</strong>Now that we’ve added the setup program to the image, we need to tell setup to <a href="http://technet.microsoft.com/en-us/library/cc730907(WS.10).aspx#BKMK_custom">run in WDS discovery mode on startup</a>. This is accomplished by adding a winpeshl.ini file to the WindowsSystem32 folder of the PE image.</p>
<p>Note, the <a href="http://technet.microsoft.com/en-us/library/cc730907(WS.10).aspx#BKMK_custom">official instructions</a> on TechNet have a bug. The path to setup.exe should be %<strong>SYSTEMDRIVE</strong>%sources, not %<strong>SYSTEMROOT</strong>%sources. Here’s the contents of my winpeshl.ini file:</p>
<pre class="brush:plain">[LaunchApps]
%SYSTEMDRIVE%\sources\setup.exe, "/wds /wdsdiscover"</pre>
<p>You can also add /wdsserver:&lt;server&gt; to the command line if you want to hard code the WDS Server to use in your image.</p>
<p><strong>Step Seven: Add Lang.ini file<br />
</strong>If you do all the above steps and try to boot the resulting image, you’ll get a nasty “Windows could not determine the language to use for Setup” error. Turns out there’s another bug in the official docs – <a href="http://www.msfn.org/board/topic/139298-winpe-30-wds-problems/">you need a lang.ini file in your sources directory</a> along side setup.exe in order to run. I just grabbed the lang.ini file off the normal Win7 boot image and copied it to the sources directory of my mounted boot image.</p>
<p><strong>Step Eight: Commit and Unmount the PE Boot image<br />
</strong>We’re now done updating the boot image, so it’s time to close and unmount it. This is accomplished with DISM:</p>
<pre class="brush:plain">dism /unmount-wim /mountdir:c:\winpe_x86\mount /commit</pre>
<p>At this point, the contents of the ISO folder are ready to be transferred to a USB stick for booting.</p>
<p><strong>Step Nine: Prepare the USB Flash Drive<br />
</strong>To enable your USB flash drive to be bootable, it needs to have a single FAT32 partition spanning the entire drive. Instructions in this <a href="http://technet.microsoft.com/en-us/library/dd744530(v=WS.10).aspx">walkthru</a> show you how to configure and format your USB drive.</p>
<p>Note, not all USB drives are created equal. I have one USB drive where the Duo just comes up with a blank screen when I try to use it for USB Boot. If you follow these steps and can’t boot, try a different USB drive.</p>
<p><strong>Step Ten: Copy the image contents to the Flash Drive<br />
</strong>I just did this with xcopy. In this case, my flash drive is E:, but obviously you should swap in the drive letter for your flash drive.</p>
<pre class="brush:plain">xcopy c:\winpe_x86\ISO\*.* /e e:</pre>
<p><strong>Step Eleven: Boot your Netbook from the USB drive<br />
</strong>With the USB drive containing the image + the network dongle both plugged in, boot the machine and trigger USB boot. For the Duo, you can hit F12 during boot to manually select your boot source. Your custom image will be booted, and it will then look out on the network to find the WDS server to load images from. Select the image you want and where you want to install it and away you go.</p>
<p>One thing to remember is that you&#8217;re adding the  USB network dongle driver to the WDS discovery boot image, but <em>not</em> to the image that gets installed via WDS. So chances are you&#8217;ll need the driver again once you get the image installed. I put that driver on the same USB key that holds the boot image. That way I can easily install the driver once Windows is installed.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Devhawk?a=W9S_jxlOh1U:VmaabQZdbCY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=W9S_jxlOh1U:VmaabQZdbCY:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=W9S_jxlOh1U:VmaabQZdbCY:XQ266DUsA9M"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=XQ266DUsA9M" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=W9S_jxlOh1U:VmaabQZdbCY:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=W9S_jxlOh1U:VmaabQZdbCY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Devhawk?i=W9S_jxlOh1U:VmaabQZdbCY:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Devhawk/~4/W9S_jxlOh1U" height="1" width="1"/>]]></content:encoded><description>Given that I work on the Windows team, it shouldn’t come as a surprise that we use Windows Deployment Services to distribute Windows images internally. For most machines, it’s really convenient. You trigger a network boot (on my Lenovo, you press the “ThinkVantage” button during start up), select the image to install and what partition [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devhawk.net/2011/05/19/build-your-own-wds-discovery-image/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">2</slash:comments></item><item><title>Playing With The Lead</title><link>http://devhawk.net/2011/04/25/playing-with-the-lead/</link><category>Sports</category><category>Hockey</category><category>Playoffs</category><category>Washington Capitals</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DevHawk</dc:creator><pubDate>Mon, 25 Apr 2011 00:03:07 PDT</pubDate><guid isPermaLink="false">http://devhawk.net/?p=1847</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<div id="attachment_1848" class="wp-caption alignright" style="width: 220px"><a href="http://www.nhl.com/ice/recap.htm?id=2010030115"><img class="size-medium wp-image-1848  " title="Ovechkin Celebrates the Capitals' First Goal in Game 5" src="http://devhawk.net/wp-content/uploads/2011/04/113092763_slide-300x200.jpg" alt="Ovechkin Celebrates the Capitals' First Goal in Game 5" width="210" height="140" /></a><p class="wp-caption-text">Ovechkin Celebrates the Capitals&#39; First Goal in Game 5</p></div>
<p>Obviously, the <a href="http://www.nhl.com/ice/recap.htm?id=2010030115">Capitals win Saturday</a> was huge. It put them through to the second round for only the second time since their trip to the Stanley Cup Finals in 1998. It was also the first playoff series in the Ovechkin/Boudreau era to be settled without having to go the full seven games. The Capitals have played four seven-game playoff series in the past three years. It&#8217;ll be nice for the Caps to have the extra time off to rest and heal for a change.</p>
<p>As we wait to see who the Capitals will face in the Conference Semifinals, I want to highlight what I think is a huge change from series from the past three years: The Capitals went 3-1 against the Rangers when they held the series lead. Over the four series in 2008-2010, the Capitals went 2-5 in games where they held the series lead. That&#8217;s pretty bad. It gets even worse when you realize that both of those wins came early in their respective series. The Caps won game #2 against the Penguins in &#8217;09 to take a 2-0 series lead. Last year, they won game #3 against the Canadiens to take a 3-1 series lead. In both of those series, the Capitals proceeded to lose the next three games. They eventually lost both series.</p>
<p>So when the Caps <a href="http://www.nhl.com/ice/recap.htm?id=2010030113">lost game 3</a> and we&#8217;re down 3-0 at the start of the 3rd period <a href="http://www.nhl.com/ice/recap.htm?id=2010030114">in game 4</a>, it certainly seemed as if the Capitals we&#8217;re going to choke away another series lead like they had the past two years. Instead, they came out for the third period and played like their backs were against the wall. And while the Capitals&#8217; have sucked at defending a series lead, they have played very well well when facing elimination &#8211; 6-3 to be exact in the past three years.</p>
<p>If the <a href="http://www.usatoday.com/sports/hockey/nhl/capitals/2011-04-19-alex-ovechkin-capitals-playoffs_N.htm">new-and-improved Caps</a> can combine their traditional talent of playing from behind in the series with the ability to <del>drive nails into coffins</del> win games when they have the series lead, the Capitals will be a very hard team to beat this year.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Devhawk?a=iyuX-CPa1wI:7ApgyScuzNQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=iyuX-CPa1wI:7ApgyScuzNQ:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=iyuX-CPa1wI:7ApgyScuzNQ:XQ266DUsA9M"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=XQ266DUsA9M" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=iyuX-CPa1wI:7ApgyScuzNQ:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=iyuX-CPa1wI:7ApgyScuzNQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Devhawk?i=iyuX-CPa1wI:7ApgyScuzNQ:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Devhawk/~4/iyuX-CPa1wI" height="1" width="1"/>]]></content:encoded><description>Obviously, the Capitals win Saturday was huge. It put them through to the second round for only the second time since their trip to the Stanley Cup Finals in 1998. It was also the first playoff series in the Ovechkin/Boudreau era to be settled without having to go the full seven games. The Capitals have played four [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devhawk.net/2011/04/25/playing-with-the-lead/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments></item><item><title>Shocker at Staples</title><link>http://devhawk.net/2011/04/20/shocker-at-staples/</link><category>Sports</category><category>Epic Fail</category><category>Hockey</category><category>Los Angeles Kings</category><category>Playoffs</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DevHawk</dc:creator><pubDate>Wed, 20 Apr 2011 09:51:15 PDT</pubDate><guid isPermaLink="true">http://devhawk.net/2011/04/20/shocker-at-staples/</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>My passion for the Washington Capitals is <a href="http://devhawk.net/tag/washington-capitals/">well documented</a>. What you don’t know is that I was actually a Los Angeles Kings fan before I was a Capitals fan. </p>
<p>I wasn’t into hockey growing up, but I caught hockey fever when I was going to college in southern California. That was the Gretzky era&#160; &#8211; he led them to the Stanley Cup finals the year after I graduated from USC – and the Kings were the hottest ticket in town. But that era faded with the 1994 lockout, bankruptcy, trading Gretzky to the Blues in 1996 and missing the playoffs four years in a row. But unlike most of my then-fellow Angelenos, I stayed on the Kings bandwagon. </p>
<p>In 1998, the Kings finally made it back to the playoffs, facing the St. Louis Blues (Gretzky had moved on to the Rangers by then). The Kings had lost the first two games in St. Louis, but held a 3-0 lead in the 3rd period of Game #3. Then this happened:</p>
<blockquote><p>In a game that will be talked about for years to come, the Kings saw a 3-0 lead wiped out by four St. Louis power-play goals within a 3:07 span after defenseman Sean O&#8217;Donnell received a fighting major for beating down the Blues&#8217; Geoff Courtnall, who had knocked down goaltender Jamie Storr.</p>
<p>Pascal Rheaume, Brett Hull and Pierre Turgeon scored goals to tie the score and then Terry Yake knocked in the game-winner as the Blues rallied for a 4-3 victory Monday night to take a commanding 3-0 lead in their best-of-seven playoff series before a sellout crowd of 16,005 at the Great Western Forum.</p>
<p><a href="http://articles.latimes.com/1998/apr/28/sports/sp-43929">Meltdown on Manchester</a>       <br />Los Angeles Times, April 28 1998</p>
</blockquote>
<p>I was one of those 16,005. It was the ugliest feeling I have ever had walking out of a hockey game. </p>
<p>I imagine the fans at the Staples Center last night are familiar with it.</p>
<blockquote><p>&quot;I&#8217;ve never seen anything like it,&quot; defenseman Matt Greene said after the Kings squandered a 4-0 lead and gave up a season-high five goals in the second period. </p>
<p>San Jose winger Devin Setoguchi finished off a three-on-two break with a deadly wrist shot past Jonathan Quick 3 minutes and 9 seconds into sudden-death play, stunning a Staples Center crowd that had been taken for a long and wild ride all night. What seemed like a chance for the Kings to take control of the series instead became a potentially devastating defeat that left the Sharks leading the first-round series two games to one with Game 4 scheduled for Staples Center on Thursday.</p>
<p><a href="http://www.latimes.com/sports/la-sp-elliott-kings-sharks-20110420,0,7599986.column">Kings turn four-goal lead into 6-5 overtime loss to Sharks in Game 3</a>&#160; <br />Los Angeles Times, April 20 2011</p>
</blockquote>
<p>I watched the 2nd period last night at first with jubilation (Kings go up 4-0 less than a minute into the period), then slight concern (Sharks finally get on the board), then increasing concern (Sharks close the game to 4-3), then relief (Kings score :15 seconds later to make it 5-3) and finally horror (Sharks score twice in the last :90 seconds to tie the game 5-5). </p>
<p>I couldn’t watch any more after that. I saw that it had gone to overtime, but I didn’t know who won until I looked it up online this morning. </p>
<p>Frozen Royalty calls it the “<a href="http://frozenroyalty.net/2011/04/20/frozen-royalty-audio-la-kings-turn-4-0-lead-into-flop-on-figueroa-in-game-3-vs-san-jose/">Flop on Figueroa</a>”. Purple Crushed Velvet <a href="http://purplecrushedvelvet.blogspot.com/2011/04/i-believed-in-you-kings-you-broke-my.html">has a broken heart</a>. Hockeywood calls it an “<a href="http://lifeinhockeywood.com/2011/04/20/game-3.aspx">epic meltdown</a>” but then <a href="http://i441.photobucket.com/albums/qq139/hockeywood/keepcalm.jpg">suggests</a> Kings fans need to “Keep Calm and Carry On” because “One game a playoff series does not make”. </p>
<p>Technically, that’s true – the Kings are only down 2-1 and have shown <a href="http://espn.go.com/nhl/recap?gameId=310416018">they can win in San Jose</a>. But with momentum shift of blowing a 4 goal lead, I don’t see how the Kings win this series. I’d like to be wrong, but I don’t see how they win another game this year, much less the series.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Devhawk?a=BK5i0pwu5bc:a2tnhCZJVtg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=BK5i0pwu5bc:a2tnhCZJVtg:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=BK5i0pwu5bc:a2tnhCZJVtg:XQ266DUsA9M"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=XQ266DUsA9M" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=BK5i0pwu5bc:a2tnhCZJVtg:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=BK5i0pwu5bc:a2tnhCZJVtg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Devhawk?i=BK5i0pwu5bc:a2tnhCZJVtg:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Devhawk/~4/BK5i0pwu5bc" height="1" width="1"/>]]></content:encoded><description>My passion for the Washington Capitals is well documented. What you don’t know is that I was actually a Los Angeles Kings fan before I was a Capitals fan. I wasn’t into hockey growing up, but I caught hockey fever when I was going to college in southern California. That was the Gretzky era&amp;#160; &amp;#8211; [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devhawk.net/2011/04/20/shocker-at-staples/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">1</slash:comments></item><item><title>DevHawk Has A Brand New Blog (Engine)</title><link>http://devhawk.net/2011/04/16/devhawk-has-a-brand-new-blog-engine/</link><category>General Geekery</category><category>Blogging</category><category>dasBlog</category><category>WordPress</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DevHawk</dc:creator><pubDate>Sat, 16 Apr 2011 21:36:33 PDT</pubDate><guid isPermaLink="false">http://devhawk.net/?p=1568</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>So it would make a crappy song, but the title of this post is still true. This is my first post on the new-and-improved DevHawk running on <a href="http://wordpress.org/">WordPress</a>.</p>
<p>I decided a while back that it was time to modernize my blog engine &#8211; <a href="http://dasblog.info/">DasBlog </a>is getting a little long of tooth and there hasn&#8217;t been a new release in over two years. I spent some time looking at different options, but settled on WordPress for much the same reasons <a href="http://windowsteamblog.com/windows_live/b/windowslive/archive/2010/09/27/wordpress-com-and-windows-live-partnering-together-and-providing-an-upgrade-for-30-million-windows-live-spaces-customers.aspx">Windows Live did</a>: &#8220;host of impressive capabilities&#8221;, scalable and widely used. Also, it&#8217;s very extensible, has about a billion available themes and has a very active development community. I was able to find plugins to <a href="http://www.viper007bond.com/wordpress-plugins/clean-archives-reloaded/">replicate DasBlog&#8217;s archive page</a> as well as <a href="http://www.emmanuelgeorjon.com/en/plugin-eg-archives-1745/">archive widget</a> that replicated custom functionality that I added to DasBlog via <a href="http://dasblog.info/CreatingCustomMacrosForDasBlog.aspx">custom macros</a>.</p>
<p>Of course, moving eight years worth of posts to a new engine took quite a bit of effort and planning. I wanted to make sure that I maintained all my posts and comments as well as take advantage of some of the new features available to me from WordPress. For example, I took the opportunity to flatten my list of categories and move most of them to be tags. I also went thru and converted all of my old code snippets to use <a href="http://alexgorbatchev.com/SyntaxHighlighter/">SyntaxHighlighter</a> instead of <a href="http://codehtmler.codeplex.com/releases/view/9505">CodeHTMLer</a> or <a href="http://devhawk.net/2009/04/05/pygments-for-windows-live-writer/">Pygments for WL Writer</a>. Of course, I automated almost all of the conversion process. For anyone interested in following my footsteps, I <a href="https://bitbucket.org/devhawk/dasblog-wxr-convert">published my PowerShell scripts</a> for converting DasBlog to the <a href="http://ipggi.wordpress.com/2011/03/16/the-wordpress-extended-rss-wxr-exportimport-xml-document-format-decoded-and-explained/">WordPress WXR import/export format</a> up on BitBucket.</p>
<p>Not only did I want to save all my data, I also wanted to make sure I saved my search engine mojo (if I have any left after blogging a paltry six times in the past sixteen months). So I hacked up a WordPress plugin to redirect my old DasBlog links to the new WordPress URLs. That&#8217;s <a href="https://bitbucket.org/devhawk/devhawk-redirect">up on BitBucket as well</a> for anyone who wants it. It&#8217;s got some DevHawk specific bits in there (like the category cleanup) but if you tore those parts out it would be usable for any DasBlog-to-WordPress conversion. If there&#8217;s interest, maybe I&#8217;ll write up how the conversion scripts and redirect plugin work.</p>
<p>The plan is that now that I&#8217;m finally done moving my blog over the new back end, I will actually start writing on a more regular basis again. We&#8217;ll see how that works out.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Devhawk?a=OVOx5NpeRKc:63MrQmbPUaU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=OVOx5NpeRKc:63MrQmbPUaU:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=OVOx5NpeRKc:63MrQmbPUaU:XQ266DUsA9M"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=XQ266DUsA9M" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=OVOx5NpeRKc:63MrQmbPUaU:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=OVOx5NpeRKc:63MrQmbPUaU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Devhawk?i=OVOx5NpeRKc:63MrQmbPUaU:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Devhawk/~4/OVOx5NpeRKc" height="1" width="1"/>]]></content:encoded><description>So it would make a crappy song, but the title of this post is still true. This is my first post on the new-and-improved DevHawk running on WordPress. I decided a while back that it was time to modernize my blog engine &amp;#8211; DasBlog is getting a little long of tooth and there hasn&amp;#8217;t been a [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devhawk.net/2011/04/16/devhawk-has-a-brand-new-blog-engine/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments></item><item><title>Variadic Powershell Functions With Optional Named Params</title><link>http://devhawk.net/2011/02/02/variadic-powershell-functions-with-optional-named-params/</link><category>Development</category><category>PowerShell</category><category>Python</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DevHawk</dc:creator><pubDate>Wed, 02 Feb 2011 21:38:51 PST</pubDate><guid isPermaLink="false">http://41f3e3dd-5165-4025-b4dc-8d216fb63d4e</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>I’ve been doing a little CPython coding lately. Even though I <a href="http://devhawk.net/2009/10/27/Joining+Windows.aspx">left the IronPython team</a> a while ago (and IronPython is now <a href="http://blogs.msdn.com/b/jasonz/archive/2010/10/21/new-components-and-contributors-for-ironpython-and-ironruby.aspx">under new management</a>) I’m still still a big fan of the Python language and it’s great for prototyping. </p>
<p>However, one thing I don’t like about Python is how it uses the <a href="http://docs.python.org/using/cmdline.html#envvar-PYTHONPATH">PYTHONPATH environment variable</a>. I like to keep any non-standard library dependencies in my project folder, but then you have to set the PYTHONPATH environment variable in order for the Python interpreter to resolve those packages. Personally, I wish there was a command line parameter for specifying PYTHONPATH – I hate having to modify the environment in order to execute my prototype. Yes, I realize I don’t have to modify the machine-wide environment – but I would much prefer a stateless approach to an approach that requires modification of local shell state.</p>
<p>I decided to build a <a href="http://cid-0d9bc809858885a4.office.live.com/self.aspx/DevHawk%20Content/Powershell/cpy.ps1">Powershell script</a> that takes allows the caller to invoke Python while specifying the PYTHONPATH as a parameter. The script saves off the current PYTHONPATH, sets it to the passed in value, invokes the Python interpreter with the remaining script parameters, then sets PYTHONPATH back to its original value. While I was at it, I added the ability to let the user optionally specify which version of Python to use (defaulting to the most recent) as well as a switch to let the caller chose between invoking <a href="http://docs.python.org/using/windows.html#executing-scripts">python.exe or pythonw.exe</a>.</p>
<p>The details of the script are fairly mundane. However, building a Powershell script that supported optional named parameters and collected all the unnamed arguments together in a single parameter took a little un-obvious Powershell voodoo that I thought was worth blogging about.</p>
<p>I started with the following param declaration for my function</p>
<pre class="brush: powershell">
param (
    [string] $LibPath="",
    [switch] $WinApp,
    [string] $PyVersion=""
)
</pre>
<p>These three named parameters control the various features of my Python Powershell script. Powershell has an <a href="http://technet.microsoft.com/en-us/library/dd347675.aspx">automatic variable</a> named $args that holds the arguments that don’t get bound to a named argument. My plan was to pass the contents of the $args parameter to the Python interpreter. And that plan works fine…so long as none of the non-switch parameters are omitted. </p>
<p>I mistakenly (and in retrospect, stupidly) thought that since I had provided default values for the named parameters, they would only bind to passed-in arguments by name. However, Powershell binds non-switch parameters by position if the names aren’t specified . For example, this is the command line I use to execute tests from the root of my prototype project:</p>
<pre class="brush: text">
cpy -LibPath .Libsite-packages .Scriptsunit2.py discover -s .src
</pre>
<p>Obviously, the $LibPath parameter gets bound to the “.Libsite-package” argument. However, since $PyVersion isn’t specified by name, it gets bound by position and picks up the “.Scriptsunit2.py” argument. Clearly, that’s not what I intended – I want “.Scriptsunit2.py” along with the remaining arguments to be passed to the Python interpreter while the PyVersion parameter gets bound to its default value.</p>
<p>What I needed was more control over how incoming arguments are bound to parameters. Luckily, Powershell 2 introduced <a href="http://technet.microsoft.com/en-us/library/dd347600.aspx">Advanced Function Parameters</a> which gives script authors exactly that kind of control over parameters binding. In particular, there are two custom attributes for parameters that allowed me to get the behavior I wanted:</p>
<ul>
<li>Position – allows the script author to specify what positional argument should be bound to the parameter. If this argument isn’t specified, parameters are bound in the order they appear in the param declaration</li>
<li>ValueFromRemainingArguments – allows the script author to specify that all remaining arguments that haven’t been bound should be bound to this parameter. This is kind of like the Powershell equivalent of <a href="http://msdn.microsoft.com/en-us/library/w5zay9db.aspx">params in C#</a> or the <a href="http://en.wikipedia.org/wiki/Stdarg.h#Declaring_variadic_functions">ellipsis in C/C++</a>. </li>
</ul>
<p>A little experimentation with these attributes yielded the following solution:</p>
<pre class="brush: powershell">
param (
    [string] $LibPath="",
    [switch] $WinApp,
    [string] $PyVersion="",
    [parameter(Position=0, ValueFromRemainingArguments=$true)] $args
)
</pre>
<p>Note, the first three parameters are unchanged. However, I added an explicit $args parameter (I could have named it anything, but I had already written the rest of my script against $args) with the Position=0 and ValueFromRemainingArguments=$true parameter attribute values.The combination of these two attribute values means that the $args parameter is bound to an array of all the positional (aka unnamed) incoming arguments, starting with the first position. In other words – exactly the behavior I wanted.</p>
<p>Not sure how many people need a Powershell script that sets PYTHONPATH and auto-selects the latest version of Python, but maybe someone will find it useful. Also, I would think this approach to variadic functions with optional named parameters could be useful in other scenarios where you are wrapping an existing tool or utility in PowerShell, but need the ability to pass arbitrary parameters thru to the tool/utility being wrapped.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Devhawk?a=CxeQB2Gvfv4:_HLV2RAKE70:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=CxeQB2Gvfv4:_HLV2RAKE70:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=CxeQB2Gvfv4:_HLV2RAKE70:XQ266DUsA9M"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=XQ266DUsA9M" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=CxeQB2Gvfv4:_HLV2RAKE70:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/Devhawk?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Devhawk?a=CxeQB2Gvfv4:_HLV2RAKE70:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Devhawk?i=CxeQB2Gvfv4:_HLV2RAKE70:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Devhawk/~4/CxeQB2Gvfv4" height="1" width="1"/>]]></content:encoded><description>I’ve been doing a little CPython coding lately. Even though I left the IronPython team a while ago (and IronPython is now under new management) I’m still still a big fan of the Python language and it’s great for prototyping. However, one thing I don’t like about Python is how it uses the PYTHONPATH environment [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devhawk.net/2011/02/02/variadic-powershell-functions-with-optional-named-params/feed/</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">4</slash:comments></item></channel></rss>

