71110-72416 subjects 71604-72733

^ RWiki problem - connection refused
71407 [childNOSPAM ] ...
71512 [childNOSPAM ] ...

^ using root window with Tk
71410 [jean-francoi] I would like to use the virtual root window with Tk.

^ [PATCH] Re: return value for PTY.spawn
71413 [laurent data] Finally, after some tests, I looked the code.
71415 [nobu.nokada ] rescue PTY::ChildExited => e
71420 [laurent data] Sorry, I was using an old version of pty.

^ ruby_run() w/o exit?
71414 [ahoward fsl.] c extending rubyists-
+ 71416 [nobu.nokada ] ruby_exec() and ruby_cleanup() in 1.8.
+ 71419 [B.Candler po] I seem to remember seeing Nobu saying that this feature had been added in
+ 71421 [0bz63fz3m1qt] rb_funcall().. does *most* of what you want.
  71422 [ahoward fsl.] thanks simon, but...
  71423 [0bz63fz3m1qt] I know you asked for C.. and that I replyed with C++ :-)
  + 71424 [ljz asfast.c] And now I have fixed the class so that it now works when you rank a
  | 71427 [ahoward fsl.] yeah, we're all programmers here right?  ;-)
  + 71431 [dblack super] Almost :-)
    + 71439 [RLMuller com] I'm a Ruby newbie,  so I was interested in the techniques used in this
    + 71442 [ahoward fsl.] sheesh.  first matz, now you.  poetry moders unite!
      71443 [michael_s_ca] Be careful with that; look what happened to the Vogons.

^ RDTool for windows
71418 [octplane via] while attempting to make run a http server in ruby on my windows XP, I

^ ruby-mode font-lock confusion
71425 [slumos yahoo] The second = in this code causes ruby-mode to mark everything after it as a string.
71426 [0bz63fz3m1qt] puts <<EOQ
71432 [slumos yahoo] ...
71433 [rpav nwlink.] Yeah, there are other problems, too.  For instance, <<HERE blocks

^ From Mr Alex Kargbo Alie
71428 [alexkar mail] From Mr Alex Kargbo Alie

^ 'gets'  flagged as 'Bad file descriptor' - why?
71429 [RLMuller com] I'm a newbie to Ruby.  When I tried running the following code excerpted
71434 [hal9000 hype] Hmm. Not sure on this one.
71437 [RLMuller com] Great book!
71440 [hal9000 hype] Thanks...
71441 [RLMuller com] IMHO, your analysis is right on target.  SciTE redirects stdout (and stderr)

^ Using Ruby-Cocoa - how to send a Obj-C object a msg?
71436 [staypufd aus] I'm using Ruby-Cocoa and I want to be able to include some of my own classes
71438 [staypufd aus] I figured out what I did wrong on the code below...  I was sending to self,
+ 71473 [staypufd aus] Notes on using Ruby-Cocoa
+ 71474 [hisa imasy.o] Use a module function OSX::ns_import to import an Objective-C

^ Embedding/GC/heap corruption problem
71447 [j.bernhardt ] I'm working on adding Ruby scripting to the Half-Life game engine, similar
71450 [0bz63fz3m1qt] void MessageEnd(void) {
71451 [j.bernhardt ] I used to do that, but during experimentation I removed the protection
+ 71452 [j.bernhardt ] cstrike/addons/halfruby/kernel/message_dispatch.rb:28: [BUG] Segmentation fault
+ 71453 [0bz63fz3m1qt] OK.
  + 71454 [j.bernhardt ] Unfortunately this did not help either.
  + 71455 [0bz63fz3m1qt] OK.. try this :-)
    + 71457 [j.bernhardt ] Unfortunately, this didn't help also. And by looking at how the
    | 71458 [0bz63fz3m1qt] Is it a multithreaded application you are embedding ruby into ?
    | 71460 [j.bernhardt ] Half-Life uses a single threaded model and I was afraid that you'd say
    | 71461 [0bz63fz3m1qt] Assuming that no asyncronous call is happening..
    | 71463 [j.bernhardt ] Sure.
    | 71464 [0bz63fz3m1qt] [snip rb_game.cpp]
    | + 71467 [0bz63fz3m1qt] Im actual writing a tutorial on how to embed ruby into c++ and use SWIG at
    | | 71469 [j.bernhardt ] No problem, as I'm developing on Linux anyways.
    | | 71472 [0bz63fz3m1qt] I saw the line "#include <extdll.h>" and just assumed DLL == windows :-)
    | | 71491 [j.bernhardt ] Eventually this will have to run under Windows - but since most dedicated
    | | 71497 [0bz63fz3m1qt] OK.
    | + 71468 [j.bernhardt ] Maybe it's not my code's fault. I'm getting the impression that Ruby might
    |   71471 [0bz63fz3m1qt] Yes I understand you concern (speed issues).
    + 71459 [batsman.geo ] This is not safe, as in the next line the GC might run and then message
      71462 [0bz63fz3m1qt] Right.. too quick - me sorry :-)

^ obj.hash  now == obj.hash after?
71465 [surrender_it] I just noticed that if I create a dummy class and create instances
+ 71478 [matz ruby-la] No, hash values are used for hashing values by Hash.  It does not need
+ 71494 [bob.news gmx] "gabriele renzi" <surrender_it@remove.yahoo.it> schrieb im Newsbeitrag
+ 71522 [surrender_it] thanks Robert & Matz for the explanations

^ Marshal string format
71475 [spectra debi] Given a class (let's take the Pickaxe example)
71495 [B.Candler po] Have a look through marshal.c, it's very clearly written.

^ 1.8-intense class tree
71479 [dave pragpro] I was trying to come up with some example code for 'prettyprint' and I
71480 [hal9000 hype] Neat. Runs fine on 1.7.3.
+ 71481 [dave pragpro] I'm working on it... :)
+ 71484 [akr m17n.org] prettyprint.rb includes documentation in English.

^ Current wxRuby status
71482 [phasis bclin] ...
+ 71483 [tcfelker mtc] Thanks!  I think this is the toolkit I've been waiting for, but I
+ 71826 [feldt ce.cha] No I didn't. Great news and keep up the good work!
  71852 [arthur8 boar] While that's certainly true, one might argue that it's also
  + 71856 [feldt ce.cha] Good point although I doubt there is (or will be) a large amount of
  + 71866 [hal9000 hype] That is a good point, and I do feel it's worthwhile

^ [macOS X.2.6] ruby and character encoding
71485 [yvon.thorava] Hey all,
71891 [sroberts uni] Yes, use iconv from RAA. If you have trouble building it, email me and

^ Thread#kill doesn't kill processes inside a thread
71487 [batsman.geo ] [This was first issued in ruby-de]
71493 [matz ruby-la] No.  Threads are entities in the process, so it does not maintain

^ Test::Unit sequencing
71488 [B.Candler po] A question for more experienced Test::Unit users.
+ 71489 [batsman.geo ] This thread should interest you: [ruby-talk:62836]
| 71500 [B.Candler po] Thank you, very interesting. Conclusion: write one test method, and divide
| + 71505 [batsman.geo ] Considering I've posted 336 messages (not including this one) to ruby-talk
| + 71513 [ahoward fsl.] sure sounds like alot - does anyone know of a means to compare this with other
|   71514 [mike ratdog.] ...
+ 71492 [ndrsbngtssn ] "The first rule of unit testing is, don't let tests depend on each
  71508 [ahoward fsl.] i know this creed, but it seems not to apply where databases are concerned...
  + 71509 [B.Candler po] I think I can see where Anders is coming from: I could replace my database
  + 71518 [ndrsbngtssn ] It applies particulary in the case of databases. :) Writing simple unit
    + 71526 [ahoward fsl.] my logic is *very* tightly coupled with the database code, in fact it is a
    | 71532 [sera fhwang.] Well, it sounds like the solution you came upon -- having long tests
    + 71527 [mwilson13 co] I don't think I agree with the statement that decoupling logic from
      71538 [ndrsbngtssn ] By database code I meant the parts of the code that knows about the
      71576 [ahoward fsl.] hmmm.  i think i am guilty of this, and this probably explains my delima.  you
      + 71578 [michael_s_ca] I know this is wrought with exceptions, but a very crude rule of
      | 71594 [austin halos] I would strongly disagree with this. There are some things that
      | + 71599 [ndrsbngtssn ] Yes they can, it's just that no-one has found out how yet. ;-)
      | | 71600 [austin halos] Hmmm ... GUIs cannot be unit tested. Testing can be automated, yes,
      | | 71603 [billk cts.co] GUI libraries themselves could be developed test-first.  (I've done
      | + 71605 [michael_s_ca] Hence my "wrought with exceptions" and "very crude" qualifiers.  At
      | + 71621 [jweirich one] Really?  I would agree that it is difficult to add unit tests to an
      + 71589 [ndrsbngtssn ] The exciting thing about unit testing is that it's relatively new, but

^ (none)
71501 [solomonberew] Dear Sir,

^ Re: prettyprint
71502 [magicus23 ya] If you are referring to the idea of prettyprint then it goes back a bit
71521 [hal9000 hype] but it wasn't what I was talking about.

^ RCR: $INCLUDED global var
71510 [martindemell] $INCLUDED = (__FILE__ != $0)
71515 [matz ruby-la] But a global variable is still ugly for something new.  I like the
+ 71516 [vjoel PATH.B] What about
| 71528 [nobu.nokada ] And LIB {} (or INCLUDED {}) as the opposite?
+ 71525 [ahoward fsl.] __LIB__ ?
  71537 [matz ruby-la] "include" is the C term, we use "require".  Anyway, I think the
  + 71554 [dblack super] RUN ?
  | + 71555 [B.Candler po] If it's a method then it can't have an initial capital, can it?
  | | + 71556 [decoux moulo] ...
  | | | 71561 [B.Candler po] Hmm. I thought I tried that and it didn't work.
  | | + 71558 [dblack super] def RUN; yield if __FILE__ == $0; end
  | + 71584 [martindemell] PROGRAM? (and LIBRARY for the other case, though I can't think of
  | | 71626 [dblack super] Precedent, baggage, whatever :-)  My problem with MAIN is that it's not
  | | 71751 [martindemell] Good point. I don't like TEST or DEMO because they're too restrictive.
  | | 71758 [dooby d10.ka] ...
  | + 71586 [aero6dof yah] FILEMAIN or FILERUN - to help hint at the equivalence to (__FILE__ == $0)
  + 71627 [dooby d10.ka] ...
  | 71674 [dooby d10.ka] ...
  + 71635 [ptkwt shell1] ...
  | 71658 [sdate everes] ...
  | 71660 [ptkwt shell1] ...
  | + 71664 [sdate everes] ...
  | + 71665 [bystr mac.co] if $0 == __FILE__ or defined? Test::Unit::TestCase
  |   71666 [sdate everes] ...
  + 71667 [0bz63fz3m1qt] how about 'executed?' ???

^ Threads in C code
71511 [dkl lextrane] I am looking at the possibility of writing a wrapper for a C

^ [ANN] Madeleine 0.3
71517 [ndrsbngtssn ] What is Madeleine?

^ PTY: still problems (+patch)
71519 [laurent data] I just built the lastest ruby distribution from CVS, and noticed that
71530 [nobu.nokada ] I noticed a bit different problem on Linux, EIO occurs.
71541 [laurent data] I can test the code on Linux, and help you to fix this problem.
71542 [nobu.nokada ] The modification itself seems good.  But aren't there extra
71544 [laurent data] It is probably a problem with the 'cut and paste' operation in the
71545 [nobu.nokada ] ChildExited#status returns Process::Status, and it has
71546 [laurent data] Again, I'm surprised that Ruby is very well designed ;-)

^ public/protected/private syntax
71520 [guslist free] I tend to find the public/protected/private keywords in Ruby a little odd.
+ 71523 [vjoel PATH.B] But, in ruby, many methods that you can use without a receiver are in
| 71568 [guslist free] Agreed that is not convenient. Didn't think of that one.
+ 71524 [dblack super] They're actually methods (not keywords) with standard method syntax.
+ 71540 [bob.news gmx] "Guillaume Marcais" <guslist@free.fr> schrieb im Newsbeitrag
  71573 [guillaume.ma] I find it more convenient when the scope of the method is directly readable
  + 71580 [batsman.geo ] IMHO, it makes sense to demand such a prefix to save typing (although I
  | 71608 [guillaume.ma] No quite true. You can call all the private method of the Kernel module,
  | 71613 [batsman.geo ] Duh!
  + 71583 [bob.news gmx] "Guillaume Marcais" <guillaume.marcais@free.fr> schrieb im Newsbeitrag
  + 71595 [austin halos] class Foo
    + 71739 [gsinclair so] As a readability thing, I would prefer to declare the visibility of
    | 71747 [dblack super] However....
    + 71767 [bob.news gmx] "Austin Ziegler" <austin@halostatue.ca> schrieb im Newsbeitrag
      71784 [batsman.geo ] ???
      71793 [bob.news gmx] "Mauricio Fern?ndez" <batsman.geo@yahoo.com> schrieb im Newsbeitrag
      71796 [matz ruby-la] This is once proposed by Shugo Maeda long ago, and suspended for
      71797 [dave pragpro] Now that you can nest method definitions, perhaps it makes sense to
      71799 [matz ruby-la] Once I decide, it would cost me a few minutes.  But we have to discuss
      71801 [dave pragpro] What would be the impact of having it return an unbound method? Is there
      71802 [matz ruby-la] Since Ruby doesn't preserve UnboundMethod internally (it creates
      71803 [dave pragpro] I can see that, but the two are really very different things, so we'd
      71806 [bob.news gmx] "Dave Thomas" <dave@pragprog.com> schrieb im Newsbeitrag
      71834 [batsman.geo ] Then the only differences between anonymous methods and procs would be
      71842 [bob.news gmx] "Mauricio Fern?ndez" <batsman.geo@yahoo.com> schrieb im Newsbeitrag
      71847 [batsman.geo ] It is indeed, in the sense that 'self' and locals used inside are
      71848 [matz ruby-la] But we will get warnings since today's check in.

^ another popen question...the ruby bbs
71529 [nedry mail.b] All this talk of popen put me in mind of something.  I could use it to link the Ruby BBS to external programs, specifically all those old dos door games by using dosemu and redirecting the output...
+ 71531 [nobu.nokada ] I don't know about that "old dos door game", does it read from
+ 71533 [guslist free] You probably need to flush your data after writing or change the sync
  71536 [nobu.nokada ] Pipes for write are always set sync mode at creation.

^ Re: State Pattern Implementation (2nd try)
71535 [schlegel cs.] ...
71539 [bob.news gmx] "Sacha Schlegel" <schlegel@cs.curtin.edu.au> schrieb im Newsbeitrag

^ gzip cgi compression
71560 [dwerder gmx.] Is zlib compatible with HTTP-gzip-output-compression?
+ 71564 [B.Candler po] How are you running this? As a CGI under a webserver, or is there a Ruby TCP
| + 71565 [dwerder gmx.] I'm running it with mod_ruby
| | 71569 [B.Candler po] #!/usr/local/bin/ruby -w
| | 71572 [michael_s_ca] data = IO.popen("gzip -c /etc/motd", "r").read
| | 71629 [B.Candler po] bidirectional pipe, then changed my mind when I realised I could pipe the
| + 71644 [dwerder gmx.] Here is the solution that works best for me.
|   71650 [B.Candler po] StringIO (it's a new feature in 1.8, but for 1.6.8 you can install the '1.6
|   71652 [decoux moulo] ...
|   71734 [dwerder gmx.] yes, this would be very cool.
+ 71567 [idan idanso.] Indeed, it should be, zlib is the same library used by most free http
  71571 [dwerder gmx.] Good hint, Opera 7.10 does it, but not mozilla and IE :(
  71615 [idan idanso.] Perhaps ethereal will be helpful here, you could use it to capture the
  71641 [dwerder gmx.] I captured the output already (thanks for hint) but I don't know how to

^ popen and the bbs
71574 [nedry mail.b] Thank you Nobu, that fixed it, atleast in terms of working with things like telnet... it reads and writes to it fine.  The problem is, I am trying to interface it with dosemu, which wants something called named pipes.  I set up some pipes, but it doesn't work.  Here's what the man pages says...
71590 [decoux moulo] ...

^ STOCK MARKET PLAYERS - WALMART and Costco Join Kingdom Ventures' Initiative (OTCBB: KMDV).......... juec
71585 [Live_From_th] LIVE FROM THE WIRE...New Stock Recommendation<br>

^ make_collector
71588 [martindemell] Got tired of perpetually writing if-then-else code to accumulate the
+ 71591 [batsman.geo ] Why not simply use some prefix?
| 71611 [martindemell] ...
+ 71610 [martindemell] ...

^ Time.ascset
71592 [lists debona] Is ther esomething like,
71618 [sdate everes] ...

^ procs and context
71593 [repeater luc] ______________
+ 71597 [kentda stud.] Why not just
| 71614 [repeater luc] Ah that's it! That one flew straight by underneath the radar.
+ 71602 [batsman.geo ] Proc.new reifies the passed block, which was already bound to the
  71616 [repeater luc] Zoi that is enlightening, with this you've cleansed my mind of all the moth

^ how to use an array as subroutine arguments?
71596 [lists debona] Time.local(2003,5,16)
71598 [djberge qwes] Time.local(*now)

^ need help with timestamping
71601 [lists debona] I want to write a timestamp to a file, then read it in, and get a time
+ 71609 [lists debona] This worked, not as pretty as I'd liked, but...
+ 71612 [ahoward fsl.] check out the parsedate module - it's in the pickaxe.
+ 71622 [nobu.nokada ] I often use Time#to_i and Time.at.
| 71623 [nobu.nokada ] Sorry, this should be `Time.parse(file.gets)', of course.
| 71661 [lists debona] Your previous worked just excellent :)
+ 71631 [gsinclair so] YAML is an option.