Setting the correct timezone on a Ubuntu 12.04 Server

Ok, its no rocket science but I thought I’d quickly post up this very easy way to very quickly set your server’s time-zone without the need for editing files and looking up time-zone abbreviations manually etc.  if during installation you accidentally choose the wrong time-zone or (in like my case) your VPS provided has installed a default OS image with a different time-zone. You can […]

Configuring NetBeans for PSR-1 and PSR-2 coding guidelines.

Update: I’ve recently (as of February 2015) created a ‘Netbeans Module’ that you can import into Netbeans to automatically set the correct settings (instead of having to manually following this guide, see: Recently I’ve been looking into the PHP-FIG PSR standards and in an attempt to standardise my coding styles to a widely used standard, the PSR standards look like […]

Using Composer in your own PHP projects with your own Git packages/libraries

Composer is fast becoming the defacto standard for managing packages and dependencies in PHP applications. Composer is like Bundler, a dependency manager for Ruby on Rails! In this post I’ll be showing you how you can configure your own application to use Composer’s features and how  to automatically install and update your own packages from GitHub. In […]

Using git/composer on Windows 7 via. an authenticated proxy server.

Recently I had a requirement to connect to Git including using Composer via an authenticated HTTP proxy server, I thought I’d share my solution with you all. The machine I was using was a Windows 7 Professional machine (not my OS of choice!), connecting to a corporate proxy server using my ActiveDirectory credentials. After several hours […]

Installing the latest version of Ruby & Ruby On Rails on MacOSX (using RVM)

Installing Ruby (the latest version) and Rails (using RVM) on MacOSX is rather easy, this quick post will run you through installing Ruby and Rails using RVM (Ruby Version Manager) which apparently what all the ‘cool kids’ use to install rails with etc. By following these few simple steps and you should be up and […]

How to convert a multidimensional array to an object in PHP

Today I was working on creating an object from an array of data, I didn’t want a full blown class as I was only accessing the data as application settings  and thankfully due to PHP’s stdClass class this can be easily achieved like so:- $obj = new stdClass($array); or like… $obj = (object) $array However, problems occur […]

Creating *NIX user accounts without need for a password prompt!

It is likely that in future I will be implementing SSH access and generally changing the way that users are handled by ZPanel (on the *NIX platform). Currently all user accounts across ZPanel are ‘virtual’ accounts and not system accounts and for various reason’s I may want to change this in future. I have written […]