Four Counties

Things might be afoot. You will hear it here first. Well, okay, you’ll probably see it first on Twitter, but my Twitter feed is included here so you’ll see it in all sorts of places first and this will be one. Or is it? Or IS it? OR IS IT?

Last week, I suggested that people should slap me if I hadn’t booked driving lessons by this weekend. To disappoint many, not only did I book lessons mid-week, but today I spent almost three hours behind the wheel of a car, driving across four counties and doing just under one hundred miles. Plus I-40. And I didn’t kill anybody! Or myself! I am as surprised as everybody else, to be honest. The instructor even told me that I should start researching cars. I want a sm@rt car so, so much. However, I know it’s not all that practical, so any suggestions would be welcome.

It was a bit chilly today for this month’s Food Truck Rodeo, which probably contributed to it being a smaller event than the previous one, with slightly shorter queues. Though that’s not necessarily a bad thing given how long the queues can stretch when it’s warmer! Ended up trying Deli-icious and another cupcake truck. Not a bad way of spending a Sunday. Saturday seemed to consist mainly of Adam Curtis, ironing, and waiting at Fiction Kitchen for a table. Still, the ‘chicken’ and waffles were worth the wait.

Now, though, it’s cold and I have to get up early tomorrow, so early to bed and hopefully the wake-up before dawn won’t seem so bad. Hohoho. Though at least I have chocolate hobnobs now, thanks to Luke!

Attaching and Bashing

One day, you may find yourself sitting at a terminal trying to send an email with a MIME attachment. Easy, you think to yourself. Only you can’t install anything onto the server without triggering a long-winded QA process, and it’s then you discover that the machine only has /bin/mail and sendmail available. Oh, and no base64 tools like mpack.

You may ask yourself, how do I work this?


BODY="This is the text body!"

ATTACHMENT=`perl -MMIME::Base64 -0777 -ne 'print encode_base64($_)' < $FILENAME`

/usr/lib/sendmail -t <

Never let it be said that Snappish Thoughts isn’t a full-service blog. Okay, yes, it does depend on perl being installed with MIME::Base64, but this server had them, so there. If you want to write a base64() function in bash, consider that an exercise (you can, of course just use quoted-printable instead, but that can get you in trouble, whereas base64ing is much safer. And yes, you want to be careful you don’t run this on a 10GB file as it’ll do fun and interesting things as bash/perl run out of memory, but for attachment-sized files, you should be fine)!

Another Week

Not quite sure why I’m quite so melancholy on a Sunday night at the end of a week where a lot of fun things have happened. Maybe it’s the last dark tea-time of the soul taking effect.

Look! Durham is awesome. So says the pinko-commie liberal NY Times

If I haven’t organised a driving lesson by next weekend, you all have permission to slap me. I only have a month left before my learner’s permit expires.

Tomorrow, though, I will try to make homemade ramen. Wish us luck…

Things I Don't Want To Forget In The Morning

I really don’t want to forget this in the morning, so forgive me.

  psmove_get_magnetometer_vector(move, &qx, &qy, &qz);

  printf("orientation: %5f %5f %5f \n", qx, qy, qz);

  heading = atan2(qx, qz);
  heading -= 0.157;

  if(heading < 0)
      heading += 2*3.14;

  if(heading > 2*3.14)
    heading -= 2*3.14;

  printf("heading: %5f\n", heading * 180/3.14); 

Yes, I know that’s a horrible approximation. I’ll include math.h tomorrow. And then fire those figures into Redis. Turns out that my entire problem all along is that you have to worry about magnetic declination in America, whereas in the good old land of tea and plenty, you can ignore it. THIS IS GOOD NEWS, PEOPLE.

I wandered around Durham today, after spending the traditional five hours making chocolates and cleaning the kitchen. Firstly, it was 21˚C. That’s not right by any measure. I want snow! Or at least a good frost here and there. Of course, saying that, I see that back home, you’re all going to freeze, so you have little sympathy for me. Sorry about that. Anyway, I was walking, then sitting and reading. Then walking, and then walking again when it turned out that I should eat something. The not walking part of that really wasn’t much longer than the comma in the preceding sentence.

Anyway, after being complimented on my accent at a new-ish food truck (hello Big City Sandwiches!), I was struck that some of my British obsessions are rather interconnected - Lindsay Anderson, it turns out, ran thick and loose with members of the Independent Group and those that would eventually be known as the Brutalists. And the Independent Group’s apex was the This Is Tomorrow exhibition at the ICA, which of course was appropriated by Saint Etienne many decades later.

This justifies all the architecture and film books in my bookshelves, obviously. As well as those ones on playground design and typography. And car parks. And shopping malls. And my ever-growing Penguin/Pelican collection.

I may be trying to justify myself at this point.

Though I do say that anybody who turns their nose up at my pretty-much complete collection of B.S. Johnson novels (yes, including Travelling People) has problems of their own. And every household needs four different complete collections of The Invisibles, right?

Abebooks will tell me when a copy of The New Brutalism drops below $100. AND THEN YOU WILL ALL KNOW MY POWER.

Or something like that. Secretly ironic for those of you who followed obscure BBC comedy programmes that inexplicably went out live on a Sunday morning.

Start The Week

As ever, I look back on my time off over the holidays and curse myself for not doing more with the opportunity. Though I suppose I did get Redis Weekly off and running, and I created a Sinatra implementation of a [REDACTED] publication. As well as playing Trivial Pursuit with my family four thousand miles away. So that’s not too bad.

This weekend was supposed to be a relaxing weekend where I turned my attention onto some of the projects I want to spend the year working on. Instead, I spent all day Saturday using all the pans in our kitchen, as well as all the fancy stuff: Vitamix, sous-vide waterbath, chemical baths, and grits. As I got to spend the evening (and a lot of the early morning, it turned out!) with friends old and new that I haven’t seen for quite a while, I think I made the right decision to not do any work.

And who knew? I really can make yogurt boba. This will lead to even scarier desserts as the year progresses, you realise…

Redis Weekly and other things

First new thing of the year, then. Redis Weekly is a free email newsletter that will be delivered to your inbox every Wednesday featuring all the news you could possibly want about Redis. Of course, for most of you reading this, your Redis needs are probably close to zero, but I thought I’d mention that it’s now available. Just stick your email in that textbox and get lots of NoSQL news! No? Well, stay tuned, because hopefully I’ll be announcing something in the next couple of weeks that has an even tinier audience! You might even say that it was _Little_…

I'm Older Than My Years

I was planning on doing a fancy retrospective for this year, pulling out tweets from 2012 and plotting them on a map using D3.js to show where I’ve been this year. But it seems that tweets downloaded from Twitter’s archiving option are stripped of their geotags. Or at least mine are. So, here’s your list of where I’ve been this year:

  • California
  • North Carolina
  • Illinois
  • Virginia
  • London
  • Oxford
  • Bicester

There you go. Not as fancy, but you get the same information. Edward Tufte would be proud. Maybe.

Another year down, my first full year living in the US. Still can’t drive. But back in Durham. Strangely missing Santa Monica every now and then, but that gets put back in its box pretty quickly when I remember the long hours of the Crunch and living in a hotel room for many months. Or the time early this year when I wandered around in the rain trying to find an Urgent Care facility that would take my insurance.

I suppose I could do an infographic of my donations to the Obama campaign, but that would scare me as much as it scares you. Likewise my Amazon purchases for 2012. All I’ll say on that front is that I started with four bookcases and will probably get my fifth shortly, as well as undertaking an experiment to see just how much Target’s basic bookcases can hold on a single shelf (they can bow quite impressively!).

What to look out for in the New Year? More Fallout Durham, hopefully, as well as a few other new things here and there. Another visit back to the UK, hopefully. And, of course, more bookcases…

Happy Christmas!

Happy Christmas, everybody! Hope you have a great day…

On The Road

This post is coming live from the I-40 on the way to Asheville! Fancy, I know. The previous post was a test of my new workflow, which involves Dropbox, a private VPS instance, and the ever-handy RSync. It’s been a but harder writing updates on the go since I switched from Movable Type to Jekyll, but I now have enough things patched together with sticky-back plastic and string that it should work. And then next year, I’ll be moving this site away from Dreamhost, which will allow me to simplify things a bit again.

Anyway, almost Christmas! I’m off to see gingerbread houses in Asheville, after spending the week delivering chocolates and caramels for Fallout Durham. We had a fair few orders! Thanks to everybody who ordered something - we hope to be ramping up production in the new year, now that we have the amazing tempering machine of awesomeness. It takes all the misery out of making chocolate!

Okay, thirty miles to Asheville. Gingerbread updates tomorrow. Maybe with Flickr embeds. Old school is the new school

Don’t mind me. Just testing something…