Build your own Astrolight app

Astrolight is a simple red flashlight application which you can get in the Windows Phone Marketplace, it’s so simple that I’m going to tell you how you can create one too. With two lines of code.

Assuming you’re all up and running with the free Visual Studio Express for Windows Phone, we just need to start a new Windows Phone Game project…

Then we double click the Game1.cs file and find the Draw method. Here we need to change replace one line with two:

/// <summary>
/// This is called when the game should draw itself.
/// </summary>
/// <param name="gameTime">Provides a snapshot of timing values.</param>
protected override void Draw(GameTime gameTime)
    graphics.IsFullScreen = true;


Press play and watch your brand new app on the Windows Phone Emulator!

TouchStudio for Windows Phone 7

Microsoft Research has created a fancy project for Windows Phone 7 called TouchStudio – a scripting environment which allows you to write code on your phone with just your fingertips.

I’ve been playing with TouchStudio for a couple of weeks now, and I can definitely say it brings the fun of messing around with a programming language to the phone. But don’t expect to be creating any higher level applications just yet.

The language itself seems to be still in flux right now, including breaking changes in the V1.1 release. But it is a very modern and good looking language, without extra semicolons or curly braces that would be included if you were porting a language like C# over to the phone.

Check Channel 9 for some cool videos, or if you don’t have a Windows Phone you can check out a related project from Microsoft called Small Basic. While the language is totally different to the one in TouchStudio, it does seem to have similar goals for the end user.


TouchStudio 1.2 has been released. This includes new features such as posting to Facebook!

Office Life Timelapse

This video has gone!

I created another cool time-lapse video last week, and I think this one came out pretty well. As you can see, it’s not of the sky this time. Instead we get to see the busy life of the Branded3 offices in Aberford. Oh and the awesome music is supplied by Mike Jeffs. Good job.

My other time lapse videos:

Five Favourite Visual Studio 2010 Extensions

Productivity Power Tools

Probably the best code focused extension for Visual Studio 2010 is the amazing Productivity Power Tools. It includes such gems as the Solution Navigator which lets you navigate to classes and members, search for references, and filter your solution to show only checked out files.

NuGet Package Manager

NuGet is an awesome open source package manager for the .NET platform, which includes a very large amount of third party libraries ready to use in a couple of clicks. Or, if you fancy, by using a PowerShell console. They totally get extra points for the PowerShell integration…

F# Outlining

The name pretty much describes what it does. Visual Studio 2010 was a pretty massive release for Microsoft, including F# for the first time. This is why I totally forgive them for not implementing outlining support for this fledgling language. Fortunately someone else did their job for them.

Spell Checker

Everyone wants to have properly spelt comments, especially when you’re using the XML comment features in the .NET languages to produce documentation for your customers. While this plugin is pretty simple, it works a treat and even supports custom dictionaries.

Python Tools for Visual Studio

Not just an extension, but a whole bunch of Python related win for Visual Studio. This latest version works with both CPython and IronPython which really increases the scope for these tools.

Don’t forget to couple these guys with the Microsoft Web Platform Installer for great justice.

Does Green Tea Give Me Migraines?

In the past I’ve had really bad headaches from what seems to be behind my right eye. For a while I thought it may have something to do with my glasses having the wrong prescription, but a recent visit to the opticians said there was nothing wrong with my right eye, and that the prescription hadn’t changed much. So even after the new glasses I’d keep getting these headaches – until, at some point, it stopped.

Fast forward a good number of weeks to now – and I’ve been feeling quite healthy. None of this headache business at all. That is, until today…

What did I have back then, and today – which I’d not had for a while?

Gunpowder green tea.

A quick Bing around shows us that there are other people saying similar things, but the thought had never crossed my mind before. I’ll have to lay off it again and see what happens.

Strangely, it didn’t seem to happen when I drank green tea from a bag, so maybe it’s the uber-detoxifying powers of Gunpowder that causes this to happen.

Also, on an interesting note, I’d never realised that my headaches are actually ‘textbook‘ migraines with aura. Cool.

This is just my experience though, and I’m sure I’ll follow up with more information, but I’d be interested to hear if anyone else has had these symptoms.