Ryan Davis

codeforpeople's rubyforge 0.2.2 released


over 5 years ago by Ryan Davis on Polishing Ruby.
The latest version has been released and makes deployment easier by having add_release return the release_id to be used in add_file. YAY! Now deployment...

Farmer Ted uses Hoe to beat Rake (and RubyGems)


over 5 years ago by Ryan Davis on Polishing Ruby.
Farmer Ted came to me the other day with a problem. He has about 10 different packages he wants to work on and periodically release, but sometimes it seems...

ERB made faster (by about 40%?)


over 5 years ago by Ryan Davis on Polishing Ruby.
require 'benchmark' require 'erb' max = (ARGV.shift || 1_000_000).to_i def validate(src) expect = "blah blah 2 " * 50 result = eval(src...

ruby quine _slightly_ smaller than python quine


over 5 years ago by Ryan Davis on Polishing Ruby.
I found Shortest Python Quine? and thought I'd check it out. I wasn't aware of python's %r, but apparently it is equivalent to our %p (which I always forget...

RubyInline Myths


over 5 years ago by Ryan Davis on Polishing Ruby.
I just read the RubyInline section (22.4) of the Ruby Cookbook by Lucas Carlson and Leonard Richardson. I'm a bit ticked off so calibrate accordingly. In...

ruby memory visualizer


over 5 years ago by Ryan Davis on Polishing Ruby.
I never ever (hardly ever) do graphics, much less GUI apps. So when I do, it is always a chore. But for fun I just whipped up a simple memory visualizer...

as seen on IRC


over 5 years ago by Ryan Davis on Polishing Ruby.
16:05 srbaker : using << self to replace the "duplication" in "def self." 16:05 srbaker : is like using method_missing to remove the duplication...

risearch getting popular


almost 6 years ago by Ryan Davis on Polishing Ruby.
Apparently risearch got folded into ruby-doc.org! How cool is that? Check it out: http://www.ruby-doc.org/risearch/rand. I just made a shortcut in safari...

I miss perl's -B


almost 6 years ago by Ryan Davis on Polishing Ruby.
Perl has a bunch of tests in form of -X path (e.g., -f path returns true if path exists and is a file). We have a direct analog with the test method (e...

New and Improved: better full text searching for ri/rdoc/gems


almost 6 years ago by Ryan Davis on Polishing Ruby.
During hacking night last night Eric and I added path independence and searching of gems and local installed ri/rdoc. Enjoy! #!/usr/local/bin/ruby -w require...