22442-23814

22221-23437 subjects 22647-23714

Instance method overloading - a bug?
22442 [esoeso@ya oo] I have a problem with the overloading of the method to_s for object
22455 [Stefan.Schol] That's really strange. The class references in the book
22456 [decoux@mo lo] This is documented in "Programming Ruby", this is the phrase (p. 337)
22457 [esoeso@ya oo] My question still remains - why? Although I agree that this may be
+ 22458 [decoux@mo lo] I don't like this principle :-)
| 22548 [esoeso@ya oo] I would expect the same result as for
| 22565 [pbrannan@at ] I think I would agree here.  If a is an array, then `puts a.to_s' seems to
+ 22495 [matz@ru y- a] (a) because I thought it was useful (note: I don't claim I've been right).
| 22547 [esoeso@ya oo] hashes
| 23814 [matz@ru y- a] OK, I understand.  You will see the change soon in the CVS.
+ 22507 [jim@fr ez .o] The POLS applies to Matz. :)

REXML
22451 [tobiasreif@p] the following works with NQXML.
+ 22459 [tobiasreif@p] some lines of relevant code snippets would suffice to get me started ;)
| 22460 [decoux@mo lo] Look in the distribution of rexml, you have
| 22461 [tobiasreif@p] bench.rb [...] nqxml_bench.rb [...] flatbench.rb [...] nqxml_flatbench.rb
| 22463 [decoux@mo lo] The scripts do the same thing, but one written with REXML and the other
+ 22476 [ser@ge ma e-] I hope you've by now found the (new) Tutorial and links to the API

[WAYY-OT] Re: OSSL opinion
22454 [billk@ct .c ] That reads a bit like Hunter Thompson, though at his best I
22510 [schneiker@ju] Please keep in mind that a few fairly young Ruby newbies (and likely a few
+ 22511 [tobiasreif@p] I second all that.
+ 22525 [billk@ct .c ] Sorry 'bout that - the minute I posted the thing I thought it should

ANNOUNCE: RIGS 0.2.1 - Ruby Interface to GNUstep
22464 [Laurent.Jull] Noteworthy changes in Version 0.2.1
22505 [fgp@ph o. rg] How do I compile this on OSX? I got the Makefiles to work by setting some

Learn Ruby/Tk or Ruby/GTK? && Problems with these.
22465 [steensland@h] I'm very new to Ruby, but I like the language.
22466 [decoux@mo lo] ruby don't search the file tk.h, it try to preprocess (with cpp) this file
22467 [steensland@h] file
+ 22468 [nat.pryce@b1] these.
+ 22469 [decoux@mo lo] Try to add
  22472 [steensland@h] Ok, I'm a bit ashamed to tell you what my problem was.
  22501 [nconway@kl m] My personal preference is for Ruby-GTK, but I'm biased ;-)

On-line seminars for September 11th Fund
22471 [kpughgoog@pu] A group of nationally recognized consultants is offering on-line

Gtk - convert keyval to descriptive string?
22478 [phlip_cpp@ya] signal_connect("key_press_event") { |w, e|
+ 22479 [matju@sy pa ] require "X11/Keysyms"
+ 22482 [decoux@mo lo] Well, I know nothing to Gtk, but the events are defined as constant in the
+ 22483 [angus@qu va ] Ruby/GTK lacks a wrapper to the function gdk_keyval_name() :(
  22500 [nconway@kl m] Not anymore ;-) -- I just checked support for this into CVS. If you get
  22586 [phlip_cpp@ya] It works great! My line count just went down, and the feature count

REXML 0.9.4a
22480 [ ser@ef .o g] REXML 0.9.4a is out.

Socket and inetd
22481 [mike@le to .] I'm working on a ruby daemon running through inetd.
+ 22493 [matju@sy pa ] class Socket
+ 22524 [ptkwt@sh ll ] When you get this all working, could you post the code and the line in the
  22544 [mike@le to .] the

Possible to use mysql-ruby under cygwin/win98?
22484 [DEL_THIS@po ] I have been trying to build mysql-ruby-2.3.2a under cygwin on win98SE. When I

Gtk - detect Alt modifier?
22485 [phlip_cpp@ya] Ta!
22486 [angus@qu va ] str=''
22523 [phlip_cpp@ya] Thanks to Carlos for helping me with sample code and Neil for helping

Exporting operators from C++
22487 [jglueck@vo .] I am exporting a class from C++ to ruby, this works fine ( i got much
+ 22488 [elanthis@aw ] OK, I could be horribly mistaken here, but Ruby only uses the basic
+ 22489 [decoux@mo lo] The op defined by ruby are (I hope that I've not forgotten one)

Getting at the raw mtime value :-(
22490 [egreen@di c-] I am writing a program that needs to store the raw Unix 'mtime' value (as
22491 [crouton@we t] No. File.mtime(file) (or File.stat(file).mtime) returns a Time instance,
22492 [eric@ba tu .] Ah. I see. When I did #{mtime} in a string to build an SQL query it returned

extracting from delimited text files
22494 [alwagner@tc ] What is the simplist way to extract fields from standard quoted, comma
+ 22496 [robert_linde] Check out http://ruby.yi.org/raa/en/all.html
| 22497 [alwagner@tc ] Thank you, Robert.  I was unaware of both the csv module and the Ruby
| + 22498 [ ser@ef .o g] The CVS module is probably the easiest, but since I love regexps so much,
| | 22506 [alwagner@tc ] Thanks, Sean.
| | 22527 [ ser@ef .o g] Actually, I lied.  It isn't recursing; it is repeating the pattern match.
| | + 22528 [elanthis@aw ] the scan method will automatically handle the quotation marks?  Becasue
| | | 22533 [ ser@ef .o g] Doh!  No, you're right.  I had it right the first time.  I should have
| | | + 22535 [elanthis@aw ] I still think there may be problems... the quotes might have to be
| | | | 22537 [billk@ct .c ] Here's one that should handle everything EXCEPT that pesky escaped
| | | | 22538 [elanthis@aw ] Ya, that was the tokenization I was looken for.
| | | | 22541 [billk@ct .c ] Well, indeed, I think I may be weird the same way.  =)  But so far
| | | | + 22543 [elanthis@aw ] I just, in this case, think in terms of the shell, and how it handles
| | | | | 22641 [hal9000@hy e] str.scan(/(?:\A|,)\s*"((?:\\"|[^"])*)"|(?:\A|,)([^",]*|[^",][^,]*)(?=,|\z)/)
| | | | | 22642 [mchahn@fa el] Would it be possible to use indented lines instead of nested parens to show
| | | | + 22550 [tobiasreif@p] Try XHTML ;)
| | | |   22552 [billk@ct .c ] Good idea.  :-)  We stuck with pure HTML (but a subset of it) for,
| | | + 22536 [billk@ct .c ] This would appear to fail the unit tests.  =-)
| | + 22581 [lecouey.bypa] __Mastering Regular Expressions__, by Jeffrey E.F. Friedl. 1997,
| + 22534 [billk@ct .c ] You can keep the trailing empty fields by passing a 'negative limit'
|   22539 [alwagner@tc ] Cool!  That really works.  Thanks, Bill.
|   22540 [billk@ct .c ] You're most welcome.  Yeah those zero-width positive/negative
+ 22542 [phasis@ha an] You could find CSV Library at Ruby Application Archive.

REXML 1.0 alpha
22499 [ ser@ef .o g] REXML 1.0a is now available.  I've promoted REXML to 1.0 because Namespaces
22504 [ ser@ef .o g] release.  API2XML is misbehaving; I'd fix it tonight, but namespaces took a

Open-ended ranges
22502 [ ser@ef .o g] Before I post an RCR on this, I'd like to solicit information from the more
22503 [feldt@ce ch ] Ruby doesn't have infinite or unbounded data (by default) structs so what
22529 [ ser@ef .o g] Hmmm.  Well, Ranges are lazily evaluated; they are not converted internally
22530 [feldt@ce ch ] Ok, I agree that its possible (most things are! :-)) but then someone will

ANN: Generator -- a class supporting lazy evaluation (Re: Open-ended  ranges)
22508 [c.hintze@gm ] Robert,
22512 [nat.pryce@b1] How does this differ from Knu's Generator class?  And if it does differ, I
22518 [c.hintze@gm ] Oops,
22526 [nat.pryce@b1] It's available in the Ruby CVS "rough/lib" tree.
22546 [c.hintze@gm ] Sorry to bother you again, but: with Ruby CVS you mean the Ruby
+ 22549 [feldt@ce ch ] Try http://www.ruby-lang.org/~knu/cgi-bin/cvsweb.cgi/rough/lib/
+ 22585 [duchene@ma n] See http://www.ruby-lang.org/~knu/cgi-bin/cvsweb.cgi/rough/lib/generator.rb

Ruby conference postscripting
22509 [schneiker@ju] Because of flight cancellations and changes, I missed some interesting talks
+ 22531 [feldt@ce ch ] and thanks for the report from RubyConf. Lets hope more people will
| + 22545 [schneiker@ju] I found lots of discussions (see some snippets below), but few hard facts. I
| | 22562 [chadfowler@y] I'm *certainly* no expert, but David Simmons
| + 22563 [chadfowler@y] I'm writing a fairly detailed "report", which is
+ 22731 [maki@in c. o] Oh, I'm not from NY, but *to* NY on this trip ;-) (and returned

cgi parameters not tainted?
22513 [stesch@no sp] I'm just testing eruby (0.9.6, Ruby 1.6.4) with mod_ruby (0.9.3).
+ 22514 [decoux@mo lo] When MOD_RUBY is defined, cgi.rb don't use ENV['QUERY_STRING'] but call
| 22517 [stesch@no sp] Oops, http://www.modruby.net/doc/faq.en.html#label:5 and
+ 22515 [stesch@no sp] OK, to have a secure script I have to say
+ 22516 [stesch@no sp] OK, to have a secure script I have to say

Will Ruby Conference talks be available online?
22519 [ptkwt@sh ll ] For those of us who couldn't make it to the Ruby Conference, will the
+ 22521 [chadfowler@y] Yes.  They'll be available.  It might be another week,
+ 22522 [rich@in oe h] Yes...I got (most) of the talks and Q&A (including Matz's keynote).
+ 22679 [onge@mc .a l] in the "Talks" section.

Re: Learn Ruby/Tk or Ruby/GTK?
22520 [kevinbsmith@] Between those two, I think you can decide based on whether
+ 22587 [csawtell@pa ] [ ... ]
| + 22596 [schneiker@ju] There was a good talk at the 2001 Ruby Conference about FOX. FOX reportedly
| + 22613 [stesch@no sp] Yet another toolkit.
|   22625 [kevinbsmith@] True, unless you're talking about Windows. Of those three,
|   22632 [mchahn@fa el] What do you think of FLTK?
+ 22602 [matju@sy pa ] care to give any explanation of what makes the Tk api "perl-like" and what
| + 22611 [alwagner@ua ] I also would like to see a reasonable explanation of this.
| + 22627 [kevinbsmith@] I'll try. First, the "perl" reference comes from the fact
|   22639 [steensland@h] I would like to thank you all for your great answers.
|   + 22640 [schneiker@ju] And think how much the people that follow you with similar questions 1 month
|   + 22650 [rtarpine@ho ] (tarball: http://developer.gnome.org/doc/API/gtk-docs.tar.gz)
+ 22651 [web2ed@ya oo] Can someone compare and constrast QT v. FOX, either with Ruby bindings

Ruby Segfault
22532 [ ser@ef .o g] I'm having a problem with the 1.6.4 Ruby interpreter, and I'm wondering if
22564 [decoux@mo lo] Well, not really sure but the problem seems to be with @prev (instance
22568 [ ser@ef .o g] I'm sorry, but how did you determine this?  I know of profile, but is there
22569 [decoux@mo lo] pigeon% gdb ruby
22574 [ser@ge ma e-] Ah, my old nemesis, GDB.

Forcing full GC?
22551 [xm@bo ot v- ] Is there a way to force GC to reclaim _all_ unused objects (disregarding
22556 [matju@sy pa ] If there is any moment at which the process size gets at 20 megs, it is

CFV, french speaking newsgroup about ruby.
22553 [Erwan.David@] To all french speaking ruby users.
+ 22600 [schneiker@ju] Nothing like more good news about Ruby's spreading international popularity
+ 23010 [matju@sy pa ] Juste un rappel -- il existe une mailing-list fran?aise (s?par?e du

String#succ w/non-alphanumeric strings
22557 [alan_moore@g] I've run into some odd behavior when I call the succ
22559 [pit@ca it in] This seems to be a bug. The following patch should fix it. I haven't
+ 22560 [pit@ca it in] sprintf("%c", 255).succ    >>  "\001\000"
| 22588 [alan_moore@g] So, '\377' wraps to '\000' and creates a carry of '\001', just as
+ 22592 [matz@ru y- a] Thank you for the patch.  It seems working.


22567 [brian_oconne] ...

REXML 1.0a2
22575 [ser@ge ma e-] REXML 1.0a2 is available for download.  This release fixes DOCTYPE

Fixnum Arithmetic operations NameError
22576 [robert_linde] Fixnum = Fixnum<space>+<no space>Fixnum causes a
+ 22577 [decoux@mo lo] pigeon% ruby -we 'xx=0; xx = xx +1'
+ 22578 [feldt@ce ch ] Ruby assumes its a method call to method :xx with argument 1. This is in

Array.filter
22580 [miles@pu l. ] Where is the nondestructive Array.filter?  I know that the old Array.filter has
+ 22582 [jjthrash@po ] Miles,
| 22584 [miles@pu l. ] Excellent.  Thanks for your help.  This isn't in the docs, so I missed it.
| 22590 [dblack@ca dl] Hmmm.... it should be in the docs.  It's Enumerable#select, a synonym
+ 22609 [kjana@dm la ] The answer was already posted so I just point a minor issue....

Embedding Ruby
22591 [emile@ir s- ] we're thinking about embedding ruby in our applocation server, and I
22593 [matz@ru y- a] It's not thread-safe.  Some tried the way that everything related in
22595 [emile@ir s- ] OK, so that'd be kind of a 'ruby server' thread. How about separate
22599 [matju@sy pa ] Ruby has its own little internal thread system that works by making the
+ 22601 [emile@ir s- ] By explicitly yielding control?
+ 22603 [a.bokovoy@sa] So, I could run a standalone process with embedded Ruby and have native
  22605 [emile@ir s- ] The downside of this approach is that this (single-threaded) server
  22606 [a.bokovoy@sa] I know, I know... But how much of Ruby internals are ready

e-mail address needed for Ruby Conf attendees
22594 [carlom@sp in] I'm teribly sorry to bother you but I was wondering if you

Why is String#oct so special?
22597 [alan_moore@g] Does anyone else find the behavior of String's "oct",
22598 [decoux@mo lo] pigeon% perl -le 'print oct("13"),"-",hex("13"),"-",int("13")'
22604 [alan_moore@g] Also read, "ruby isn't quite as dumb as perl" ;-)

unsubscribe
22607 [jberard@di g] unsubscribe
+ 22612 [stesch@no sp] Funny thing to unsubscribe a newsgroup.
| + 22614 [   jr@eo .d ] It's both a news-group and a maillist.
| | 22619 [tapasvi@ii t] ...
| + 22621 [tapasvi@ii t] ...
+ 22620 [tapasvi@ii t] ...

Jukebox code from PR
22608 [harryo@zi wo] Is a complete version of the jukebox code from Programming Ruby
22623 [Dave@Pr gm t] The code from the book is available at
+ 22624 [rich@in oe h] I don't know, if Lucent can use a 6k line Ruby program to generate 150k C++ program to run a mission critical 3G phone switch, using Ruby to run a Jukebox would seem like a no-brainer ;)
| + 22629 [tobiasreif@p] Do you have a URL featuring more info on that?
| + 22630 [ptkwt@sh ll ] Can you give more details on Lucent's use of Ruby?
|   22631 [rich@in oe h] There is a section (toward the bottom) from the Lucent guy.
+ 22657 [harryo@zi wo] Thanks!

Re: Is there something like a functor in Ruby
22610 [feldt@ce ch ] Seems to me you need a way to create blocks of code as objects. If so Proc

Help (going stupid) ...`pwd` behaviour in ruby?
22615 [stephen.hill] I seem to be going a bit stupid this Tuesday afternoon....can anyone
+ 22616 [decoux@mo lo] Try this (at the prompt)
+ 22622 [matz@ru y- a] Try "bash -c pwd" to see the result.  I suspect internally invoked
+ 22626 [pbrannan@at ] I'm not sure why you are seeing the behavior you are seeing.  I have
  22628 [decoux@mo lo] See dln_find_exe(), ruby find /bin/pwd and execute it.

"Generator" missing from RAA?
22617 [harryo@zi wo] I read something about Generator sometime recently (I think it may have
22618 [decoux@mo lo] See
22643 [harryo@zi wo] Thanks, Guy, but that points to the class that was the reason the one I'm
22649 [harryo@zi wo] Please ignore my last request. Clemens has sent me his code.

Problems compiling ruby on Solaris
22633 [lists@ji x. ] I'm trying to compile Ruby 1.6.5 with gcc 3.01 on a Solaris 8 box. The
22648 [djberg96@ho ] miniruby

Ruby and Unicode
22634 [emile@ir s- ] where can I find out more about Rubys Unicode support? It was
+ 22635 [mchahn@fa el] The most significant thing is that Ruby stores each char as an int.
| 22636 [emile@ir s- ] I'm not exactly current on Unicode, but I wasn't led to believe those
| 22638 [a.bokovoy@sa] One of natural Unicode encodings, UCS2, is a 16-bit uint.
+ 22637 [a.bokovoy@sa] There is module 'unicode' in standard distribution.
  22644 [emile@ir s- ] Few methods have been implemented yet.
  + 22646 [tobiasreif@p] AFAIK, a future version m17n of Ruby will implement Unicode
  + 22668 [a.bokovoy@sa] Actually, these methods + ruby-iconv would be enough to accomplish most

What about FLTK?
22645 [mchahn@fa el] I'm looking for opinions on FLTK, especially compared to GTK and Tcl/TK.  I
+ 22652 [kevinbsmith@] A little history...
| 22656 [mchahn@fa el] That's good to know.  It makes me more comfortable to proceed assuming FLTK.
| + 22662 [kevinbsmith@] managers in
| | 22682 [ser@ge ma e-] Yeah, between those and a table-layout mechanism, you're good to go.
| | + 22692 [kero@d4 50 u] Crossbreed native UI and do the fancy stuff in Ruby.
| | | 22697 [matju@sy pa ] Well, it is true that X is over _sockets_.
| | | 22786 [kero@d4 50 u] native == speed, but networking (in whatever way) is an extra layer !=
| | | 22805 [matju@sy pa ] The question is whether the display server is to be put in the Kernel or
| | + 22698 [matju@sy pa ] I think Swing is doing some harm by giving the impression that a GUI
| | + 22700 [kevinbsmith@] and
| |   + 22702 [joe@vp p. et] Lyle indicated that FOX will also support/implement "themes" in the
| |   + 22761 [ser@ge ma e-] Yes.  How is Swing ever going to support native look on the *nix variants?
| + 22681 [matju@sy pa ] There is X11, which is portable enough that X11 displays for Win32, MacOS
| | 22686 [mchahn@fa el] Does that include the X11 libraries?  My first concern is the payload size
| | 22693 [matju@sy pa ] It _is_ the X11 library. It does not depend on libX11.so ("Xlib") because
| + 22683 [ser@ge ma e-] What about GGI (http://www.ggi-project.org/)?  I know almost nothing about
|   22687 [mchahn@fa el] GGI looks like a great platform for building a Ruby-only gui.  I'm currently
|   22764 [ser@ge ma e-] I hit that maximum five years ago.  I think I'm coming up on my Java
+ 22653 [kevinbsmith@] A little history...
+ 22654 [kevinbsmith@] A little history...
+ 22680 [ser@ge ma e-] There's a page somewhere that was recently linked to from this newsgroup
  + 22699 [kevinbsmith@] I'm not sure what you mean by this. You can certainly
  | 22765 [ser@ge ma e-] and
  + 22701 [ttate@kt ja ] Could you show me details or an example of "extending the set"?
threads.html
top