21 May '12, 10am

Using find_each for the first time to export a giant dataset to a giant xml file. #likeaboss ActiveRecord::Batches

Yields each record that was found by the find options . The find is performed by #find_in_batches with a batch size of 1000 (or as specified by the :batch_size option). Example: Person .where ("age > 21" ).find_each do | person | person .party_all_night! end Note: This method is only intended to use for batch processing of large amounts of records that wouldn’t fit in memory all at once. If you just need to loop over less than 1000 records, it’s probably better just to use the regular find methods.

Full article: http://api.rubyonrails.org/classes/ActiveRecord/Batches.h...

Tweets

Giant snake and giant turtle were besties

Giant snake and giant turtle were besties

grist.org 18 May '12, 3pm

You couldn’t have a one-ton snake today — the climate’s just too moderate for a cold-blooded creature that size. But back ...

Drink Up: Dungeons and Dragons, meets Kanye the...

caffination.com 18 May '12, 12pm

I love me some geek humor. And when that humor ends up on TV, in an unexpected place i love it even more. Some shows have ...

Obama's Poverty-Relieving Plan for Africa a Pro...

organicconsumers.org 20 May '12, 7pm

For related articles and more information, please visit OCA's Genetic Engineering page , Millions Against Monsanto page , ...

This is not Epic Meal Time. This is real meal time! haha. further info and taste survey do check out this entry:

This is not Epic Meal Time. This is real meal t...

awhiffoflemongrass.com 20 May '12, 1pm

“I’m not telling you, ‘Never eat a hamburger.’ Just eat the good ones with real beef, you know, like the ones from that mo...

Screencast: Easy Rails File Uploads using Ajax ...

railsinside.com 21 May '12, 8am

New to Rails 3? Check out the Ruby on Rails 3 Tutorial book and screencast. A book and screencast series showing you how t...

From the lawyer UDRP mistakes file…

domainnamewire.com 18 May '12, 2pm

From the lawyer UDRP mistakes file… Friday, May 18th, 2012 Don’t forget to prove earlier rights if you claim them. Publish...

In the Gulf's Depths, a Rare Time Capsule

green.blogs.nytimes.com 18 May '12, 11am

In the Gulf’s Depths, a Rare Time Capsule By KELLY SLIVKA NOAA Okeanos Explorer Program Most of the wood from an early- to...

History of a giant salamander (Dicamptodon tenebrosus)

History of a giant salamander (Dicamptodon tene...

earthtimes.org 13 May '12, 3pm

Dicamptodon tenebrosus; Credit: Jeffrey Marsten Multiple influences on the population genetics of a salamander in the Amer...

Samsung Now Producing Highest Density Mobile LP...

design-reuse.com 21 May '12, 5am

Samsung Electronics Co., Ltd. is a global leader in semiconductor, telecommunication, digital media and digital convergenc...

New companies at DAC for the first time in 2012...

eetimes.com 15 May '12, 4pm

New companies at DAC for the first time in 2012 Brian Bailey 5/15/2012 11:50 AM EDT Aspera develops software transfer tech...

Hawaii Becomes the First State in the U.S. to B...

surfrider.org 20 May '12, 4pm

Hawaii Becomes the First State in the U.S. to Ban Plastic Bags! May 14 2012 | Rise Above Plastics , Bag Bans , by Bill Hic...

TXU is First to Offer Free Night-Time Electricity Rate Plan

TXU is First to Offer Free Night-Time Electrici...

cleantechnica.com 18 May '12, 7pm

TXU Energy in Texas is offering the first free energy rates in the nation, between 10 PM and 6 AM. Its daytime rates are 1...

Things to watch - Ace! Festival: Hakim and the Giant Turtle - 18-27 May A story based on Singapore’s Kusu Island abo...

Things to watch - Ace! Festival: Hakim and the ...

timeoutsingapore.com 10 May '12, 6pm

Want more? Events Restaurants Clubs Similar events Beethoven Lives Upstairs - Things to watch Ace! Festival: The Little Me...

FROM OUR ARCHIVES | Time Out rants about Facebook.

FROM OUR ARCHIVES | Time Out rants about Facebook.

timeoutsingapore.com 17 May '12, 9am

At press time, the networking giant had proposed a radical new interface – one with tabbed pages to separate loathsome app...

Genetics papers brought together for the first time - Laboratory Talk: Genetics papers brought together for the

Genetics papers brought together for the first ...

laboratorytalk.com 18 May '12, 11am

The project, Modern Genetics and its Foundations, will see tens of thousands of first-hand notes, letters, sketches, lectu...