73842-75081

73646-74517 subjects 74038-93484

libldap-ruby and sizelimit?
73842 [fery@do es i] I have written a curses-based ldap-browser in ruby, and faced with the

re-open a class --> re-open a method?
73843 [itsme213@ho ] Ruby's ability to re-open a class is great! Among other things it
+ 73846 [batsman.geo@] matz is already thinking on that :-)
| 73852 [george.marro] And in the meantime there's AspectR: http://aspectr.sourceforge.net/
| 73855 [feldt@ce ch ] Or we could make an effort to extend Ruth to do not only
+ 73848 [bob.news@gm ] "you CAN teach an old dog ..." <itsme213@hotmail.com> schrieb im
+ 73893 [qrczak@kn .o] Then changing a method to make the same thing in a different way would no

switching multiple interfaces of an object
73844 [batsman.geo@] I've been toying with some code that does what I believe people asking
73862 [ahoward@fs .] very.
73870 [batsman.geo@] [some 51 lines of code]
73873 [ahoward@fs .] lol.  that's a *first* for me on c.l.r.!  well - ts hasn't responded so
73875 [batsman.geo@] Now, it's really no wonder: as I love toying with singleton classes,

Tk canvas widget Id's
73847 [J.P.Fletcher] Is it possible to access the Id's of objects declared within a Tk canvas
73850 [tran55555@ya] ...
73853 [J.P.Fletcher] O.K. I can make that work and it gives a small integer value.  Later I
73856 [tran55555@ya] ...
73858 [J.P.Fletcher] Dave

DRbObservable : delete_observer ; clients shutdown ?
73849 [jhauss@gf .f] ...
73857 [m_seki@mv .b] Please try require 'drb/eq'.
73860 [jhauss@gf .f] Great ("c'est g?nial [French]") !!! Thanks a lot, this time

Categories like in Objective-C
73851 [stefan.arent] Hola,
73859 [laurent@da a] class Array
73865 [stefan.arent] Hmpf. That easy huh?
73902 [androflux@so] This is Ruby we're talking about here. Nobody makes you crawl over broken

Test::Unit GUI
73864 [john.platte@] I'm planning on doing a lot of test-driven coding soon, so I'm scoping
73867 [djberge@qw s] John,
73877 [nathaniel@NO] scoping
+ 73881 [djberge@qw s] D'oh!  That's what I get for not looking!
+ 75045 [gour@ma l. n] Have you considered to include gtk2 patch for Test::Unit written by Kenta MURATA
  75070 [nathaniel@NO] I've applied it in CVS under rough/lib/testunit - can someone grab it
  75072 [gour@ma l. n] ggd@gaura:~/program/ruby/testunit-0.1.8/examples> ruby ts_examples.rb --gtk2
  75074 [nathaniel@NO] Those appear to be warnings caused by the gtk2 extension itself, so
  + 75077 [gour@ma l. n] First I have to install GTK, but I'll report back.
  + 75080 [gour@ma l. n] I just checked and it works. Clean - no warnings.
    75081 [nathaniel@NO] Excellent! Thanks for your help.

TCP/IP protocol and Net::HTTP
73869 [n.gilbert@so] For almost all web sites, such as www.ruby-lang.org, the code
+ 73909 [scobianchi@r] It doesn't time out for me (just tried). I noticed, however,
| 73910 [n.gilbert@so] It consistently times out for me.  The default timeout time is 60
+ 73918 [alex@pr ss r] Works for me (Thu 19/6 11:00) - a bit slow, but gets there with the default timeout
  73924 [J.Hawkeswort] Works for me too.
  73931 [n.gilbert@so] I am beginning to wonder if this problem arises from the MacOS X
  + 73934 [pit@ca it in] irb(main):001:0> require 'net/http'
  + 73935 [dave.baldwin] Mixed results for me on 10.2.6 with ruby 1.6.7 (2002-03-01)
  + 73936 [billk@ct .c ] I ran a tcpdump when executing the
  | 73937 [decoux@mo lo] See also [ruby-talk:66272]
  + 73940 [ jimm@io co ] I just tried under OS X and see the same timeout problem.
  | 73958 [michael_s_ca] As Guy mentioned, this is a doubleclick issue; they're not responding
  + 73945 [john.platte@] * Mac OS X 10.2.6 / ruby 1.6.7 (2002-03-01) [powerpc-darwin6.0]
  + 73946 [mwilson13@co] My results are below. I am using Mac OS X 10.2.6 and Ruby 1.8p2. I also
  + 73947 [koen.vervloe] I get a timeout too.

rubynet-announce Digest, Vol 4, Issue 1
73871 [rubynet-anno] Send rubynet-announce mailing list submissions to

syck/yaml fail unit test
73878 [guillaume.ma] I get 2 failures with the unit tests within syck (0.35, from tarball).
73880 [ruby-talk@wh] Known issues.  Both are encoding issues (UTF-32 and hex escapes in URIs).
73885 [guslist@fr e] I used neither so I can safely ignore the failures. Correct?

Usable Windows interactive command shell in Ruby 1.8?
73884 [itsme213@ho ] Will 1.8 include a good command-line shell for windows?
73900 [aredridel@nb] I imagine not, since for that, just install Cygwin.  It's a lot of work

Yaml, configuration file and comments
73886 [guillaume.ma] I am using YAML for configuration files, which can be hand edited or
73895 [ruby-talk@wh] In YAML, comments are thrown away, so they are not officially supported for a

What next after Eclipse?
73889 [ergnosis@bt ] Apologies for posting here.  My reasons are, I believe, legitimate.
73890 [hal9000@hy e] Interesting, but it's a long way across

rb_protect and longjmp
73891 [sean@RE OV M] Looking for some insight about rb_protect and the longjmp calls.
+ 73906 [matz@ru y- a] * you throw your own exception, longjmp.
| 73952 [0bz63fz3m1qt] see the implementation of 'Funcall'
+ 73971 [pbrannan@at ] When rb_protect "doesn't return" what does happen?  Does your code get
  73973 [sean@RE OV M] Well, now I'm trying to determine when it does what.  A simple test from the
  74172 [pbrannan@at ] It's possible that if you are linking against two different ruby

question on blocks and iterators
73892 [info@mj is d] at the end is a sample code
+ 73894 [hal9000@hy e] class Array
| 73908 [info@mj is d] if
| 73912 [batsman.geo@] & reifies the "implicit block", that is, the one passed as in
+ 73921 [dmertz@fr e.] the each method returns always the calling object, so your each_if returns also

Code generation and state machines
73896 [ruby-list@ze] I'm starting a project for fun in Ruby, partly to help learn the language.
74011 [bob.news@gm ] I'd store the state info in an instance variable of the class instance and
74017 [ruby-list@ze] Okay - I understand that.  I take it class instance variables are not
74022 [bob.news@gm ] ...

Class variables in parent and child classes with the same name
73897 [ruby-list@ze] Am I misunderstanding something, or can you not give a child class a class
+ 73903 [batsman.geo@] Right, class variables are "tree scoped", meaning that they're accessible
+ 73904 [idan@id ns .] You can, however each class shares it's class variable with it's

Ruby/Tk update (for Ruby 1.8.x)
73898 [nagai@ai ky ] I commited Ruby/Tk patches. You can get it from CVS head.

###<>>><Largest Loan Program aozi yk
73901 [GovtGrants32] ...

Good & cheap mp3 player, USB Flash disk, cd/vcd/mp3 player and digital camera etc
73905 [hytechhk@16 ] My dear friend,

Thread Problems - Random Segfaults
73915 [stefan.arent] I have a thread-intensive application that gives random segfaults. They occur at
+ 73916 [dcarrera@ma ] I have no idea, but if you send me your program I can test it ona Sun
| 73920 [stefan.arent] Sorry I can't do that. The code is part of a wifi network simulator that we
+ 73917 [decoux@mo lo] Well, 1.6.7 is known to have problem in some cases, see the thread
  73919 [stefan.arent] What does this reference? How do I find this thread :)
  + 73922 [0bz63fz3m1qt] Simon Strandgaard
  + 73923 [decoux@mo lo] then you select "Thread frame"
  + 73926 [spam@de k. k] there is an archive of this discussion on www.ruby-talk.org

Test::Unit:  assert in loop ?
73927 [holmberg@ia ] Sometimes I find it convenient to have some of my unit tests
73929 [mike@ra do .] You can add a message to the assertiom e.g.
73932 [holmberg@ia ] Thanks !!

embed Ruby/TK app in a web page
73928 [J.P.Fletcher] I am looking for a way to embed Ruby/Tk apps in a web page.
73941 [J.Hawkeswort] John,
+ 73944 [aredridel@nb] Using the broadway plugin from the X consortium, it should be quite
| 73950 [J.P.Fletcher] Thanks for the idea.
| 73955 [aredridel@nb] That's the best reference.  It's a start, anyway.  It's not a simple
| + 74019 [J.P.Fletcher] Does anyone know of a Broadway plug-in for PC/Windows/Netscape?
| + 74034 [rz@li ux m6 ] iirc Tcl/Tk plugins exist for some browsers, see for example
+ 73951 [J.P.Fletcher] I have a simple test app which does a graph.  The full app is an interface to a C++ class wrapped by SWIG, and turned into a dynamic library.  I guess that is going to have to run in the server.
+ 73962 [keith_hodges] ...

collect info about ruby-api
73943 [0bz63fz3m1qt] I have long been longing for a good description of ruby C api.
+ 73988 [0bz63fz3m1qt] 1)   rb_funcall3()  what is purpose with it ?
| 73993 [matz@ru y- a] It's almost like rb_funcall2() but raises error when it tries to call
| 74005 [0bz63fz3m1qt] class Test
+ 74227 [sdate@ev re ] "Simon Strandgaard" <0bz63fz3m1qt3001@sneakemail.com>
  74229 [sdate@ev re ] To be more specific, I am on WIN XP Pro, using VC++ 6.0
  74238 [0bz63fz3m1qt] Sorry.. I couldn't think of any good cutnpaste-example when I
  + 74344 [sdate@ev re ] "Simon Strandgaard" <0bz63fz3m1qt3001@sneakemail.com>
  | 74377 [0bz63fz3m1qt] At the bottom there is a link, labeled 'Edit text of this page'
  | 74415 [sdate@ev re ] "Simon Strandgaard" <0bz63fz3m1qt3001@sneakemail.com>
  | 74416 [0bz63fz3m1qt] Can you post the whole program, then I will se what I can do ?
  | 74471 [sdate@ev re ] "Simon Strandgaard" <0bz63fz3m1qt3001@sneakemail.com>
  | 74552 [0bz63fz3m1qt] Ok.. I also commented out Init_stack() because I don't know what it does.
  | 74578 [sdate@ev re ] "Simon Strandgaard" <0bz63fz3m1qt3001@sneakemail.com>
  | 74609 [0bz63fz3m1qt] If you having trouble with it I suggest you spawn a new thread at this
  + 74400 [nobu.nokada@] #3   Init_stack(address)
    74409 [0bz63fz3m1qt] I never heard about this before, what does it do ?
    + 74418 [batsman.geo@] The GC of Ruby is conservative: it will scan the stack to find VALUEs.
    | 74425 [0bz63fz3m1qt] Sorry I don't understand Nobu's reason to added Init_stack as number 3rd
    | 74432 [batsman.geo@] It doesn't register one specific instance, but sets the top of the stack
    | 74441 [0bz63fz3m1qt] If I understand you correct, then its a sort of watermark mecanism, where
    | + 74443 [decoux@mo lo] embedding
    | | 74554 [0bz63fz3m1qt] I use embedding myself.. I am very curios how/if I can use it?
    | | 74605 [decoux@mo lo] plruby_call_handler() is the entry point for plruby : each time that
    | | 74606 [0bz63fz3m1qt] If its a nested request, then Init_stack will only be invoked once (first
    | | 74607 [decoux@mo lo] Yes,
    | | 74608 [0bz63fz3m1qt] Wow.. Now I know what Init_stack() does, I feel relieved :-)
    | + 74444 [batsman.geo@] ????
    |   74448 [0bz63fz3m1qt] I don't understand, so im guessing... as you can see im terrible at it :-)
    + 74477 [nobu.nokada@] Yes, it's an internal but would be necessary to embed (see
    + 74503 [tpeters@un -] Simon, remember how the GC works: Every time it runs, it marks all objects
      74551 [0bz63fz3m1qt] Yes I know mark&sweep GC.
      74570 [qrczak@kn .o] Init_stack tells the Ruby interpreter where the portion of the stack which may
      74595 [0bz63fz3m1qt] OK, I have been told this many times.. What I don't realize is when to use
      74654 [qrczak@kn .o] When ruby_init() is called from a function whose local variables point to Ruby

Weird Fixnum division
73956 [haugwarb@ch ] I'm new to this group but have used Ruby for quite a while now (it's a
73957 [dcarrera@ma ] I can't replicate your output.  It works correctly for me.
73972 [mwilson13@co] I can't replicate your result either. Is there something else going on
74001 [haugwarb@ch ] Yes, I've loaded a module I did'nt know about. The problem was (of course)

rescue + stack trace
73965 [orion2480@ho] I am working on debugging a program.  I understand how to raise/rescue
+ 73967 [decoux@mo lo] This ?
+ 73968 [dwerder@gm .] I don't know exactly how it's called, but look in the built in classes
+ 73969 [joaopedrosa@] [dewd@localhost dewd]$ irb

Summary: TCP/IP protocol and Net::HTTP
73966 [n.gilbert@so] Thanks to all who have run trials and especially to Guy Decoux who
73985 [n.gilbert@so] The work around mentioned below does not seem to cure the problem (even

[Ruby-Eclipse-Win32] How to install
73974 [STUCKNER@MU ] ...
73980 [djberge@qw s] That is very strange.  By any chance did you have Eclipse already
73981 [STUCKNER@MU ] I never really installed eclipse. I just unzipped it and ran it. Is that
+ 73982 [michael_s_ca] *chuckle* I thought that *was* the install for eclipse!
+ 73983 [careylist@ad] No, that's how it goes.  If you've unzipped the plugin under the plugins
  73984 [djberge@qw s] No, you're right.  There is no "install" script.  Try deleting the eclipse

[FXRuby] Scrollable frame
73975 [STUCKNER@MU ] ...
73976 [lyle@us rs s] I don't know the specific example you're referring to, but you just want

Production Code with Ruby
73977 [place4oracle] I really like ruby it is simple and much like Smalltalk and Perl that I like.
+ 73978 [armin@xs .d ] for Windows, exerb might do the job.
| 73979 [aredridel@nb] You may solve the problem socially instead of technically:  make sure
+ 74003 [bob.news@gm ] "Warren" <place4oracle@yahoo.com> schrieb im Newsbeitrag
+ 74015 [mailinglists] Use

ANN: SuperShape 0.0.2 (and comparing GUI toolkits)
73987 [ptkwt@sh ll ] I updated the Tk app that demos the SuperShape extension so that it uses
74037 [ptkwt@sh ll ] ...

rescuing errors.. catch-all
73991 [lists@de on ] Im trying to print all error information to the browser so I don't have
+ 73992 [ahoward@fs .] i think this is good as you can get - Exception is the mother of them all.  if
+ 73994 [matz@ru y- a] Exception should catch all errors.  But rescue does not help, when you
| 74025 [lists@de on ] would this seem to be a reasonable feature request to make? it would be
| + 74027 [ahoward@fs .] ~ > cat index.cgi  # wrap your cgi's in a baby shell script which dups 2 as 1
| | 74028 [lists@de on ] perhaps with cgi, but I'm using embedded ruby. And I was thinking if
| + 74030 [matz@ru y- a] I'm afraid that your request is rb_protect() to catch _everything_.
|   74031 [guslist@fr e] Could there be another form of load that would report parse errors as an
|   74048 [matz@ru y- a] begin
|   74342 [guslist@fr e] Oops, my mistake. It does work. I though, after a quick test, that it
+ 74013 [sdmitry@lr .] ...
  74026 [lists@de on ] thanks, I'll have a look at it :)

Re: class X;  class << X        : what is this idiom ?
73996 [ptkwt@sh ll ] I think that's a pretty close guess...
+ 73998 [dooby@d1 .k ] That sounds a bit comp.sci :-)
+ 74057 [B.Candler@po] Regards,

reading ruby source
73997 [sdate@ev re ] I'm making a serious attempt to read and understand the C-source which
+ 74000 [dooby@d1 .k ] If you can accept the recommendation of someone with 10 minutes
| 74046 [sdate@ev re ] Yes, I will definitely accept this recommendation because it makes sense.
+ 74002 [batsman.geo@] IMHO the source code is quite understandable, the only complicated
  + 74020 [ahoward@fs .] this is incredibly useful info - can we (you, i, somebody) create a wiki page
  | 74021 [batsman.geo@] I prefer RubyInterpreterSourceCode, quite verbose but precise.  And then
  + 74047 [sdate@ev re ] And eval.c was the first file I tried to read ... no wonder I was

urgent help
73999 [jessicalove@] Dear Friend,

In 1.8.0 nil.to_s is not the same as ""
74006 [han.holl@pr ] class Awk < String; end
74009 [nobu.nokada@] Try this patch.
+ 74010 [decoux@mo lo] You have the same with
| 74012 [nobu.nokada@] I missed the same code just below.
| 74014 [nobu.nokada@] Sorry, this was wrong.  rb_to_id() must return ID instead of
+ 74023 [han.holl@pr ] module Pql
  74024 [nobu.nokada@] Sorry, try the patch in [ruby-talk:74014] instead.
  + 74049 [matz@ru y- a] Commit the fix, please.  I will release preview3 afterwards.
  | 74051 [nobu.nokada@] What about the message mentioned at [ruby-talk:74012]?  Since
  | 74066 [matz@ru y- a] "intern" is a canonical name for string to symbol operation in the
  + 74064 [han.holl@pr ] in `send': interning empty string (ArgumentError)
    74067 [nobu.nokada@] * there's an incompatiblity for #intern already, which empty

=?windows-874?q?=C3=D1=BA=CA=C1=D1=A4=C3=A7=D2=B9=BB=C3=D0=A8=D3_=CB=C3=D7=CD_part_time?=
74008 [supap_a13@ho] ...

[ANN] DataVision 0.7.9 released
74016 [ jimm@io co ] DataVision 0.7.9 is now available from SourceForge at

authentication and monolithic fcgi programs
74029 [ahoward@fs .] fastcgi'rs-

TypeError: Date is not a class
74033 [phlipcpp@ya ] I'm learning to use ieController from
74036 [phlipcpp@ya ] require 'runit/testcase'
threads.html
top