ragged blog http://blog.ra66i.org blog of raggisms and random musings, by raggi™ Mon, 21 Apr 2008 13:34:40 +0000 http://backend.userland.com/rss092 en yucky yucky [source:ruby] def os_path path (*path.split(/\\|\//)).join( File::ALT_SEPARATOR || File::SEPARATOR ) end [/source] but sometimes it's just gotta be done :( http://blog.ra66i.org/archives/informatics/2008/04/21/yucky-yucky/ Super Blank Slates So there's BlankSlate, and today tmm1 was doing something where he was delegating to Array, but wanted to actually have Array in the ancestor chain (for Class#===), so I came up with this: [source:ruby] def BS(superclass = nil, name = :BlankSlate) klass = eval(" class #{name} #{" < ... http://blog.ra66i.org/archives/informatics/2008/04/11/super-blank-slates/ RDOC 2 IS OUT! RI IS NOW FAST! I know, I'm shouting, but there's stuff to shout about! I've hated ri for being so slow for so long. The new one is out! I really recommend installing rdoc 2 and firing up ri for the first time. Now only the 'first time' takes a long time :D It's joyous, just under ... http://blog.ra66i.org/archives/informatics/2008/04/11/rdoc-2-is-out-ri-is-now-fast/ sloppyright on rails Update: please see comments. Take a look at this: http://www.robbyonrails.com/articles/2008/03/24/dry-a-year-after-year Surely this is completely pointless, I mean no rails programmer (or customer) died over 20 years ago. In the case of corporate copyright, the 'owner' is the company, so that could be a very very long time away. http://en.wikipedia.org/wiki/Copyright#Duration Legally this is pointless, it's just ... http://blog.ra66i.org/archives/informatics/2008/03/25/sloppyright-on-rails/ People in search of a secret crotch rocket… Here's some stuff from the #ruby-lang mailinglist, with my replies inlined. It's here because this kind of discussion often doesn't go far on a mailinglist, but the response may have some validity to some people. There really isn't a secret list of "idioms" or rules that will save you from writing ... http://blog.ra66i.org/archives/informatics/2008/03/17/people-in-search-of-a-secret-crotch-rocket/ got time? Mood: seriously annoyed. Sorry to all of you to whom I have mentioned my upcoming ojbect_protocol release, that are hoping it to come soon. As much as I would like to release it soon, I do not have the time to finish off the specs, docs and examples any time soon. I ... http://blog.ra66i.org/archives/informatics/2008/03/06/got-time/ if you’re using git-svn… Then seriously, do yourself a favour, and add .svn to your global ignore list. One of my colleagues committed one yesterday, so I had a fun day re-learning svndumpfilter and friends today. Of course we can all question how this happened, I know how it happened (and so do you, if you ... http://blog.ra66i.org/archives/informatics/2008/03/05/if-youre-using-git-svn/ environment.plist not being loaded So in the recent Textmate update, the ruby bundle run command just had the following line added: #!bin/sh And the result is, raggi finds out that his Leopard account doesn't seem to load the environment.plist file. I spent a couple of hours searching round, triple checking paths etc. To find no evidence ... http://blog.ra66i.org/archives/informatics/2008/01/24/environmentplist-not-being-loaded/ Software List Dump So this is a list of software that I'm using on one of my Windows development machines (my home one), I think this has been stripped down now to just software that you can use legally for free, if I missed anything else that's buyware, please feel free to leave ... http://blog.ra66i.org/archives/informatics/2008/01/06/software-list-dump/ Instability does an angry man make… I have a new MacBook. It's less than a month old, and came with Leopard. My father bought be a Mighty Mouse (wireless) to go with it. Today, I'm getting angry to the point where I thought about the idea of taking the whole lot back for a full refund. You see, ... http://blog.ra66i.org/archives/informatics/2007/12/27/instability-does-an-angry-man-make/