CTTDNUG: ASP.NET MVC Talk Follow Up

A couple of weeks ago I had the opportunity to speak at the Canadian Technology Triangle .NET Users Group.

We had a great crowd of over 60 people eager to learn more about ASP.NET MVC. I was able to do a mix of Visual Studio 2008 and 2010 demos, as well as showcase a production application,  a crowd-sourced translation dictionary for First Nation Languages, currently supporting Maliseet and Mi’kmaw languages (www.sayitfirst.ca).

A question came up in the talk about content management systems and ASP.NET MVC. There was one in particular that intrigued me, but I couldn’t remember the name. After doing some digging it was www.n2cms.com. The interesting angle of N2 is that it is very lightweight, and not meant to be the shell of your entire site, but rather works within your application to serve up content where appropriate. I hope to use this on a future project.

Make sure to check out these other valuable resources as you learn ASP.NET MVC:

Toronto Code Camp 2010: Blendability Follow Up

This past weekend I gave a talk on “Blendability”; The ability to maintain and leverage blend design time compatibility with your WPF and Silverlight projects. Thanks to everybody who came out to the talk, we had some good discussions despite the oppressive heat in the room. You’ll find my slides above. As some of you have requested, here you can find my demos including the MVVM template that was used in the Blend 4 previews that demonstrates the behavior technique for calling methods on your view models.

Toronto Code Camp 2010: Ultimate Architecture Experience Follow Up

This is just a quick follow up post from my demo at the Toronto Code Camp last weekend. Thanks for everybody who came out.

In addition to my slides, here ere are a few resources that will help you learn more about the architecture tools in Visual Studio 2010 Ultimate Edition:

  • The .NET Pet Shop that I used as a sample is available for download.
  • Walkthrough: MSDN How-To’s on Modeling in 2010
  • Blogs: Cameron Skinner, Peter Provost and last but not least Chris Lovett who has some most awesome video demos and tips for dealing with large diagrams. He also provides some samples for those that are interested in learning more about Directed Graph Markup Language for creating their own diagram generators.
  • The Patterns and Practices Team has released a set of templated layered diagrams for various references architectures.

Toronto Code Camp 2010 Keynote: Building the Right Software

Opening Keynote by Joey DeVilla.

I had the privilege to open up the 2010 Toronto Code Camp last week. It’s hard to know what to talk about to such a broad audience getting ready to kick off a great event with so many different sessions and tracks. A topic that is near and dear to my heart is about trying to figure out what makes software relevant. Ultimately it is about knowing your customer, very intimately so you can build the best experience for them.

With that said, I decided to step outside the world of software development to compare to successful invention/design stories and how they differed in their approach to “knowing their customer”.

Ron Popeil the famous pitchman and inventor of the Infomercial. Malcom Gladwell wrote an interesting article/biography Ron and his fellow pitchman. There is a lot to learn about Ron’s successes, but specifically how he focused on the audience that he knew. Himself. The chef, the entertainer, and the balding guy.

The contrasting story of Deborah Adler and her thesis turned Target product for a revolutionary redesign of the common pill bottle, is no less inspiring. You can watch/hear Deborah tell her own story from the Mix 09 keynote. Unlike Popeil, Deborah inspires her design efforts by forming such an intimate understanding of her customers that she refers to it as a “Love Affair”.

These two approaches are so simple and common sense that it’s hard to ignore them when compared to the way most of us build software and disconnect ourselves from our users through layers of requirement and specification documents.

The rest of the conference was a tremendous pleasure and wouldn’t have been possible without the efforts of the numerous volunteers, speakers and most importantly Chris Dufour who has the thankless job of herding this motley crew of geeks :) Thanks to all who made a contribution to this worthwhile event.

Architecture with Visual Studio 2010 At The Movies

This is just a quick follow up post from my demo at Visual Studio 2010 At The Movies last week. Thanks for everybody who came out, especially those from out of town.

I didn’t use any slides but I thought about recording my demo here. I may still get to that, but in the meantime, here are a few resources that will help you learn more about the architecture tools in Visual Studio 2010 Ultimate Edition:

  • The .NET Pet Shop that I used as a sample is available for download.
  • Walkthrough: MSDN How-To’s on Modeling in 2010
  • Blogs: Cameron Skinner, Peter Provost and last but not least Chris Lovett who has some most awesome video demos and tips for dealing with large diagrams. He also provides some samples for those that are interested in learning more about Directed Graph Markup Language for creating their own diagram generators.
  • The Patterns and Practices Team has released a set of templated layered diagrams for various references architectures.

My SketchFlow Player is empty:

image

Let me officially call this the Grey Screen of Death. You create a lovely sketch flow prototype in Expression Blend and it looks great at design time, but at run-time you get nothing. If you’re clever, you’ll try to dig into the java script error, which fortunately, the nice folks on the SketchFlow player team have raised up from the Silverlight layer. Unfortunately, I’ve found that most errors you get in here are pretty useless.

In my case I was recently getting:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; MS-RTC LM 8; .NET4.0C; .NET4.0E)
Timestamp: Wed, 31 Mar 2010 03:58:03 UTC

Message: Unhandled Error in Silverlight Application AG_E_PARSER_BAD_TYPE [Line: 5 Position: 78]   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
   at SilverlightPrototype_10Screens.Screen_1.InitializeComponent()
   at SilverlightPrototype_10Screens.Screen_1..ctor()
Line: 1
Char: 1
Code: 0

Your mileage might vary by attaching the visual studio debugger or running the application from within Visual Studio. In my case, I ended up doing some process of elimination pruning to see if I could back track and find the problem. I was having difficulty with some sample data in this case. It was tricky to find, but I’ve determined that you really don’t want a space in your SketchFlow project names. This will cause some erroneous code gen for the loading of the sample data in the sample data classes.

I absolutely love Expression Blend and SketchFlow, but finding this bug was one of those times when I’ve wanted to physically hurt my computer. I hope this helps some poor soul find the root cause a little faster than it took me.

And please share in the comments any other common reasons you’ve found SketchFlow Player failures.

VSTS Load Testing Deal of the Day: Why you need to buy a VS 2008 Load Agent before April 12th, 2010

There are important licensing changes happening imminently with VSTS as part of the transition from 2008 to 2010:

  • The current VSTS 2008 Test Edition can load test up to the limit of your machine. On a good day, this is 1000 users. That satisfies a lot of the cases where people need to do load testing. If it’s not, and you have multiple testers, you always all run load from your own machines, however you don’t get the same unified collection of statistics – that’s what the Load Agent & Controller software is for. It’s not a huge deal, and that is why most people don’t buy Load Agents.
  • If you did need centralized collection of statistics, you’d want to buy a number of load agents, one for each CPU, at least in the 2008 SKU. If you wanted to test 10K users, you’d probably want 10 licenses (at least).  But that is changing.
  • In 2010, load testing licensing is no longer done by the CPU, it’s done by the virtual users!
  • When you upgrade to VS 2010 Ultimate come April, your load testing ability changes to only 250 users from your workstation copy of Visual Studio 2010 Ultimate. If you want to test more, you’ll want load agents. The 2010 Load Agent SKU will give you 1000 virtual users. If your hardware is not up to snuff, or your web tests are intensive, you can install a single 2010 SKU on any number boxes, but you’re limited to a total of 1000 users per SKU that you purchase.

This all sounds rather terrible, but as part of the transition, MS is offering this:

If you have purchased a 2008 Load Agent with Software Assurance, as part of the upgrade to 2010, they will give you 5x1000 Virtual Users in the 2010 Load Agent SKU. Wow!

For your benefit of pricing, that means if you buy a 2008 Load Agent with SA today, for about $8,000 you will get 5000 users in 2010. That’s a very good deal. If you wait until after April 12th, you will no longer be able to buy the 2008 SKU and you’ll have to buy the 2010 SKU. At about $8,000 per 1000 users. So if you wanted to test 5000 users come April 12th and you didn’t take advantage to get in on this deal, it will cost you 5x$8000 = $40,000! I’d say that an 80% discount is pretty good – snap it up today.

If you need help purchasing a license prior to April 12th, drop me a note at bgervin @ objectsharp.com and I can hook you up.

Expression Blend Pro Tip: Add your own sample data lists

 image

Expression Blend (3 and higher) lets you create Sample Data Sources, and for each property, select a data type and sample data format, such as Lorem ipsum, Colors, Company Names, Names, etc. It’s a nice list, which is great for prototyping. However, if you want to add to this list of types, or just edit the potential values for each type, you can do edit a simple csv file.

In your Blend program directory, you will find a “SampleDataResources” folder. Inside this you will find an Images folder (in case you don’t set your own folder when creating a property) and a Data folder that stores the sample string data.

C:\Program Files (x86)\Microsoft Expression\Blend 3\SampleDataResources\en\Data

image

You can edit this file in excel and simply edit the values or even add new columns.

image

Windows 7 or Vista doesn’t find it cool to be editing any file underneath your Program Files folder, so you’ll either need to copy the file out to yoru documents folder and edit it there, and copy it back, or run excel with elevated admin privileges.

Enter the Stargate Destiny, courtesy of Silverlight, DeepZoom, Photosynth.

This may result in a “geekasm” – you’ve been warned.

http://stargate.mgm.com/photosynth

 

How’d they do it?


MGM Stargate Case Study

Join ObjectSharp for Silverlight on the Silver Screen – July 9 – Scotiabank Theatre Toronto

Silverlight 3 will soon be released.  And to properly celebrate the excitement of its release, ObjectSharp is teaming up with Microsoft to present an action-packed first look at the UX3 platform, live from the Scotiabank Theatre in Toronto. 

As one of the first companies to be featured on Microsoft’s Silverlight gallery, our consultants will share with you their deep knowledge of the next generation of tools.  Whether you are a designer, developer, or purely a marketing geek, you will not want to miss this blockbuster event.  You will see feature-rich demonstrations of Silverlight, Expression Blend, SketchFlow, and  Windows 7 touch technology.  You will also see how these tools can be used to dazzle your customers and gain attention for your brand.

 

 

 

 

 

 

For Developers and Designers:

  • See in-depth demonstrations of Silverlight 3, Expression Blend, and Windows 7 touch technology.
  • Learn how to quickly design user interactions with Microsoft SketchFlow
  • Take Designer/Developer work flow to the next level with Visual Studio Team System
  • Learn how to cut off your bosses head off and paste it on other people’s bodies with Expression Studio

 

For CTOs and Marketing Managers

  • Understand the benefits of creating line-of-business applications with Silverlight and .NET RIA Services
  • Learn how to integrate Rich Media and Advertising with the Microsoft Platform
  • See Touch technology and natural user interfaces bring kiosk applications to life with Windows 7 and WPF

Technologies You Will See:

  • Silverlight 3 featuring WPF & XAML
  • Expression Blend 3 featuring SketchFlow
  • Windows 7 featuring Touch
  • Microsoft Office SharePoint System 2007 (MOSS) for external facing web sites
  • Visual Studio 2010 Team System

Register Online   |   Watch the Movie Trailer

More Posts Next page »