All posts by Craig Murphy

Offline blogging using Windows Live Writer

I’ve been using Windows Live Writer for the last month – it’s an offline blogging tool that ideal for writing blog entries whilst in aircraft or on a train or anywhere without an Internet connection. It’s good, but since it’s a beta you do know where the edges are.

Microsoft’s Mike Taulty has written a super little plug-in for Windows Live Writer – it provides a very quick means of locating and inserting a URL into a blog post.

If, like me, you like the cross-linking nature of blog posts, you’ve probably found yourself search for another person’s blog URL using another browser window…then you’ve cut’n’paste it into the blog post.

Mike’s plug-in automates that, keeping the whole operation inside Windows Live Writer. At the back-end, it uses Live Search to produce its results.

Technorati Tags: , , , ,

Did you know? Windows Quality?

When an application crashes, Windows error reporting pops up a box with “send” and “don’t send” buttons offering you the chance to send technical data relating to the crash back to Microsoft. It happens for Microsoft applications and third-party applications too.

As a side-effect of attending an MSDN session about Vista, the speaker (Dan Moth) mentioned “winqual” to the audience.

This is what he was talking about. Dan was telling us that we can register on the winqual site and gain access to the technical data sent as a result of our own applications crashing (assuming our end-users actually click Send…everybody clicks on Send, right?) Whilst a credit card is required for registration, gaining access to your own application’s data is free – the site is careful to advise if there a cost involved for other content.

Technorati Tags: , , , ,

DDD4 Geek Dinner!

I am pleased to announce that Zi has once again organised a geek dinner for those attending DDD4 on the 2nd December 2006!

If you wish to attend, please sign up here.

Spaces are limited to 40, so sign up is very important! Last time at DDD3, we had a full house and ran a waiting list – book early, that’s my advice!

Whilst we’re on the subject – do you want to speak at DDD4? If so, sign up here (earlier site outages have been fixed!)

Glasgow 26th September 2006 – Re-running Test-Driven Development and Code Coverage

What and When
I will be running my Test-Driven Development and Code Coverage session (for the third time) in Glasgow on the 26th of September 2006. Praise for the session can be found here.

Venue
Woodside Hall
36, Glenfarg Street
G20 7QS

Map
Click here

Contact
Emma Britton via VBUG.

TDD and Code Coverage in .NET

ABSTRACT
Testing code can be a laborious process that is repetitive in its nature. Empirical evidence confirms that most repetitive processes enjoy a lot of success, or coverage, during early iterations, but later iterations suffer from lower coverage as the tedium sets in. For that reason, we sought to automate the repetitive testing process, i.e. we wrote some code that could replace the repetitive process. The development community achieved this by the adoption of a testing framework that embraced Test-Driven Development (TDD) and testing tools such as NUnit.

The ethos behind TDD and NUnit is “write once, use often”, i.e. once a test has been written it can be used many times. Naturally, by embodying “tests” in code and by using a tool to run those tests, we find the repetitive nature of testing disappears and the process of testing actually beings to provide confidence boosts.

However, whilst adoption of TDD and NUnit provides major advances in the reduction of repetitive testing tasks, they do not help us ensure that the tests actually cover as much of the code-base as is possible/required. It is possible to write a collection of tests that only exercise 25% of the code-base, yet because the tests are successful (i.e. they pass), the developer’s confidence is so high, s/he fails to spot that there is still a lot of test code still to be written.

Code coverage, is not a new technique, the likes of Boris Bezier discussed it in 1990 and Tom McCabe wrote about it as far back as 1976. Today, we can use graphical tools to determine how much of our code is exercised, or covered during an execution cycle. Such tools help us identify which areas of our code have not been tested and can help us direct our effort. However, they do rely on some manual effort that is repetitive, i.e. a user/developer must walk through the application. Luckily, if we are practicing TDD, we have a set of automated tests that we can tap into thus alleviate this repetition.

Over the course of 90 minutes Craig will demonstrate four .net tools, NUnit, NCover, NCoverExplorer and TestDriven.Net. All of these tools and free and work with .net 1.1 and 2.0. A variety of IDEs are supported, include Visual Studio 2003 and Visual Studio 2005. He will explain the basics of TDD and code coverage and why they are both important skills and processes to include in your development/build process. Examples will be written in C# and Visual Studio 2005.

BIO
Craig Murphy is an author, developer, speaker, project manager, Microsoft MVP (Connected Systems) and is a Certified ScrumMaster. Commercially, Craig has been using Borland Delphi since 1998; today, he uses Visual Studio 2005 and C#. He regularly writes articles product/book reviews: The Delphi Magazine, International Developer, ASPToday and Computer Headline have published his work. Craig has written for virtually every Developers Group magazine issue since the year 2000! He specialises in all things related to .NET, C#, Borland Delphi, XML/Web Services, XSLT, Test-Driven Development, Extreme Programming, agile methods and Scrum. In his career to date, Craig has written cost estimating software for the oil and gas industry and asset valuation software for local councils and the Ministry of Defence. He has a day-job, a wife and a son.

Windows Vista Developer Features Beyond .NET – 20 September, Edinburgh

Former MVP, now Microsoft employee, Dan Moth is coming to Edinburgh on the 20th of September to deliver a Vista session.

Registration is essential, follow the link on the left-hand side of this page:

http://msevents.microsoft.com/CUI/EventDetail.aspx?culture=en-GB&eventid=1032306822

Windows Vista Developer Features Beyond .NET
20 September 2006 09:45 – 20 September 2006 12:30 GMT, London
Welcome Time: 09:00
Language: English
Microsoft Edinburgh

Spey
127 George Street
Edinburgh EH2 4JN
United Kingdom

General Event Information
Products: Windows Vista.
Recommended Audience: Developer.

Windows Vista brings with it a fantastic platform for managed development, namely .NET Framework v3.0 (formerly WinFX). However, there are many new native APIs in Windows Vista that aren’t a part of .NET Framework 3.0. In this session you will discover how you – a C# or Visual Basic developer – can take advantage of this new functionality. Alongside plenty of demos, you will learn how to make your application feel like a real extension to the Windows Vista platform, and not like a ported application that just runs on it.

Technologies covered will include using the “glass” interface in your applications, new dialog box features, the RSS API, sidebar gadgets, the restart/recovery API and an overview of User Account Control (UAC) feature including how to ensure your applications work with UAC, TxF, plus many more.

Timings
9.00 for 9.45 Registration
9.45 – 11.00 Session 1
11.00 – 11.15 break
11.15 -12.30 Session 2
12.30 close

What do an ex-FBI agent and Microsoft community have in common?

edgibsonsign.jpg

Scottish Developers and the NxtGenUG are proud to announce the ‘Ed Gibson “On The Road”‘ Events which will take place mid-Septermber to mid-October 2006 at 5 venues around the country. The aim of the events are to raise awareness of the issues surrounding computer security, specifically Organised Crime and Hacking and also to raise the awareness amongst the Business and Developer communities of Developer and IT Pro User Groups and how they can help instruct and inform developers and managers about new technologies and other issues such as security.

The headline speaker is Ed Gibson the new Chief Security Advisor for Microsoft UK. Ed is an ex-FBI agent and delivers a fascinating talk on his experiences and views on security in the IT world and how to combat organised crime on the Internet.

Other speakers from the likes of Oracle will offer alternative or differing views on computer security and the event will end with an hour long ‘panel discussion’ with question and answers.

Register via here.

Ed’s Dates and Venues

Birmingham
Faraday Wharf,Aston Science Park
20th Sept 2006 (4pm-7.30pm)
This event will feature Ed Gibson, Dinis Cruz and Barry Dorrans and is being run by The Next Generation User Group and the Scottish Developers Group in association with Aston Science Park and iCentrum, Birmingham.

Cambridge
Microsoft Laboratories, Cambridge
3rd Oct 2006 (4pm-7.30pm)
This event will feature Ed Gibson and Alun Rogers of Risual and is being run by The Next Generation User Group and the Scottish Developers Group in association with the Cambridge Network.

Leeds
Leeds Univeristy
12th Oct 2006(Prov) (4pm-7.30pm)
This event will feature Ed Gibson, Dinis Cruz and Duncan Harris of Oracle and is being run by the Scottish Developers Group and The Next Generation User Group in association with Leeds University.

London
Microsoft Offices London
26th Oct 2006 (4pm-7.30pm)
This event will feature Ed Gibson, Dinis Cruz and Chris Seary of Charteris and is being run by the Scottish Developers Group and The Next Generation User Group in association with the London .NET User Group.

Edinburgh
Royal Pharmaceutical Society
2nd Nov 2006 (1pm-5pm)
This event will feature Ed Gibson and Duncan Harris of Oracle and is being run by the Scottish Developers Group and The Next Generation User Group.

DDD4 – Call For Speakers

Would you like to speak at one of the UK’s leading developer community events?

We’re looking for community-oriented folks to speak at DeveloperDeveloperDeveloper 4 (2nd December 2006)!

Please take a look at the submissions so far, then feel free to submit your own session!

If you are sitting on the fence or have not spoken to an audience before, fear not! DDD is a friendly place, you will be made most welcome!

As usual, the event will be held at Microsoft’s Reading Campus in Thames Valley Park.

Check out what I’ve said about previous DDD days here, here and here!

Oz: Hiring a car, roadkill kangaroos and Driving into "the bush"

Today saw me hire a car. I figured that it would cost me A$35 for a taxi from downtown Perth back to the airport, plus I wanted to catch up with a ex-C&B buddy who has a ranch close what you and I refer to as “the bush”. His ranch was some 80km east of Perth and involved navigating the Great Eastern Highway, the Roe Highway and the Great Southern Highway…and back again. The trip back was a little fraught with split-timing in order to get the hire car re-fueled and back to the airport in time. Everything, it seems, is much more laid back than here in the UK, most places close up “early”, i.e. between 1600 and 1700. Even with the car hire return staying open “late” until 1730, I was still pushing my luck a little. So much so, the desk was empty and I was forced to use the late key drop facility. I hope that works.

[Update , it seems that it didn’t.  Alison, my wife, received a ‘phone call asking if I still had the car…pretty tricky given that I was in Dubai at the time of the ‘phone call.  And I’d called their local office to let them know what I was doing, so I won’t be expecting to be charged for a second day of hire.]

[Another update: wow! I only paid £23 for the car hire for the whole day…why does it cost so much to hire a car here in the UK? That said, the fuel cost me £25…petrol engine I guess, I’m just so used to diesel these days]

The 80km trip out to my buddy’s ranch was fairly painless, I made a couple of wrong turns that took me off track but only for a couple of minutes. Here in the UK our highways have slip roads on the left-hand side of the carriage way. Not so in Australia, they have a T-junction with traffic lights, which meant that I had to pull across the outside lane (lane 2, overtaking lane) into a slip near the central reservation just to turn right. I suppose it’s cheaper than building fly-overs and slip-unders. Anyway, since the Aussies drive on the same side as the Brits, my mind could focus on other things whilst I was driving…like watching out for kangaroos (roos) jumping out in front of me. Without the added protection of a “roo-bar”, my vehicle was particularly vulnerable. Luckily for me, I was fortunate enough not to hit a roo, never mind see a live one. My buddy whose ranch I was headed for was not so lucky. On Friday he hit a roo whilst on his way down to the Great Southern Highway. He thought the roo had “gotten away”, but this was not the case – during a tour of his homestead/land, see saw his vehicle’s indicator…I spotted the roo decomposing at the roadside. This was somewhat pleasing for two reasons. Firstly, this roo caused A$3500 worth of damage. Secondly, roos are seen as pests down under, they harass livestock and eat their feed. Anyway, my buddy was chuffed that “he got the bastard”. His day was made, glad I could have been of assistance!

It turns out that my buddy’s wife is from Gourock, small world. Even smaller world: I drove into York to buy a small “house gift”, the bloke who sold me the gift was born in Dunfermline, lived in Manchester and moved to Oz some 15 years earlier. He was a “good guy”, I described what I wanted…he sold me a picture frame priced at $24.95 for $15, and a furry toy for $5, wicked. Settler’s Gifts, left hand side of the main street in York after leaving the Great Southern Highway. Kudos my friend, what goes around comes around: I left him with the tale of José Mourinho’s cup medals and eBay. Oh how we laughed.

I’m not sure how my buddy does it. He and his wife run a moderate sized farm, sheep, cattle, crop. And he has a day job working for Currie & Brown, which is the aforementioned 80km back to Perth – that’s a 60+ minute drive. They collect all their own drinking/washing/cooking water via carefully designed corrugated roofs. 1mm of rain can collect some 200 liters of water. Today, we must have got way more than that. I was treated to a tour of the homestead in the ut [utility vehicle], a 2.8 diesel 4×4. Kangaroos were off the agenda pretty much…except the dead one that I spotted and noted in an earlier paragraph.

roo.gif
I did see two kangaroos: this model and a dead one

Technorati Tags: , , , ,

Oz: Coming home

WTF. Here I am at the airport, I’ve dropped the hire car off and everything is closed. Even the Departure Lounge. What’s that all about? It seems that the airport only “comes to life” two hours before a departure. Man, it’s a different way of life. Thankfully there is a cafe open, I’m sat here drinking A$6 bottles of Redback Beer, an original wheat beer, 4.7%. I’m sat landside, waiting, just waiting for the Departure Lounge to open.  Man it’s weird, surely places should be open and wanting to take folks money?

Anyway, after lurking around in the cafe for a couple of hours, the check-in desks open.  The travel agent seems to have booked me through to Glasgow using an odd route: Perth to Dubai, Singapore to Glasgow.  Way to go.  I kind of needed this issue sorted in Oz as whilst in Dubai, I had already tried to change my Dubai to Perth flight with little success (my Arabic isn’t good enough to sweet talk an Economy to Business Class upgrade for an earlier flight!)

I had the fortune to sit beside a Aussie traveling to England to work as a vet in Nunetan. Emily was a horsey type, and second to sitting next to the pilot was a good traveling companion. Whilst waiting to pass through the Dubai security channel, Emily noticed that another passenger, some 10 people ahead of us in the queue, had a sticker stuck on her backside. What do you do? Suddenly we’re in a foreign country, the “English multiple queues” scenario has kicked in (which happens to suit the locale)…so we let her get on with her business. Such is life, we can’t please all of the people all of the time. Emily purchased some cigarettes in Dubai Duty Free – these will be the last fags she buys as she plans to use her temporary emigration as an excuse to give them up.  Good onya. Eleven hours in the air passed fairly quickly, some music, some podcasts and a movie – I watched The Sentinel from end to end. As I’ve already hinted at in an earlier posting, the ICE facilities from Perth to Dubai on the Airbus 343-500 were not as advanced as those on the Boeing 777-300ER.

The seven hours flight time from Dubai to Glasgow was a pleasant experience. After take-off the couple sitting on the window and middle seats to my right moved forward one row, leaving me with three seats to myself.  This meant that I spread out, laptop in the middle seat, lunch and coffee on the aisle, beer and wine on the window.  After watching Failure To Launch “on demand”, and failing to stay wake for Firewall (twice), I spent much of this flight skimming the on demand audio CDs.  These included Metallica’s 1991 seminal works [Metallica Metallica, The Black Album] and “no. 1’s from 1980 onwards”.   Each of the “no.1” albums had a few short facts about the year in question – a few that I could remember, Euro = 1999, Survivor’s Eye of the Tiger = 1985.

I must be stressed.  My concentration levels are virtually nil: I spent a while flicking through the “no.1’s” just listening to a few seconds of tunes that I already had in my collection at home.  No focus.  That’s why I’ve fired the laptop up, to try and get some focus by writing this posting.  I really should do something about this: the first sign of stress is lack of concentration.  Heck, I’m a frequent flyer, I should not be stressed.  So what’s getting to me?  Perhaps because I failed to concentrate on the “to do” items that I set myself for the trip out to Oz: stick my head in my Spanish learning material”.  Ditto on the way back – there was a screaming baby a few rows behind me (where are those noise canceling headphones?  not that they would soften the sounds of a baby crying).

Like the route from Glasgow to Dubai, we passed over Iranian airspace.  I can’t help but think that it’s only a matter of time before something happens in this space, both physically and politically.  Probably sad but true.  Iraqi airspace was given a wide berth, I can’t think why, 37,000 is a long way for SAMs (surface to air missiles) to reach, surely?  And surely the Coalition pretty much control the Iraqi airspace? 

Oz: Bobby Dazzler’s

Just a regular day in the office…

I was left to fend for myself tonight – which was pretty good going given that I had been there since Friday night (having company for Friday, Saturday and Sunday, I mean). After a lengthy wander around Perth, I settled on Bobby Dazzler’s – the true blue Australian beer pub, as recommended my my office buddy Jim.

Dinner was super value and the beer tasted good: a burger and a small glass of Cooper’s 5.8% ale. [If the other Jim is reading this posting, are you related to these Coopers?]

A threesome, him, him and her (from NZ, I can tell the difference!) came in and sat themselves down at the table next to me. They muttered for a few minutes over the menu and then left the establishment rather rapidly stating that the menu was “too expensive”. What rubbish. It was well-priced, well-served and well-cooked, an excellent meal. Since I was sat there on my own, I arrived with weaponry: a local newspaper. Man, life is so different over here. Fuel is about A$1.45 (£1 == A$2.48), that’s less than £0.60 per liter. This just goes to show that fuel prices are partly related to population density (not stupidity, although…perhaps): here’s in the UK we are probably reaching over-population and are certainly densely populating many areas of our landscape. In Oz, things are significantly more spread out.

Oz: Team lunch and dinner on Saturday

Despite initial plans for a quick sandwich, as a group we ended up walking through the streets of Perth. Getting the team to decide on a suitable lunch venue proved difficult.  We actually ended up in a typical English-style pub – the Moon and Sixpence. I enjoyed a traditional Oz beer: Redback, on draught.

After a day at work, a day that included a brief walkabout during lunch, most of us ended up in the Fairlanes bowling alley. Oscar unfortunately did not join us…he got stuck in the hotel lift, for over 90 minutes.

bowling.gif
Art and I “programming” the bowling computer

Despite a slightly bruised left knee, I managed four strikes, three of which were consecutive (a turkey) giving me a score of 159. The next highest score was 161, from Art. Speaking of Art, he brought along his family: wife Goshi and daughter Sabrina.

Dinner was held in south Perth, over the Swan river. The weather was not conducive to “walking it”. I enjoyed a medium to well-done sirloin steak, others enjoyed a variety of fish dishes. Beer: James Boag Premium (lager)

Penny, Richard and I stayed out for a beer. Only one – the bar was loud, it was raining and we had a river cruise planned for the next day. Noted that fuel is A$1.42 per liter, or £0.58…over here in the UK, we’re paying pennies off £1.00. Rip-off Britain again.  I learnt that Aussies “went spare” when the price went through a$1.00. Different cultures, different problems perhaps? No. I don’t think so, we should be striving for unification. We should borrow some more of the ideas from StarTrek and get our act together, removal of financial greed and geographical economies would benefit mankind so much.