A workflow I find myself quite often when I’m searching a project: Fuzzy search for something Make a selection from the results Open the selection in a quickfix list Investigate each item in the list Every once in a while I would open a new tab and want to do two different searches in the same session, but quickfix gave me an unhappy surprise when I would switch back to the first tab - the…
Well, I guess it's fitting that my first post back be ECMAScript weirdness. If you're not familiar, this is a search-type input element: <input type=search value="some value" /> Notice the little "X" button to the right, it's for clearing the input value! If you were thinking there would be an event that fires when you click that button, my god, would you be wrong. You can listen for an input…
Some very dear friends of mine run a restaraunt called The Wheelhouse. They recently opened a location in a hotel where their menu is on display on a large TV in the lobby. Unfortunatly the TV had been controlled by the hotel IT department and they were sometimes slow to respond to requests to change the image running on the TV, so we took matters into our own hands. The goal was to have a…
I've found a lot of value in demoing work as a person who works on a distributed team. It helps to communicate outwards the things you're working on and it encourages teams to celebrate accomplishments. Video demos are great because you can explain in plain language the thing you're demonstrating, and it gives some warmth to what could, in our field, be a pretty technical and cold bunch of…
Rails is great, webpack is great, abstractions are not always great. I'm going to start this from a pretty vanilla Rails 5 setup, I started with rails new webpacked --webpack . Also, for this to work, you'll need webpack > 4.3.0. Remove the webpacker things Remove sass-rails , uglifier , coffee-rails , turbolinks , webpacker from Gemfile. Remove config.webpacker.check_yarn_integrity settings in…
I just fixed an issue where a dependency (lodash) was leaking out as a global in a CoffeeScript project. The solution to that was to use _.noConflict , but over the years of this project's life, developers had started accidentally using lodash utils without actually requiring lodash in the file. Unfortunately, the coffeelint tool doesn't seem to have a no-undef rule similar to eslint, so these…
After hearing lots of stories about the large performance improvements of the webpack 4 beta, when the final release came out, I was eager to migrate our project from v3. webpack’s configuration can be difficult to understand anyway, and unfortunately, the webpack team was trying to hit a deadline and was unable to write any migration documentation before the v4 release. Lucky for you, we decided…
Since Chrome's "Bookmark All Tabs…" shortcut defaults to ⇧⌘D (the same as Safari's "Add to Reading List"), change it to something else: Create a new Automator "Service": Name it "Add to Safari Reading List" and add a "Run AppleScript" action with the following AppleScript, and don't forget to use "Google Chrome Canary" and or "Safari Technology Preview" instead if you prefer them: tell application…
I was recently trying to pull data off of an iMac for a friend, but didn't have any Macs around with FireWire ports to get at the iMac HD in target disk mode 1 . This method does require an external hard drive. Start up your Mac in single-user mode 2 , then run the following commands 3 : # Check the filesystem /sbin/fsck -y # Mount the root volume mount -uw / # Create mount destination mkdir…