Vi Bindings in Node Repl

I fell in love with Vim about three or so years ago and now I prefer to have vi bindings whenever I edit text. Luckily, I’m not alone on that front and many developers have created extensions and utilities to keep our hands safely on the home row. There’s Vimium for browsing in Chrome, a vi mode for ZLE the zsh line editor (as well as readline for BASH and other shells) and even Zathura for the rare occasions where I need to view PDF files.…

»

Synchronous vs Asynchronous Errors

The asynchronous coding styles used in Javascript can be non-intuitive for developers more familiar with imperative languages. That can be dangerous because things look just familiar enough that people can make dangerous assumptions. That’s compounded by the fact that Javascript has evolved from callbacks, to promises, to async/await very rapidly. It can get complicated if you have to work with code written in a mix of the three different styles.…

»

Hibernate Problem

I run Arch Linux on my daily driver laptop. It’s the only Linux distro that I’ve had any real experience with and it’s been completely stable for me despite what people say. Part of that is probably because I run it with just i3wm a tiling window manager and no desktop environment. It also probably helps that I spend 99% of my time in either a terminal or a browser. I dunno, at any rate it’s been stable enough for me for the last two years or so.…

»

I added a Geordi SSH banner to my VPS

I love Star Trek. It was the first show I ever saw that featured black people who were successful because of their intelligence and education and not “street smarts” or “hip sense of humor”. Let’s be honest, it was rare to see black people on TV who weren’t criminals, or servants, or magic negros or other things that I couldn’t relate to as a young black computer nerd. Then there was Star Trek.…

»

payouthelper.com

Let’s say you’re a promoter who put on a show and now it’s the end of the night. Time to pay the bands or the DJs or the jugglers. But how should you split up the dough? You could use a pen and paper but that would require math and you’ve had a few adult beverages. Try payouthelper.com.…

»

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.…

»

Simple Scale Finder: Enter musical notes and find matching scales.

Sometimes a little bit of melody strikes me. If it sticks with me, I’ll expand the nugget into a full melody with accompaniment. At those early stages it helps to have an idea of what keys will work with the melody. While any music theory novice can figure out the lists of scales relatively easily, I thought it would be nice to have a tool to do that lookup for me.

»

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.…

»