Skip to content

Dear Internet Explorer user: Your browser is no longer supported

Please switch to a modern browser such as Microsoft Edge, Mozilla Firefox or Google Chrome to view this website's content.

CSS logo

Working with Fixed Headers in CSS

Posted 6th December 2024

No comments

Lots of websites use fixed headers as part of their design, but there are often unintended consequences to implementing such a design element.

Read the full story...

Docker logo

Build a Docker container image

Posted 25th November 2024

No comments

Linux containers are a way to build a self-contained environment that includes software, libraries, and other tools. They’re immensely useful and this guide describes my method for creating them.

Read the full story...

Switch off the GPU in a Python script

Posted 28th October 2024

No comments

Here’s a simple piece of code which effectively directs a Python script to use the CPU rather than the GPU.

Read the full story...

Divide Label Studio YOLO annotation files into training and validation sets

Posted 17th October 2024

No comments

Label Studio is an open-source data-labelling platform used to prepare training data for machine learning models.

Read the full story...

A box logo and text which reads "Git Large File Storage"

Setting-up Git Large File Storage on a GitHub repository

Posted 16th October 2024

No comments

Help! I just committed some large files to GitHub and now I can’t push them because they’re too big.

Read the full story...

Download and extract a tarball in Python

Posted 9th October 2024

No comments

A simple method for downloading a tarball from the internet and then extracting its contents in Python.

Read the full story...

Installing RStudio in WSL2

Posted 22nd July 2024

No comments

Installing RStudio within the Windows Subsystem for Linux was not as simple as expected, once I started installing packages in R. Here’s my procedure for getting it all to work seamlessly.

Read the full story...

Replace a string in file names recursively in Linux

Posted 5th June 2024

No comments

Use this simple BASH script to recursively rename parts of file names in Linux.

Read the full story...

Python logo

Crop images in Python with array indexes

Posted 22nd May 2024

No comments

The advantage of this simple procedure for image cropping is that there’s no need to install special image manipulation packages.

Read the full story...

Stop Git from always asking for user credentials

Posted 11th April 2024

No comments

Here are a few methods for preventing Git from asking for user credentials upon every push.

Read the full story...