Author Archives: jen

The video upload marks the spot.

It’s about time I write on this thing since it has been months since my last post. I was sifting through some old code I’d written last year and I tell you what, sometimes I’m actually shocked at the things … Continue reading

Posted in Uncategorized | Leave a comment

Updating Multiple DOM Elements (Unobtrusively) with AJAX in Rails

Okay, so you’re like me and you have a complex app that requires AJAX calls to update numerous areas on the page with content from partials. For instance, a date range changes, gets submitted, and that updates a calendar, the … Continue reading

Posted in AJAX, Development, jQuery, Ruby on Rails | Leave a comment

Fluid Icons

Rock out. I’m uploading several high-res Fluid icons for your pleasure. Click Here to Download (.zip) Credits to: Facebook: http://cootelibeau.files.wordpress.com Github: http://github.com/blog/47-new-fluid-icon Mint and Pivotal: http://sneaky.me/2008/11/fluid-app-icons-for-mint-and-pivotal-tracker/ Campfire: http://www.flickr.com/photos/indiekid/2555128022/ Gmail: http://iconexpo.com/

Posted in Random | Tagged , , | Leave a comment

Rails Collection Blocks

My great friend and mentor Jake Dempsey is always preaching about code readability and keeping logic out of views, etc, and therefore he’s always writing nice little helpers to do some of the magic — for instance, collection_content_for(collection) which will … Continue reading

Posted in Development, Ruby on Rails | Leave a comment

When you get really bored, and want to find a problem for this solution:

Getting the intersection and lowest values of a hash. def hash_intersect_min(*hashes) hashes.inject(hashes.pop.dup) { |i,h| i.delete_if { |k,v| hv=h[k]; next true unless hv; i[k]=hv if hv<v; false }; i } end So the following: hash_intersect_min({:a => 1, :d => 2, :k … Continue reading

Posted in Uncategorized | Leave a comment