• Passed 70-506

    I’ve just learned that I passed another beta exam!

    • 70-506 - TS: Silverlight 4, Development

    The nice thing about this is that it’s turned out to be quite relevant to the Windows Phone 7 development I’ve been doing.

    This should mean I now gain the following certification:

    • Microsoft Certified Technology Specialist: Silverlight 4, Development

  • Tour Down Under 2011

    imageOn Friday, I got up bright and early at 4.45am so that I could get down to Norwood for the 6.30am start of this year’s Challenge Tour for the Tour Down Under. Well ok, it was early but I wasn’t feeling particularly bright at that hour!

    The course was 135km, winding up through Gumeracha through the Adelaide Hills following the Onkaparinga valley then to Mt Barker, Macclesfield and Meadows before finishing at Strathalbyn.

    WP_000075Once again I rode with my Dad, and this time he was definitely setting the pace!The only thing that could slow him down was a puncture on Gorge Rd, and me trying to keep up. My other problem was in getting ready and driving to Mum & Dad’s in the dark to meet our lift I managed to leave one of my bike gloves in the car – which meant had to ride with just one glove (a bit less comfortable but was ok).

    WP_000077](/assets/2011/01/wp_000078[3].jpg)We left Norwood just as the sun was rising, and headed off at a nice pace. Dad had done a trial of Checker’s hill a few weeks ago and suggested we’d be better off taking the detour. I’m glad we did and heard that many who attempted it ended up having to get off and walk up the hill.

    There were regular drink stops, and the major rest stop at Oakbank was well prepared. Even when they ran out of Powerade, they managed to find some more supplies quickly.



    Even in a crowd of 7,500 cyclists, Adelaide being what it is you’re bound to bump into someone you know. Here’s Paul (also member of Sevenfold) enjoying the stop at Oakbank. I also bumped into Grant, who I worked with years ago way back in my SysAdmin days. He said there was something distinctive about me to make me easy to pick out in a crowd.



    The weather was very kind – it was a mostly fine day but stayed quite mild which was a big relief to me! The wind was quite blustery but was quite refreshing, except for the final downhill run into Strathalbyn where it was pushing us around a bit.

    We completed the distance in 5 hours 50 minutes and even though my preparation had been very limited leading up to the ride, I didn’t feel too bad. Having said that I was glad to finish and my behind was about done with sitting on a bike seat for a while.

  • Unit testing your Silverlight/WP7 code with Portable Library Tools?

    I’m slowly improving my knowledge of developing in Silverlight and specifically apps for Windows Phone 7. My [Internode Usage app]/2010/12/internode-usage-meter-for-windows-phone.html) has been out for almost a month, and I’m working on an update for that (including real Internode logos now that I’ve got permission). I’ve also been creating a new app that will display the nearest public toilet (particularly useful for parents of young kids, especially if you’re travelling). That’s been fun as I’ve got to use the Map control. I hope to publish that soon.

    One thing I have missed was the ability to easily write unit tests for the code. The problem is that the code doesn’t run on your desktop, it runs in the emulator or on a device. This has meant that most of the solutions so far have relied on running the test runner on the device as a separate application. That is certainly a valid way to test, but getting the results of the test back out isn’t easy. Justin Angel describes one approach using the CoreCon API to read and write to the test app’s Isolated Storage. Another way might be to get the test runner app to push the results back out to some kind of HTTP listener running externally to the emulator.

    Enter the Portable Library Tools add-in. Just released as a CTP, this allows code to be targeted at both Windows Phone 7 and the regular CLR (as well as Silverlight and XNA) without having to jump through lots of hoops.

    It should now be possible to create a regular .NET unit testing assembly (say using MbUnit with the Gallio test runner) and run tests over most of your code, and then just recompile to have the same code be deployed to WP7.

    There will be exceptions, as you may need to refactor your code to extract out specific WP7 dependencies (that obviously have no equivalent in the desktop .NET Framework), but this looks like a promising step forward.

    One caveat is that to install the Portable Library Tools, you need to have installed VS 2010 SP1 Beta. I’m being more careful about keeping my work laptop (which has also become my main dev machine) in good working order, so I’ll be installing the SP1 beta on a separate VM just to be safe.

    I’ll do a follow-up post with my experiences. It might take a few days, as tomorrow I’m off riding in the Tour Down Under (again!), and might need a day or two to recover!