Category: Code

Waiting on Me: one page for every comment I owe someone

People ask me things in a lot of places. Jira tickets. Service desk tickets. Confluence pages. Google Docs. And lately, comments on Claude artifacts. Every one of those tools has its own notification story, and none of them answers the only question I care about: what is waiting on me right now? So I built a page that does. It's a single Claude artifact — one HTML file. Here's how it works, where it got weird, and everything you need to build your own: the prompt and the one script. What it shows One column…

Bloodborne_20250321184741 Is Not a Title

When you share a clip from a PS5 to YouTube, it gets a title like this: Game name, underscore, timestamp. Technically accurate. Completely useless. I have a lot of those. When we counted back in January, my channel had 254 videos, and 136 of them still had a title like that. A lot of them are boss fights. The title I actually want is . Which means somebody has to open each video, see who I'm fighting, and type it in. 136 times. I was never going to do that. So Claude Code and I built YouTube Boss Title…

Gatsby Is on Autopilot. Time to Think About Replatforming.

Since Netlify acquired Gatsby in 2023 and cut most of its team, the framework has been coasting: four minor releases in three years, and nothing since February. My site is along for the ride, and it might be time to get off.

I Built a Robot to Move My Books From Goodreads to StoryGraph

I've been meaning to move my reading life over to The StoryGraph for a while. Goodreads still has all my history, though. And honestly, Goodreads is where the rest of my reading friends live. So I wanted both. Without thinking about it. Neither site has a public API I could lean on. (Goodreads shut theirs down years ago.) What they do have is an export button on one side and an import button on the other. Click, download, click, upload. Every time I finish a book. That's not hard. It's just tedious, and…

Reading on My Kobo, Listening on My Phone, Never Losing My Place

I sometimes read on a Kobo. I also listen to audiobooks on my phone. What I've wanted for a long time is for those to be the same book. Switching formats mid-book is miserable. You finish a chapter on the Kobo, switch to the audiobook, and then spend five minutes scrubbing around trying to find the sentence you stopped on. Amazon solved this ages ago with Whispersync. But I don't always read on a Kindle, and my books and audiobooks live on my own server. So I built my own. Put the Kobo down, pick up the…

Making WhatsApp Searchable from Claude

A big chunk of my Scout-life runs through WhatsApp group chats: Campouts, cabin bunk counts, who's tenting, who's bringing cots, what's happening next month. And WhatsApp search is... fine. If you remember the exact word someone used. What I actually want to ask is something like "find the messages from yesterday where we talked about camping planning in the scoutmaster chat." That's a Claude question, not a search box question. So I set out to make it one. The problem There's no official API for reading…

Updating Natural Scroll using AppleScript in Tahoe

For ever and ever, Mac OS has not handled natural scrolling and switching between a mouse and a trackpad gracefully, or at least the way I want it. Without some kind of intervention, scrolling feels backwards on the opposite input mechanism. The "right" way to fix this is to use UnnaturalScrollWheels and never have to think about it. But, that doesn't help locked-down work machines. I've used an applescript in a shortcut to fix this for a while but Tahoe broke it. After some debugging with Claude over lunch…

Feb 23 was a security day

Busy day yesterday: Cloudflare leaked secrets Google cracked SHA-1 Dropbox opensourced Securitybot: Automated Security at Scale

Adding Smart Speed to any audio file with Audacity

The Overcast podcast app by Marco Arment has a killer feature called Smart Speed and it has ruined all audio listening for me outside of the app. Smart Speed dynamically shortens silences in talk shows; it saves you time, and makes them feel tighter and more produced. I wish I had it everywhere. Tekside is a podcast network I'm part of, and while some of our shows are heavily edited, many are not. While doing some audio work for something else, my wife noticed that Audacity (cross platform) has a crud…

Using an Encrypted Realm in a background or notification processes?

Note: This post's primary purpose is to help me think through this problem. I have no prescribed solution at the end of it. The conversation will continue on Stack Overflow. I will update this post once I have a final approach. Realm has a great write up and sample code for encrypting your database. This documentation and sample work as intended, until you try to decrypt realm when: A user has a password on their phone The device is locked Your app is trying to do work with Realm when a remote notification…

Using iOS 10 devices with Xcode 7

Peter Steinberger started a GREAT gist on Using Xcode 7.3.1 and iOS 10 devices. Below is what worked for me to get a few extra test devices (my carry phone runs the 10 beta) working with Xcode 7. Can't upgrade to 8 just yet. Working with a contractor and don't want to move too many pieces. My Setup Xcode 7.3.1 and Beta 6 iOS 10 beta 6 (Beta 7 is out, after getting this to work, I don't think I'm upgrading just yet) Steps iPhone: Settings > General > Reset > Network Settings Reboot iPhone (after it wakes…

Opening iTerm2 Tabs at Specific Directories

I love iTerm2. I can customize the stock Terminal.app just about as much, but it's much easier in iTerm. I find myself always opening the same 3 or 4 tabs when I get into coding mode. Luckily iTerm2 has great scripting support The 4 tabs I always open for Kidfund are: Our iOS project Our Laravel project. Usually where I run artisan commands Our Laravel project; Tails most recent file in the log directory Our Laravel project; I jump around from here. Usually CD-ing to 1. the realm directory to pop it into…

Github File and Link Tricks

2 tricks I learned today that I'd like to share: reliably linking to a specific line and searching for files using fuzzy matching. Reliably link to a specific line Say you are on the master branch, and you want to reference a line in a file. This could either be for a conversation you are having at that moment, answering a question in a PR, or adding information to a ticket. At that point in time, your link will work great. But, what about when that file gets changed tomorrow? More lines get added higher up…

Open source everything

Great 2 part series by @jesse_squires on the importance of documenting everything and the gains of working in open source. I picked up a few tricks, especially VVDocumenter-Xcode for docblock generation. But, more importantly is the ethos in which he approaches his work Swift Documentation Open Source Everything

Setup and Teardown the Database Once Per Test Suite in PHPUnit

I'm working on a series of integration tests where I want to set up and reset the database for each run. This could easily be done in the setUp and tearDown methods, but doing the full db each time is slow. Yes, I could just do the tables I need, but I was curious, and now I don't have to worry about which tables are setup in my testing DB. In this example, I'm using Laravel's migrations and SQLite as the test DB. UPDATE 05/05/2016: As Sebastian points out below (thanks!) there is a much more appropriate…

Sketch Git Plugin

A Git client built right into Sketch. Generate pretty diffs so that everybody knows what are the changes! Designers can use git too!

Trying to Mock a Self Booting Laravel Model Trait

Bootable Model traits are pretty nifty. I'm using them to register certain events for the models using my Trait. However, I've run into an issue trying to mock models that are using the trait. Specifically, when a Mockery version of the model is instantiated, it's boot code agrees that it should have a bootMyTrait method, but can't find it when it tries to call it. Sample Repository for the below, with commands to reproduce. As an example, here is a trait: And a model using it: Instantiating the model…

How to Get Notified if someone stars, forks, or follows your Github

I've been using GitNotifier for a few weeks now. I get a weekly report emailed to me of who has starred or forked any of my repositories, as well as follow/unfollows. It's a nice little touch to put on top of Github's already great service

Jira Filter Subscriptions

I'm working in a Jira that I don't have admin access to. It's been a while since that's happened! I wanted a way to get notified if anyone in the system opens a new ticket, so I could decide if I wanted to watch it or not. Jira makes this fairly straightforward with filters and subscriptions. First, create a filter that picks up any tickets created in the last hour. I named mine "Recently Created" Then, click details, and new subscription Setup the schedule to be every 30 mins, 24 hours a day, and to not…

Testing UIViewController Transitions with Quick and Swift

The examples below are using the Quick test framework, but the principals we're going to talk about can be used in any setup. We have some complicated logic further down our user registration flow. I want to make sure that the right UIViewControllers are appearing when they are supposed to. I've been reading a few different approaches on how to handle this. Below is where I've ended up, and I'm pretty happy with it. For simplicity's sake, I'm going to show how to test if the user has tapped "Login" or…