|
Advertisement
|
Forum posts by James Tucker:Posted in All Buzz Forum, May 10, 2008, 11:55 PM
You like Rack eh? Yeah ya do big lad! You like Git? You like GitHub? Well then young man, checkout this Rack! #!/usr/bin/env ruby require 'rubygems' require 'rack' require 'json' class App GO_AWAY_COMMENT = "Be gone, foul creature of the internet." THANK_YOU_COMMENT = "Thanks! You beautiful soul you." PORT = 9001 def self.rude_comment res = [...]
Posted in Ruby Buzz Forum, May 10, 2008, 11:55 PM
You like Rack eh? Yeah ya do big lad! You like Git? You like GitHub? Well then young man, checkout this Rack! #!/usr/bin/env ruby require 'rubygems' require 'rack' require 'json' class App GO_AWAY_COMMENT = "Be gone, foul creature of the internet." THANK_YOU_COMMENT = "Thanks! You beautiful soul you." PORT = 9001 def self.rude_comment res = [...]
Posted in All Buzz Forum, Apr 21, 2008, 3:22 PM
def os_path path (*path.split(/\\|\//)).join( File::ALT_SEPARATOR || File::SEPARATOR ) end but sometimes it’s just gotta be done :(
Posted in Ruby Buzz Forum, Apr 21, 2008, 3:22 PM
def os_path path (*path.split(/\\|\//)).join( File::ALT_SEPARATOR || File::SEPARATOR ) end but sometimes it’s just gotta be done :(
Posted in All Buzz Forum, Apr 11, 2008, 9:43 PM
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: def BS(superclass = nil, name = :BlankSlate) klass = eval(" class #{name} #{"
Posted in Ruby Buzz Forum, Apr 11, 2008, 9:43 PM
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: def BS(superclass = nil, name = :BlankSlate) klass = eval(" class #{name} #{"
Posted in All Buzz Forum, Apr 11, 2008, 3:43 PM
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 a second I can really [...]
Posted in Ruby Buzz Forum, Apr 11, 2008, 3:43 PM
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 a second I can really [...]
Posted in All Buzz Forum, Mar 25, 2008, 11:58 AM
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...
Posted in Ruby Buzz Forum, Mar 25, 2008, 11:58 AM
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...
Posted in All Buzz Forum, Mar 17, 2008, 9:46 PM
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 slow...
Posted in Ruby Buzz Forum, Mar 17, 2008, 9:45 PM
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 slow...
Posted in All Buzz Forum, Mar 6, 2008, 3:28 PM
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 refuse to release my first [...]
Posted in Ruby Buzz Forum, Mar 6, 2008, 3:28 PM
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 refuse to release my first [...]
Posted in All Buzz Forum, Jan 24, 2008, 9:50 PM
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 of this file actually being [...]
|