sinatra + heroku + postgres

Now that the (read-only) web service was working locally on my machine, I wanted to see if I could push it to Heroku. The first thing I did was to dump my Postgres database. Since the basic/free Heroku account only supports databases with at most 10k rows, I truncated the zip code database. There are a total of 42k+ rows, so chomping off this many rows is significant, but I'm mostly doing this just as a demonstration. Usually, you'd run pg_dump to export an entire Postgres database to a file. However, pg_dump is…Read more …

flock 2014

I recently got back from my trip to Flock, held in Prague, Czech Republic. This is the first Fedora conference I've attended and, while the memories are still somewhat fresh in my mind, I thought I'd jot down some of my thoughts & reflections about the event. I arrived the night before the conference and was pleasantly surprised to find that getting to the conference venue was prettyΒ easy. Prague's public transit system is extremely convenient - the metro, bus, and tram system are all integrated and tickets are very affordable. Buses from the…Read more …

troubleshooting rvm install

In an effort to get reacquainted with Ruby on Rails, I embarked on installing rvm on my machine. Unfortunately, right out of the box, I ran into a few problems. Since I already have macports and the latest Xcode installed (along with its command lines tools), I started the installation process off by running : \curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled However, running that gave me this error message: curl: (60) SSL certificate problem: self signed certificate in certificate chain More details here: http://curl.haxx.se/docs/sslcerts.html I tried a bunch of options…Read more …

pulling github back to local machine

Now that I had a clean slate in terms of my dev setup, I needed to pull my github changes back to my local machine. Currently my .git/config looked like this: [remote "origin"] url = https://github.com/hyperkitty/hyperkitty.git fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin merge = refs/heads/master To pull my github changes (which I had forked from the main repo), I made these changes to .git/config: [remote "origin"] url = git@github.com:/hyperkitty.git fetch = +refs/heads/*:refs/remotes/origin/* [remote "upstream"] url = https://github.com/hyperkitty/hyperkitty.git fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin merge = refs/heads/master With these changes,…Read more …

debugging the Javascript Quick-Start Guide for Evernote SDK

Turned out to be a few relatively simple bugs, but together they caused enough of a hiccup that I was left scratching my head for a bit. So if anyone else out there finds themselves in the same boat, hopefully these tips will help. I was interested in checking out Evernote's API and decided to start with their Javascript tutorial. It turns out that they left out a few things in their writeup: In the original gist of index.html that's in the tutorial, there's a missing bracket ('>'): <input type="submit" value="Login" onClick="app.loginWithEvernote()"</input> should…Read more …