content top

Sinatra, Sqlite, Postgres, Heroku

Recently I ran into an issue trying to deploy to the Heroku Cedar stack for my (in progress) app, Mocknote. I developed the app locally with Sqlite3, using Sinatra and DataMapper.
Heroku complained about my Gemfile.lock missing the dm-postgres-adapter, but I was unable to install the gem locally. I resolved this conundrum by adding this to my Gemfile:


group :production do
gem 'dm-postgres-adapter'
end

I then ran this:

bundle install --without production

I was then able to successfully deploy to Heroku.

Read More

Recently I ran into an issue trying to deploy to the Heroku Cedar stack for my (in progress) app, Mocknote. I developed the app locally with Sqlite3, using Sinatra and DataMapper.
Heroku complained about my Gemfile.lock missing the dm-postgres-adapter, but I was unable to install the gem locally. I resolved this conundrum by adding this to my Gemfile:


group :production do
gem 'dm-postgres-adapter'
end

I then ran this:

bundle install --without production

I was then able to successfully deploy to Heroku.

Read More

Free money for Business people:

Don’t hire people who don’t hack. There: don’t tell me I never gave you nothing.

Read More

Unix tree command on Mac OSX

The tree command is, sadly, missing from Mac OSX – but here’s a quick and dirty way to replicate it on OSX. You could of course use MacVIm and NERDTree, but where’s the fun in that?

find . -print | sed -e ‘s;[^/]*/;|____;g;s;____|; |;g’

Read More

My First Ruby Gem – regexhelper

A while back I did a little experiment with building a ruby gem – the result was Regexhelper. You can check out the gem on Rubygems.org, or check out the source at Githu.com. Of course, you can install by by running ‘gem install regexhelper’ if you’re so inclined. As of now its been downloaded 45 times.

I used a the jeweler gem to help create regexhelper. Right now the gem is pretty empty, and probably very amateurish, but I plan on updating and cleaning it up as soon as possible.

Read More
content top