vim mocha only: A simple Vim plugin for Mocha users

I’ve been using Vim for almost exactly a year now and I’m still a new enough user that I’m constantly annoying people by talking about it. What an amazing tool! I only wish I’d discovered it earlier. A lot of the power of Vim comes from plugins. There are plugins or even just vimscript snippets that can customize almost every aspect of how the editor works. That’s a huge change coming from the Visual Studio world where most devs are using a pretty vanilla out of the box experience.…

»

Reset VIM as XDG default for text files

I’ve been a Vim fanatic for a little over a year now, but my first foray into the realm of the super editors was a quick fling with of Emacs. That lasted for about two weeks before I decided that hitting the Control key that often was reducing my quality of life. A few nights ago I randomly decided to install Emacs on my machine during a bout of insomnia. The next morning I tried to download a file (a VIM script coincidentally) from Firefox and the file opened in Emacs.…

»

Setting rule options in yaml eslintrc files

I’ve forgotten this once already, so it’s time for a blog post so I can find the information via Google next time I need it. Tools that enforce coding styles are always important, but doubly so when working with languages that are untyped and not compiled. In a language like JavaScript an automated linting tool that enforces best practices and identifies likely coding mistakes is a must have. Eslint is my linting tool of choice for JavaScript.…

»

Tree Fiddy, a git aware version of tree

I spend a lot of my computing time in the terminal, so the tree utility is very useful. Unfortunately, it’s not as useful in node projects or other projects that include supporting packages, because it isn’t aware of .gitignore files. When you run tree in a node project folder the listing includes all of the files for the node modules that your project uses, build artifacts, etc. I’ve written a small node based version of tree build called node-tree-fiddy that honors the gitignore file.…

»

Two Poems from Bogotá

I was lucky enough to visit Bogotá, Colombia about two weeks ago. It was a wonderful experience that I won’t soon forget.

One morning I woke up at 8:00 in a friend’s apartment. I had no internet connection, no books and no magazines. So, I wrote two poems.

They are pretty bad.…

»

Hide the Reddit sidebar with my user style

Stylish is one of my must have browser extensions in both Chrome and Firefox. It lets you run custom stylesheets on the websites you know and love. You can even share the styles with other users on the userstyles website. For example, the Github Dark user style makes the hours a day I spend on Github much more pleasant. I also spend a lot of time on Reddit. Unfortunately, the site is pretty hard to use on my laptop’s tiny screen due to the large sidebar on the right of the page.…

»

Can't edit MP3 tags in Windows Explorer

  anthonyI always forget this and never find the answer with internet searches, so I figured I would post it here. Sometimes I need to make a quick edit to the MP3 tags for some files and I don’t want to open a media player. In those cases, I just open the properties dialog for the file(s): You can then enter values into the “Value” column to change the related MP3 tag.…

»

Installing Atom on a system with Node installed via NVM

  I was interested in trying out Github’s new editor Atom on my Linux Mint box. It’s not included in the official Mint PPAs, so I decided to build it from the source using the build instructions provided in the Atom repo. The build went well, but the actual installation step failed with the error: $ /usr/bin/env: node: No such file or directory. It turns out that this is because I’ve installed node using NVM rather than installing one of the node packages.…

»

A little WordPress plugin for adding audio players to posts

  I have a ton of old posts for my songs that don’t have HTML5 audio players. Anyone who wanted to hear the songs would have to click a link and have the browser open a player in a new window…like some sort of cavemen. I probably could have written something to update all of the posts, but I decided to whack together a little bit of JavaScript to auto-magically add the HTML audio player for any link to an mp3 that doesn’t already have a corresponding player.…

»