24 Feb 2016

Raspberry Pi: Change Java JVM – OpenJDK / Oracle

Source code

When I first began using the Raspberry Pi to run Java applications, Oracle had yet to release a Java virtual machine that utilised ARM hard floats (hardware accelerated floating-point math processing). This meant that the Oracle JVM had to do all of this arithmetic in software causing excessive CPU load and poor performance. It was […]

14 Feb 2016

Raspberry Pi: SSH using public and private keys

Sometimes it’s necessary to leave a publicly accessible SSH connection available on your Raspberry Pi. While a strong password is essential, a much more secure method for authentication is to use a public and private key system. This guide will take you through all of the steps to creating the keys, configuring the Raspberry Pi, […]

2 Feb 2011

JavaScript: Useful number formatting functions

Source code

Recently I’ve been developing a lot of reporting applications in JavaScript and have collected a few helper functions that I use regularly for number formatting. Here’s a look at each function and how you can use it in your own projects. Rounding a number to a defined decimal precision Input: 1234.567 Output: 1234.6 (to one […]

24 Nov 2010

PHP: Easy integrated benchmarking

Source code

When I began developing PHP I found the biggest stumbling block for me was learning the best practices and many nuances for greater performance, especially when querying a database. I found that I could smash out functional PHP for proof of concept purposes, but when it came to optimising my code for release and I […]

15 Nov 2010

Automatically connect to VPN at Windows startup

VPN connection

I use VPN for work quite often, and lately more often than not.  I found that some programs that load on Windows startup and rely on this connectivity were trying to connect before I had a chance to establish a VPN connection.  I needed a way to connect to VPN as soon as possible, even […]

10 Nov 2010

Quick tip: Firebug console output

Source code

I’ve found debugging my JavaScript projects much easier since using the Firebug add-on for Firefox, but more specifically outputting to the Firebug console.  It’s as easy as this: var myVar = 42; console.log(‘my variable: ‘ + myVar); This will output ‘my variable: 42‘ to the Firebug console, just like using System.out.println() in Java. There are […]

14 Oct 2010

IE9 is the IE6 of CSS3

If you’re anything like me when it comes to IE9 you’re viewing Microsoft’s hype with a measure of skepticism.  Microsoft’s Internet Explorer is both the most popular web browser and the biggest pain in the ass for us web developers.  When I first heard that Microsoft were making an effort to support the latest standards […]