Category Archives: Uncategorized

Syntax Highlighting For Code Examples in Web Pages

The google-code-prettify project makes it possible to apply syntax highlighting to code examples in web pages. These notes are based on the Getting Started guide and README. Include the run_prettify.js script in your page. Put your code example inside one … Continue reading

Posted in Uncategorized | Leave a comment

Windows Command Line Reminders

dir /s/b *.mp3 – recursively list files with the specified extension > foo.txt – redirect output to specified file chdir – get full path to current directory %~nxf – gives filename.extension (How to get filename only without path in windows … Continue reading

Posted in Uncategorized | Leave a comment

FoWA London 2014 Notes: Camille Baldock on Telling Stories with APIs

Notes from Camille Baldock, Telling Stories with APIs, 1 October 2014 Speaker Slides Kindle API is based on book – book, chapters, pages (nested resources) “What is the user need?” User need 1: child reading cares about events and characters … Continue reading

Posted in Uncategorized | Leave a comment

Working with Scrivener across Devices using Dropbox

I do most of the work on my Scrivener project on my Windows machine, but I wanted to be able to do work on it on my Android tablet during a long flight. Since I also have a Mac with … Continue reading

Posted in Uncategorized | Leave a comment

Combining AngularJS and PhoneGap

Create your PhoneGap project Download AngularJS, and save it somewhere accessible by the www\index.html page (e.g. in the www\js folder) Add a reference to the new file to the www\index.html page. Add your AngularJS code Your AngularJS app needs to … Continue reading

Posted in Uncategorized | Leave a comment

Setting up PhoneGap/Cordova for Android on 32-bit Windows 7

I tried to follow the getting-started instructions in the PhoneGap documentation, but found a fair amount of trial and error was involved. Hopefully this guide will mean that in future getting set up will take less than three hours… Pre-requisites: … Continue reading

Posted in Uncategorized | Leave a comment

Installing a specific version of a package using NuGet in Visual Studio

I needed to be able to install an old version of a package from NuGet. I couldn’t do it directly via ‘Manage NuGet Packages’, but it turns out it can be done via the Package Manager Console. Open up the … Continue reading

Posted in Uncategorized | Leave a comment

Yeoman Woes

Having attended a presentation on Yeoman at the FoWA conference in October, I recently decided to give it a go with an AngularJS application. I followed the Getting Started With Yeoman guide to install Yeoman and the angular generator (resulting … Continue reading

Posted in Uncategorized | 2 Comments

Favourite Quotes

‘when you have eliminated the impossible, whatever remains, however improbable, must be the truth’ – Arthur Conan Doyle, The Sign of the Four, 1890 In other words: When you’ve checked everything you think likely without success, you need to start … Continue reading

Posted in Uncategorized | Leave a comment

Writing Maintainable Code

Much of my life as a developer has been spent reading through someone else’s code to try to fix a defect or add some new behaviour. As a result I have some heartfelt pleas to make to my fellow developers … Continue reading

Posted in Testing, Uncategorized | 1 Comment