Category

bash

BASH history and GNU screen

I can’t remember exactly when or where I learned this. I would guess sometime between 5 and 10 years ago, while I was working at Nuance Communications. I likely learned it from st…

Yet another website re-design

This is the third post about redesigning my website now. I did a major re-write and re-design in 2010, and then again in 2021. I have been thinking about redesigning again for ove…

UNIX Tip of the day: simple backups

WordPress 5.9 is out! Very exciting stuff. I am really excited to try out full-site editing. I think that full-site editing will really be the moment where all of the previous wor…

Photos, EXIF, IPTC oh my!

Today I wanted to make a post on my blog with a bunch of pictures. I used my Canon DSLR over the weekend, and I imported all the pictures into the Photos app on my Mac. My normal…

UNIX tip of the day: pushd

I am frequently surprised by the number of colleagues I have who do not know about the BASH builtins pushd and popd. I myself remember seeing them for the first time in a script a…

Unicode block names in regular expressions

Frequently, I find myself wanting to do some simple language detection. For Chinese, Japanese, and Korean, this can easily be done by looking at the types of characters in some te…

Pretty printing json

Here is a really simple way to pretty print some unformatted json $ echo '{"foo": "lorem", "bar": "ipsum"}' | python -mjson.tool { "bar": "ipsum", "foo": "lorem" }

Using awk to sum rows of numbers

I have a script which takes a tab-delmited file for regression tests, and converts it xml. I want to do a sanity check, to make sure that the number of utterances in my xml files…