code

May
08

Correct Ruby Threads and ActiveRecord Connections

Recently, we had an opportunity to trivially parallelize some ActiveRecord queries in our Ruby server. In a common response structure,
3 min read
Jan
02

Handy Kue Maintenance CLI Scripts

Building systems at my last few companies, it has been enormously useful to have a robust queueing platform. I’ve
3 min read
May
30

Calming Facebook's Eager Pixels

Working at an e-commerce startup [//www.threadmeup.com], I get asked to implement new tracking features every day. I built
3 min read
Apr
20

My Bookmarks Are All Bookmarklets

I love all my bookmarks. None of them actually go to any websites, though. They’re all bookmarklets. > A bookmarklet
2 min read
Mar
12

Rate-Limit Your Node.js API in Mongo

Update: After a request by Jason Humphrey [https://github.com/GreenPioneer], I’ve released this implementation as a standalone NPM
3 min read
Sep
22

Memory Leaks Using Canvas in Node

At ThreadMeUp [//threadmeup.com], we do much of our image manipulation and generation using HTML5 Canvas objects. This allows us
1 min read
Jul
26

Scripting Ruby with no Internet

As I sit, I’m riding on the commuter rail as it creaks and staggers its way North. I intended
1 min read
Feb
07

The texture of your code

I’ve been thinking about intuitive methods of code review. Last week, I read an article about the Japanese onomatopoeic
2 min read
Jan
30

Writing Database Middleware in Go

I’ve been writing two main types of Go programs recently. One routes http input through a series of transformations
2 min read
Sep
22

Fix to Enable Display Features - Google Analytics iOS SDK

In the official Google Analytics iOS SDK documentation, this function call will enable Display Features in your app: id tracker