2011年4月30日星期六

RouteDebugger 2.0

I?m at Mix11 all week and this past Monday, I attended the Open Source Fest where multiple tables were set up for open source project owners to show off their projects.

One of� my favorite projects is also a NuGet package named Glimpse Web Debugger. It adds a FireBug like experience for grabbing server-side diagnostics from an ASP.NET MVC application while looking at it in your browser. It provides a browser plug-in like experience without the plug-in.

One of the features of their plug-in is a route debugger inspired by my route debugger. Over time, as Glimpse catches on, I?ll probably be able to simply retire mine.

But in the meanwhile, inspired by their route debugger, I?ve updated my route debugger so that it acts like tracing and puts the debug information at the bottom of the page (click to enlarge).

About Us - Windows Internet Explorer

Note that this new feature requires that you?re running against .NET 4 and that you have the Microsoft.Web.Infrastructure assembly available (which you would in an ASP.NET MVC 3 application).

The RouteDebugger NuGet package includes the older version of RouteDebug.dll for those still running against .NET 3.5.

This takes advantage of a new feature included in the Microsoft.Web.Infrastructure assembly that allows you to register an HttpModule dynamically. That allows me to easily append this route debug information to the end of every request.

By the way, RouteDebugger is now part of the RouteMagic project if you want to see the source code.


computer repair shops desktop repair computer repair stores

Top MP3 Players to Look At

MP3 players allow users �to play music. It is a�means of compressing a sound sequence into a very small file, used as a way of downloading audio files from the Internet. It was developed in the 1980′s and brought to the Internet in 1997. The developers were Fraunhoffer-Gessellshaft and Thompson Multimedia. MP3 was developed to [...]

computer repairs onsite pc repair local computer repair

Is Saddam Hussein Still Alive?

No. WAIT ... no. [NYT]

Read more posts by Dan Amira

Filed Under: dead people, iraq, saddam hussein


computer network repair cheap computer parts computer repair store

Apple Stores Now Stocking Square Card Readers

Square first made a debut last year and began revolutionizing mobile payments. For those unfamiliar, this little card reader paired with an Android or iOS app lets anyone with a compatible smart phone accept credit card transactions on the go. The company takes away 2.75% per transaction and the rest ends up in your bank...

cheap computer parts computer repair store free virus protection

WordPress Theme: Bariumerous

Looking for a fresh and beautiful eco-friendly theme design for your blog? Check out our latest released Bariumerous WordPress theme. The crisp custom typography and soothing earth colors give a relaxing and refreshing feel to the design; making this blog theme a great choice for beauty, style, environment, travel and personal blog niches. Bariumerous WordPress [...]


Related posts:
  1. WordPress Theme: Palladiumize
  2. WordPress Theme: Xenonymous
  3. WordPress Theme: Molybdenument

pc repair prices computer repair companies pc repair business

Samsung Strikes Back, Slaps Apple With Patent Infringement Suits

Upping the stakes in a growing corporate showdown, Samsung filed patent infringement lawsuits against Apple in Tokyo, Seoul, and Germany today. This comes less than a week after Apple filed its own suit against the Korean electronics mogul in the US District Court of Northern California, alleging that Samsung violated the iPhone and iPad products’...

computer repair technician computer repair and maintenance pc repair shop

How to Unlock 4.3.2 on iPhone 4 / 3GS [Old & New Bootrom] with Ultrasn0w 1.2.2 [Guide]

In addition to PwnageTool 4.3.2, iPhone Dev Team has released the Ultrasn0w 1.2.2 for making it...

[[ This is a content summary only. Visit my website for full links, other content, and more! ]]


computer hardware repair mobile computer repair computer repair rates

Apple to build flagship store in Brisbane, Australia?s MacArthur Chambers building

Apple Retail watchdog site ifoAppleStore has dug up some information on Apple’s next flagship store, set to be completed in Brisbane,�Australia. According to the site, Apple is already underway with plans to renovate the MacArthur Chambers Building, filing 200 pages of paperwork with the Brisbane Planning and Development. The paperwork closely resembles what Apple has [...]

free virus scan and removal spyware remover computer service and repair

Download Nero Kwik Media Free

Nero Kwik Media is a free media manager that you can use to handle all your media files stored in your PC. Download Nero kwik Media free

pc support fix computer computer support

WordPress Theme: Antimonified

Equipped with a fancy fifteen (15) slider transitions and designed with warm and bold colors to create impact, we bring you a newly released blog theme, Antimonified WordPress theme. Antimonified WP Theme has a beautiful custom typography to add elegance to your blog. This WP theme is one of our freemium WP themes which works [...]


Related posts:
  1. WordPress Theme: Molybdenument
  2. WordPress Theme: Tincredible
  3. WordPress Theme: Xenonymous

repair pc online computer repair software anti malware

Podcast: iPhone 5 mockups, world mode iPhones, and iOS in big business

Download Details [Download][Subscribe in iTunes][RSS Feed] Show Notes Hosts: Joshua Schnell,�Stephen Hackett, and Myke Hurley The iPhone 5 mockup from This is my next Will we be seeing World Mode iPhones? The iPhone and iPad in big business Comments News this time of year is always a little iPhone heavy. We’re trying hard to avoid [...]

onsite computer repair computer repair shop virus removal

Routing Regression With Two Consecutive Optional Url Parameters

It pains me to say it, but ASP.NET MVC 3 introduces a minor regression in routing from ASP.NET MVC 2. The good news is that there?s an easy workaround.

The bug manifests when you have a route with two consecutive optional URL parameters and you attempt to use the route to generate an URL. The incoming request matching behavior is unchanged and continues to work fine.

For example, suppose you have the following route defined:

routes.MapRoute("by-day",          "archive/{month}/{day}",         new { controller = "Home", action = "Index",              month = UrlParameter.Optional, day = UrlParameter.Optional } );

Notice that the month and day parameters are both optional.

routes.MapRoute("by-day",          "archive/{month}/{day}",         new { controller = "Home", action = "Index",              month = UrlParameter.Optional, day = UrlParameter.Optional } );

Now suppose you have the following view code to generate URLs using this route.

@Url.RouteUrl("by-day", new { month = 1, day = 23 }) @Url.RouteUrl("by-day", new { month = 1 }) @Url.RouteUrl("by-day", null)

In ASP.NET MVC 2 the above code (well actually, the equivalent to the above code since Razor didn?t exist in ASP.NET MVC 2) would result in the following URLs as you would expect:

  • /archive/1/23
  • /archive/1
  • /archive

But in ASP.NET MVC 3, you get:

  • /archive/1/23
  • /archive/1

In the last case, the value returned is null because of this bug. The bug occurs when two or more consecutive optional URL parameters don?t have values specified for URL generation.

Let?s look at the workaround first, then we?ll dive deeper into why this bug occurs.

The Workaround

The workaround is simple. To fix this issue, change the existing route to not have any optional parameters by removing the default values for month and day. This route now handles the first URL where month and day was specified.

We then add a new route for the other two cases, but this route only has one optional month parameter.

Here are the two routes after we?re done with these changes.

routes.MapRoute("by-day",          "archive/{month}/{day}",         new { controller = "Home", action = "Index"} );  routes.MapRoute("by-month",          "archive/{month}",         new { controller = "Home", action = "Index",              month = UrlParameter.Optional} );

And now, we need to change the last two calls to generate URLs to use the by-month route.

@Url.RouteUrl("by-day", new { month = 1, day = 23 }) @Url.RouteUrl("by-month", new { month = 1 }) @Url.RouteUrl("by-month", null)

Just to be clear, this bug affects all the URL generation methods in ASP.NET MVC. So if you were generating action links like so:

@Html.ActionLink("sample", "Index", "Home", new { month = 1, day = 23 }, null) @Html.ActionLink("sample", "Index", "Home", new { month = 1}, null) @Html.ActionLink("sample", "Index", "Home")

The last one would be broken without the workaround just provided.

The workaround is not too bad if you happen to follow the practice of centralizing your URL generation. For example, the developers building http://forums.asp.net/ ran into this problem as well during the upgrade to ASP.NET MVC 3. But rather than having calls to ActionLink all over their views, they have calls to methods that are specific to their application domain such as ForumDetailUrl. This allowed them to workaround this issue by updating a single method.

The Root Cause

For the insanely curious, let?s look at the root cause of this bug. Going back to the original route defined at the top of this post, we never tried generating an URL where only the second optional parameter was specified.

@Url.RouteUrl("by-day", new { day = 23 })

This call really should fail because we didn?t specify a value for the first optional parameter, month. If it?s not clear why it should fail, suppose we allowed this to succeed, what URL would it generate? /archive/23?� Well that?s obviously not correct because when a request is made for that URL, 23 will be interpreted to be the month, not the date.

In ASP.NET MVC 2, if you made this call, you ended up with /archive/System.Web.Mvc.UrlParameter/23. UrlParameter.Optional is a class introduced by ASP.NET MVC 2 which ships on its own schedule outside of the core ASP.NET Framework. What that means is we added this new class which provided this new behavior in ASP.NET MVC, but core routing didn?t know about it.

The way we fixed this in ASP.NET MVC 3 was to make the ToString method of UrlParameter.Optional return an empty string. That solved this bug, but uncovered a bug in core routing where a route with optional parameters having default values behaves incorrectly when two of them don?t have values specified during URL generation. Sound familiar?

In hindsight, I think it was a mistake to take this fix because it caused a regression for many applications that had worked around the bug. The bug was found very late in our ship cycle and this is just one of the many challenging decisions we make when building software that sometimes don?t work out the way you hoped or expected. All we can do is learn from it and let the experience factor into the next time we are faced with such a dilemma.

The good news is we have bugs logged against this behavior in core ASP.NET Routing so hopefully this will all get resolved in the next core .NET framework release.


pc repair pc repair software free spyware

2011年4月29日星期五

New version of Nokia Social app (1.3) now available in beta

computer hardware repair mobile computer repair computer repair rates

Weekend Favs April Twenty Three

Weekend Favs April Twenty Three

This content from: Duct Tape Marketing

Weekend Favs April Twenty ThreeThis content from: Duct Tape Marketing My weekend blog post routine includes posting links to a handful of tools or great content I ran across during the week. I don’t go into depth about the finds, but encourage you check them out if they sound interesting. The photo in the post [...]

spyware removal fix pc problems remote pc repair

We are attending / Speaking at WordCamp Raleigh 2011

For the second straight year, Syed and Amanda will be representing WPBeginner at WordCamp Raleigh. Syed is also speaking in the Power Users track about speeding up WordPress. For those of you who have seen the presentation already, well its not going to be the same one AGAIN. There are new techniques that we have [...]

We are attending / Speaking at WordCamp Raleigh 2011 is a post from: WPBeginner which is not allowed to be copied on other sites.

Related posts:
  1. We will be attending WordCamp Raleigh
  2. WPBeginner will be attending WordCamp Louisville 2010
  3. We will be attending WordCamp Birmingham

pc doctor repair my pc fix computers

Will this Microsoft Windows MVP Jump Ship from Windows 7?

You find me at a crossroads because interesting times are upon us, as I find myself seriously considering, for the very first time, jumping ship from Windows.� Nope, you don’t have to check the calendar, it’s not April 1st again and I’ve not been on the strong sauce.� I genuinely mean it!� What’s more I’m [...]

spyware removal fix pc problems remote pc repair

Microsoft exploring centered title bar text in Windows 8?

During CES 2011, Long Zheng took some interesting photos of Sinofsky?s Windows 8-on-ARM ?demo?. Two of which show that Microsoft is toying with a UI change involving centering of the title bar text. Perhaps we?re seeing early work on readability tweaks for Aero Basic tier users (i.e. low-powered tablets, mobile devices)? An early build of [...]

malware removal computer parts computer troubleshooting

Developer interest in Android dropping, behind iOS

With all of the Android devices coming to market lately, it’s a little bit surprising to find out that developer frustration with the platform is continuing to grow.�Results from the latest Appcelerator/IDC mobile survey show that developers are growing increasingly annoyed with device fragmentation and multiple application stores. Of the 2,700 developers surveyed, 85 percent [...]

home computer repair online computer repair pc repair service

WordPress Theme: Bariumerous

Looking for a fresh and beautiful eco-friendly theme design for your blog? Check out our latest released Bariumerous WordPress theme. The crisp custom typography and soothing earth colors give a relaxing and refreshing feel to the design; making this blog theme a great choice for beauty, style, environment, travel and personal blog niches. Bariumerous WordPress [...]


Related posts:
  1. WordPress Theme: Palladiumize
  2. WordPress Theme: Xenonymous
  3. WordPress Theme: Molybdenument

pc repair shop wholesale computer parts free malware removal

Even Kate Middleton?s Bridesmaid Has Had Enough


Our thoughts exactly. Well done, little girl, well done. [Daily Dish/Daily Beast]

Related:
The Fug Girls: How the Royal Wedding Triumphed
The Royal Wedding Slideshow
The Royal Wedding Live Blog

Read more posts by Dan Amira

Filed Under: photo op, grace van cutsem, kate middleton, prince william, royal wedding


spyware removal fix pc problems remote pc repair

Google Talk Brings Video/Audio Chat to Android

Awesome updates from the Google Mobile team just keep rolling out. Recently Google released a Google Docs app for Android, and now comes the ability to video/voice chat using Google Talk. Similar applications, like Fring and Tango, have sought to bring a facetime-like experience to Android. Now, with video chat being built-in to Google Talk(on [...]Related posts:
  1. Fring brings video calling to Android phones – works with front facing camera in HTC EVO Some Android phones have front facing cameras like HTC EVO...
  2. This week in Google/Android: Buzz, 1 gigabit a second, ?                You might have already been blown by the amount...
  3. Facebook App 1.5 for Android Released – Supports Chat and Push Notifications Slowly but steadily, Facebook app for Android has been improving...
  4. New Enhancement in Gmail Labs allows better quality Video Chat If you use Gmail?s video chat service, you would have...
  5. Google Voice Chrome Extension Controls Google Voice from the Menu Bar For those who use Google’s services, Google Voice is one...

home pc repair computer fix repair computer

Apple expected to charge for iTunes Cloud service

It’s probably a forgone conclusion at this point, but Apple’s working on a cloud service. We don’t know the extent of it, but rumors have suggested that it will focus on music and media lockers that will let users stream their content from the web to their devices, both local and mobile. Today CNET is [...]

computer troubleshooting computer repair center computer repair jobs

Two New MS Stores in the Works: Houston and LA

The push for selling Microsoft products continues. Now Microsoft is making plans to open two new retail stores, one in Houston Texas, and one in Los Angeles California. Current Stores Microsoft operates 8 stores located in different parts of the US. They are in Scottsdale, Ariz., Mission Viejo, Calif., Lone Tree, Colo., San Diego, Calif., [...]

computer fix repair computer computer repair prices

Windows 8 Leak Sites Suddenly Close Down

There have been a large amount of leaks in the last couple of weeks of screenshots from an early build of Windows 8, notable from websites such as winreview.ru.� These leaks have shown us features such as the log-in with your Live ID, the ribbon in Explorer and some of the metro interface features that [...]

repair computers cheap computer repair malware removal

2011年4月28日星期四

New York Almost Got a Whole Lot More Fishzilla


A Brooklyn fish importer is on trial for attempting to smuggle around 350 live snakehead fish through Kennedy Airport last year. Investigators wrapped up their inquiry into the case this week—Yong Hao Wu faces up to four years in prison for trying to smuggle the fish into the country from Macao. He attempted to pass the snakeheads off as the more peaceful, less carnivorous Chinese black sleepers. Snakehead fish are considered a delicacy in Chinese and Korean cooking, buuuuuuut they've also been known to eat other fish, ducks and mammals and pretty much totally annihilate the ecosystems in which they live. Well, at least they look cool.

Fish importer busted trying to smuggle fish-chomping 'fishzilla' snakeheads into New York [NYDN]

Read more posts by Julie Gerstein

Filed Under: in the water, smugglers, snakeheads


fix pc problems remote pc repair free spyware removal

4 VPN Programs to Look At

Everyone who surfs the web is a potential victim to malware, hacking, network or PC intrusion. Users normally enable the standard protection schemes like firewalls, NAT, intrusion detection software and the like. Many times these protection attempts will do, but only if the hackers don’t want to bother with you. �However, you can take other [...]

fix computer computer support fix my computer

Try out Lyric Legend by TuneWiki and give your feedback about the gameplay experience

computer problems pc repairs fix pc errors

Infrastructure Updates

We had way too many server downtimes during the last month in our infrastructure. These were caused by an unreliable login proxy. We have now developed and setup a new login proxy and use it for the following sites:

build.opensuse.org
api.opensuse.org
hermes.opensuse.org
notify.opensuse.org
features.opensuse.org

We hope that this new proxy is working reliably now.� The new proxy is open source and [...]

cheap computer repair malware removal computer parts

What?s Pinned to Your Taskbar?

I'd like to get a feel for how different Windows 7 users are organizing their taskbar and whether Internet Explorer 9's pinning feature is as useful to others as it is to me.

pc repair tools computer repair company spyware reviews

Nexus S 4G Heading To Sprint Stores On May 8th For $199

At CTIA 2011 in Orlando, Sprint announced that it would soon begin carrying the Nexus S 4G. Unfortunately, details regarding pricing and availability were sparse. Today, the carrier revealed that this pure-Android smart phone would go on sale on May 8th for $199 with a new two-year contract. For those not familiar, this device is...

computer repair service fix computer problems free computer repair

Macgasm Video Podcast Redux: Episode 1

Download Details [Download][Subscribe in iTunes] Show Notes Hosts: Brennan Schnell and Justin Van Leeuwen Think Tank Photo ? Retrospective 30 Kelly Moore Bag OnOne’s DSLR Camera Remote App The Filter Storm 2 app for the iPad Commentary For those of you who haven’t been around for a while, we’ve spent some time doing a video [...]

fix pc errors spyware removal fix pc problems

New update to Nokia Situations available

online computer repair pc repair service adware

A few Windows Phone updates from MIX 2011

Dropping the ?7? With the next release of Windows Phone (codenamed Mango) inching closer, Microsoft has understandably dropped the ?7? version reference in the product?s title. The platform will now be referred to as Windows Phone. When referring to specific versions of the platform, expect to see the ?OS? suffix tacked onto the end (e.g. [...]

computer repair technician computer repair and maintenance pc repair shop

IE9 Holds Its Own

For Microsoft, the Browser wars were a big deal because they seemed to be on the back end…trying to play catchup with the other browsers, like Chrome, Firefox or Safari. But two weeks after the release of the latest version, IE9, Microsoft can relax a bit…its latest browser is doing well. NetMarketShare TimeFrame It is [...]

free spyware removal pc troubleshooting pc support

Apple expected to charge for iTunes Cloud service

It’s probably a forgone conclusion at this point, but Apple’s working on a cloud service. We don’t know the extent of it, but rumors have suggested that it will focus on music and media lockers that will let users stream their content from the web to their devices, both local and mobile. Today CNET is [...]

free virus scan and removal spyware remover computer service and repair

VoiceJam 1.2 from TC-Helicon lets you loop, tune, and create tracks with your voice

What do Imogen Heap, Kraftwerk, Snow Patrol and Bootsy Collins have in common? They’re all artists that use TC-Helicon products to treat or loop their vocals. TC-Helicon is a Canadian company that is dedicated to making pro gear strictly for vocalists. They have a number of voice processors, vocal loopers, and a whole line of [...]

home computer repair online computer repair pc repair service

2011年4月27日星期三

5 Features That Could Revolutionize TiVo, Again

When TiVo first made a debut in 1999, it revolutionized the way we watch TV. It was a time when VHS was the only practical method of recording televised programs. Unfortunately, the company spent the last four years embroiled in lawsuits with EchoStar (Dish Network) over patent infringements. TiVo may have finally won the big...

wholesale computer parts free malware removal computer network repair

Screw the weatherman, get a forecast from your neighbors with Weddar

Weather reports don’t exactly leave the population polarized. Everyone pretty much agrees that the local weatherman is rolling the dice before best-guesstimating what the forecast is going to be. Why we still rely on some random dude with a barometer and airport is beyond me. Instead, why don’t we just rely on what our neighbours [...]

onsite computer repair computer repair shop virus removal

We are attending / Speaking at WordCamp Raleigh 2011

For the second straight year, Syed and Amanda will be representing WPBeginner at WordCamp Raleigh. Syed is also speaking in the Power Users track about speeding up WordPress. For those of you who have seen the presentation already, well its not going to be the same one AGAIN. There are new techniques that we have [...]

We are attending / Speaking at WordCamp Raleigh 2011 is a post from: WPBeginner which is not allowed to be copied on other sites.

Related posts:
  1. We will be attending WordCamp Raleigh
  2. WPBeginner will be attending WordCamp Louisville 2010
  3. We will be attending WordCamp Birmingham

local computer repair repair computers cheap computer repair

Two New MS Stores in the Works: Houston and LA

The push for selling Microsoft products continues. Now Microsoft is making plans to open two new retail stores, one in Houston Texas, and one in Los Angeles California. Current Stores Microsoft operates 8 stores located in different parts of the US. They are in Scottsdale, Ariz., Mission Viejo, Calif., Lone Tree, Colo., San Diego, Calif., [...]

pc repair tools computer repair company spyware reviews

Intego releases VirusBarrier Plus

If you’re into virus applications then you’ve likely heard about Intego. They’re one of the heavy hitters when it comes to securing your Macs against viruses. Today Intego has released VirusBarrier Plus for $7.99 on the Mac App Store. The application supports both Mac and Windows malware and will prevent you from forwarding on the [...]

computer help onsite computer repair computer repair shop

A love letter to Tweetbot

I had been waiting for this Tweetbot for over a year. Seriously. Back on March 12th, 2010, Tapbots posted on their blog that they were working on a new Twitter client ? Tweetbot. I’ve been a fan of their previous apps, so my expectations were set pretty high. Twitter apps are by far my favourite [...]

spyware reviews remove spyware laptop computer repair

Apple sicks the lawyers on the iHub

Apparently there’s a real market out there for Apple branded products that aren’t made by the Cupertino company. Yesterday we heard about a fancy little USB hub that came complete with a glowing Apple logo. Today, we’re hearing that Apple’s lawyers have stepped in and moved to block sales of the iHub USB device. M.I.C [...]

computer network repair cheap computer parts computer repair store

Microsoft Sets Guinness World Record Using Kinect?. Again!

Microsoft’s Kinect is one hot item, for multiple reasons. In addition to all the awesome hacks that use the Kinect, it has also been used to set two Guinness World Records. The first was set when the Kinect sold 8,000,000 units in the first 60 days(approx. 133,333 units per day), earning it the title of [...]Related posts:
  1. How To Join Microsoft?s Xbox Guinness World Record Event [April 23rd] Kinect, Microsoft’s revolutionary motion gaming sensor, has already been awarded...
  2. Guinness World Records: Microsoft Kinect Is The World’s Fastest Selling Consumer Electronics Device! Guinness World Records has officially declared Microsoft’s Kinect motion gaming...
  3. Microsoft Kinect hits 8 million shipment sales During his announcement at the Consumer Electronics Show, Microsoft CEO...
  4. Microsoft ‘Kinect’ Motion Sensor For Xbox 360 Sells 1 Million Units In 10 Days! The revolutionary motion sensor introduced by Microsoft called ‘Kinect’ exclusively...
  5. Kinect Now Available on Microsoft Online Store for $150 After iPhone 4, Kinect is one product I?m really looking...

laptop computer repair pc repair and maintenance remote computer repair

Service break on Monday, March 28 @ 10:00 EEST (UTC+3)

remote pc repair free spyware removal pc troubleshooting

The Water Supply Is Rapidly Depleting


On Monday, a report released by the Interior Department revealed three major river basins—Colorado, Rio Grande and San Joaquin—may decline by as much as 14 percent over the next four decades. The three rivers provide water to eight states, from Wyoming to Texas and California, as well as to parts of Mexico. [HP]

Read more posts by Julie Gerstein

Filed Under: waterworld, water supply


spyware malware pc errors

Presentation Tips Learned From My (Many) Mistakes

One aspect of my job that I love is being able to go in front of other developers, my peers, and give presentations on the technologies that my team and I build. I?m very fortunate to be able to do so, especially given the intense stage fright I used to have.

phil-mvc-talk

But over time, through giving multiple presentations, the stage fright has subsided to mere abject horror levels. Even so, I?m still nowhere near the numbers of much more polished and experienced speakers such as my cohort, Scott Hanselman.

Always looking for the silver lining, I?ve found that my lack of raw talent in this area has one great benefit, I make a lot of mistakes. A crap ton of them. But as Byron Pulsifer says, every mistake is a an ?opportunity to learn?, which means I?m still cramming for that final exam.

At this past Mix 11, I made several mistakeslearning opportunities in my first talk that I was able to capitalize on by the time my second talk came around.

I thought it might be helpful for my future self (and perhaps other budding presenters) if I jotted down some of the common mistakes I?ve made and how I attempt to mitigate them.

Have a Backup For Everything!

An alternative title for this point could be worry more! I tend to be a complete optimist when it comes to preparing for a talk. I assume things will just work and it?ll generally work itself out and this attitude drives Mr. Hanselman crazy when we give a talk together. This attitude is also a setup for disaster when it comes to giving a talk.

During my talk, there were several occasions where I fat-fingered the code I was attempting to write on stage in front of a live audience. For most of my demos, I had snippets prepared in advance. But there were a couple of cases where I thought the code was simple enough that I could hack it out live.

Bad mistake!

You never know when nervousness combined with navigating a method that takes a Func-y lambda expression of a generic type can get you so lost in angle brackets you think you?re writing XML. I had to delete the method I was writing and start from scratch because I didn?t create a snippet for it, which was my backup for other code samples. This did not create a smooth experience for people attending the talk.

Another example of having a backup in place is to always have a finished version of your demo you can switch to and explain in case things get out of control with your fat fingers.

For every demo you give, think about how it could go wrong and what your backup plan will be when it does go wrong.

Minimize Dependencies Not Under Your Control

In my ASP.NET MVC 3 talk at Mix, I tried to publish a web application to the web that I had built during the session. This was meant to be the finale for the talk and would allow the attendees to visit the site and give it a spin.

It?s a risky move for sure, made all the more risky in that I was publishing over a wireless network that could be a bit creaky at times.

Prior to the talk, I successfully published multiple times in preparation. But I hadn?t set up a backup site (see previous mistake). Sure enough, when the time came to do it live with a room full of people watching, the publishing failed. The network inside the room was different than the one outside the room.

If I had a backup in place, I could have apologized for the failure and sent the attendees to visit the backup site in order for them to play with the finished demo. Instead, I sat there, mouth agape, promising attendees that it worked just before the talk. I swear!

Your audience will forgive the occasional demo failure that?s not in your control as long as the failure doesn?t distract from the overall flow of the presentation too much and as long as you can continue and still drive home the point you were trying to make.

Mock Your Dependencies

This tip is closely related to and follows up on the last tip. While at Mix, I learned how big keynotes, such as the one at Mix, are produced. These folks are Paranoid with a capital ?P?! I listened intently to them about the level of fail safes they put in place for a conference keynote.

For example, they often re-create local instances of all aspects of the Internet and networking they might need on their machine through the use of local web servers, HOST files, local fake instances of web services, etc.

Not only that, but there is typically a backup person shadowing what the presenter is doing on another machine. But this person is following along the demo script carefully. If something goes wrong with the presenter?s demo, they are able to switch a KVM script so that the main presenter is now displaying and controlling the backup machine, while the shadow presenter now has the presenter?s original machine and can hopefully fix it and continue shadowing. Update: Scott Hanselman posted a video of behind-the-scenes footage from Mix11 where he and Jonathan Carter discuss keynote preparations and how the mirroring works.

It?s generally a single get-out-of jail free card for a keynote presenter.

I?m not suggesting you go that far for a standard break-out session. But faking some of your tricky dependencies (and having backups) is a very smart option.

Sometimes, a little smoke and mirrors is a good backup

In our following NuGet talk the next day, Scott and I prepared a demo in which I would create a website to serve up NuGet packages, and he would going visit the site to install a package.

We realized that publishing the site on stage was too risky and was tangential to the point of our talk, so we did something very simple. I created the site online in advance at a known location, http://nuget.haacked.com/. This site would be an exact duplicate of the one I would create on stage.

During the presentation, I built the site on my local machine and casually mentioned that I had made the site available to him at that URL. We switched to his computer, he added that URL to his list of package sources, and installed the package.

The point here is that while we didn?t technically lie, we also didn?t tell the full story because it wasn?t relevant to our demo. A few people asked me afterwards how we did that, and this is how.

I would advise against using smoke and mirrors for your primary demo though! Your audience is very smart and they probably wouldn?t like it the key technology you?re demoing is fake.

Prepare and Practice, Practice, Practice

This goes without saying, but is sometimes easier said than done. I highly recommend at least one end-to-end walkthrough of your talk and practice each demo multiple times.

Personally, I don?t try to memorize or plan out exactly what I will say in between demos (except for the first few minutes of the talk). But I do think it?s important to memorize and nail the demos and have a rough idea of the key points that I plan to say in between demos.

The following screenshot depicts a page of chicken scratch from Scott Hanselman?s notebook where we planned out the general outline of our talk.

IMG_1165

I took these notes, typed them up into an orderly outline, and printed out a simple script that we referred to during the talk to make sure we were on the right pace. Scott also makes a point to mark certain milestones in the outline. For example, we knew that around the 45 minute mark, we had better be at the AddMvcToWebForms demo or we were falling behind.

Writing the script is my way of preparing as I end up doing the demos multiple times each when writing the script. But that?s definitely not enough.

For my first talk, I never had the opportunity to do a full dry-run. I can make a lot of excuses about being busy leading up to the conference, but in truth, there is no excuse for not practicing the talk end to end at least once.

When you do a dry run, you?ll find so many issues you?ll want to streamline or fix for the actual talk. Trust me, it?s a lot better to find them during a practice run than during a live talk.

Don?t change anything before the talk

Around the Around 24:40 mark in our joint NuGet in Depth session, you can see me searching for a menu option in the Solution Explorer. I?m looking for the ?Open CMD Prompt Here? menu, but I can?t find it.

It turns out, this is a feature of the Power Commands for Visual Studio 2010 VSIX extension. An extension I had just uninstalled on the suggestion from my speaking partner, Mr. Hanselman. Just prior to our talk, he suggested I disable some Visual Studio extensions to ?clean things up?

I had practiced my demos with that extension enabled so it threw me off a bit during the talk (Well played Mr. Hanselman!). The point of this story is you should practice your demo in the same state as you plan to give the demo and don?t change a single thing with your machine before giving the actual talk.

I know it?s tempting to install that last Window Update just before a talk because it keeps annoying you with its prompting and what could go wrong, right? But resist that temptation. Wait till after your talk to make changes to your machine.

Conclusion

This post isn?t meant to be an exhaustive list of presentation tips. These are merely tips I learned recently based on mistakes I?ve made that I hope and plan to never repeat.

For more great tips, check out Scott Hanselman?s Tips for a Successful MSFT Presentation and Venkatarangan?s Tips for doing effective Presentations.


free virus protection spyware removers security tool virus removal