Stupid mistake over Javascript parameters

I have been using the Google Maps JavaScript API today. I lost too much time over a really stupid error. I was trying to set the zoom level on a map using the call map.setZoom(); I had set my initial zoom level to 5 (the scale is 1-17 I think) in the map load, when I called setZoom to 11 all was fine, but if I set it to any other number is reverted to 5. This different effect for different numbers was a real red herring. The problem was down to how I was handling the variable containing the zoom level prior to passing it to setZoom method. When it was set to 11 it was set explicitly e.g. ...

September 10, 2010 · 1 min · Richard Fennell

Problem faking multiple SPLists with Typemock Isolator in a single test

I have found a problem with repeated calls to indexed SharePoint Lists with Typemock Isolator 6.0.3. This what I am trying to do… The Problem I am using Typemock Isolator to allow me to develop a SharePoint Webpart outside of the SharePoint environment (there is a video about this on the Typemock site). My SharePoint Webpart uses data drawn from a pair of SharePoint lists to draw a map using Google maps API; so in my test harness web site page I have the following code in the constructor that fakes out the two SPLists and populates them with test content. ...

September 10, 2010 · 4 min · Richard Fennell

My Typemock video have been published

I have a couple of new video’s on on the Typepmock Experts site, why not take a look, the titles are Using Typemock Isolator to enable rapid development Using Typemock Isolator and Ivonna for unit testing the UI

September 9, 2010 · 1 min · Richard Fennell

I am speaking at the VBug Autumn Conference

The VBug Autumn Conference is on the Wed 27th & Thurs 28th October at Holywell Park, Loughborough. The published agenda this far is **Day One (Wed 27th Oct):**Top of the Pops with Sharepoint 2010 – Dave McMahon Cache Out with Windows Server AppFabric – Phil Pursglove Mapping the Cloud – How far can we stretch it? Johannes Kebeck Silverlight Development on Windows Phone 7 – Andy Wigley **Day Two (Thurs 28th Oct): **TFS (actual title TBC) – Richard Fennell Silverlight 4 (actual title TBC) – Richard Costall Others to be confirmed…including Azure, Expression Blend & BI ...

September 9, 2010 · 1 min · Richard Fennell

Running Android on my HTC Diamond2

I have posted in the past that I am not a huge fan of my phone, so I read Martin Hinshelwood’s experiences with putting Android on his HTC HD with interest. I have tended to leave my phone as a consumer device i.e. it does what it does, I tend to not fiddle too much as long as it will make calls, sync email and allow me to get the cricket scores on the BBC website, the essentials of life. However, I had a spare SD card and a bit of time. So it was off to the Diamond2(Topaz) XDADevelopers forums to see what I needed. ...

September 8, 2010 · 2 min · Richard Fennell

Does anyone need a VS2010 Custom Build Activity for StyleCop?

There is a noticeable omission form the tooling for StyleCop that you cannot integrate it into a TFS 2010 Build directly. There is a custom task to do it as part of MSBuild Extension pack, but this is designed for TFS 2008. So when I had to wire in StyleCop to our 2010 build process I hit a problem, I could Edit the .csproj files for each project to wire in StyleCop Use an MSBuild activity in my 2010 build Write my own custom activity. I decided to follow the final option, it did not look too bad as the source needed is provided in the StyleCop SDK. Well after a good deal of fiddling I have it basically working. Again I found the process of developing a custom activity a little irritating. ...

September 3, 2010 · 2 min · Richard Fennell

New book on Refactoring with Visual Studio 2010 from Packt Publishing

Recently Packt Publishing sent me a copy of ‘Refactoring with Microsoft Visual Studio 2010’ by Peter Ritchie, I have to say I have rather impressed by it. My only major issue with it is that of the title, this book covers much more than the refactoring features of 2010. It provides a very clear example driven discussion of the use and application of both refactoring patterns and design patterns. I think this would be an excellent book for a developer who want to start to apply design patterns to their C# code. The examples being more real world than Head First’s ‘Design Patterns’ (and the examples are in C# as opposed to Java) and the book being a far easier read than the classic ‘Design patterns : elements of reusable object-oriented software’ ...

September 3, 2010 · 2 min · Richard Fennell

DDD Dublin call for speakers is open

There is a call for speaker for DDD in Dublin on the 9th of October, that is not that far away is it! [Updated 1 Sep 2010] The link would help http://developerdeveloperdeveloper.com/dddie10/

August 31, 2010 · 1 min · Richard Fennell

What is an .xesc file?

Test Professional, after the Lab Management update, now uses Expression Encoder 4.0 to create it video of screen activity. This means that when you run a test and record a video you end up with an attachment called ScreenCapture.xesc. Now my PC did not have the Expression Encoder 4.0 installed, so did not know what to do with an .xesc file created within our Lab Management environment. To address this the answer is simple. On any PC that might want to view the video either: ...

August 27, 2010 · 1 min · Richard Fennell

Cannot run CodeUI tests in Lab Management – getting a ’Build directory of the test run is not specified or does not exist’

Interesting user too stupid error today whist adding some CodeUI tests to a Lab Management deployment scenario. I added the Test Case and associated it with Coded UI test in Visual Studio I made sure my deployment build had the tests selected I then ran my Lab Deployment build, but got the error Build directory of the test run is not specified or does not exist. This normally means the test VM cannot see the share containing the build. I checked the agent login on the test VM could view the drop location, that was OK, but when I looked for the assembly containing my coded UI tests was just not there. ...

August 27, 2010 · 2 min · Richard Fennell