Thursday, November 09, 2006 8:10 AM bart

TechEd 2006 Developers - Day Four

Damn God, what a busy day this was. Yesterday at our Belgian country party, organized together with Luxembourg and France, I didn't make it that late to go back to the hotel and implement my next (big) idea. Let's tell you the complete story...

For Speaker Idol I had to present today in the semi-finals with a topic of choice, so I took the great Windows Vista Application Recovery API for my five minutes demo. Nevertheless, yesterday night I thought about creating another presentation too on another great technology and lots of things popped up in my mind, including dynamic WF adaptation, Windows Live Messenger plug-ins and the Windows RSS platform (otherwise known as the Microsoft Feeds API). The latter one, on which I blogged some time ago (post 1, post 2, post 3), made it to further consideration and so I sat down in my hotel at 1:30 AM in the morning, writing a simple RSS viewer in Windows Forms for a 5 minutes presentation with 4 slides (one saying "Demo" and one holding the title). Exactly what people like to see I thought, lots of code live on stage.

In fact I do have to mention that yesterday, before the country party, I was at the Speaker Idol Theatre to set up my demo projection which didn't work out with Vista RC1 (I'm outdated I know, luckily it RTM'ed today) due to known projection errors. The solution we came up with was RDP-ing in to the Vista machine from the computer on the desk. A few network connectivity problems later, I joined the fellow Belgians for a drink at Havana Club.

So right, there I was at 12:30 at the Speaker Idol Theatre with the decision to leave it up to the audience to choose one of both presentations. Apparently I had a bunch of gurus over there who wanted to see interop with the Windows Vista APIs, and even beter they liked it. I've posted the code sample about the Windows Vista Application Recovery API for download.

Demo instructions:

  1. Download, extract and open in VS2005.
  2. Set #define DEMO disabled (just comment the first line of Program.cs out).
  3. Press CTRL-F5 and let the app crash.
  4. Now turn #define DEMO on.
  5. Press CTRL-F5 again, and see Vista calling the recovery handler and restarting the application.

So I won the semi-finals in Wave 3, somewhere around 1:30 PM. Have to say I was pretty warmed up with lots of adrenaline pumping through my veins. Which was required since I had to go back on stage a few hours later in the finals at 2:45 PM. I'd like to give the audience the choice again, and in that case I'd try to convince them to choose for the cool RSS demo. Or, even better, why no additional item of choice... So I went back to my PowerShell booth to open my laptop and start to do some coding on Windows PowerShell: Your first Windows PowerShell cmdlet in 5 minutes. With the time ticking, only 1 hour left, 45 minutes left, 10 minutes chatting to other folks out there, 35 minutes left, ... (well, you get the idea) I managed to come up with a very compact code sample in my fingers, ready to go.

Again I gave the audience the choice, this time between the Windows RSS Platform stuff in IE7 and the Windows PowerShell cmdlet, putting the live coding pressure on. Guess what they chose, exactly: the Windows PowerShell cmdlet development which I posted right here. Thanks to my ATE colleague Jeffrey Snover (yes, Mr. PowerShell himself!) to point out I could make life easier by deriving from PSSnapIn instead of CustomPSSnapIn to build the snap-in for my cmdlet. No plumbing around with configuration entries and stuff, PS just reflects against the assembly adding all cmdlets and providers to the shell.

Demo instructions:

  1. Download and extract.
  2. Compile in VS2005 with CTRL-SHIFT-B.
  3. Open a command-line with the environment path set to the .NET Framework tools (the Windows SDK or VS2005 prompt will do) and (on Vista) run it elevated as administrator.
  4. Run installutil.exe -i DemoCmdlet.dll from the bin\debug folder where you compiled to.
  5. Open Windows PowerShell.
  6. Execute get-pssnapin -registered to make sure your snap-in is present.
  7. Execute add-pssnapin Greetings.
  8. Now run get-greetings -Name Bart and see your cmdlet in action.

The judges apparently liked the coding on stage with no strings attached and I seem to have won the competition (hopefully no radio alarm clock will wake me up, luckily I didn't brought one to Barcelona). So, come and see me next year presenting some session on some topic at some timeslot.

Right, I'm off now to the last session of the day (and the only one for me, I arrived rather late at the conference this morning :$) on How to Make Managed Code Fly? by Claudio Caldato Building Web Parts the Smart Way by Belgian community fellows Jan Tielens and Patrick Tisseghem. Tomorrow will be another great day. I'll catch up a bit on my ATE duties in the forenoon and hope to be able to join some sessions as well.

PS: Let's not forget about the really important things: Windows Vista went RTM today. | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks

Filed under: ,


# re: TechEd 2006 Developers - Day Four

Thursday, November 09, 2006 8:45 AM by Tom Mertens

Congratulations! Great job...

# re: TechEd 2006 Developers - Day Four

Thursday, November 09, 2006 9:28 AM by David Boschmans

Congrats Bart! Well deserved :-) See you next year on stage at TechEd: Developers!

# re: TechEd 2006 Developers - Day Four

Thursday, November 09, 2006 11:56 AM by Alex Thissen

Great going. Congratulations. Did you do presentations before your Speaker Idol appearance? If I'm at TechEd next year, I will definitely check out your session.

# Bart De Smet Is TechEd:Developers' Speaker Idol

Friday, November 10, 2006 2:28 AM by Tom's MSDN Belux Corner

The Speaker Idol community contest at TechEd:Developers has just finished. And the winner is... Bart

# re: TechEd 2006 Developers - Day Four

Sunday, November 12, 2006 2:57 AM by Andre Obelink

As one of the judges of Speakers Idol I have to say: GREAT JOB! It was good to see that you are able to explain, code, fix bugs and still have contact with the audience. I'm more then happy to add you to the International Speakers Bureau of INETA Europe!

# IIS7: The web server for Windows Vista and Beyond

Thursday, February 15, 2007 12:01 AM by David Boschmans Weblog

While working on the agenda for the developer sessions at Dev & IT-Pro Days 2007 , I had some trouble

# IIS7: The web server for Windows Vista and Beyond » D’ Technology Weblog — Technology, Blogging, Gadgets, Fashion, Life Style.