Tracking page exits with Mixpanel-js

Oh mixpanel. After looking for far too long for a way in the Mixpanel docs to find a way to track session-end events with the Mixpanel JS library, I tried all the usual tricks to get the tracking event to fire correctly, beforeunload, unload and similar. Nothing was firing correctly. Having heard fairly recently about the beacon API, I thought “Yeah, there's no way there's support for that in recent stuff yet”.
Read more →

Added a uses post for submission on uses.tech

I've added a uses page to this site so it could be submitted to the totally excellent (and super fascinating) uses.tech. I'm fascinated with the tools that people use to do their job, and it was pretty interesting to collect a list of all the crazy stuff I use to get my job done. I spend a lot of time at my desk, and seeing how other people set up their spaces and what they use has been cool
Read more →

Metro for Alfred 4

Every once in a while I build a new theme for Alfred because I use it so much, and I do enjoy having nice looking UI around. This one is different than the last few I've done, and this one I think will last a bit longer because it's using such simple typesetting, I think it's likely to age well. Anyway, I hope you use it and enjoy it, if you do, please do share it around.
Read more →

JetBrains editors popping apropos terminal when invoking actions

You may have noticed a new obnoxious behavior in the JetBrains/IntelliJ series of editors when invoking the actions menu ⌘+shift+A. Instead of the normal actions menu rendered by the editor, you get this menu explaining something unrelated. Being someone who hits this menu many times per day, this really jammed up my shit. To disable this, and save your sanity, go into System Preferences > Shortcuts > Services > Developer and uncheck the Search man Page index in Terminal shortcut.
Read more →

Sweet Vue one-liner for inline SVGs in a component

I came across this nice technique for keeping your markup in a Vue app nice and clean, but still inlining the SVGs at compile-time with webpack. Because SVGs are xml, you can treat them like any other piece of markup with html-loader and as a result, you get nicely integrated SVG content. <div :key="type" v-html="require([email protected]/assets/${type}-line.svg)"></div> Works super well and has the added benefit of side-stepping any preloading of SVGs you might need to do.
Read more →