34632-35242 subjects 35088-36220

SV: Nested paired brackets in regexp
34875 [tsondergaard] ...

Trouble with opening files
34879 [gehlker@fa t] #!/usr/bin/env ruby
+ 34881 [ckruse@ww te] I think, it should work when you write
+ 34882 [paul@at es .] File.open(File.expand_path('~/ruby/sample/testFile', 'r') do |testFile|
+ 34883 [    s@xs .d ] File.expand_path( fileName [, aDirString] ) -> fileName
+ 34885 [tom.hurst@cl] ~ is a shell globbing operator, it has no meaning outside /bin/sh.
+ 34891 [gehlker@fa t] Thanks to everyone who pointed out that "~/" doesn't mean much to Ruby

Newbie: How to WakeUp All Threads?
34887 [moonerent@ho] This threaded socket server seems to working well so far...
+ 34889 [decoux@mo lo] Rather than using #sleep, you can perhaps use Thread::stop and use
+ 34890 [ckruse@ww te] Yes. That's correct.
  35033 [moonerent@ho] @@thr = ThreadGroup.new

Problem with "-r" command line argument
34894 [gehlker@fa t] Well, I'm having one more problem with RubyStudio. I implemented a drawer to

New OS for Old Mac
34896 [gehlker@fa t] I have an old Mac 6400 that I want to use as a server. Ruby for the old Mac
+ 34898 [tom.hurst@cl] They didn't choose BSD for OS X for nothing ;)
| 34901 [jjenning@st ] NetBSD is the original portable operating system; it will probably run
| 34904 [huber@al m. ] After looking around online a little bit, it looks like it's a ppc
+ 34950 [pcs3@ma lh s] HTH
  34951 [gehlker@fa t] It does help. I was being persuaded to go with NetBSD but the hassle and

Better Kate Highlighting
34903 [sean@ce so t] Does anyone have a better highlighting file for Kate?  The current one seems
34922 [sean@ce so t] seems

Rescue Clause
34905 [sean@ce so t] def
+ 34906 [sean@ch tt n] begin
+ 34909 [hal9000@hy e] Yes... in older versions, this was not possible.
| + 34911 [alan@di ik t] Theres also a single statement rescue that I've only recently learned about.
| + 34917 [sean@ce so t] Yes, I think in the spirit of "least surprise" it should.  I see begin...end
|   34918 [tobiasreif@p] that could be cool.
+ 34910 [tobiasreif@p] open('foozboo.zer', 'r') do |file|
  34914 [vjoel@PA H. ] Which exceptions would it catch? Ones from the open(), or ones from
  + 34916 [tobiasreif@p] both? I'm not sure.
  + 34921 [sean@ce so t] Just the exceptions inside the block, after the open call.  It's fairly
    34924 [tobiasreif@p] but
    34929 [sean@ce so t] That's what I'm saying.

Nedit hilighting -- was: Better Kate Highlighting
34907 [vjoel@PA H. ] I don't use Kate, but your post reminded me to upload my Nedit

eWeek Poll: Which database is most critical to your organization?
34908 [zak@my ql co] Good Day All,

RCR?: parallel to until: as_soon_as
34912 [tobiasreif@p] would this be worth an RCR?
+ 34913 [ps@ra ia .m ] the word you're looking for is the while-loop common to many languages and it
| 34915 [vjoel@PA H. ] Unless he's looking for a way to hook @line_count so that the block is
| 34935 [tobiasreif@p] Yep.
| 34939 [vjoel@PA H. ] I'd vote against it because of the performance cost of checking each
| 34947 [tobiasreif@p] I see. But performance is not always the top priority, and users make
| 34953 [vjoel@PA H. ] I was guessing that users wouldn't have a choice, because every "@x =
| 34960 [tobiasreif@p] I meant: users have the choice to use the construct, don't, or use a
| 34999 [paul@at es .] Useful, but slow.
| + 35004 [paul@at es .] Hmm, I must have been asleep earlier this moring, because all that extra
| + 35024 [tobiasreif@p] Thanks for the code.
+ 34931 [dblack@ca dl] Wouldn't this hang, since @line_count isn't being changed?
  34934 [tobiasreif@p] I'm not sure if this could work in Ruby, but I want to be able to fire a
  + 34940 [msassak@sp a] What about using the Observer mixin? or is that to "heavy duty" for what
  | 34948 [tobiasreif@p] Never used it; looking good @
  | 35049 [mike@le to .] button_pressed = Signal.new
  + 34952 [mghall@en er] Like doing 'trace variable' in Tcl?

fiddly little array manipulation question
34926 [sentinel_NO_] Is there a nicer way to take the intersection of an array of arrays, other
+ 34927 [Dave@Pr gm t] You could use #inject under 1.7
+ 34930 [vjoel@PA H. ] [ [1,2,3], [2,3,4] ].inject([0,1,2]) { |x, y| x & y }
+ 34933 [ronjeffries@] Well, if you have inject defined, it's semi nice ...

[ANN] JTTui 0.10.3 - textmode user interface
34932 [j.travnik@sh] new version of JTTui has been released.

Re: parallel to until: as_soon_as
34936 [sean@ce so t] raise 'too many lines' if(@line_count > max)

rpkg 0.3 pre-release and beta testers
34941 [list@ch om t] I've just uploaded rpkg 0.3 to www.allruby.com/rpkg/rpkg-0.3.tar.gz
34942 [elanthis@aw ] I'm talking about: rpkg is a Debian's
34943 [elanthis@aw ] Erg... damned webmail clients...
34944 [list@ch om t] There are even tools that convert from .tar.gz to .deb (far from

[ANN] RubyStudio v. 0.1.5
34957 [gehlker@fa t] I'm kicking up the teeny version number of RubyStudio to 5 to celebrate the

Nested class definition in C?
34963 [cyclists@nc ] Is there a way to define a nested class in a Ruby C extension? The equivalent of
+ 34966 [ronjeffries@] What are you trying to accomplish?
+ 34969 [matz@ru y- a] Use rb_define_class_under().
  35026 [cyclists@nc ] Thanks! This is the info I needed!

RDoc and XML - opinions please
34971 [Dave@Pr gm t] OK - I've got RDoc generating some semblance of XML. It seems to
+ 34974 [james@ru yx ] Dave,
| 34975 [Dave@Pr gm t] That comes from a comment block in the user's code
| 34988 [melis@cs ut ] I'm haven't looked into Rdoc, but I know doxygen. Is there something like
| 34992 [Dave@Pr gm t] I _could_ but I'm wondering what the benefit would be.
| 34994 [james@ru yx ] There are advantages to just passing through a set up markup.
| 34995 [Dave@Pr gm t] But.. who defines the set of special headings?
| 34996 [james@ru yx ] That's a separate problem :)
+ 34977 [nahi@ke na t] Excellent job as usual!
  34980 [Dave@Pr gm t] Oops - thanks. Fixed it.

OT  A Question on work styles
34972 [gehlker@fa t] As a Mac baby I just had to step through ruby in GDB *from the command line*
+ 34976 [dan@si he or] If you've an X server installed (I use XDarwin from the Fink
| 34979 [gehlker@fa t] Thanks Dan. I didn't know about ddd. I certainly don't mind installing an
+ 34978 [vjoel@PA H. ] There is DDD (http://www.gnu.org/software/ddd/). It's a front end for
+ 34981 [matz@ru y- a] I use gdb-mode in Emacs.  It works on terminal too.
| 34989 [gehlker@fa t] Now *that's* gutsy.
| 35003 [comp.lang.ru] - - Huh? outside of ddd it beats the pants off any other gdb front
| 35005 [gehlker@fa t] On 2/28/02 8:58 AM, ";"
+ 34983 [mjais@we .d ] there is also the GNU Visual Debugger and the KDE project also has a
| 34990 [gehlker@fa t] Looks they would both work with an X server. Thanks.
+ 34987 [ronjeffries@] I've been using Ruby for what, over a year now, and I don't even know how to run
| + 34991 [gehlker@fa t] Don't ask me. I don't see the need for Ruby debuggers yet either. Ruby
| | 35000 [paul@at es .] Debuggers are useful for determining paths of execution.  I also find
| + 35001 [matz@ru y- a] FYI, copy rubydb2x.el (for Emacs 19.2x or earlier) or rubydb3x.el (for
+ 35025 [tim@ve et .a] I've no experience with OSX (or really, Macs, since the early 1990's),
  35028 [gehlker@fa t] Inside vim is close enough to "from the command line" for me. It's
  35037 [tim@ve et .a] If RubyStudio weren't OSX-specific, I'd take a look at it right now. But
  + 35039 [vruz@ru y- s] There's a project named FreeRIDE that intends to become
  + 35082 [gehlker@fa t] RubioStudio is really coming along. I'm about finished with auto formatting

RubyStudio's problem with -r solved
34973 [gehlker@fa t] The Cocoa docs say that you pass arguments to child processes in an array of

SV: RCR 65: IO orthogonalization, improved reusability
34985 [tsondergaard] ...
35034 [alwagner@tc ] My mail reader does not render utf-8 very well.

Interactive debuggers, (Better Subject)
34993 [mps@di co sy] I've used DDD in the past for Perl, C and C++ and I think it works

Matrix class in Ruby
34998 [jasa@da to .] Today I just played with the Matrix class (file matrix.rb) to solve
35111 [matz@ru y- a] I asked Keiju, who has been my friend for long time, and he replied
35222 [paul@at es .] Hmm, I see a matrix as more of a two-dimensional array with arithmetic
+ 35240 [vjoel@PA H. ] FWIW, Matlab has mutable arrays. But Matlab isn't a good standard to
+ 35257 [matz@ru y- a] Keiju still is considering providing "backdoor".  Stay tuned.
+ 35281 [jasa@da to .] """ (if you need further convincing, consider the performance implications

maillog daily statisctics
35006 [damien.wyart] Dear all,

DRb TupleSpace Example Poofter
35007 [edwardhatfie] I got excited about the DRb Tuplespace example
35009 [neumann@s- i] Sorry for that.
35023 [edwardhatfie] How Nice :-)  Thanks.  All is forgiven, please come home.
35032 [m_seki@mv .b] Have you started TupleSpace server(e.g. rinda.rb) which set up

[ANN]  RDoc with XML
35008 [Dave@Pr gm t] The latest RDoc in CVS (http://sourceforge.net/cvs/?group_id=42128)
+ 35051 [dblack@ca dl] I think that has to be https://etc.
+ 35055 [dblack@ca dl] ***************

Disabling everything
35011 [smiddle@tw .] What is the most failsafe way of disabling, from the C side of things,
35040 [decoux@mo lo] rb_set_safe_level(12); /* to put at the right place */

continued - Digest classes performance
35012 [tomas_brixi@] read method changed to sysread and voila :-)
35020 [matt@li ke .] IO is a lot faster with the ruby 1.7 versions, at least under windows.

Correct use of % (modulus) operator?
35013 [dmcnulty@mi ] Coming from a C background, I expected "%" to yield a remainder.
+ 35016 [sean@ce so t] In C, "5 % 2" yields 1.  2 goes into 5 only twice evenly, leaving a
+ 35038 [huber@al m. ] Coming from a C background, I would have expected you to expect this
  35053 [dmcnulty@mi ] Ack, quite right.  So I haven't actually *used* C for awhile :-)
  35079 [sean@ce so t] Well, 2 goes into 5 leaving only one.  I can't say with absolute certainty

Installation Help - Ruby Tk
35014 [mcjramsay@ya] I attempted to install Ruby with Tk on a 486 PC under SUSE Linux 7.0.
+ 35022 [bobx@li ux a] This may sound silly...but how are you calling it?
+ 35031 [kero@ch ee .] I should put this somewhere in my tutorial...
  35045 [mcjramsay@ya] /local/usr/ActiveTcl  (with subdirectories bin, include, lib, man..)
  35100 [kero@ch ee .] No, you need to specify the include path, not the install directory.
  35115 [mcjramsay@ya] Yes!  That has done it.  Ruby/Tk working fine now.

Time Comparison
35015 [sean@ce so t] I am using the time object to compare times between two files and I'm
+ 35017 [sean@ch tt n] It's not incorrect, Ruby Time objects are quite precise (ten
+ 35018 [sean@ce so t] Uh, skip this...I think I just have a timezone issue...hmm...

How to compile ruby with static libs only?
35019 [jim@fr ez .o] How does one compile ruby with static libs only?
35041 [decoux@mo lo] You have in the README
35073 [jim@fr ez .o] option nodynamic
35075 [decoux@mo lo] With this you say that you don't want dynamic modules

FXRuby: Reacting on changing values of FXDataTarget
35021 [Stephan.Kaem] I'd like to react on changing values of an FXDataTarget.
35030 [ljohnson@re ] You want to catch either the SEL_COMMAND or SEL_CHANGED message being sent
35044 [Stephan.Kaem] Thanks Lyle, it sound as if that's it. I'll try it when I'm back home... :-)

RubyGarden is down for a short while
35027 [Dave@Pr gm t] while I upgrade some software in response to a security advisory.

FOX Toolkit  goes 1.0
35029 [rich@in oe h] Congradulations to the FOX team...they went 1.0 today.

Intentional Programming
35036 [nojgoalbyspa] I seem to remember a discussion late last year about intentional
35117 [nojgoalbyspa] Noone here interested in Intentional Programming?  Anybody have an idea of
35120 [tom.hurst@cl] Hum, developed by the guy who came up with the most demended variable
+ 35121 [nojgoalbyspa] I guess some reply is better than none!!! ;-)
| 35455 [charleshixsn] Actually, it's a much worse situation than just the listed patents
| 35483 [nojgoalbyspa] This is taking this even more off topic but I would say that I personally
+ 35123 [rawlins@cs u] When I looked at the web page I thought something like this, though maybe more
  + 35125 [armin@ap ro ] I do not know much about IP, but I heard
  | 35130 [nojgoalbyspa] As far as I know that is true, hence the need for people outside MS to take
  + 35131 [nojgoalbyspa] Apologies for the cryptic email address.  Remove no and spam to reply
    35132 [armin@ap ro ] - does anybody know why they killed the project?
    + 35133 [vruz@ru y- s] MS gave a keynote at the OOP 2000 conference
    + 35135 [vruz@ru y- s] Another link on IP, featuring an interview to Simonyi
    + 35137 [nojgoalbyspa] John.
      35201 [Steve.Merric] Isn't there some similarity between IP and Aspect-Oriented Programming?
      + 35245 [nojgoalbyspa] They are normally mentioned in the same sentence and are both classes as
      + 35249 [avi@be a4 co] Both of them address the problem of having one concept (say,

Receive new FXGroupHorizontalBox ...
35043 [vladare@ya o] I the newbie with GUI.
35072 [ljohnson@re ] I'm not quite sure I understand what you're trying to accomplish. Do you

Ruby Regular Expression problem
35046 [olonichev@sc] I faced the problem of Regular Expression (RE) matching speed in real

Ruby Regular Expression problem
35047 [olonichev@sc] I faced the problem of Regular Expression (RE) matching speed in real
+ 35048 [Stephan.Kaem] Friedl's "Mastering Regular Expressions". The reason is that you don't have,
| 35054 [YuriLeikind@] Let's then convert (.)*  to .* , and use (?:)  to turn off
| 35057 [olonichev@sc] real
| + 35062 [tom.hurst@cl] This isn't going to help; all ?: does is turn off saving the match from
| | 35063 [decoux@mo lo] pigeon% perl -Dr -e '/X(?:.*..?.)+X/'
| | 35065 [olonichev@sc] Could you explain this output or/and send a link where Perl RE optimization
| | 35066 [decoux@mo lo] Guy Decoux
| + 35070 [matz@ru y- a] ..must... sigh..
| | 35071 [cbroult@sa i] ...
| + 35076 [dan@si he or] Any other NP-complete problems Ruby should solve while it's at it?
|   35153 [olonichev@sc] Don't understand what are these messages have to do with the problem.
|   35154 [lists@ap hi ] I think he just means that this is a classical problem for a regex
|   35156 [decoux@mo lo] Well, the problem is that the regexp engine of ruby was compared to the
+ 35050 [Stephan.Kaem] BTW, this terminates properly on my machine with ?n approx. 2 hours (which
  35052 [olonichev@sc] And It also works badlly if I put "(:?" instead of "(".

[ANN]  Natural Language Concordancer in Ruby
35056 [YuriLeikind@] A Natural Language KWIC(Key Word In Context) Concordancer

here documents as method parameter problem
35058 [mrp@cr .c no] $ ./tmp.rb
+ 35059 [decoux@mo lo] Write it like this
+ 35061 [Dave@Pr gm t] Try
  35067 [paul@at es .] That seems somewhat counter-intuitive.  What would I do if I had two
  + 35068 [decoux@mo lo] puts Tmp.new( 'foo', <<ENDB, 'baz', <<ENDC)
  + 35069 [Dave@Pr gm t] puts Tmp.new( 'foo', <<ENDB, <<ENDC, 'baz')

Just noticed: 1.6.7
35060 [Dave@Pr gm t] Seems to have been committed in the CVS logs. No official announcement
35064 [matz@ru y- a] I just updated www.ruby-lang.org; Other announcements shall be done on
+ 35074 [melis@cs ut ] Well, as a scripting language fanatic, I can assure you that all your
+ 35077 [bobx@li ux a] Weekend mode? Does that mean 12 hour days?  : )
+ 35078 [drosih@rp .e] Note that the web page at http://www.ruby-lang.org/en/
+ 35080 [jasa@da to .] In fact, only the link was updated in the What's New'  section of

druby question (bug?)
35081 [bhilton@vp p] I am experimenting with druby and have a couple of questions for anyone
35126 [m_seki@mv .b] I'm poor at English. I may not understand correctly what you say.

Seattle Ruby Users
35083 [pate@ey er a] Just a quick note to the ruby world at large.  Several Seattle area ruby

Like tail -f
35084 [jean@ch ou f] I have to make a little prog wich works like the "tail -f" command. It
+ 35085 [roktas@om .e] As an urgent help: you have to check the EOF (otherwise results with
| 35086 [jean@ch ou f] Salut,
+ 35091 [behrends@cs ] [tail -f lookalike]
| 35099 [jean@ch ou f] Salut,
+ 35105 [kjana@dm la ] <http://blade.nagaokaut.ac.jp/ruby/>....

35087 [hubert@cs ny] I am playing around with the Net::HTTP
+ 35104 [decoux@mo lo] Well, the documentation say that it raise TimeoutError
+ 35110 [hubert@cs ny] Well... I found out the error.