Monthly Archives: June 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. Since I couldn’t find much help online, I thought I would contribute my bit and post … more »

Posted in Development, 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. It uses a technology called MemoryStore in order to store user sessions which works well in a development environment, but is problematic on a production system. Essentially, MemoryStore … more »

Posted in Development, Web Development | Tagged , , | Leave a comment

ScratchPad 1.4.1 Released

Today I’m happy to announce the first new release of ScratchPad in four years. It is a very small update that gets rid of the old pre-Yosemite style buttons and replaces them with modern OS X elements (see the screenshot). It also adds support for Retina displays. This should ensure that ScratchPad continues to look … more »

Posted in Mac, Mac Development, Projects, ScratchPad | 5 Comments