Archive image

Archive for November, 2013

Use AJAX to filter MySQL results set

I recently helped someone with a project where they had to select a bunch of records from a database, then on the client side use AJAX to filter those records according to certain criteria.

This was a fun thing to work on and a good opportunity to demonstrate the power of AJAX, so I thought I’d write it all up in the form of a quick tutorial.

For the impatient among you, here’s a demo of what we’ll end up with.

Read more…

How to restore a previously deleted file from a GIT repository

I was recently working on a project and realised that I needed a file that I had long since deleted.

On the one hand, this wasn’t very tragic as I had the project under version control using GIT.¬†However, finding the exact command to restore a single file from a rather old commit proved to be a little more difficult, so I thought I’d make note of it here.

Read more…