29 Sep '15, 6pm

New post by @chuckremes: A Small Case Study in Threading

A Small Case Study in Threading Chuck Remes Follow @chuckremes 29 September 2015 A recent project required me to process hundreds of CSV (comma-delimited) files and import them into a database. It's boring work, but it offers a few opportunities for me to utilize some of my favorite Ruby techniques and idioms. The first version of the script was very simple. Copy the zip file containing the CSVs to a working directory Unzip the file Delete unwanted files (e.g. README) Loop through each filename Convert the CSV lines where necessary (i.e. numbers should be Integer or Float instead of defaulting to String, do the same for dates) Insert the converted data into the database Delete the files as each completes, then go back to 1 for the next zip I originally ran this under MRI and was getting approximately 3000 inserts per second on average. I did a quick back-of-the-envelope ca...

Full article: http://rubini.us/2015/09/29/a-small-case-study-in-threading/

Tweets

A Small Case Study in Threading

rubyflow.com 30 Sep '15, 5am

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

A #Connectivity Case Study @sustaincities #urba...

A recent article in the local newspaper appeared under the title “Without Resolve There Is No Future,” lamenting the autom...

Why the @FirstTeeOpen is one of my favorite tournaments:

Why the @FirstTeeOpen is one of my favorite tou...

golf.com 29 Sep '15, 9pm

I can't pinpoint the exact moment when I fell in love with the Nature Valley First Tee Open, the Champions tour event that...

The business case for #greenbuilding: @rogerplattusgbc gives us four more words: "Our #Lender Values It."

The business case for #greenbuilding: @rogerpla...

usgbc.org 29 Sep '15, 7pm

This article was originally published on Huffington Post. I recently observed that a "refreshing free-market breeze" is bl...

Code Climate vs Rubinius

rubini.us 29 Sep '15, 6am

Brian Shirai Follow @brixen 28 September 2015 It is difficult to understand the behavior of a program written in a dynamic...

In case you missed any handbag action, here are the 5 posts PB readers loved this month!

In case you missed any handbag action, here are...

purseblog.com 30 Sep '15, 5pm

We know that you guys can't all check in on us every day, but your pesky jobs and families and lives might mean that you'v...

Study on Facebook Users: 14% Check It During A ...

thedomains.com 28 Sep '15, 1pm

Stop Procrastinating published the results of a survey of 2,000 people that use Facebook Regularly and it contains some pr...

#singapore 29 Sep 2015 Onward: Sony Perfect Case or Protective screen for your Phone #sales

#singapore 29 Sep 2015 Onward: Sony Perfect Cas...

sg.everydayonsales.com 29 Sep '15, 10am

Sony Singapore are having their Perfect Case or Protective screen for your Phone promotion now. Enjoy and Grab their perfe...

The Triple Bottom Line Case for the UN’s New Su...

triplepundit.com 26 Sep '15, 3pm

This weekend, United Nations member states will adopt a new set of Sustainable Development Goals (SDGs) at the three-day U...

ICANN Announces Phase One Results from Economic...

icann.org 28 Sep '15, 11pm

ICANN today published the findings from the "Phase 1 Assessment of the Competitive Effects Associated with the New gTLD Pr...

Study of Most Common On-page SEO Issues. Great

raventools.com 08 Oct '15, 1pm

For example, they believe that sites using GA tracking code may help Google more easily record bounces and dwell time from...

New Branding Study Reveals World's Most Popular Luxury Hotel Brands - Dubai Chronicle #branding #luxury

New Branding Study Reveals World's Most Popular...

dubaichronicle.com 29 Sep '15, 4am

A new study of luxury hotel brands was released yesterday by Luxury Branding, a highly reputed London-based consultancy, n...

Domain Sales Newsletter Case Study – Part 6

domainingtips.com 21 Sep '15, 5pm

Domain Sales Newsletter Case Study – Part 6 Posted on 21 September 2015 by Andrei This week, I’ll be trying a new experime...

New study finds even small amounts of air pollution can make you sick. @PalmerBrian explains:

New study finds even small amounts of air pollu...

onearth.org 24 Sep '15, 6pm

Airborne particulate matter—from car exhaust , wildfires , coal-burning power plants, and many other sources—is terrible f...

5 Recruitment Strategies For Small Businesses: Finding the most suitable candidate for a job role is one of th...

5 Recruitment Strategies For Small Businesses: ...

blogtrepreneur.com 01 Oct '15, 12pm

Finding the most suitable candidate for a job role is one of the most challenging aspects of being a small business owner....