Skip to content

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

Relative file paths in BAT files

G30th January 2019 

CNo comments

Instructions for using a relative file path in batch files.

Read the full story

Run an ImageJ batch processing macro in “headless” mode

G23rd October 2018 

CNo comments

Instructions for running an ImageJ macro script in “headless” mode via the command prompt in Windows.

Read the full story

Make ImageJ 1.x work in the background

G22nd October 2018 

CNo comments

Run ImageJ macro scripts in “batch mode” to improve performance and allow images to be processed in the background.

Read the full story

PostgreSQL: Store a PSQL COUNT query result as a Bash variable

G5th June 2018 

CNo comments

Use this nifty code to isolate the result of a PSQL COUNT query as a variable within a Bash script.

Read the full story

Run an ImageJ macro directly from GitHub Gist

G23rd May 2018 

CNo comments

Simple code that enables you to host your ImageJ macro scripts on GitHub Gist but execute them from a local machine.

Read the full story

Easily create QR Codes in Word

G16th May 2018 

C7 comments

Did you know that it is possible to generate fully-functional QR codes in Microsoft Word using mail merge without the need for third-party plugins?

Read the full story