Curry in Python

I'm... not sure how I got here, but this is what I spent my evening doing. I have been using partial in python on occasion, but it's kind of annoying to have to be so explicit with it any time you want to use partial application. def curry(fn): arity…

Using SSH for Separate GitHub Accounts

I keep my emacs configuration in my personal GitHub account, but choose to use a separate account for my full time job. It's tricky when you want to use SSH for both, but it's definitely doable. Here's my quick notes on how to manage it. Create a file: ~/.ssh/config…

Musings of Performance Past

I once worked in a bit of dream scenario. My job was simple: render a web page. Lots of times. Generally this involved background processing and caching, which I found to be fun and full of surprises. The evolution of this solution is an intesting story, to be sure, and…

Next Big Adventure

This has been a busy year! My last job gave me a crash course in management, which was a huge opportunity to learn about working with people and how to help grow developer culture. With all of the new things going on, I kind of lost track of what truly…

New Challenges Await

Friday marks my last day working at nbcnews.com. I've gotten do a lot of great things, from throwing down with RavenDB to hopping on some serious Node.js bandwagons. I've even migrated to a more linux based ecosystem, which has been great. Over the past four years I've worked…

Finding Missing Handlebars Views

Just a quick post about a solution I thought up to finding missing handlebars views in my project. grep -oEr "{{> [-a-zA-Z0-9\/_]+" ./app/server/views | grep -oE "[-a-zA-Z0-9\/_]+$" | sort | uniq | while read -r line ; do if [ ! -e "./app/server/views/partials/$line.hbs" ] then…

Colorful Comment Markers in Emacs

Earlier this year I switched to a (mostly) monochromatic theme for coding in emacs. It has been a great experiment so far. I even tried switching back to a colorful theme the other day, and it was so distracting that I ended up switching back. Even though I'm not using…

A Toy Leveled Cache in Node.js

I wanted to try an experiment around improving caching performance in Node.js while using redis. One of the ideas I came up with was to build a leveled cache that can work primarily with something in-memory (like eidetic), falling back to a secondary cache like redis. I really wanted…