66427-67744 subjects 66814-69327

TServer & windows
66584 [armin@xs .d ] I tried this simple example with the windows-ruby version
66622 [armin@xs .d ] As expected all works fine with the CYGWIN-based version.

project design issues
66586 [whitton@at a] very few complaints. It's proven to make my daily life here at work much
+ 66594 [lyle@us rs s] OK.
| 66597 [whitton@at a] Actually, I haven't. Sorry for running on an assumption. A search for on
| 66601 [lyle@us rs s] [See separate response from Robert Feldt regarding this topic]
| 66606 [whitton@at a] Ideally, it would mean that a native widget like a table could be internally
+ 66598 [feldt@ce ch ] Agreed. I especially don't like that multiple document interfaces looks no
  66599 [armin@xs .d ] I tried that in vain in the past.
  66600 [feldt@ce ch ] I built Ruby 1.8 with --with-gcc='-mno-cygwin' and then built fox and

Debian & Gentoo installation instructions
66609 [dcarrera@ma ] I'm writing installation instructions for Ruby.  I'd like to double
+ 66611 [seth@cq .c m] apt-get install libruby-dev
| 66615 [dcarrera@ma ] I suppose that rubybook and eruby are optional.  Right?
| 66620 [emiel@il fo ] Yes.
+ 66621 [scott@sc tt ] On Gentoo
+ 66658 [n1k0@ro er .] The first step should be 'emerge -p ruby' (check if ruby is installed first, which happens if the user installs a package that depends on ruby)
+ 66663 [aredridel@nb] Sounds right, but I'm not the one to ask.
+ 66683 [szegedy@no p] Does somebody working on a Ruby 1.8 ebuild, or does that
  66689 [citizen428@c] Portage being written in Python may be one of the reasons.

FAQ for comp.lang.ruby
66625 [hal9000@me c] RUBY NEWSGROUP FAQ -- Welcome to comp.lang.ruby!  (Revised 2003-1-7)

Problem with log4r
66629 [info@mj is d] I am writing an article about logging with Python and I also want to mention
+ 66636 [surrender_it] probably the problem happens with ruby 1.8, I had that working with
| + 66638 [david.naseby] Search ruby-talk
| + 66672 [mjais@we .d ] the problem is there for 1.6.8, too
+ 66656 [slumos@ya oo] I posted a patch: <http://sourceforge.net/tracker/?group_id=43396&atid=436183>
  66752 [gsinclair@so] This is an important package.  Does anyone have the inclination to

Threads and DRb
66633 [hal9000@hy e] I changed the title here because this is not
+ 66637 [B.Candler@po] Hmm. DRb uses obj.__send__ to invoke a method. (I don't know what the
| + 66642 [surrender_it] (I could be wrong)
| + 66644 [hal9000@hy e] I'd like Matz's comments on when this redefinition
|   + 66671 [kentda@st d.] If it is always done like above, couldn't you do the
|   | 66674 [bob.news@gm ] "Kent Dahl" <kentda@stud.ntnu.no> schrieb im Newsbeitrag
|   | 66705 [hal9000@hy e] Good ideas, Kent and Robert.
|   + 66737 [B.Candler@po] or shorter:    @__tsmutex ||= Mutex.new
|     + 66744 [hal9000@hy e] DRb
|     | 66799 [B.Candler@po] Sure. @pool is created as an array of <n> object instances. Whenever an
|     + 66767 [bob.news@gm ] "Brian Candler" <B.Candler@pobox.com> schrieb im Newsbeitrag
|     | 66820 [B.Candler@po] Sure, I didn't see much difference in checking sanity before or after the
|     | 66854 [bob.news@gm ] ...
|     + 66802 [bob.news@gm ] apparently the first post did not get through.  If it did, please
+ 66677 [m_seki@mv .b] I always use MonitorMixin.
  66706 [hal9000@hy e] Very good... having to remember to do

How to examine method signature ? (via Ruby introspection ?)
66635 [peterjohanns] I'm not guessing how to examine a method (or property ?), given its
66639 [B.Candler@po] TkImage.instance_method("height").arity
66665 [nagai@ai ky ] The height of a TkPhotoImage object is determined at creating the object.

Killing an WIN32OLE IE Object
66641 [drbrain@se m] I've written a nifty little script that loads a list of URLs in IE, and
+ 66647 [drbrain@se m] On further investigation, IE only freezes when using WIN32OLE_EVENT.  So
+ 66688 [chrismo@cl b] I don't know if this is what you're looking for, in my ClIEController[1]
  66704 [drbrain@se m] I've looked at it, but found it too big for the simple stuff I'm doing

Portland Rubyists meet tonight
66643 [ptkwt@sh ll ] If you're in the Portland, Oregon Area please come.

[ANN] PSE as Ruby module and an RAA question
66650 [ jupp@gm .d ] Announcement
66651 [vjoel@PA H. ] "Science" would be too vague, but how about "Physical Science"? Or, as

[Q] How to destroy a TkToplevel window
66655 [dcarrera@ma ] I want to make a dialog using Tk (and I don't want to use TkDialog
+ 66662 [mgushee@ha e] Hmm, this is an interesting puzzle. The direct cause of the error
| 66664 [dcarrera@ma ] button_quit.bind("ButtonRelease-1")  { dialog.destroy }
| 66668 [mgushee@ha e] Well, I believe in the first case dialog.destroy gets evaluated at
+ 66666 [nagai@ai ky ] The reason of this problem is the rule of binding operation of Tk.

FXRuby - changing cursor position
66661 [colotechpro@] I'm editing an input form in FXRuby and want to position the cursor to
66676 [lyle@us rs s] Use the FXWindow#setFocus() method, i.e.

no echo
66673 [drejewic@ws ] How to get string from console without echo? I need it for password reading.
66691 [ jupp@gm .d ] EHLO
66751 [gsinclair@so] Thanks for the demonstration, Josef.  I often wondered myself how to

[ANN] kwarts - a template system for Ruby
66680 [kwa@ku at -l] I'm pleased to announce the release of a new template system for Ruby,
66778 [kwa@ku at -l] I have done a simple benchmark test using ab(apache bench) command.
66888 [egabriel@io ] I am posting my benchmark results now.  Kwarts is the fastest template

66681 [ramakrishnan] ppl.I am trying to debug a Ruby program.are there any debug tools.
+ 66682 [hgs@dm .a .u] ruby -r debug thingy.rb
+ 66711 [seth@cq .c m] ruby -r debug

Re: $0  false ??
66685 [sabbyxtabby@] Why would anyone want to climb Mt. Everest?  It's a challenge! :)

Blocks and variable parameter lists
66686 [B.Candler@po] { |a|   ...    }
66687 [decoux@mo lo] pigeon% ruby -e '1.times {|*a| p a}'

66690 [ahoward@fs .] it's similar to fastscgi but is supposedly simpler to implement.  i would
+ 66701 [mikkelfj-ant] with
| 66703 [danj@3s el c] ...
+ 66702 [danj@3s el c] I just took a look at scgi. It is easy to implement. However I question

$SAFE and creating New objects (File) again
66693 [rayz@gl ri -] So... I ask again ab it.
+ 66694 [rayz@gl ri -] $SAFE and creating New objects (File) again
| 66697 [decoux@mo lo] Well, if you want to speak about multipart form values in cgi, you have in
+ 66695 [decoux@mo lo] One of the variables `ImagesDir', `newImageFilename', `i_extension' is
  66759 [rayz@gl ri -] yoopiee!!!

pkg versioning
66696 [ahoward@fs .] rubyists-
+ 66699 [chrismo@cl b] This has been discussed here before, and, AFAIK, no consensus emerged. It's
| 66700 [djberge@qw s] Are you thinking along the lines of Brian Ingerson's "only" Perl module?
+ 66712 [ptkwt@sh ll ] There was some discussion of the need for this last night at the Portland

ruby-dev summary 19711 - 19772
66698 [ksaito@ur nu] This is a weekly summary of ruby-dev mailing list.
66709 [pbrannan@at ] What are "original initialization codes"?
66732 [nobu.nokada@] According to [ruby-dev:19717], he seems to be trying original

Ruby article
66710 [mikkelfj-ant] 2003-03-07 Linux Journal

Ruby extension to get mount information in Linux
66714 [n.thomp@ro d] Is there a library for getting information in drives that can be mounted and
66728 [n.thomp@ro d] I'm not getting any replies so I'll try explaining what I am asking again in
+ 66729 [lyle@us rs s] See what happens if you search the Ruby Application Archive
| 66823 [n.thomp@ro d] I found something that I think will tell me if a certain folder is a mounted
| 66824 [lyle@us rs s] If you search the RAA for the keyword "mount", one of the few matches is
+ 66761 [sroberts@un ] /etc/fstab are the drives that can be mounted

when a ruby script gets arguments passed to it.....
66715 [glbny@ya oo ] Dear All,
+ 66717 [gfb@to es ft] Global aray ARGV -- contains command line parameters.
+ 66719 [seth@cq .c m] There is a library distributed with ruby to parse arguments.  As an
  66724 [vjoel@PA H. ] If the args are non-positional and do not contain whitespace, you can

Ruby Weekly News
66716 [Dave@Pr gm t] Ruby Weekly News: 03/10/2003

scanning strings
66718 [mikkelfj-ant] I want to scan a string for breaks. I want to pick both the breaks and the
+ 66721 [seth@cq .c m] You can use split with a regular expression.  Or you can use a regular
| 66726 [mikkelfj-ant] results
| 66772 [kjana@dm la ] What did you test?
| + 66773 [decoux@mo lo] pigeon% ruby -e 'p " abc def ghi ".split(/(\s+)/, -1)'
| | + 66782 [mikkelfj-ant] Arrgh - now I see. I need to create a submatch: /(\+s)/, not /\s+/
| | + 66796 [kjana@dm la ] Yes, I searched and got the discussion on it from the ruby-list
| + 66780 [mikkelfj-ant] I used 1.7.3, but mostly referred to the information provided by ri.
+ 66725 [mikkelfj-ant] I imagined something like

66720 [thallgren@ya] I wanted to IRC but it seems there's no host named 'irc.openprojects.net' any
+ 66722 [seth@cq .c m] irc.freenode.net, channel #ruby-lang
| 66766 [thallgren@ya] Thank you!
+ 66723 [dcarrera@ma ] Now its 'irc.freenode.net'
| 66733 [dave@pr gp o] Which site is this on?
| 66734 [dcarrera@ma ] I was *sure* I had seen it in the ruby-lang.org website, but now I can't
+ 66727 [n.thomp@ro d] irc.openprojects.net is now irc.freenode.net

[ANN]  "Einfrung in Ruby" chapter 2 available
66730 [jbritt@ru y-] Chapter 2 of "Einf?hrung in Ruby,"  Robert Gogolok's German translation of Daniel Carrera's  "Learning Ruby," is available on

extend / instance_eval interactions
66731 [jd204c@na .s] Why does instance_eval interfere with extend?  Should it?  If I remove
66735 [pit@ca it in] James, I'm not sure but I think it has to do with chaining of modules

Spanish documentation
66736 [dcarrera@ma ] Does anyone know of any Spanish Ruby books or other documentation?
66743 [jostein.bern] You might find something here?
66755 [emeza@sa sa ] Well ..I am in this group , but  I think the project is dead . I have
66756 [dcarrera@ma ] I'm just getting startd, so it's all English right now.  I'm doing the
66765 [arbeizaf@on ] Great! I have found little documentation about Ruby in Spanish. Although
66788 [vmreyes@us i] Daniel,
+ 66797 [luisma@eu os] I'm writting a tutorial of 3 articles for Todo-Linux (a spanish Linux
| 66800 [emeza@sa sa ] selling this product. http://www.geocities.com/emezaj and
+ 66825 [dcarrera@ma ] I'd love some help if you have the time.  I know Spanish, so I could do it

a newbie question
66738 [trickster@wi] I am trying to create an array from another array using a regular
66740 [dcarrera@ma ] Use Array#grep
66748 [gfb@to es ft] That's what I've been missing in Ruby!!! Thank you very much, Daniel (and
66750 [vjoel@PA H. ] === is one of the unsung heroes of ruby. It's a protocol that unifies
66798 [trickster@wi] Thankx all for the answers. Think I'm gonna read on === since its

Tk GUI Builder (or: Mom, can I bother ActiveState?)
66749 [surrender_it] Recently I hear few voices speaking about ruby/Tk
+ 66779 [lyle@us rs s] Remember that ActiveState isn't a charity; you would probably need to
+ 66813 [bobx@li ux a] I asked a couple months ago. They were not interested at that time.
  66930 [roger.sperbe] "SpecTix provides a development environment to build applications with
  66946 [surrender_it] not tried yet, but looks wonderful, thanks!

How to add a destructive method to the String class...
66754 [thinker5555@] I just started learning Ruby this weekend, and I have to say that I've
+ 66757 [vjoel@PA H. ] It only gets better as you learn and use it :)
| 66834 [thinker5555@] Thank you for this!  This solves the problem that Gennady spoke of with the
+ 66758 [gfb@to es ft] Check out String#replace
| 66833 [thinker5555@] True.  I didn't think about that, although it [luckily] didn't matter for my
+ 66763 [matz@ru y- a] class String
  66836 [thinker5555@] Oops, now that I read over your reply, I realize that I wasn't very clear on

.rb to update RAA entry automatically?
66760 [chrismo@cl b] Didn't find anything in a brief search -- but I've got fuzzy head tonight.
66790 [lyle@us rs s] This would be useful for me too. The SOAP interfaces to RAA (included

Working on a CGI...
66764 [hal9000@hy e] OK, here goes.

Gentoo Administration
66770 [bruce@co ed ] This isn't really worth an [ANN], so I'm not making it one.
+ 66807 [ptkwt@sh ll ] This would be very useful.
+ 67038 [citizen428@c] Haven't looked at this script yet, but being an avid and active Gentoo
  67039 [bruce@co ed ] Michael,
  67159 [Maz@na ak on] I would also like a Gentoo-ruby advocacy group. I don't see much support
  67192 [google@to pa] I'm a big fan of both Gentoo and Ruby, but...
  + 67248 [citizen428@c] I never meant to replace the current Portage by a Ruby one.
  + 67255 [Maz@na ak on] Agreed completly. However, we could help on making most use this schema.
    67363 [child@t9 ds ] I think this is very good idea :)

Coding challenge: Recurring stream
66774 [martindemell] Given a stream of numbers that, at some point, recurs with period k,
+ 66783 [lennon@da -r] It's nasty (as in geometric-scaling as string size increases) *and*
| 66784 [lennon@da -r] Okay, I accidentally left a debugging output line in the original post.
| 66791 [lennon@da -r] Hmm...yeah, it's *very* late. The original version can show false
+ 66785 [bob.news@gm ] is it "numbers" or "digits"?
| 66915 [martindemell] Oops, yes, I'd meant to say 'digits'.
+ 66786 [tpeters@in a] Sounds like some statistics is applicable. Here's my take that returns the
+ 66801 [bob.news@gm ] not genial but working...
+ 66866 [sabbyxtabby@] Sounds like repeating decimals.  If by 'stream' you mean an infinite

Marshal.dump() taking a long time
66775 [pmak@aa ni e] I have a program that parses a text file into a list of objects, then
+ 66776 [nahi@ke na t] Try
+ 66777 [pmak@aa ni e] print Marshal.dump(dict)
  66794 [matt@li ke .] What version of ruby are you using?  String concatenation is much

memory leaks with instance variables
66787 [ ujb1@gm .d ] I've got a problem with the way ruby handles symbols (e.g. names of instance
+ 66789 [decoux@mo lo] Well, this is not crazy to use instance_eval : your problem is not with
| 66795 [bob.news@gm ] "ts" <decoux@moulon.inra.fr> schrieb im Newsbeitrag
+ 66792 [nobu.nokada@] Symbols can be used again, it's not "leak".

Problem with Mysql in win ruby 1.6.8
66803 [greg@br nd .] I've installed the PP 1.6.8 version of Ruby for windows.  It comes with
+ 66804 [J.Hawkeswort] Greg,
| 66829 [greg@br nd .] require 'dbi'
| 66832 [sergei@do ma] Looks like you didn't install mysql-ruby. It's ruby interface for MySQL
| 66844 [paul@sn ke n] I don't think this is it.  It's failing even to find the DBI MySQL driver,
| 66846 [greg@br nd .] Ok.  I looked in the directory structure.  Under 1.6 there is a DBD and
| + 66857 [uu9r@st d. n] That should be easy to fix.
| | 66875 [greg@br nd .] That worked!  Thanks!
| + 66868 [paul@sn ke n] Ah.  Then you have mysql-ruby installed, but you don't have DBI's MySQL
+ 66811 [child@t9 ds ] I you sure you have both dbi *and* mysql-ruby installed? I had the same
  66818 [greg@br nd .] As far as I know.  I used version 1.6.8 from rubyinstaller.sf.net.  It's

Ruby newbie uninstall question?
66805 [colin@un bu ] I am a fresh Ruby convert (from a C++, Java & Python etc. background), armed
+ 66806 [ jimm@io co ] If you want to get rid of everything, remove /usr/local/lib/ruby,
| 66810 [colin@un bu ] Thanks for your rapid response Jim!
| 66882 [surrender_it] I agree that we should have a "make uninstall".
+ 66808 [nobu.nokada@] 1.6 and 1.8 can coexist except for $(prefix)/bin/{ruby,irb}
+ 66892 [egabriel@io ] If you tend to build your own files a lot, and your OS doesn't take care
| 66897 [eblanton@cs ] Most applications that use automake actually have an uninstall ... as
+ 66912 [colin@un bu ] Dear Jim, Gabriele, Nobu, Ethan, Sam & Ryan,
  66945 [surrender_it] The Ruby community is the best community you will find anywhere on the
  66961 [hal9000@hy e] "Pickaxe" is

Prevent method override?
66809 [jd204c@na .s] Is there a way to prevent a subclass from overriding a method that was
+ 66812 [matz@ru y- a] def statement calls "method_added" _after_ the method definition, so
| + 66847 [bulatz@in eg] this can be done by aliasing all existing methods and "restoring" them from aliases
| + 66876 [jd204c@na .s] Thanks so much.  The latter problem is not an issue for me.  Also, in
|   66877 [decoux@mo lo] Try this
+ 66867 [pbrannan@at ] ...