nathanblend

Archive for October 2007

unix: recursive and case-sensitive grep

without comments

grep -r -i word .

Written by nathanblend

October 17, 2007 at 8:37 pm

Posted in Uncategorized

Lowpro – Hijacking Forms

without comments

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

Written by nathanblend

October 17, 2007 at 7:37 pm

Posted in Development, Uncategorized

Tagged with , ,

A bash alias for using the old version of capistrano

with one comment

Capistrano 2.x is looking really nice but for an ongoing project with a mammoth deploy.rb file I’m sticking with cap 1.2 (the current release at the time of the project). Thanks to the upgrade FAQ I found an easy way to do this. I created a bash alias because I hate typing _1.2_. Note: you have to have the previous gem still installed. ‘gem list’ to find out.

alias cap1='cap _1.2_ '

Written by nathanblend

October 16, 2007 at 9:53 pm

Posted in Development

Tagged with , , ,

unix: find

without comments

find . -name "*share*" -print

Written by nathanblend

October 16, 2007 at 9:48 pm

Posted in Development

Tagged with ,