08 Oct '13, 7pm

ActiveSupport::PerThreadRegistry seems useful:

This module is used to encapsulate access to thread local variables. Instead of polluting the thread locals namespace: Thread.current[:connection_handler] you define a class that extends this module: module ActiveRecord class RuntimeRegistry extend ActiveSupport :: PerThreadRegistry attr_accessor :connection_handler end end and invoke the declared instance accessors as class methods. So ActiveRecord::RuntimeRegistry.connection_handler = connection_handler sets a connection handler local to the current thread, and ActiveRecord::RuntimeRegistry.connection_handler returns a connection handler local to the current thread. This feature is accomplished by instantiating the class and storing the instance as a thread local keyed by the class name. In the example above a key “ActiveRecord::RuntimeRegistry” is stored in Thread.current . The class methods proxy to said thread local i...

Full article: http://api.rubyonrails.org/classes/ActiveSupport/PerThrea...

Tweets

Triathlete Love: Sorry Seems To Be The Hardest Word: Photo: Shutterstock.comA little remorse goes a long way,

Triathlete Love: Sorry Seems To Be The Hardest ...

triathlon.competitor.com 04 Oct '13, 8pm

Triathlete Love: Sorry Seems To Be The Hardest Word By Susan Lacke Published 3 hours ago comments Tweet Share Share Print ...

Matt Cutts: Google Trends Less Useful For Spammers

seroundtable.com 01 Oct '13, 12pm

A couple weeks ago, we talked about how Google Trends added top charts to the feature list. What I did not mention and for...

Video Recap of Weekly Search Buzz :: October 4,...

seroundtable.com 04 Oct '13, 2pm

Bit of a crazy week with SMX and all the major announcements to catch up on. Google announced they rewrote their search al...

Google: BitTorrent Back In Auto Complete To Mak...

searchengineland.com 25 Sep '13, 12pm

Yesterday we reported that after over two years of being missing, BitTorrent is back in Google’s auto completion results. ...

Are Horses Inherently Vicious? No, But Connecti...

care2.com 28 Sep '13, 12am

The trouble all started in 2006 when a toddler was bitten by a horse at Glendale Farm in Milford, Conn. The child’s father...

insanely useful.

pivotallabs.com 04 Oct '13, 10pm

It may come to pass that you will amend HEAD with changes that were meant to go on a commit earlier than HEAD via git comm...

Special Envoy for Guantanamo closure just seems...

defense.gov 08 Oct '13, 1pm

Defense Secretary Chuck Hagel today announced the appointment of Paul M. Lewis to the position of Special Envoy for Guanta...

Very useful rails array helper method I learned...

api.rubyonrails.org 07 Oct '13, 3am

Returns a string that represents the array in XML by invoking to_xml on each element. Active Record collections delegate t...

Learning about #self in #Ruby: @rubylearning is...

rubylearning.com 03 Oct '13, 4pm

Self - The current/default object <Modules/Mixins | TOC | Constants > At every point when your program is running, there i...