198446-303004

198158-202191 subjects 198654-227029

man pages on windows
198446 [bpettichord@] I'm running Ruby on Windows. How can i see the man pages for irb, etc?
+ 198447 [halostatue@g] You can't.
+ 198448 [jmg3000@gm i] Although ruby itself has a man page, I don't believe the other 4

Surprise? ARGV[0] undefined after processing ARGF
198449 [Eric.Armstro] I found this behavior surprising. Is it
198450 [matz@ru y- a] Intentional.  Processed file names are removed from ARGV to tell you
198739 [Eric.Armstro] Ok.

OT-cooling w ruby (RE: [ANN] Mongrel 0.3.13.1 -- Quick Small Fixes)
198462 [botp@de mo t] To me, you both are very cool ruby hackers. so before you start calling names to each other, might as well settle your diffs offline, preferably w cool beer and pizza..
198464 [james.britt@] Thanks for the compliment, Pe?a.

(none)
198463 [poga.bahamut] ...

Frameless  Ruby docs (was Re: Whats new/fixed in Ruby 1.9 and Ruby 2.0)
198465 [groups@gr nd] What constructive suggestions can someone provide to improve this for

Frameless  Ruby docs (was Re: Whats new/fixed in Ruby 1.9 and Ruby 2.0)
198466 [groups@gr nd] You don't even need to 'tweak RDoc,' as it happens. Having gotten

Tktable
198468 [namepipe@gm ] ...
198489 [nagai@ai ky ] Probably, your Ruby/Tk doesn't use the libraries of ActiveTcl package

Question about Vector class
198471 [rubylearner@] ...
198474 [dave@bu t. d] Once a module has been included, you don't need to re-include it when

Re: The difference between s=s+"a" ans s<< "a"
198476 [simon.kroege] Well, if you realy know what you do and if 'that might cause problems'
198477 [simon.kroege] In case this wasn't obvious: this was an example.
198478 [simon.kroege] I think that should be solved in the interpreter not by the

Mechaniza/REXML extract_from_table
198479 [hsanson@mo g] Has anyone been successfull using the extract_from_table method of REXML::Node
198605 [aaron_patter] cols = extract_from_table(page.root, ["col1", "col2"])

Gems problem
198481 [foamdino@gm ] I cannot get gem install x to work at all.
198484 [farrel.lifso] That seems like a network problem, possibly from RubyForge. Can you

Ruby Talk Rss feed
198483 [jatinder.sau] ...
198485 [asbradbury@t] I know of no 'official' RSS feed, but the Google Groups mirror[1] provides

Ruby & Rules Engines
198490 [c.mcdonnell@] with Ruby? Something like Drools & Java (forward chaining).
+ 198501 [eric.wenbl@g] We had used JESS as our rule engine. I don't know what's the
+ 198534 [rubytalk@ea ] ...

Newbie Questions
198492 [pteale@gm il] I am new to Ruby and have a newbie Ruby question that i couldn't find
+ 198496 [curi@cu i. s] irb(main):016:0> x = gets
| 198500 [robert.dober] ...
| 198502 [pteale@gm il] Thanks for all your replies
+ 198497 [hsanson@mo g] gets will return a string with the carriage return included.... that is
+ 198498 [hankgong@gm ] ...

Sorta odd error handling
198499 [lutzky@gm il] When an exception gets raised 'all the way out', you get a nice little
+ 198508 [shortcutter@] Assuming "how it happended" means the stack trace.  You can access it
+ 198529 [matz@ru y- a] Can you show us the actual error?  The plain rescue clause captures
+ 198531 [ara.t.howard] errmsg =
  198594 [lutzky@gm il] Much thanks! I ended up using a variation on the last guest's

Accessing the raw/un-html-ized CGI parameters
198503 [alexandru@gl] Does anybody know how can I access the raw CGI parameters?
198557 [toalett@gm i] What is this? Webrick, Mongrel, Rails, etc. Difficult to help if wehave no idea what libraries you are using.
198586 [alexandru@gl] Thanks for trying :) and sorry for being so vague.
198656 [anne@wj .h r] I would be interested to know if someone has a more core-ruby solution?

Ruby goodies?
198505 [roger.johans] Im a C# programmer and Im totally new to Ruby.
+ 198506 [dblack@wo bl] Definitely the former.  But I can't enumerate things about Ruby that
| + 198507 [shortcutter@] <snip>excellent list all of which I completely agree</snip>
| + 198517 [james.britt@] I see Ruby code as being succinct rather than terse.  Perhaps a minor
|   198525 [dblack@wo bl] I think you're right.  Terse does evoke abruptness and anger and
+ 198513 [zoso@fo on e] I would say blocks. But not exactly that they're _available_ (they have
+ 198514 [pollak@gm il] ...
+ 198518 [bmoelk@br in] One obvious thing that hasn't been mentioned is broad cross platform
+ 198775 [nightphotos@] in which he shows a number of cases where Ruby is much simpler and
+ 198829 [minkoo.seo@g] ...
  198878 [rubytalk@ea ] ...

Ruby/Tk key bindings
198511 [taitbp@ya oo] I've been trying to make a key-binding to the Backspace key and I am
198597 [nagai@ai ky ] man n keysyms ;-)

AR cannot insert floats to mysql table (german conversion??)
198520 [robbie.wilhe] i have a problem. i cannot insert a float value in a mysql tablecolumn FLOAT

Simple post to IIS Server using net/http
198521 [eduardo@al a] Dear All
198524 [alex@bl ck e] Just a thought, but Windows can be a little bit funny when it comes to
198539 [james.britt@] Very good point.  I develop on WinXP, and need to watch for how the
198637 [eduardo@al a] I've just done a test with ethereal, to see what was actually been
+ 198638 [eduardo@al a] Sorry, the lines have been wrapped
+ 198804 [martin@sn wp] Actually, that's not what you're seeing.  The attached hex dumps DO
  198821 [eduardo@al a] Very good point, i should have noticed, so it's not a space after all...

Entry Point?
198522 [pteale@gm il] Does ruby have an entry point like Java & C have main?
+ 198530 [schapht@gm i] I usually have one script that kicks off a program based in an
+ 198535 [farrel.lifso] You could use an END block. It is only executed once the entire script
+ 198567 [collinsj@se ] Generally, you will see method and class definitions at the top of the

[SUMMARY] Short But Unique (#83)
198523 [james@gr yp ] This is a pretty real world problem many applications struggle with.  I dare say
198773 [martin@sn wp] Actually, that's not why that code is there, or what it's doing.  What
198831 [james@gr yp ] Thanks for setting me straight Daniel.

disk_free_space
198526 [lokean.darke] I need an equivalent of $subj php function in ruby... I have a directory
+ 198532 [dave@bu t. d] class << self
| 198533 [lokean.darke] Thank you... parsing df output is working fine... anyway,it will be nice
| 198536 [schapht@gm i] I googled around out of curiosity and it looks like there used to be
+ 198541 [james.britt@] There was a thread here on ruby-talk not long ago on this very topic.
  198612 [lokean.darke] I was googling and searching newsgroups archive before I asked, can you
  198623 [halostatue@g] Remember that the newsgroups comp.lang.ruby has been disconnected due
  198625 [dave@bu t. d] I dare say there are those whose control it is not beyond. God, for
  198769 [halostatue@g] Unfortunately, it isn't necessarily controllable, even for Matz or
  199003 [dave@bu t. d] I never said the word "easy," nor did I intend to imply anything more
  199007 [halostatue@g] Don't know. We'd have to ask them. But it may not be within James's

Re: Fml status report (ruby-talk ML)
198537 [encore@ds ex] ...

Ruby Faq -- was: Newbie Questions
198540 [jmg3000@gm i] ( I realize that the mailing list itself (err, I mean, the c.l.r
198545 [dblack@wo bl] Yikes.  A case of double-aliasing in httpd.conf.... It should be OK

Civility (re Re: ruby-lang.org redesign?)
198542 [james.britt@] The redesign thread strikes me as a bit off-topic, and perhaps too
+ 198547 [schapht@gm i] +1
+ 198548 [louis.j.scor] I couldn't agree more with this sentiment. One of ruby's greatest

RailsForge
198544 [transfire@gm] I notice so many new projects are RoR oriented these days. Anyone
+ 198546 [halostatue@g] Why? I don't particularly have a problem with RubyForge hosting a lot
| 198549 [masukomi@gm ] what he said.
+ 198550 [pat.eyler@gm] I already worry about the growing separation between the RoR and
  + 198552 [james.britt@] Indeed.
  + 198553 [transfire@gm] Growing separation? Huh. That's interesting. I worry about similar
    + 198558 [james@gr yp ] But both communities contribute nice libraries.  We don't want to
    + 198560 [pat.eyler@gm] I think we might not be as far apart as you think we are.  My concern is
    | 198565 [james.britt@] This is what may happen in Phoenix.  There's a Ruby group that has been
    + 198561 [james.britt@] Not an unreasonable concern.    But the sense I get in my part of the
      198591 [jeremy@bi sw] From my part of the world, I see a slurry. I trust it continues to

while in a tk mainloop
198554 [stuart@se ve] How can I run a while loop in a Tk.mainloop?
198556 [taitbp@ya oo] What exactly are you trying to do inside the while loop?
198562 [stuart@se ve] Sure,
198564 [taitbp@ya oo] Well the only thing I can think of is to incapsulate it inside a class
198573 [stuart@se ve] Thanks, however, this does not work :( it only does the same as before,
+ 198574 [stuart@se ve] It worked, the is below
+ 198575 [stuart@se ve] It worked, the code is below

A quick ruby hack to sync evolution and kolab2
198568 [mail@s- ol t] here is a small ruby hack that will (two-way) sync your evolution

Why is "nil" being included in an array?
198569 [pbailey@bn .] I'm trying to simply lower-case all of the files in a directory. It
+ 198571 [lukfugl@gm i] I think you're mistaking the source of your error here. Check this out
| 198655 [pbailey@bn .] I see. Thanks a lot, Jacob. There's danger in my scripting there. I'll
+ 198572 [M.B.Smillie@] An excellent illustration of why side-effects can be harmful.
  198600 [pergesu@gm i] I had no idea that Ruby evaluated it that way.  Thank you for this

Turning an Array into a Hash based on an attribute value
198576 [work@as le m] A guy I work with has some some work on an ActiveRecord class that
+ 198578 [robin@ni or ] [1, "2", :three].inject({}) { |h, e| h[e.class] = e; h }
+ 198580 [louis.j.scor] I think your implementation of this looks pretty reasonable, but the
+ 198581 [SimonKroeger] class Array
+ 198582 [toalett@gm i] $ irb
  198585 [toalett@gm i] least looks cooler ;)
  198589 [work@as le m] Simen... you don't come from a Perl background do you ;)
  198665 [shortcutter@] LOL - Could also be awk - because the code looks so awkward. :-))

QR Barcode Library
198579 [nola@mo tg g] I've searched and haven't found much (in english!) and since this is a
198628 [rubyzbibd@ub] The details are in Japanese, but I hope the examples can help you out.
198658 [nola@mo tg g] Thanks, is there a library to parse the iQR code?

Randomly select an element from an array
198588 [dsolis@ya oo] [1,2,3,4,5]
+ 198590 [fxn@ha hr f.] irb(main):001:0> a = %w(foo bar baz)
+ 198592 [jeremy@bi sw] You ask the entire ruby-talk mailing list: the answer is 4.
+ 198593 [hulachr@ho m] Array now has built-in random sorting so you could
  198631 [shortcutter@] While this certainly works it's extremely inefficient.
  198642 [pertl@gm .o ] a = [1,2,3,4,5]

ascii representation of unicode string?
198596 [bulliver@ba ] charset="us-ascii"
+ 198598 [sitharus@si ] That's not UTF-8, that's UTF-16 little endian without a BOM. If you
+ 198599 [hulachr@ho m] myAscii = s.unpack('U'*s.length).select{|x| x >46}.collect{|x|
| + 198601 [bulliver@ba ] charset="utf-8"
| | 198602 [sitharus@si ] Spaces are 32 if I recall my ASCII. UTF-16 with no non-ASCII
| | 198604 [bulliver@ba ] charset="utf-8"
| + 198617 [nobu@ru y- a] s.unpack("v*").pack("U*") #=> "WM/TrackNumber\000"
+ 198645 [pbattley@gm ] require 'iconv'
| 198659 [bulliver@ba ] charset="utf-8"
| 198756 [pbattley@gm ] Sorry, I translated that code from somewhere else, but forgot that
| 198848 [bulliver@ba ] charset="utf-8"
+ 198679 [listbox@ju i] What you have looks like UTF-16. you are best just pushing it through

Class#name=
198603 [joshua@re er] Is there any reason that Class#name= shouldn't exist?
198613 [matz@ru y- a] Modules and classes are named by the constant referencing it.  If you
198633 [robert.dober] ...
+ 198639 [matz@ru y- a] The module referenced from A and B are the same object (mod).  If same
| + 198643 [robert.dober] ...
| | + 198644 [matz@ru y- a] Ruby looks for the name through class hierarchy, when it's asked a
| | | 198648 [robert.dober] ...
| | + 198646 [dblack@wo bl] irb(main):001:0> x = Module.new
| + 198649 [transfire@gm] cut Bc < B
| + 198662 [chneukirchen] irb(main):001:0> A = Class.new
|   198664 [matz@ru y- a] Especially since constant redefinition is not common.
+ 198640 [dblack@wo bl] As in most such cases, it does, instead, something that makes more
+ 198651 [pertl@gm .o ] I guess it's because constants are _constant_ so they can not be re-assigned
  198652 [dblack@wo bl] $ ruby -e 'A=1; A=2; puts A'

Gtk Dialog window hangs around
198608 [farrel.lifso] I'm doing a project that makes quite a bit of use of Gtk::Dialogs.
198610 [farrel.lifso] Ignore this line it's been taken out but the blank window is still persisting...

How odd is Ruby code allowed to be?
198609 [roger.johans] Ok, strange question maybe.
+ 198611 [jgbailey@gm ] ...
+ 198614 [dblack@wo bl] It looks to me a bit like you're using a class where you should use an
| 198683 [lukfugl@gm i] Like others, I'm not sure how the implementation of the
+ 198635 [robert.dober] ...
+ 198692 [listbox@ju i] I think you might want emulated named arguments via a hash for this
+ 198825 [roger.johans] Ok, thanks for all the great feedback.

gets, etc (was RE: Newbie Questions)
198616 [botp@de mo t] # Makes sense now that i've seen what is happening behind the scenes.
198618 [nobu@ru y- a] Double Ctrl-D sends a text without a newline.

Multidimensional ".index" ?
198619 [Meino.Cramer] a=[1,2,3,4]
198620 [ara.t.howard] require 'narray'
198622 [Meino.Cramer] THANK YOU! :))

AOP style logging - is this possible in ruby?
198621 [rsanheim@gm ] In Java, with AOP magic and bytecode manipulation under the covers,
198626 [pollak@gm il] ...

Quick singleton question
198627 [ben@ia u. et] In a structure I'm building, I need to be able to add children (of the same
198629 [pollak@gm il] ...
198630 [ben@ia u. et] I was actually fishing for the best way to add the instance_variable and

Fork process with DRb client
198641 [han.holl@gm ] If I fork a (Linux) process with a DRb client, both parent and child
198685 [ara.t.howard] require 'drb'
198812 [han.holl@gm ] [ cut]
198818 [ara.t.howard] it shouldn't be, you can do, for example

Rubyforge upload
198650 [transfire@gm] RubyForge is currently suffering from a bug. Here's a link to the
198674 [tom@in oe he] Yup, I think it's a problem with the NIC driver.  I'm waiting until our
199183 [tom@in oe he] I think we've sorted this problem out; thanks to the various folks who
199185 [gregory.t.br] Yay!  I can commit again :)  [verified for ruport]
199204 [bulliver@ba ] charset="iso-8859-1"
199259 [tom@in oe he] You're welcome, thanks for everyone's patience!

EXIF Library
198653 [mstrickler@g] does anyone know of a working EXIF library for Ruby that runs on Windows
199312 [rwvtveer@gm ] Please try EXIFR, http://rubyforge.org/projects/exifr
+ 199441 [mstrickler@g] thanks for the pointer. Unfortunately it doesn't work.
| 199618 [rwvtveer@gm ] Just released 0.9.3 with the ability to read GPSInfo.
+ 251312 [rubyforum@we] You may need: sudo gem install exifr
+ 251313 [rubyforum@we] Newbie here. What's the syntax to read say the date and time the picture
| + 251328 [jeremy@hi eg] Install exifr with : sudo gem install exifr
| | 251388 [rubyforum@we] enjoy,
| | + 251415 [jeremy@hi eg] require is how you pull in other ruby libraries into the current
| | | 251416 [rubyforum@we] Thanks Jeremy. I have the book and it's over my head. But Black's book
| | | 251418 [jeremy@hi eg] You may be interested in using ruby-osa (http://rubyosa.rubyforge.org/)
| | | 251421 [rubyforum@we] Ruby Cocoa looks like a bit much for me to tackle yet.
| | | 251423 [jeremy@hi eg] Sorry, running the BolderBoulder on Memorial Day.  And Telluride is not
| | | 251424 [rubyforum@we] Next time. How long is the run? Answered my own question. Looks like a
| | | 251432 [jeremy@hi eg] While looking around for things dealing with this thread, I happened
| | | 251500 [rubyforum@we] I have to use some OS X apps anyway, so I think I'll try using those via
| | + 251417 [TimHunter@nc] If you're still in the market for a book, check out my review of
| + 252204 [rwvtveer@gm ] The call is correct.  I think you forgot to require exifr (and rubygems);
| + 303000 [isfrog@gm il] I got the same error in "rb" file .
|   303004 [thopre@gm il] ...
+ 251315 [rubyforum@we] As a follow on to my Newbie question, here's what I got when I installed
threads.html
top