Archive for the ‘Uncategorized’ Category
Moved: http://verni.wordpress.com/
merb + jQuery + git + DataMapper + nginx on mod_ruby
buzzwords
Pixel Perfect HTML
Heard good things about these guys: http://www.pixelperfecthtml.com
Installing git on mac osx
Here’s how to install git on osx from source (or any other *nix system for that matter).
wget http://www.kernel.org/pub/software/scm/git/git-1.5.3.8.tar.gz
tar xzvf git-1.5.3.8.tar.gz
cd git-1.5.3.8
./configure
sudo make && sudo make install
Test it out by checking out merb-core:
git clone git://github.com/wycats/merb-core.git
Dreamhost vs. DHH on Rails Shared Hosting
The Official Dreamhost blog had a post about shared rails hosting that got a quick response from DHH himself. My comment on the Dreamhost blog was ‘flagged as spam’ so I’ll post it here:
One of the great things about Rails and the Ruby development community is that our interests lie outside of just writing code in dreamweaver and ftping it to the server. I’d venture to say that most Rails developers want the kind of control of a server that shared hosting doesn’t offer. Sure, I could pay $5 to Dreamhost to get one site up in running, or I could pay $20 and get a VPS from someone like linode or slicehost and do whatever I want with it, all the while learning valuable unix skills. The whole ‘hosting is a black box mentality’ will just keep developers continually relying on hosting vendors for a crucial aspect of their business.
undefined method `require_gem’
I kept getting this error when running rake on new rails 2.0.2 app. Turns out the problem was that I needed to upgrade rake from 0.7.3 to 0.8.1. Fixed it.
db/migrate/100_…
A large rails project I’m working on hit the 100th migration milestone today. Despite what some might say, I love migrations. It think it’s really cool (if not 100% necessary) to be able to look back at the roadmap that the database has followed to get to where it is. I’ve never had to rollback a migration, but I can sleep easier knowing that all 100 migrations have valid self.down methods.
jQuery
The guys at err the blog have written a great post on using jQuery instead of the default prototype. As usual, it’s a high quality read and sure to become a defacto resource for breaking the prototype addiction.
unix: recursive and case-sensitive grep
grep -r -i word .
Lowpro – Hijacking Forms
Want to hijack a normal form to make it submit via ajax? If you’re using prototype and lowpro:
Event.addBehavior({
'#order_sandwhich_form' : Remote.Form
})
via http://jlaine.net/2007/8/6/from-rails-ajax-helpers-to-low-pro-part-2