Random routines that I find useful (or fun).