Hobby Time: Cooking

Working on your main work all day might fulfill some people entirely, and to be honest, it fits the bill most of the time for me. Sometimes, though, I want to do something else, but to do something more than just rot and watch TV. My main hobby of choice is cooking. I’m hoping I can expand on other hobbies in the future and explain what they mean to me.

But you’re a weird programmer why do you like food you should just drink Soylent right?

Lots of engineers will admit to liking cooking (though the common opinions and assumptions about engineers might indicate otherwise) if you ask them. I think it’s a great escape from a work of precision and discrete implementations. While recipes are important (and precision can come into play, particularly in the realm of baking) cooking appeals to me because I have more leeway in how I’m going to operate; it’s one of those “the journey matters as much as the destination” things, unlike much of the programming world.

I love having a basket of new ingredients in front of me, and to consider how they might play together. All my life I’ve been interested in strange combinations of flavors (too strange – in a bad way – for the mainstream pallette, or so I would assume), and so finding discipline for those interests by way of formal cooking has been nice.

So, pizza, then?

As you, savvy reader, may have seen on this blog before, one of my favorite things to cook is pizza. Some folks are very particular about how they do their pizza. Namely, precision in the composition of a dough. I’m a little more freewheeling than that, and I just like to eyeball the right amount of yeast and sugar, water and flour, etc. It’s an experiment, but not the kind of rigid, well-organized experiment you’d have in a lab. More like a toddler experimenting with a puddle of mud.

I like being that toddler, at least in the kitchen. When I’m cooking, everything is new to me, every time. Every steak is going to sear differently. Every batch of cookies is going to have its own character. Clearly that wouldn’t work well in a commercial kitchen, but at home it’s great fun.

If you love it so much, why don’t you marry it?

My spouse has asked me a number of times whether I would prefer to quit my job and go to culinary school. Perhaps, one day, I will. But then I wouldn’t be having the same fun. I wouldn’t be experimenting as much. Who knows, though; my opinion will likely change in the future.

Cooking isn’t just for you, of course, either. Sustenance is one of the core requirements of caring for a human being. At its most basic (and perhaps sardonic) level, cooking for someone is demonstrating that you value their existence and wish to continue it. It’s an example of deep caring for someone else, I believe, and I make sure that I keep that in mind as I prepare any meal, for any group of people.

My advice to anyone learning to cook

  • Approach the kitchen with curiosity.
  • Watch the entirety of Alton Brown’s Good Eats
  • Don’t take yourself so damn seriously. Your food is gonna suck.
  • Watch a bunch of You Suck At Cooking
  • Work on your knife skills first and foremost. Good knife skills make prep work a lot more fun. There’s a Good Eats episode that teaches a lot of knife work and care. Find it.
  • Remember that the end result of messing up most likely will still taste great. Don’t sweat the presentation until you’ve got it tasting awesome.
  • Try to make time to explore the produce and butcher sections of your supermarket, or better yet, visit a local butcher shop and farmers market to see what’s fresh and tasty.
  • Whenever you cook, think to yourself about ways you could change it in the future. Recipes are a starting-off point, not a gospel
  • Put your love (figuratively, please) into your food. It’s cheesy but people respond to it.

Thanks for reading. Hope I can ramble more on the subject soon.

Setbacks in US Space History: Why Well-Supported Science Matters

Fifty years ago, on January 27th, 1967, three astronauts died in a fire aboard the capsule that would have been Apollo I. During a routine preparation test, a short circuit in their computing machinery ignited inside the capsule’s all-oxygen pressurized environment, leading to an immediate fireball engulfing the cabin within seconds. Simply put, this accident was avoidable and caused ultimately by the haste of the NASA personnel designing the Apollo program.

Earlier missions in NASA’s Mercury program exposed the risk involved with having a mixed nitrogen/oxygen atmosphere inside the capsule: more complex machinery to provide both gases and the risk of astronauts experiencing decompression sickness (AKA the “bends”). Surprisingly, NASA officials admitted they hadn’t considered the impact of a 100% oxygen environment on fire risk.

Additionally, the Apollo capsule’s interior was not designed with fire mitigation in mind, as the review board found after the accident. Wires throughout the capsule were not adequately shielded. Combustible materials were placed near heat sources without caution. Lastly, the capsule’s liquid cooling system, prone to leaks, used a solution that reacted with the highly-oxygenated atmosphere of the capsule in an exothermic nature.

The Space Race had NASA cutting corners wherever possible to get their astronauts strapped onto a rocket and shot into the sky. Communication and caution in these cases would have saved lives. Instead, our ambition as a nation wasted them.

Thirty-one years ago, seven of America’s bravest men and women perished on their journey to the stars. Their journey ended, tragically, just minutes into their flight aboard the Space Shuttle Challenger, as the orbiter, its external fuel tank, and solid rocket boosters violently exploded in the Earth’s atmosphere.

The late Dr. Richard Feynman, renowned physicist, traveled across the country to find the answers as part of a Congressional commission. Not to spoil the linked excerpt from his memoir, but actually this pretty much spoils it: he ultimately found that pressures to launch on time forced management at a contracted aerospace company to ignore and sequester their engineers’ concerns that the material of which the shuttle’s solid rocket booster’s sealing O-Rings would not perform to specification given the unusually cold weather at the launchpad the morning of the launch.

The failure of these O-Rings allowed for highly-pressurized, super-hot combustion artifacts to leak from the starboard solid rocket booster. This plume burned a hole in the external fuel tank (the big orange one), which suffered a catastrophic failure ultimately resulting in a very large explosion and disintegration of the entire vehicle.

Fourteen years ago, seven more of our nation’s selfless explorers were lost. The Space Shuttle Columbia broke apart on atmospheric re-entry on February 1st, 2003. Pieces of the shuttle, including personal equipment of the astronauts, were found strewn about Texas and Louisiana.

It was discovered after investigation that a piece of insulation foam from the external fuel tank struck the leading edge of the orbiter’s wing, damaging it and leaving it susceptible to high-temperature gas entry during re-entry. These high-temperature gases entered the internal structure of the wing and effectively destroyed it.

During Columbia’s orbit, concern was raised over the condition of the wing by engineers on the orbiter team, but their concerns were responded to with callous disregard for human life: “You know, there is nothing we can do about damage to the TPS [Thermal Protection System]… Don’t you think it would be better for them to have a happy successful flight and die unexpectedly during entry than to stay on orbit, knowing that there was nothing to be done, until the air ran out?”

Headstrong pushes for achievement over careful progression, as well as failure to address legitimate concerns from the people actually doing the work have cost the lives of several astronauts. These were all preventable accidents, if only the individual contributors were trusted as much as the top brass.

Without skilled, patient, and disciplined scientists, we are doomed to repeat our own failures, at the cost of our fellow humans’ lives. This is why support for a thriving scientific community is critical to our nation’s well-being and safety.

Swizzling in Python

Story Time

Ever come across a Python library with some kind of shortcoming that you know you can fix, but don’t want to fork, fix, pull-request, wait five weeks, then update in order to get moving? Are you even too lazy to do just the first two steps and point your dependency manager at your own fork? Don’t worry, you can probably fix it in code.

Right now I’m writing a Slack bot library that will support, in addition to the commonplace single command/response paradigm, a more conversational paradigm for multi-step commands and workflows. So, like a good programmer, I set up my module structure, my setup.py, and got moving. This was after a little bit of proof-of-concept code sketching, in which I came up with the general flow of connecting with the official Slack client for python, aptly named python-slackclient. So, I ported the flow into my library’s code, with some nicer structure, fired up a virtualenv, ran python setup.py develop, and then wrote a little wrapper script to invoke the client.

Boom, error. Weird, right? My proof-of-concept had worked fine…

After looking at Slack’s code, I found that it was cleansing an exception from the websocket-client library, where it was having problems locating my system’s Root Certificate Authority file. That’s a problem I don’t really want to deal with right now. I have a feeling it has to do with the path magic that python setup.py develop does, so I’m willing to let it go. Nonetheless, I’m still stuck with it not working, and no way to tell the Slack client to get its head out of its ass and find the Root CA file for the websocket client.

Or is there?


The websocket-client method, create_connection takes a URL by default but also takes some kwargs, one of which is sslopt, a dictionary of values describing SSL options, including the location of the Root CA file. Additionally, the ssl standard library includes methods for retrieving the location of said file. But, again, the calling of create_connection is within the Slack client’s code! What do I do?

Swizzle that shit!

Swizzling, for the uninitiated, is the same thing as monkey-patching, which is to say, replacing at runtime the implementation of a method on a class. Alas, it’s a little more complex in this case, since the method I want to swizzle is on the class of an object, an instance of which is held by the Slack client. So, I ended up using a subclass of the client and overloading the initializer to dig into the client’s state and swizzle the method in question.

Check it out!

Note that you have to bind the newly-defined method to the class, meaning that if you only have a reference to an instance, you need to use the __class__ attribute to get the class itself. Don’t forget self as the first argument; this is important for the method to bind correctly to the class/instance.

Oh, so, by the way, that Slack bot library I’m working on can be found here: SlackBorg.

Pizza Time: Olive Bomb

Time for another pizza! This one was a lot of fun, mostly because it was so briny and tasty. If you like salty stuff, this pizza is for you.


Olive Bomb, Before
Olive Bomb, After



  • Pizza dough (again, I’ll be posting a recipe to this soon!)
  • Some kind of herb (I had parsley)
  • Anchovy paste
  • Olive Oil
  • Garlic cloves (one or two) sliced very very thin.
  • Kalamata Olives, pitted, then sliced or chopped
  • Castelvetrano Olives, pitted, then sliced or chopped
  • Mozarella Cheese (I use Belgoioso gems, but any mozz will do. Stay away from very wet varieties)


Preheat your oven and pizza stone/steel as high as it goes. Finely chop up your herb of choice, and whip together with your olive oil and anchovy paste. If you omit the anchovy paste, probably add a little salt. Let sit for a little bit while you spread/toss/roll out your dough into your pizza shape. Give your dough a nice massage with your finger tips – just poke and poke with your outstretched fingers, until the surface is full of depressions like a golf ball. Spread your anchovy herb oil over the crust. Evenly distribute your cheese and olives. Throw that in the oven and bake until you’ve got some nice brown on your crust.


Pizza Time: Red Pie

I love making pizza. I don’t know if I’ve shared that very much, but between fermenting a good dough, assembling good ingredients, and putting on the heat, I love making pizza.

I’m going to try and start sharing my pizzas, mostly in before/after photos but also as partial recipes. I’m not much of a recipe writer, but I’ll do my best.


Red Pie, Before
Red Pie, After


Makes one pie.


  • Pizza dough
    • (I’ll be posting my dough recipe soon enough; the real key overall is to let it rise/ferment at least twice as long as you think it should)
  • Tomato sauce
    • Go for the high-quality stuff, it matters.
  • Mozarella cheese
    • I go for the little balls, but you could just as easily get a big ball and tear it up. Err toward less moisture; avoid pre-shredded bags.
  • Parmesan Cheese
    • Real parmesan, please, or any good hard Italian cheese.
  • Basil (Fresh!)
  • Kosher Salt


Preheat your oven as high as it goes. Make sure your baking stone or steel is in there. My oven gets to 550°F, which does pretty well.

Toss, push, or roll out your dough. It’s up to you. Make sure you use enough flour to keep it from sticking. I usually just stretch it out on my peel by hand, giving a little toss if needed.

With your fingertips, poke at the part of the dough you want stuff to go on (so, all but the edges). When you’re done, it should be covered in faint depressions all around. This helps prevent bubbling and also gives some dimensionality to the crust surface for your sauce to hang out in.

Spread your sauce. Just straight up tomato sauce. No herbs, no nothing. All things considered you’ll probably use a quarter to a half of a cup, but feel free to go nuts. If you see a lot of dough through your spread sauce, it’s too little. If it’s all red, it’s too much.

Generously sprinkle the kosher salt across the tomato sauce.

Take your mozzarella balls (or torn mozzarella) and sparingly place on the pizza. The sauce is the star here, not the cheese. Grate some parmesan over the pizza, it should look like your front lawn after the first flurry of the winter.

Toss that pizza in the oven! While it’s baking, take some basil leaves, stack them together, and roll them up like a cigar. Then, slice up a bunch of thin slices of that cigar to get a nice chiffonade.

The pizza is done when the crust is a nice brown and the red of the sauce has deepened a little bit – that means the sugars in the tomato have caramelized, which is what makes for the great flavor.

Take your pizza out of the oven, grate some more parm over it, and sprinkle your basil chiffonade on it as well, while it cools.

Once cooled, slice and enjoy.