Archive by category OS X

Bower ECMDERR fixed

Bower ECMDERR fixed

One of my automated builds suddenly failed with an unusual error that says ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/angular/bower-angular.git", exit code of #69 Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo. As the error suggests, the quick fix is to re-Agree to the Xcode/iOS license and […]

Read More

Compress PDF on OS X in Terminal

Compress PDF on OS X in Terminal

For my own reference, GhostScript is a great tool to compress those huge PDF files that your scanner generates. In order to use GhostScript PDF compressor, you need to install GhostScript first: brew install ghostscript Then you can run the following command to compress your original file to a smaller file gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook […]

Read More

Batch Resize Photos with Image Magic

Batch Resize Photos with Image Magic

I’m currently working on migrating a large publishing website form Drupal to WordPress and one of the things that occurred to me was that WordPress generates 3 sizes for each image that’s uploaded into Media Library. However, our Drupal website only contains a single image. To make the media library work nicely in WordPress we’ve […]

Read More

opendiff and FileMerge on OS X

opendiff and FileMerge on OS X

Today I discovered opendiff tool that’s native to OS X – provided you have installed the Xcode on your system. It allows you to compare 2 directories and perform actions such as merge-left, merge-right etc… Opendiff simply launches FileMerge OS X utility, which is another one I didn’t know about, and displays differences between 2 […]

Read More

Couple of useful OS X Tricks

I just stumbled upon?30 Fantastic Geeky Tricks To Get The Most From Your Mac?and I thought I’d write down a couple of tricks I found useful. Recent Items Stack Type this in terminal window to show a stack of your ‘recent applications’. defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; […]

Read More

MySQL startup script on Mac OS X Snow Leopard

I’ve had problems starting up MySQL database server on startup on Snow Leopard. ?MySQL preference pane seems to be flaky and it often fails to start MySQL server. I created this startup script myself and it seems to work nicely. sudo nano /System/Library/LaunchDaemons/org.mysql.mysqld.plist <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> […]

Read More

Snow Leopard Gotchas

I recently upgraded to Snow Leopard from 10.5 and everything went relatively smoothly. I was particularly pleased to see extra 13GB of hard drive space. However, I noticed a couple of things that I wasn’t so pleased about: Apache unable to start PHP disabled MySQL unable to start I’ve already walked a couple of people […]

Read More