podcast review 2020

One of the nice things about having your own website is that you can do whatever you want. Today I am going to recommend/describe some podcasts I listen to. I usually do this directly to whoever speaks to me after I find a new one, but now I can …

setting up mastodon with hometown

This is a 'how to do something' sort of blog post, I might write about why later. The something is running a social network for my friends. The starting point is probably run your own social, which covers a lot of the 'why' and some of the 'what'. Chances are …

installing tmux locally

I have been setting myself up on a new computing cluster (CentOS 6.7), so I'm in the lovely land of installing things without root. tmux proved a bit frustrating, so here's what I ended up doing: install libevent tmux needs this, I didn't have it (you might, so try …

linking between zotero and evernote (in OSX)

I'm upgrading my paper-management workflow from 'labyrinth of folders' to an Evernote + Zotero mix. I already use Evernote a little for this by writing paper summaries in it, but I would rather do the 'heavy duty' management and organisation in Zotero. So, I'd like to easily switch between the Evernote …

quotes in awk

Lazily trying to paste a long list of strings into python, which means I need things wrapped in quotes (and commas, but I'm excluding them from this example cause they're easy). Grabbing the strings from a file using awk, but since quotes (apostrophes) are special in awk this messes things …

density plots without outlines in ggplot2

It is not: anything in the aes of the ggplot call color=FALSE color=NULL It is: color=NA in the geom_density call e.g. ggplot(data, aes(x=value, fill=grouping))+geom_density(color=NA) Example (this is some real data I'm currently working with, but I've changed …

deletion and replacement of strings in bash

I try to record useful one-liners for future reference. I forgot to write down what this one does: mv $f ${f##START}.${f%%${f##START}} This awkwardly-timed (time-zone troubles) blog post is atonement for my carelessness. Like all one-liners it looks complicated but is pretty simple. It does this: > f …

putting a line in a filename (with sed)

"How can I cut a line from a file and paste the rest into a file whose title is the line I just cut?" If you find yourself asking yourself this question with any degree of regularity, you may have issues. Luckily for you, the help you so desperately need …

man cut and other simple yet useful unix bits

Instead of just reading the man file, you could read this post about cut! Printing columns ('fields') n to m (inclusive) from a file: cut -d [delimiter] -f n-m filename Thus, removing the first n-1 fields from a file: cut -d [delimiter] -f n- filename [delimiter] is automatically a …