32131-34432 subjects 32594-33243

Re: [ANN] Devel::Logger -- Lightweight logging utility.
32370 [nahi@ke na t] [... great explanations...]

Ruby Developers Guide
32388 [feldt@ce ch ] The book "Ruby Deverlopers Guide" should be available in early
+ 32390 [mjais@we .d ] wow. this looks great. I have been waiting for this book.
| + 32456 [schneiker@ju] Likewise--and in addition to Robert Feldt, thanks also to Jason Wong, Lyle
| | 32468 [feldt@ce ch ] Yes, I didn't want to take credit; sorry for being unclear. Michael is
| | 32529 [schneiker@ju] february.
| + 33145 [Michael.Auer] They want 109 Euro for that book!
|   + 33146 [stephan.schm] I usually use www.preistester.de for finding
|   + 33162 [ cyo@gm .n t] Michael,
|     33170 [info@mj is d] if I remember correctly 109 was the price in DM not in Euro
|     33220 [mjais@we .d ] I sent them a mail and now the price on the website is  54,95 Euro
+ 32590 [ahoward@fs .] thought you might want to know the TOC link is completely unreadable
  32591 [vruz@ru y- s] The source code reads like it was saved with Microsoft Word
  + 32592 [tobiasreif@p] or perhaps
  | 32624 [feldt@ce ch ] Thanks for pointing this out. I figured it might be a problem since the
  + 32644 [james@ru yx ] There is an Office 2000 add-in available at
  + 33031 [stesch@no sp] And then you clean up the Dreamweaver HTML by hand in a text editor.

Problem with arrays of arrays (matrices) copying
32393 [jasa@da to .] I would like to report a problem while working
32395 [dblack@ca dl] The problem, I think, is that when you dup your matrix, you're getting

Sourcecode dump?
32401 [carrere@ar e] I was just wondering if it would be possible to dump the source of a
32411 [alwagner@ua ] What exactly are you trying to do?  There are a multitude of ways
32476 [carrere@ar e] 3C517BF7.EBD3C1D5@uark.edu...
+ 32480 [decoux@mo lo] pigeon% cat b.rb
+ 32484 [alwagner@tc ] I must still misunderstand.  Your example is static.  I use a text editor to
  32517 [carrere@ar e] to
  32522 [alwagner@tc ] dialog bothers you, just say so and I'll back away.  But I find that such
  32551 [ysantoso@je ] I think Oliver was thinking something like VB's debugging and
  32558 [alwagner@tc ] So you are hoping/expecting to output a text(.rb) file that looks just like
  32605 [ysantoso@je ] I don't think Oliver cared much about indentation, comments, etc. in
  32626 [carrere@ar e] You're right, I've thought of this system for tuning.
  32628 [feldt@ce ch ] If someone finished Ruth it might be helpful here. I haven't touched it in

32412 [ahumphr@DE E] A quickie -
32413 [decoux@mo lo] Look in the source of http.rb you have some example.

Subrange of String subclass => invalid object
32417 [bobalex@at b] ...
+ 32438 [chr_news@gm ] Meaning this violates YMPOLS (your and my POLS;-).  Actually a heavily
| 32457 [bobalex@at b] Thanks for the pointers. I read those, and saw no mention of the fact that
| 32462 [chr_news@gm ] Well it seems that our POLS are different as well - I would not expect
| 32494 [bobalex@at b] I don't think it is a bad thing if all of operations above to return
| 32540 [chr_news@gm ] Well borrowing from your reply to Matz post
| 32542 [tobiasreif@p] I do not understand. Are you against RCR 38? How can the following
| + 32543 [decoux@mo lo] What is your version of ruby ?
| | 32544 [tobiasreif@p] ruby 1.6.5 (2001-09-19) [i386-cygwin]
| | 32545 [decoux@mo lo] pigeon% ruby -v
| | 32546 [decoux@mo lo] Somme comments
| + 32554 [chr_news@gm ] There are two ways of resolving this inconsistency - I would prefer if
|   32563 [tobiasreif@p] Why?
|   32586 [Dave@Pr gm t] What should Foo.to_s return?
|   32587 [tobiasreif@p] I was confused anyways :)
|   32610 [matz@ru y- a] This means subclassing String is a bad thing.  Don't  ;-)
+ 32451 [nobu.nokada@] What did you expect?
| 32458 [bobalex@at b] (ArgumentError)
| 32526 [nobu.nokada@] Agree.
+ 32472 [matz@ru y- a] What behavior suprises you least?
  32490 [bobalex@at b] Hmm, I was aware of the style of returning subclass types from superclass
  32550 [matz@ru y- a] Don't feel sorry.  I agree it's sloppy.  Maybe I didn't think enough
  + 32561 [r2d2@ac .u u] I agree that it is bad to get broken objects, but I'm also not so
  | + 32566 [chr_news@gm ] Yeah,  but if you really want to be consistent that would mean
  | + 32580 [matju@sy pa ] the idea from Perl's tie() function, but IMHO mine is more elegant.
  + 32562 [Dave@Pr gm t] I think one of the underlying issues here is nothing to do with
    + 32571 [matz@ru y- a] The original surprise in [ruby-talk:32417] can not be solved
    | 32575 [chr_news@gm ] Well that looks awfully close to #become to me?  Maybe also throw in an
    | + 32597 [matz@ru y- a] I don't know.  But if I recall correctly, #become makes any object to
    | | 32730 [chr_news@gm ] I don't know if other #become implementations allow unrestricted type
    | | 32735 [matz@ru y- a] It's not just silly, it's fatal.
    | | 32739 [Dave@Pr gm t] I know absolutely nothing about m17n, so forgive me if this is
    | | + 32744 [matt@li ke .] Unicode deals with numbers, so the problem doesn't exist there.
    | | | 32762 [matz@ru y- a] Unicode itself is redundant, which means it has the "feature" to
    | | + 32761 [matz@ru y- a] Yes.  But there's other normalization requirement for other encoding
    | |   + 32771 [matju@sy pa ] It would seem to me that a Charset class would be more useful, and would
    | |   | 32772 [matz@ru y- a] I don't think I got your point.  A Charset class is userful than what?
    | |   + 32779 [tobiasreif@p] Unicode a list where characters are referenced through numeric values;
    | |     32780 [matz@ru y- a] Yes.  I meant Unicode allows different numeric values for one logical
    | + 32608 [matju@sy pa ] see [ruby-talk:19575] if you want it...
    |   32637 [decoux@mo lo] see [ruby-talk:19598] and [ruby-talk:19761] before using this patch ...
    |   32641 [matju@sy pa ] I don't know the details about Ruby's internals, you see, and so this
    |   32642 [decoux@mo lo] See [ruby-talk:19761]
    |   + 32712 [chr_news@gm ] Hm, my personal recommendation is to swap Object and Class, sit back,
    |   + 32769 [matju@sy pa ] There has to be some exceptions. First, all unboxed objects are obviously
    |     32773 [matz@ru y- a] It's both easy and hard question.  Easy answer is, as Hal Fulton
    + 32582 [matju@sy pa ] class SimpleString
      32584 [Dave@Pr gm t] No you don't. It would just be clearer.
      32607 [matju@sy pa ] The underlying code seems to be a lot simpler than the idea you have of
      32614 [Dave@Pr gm t] You have some interesting code. But the String literal "fred" is still
      32618 [matju@sy pa ] By my plan, instances of String would remain special, but would be ten

upcase/downcase first character of a word
32424 [tobiasreif@p] any simpler way than
+ 32425 [dempsejn@ge ] to upcase i'd use capitalize...not sure about downcasing JUST the first
| 32426 [tobiasreif@p] Well; I need just the first character up-/downcased. #capitalize
| 32428 [dempsejn@ge ] true true...well, you could shorten what you have by doing [0,1].downcase or
+ 32427 [eban@os ri .] class String

[ANN] FXRuby-0.99.189 Now Available
32432 [ljohnson@re ] All,
+ 32477 [knu@iD em ns] make
| 32611 [johnson2@hi ] Please read this excerpt from the FXRuby build instructions about how to get
+ 32478 [knu@iD em ns] make
  32496 [moumar@ne co] add -fpermissive in your Makefile

32436 [josb@cn ds .] Here's a Ruby implementation of the xxd command that ships with vim. While not

"friend" alternative in Ruby?
32445 [kturing@ya o] I have a class "Foo". It has a method "doSecretStuff" that I want to
+ 32446 [msassak@sp a] Could you elaborate on how you want your program to work?
| + 32447 [msassak@sp a] D'oh! I forgot the mention that in the second example there, Foo would
| + 32469 [kturing@ya o] Thanks for the response. I am doing something very similar
|   + 32488 [rich@in oe h] Kate,
|   + 32507 [ptkwt@sh ll ] This part should already work (not work) as you wish, correct?
|   | 32511 [ptkwt@sh ll ] Actually, in thinking about it a bit more that proposal to  Class
|   + 32531 [kturing@ya o] Stared at the ceiling for a while and came up with this
+ 32448 [aamine@mx ed] You can use Object#__send__ to call private methods.
  + 32508 [ptkwt@sh ll ] but the regular 'send' seems to also work for calling private methods,
  | 32510 [dsafari@xt a] Phil,
  + 32643 [paul@at es .] Should I be able to do this, though?  There are some valid uses of
    32658 [ptkwt@sh ll ] You can call private methods with send() or __send__(), the latter seems

How to write unit tests for distributed apps?
32453 [ptkwt@sh ll ] How does one go about writing unit tests for a distributed app where parts
+ 32454 [Dave@Pr gm t] Mock Objects (www.mockobjects.com) are one approach, letting you stub
+ 32459 [dsafari@xt a] Mock Objects are your friend here Phil. Nat Pryce has written RubyMock which

RDF feeds (Re: Ruby and Wikis (Re: Keeping track of multiple Ruby discussion sites.))
32455 [schneiker@ju] In case anyone else was wondering what this was RDF feeds stuff was,

RE: RDF feeds
32460 [curt@hi bs c] Most news syndication uses a specific flavor of RDF called RSS, and I assume

Ruby real world applications (rrwa) - collection?
32461 [WYS@he bl ng] There have been posts to this site asking "who does what with ruby".
+ 32464 [ptkwt@sh ll ] Clemens,
+ 32533 [mulperi@ik .] Could you send a URL to this project if it is public of course?

[ANN] rubyzip 0.3.1
32465 [thomass@de t] rubyzip 0.3.1 is out.
+ 32483 [tom.hurst@cl] ruby-tar should be available sometime next week, I just need to tidy up
| + 32489 [thomass@de t] You mean you need 0.5 because 0.4 nukes, right?
| | 32498 [tom.hurst@cl] Um, yeah :)
| | 32503 [tsondergaard] Is ruby-tar available somewhere? - I'd like to take a look at it.
| | + 32505 [akr@m1 n. rg] A uniform interface is good thing.  tar/zip interface uniformity is
| | + 32527 [tom.hurst@cl] Not yet.  I'll try to get a prerelease out in the next few days.
| + 32491 [list@ch om t] Great news!  Then an all-Ruby rpkg release should be available shortly
+ 32485 [djberg96@ho ] Any chance we could put these types of modules under a common namespace?
  + 32487 [nobu.nokada@] Almost agree, but these are compression libraries not archives.
  + 32492 [thomass@de t] Right now the namespace for rubyzip is just Zip, but if Archive::Zip
  + 32501 [tom.hurst@cl] This is what I'm doing.
    32514 [djberg96@ho ] Ok, agreed.  I just whipped those up off the top of my head quick.  I guess
    32516 [feldt@ce ch ] Why as a string? IMHO, its better with
    + 32520 [djberg96@ho ] I'm not even sure how this works.  Is a call to "entries" automatically
    + 32523 [tom.hurst@cl] What are you passing around?  What's Archive::Tar going to return, the
      32532 [feldt@ce ch ] Oops, I meant Archive::Tar.new(entries).to_s or something like that but
      32557 [tom.hurst@cl] Don't overestimate my knowledge or experience, my background is in PHP

TypeError verus NoMethodError
32474 [chr_news@gm ] I wanted to point out an inconistency (IMO as usual) that build
32556 [matz@ru y- a] It's TypeError because they are *special (immediate) values*.  I don't
32570 [matz@ru y- a] And also could you tell me how your fix different from the original.

Proc question (with Gtk Menus)
32475 [info@mj is d] require "gtk"
32479 [harald.gross] $menu = [ [ "/_File",

Listen on multiple ports w/ TCPServer
32493 [geek@sp ng .] Is it possible to listen on multiple port with TCPServer and then goto
32525 [harryo@zi wo] You could just have multiple threads, each of which uses a TCPServer

REXML: stream parsing question
32495 [info@mj is d] require "rexml/document"
+ 32497 [tgphelps@ig ] Shouldn't it be "method_missing", instead of "method_messing"?
| 32519 [info@mj is d] Of course. sometimes my eyes and my brain just do not work together :-)
| 32534 [mulperi@ik .] But those missing_methods are methods that are always messing
+ 32500 [alan@di ik t] You have a typo on "method_messing".  It should be method_missing.

Ruby, Interbase and reports
32499 [marnaudo@in ] i would like to create a report using Apache and modules
32549 [matz@ru y- a] You asked if it's possible.  I say it's possible.
32567 [marnaudo@in ] Ok! I install them.

Eruby with different uid
32502 [mal0rd@my ea] arbitrary CGI and eruby scripts.  It's using Apache on Linux.  By
32524 [alan@di ik t] I just checked it out on my system, you can run eruby pages as cgi scripts

listening on a fifo
32506 [list@ch om t] I'm using the following to have a program listen on a fifo and take
32541 [nat.pryce@b1] This line has a race condition if two processes are trying to create the

Why isn't Range Comparable?
32509 [dlc-usenet@h] Maybe I'm missing something, or maybe this has been discussed already
+ 32515 [niklas@ka i.] (You probably have -1 and 1 inverted above.)
| 32518 [dlc-usenet@h] Oops, of course, you're right.
+ 32548 [matz@ru y- a] Items in ranges are comparable, but ranges themselves are not.  You

Ruby docs (for FreeRIDE project)
32521 [bobx@li ux a] I have taken the task of putting together the help system for the
32535 [tobiasreif@p] Tobi

Separate lists
32536 [list@ch om t] The discussion seems to have died, I think more because the proposed
+ 32538 [tobiasreif@p] Good idea, AFAICS.
+ 32539 [dblack@ca dl] I don't think it would work, for a couple of reasons.  First, agreeing
| 32954 [list@ch om t] Yes.  The difference is that a bunch of tags does not involve nearly
| 32956 [dblack@ca dl] But that doesn't mean it's a good idea :-) I don't know... I have some
| 32980 [martindemell] Just as a datapoint, this works nicely on rec.arts.int-fiction, where
+ 32989 [ben_crowell@] It seems to me that this doesn't really solve the problem -- if there is
  32997 [list@ch om t] It would be nice to know what ``this'' is, rather than having to

Dir[] and File.stat(str).directory? on Win98
32547 [Stephan.Kaem] Say there's a drive C: with directories and files on it.
+ 32552 [decoux@mo lo] Something like this ?
+ 32553 [nobu.nokada@] Yes, intended.  You shouldn't set the constant and it even has
+ 32555 [matz@ru y- a] Yes.  It's known restriction.
  32568 [Stephan.Kaem] Thanks a lot to all the answers - exactly what I was looking for.

Re: Subrange of String subclass => invalid object (ups)
32559 [chr_news@gm ] qwert2 = (HistoryString.new 'qwert').concat  'qwert'

how to find out which args a method can take
32560 [tobiasreif@p] how can I programmatically find out which objects a certain method can
+ 32574 [chr_news@gm ] If only ask for the arity assuming that  klass is a Class object and meth
+ 32579 [matju@sy pa ] Congratulations, you just ran into the invisible wall called "paradigm",
| 32589 [tobiasreif@p] I know that I can pass wide varieties to some methods. What I thought
| 32595 [Dave@Pr gm t] But... Ruby classes are not types in this sense (although admittedly
| 32596 [tobiasreif@p] Is the above depending on this? I don't get what you mean :|
| 32601 [Dave@Pr gm t] The second parameter to .sub is any object that responds to to_str. It
+ 32606 [hensleyl@pa ] Tobi, I think this an issue in all languages that have a type system

Furnished Office For Rent (close to O'Hare)
32565 [milana12373@] ...

Test connection InterBase
32569 [marnaudo@in ] i have installed on my computer
32573 [matz@ru y- a] I guess you have to remove "=" just after "require".
32577 [marnaudo@in ] you have resolve the problem, thanks.
32598 [matz@ru y- a] The source :-)

Anyone in Bergen, Norway?
32578 [Dave@Pr gm t] I've been invited to the ROOTS conference in Bergen (roots.dnd.no) the
32623 [grunde.lovol] Are you passing by Oslo to, or are you going directly to Bergen? There are
+ 32639 [Dave@Pr gm t] Unfortunately I think I'm heading directly to Bergen.
+ 32640 [Dave@Pr gm t] Unfortunately, I believe I'm going to be heading directly to Bergen.

Anyone in Bochum, Germany?
32581 [armin@ap ro ] Stefan and I are invited to give a talk and tutorial about Ruby at the

Kerberos + Ruby...
32585 [sean@ch tt n] Anyone hear of any kerberos libraries from ruby?  I've dug around a

ruby-tar 0.1.0 available
32588 [tom.hurst@cl] It can read/extract it's own tarball which is always a good sign, even

OT: tools for creating documentation
32593 [ptkwt@sh ll ] I'm going to be creating a good bit of documentation for TaskMaster and I
+ 32599 [Dave@Pr gm t] The book is written in LaTeX using our own style sheets. We weren't
| 32612 [ jimm@io co ] Would you write a new book in XML or in LaTeX? Did you consider DocBook?
| + 32616 [Dave@Pr gm t] For print only, LaTeX - I love the control it gives me. For
| | 32629 [tobiasreif@p] Isn't that because Docbook is semantic markup, and no layout markup?
| | 32634 [stephan.schm] we use a custom XML doc (XMLdoc) format for documentation, which is
| + 32664 [ptkwt@sh ll ] I found that AbiWord allows you to save in DocBook format (as well as
+ 32600 [r2d2@ac .u u] I usually use
| 32603 [vruz@ru y- s] by any chance... is the XML-to-LaTeX converter publicly available ?
| 32633 [r2d2@ac .u u] Well, as I said, there is no single XML-to-LaTeX converter. I use different
+ 32714 [BRNYEDJEOYCR] This is my prefered tool. I use this tool under eNTe and Linux.
  32747 [ptkwt@sh ll ] This looks a lot like Lyx...