Profile_bird

Hey there! dbrady is using Twitter.

Twitter is a free service that lets you keep in touch with people through the exchange of quick, frequent answers to one simple question: What's happening? Join today to start receiving dbrady's tweets.

Already using Twitter
from your phone? Click here.

dbrady

  1. @digiduke When you you TWO laptops, tourbus gets really dangerous
  2. @gilesgoatboy git rebase -i <commit-hash-before-the-ones-you-want-to-throw-away>; delete the unwanted commits.
  3. @flangy My top 5 Windows Releases of the Decade: 5. RedHat 4. Fedora 3. Slackware 2. Kubuntu 1. Mac OSX
  4. Full story of the ninja monkey uprising: http://bit.ly/6VGILM
  5. If you don't want pics on the internet of you getting kicked in the head by a monkey, DON'T TEACH THEM TAE KWON DO. http://bit.ly/5mpBIv
  6. @headius meh was admitted to the OED last year.
  7. @flangy Stepping in front of a job is how you catch a bus? That makes no sense. THE FUTURE IS CRAZY!
  8. @BM5k And as a bonus, you'll get your picture on my website! (This is not a god thing.) :-)
  9. So, Comcast craps out in the evenings (too many people swamping it). Anybody having better luck with Qwest?
  10. Very nice tech at Comcast just told me there's not really anything they can do about my problem. Wouldn't even suggest a brand of laxative.
  11. @jamie_ca Later I got rid of the nil, too, so the ending code was just x = Array(x). I loves me some clean code. :-)
  12. @jamie_ca A couple of folks pointed out that Array(x) works just like x = [x].flatten. I did need to worry about nil, though, hence the &&.
  13. And my specs all pass! Yay! I get to go home! Another fruitful day in the software mines.
  14. Ha! I ended up using Array#- later on, which had to special case the nil. But Array(nil) => [], which is perfect! BAM: x = Array(x)
  15. http://bit.ly/8IiQVA. <-- this is the model I'm traversing. And yes the code I'm working on has to get from A to D easily.
  16. @godfoca @JEG2 THANK YOU. Array(x) is much nicer than [x].flatten
  17. Got 3 models joined many to many to many, joined many-to-many to a 4th model. I'm climbing a live volcano. RSpec is my safety rope.
  18. BAH! YAGNI! And Hash === x is *WAY* read-ier.
  19. ...I could probably have hooked Hash === x but that grates on my instincts. What if we want to allow OpenStructs later, etc
  20. For that code, x can legally be nil, a hash, or an array of hashes.