I read about aesthetic uses of Latin Squares on John Cook’s site a few months ago. Since I maintain a resource to use colour tables in Igor Pro, I thought it would be fun to use Latin Squares to display colour tables for easy visualisation. Briefly, I wrote some code to generate a 9 x […]
Category: computing
Tips From The Blog XVII: determining playback speed of a video
Generating movie files for publication can be a bit tricky. We have a protocol for making them for microscopy data, which simplifies things. However, we recently got this question from a journal: please state the playback speed of each movie file How can we do this? What information is needed for movie files? Usually movies […]
Fixing a hole: reinstalling pi-hole
I run two pi-holes on my home network (details here). The older of the two was in need of a refresh. Here are some notes on how I did a reinstall. For those that don’t know, a pi-hole is a simple ad-blocking solution. You can donate to the project here. Problem The pi-hole itself can […]
Tips From The Blog XVI: fast check of two directories
Here is a quick method for checking parity between two directories. Let’s say we have two directories dir1 and dir2. They are large and have thousands of files and subdirectories. How can we check that they have the same contents? I found myself in this situation recently during a server migration. Method 1: rsync To […]
Line Up: Waffle plots for colocalisation data
Quantifying the degree of colocalisation of two signals in microscopy images is very tricky. Lots has been written on this topic, including in my book The Digital Cell. The focus of this post is on visualising colocalisation. One way to look at colocalisation is two think about two sets of objects and how many of […]
Seles II: Tennis coding challenge solution
In a previous post, I described a coding challenge sent to me by my colleague. Here is the challenge again: There is a tennis match between two players denoted 1, and 2. You are given a sequence of 1s and 2s whereby each number denotes a point won by player 1 or player 2 (e.g. […]
Seles: Tennis coding challenge
A colleague sent me a coding challenge. This is a short post to describe how I tackled it. Edit: a follow-up post is here. This is the challenge: There is a tennis match between two players denoted 1, and 2. You are given a sequence of 1s and 2s whereby each number denotes a point […]
Convertible: using ffmpeg to convert audio files
A quick tech tip. I usually use Audacity for converting audio files and I have a few simple macros set up in there to make life easy. I had some opus music files which do not play in Apple’s Music app and therefore needed converting to MP3 format. Annoyingly, Audacity 3.1.2 on macOS does not […]
Trellisaze II: Updated guide to using Trello in the lab
Back in 2015, I wrote a guide to using Trello for lab organisation. I figured it was time for an update because a few things have changed since then and the topic of using Trello for larger labs came up on Twitter. Note that other kanban-style software is available. Basic Trello setup I set up […]
Play The Game: Retropie in a Retroflag GPi case
The Retropie project is a wonderful way to play retro games on a Raspberry Pi (see previous post). A number of handheld units are available to make a convincing retro gaming experience. One of these is the Retroflag GPi case, modelled on Nintendo’s Game Boy. It’s possible to order one of these pre-built and even […]