Posted by & filed under Ruby on Rails, Web Development.

Using typical Grunt deployment scripts works fine, except there is a trick to run a bundle update using the Gems installed via a single user RVM install:

'bundle-update': {
command: "[[ -s \"/home/username/.rvm/scripts/rvm\" ]] &&
source \"/home/username/.rvm/scripts/rvm\" &&
cd /path/to/project/ && bundle update"

This runs the RVM shell init commands saved to your shell’s configuration that are not loaded with commands such as those invoked by Grunt. If your Rails project is being served via NGinx, you can use this Grunt task to restart the web server on deployment.

Posted by & filed under AWS/Linux/Unix/Devops stuff.

This is pretty easy to do, and is covered well in articles such as this one. However, I made the mistake of powering down my machine after removing my bad drive from the array. My thinking was that it would be easier to perform the surgery this way. In retrospect I should have simply unmounted my array (so that there was a greater margin of error in pulling out a wrong cable, etc).

At any rate, the machine wouldn’t boot Ubuntu after taking the drive out of the array because of mdadm’s degraded state. I was able to finish this job while booting into Ubuntu’s recovery mode. Note that if you reboot while recovery is still in progress you’ll be faced with this same issue. The slight problem this presented was that my monitor wasn’t connected to my PC, making navigating into recovery mode difficult.


Posted by & filed under Music.

Most musicians seem to hate the genres and having their music put into some sort of category. They feel that these genres/labels shape perceptions, encourage prejudice, and put their music into a restrictive box. I believe that these genres and their gazillion sub-genres are really problematic to jazz and other kinds of music, and not only that, are arguably obsolete.

Read more »

Posted by & filed under AWS/Linux/Unix/Devops stuff.

The following will generate a listing of installed Debian/Ubuntu packages, and will install packages from that list on another machine. Just make sure you have the same sources set in /etc/apt/sources.list:

dpkg --get-selections > package_list

scp package_list to your destination machine, and:

dpkg --set-selections < package_list
apt-get -u dselect-upgrade

to install these packages.

Joe Auty

August 26, 2013

This blog consists of geeky computer-related content, as well as posts pertaining to music and jazz in particular. I realize that this makes for a rather odd mix. To make things easier, if you are interested in my music posts and don’t care about the computer stuff, you can find these posts here.

Posted by & filed under Music.

Throughout this series I will explore what successful jazz artists (or artists typically tethered to the label) such as Esperanza Spalding, Trombone Shorty, Rebirth Brass Band, Medeski Martin and Wood, John Scofield, Snarky Puppy, Nicholas Payton, Roy Hargrove, Quincy Jones, Herbie Hancock, Wynton Marsalis, and others have in common as far as their success is concerned, and whether this can be reproduced in some manner… Read more »