Skip to content

Copying and moving files on Linux

G8th September 2020 

CNo comments

Copy or move files of type from one directory to another on a Linux operating system via the command line.

Read the full story

Iterate both i and j in Python

G2nd September 2020 

CNo comments

Two methods for implimenting nested iterations of i and j in Python.

Read the full story

SVG not displaying in Chrome browser

G31st August 2020 

CNo comments

A simple solution for a situation when a SVG fails to display in Google Chrome but works in other browsers.

Read the full story

PostgreSQL: Add columns to a query table with variables

G3rd July 2020 

CNo comments

Generate a new column in your PostgreSQL database query from data in other columns or other tables.

Read the full story

Rescaling Data in R

G23rd September 2019 

CNo comments

A simple methodology for rescaling multiple series of data via min-max normalisation in R, then plotting.

Read the full story

Check file names with RegEx in ImageJ

G26th July 2019 

CNo comments

Use regular expressions to apply different steps in an ImageJ macro script by querying the file name.

Read the full story

Force “git pull” to overwrite local files

G19th June 2019 

CNo comments

I needed to over-write a local version of a repository as it was not fully updating. This worked.

Read the full story

SQL to CSV via Python, with Headers

G7th June 2019 

CNo comments

Nifty Python code that converts a SQL database file into a CSV file and includes column headers.

Read the full story

Larger matplotlib images in Jupyter Notebook

G21st February 2019 

CNo comments

Simple code to enable matplotlib to generate larger inline images in Jupyter Notebook.

Read the full story

Push local files to GitHub

G6th February 2019 

CNo comments

Instructions for committing a folder of local files to a new GitHub repository via the Command Prompt.

Read the full story