Lifehacker recently featured a deal where you can buy a battery pack for $20 (now $28). $20 is my “not real money” limit, and when I spend the day reading at my favorite tea store, the battery on my phone tends to die. I got the battery on …
Fixing a clock with NTP
My roommate’s computer’s clock has been broken since we first installed Linux on it. It was never a big deal, but it’s been annoying me for a long time.
Recently, my laptop started to have a similar problem. A friend had used Windows on it, and so the clock was …
RFC 7240’s “Prefer: wait” instead of “Timeout” header
I emailed the IETF HTTP group about my timeout header idea, and a few people said that RFC 7240’s “wait” preference does what I want. I’m not entirely convinced that this is what was intended by that spec, but it’s close enough. In response, I’ve updated my Express middleware to support the “Prefer” header and “wait” preference.
OCaml operator cheatsheet
One of the hardest parts of learning OCaml is figuring out what the infix operators do, since they’re just a string of symbols and you can’t find them with a Google search. This is my attempt to make a cheatsheet for whenever you’re wondering what a random series of symbols means.
Monitoring servers with Monit
This machine runs a lot of services and I don’t use all of them. After breaking several of them and not noticing (again), I decided to finally set up service monitoring. After some research, Monit was relatively easy to set up and seems to meet my needs. I figured other people might want some examples of how to use it, so this post describes how to set it up and you can see my config file at the end.