Mon Apr 30
Wed Apr 25
#
Rails core
Jeremy K. - render :xml => @<%= file_name %>, :status => :created, :location => <%= file_name %>_url(@<%= file_name %>)
Jeremy K. - love that one liner
Michael K. - reminds me of a job I had writing perl code that would generate perl code
Michael K. - $$$$$$$$$${{{
#
Ad hoc polymorphism with a “recursive” lambda
class Contract < Array # ... def hours_for(date) locator = lambda do case date when Date lambda {|work| date == work.date} when Range lambda {|work| date.include? work.date} when Numeric year = Date.today.year date = if date > 2000 D(date, 1)..D(date, 12) else D(year, date)..D(year, date + 1) end redo end end select(&locator.call).sum :hours end # ... end
Tue Apr 24
#
“ They is, they is, they is. ”
From Tobias Wolff’s story Bullet in the Brain
Mon Apr 23
#
“ Euphonic epiphany like Keat’s lyre trope,
I am it, iambic rap’s last hope. ”
MC Lars, Straight Outta Stockholm
Sun Apr 22
#
“ A good abstraction involves removing as much detail as possible while retaining validity and ensuring that the abstract actions are easy to carry out. ”
Peter Norvig in Artificial Intelligence
Fri Apr 20
Tue Apr 17
#
“ If you don’t have a recipe with Jello and cottage cheese, you’re not working hard enough. ”
Mike Clark
#
“ We’ll fight, we’ll fight for your music halls and dying citiesThey’ll fight, they’ll fight for your neural walls and plasticities
”
Andrew Bird, Plasticities
Sun Apr 15
#
Tip Resuscitating an unresponsive video iPod
Toggle the hold switch on then off. Press down both the menu and the select button for ten seconds. The iPod should then power down and back up.
#
“ This clearly means that I need to go to Japan. ”
Marcel on discovering Petty Booka
Sat Apr 14
#
“ I didn’t know any better so I dared to begin. ”
Kurt Vonnegut
Thu Apr 12
#
“ You are one of the people who “goes places in life”. ”
Today’s sarcastic fortune cookie
#
“ No one belongs here more than you. ”
Miranda July
Wed Apr 11
#
“ There’s no reason not to mix and match, if you’ve got legacy Ruby code. ”
Adrian Holovaty on augmenting your Rails app with Django
#
“ This code is really flirty. ”
Bruce Williams
Tue Apr 10
#
Tip Dir#[] skips symlinks
Be mindful that when you write something like Dir['*/**/*.rb'], it will skip symlinked directories.
Mon Apr 9
Fri Apr 6
#
IM
Marcel - https://www.google.com/accounts/NewAccount
Marcel - go down to the captcha
Marcel - and press on the accessibility icon with the dude in the wheelchair
Marcel - that's apparently the "stuff of nightmares" button
Koz - I'm going to stick that on my ipod
Koz - for when I'm running
Koz - and want to run away fast
#
“ Subject: [Painfully OT] A python question… ”
X-Mail-Count: 246963 on ruby-talk
#
Teaspoon Slide Guitar
Wed Apr 4
#
Naudo: King of Lounge Guitar!!!
#
“ The difference between doing something just like something somebody else did and doing something the way somebody else did it is the difference between being an imitator and being a student. ”
Giles Bowkett
Tue Apr 3
#
“ I tend to use the “list-as-sequence” view rather than the “list-as-first-and-rest” view. The reason is that defining a list as a first and a rest is an arbitrary and artificial distinction that is based on the implementation of lists that Lisp happens to use. The “list-as-sequence” view makes no such artificial distinction. It treats all elements identically. ”
Peter Norvig in Paradigms of Artificial Intelligence Programming