[ANN] Google Maps Hacks335 (6/20/2005 4:56:38 AM) comp.lang.ruby In the spirit of "Release Early, Release Often", I want to provide my Google Maps Hacks files and see if anybody can do anything interesting with them: http://rubyforge.org/cgi-bin/viewcvs.cgi/googlemapsha... Ben
Typo-checking instead of static typing2930 (5/3/2005 7:27:23 PM) comp.lang.ruby Once again, static typing reared its head on the mailing list, and once again, the knights of the Ruby table slayed the beast... but it will return. The wheel of time continues to turn and the beast will ret... Ben
Blah-Blah List (and why line counts are a bad metric)1226 (3/30/2005 3:07:21 AM) comp.lang.ruby So, I did a search for Ruby on Rails today, and my interest was piqued by the third result. It said "Move over Ruby on Rails, Java can be concise too" http://www.theserverside.com/news/thread.tss?thread_i... Ben
Examples for racc?1435 (3/15/2005 11:03:50 PM) comp.lang.ruby Hey all, I was trying to use racc the other day, and couldn't get even the most basic sample started. Does anybody know of any fully working sample grammar files for it? The calculator that is mentioned in... Ben
indent.rb <- does such a beast exist?429 (3/4/2005 5:15:51 PM) comp.lang.ruby Does anybody have a standalone Ruby app and/or library that will properly indent a chunk of Ruby code? I'm looking for something that does the equivalent of "indent-region" in ruby-mode for Emacs. I know so... Ben
ri needs to tell me what to require431 (2/16/2005 9:37:54 PM) comp.lang.ruby % ri File.copy ------------------------------------------------------------- File::copy File::copy(from, to, verbose = false) ------------------------------------------------------------------------ ... Ben
Object#caller and Exception#backtrace032 (2/8/2005 6:07:54 PM) comp.lang.ruby Seeing the wonderfulness of the 'to_ruby' method I mentioned just recently got me thinking about Object#caller and Exception#backtrace again. I don't know about anybody else, but it seems strange to me that t... Ben
Object#to_ruby and Object#to_c230 (2/8/2005 5:52:46 PM) comp.lang.ruby In case you missed it, on RedHanded, I spotted was an interesting snippet I didn't see on the list or anything: It's a way of using ParseTree and RubyToC to add 'to_c' and 'to_ruby' methods to any Method. h... Ben
Ruby/DL and functions that modify a pointer728 (2/2/2005 2:14:58 AM) comp.lang.ruby I just started using Ruby/DL and am amazed at what it can do. I've almost got a really impressive demo to show off to my cow-orkers, but I have one cow left to ork... er... I have one thing left to figure ou... Ben
regexp issue on parsing from file1032 (8/15/2009 2:53:30 AM) comp.lang.ruby Hi guys, I've always had trouble with regexp and matching. I'm trying to figure out how to parse a very lengthy file that contains information similar to below: ["Name"] = { 80, -- [1] "Company", -- [2] "200... jdezenzio(130)
if defined on var631 (8/19/2009 2:22:18 AM) comp.lang.ruby db = Amalgalite::Database.new("/usr/local/vrep/repo/db/development.sqlite3") table_exists = db.execute("select name from sqlite_master where type='table' and tbl_name='derek'") if defined?(table_exists) p "... derekbellnersmith(51)
Relative Path in ruby - for File open345 (8/19/2009 5:02:21 AM) comp.lang.ruby Hi Guys, I am trying to fetch a file to do some processing in ruby, instead of giving the absolute path i wanted to give relative path. File.open("config.txt") do |source| source.each_line do |line|... idealone5(8)
extending ruby - handling errors1025 (8/20/2009 3:49:03 PM) comp.lang.ruby I want to raise an ArgumentError, "Function only takes numeric objects." if a non-numeric argument is passed to the existing Ruby method, Numeric.ceil. #Here is my feeble attempt to extend Ruby: irb(main):001... jason.lillywhite(184)
Why, oh why, _why?6826 (8/20/2009 8:08:13 PM) comp.lang.ruby _why the lucky stiff appears to have disappeared from the internets! http://daringfireball.net/linked/2009/08/20/resig-why ... doodpants(141)
Asynchronous http POST?1340 (9/10/2009 5:15:45 AM) comp.lang.ruby Hey everyone, I'm new to Ruby and to the mailing list, so go easy. Basically, I have to POST to a certain url, then I wait for a response. The catch is that I have to do this to two urls at once. Both of them m... ocelot117(4)
Time.new.utc Question132 (9/19/2009 3:04:09 AM) comp.lang.ruby Can anyone explain the following? >> local = Time.new; utc = Time.new.utc => Sat Sep 19 02:42:40 UTC 2009 >> local => Fri Sep 18 20:42:40 -0600 2009 >> utc => Sat Sep 19 02:42:40 UTC 2009 >> local.strftime... dan3343(45)