|
This post originated from an RSS feed registered with Ruby Buzz
by James Britt.
|
Original Post: RubyConf 2005 FaceBook Page
Feed Title: James Britt: Ruby Development
Feed URL: http://feeds.feedburner.com/JamesBritt-Home
Feed Description: James Britt: Playing with better toys
|
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by James Britt
Latest Posts From James Britt: Ruby Development
|
|
If you are going to RubyConf 2005, and want to make your visage known to others so that they may recognize you, there's a page started by Francis Hwang on the Ruby Garden wiki for posting pix.
For my entry, I just couldn't decide what picture to use, so I wrote a Ruby script to redirect to a random image:
#!/usr/local/bin/ruby
def redirect( new_page)
print "Location:#{new_page}\n\n"
end
pix = Dir[ " !rubyconf05 .{jpg,gif,png}" ].map{ |f| f.gsub( /^\.\//, '' ) }
img = pix[ rand( 300) % pix.size ]
redirect( "http://www.jamesbritt.com/images/#{img}" )
The link-making code for the wiki page will magically turn an image URL into an img element, but my script ends with the .rb extension. No problem; I just appended a vestigial query string to the URL:
http://www.jamesbritt.com/images/james_britt_pix.rb?.jpg
Wiki pleasure.
Now, you may have noticed, that in addition to being so friendly, we Ruby folk are a handsome lot, too! And, so, the new Ruby promo phrase:
"Ruby: Because we're better-looking."
Read: RubyConf 2005 FaceBook Page