Dave Noderer's Blog

December 2007 Entries

The Guy From Boston on Leno!

Update: "The Guy From Boston" on the Tonight Show with Jay Leno has been confirmed for Tuesday, Jan 15th..

Wow!! Way to go Joey!

Keep up with the guy's video rants every Wednesday at: http://www.theyguyfromboston.com


Install Fest at Devry on 12/11/2007

WOW!! That was fun!

The room was packed with 50 people and their machines loading Visual Studio 2008 while Joe Healy (www.devfish.net) talked about various Visual Studio Features.

People started arriving at 5PM with Ed Hil from DeVry checking identiies and dna samples. Up to 6:30 PM only the 1st 50 on the list who showed up with a machine got a copy. During this time we kept a list of people as they arrived and the order they arrived in. At 6:30 we opened it up and had just enough copies for everyone!

As each person finished, we took their picture with their completed install screen which Joe will post on his website.

But... this was no ordinary presentation.. the room was "buzzing" all night as people are talking about the installs and other topics too. A few people had problems and were awared the mechanical "bug" by Joe as a prize but most were able to finish. One person had a big server box and 24" monitor! Another had an older system which unfortunately did not have a DVS player.

A few of the DVD's were bad but everyone shared and more importantly got the code for the boxed version.

Everyone got a Visual Studio 2008 T-shirt and thanks to Sherlock Technologies (www.sherstaff.com) and Mike Wasserman, we had pizza and soda.

A big big thanks to Joe Healy, our Microsoft Developer Evangalist for making this possible... Hey now we know how to fill the room each month, give everyone $600 of free software!

 See photos through Joe Healy's blog: http://www.devfish.net/FullBlogItemView.aspx?BlogId=473

Review: "Silverlight 1.0 Unleashed"

Sams - ISBN-13: 978-0-672-33007-0 by Adam Nathan

This is a nice book in a number of ways... fairly short, limited scope, nice color pictures and full of great tips that could save you some time.

Adam covers the basics of Silverlight 1.0 which is pretty straight forward and will give you a good handle on what it does and does not do. Even though Silverlight 2.0+ is of more interest to most of us, this is a great way to start!

A bulk of the book is about basic XAML as implemented in Silverlight 1.0. If you are not familiar with WPF, this is a good tutorial on both drawing and events. If you are familiar with WPF in depth, a review of this material will show you where Silverlight is different.

An example of the tips, there are a lot of them in shaded boxes throughout the booik, are a pair of warnings.on pages 28 and 29 showing some of the quirks of the syntax where in the Silverlight.CreateObject. In particular the isWindowless must be specified true/false as a string "true" where as inplaceInstallPrompt must not be specified as a string.. true to work.

He also spends a lot of space on handling events, bubbling of events and some of the more suble "features". Although it makes perfect sense, the silverlight control must have focus to receive keystrokes. Only the root silverlight control can receive the gotfocus and lostfocus events.

Anyway a very nice book with lots of examples.

Now give me the CLR and some controls in Silverlight 2.0 and I'll be a happy camper!

Email validation regex

I've been using regular expressions to validate email for quite a while. Recently I ran across a case where the email started with a number like 4thisisatest@computerways.com which was rejected.

Investigating some more I found a better expression at:


The expression i'm using now is:

(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(2([0-4]\d|5[0-5])|1?\d{1,2})(\.(2([0-4]\d|5[0-5])|1?\d{1,2})){3} \])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))

Which works for the case above...

Although there are online and even free tools for regex testing, I still use regex buddy: www.regexbuddy.com which does cost but is very useful to me.