Backup entire Ubuntu System

sudo su cd / tar cvpjf backup.tgz –exclude=/proc –exclude=/lost+found –exclude=/backup.tgz –exclude=/mnt –exclude=/sys / tar – The backup program c – Create archive v p j – use bgzip compression f backup.tgz –exclude=*** exclude these directories from the backup

Virtual Server Hosting Comparison

Digital Ocean, Linode and Vultr offer some fantastic Virtual Server solutions from as little as $5. A comparison table of the entry level virtual servers from these three providers are listed below and any of them will provide a great solution if you want to run your own server. Full control over your configuration Easily … Read more

Show vehicle positions with the Google Maps v3 API

Most people are already familiar with Google Maps, so why not utilise that to present your business data to your users. Today I am going to show you how to use the Google Maps API to track vehicles using their AVL data. This is something I have done for the Fire Service to show the location of Fire Engines across the county.
For this we are going to need the following:
  • JQuery
  • The Google Maps JavaScript API
  • A page that displays the google map
  • Some JavaScript to pull the vehicle locations
  • A PHP Script to serve the vehicle locations
  • A way to generate dynamic icons

Generating Dynamic Icons for Google Maps with PHP

Google Maps provides a standard Marker marker image that looks like this and whilst I do not intend to offend Ji Lee, this icon can be replaced with an image of your choice. By using PHP to create an image dynamically on the fly you can have images that provide much more information.

Read more

Categories PHP

Party Excuses

The excuse for a party generator is a playground that has allowed me to use my PHP Date Class. PHP already includes date functions, but these only work on certain date ranges and would not allow dates from say the 18th Century. My own date class allows a wider range of dates and provides functions … Read more

My Singleton

If you have not come across design patterns, they are well worth reading up on. There is a great overview for PHP developers at IBM.

Read more

Categories PHP

Hide a single page title in WordPress

Took me a litle while to work out how to do this as I thought it would be an option for a page, but it was nowhere to be found.

My solution was to use the CSS to specifically target the h2 element on the page using the fact that the parent div has the post number as a class tag.

Read more

Solved – Slow startup on ICH8R / Asus P5B-E / SATA RAID Disks

Since I swapped out four 250Gb SATA drives for two 750Gb drives the startup time has been delayed by a matter of minutes as the ICH8R Raid Controller sat thinking about detecting the new drives. Changing the BIOS setting from RAID to IDE removed the problem completely, but alas no RAID.

I recently came across a known bug on the ICH8R Chipset where the controller would stall for 1.5 minutes if SMART was disabled on the drives. It turned out that the disks SMART status was set to Auto and this was enough to cause the delay. It is not obvious when the disks are in RAID configuration though as there is no setting for SMART. However if you change the Controller to IDE and set the SMART status of the drives to Yes then go back to RAID, this solved the problem in my case. Below are the details of my particular resolution.

Read more

Making Life Easier

As someone who spends a lot of time at the keyboard I find that RSI (Repetitive Strain Injury) is a constant visitor. Working on a laptop, even with a full-sized keyboard I find that the little finger of my left hand is the biggest problem as it spends so much time at the bottom left of the keyboard on the ctrl and shift keys, bent back on itself under my hand.

A fried (thanks Rob) passed me a link to AutoHotKey a utility for scripting the mouse and keyboard and I have found that by remapping the keys on the left of the keyboard this has helped no end. I list my script here for interest, but you will need to find what works for you.

Read more