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.
Category Archives: Mac
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.
Today I’m happy to announce the first new release of ScratchPad in four years.
There is a little-known trick I have used for years in OS X which lets you display your most recently opened applications in a Stack in the Dock next to the Trash. This is an integral part of my workflow in OS X because it is far more convenient than having to go up to … more »
Since it’s been a few months since I wrote my last progress update on ScratchPad 2.0, I thought I would write a bit about where the development of the new version currently stands. Although ScratchPad isn’t a particularly complex program, rewriting the whole thing from the ground up is still a time-consuming process. Unfortunately, it … more »
I just recently purchased a new iMac G3. Of course Apple hasn’t sold iMac G3s in nearly fifteen years and this one was purchased new in 2000. But that doesn’t mean it’s not new to me. The first question that I’ve been asked is why I would spend money on a computer that is fifteen … more »
Mozilla’s flagship browser was, for a long time, the top browser pushing the threshold of browser technology, dethroning the king of all browsers, Internet Explorer, and driving the web to new possibilities. For the past couple of years, however, it seems to have been rapidly declining overall in quality — especially for Mac users. With … more »
When I tell most people that I use a Mac as a developer they have an odd reaction. They look at Macs as being more like a toy computer rather than a machine which can get any actual work done. That is especially true when it comes to development of any sort. This is, however, … more »