Categories
Development

Automated backups of an on-demand MySQL database using automysqlbackup

Since I’m a PHP developer and I run Ubuntu on my laptop, I find it very easy to development directly on the machine. This means that my laptop also has PHP and MySQL running (and until the new PHP 5.4 dev server, Apache). While PHP doesn’t is only used on-demand, the MySQL server is a […]

Categories
Development Testing

How to automatically create testing databases (in PHP & MySQL)

If you use an automated testing platform (such as Jenkins) you may have come across the problem where you need to manually create a new database (and sometimes user) every time you configure a different build or a different host. For small projects it’s not much of a chore, but for larger projects (or complicated […]

Categories
Development

Sorting an array with version number keys in PHP

There is a very quick and simple way to sort an array with version number keys in PHP.

Categories
Development Testing

PHPUnit was not found in your include_path, therefore no testing actions will be created.

When I was setting up a new Zend Framework application today I encountered an interesting message: [email protected]:~/workspace/application$ zf create project ./ applicationCreating project at /home/valorin/workspace/applicationNote: This command created a web project, for more information setting up your VHOST, please see docs/READMETesting Note: PHPUnit was not found in your include_path, therefore no testing actions will be […]

Categories
Development

Simple Bash keep-alive script

I came across an interesting issue at work today. We have a PHP script which monitors a socket on our phone system to save call logs into a database. It’s pretty simple, but it needs to run constantly to catch all the phone calls going through the system. So I did some goggling and found […]

Categories
Development

Do you use Version Control?

I wrote this article for my work’s public blog – go there and post comments so I look cool 🙂

Categories
Development

Forget AJAX and start using JUE (Javascript Usability Enhancement)

This is a post I made back in September of 2007 on my old website. I have brought it across to here as I still feel it is relevant and useful. My experience and use of Javascript has grown immensly since I originally made the post, but I still believe that it should be used […]