Note #20645

Unable to sleep, I found myself wondering whether anybody with a retro-hipster vibe had built a smart pocketwatch. All your smartwatch features, but in pocketwatch format.

Then I realised I was describing a mobile phone on a keychain.

Counting Down

I wasn’t sure that my whiteboard at the Bodleian, which reminds my co-workers exactly how many days I’ve got left in the office, was attracting as much attention as it needed to. If I don’t know what my colleagues don’t know about how I do my job, I can’t write it into my handover notes.

You have [20] work days left to ask Dan that awkward question.
Tick, tick, tick, tick, boom.
So I repurposed a bit of digital signage in the office with a bit of Javascript to produce a live countdown. There’s a lot of code out there to produce countdown timers, but mine had some very specific requirements that nothing else seems to “just do”. Mine needed to:
  • Only count down during days that I’m expected to be in the office.
  • Only count down during working hours.
  • Carry on seamlessly after a reboot.
Screen showing: "Dan will be gone in 153 hours, 54 minutes, 38 seconds."
[insert Countdown theme song here]
Naturally, I’ve open-sourced it in case anybody else needs one, ever. It’s pretty basic, of course, because I’ve only got a hundred and fifty-something hours to finish a lot of things so I only wanted to throw a half hour at this while I ate my lunch! But if you want one, just put in an array of your working dates, the time you start each day, and the number of hours in your workday, and it’ll tick away. You have [20] work days left to ask Dan that awkward question.× Screen showing: "Dan will be gone in 153 hours, 54 minutes, 38 seconds."×

The Software Engineers Behind My Alarm Clock

[this post was lost during a server failure on Sunday 11th July 2004; it was partially recovered on 21st March 2012]

They must die.

My alarm clock has an interesting featurette. The design is, on the hole, like many similar mains-powered radio alarm clocks. It has a button for “Time Set”, and one for “Alarm Set”, and buttons for “Hour” and “Minute”, respectively. To set the time, you hold down the “Time Set” button – which is deliberately small and well-concealed to make sure you don’t press it by accident – and use the “Hour” and “Minute” buttons. To set the alarm, you hold down the “Alarm Set” button and use the “Hour” and “Minute” buttons.

Anyway; the featurette I mentioned is that if you are setting the alarm, say, and you release the “Alarm Set” button before you release the “Hour” or “Minute” buttons, the clock immediately adds an hour or a minute to it’s time, respectively.

So, when I – tired and using only one hand and the least effort I could manage – set my alarm last night, I didn’t even notice that I’d managed to put forward the time on the clock face by two hours. When my alarm woke me this morning at what I thought was 8:15am (but was actually 6:15am), I was completely exhausted. So I reset the alarm to 8:45 (actually 6:45) and … [the rest of this post is lost]