Featured

Emulating Mac OS 9 on macOS 10.15

Several years ago, I bought an old, colorful iMac G3 running Mac OS 9. It runs my old software wonderfully, but an emulated version of Mac OS 9 on my modern MacBook Pro is just so much more convenient.

June 9, 2020

A Small Script for Responsiveness

I recently wrote a small script using TypeScript that can be used to determine the size of the view port using the breakpoints as defined by Bootstrap.

June 2, 2020

Batch Convert 4-Space Indentations to 2-Space

While adding a linter to an old project, I wrote the following bash script to convert 4-space indentations to 2-space indentations. This example recursively looks for *.js files starting at the script’s location. Of course, it can be used for any type of file though by simply changing the extension.

March 1, 2018

Automatically Compile SASS Using Node.js and Express

For about two years I have been using Grunt to compile my SASS files into CSS for projects for work as well as for personal projects such as this website. This workflow has served me well and I still use it for most of my PHP-based projects. However, I’ve come up with an even easier and faster solution for my Node.js-based applications.

December 4, 2017

Using Redis Sentinel with Docker and Marathon

Using Redis Sentinel with Docker and Marathon is a relatively complex procedure that requires every instance of Redis to be able to communicate with all other instances.

November 18, 2016

Using Redis Sentinel with Docker Compose

This article describes how to create a failover solution using Redis Sentinel and Docker Compose.

November 14, 2016

Working with Linux in Windows: Linux Server in VirtualBox

I have written before about having to work in Windows 7 with Docker which only runs natively on Linux, macOS or Windows 10.

November 1, 2016

Debugging Node.js in a Docker Container with WebStorm

Node.js + Docker + WebStorm is not an unusual setup for Node.js developers, but there is nonetheless surprisingly little information available about how to setup debugging in WebStorm while running a Node.js application locally in a Docker image.

October 25, 2016

Why Ad and Tracking Blockers Are Necessary

Ad and tracking blockers have been around for several years, but ever since Apple introduced the ability to install them on iOS devices with the introduction of iOS 9, they have made the mainstream news.

July 16, 2016

Resize an NSImage Proportionately in Swift

For the past couple of days, I’ve been working on a small project for OS X written in Swift where it was necessary to import an image and scale it down proportionately based on a given width and height.

June 18, 2016

Node.js: Fixing a memory leak in Express MemoryStore

When using a combination of Express and krakenjs in your Node.js application, there is a feature enabled by default which automatically leads to a nasty memory leak.

June 16, 2016
My Portfolio