TIL to use current_config() instead of Rails.env() in database operations in #Rake tasks with #Rails v3.2.
The #Ruby community’s propensity for monkey patching sucks rocks.
The best programming language is obviously the one best able to string eval «1+1»: http://youtu.be/TyQHVOdyoCM #ruby #python #php #perl #nodejs /via https://twitter.com/garu_rj/status/315976576464478208
Watching the Star Wars movies in Ernst Rister order. Not going with Machete order because I want to watch Maul.
AirPlay totally rocks.
Media link in ADN post/tweet/web page/iBooks goes from iPad to 65” TV just like that.
OMFSM. Kosher saccharin. What will they think of next? Image [photos.app.net]
Half a dozen Don Quixotes, of both genders, armed to their beards with ukuleles, take on Sergio Leone and Willie Nelson: http://www.buildingstage.com/images/q_web.jpg
What’s not to love about mashed potatoes deep-fried in duck fat?
Tonight’s entertainment: Dawn, Quixote. Given their Moby Dick, I’m seriously looking forward to this.
What’s the solution to the «git checkout master && git pull && git checkout branch && git merge master» dance?
From reading the C source, the valid component separators for #Ruby’s Date.parse() are “/”, “-”, and “.”. Nice if that was actually documented.
You have got to be kidding me. #Ruby’s date parsing has time zone names hard coded in C (ext/date/date_parse.c) and they include the ambiguous ones. Do they update this when a new Olsen database release happens?
Today’s #Ruby fun: porting an app from v1.8 to v1.9 and Date.parse() changed such that it can’t deal with U.S. dates (m/d/y), only ISO and little-endian.
End of next week is the 10th anniversary of the peak of Daley hubris: the overnight, “stealth” bulldozing of Meigs Field: [en.wikipedia.org/wiki/Meig… #chicago #history
Hacked #Rails log colors in gems/activerecord-3.2.12/lib/active_record/log_subscriber.rb, in sql():
if odd? name = color(name, BLUE, false) else name = color(name, GREEN, false) end sql = color(sql, YELLOW, false)
Twitter Android app now requires access to your personal contact card? [beep] that.
Hey #Perl people: if you get into a disagreement with a #Ruby bigot about sigils, ask them what they think of #Haml.
Really appreciating https://github.com/tpope/vim-characterize today.
Hah! Now there’s a /really/ free software license for you, the WTFPL. The “Do What The Fuck You Want To Public License”. http://www.wtfpl.net/
#ruby #vim #vimrc:
«autocmd FileType ruby inoreabbrev
Useful because it won’t interfere with normal output/piping.