Professor Calestous Juma from Harvard’s Kennedy School … has been a pioneer on issues around education and technology on the continent, and we’re lucky to have him here, thinking about ways in which broadband technology is and isn’t transforming East Africa.
via …My heart’s in Accra (Ethan Zuckerman).
A cross section of the Apennines from RETREAT at Yale
Rails performs an SQL SELECT statement like “SELECT * FROM table_name WHERE table_name.id IN (1,2,3,4,5)” when its .find() method is passed an array of IDs. But it fails if one of those ids is not found. Sometimes it’s useful to find all _available_ records, but not fail if not all are found. I adjusted the search for this scenario in my working copy of the OpenStreetMap Rails port:
# @nodes += Node.find(nodes_to_fetch, :include => :node_tags) @nodes += Node.find(:all,:conditions => ["id IN ("+nodes_to_fetch.join(',')+")"], :include => :node_tags)