Category Archives: Development

Introducing BookJournal

I am excited to announce the first public release of a program I have been working on for the past year or so. It is called BookJournal and is exactly what the name says it is: a digital book journal.

Also posted in BookJournal, Projects | Leave a comment

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.

Also posted in Linux, Mac, Server | Tagged , , , , | Leave a comment

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.

Also posted in Web Development | Tagged , , , , | Leave a comment

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.

Tagged , , , , , | Leave a comment

Using Redis Sentinel with Docker Compose

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

Tagged , , , , | 2 Comments

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.

Also posted in Linux, Server, Windows | Tagged , , , | Leave a comment

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.

Also posted in Web Development | Tagged , , , | Leave a comment

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.

Also posted in Mac, Mac Development | Tagged , , , , | 2 Comments

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.

Also posted in Web Development | Tagged , , | Leave a comment

Symfony2: Giving Each Locale Its Own Domain Name

After spending hours looking around online for an answer to the problem I was having setting the locale of a multi-lingual Symfony2 application based on the domain name, I finally sat down and more or less found my own solution. As is often the case, an answer to a question on Stack Overflow got me … more »

Tagged , , | 5 Comments