Static Site Hosting on Heroku with Node.js

I’ve been moving a lot of my web content off of a personal server which has been kept in to my apartment to various hosting services while on break this year.  Sites like Ask An Asian Person and other small inside jokes I used to host on a Windows 2003 Server with IIS on a Dell machine that ran in my closet. That setup is/was so very, well, 2003. In addition, it’s always a good move to reduce and remove any ingress points to my home network.

So for a bunch of the silly small sites I have, I’ve moved them over to one-dyno free hosting on Heroku. To do that, I made up a little template to use called static-heroku-node. It’s a tiny 10 line Node.js + Express application that deploys applications out of the /public/ folder in the app. Quick and easy to use, I managed to move a few sites over in short order.

As an aside, I moved my blog over to DreamHost. I looked at Heroku for hosting WordPress — there are a bunch of options on how to do it, but any production setup (e.g. > 1 dyno and any of their production level Postgres databases) would cost something like $25-$50 per month which is a bit rich for just a blog. DreamHost’s 1-click WordPress setup is much cheaper and more flexible than trying to scaffold the same thing up on Heroku/Dotcloud/etc.

238 Words

Track of the Week: Hey Now by London Grammar

This week’s track is Hey Now by London Grammar off of Metal and Dust, and the Arty Remix of the same. Not a new song by any measure, but I heard it for the first time on KCRW earlier last week, and then again in a house podcast in a house remix. So today’s track of the week is presented in two parts. First, the haunting yet slightly electro-poppy original, and then the dance remix which ups the tempo, adds in a classic four on the floor dance line and synths.

91 Words

You’re No Good by Major Lazer

This week’s track if You’re No Good by Major Lazer, featuring Santigold, Vybz Kartel, Danielle Haim and Yasmin. There’s been a dearth of good music the last few weeks, hence the lack of tracks of the week. I’ve finally gotten around to going through a backlog of albums that came out in the last month plus (Yeezus? Blerg, what a joke). I’ve finally made it to the latest Major Lazer album and the opening track from the album stood out, mostly since it sounds like a James Bond title track: “It’s for your eyes only, living for you solely.”

 

100 Words

Track of the Week: Wake Me Up by Avicii

This week’s track is Wake Me Up by Avicii. Originally found on his 2013 promo mix, which debuted a lot of new material, this new track is a totally different direction from traditionally house and dance/electronica. Much more pop, much more designed for mainstream listening, and definitely a tad country (stripped guitar, anyone?). Aloe Blacc (who, coincidentally, went to my high school a year ahead of me) lends his vocals to the track, giving it a touch of Blacc’s typical soul flair as well. I’m excited to see what else is coming in the new Avicii album, it could be an interesting and exciting new direction for electronica.

108 Words

Getting Maven to Work with Android 17

I just suffered through this for a good part of an afternoon, so figured I’d blog it for anybody else. Apparently a bunch of stuff moved around between some versions of Android, so make soft links to:

./sdk/tools/aapt to ./sdk/build-tools/17.0.0/aapt
./sdk/tools/dx to ./sdk/build-tools/17.0.0/dx
./sdk/tools/lib/dx.jar to ./sdk/build-tools/17.0.0/lib/dx.jar

So, if you’re in your ./sdk/tools directory, you can:

ln -s aapt ../build-tools/17.0.0/aapt
ln -s dx ../sdk/build-tools/17.0.0/dx
ln -s lib/dx.jar ../build-tools/17.0.0/lib/dx.jar

92 Words

Track of the Week: Sea of Love by The National

This week’s track is Sea of Love by The National off of Trouble Will Find Me. While the world is gushing over the Daft Punk album, this week we go to rock: drums, guitars, vocals, pedals, etc. High Violet was on high repeat for me back in 2010 and Sea of Love and Trouble Will Find me is a return to that same sound.

63 Words

Track of the Week: 25 or 6 to 4 by Chicago

This week’s track is 25 or 6 to 4 by Chicago off of Chicago. Recorded at the end of the 60s, but with a sound that’s squarely past the 60s, this song opens with a rocking horn line on top of the melody carried by the guitars and drums. Toss in Peter Cetera’s vocals (singing about who-knows-what), the song is a classic.

59 Words

Track of the Week: Get Lucky by Daft Punk

This week’s track is Get Lucky by Daft Punk (featuring Pharrell). Fantastic song that does all the talking for itself, so just a few notes: (a) it’s classic Daft Punk, down to the computer-Mr.-Roboto voice, (b) it’s Pharrell singtalking, and (c) it’s awesome funk.

45 Words