MySQL No-Nos: ORDER BY RAND()
It’s a classic. You want to return random rows from a table, say a collection of random users in your social network. Easy, MySQL’s ORDER BY RAND() to the rescue. After all, everybody’s doing it. At least on my last search on that topic, all the PHP kids did it.
Every Day Polaroid
My friend Deborah from Sydney started a blog called “everyday polaroid” some weeks ago. She asked me to contribute my every day ‘roids for this week. Come on over, have a look, and say hi!
Git Bits: Committing Partial File Changes
As if there weren’t enough reasons to love it, I came across a nice little article by Ryan Tomayko called “The Thing About Git”. He describes how to do partial commits of only some selected changes in specific files instead of having to commit the whole file. git add --patch to the rescue. Neat stuff. I still like git stash, but being able to commit specific changes while leaving others untouched in the local repository can come in handy from time to time.
TextMate + RubyAMP = Unconditional Love
This is the bundle that’ll make TextMate almost as good as warm apple pie. RubyAMP comes along with a few additions to Ruby coding in TextMate, but boy do they rock.
Friday Tab Sweep (21.03.2008)
Lots of open tabs to be swept. Brace yourselves.
Git
-
Git - SVN Crash Course. Coming from Subversion? Lookie here.
-
gitnub. I was really apalled by gitk (but then again, I’m appalled by most tools written in Tk), so this more Mac-style repository browser comes in quite handy.
-
Git Peepcode. Of course.
Can you tell I’m looking into Git right now?
Ruby
-
Matz’ Google Tech Talk on Ruby 1.9. Damn, Google employees have it all.
-
MacRuby - Ruby running on Objective-C. A Ruby project by Apple. Awesome.
-
Ruby, an AppleScript Alternative. Part #2 and #3.
-
Ruby 1.9 with Symbol#to___proc and (soon) curried Procs. You know it from Rails, now this is Ruby standard:
:attributes.to_proc.
Rails
-
Tarantula vs. your Rails app. Think of it as heckle for your application.
-
count vs. length vs. size. A small tidbit on how each of these methods work on ActiveRecord association proxies.
Mac OS X
- Secrets. An ever-growing list of hidden preferences. Comes with a handy-dandy preference pane.