Tag Archives: Howto

How to find the fattest directories with du (Disk Usage)

If you happen to be running out of space on your *nix platform or would like to see which directories are consuming the most disk space you can use the disk usage utility. Most Linux distros come with du, disk …

Posted in Linux

Howto set date and time from the CLI and keep your time synced with ntpdate

Being a systems administrator, at some point in your life you’re more than likely going to need to update the date and time on your linux box. If you only have command line access to a linux server you will …

Posted in Linux

A lesson in bash history

Have you ever wondered how it is that you can skip back and forwards throughout your history of commands on bash? Well it’s pretty simple, bash keeps a log of all commands you enter in a file called bash_history in …

Posted in Linux

How to dump MySQL stored procedures

When dumping a MySQL database, by default, stored procedures and functions will not be backed up. If you want to backup stored procedures as well as the structure and data you can specify the –routines option on mysqldump. mysqldump -u …

Posted in Linux

Simple MySQL replication with Ubuntu – Master to slave

A simple, easy to follow and extremely detailed how to on setting up basic MySQL master to slave replication on Ubuntu.

Posted in Linux

Appcelerator: Left/Right nav button background colour

Due to the workings of the iPhone SDK, allowing system buttons, which are the default nav buttons located on the navbar to have different background colours is not currently possible.

Posted in Appcelerator

Debugging methods for PHP

I recently read an article about the most commonly used PHP functions and while reading I was thinking about the most useful functions I tend to use day in, day out when debugging.

Posted in PHP