Git: Automatic Pre-Commit Unit Testing

Saturday 29th June 2019

Git allows the user to run custom scripts at various points in it's workflow. This is done through hooks. Here we will use hooks to ensure that unit tests are passing before allowing a commit.

Read More

My Picks for Ludum Dare 44

Saturday 25th May 2019

I recently took part in Ludum Dare 44. For the uninitiated, Ludum Dare is a hackathon in which participants make a game in 48 hours. The following is my list of personal highlights from the games I played.

Read More

WordPress: Cloning a Live Site to make a Test Site

Monday 21st January 2019

A common task when administrating WordPress is to set up a copy of an existing site in a sub-directory of the same server, which can be used to test potentially site-breaking changes (such as plugin updates). I recently had to do this on a website with a particularly large amount of data, and my usual technique of cloning a WordPress site was not sufficient. In this article I will be documenting what I learned from this job.

Read More

WordPress Debugging: Finding a hidden Admin Toolbar

Monday 14th January 2019

I was recently hired to fix an issue on a WordPress site where the Admin Toolbar would not show up when viewing front-end pages, even if you were logged in as an admin. In this article I will document the process by which I fixed the problem.

Read More

C: Making our Bubble Sort Flexible

Tuesday 1st January 2019

Last time we implemented a basic bubble sort algorithm in C. It only worked on strings, and was thus very limited. In this article we will be making a more flexible bubble sort that can work on any type.

Read More

C: Programming a Bubble Sort

Thursday 20th December 2018

A bubble sort is one of the most basic ways to sort data. It is not efficient but the simplicity makes it a good place to start understanding the concepts. Today we will be implementing a bubble sort in C.

Read More

BASH: Writing a simple Backup Script

Saturday 17th November 2018

Today we will be looking at how to write a simple Backup script using BASH and various Unix tools. Our script will determine the destination path and input file names by reading a plain-text file. It will then compress the input files into an archive in the destination path.

Read More

C: Basic Performance Testing on Linux

Friday 2nd November 2018

It can often be useful to use a high-resolution timer when programming, for example for performance testing or for real-time applications like video games. In this article we will be looking at how to do this on Linux with clock_gettime.

Read More