Building a VCR Clone in 28 Lines of Julia

The Ruby gem VCR is a tool that allows you to “[r]ecord your test suite’s HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests”. It’s really useful for testing things like web API wrappers. It also contains 3,000 lines of code. Let’s use Cassette to build it in Julia with less than 1% of the code! The first example in VCR’s README looks like this:

Escaping $BIG_CORP's Grasp

About a month ago, my YouTube account was suspended without warning or justification. They told me I violated the TOS, but all I do on YouTube is watch videos. I sent in an appeal, and it was quickly turned down, again without reason. I know I’m not the first one to have something like this happen to them, and it’s well known that the only way to get through to the machine is by raising a stink on Twitter, but… I don’t have a Twitter account.

I Merged My Blogs Again

I barely post enough to justify one site, never mind two. And it turns out that choosing tags and categories for posts is really stressful, so I’ve decided that I’m not going to deal with that anymore. From now on, posts about my personal life go into the “personal” category, and posts about technology stuff go into the “tech” category. Easy! I’ve set up redirects from {subdomain}.cdg.dev to cdg.dev/categories/{subdomain}, just in case people actually visited or bookmarked those sites.

Avoiding Race Conditions In Concurrent AWS Lambda Functions

I haven’t blogged in a long time! Here’s a quick ramble about something somewhat interesting that I whipped up earlier today. I write lots of buggy software. One such example of buggy software is TagBot, which is a GitHub Action that runs hourly on roughly 2000 GitHub repositories. A couple of weeks ago, I wrote a new bug that caused TagBot to crash and send hundreds of notifications and emails. I realized that this was bad, so I implemented an error handling mechanism that reported errors as GitHub issues to the TagBot repository.

Christmas Holidays in the Philippines

Patricia and I have spent our Christmas holidays in the Philippines, both with her family in Taguig and in El Nido, Palawan. Days 1-4: Taguig Taguig is a city close to Manila where Patricia’ s extended family lives all together in a big house in typical Asian fashion1. We left Bangkok on Monday night, just after getting home from our last day of work. There isn’t really that much to report on for this period, since they live a pretty quiet lifestyle.