Rescaling Data in R
Posted 23rd September 2019
No comments
A simple methodology for rescaling multiple series of data via min-max normalisation in R, then plotting.
Check file names with RegEx in ImageJ
Posted 26th July 2019
No comments
Use regular expressions to apply different steps in an ImageJ macro script by querying the file name.
Force “git pull” to overwrite local files
Posted 19th June 2019
No comments
I needed to over-write a local version of a repository as it was not fully updating. This worked.
SQL to CSV via Python, with Headers
Posted 7th June 2019
1 comment
Nifty Python code that converts a SQL database file into a CSV file and includes column headers.
Larger matplotlib images in Jupyter Notebook
Posted 21st February 2019
No comments
Simple code to enable matplotlib to generate larger inline images in Jupyter Notebook.
Push local files to GitHub
Posted 6th February 2019
No comments
Instructions for committing a folder of local files to a new GitHub repository via the Command Prompt.
Relative file paths in BAT files
Posted 30th January 2019
No comments
Instructions for using a relative file path in batch files.
Run an ImageJ batch processing macro in “headless” mode
Posted 23rd October 2018
No comments
Instructions for running an ImageJ macro script in “headless” mode via the command prompt in Windows.
Make ImageJ 1.x work in the background
Posted 22nd October 2018
No comments
Run ImageJ macro scripts in “batch mode” to improve performance and allow images to be processed in the background.
PostgreSQL: Store a PSQL COUNT query result as a Bash variable
Posted 5th June 2018
No comments
Use this nifty code to isolate the result of a PSQL COUNT query as a variable within a Bash script.