links for 2007-03-22

Joe Queenan watches Ingmar Bergman’s entire oeuvre Like the experience of watching 38 Bergman films in a row, the article is a little repetitive, but worth the time (tags: bergman film) Daytrotter on Neon Bible “Their stateliness and funereal attire could be seen as comically serious, especially as the band builds song suites and concept albums and the such. But at the heart of the Arcade Fire is a palpable sense of spontaneity and fun, some of which comes from ...

March 22, 2007

links for 2007-03-21

fame, narcissism and MySpace (tags: myspace socialnetworking)

March 21, 2007

links for 2007-03-20

Click opera - The virtual world of consumer spectacle fails to describe its describer “The difference between the French obituaries of Jean Baudrillard, who died last week, and the Anglo-Saxon ones was really remarkable. The Anglo ones seemed to be written by people trapped in exactly the sort of spectral, consumerist cage that Baudrillard (tags: baudrillard obituary)

March 20, 2007

:select and :include in ActiveRecord queries

Along with Bill Eisenhauer, I’ve been digging into what it would take to fix the problem I found with GeoKit, that it wouldn’t support :include queries properly. The explanation has seen us going deep into the internals of ActiveRecord to discover, as others have before, that the :select parameter (which GeoKit uses to build its distance column in the query) and the :include parameter don’t play nicely together. The reason for that is that Rails employs special methods to build the select parameters when there’s a :include in the query (ie. when you’re joining with other tables and eager-loading them) and currently ignores :select along the way. GeoKit would ordinarily produce SQL along the lines of: ...

March 20, 2007

Fair Trade's Growing Pains

Back in the UK for a few meetings and some flat hunting, I’ve been experiencing first hand the way that Fair Trade has become a mass consumer movement over here in the few years since I left. As a long-time supporter of fair trade it’s gratifying to see such a plethora of products readily accessible, but a discussion at my parents’ church this weekend also got me thinking about the trade-offs involved in such a movement going mainstream. ...

March 19, 2007

links for 2007-03-18

has_many :through: New on Edge: dynamic finders with hash attributes for creation “Tag.find_or_create_by_name(:name => name, :creator => current_user)” – much nicer than the previous behaviour (tags: associations rubyonrails) Kingston Technology Company - Flash Memory - DataTraveler Combining a card reader and a flash drive. Tempting. (tags: cardreader flashdrive hardware)

March 18, 2007

Improvements to Rails' JSON Support

I’m travelling at the moment, so posting has slowed down after three weeks of daily updates. Nevertheless I’ve just about managed to keep up with my newsreader and was pleased to see that some attention has been going into the JSON support in ActiveResource. Previously parsing JSON that couldn’t be easily handled by the YAML parser was a bit of a pain. Now it’s simply a case of calling: ActiveSupport::JSON.decode(json_string) And the JSON param_parser I referenced in my “Versatile RESTful APIs Beyond XML” article no longer needs extra help. It’s simply: ...

March 18, 2007

links for 2007-03-17

acts_as_twittertasticable!! Tongue-twisting new plugin to set up rails models to talk to twitter (tags: plugins rubyonrails twitter)

March 17, 2007

links for 2007-03-14

Relevance: The J Plugin: Existing Rails Apps on JRuby The Relevance guys have released a new plugin to help get rails apps running transparently on either ruby or jruby (tags: jruby ruby rubyonrails) Twitter: Use it Productively - lifehack.org Some speculation on how twitter could evolve (tags: productivity twitter) High Earth Orbit » Blog Archive » Geo Twittering Overview of geographical mashups of twitter (tags: geo twitter)

March 14, 2007

links for 2007-03-14

InfoQ: Versatile RESTful APIs Beyond XML An article I wrote. Probably only of interest to the technically inclined. (tags: articles byme rubyonrails)

March 14, 2007