79770-81012 subjects 80257-80940

Re: ruby chop! error
80041 [sdate@ev re ] I think you are using slice! when you mean to use split

trailing slash issue in Find.find
80051 [quixoticsyco] require "find"
80105 [androflux@so] ~$ ruby -v

Wierd problem reading fields in a tab-delimitted row...
80053 [keuler@po ta] Everyone--
80054 [dblack@su er] Technically, I think, it's that split stops adding values to the
80111 [keuler@po ta] David-
80125 [dblack@su er] str.empty?

Any sample code where ruby is used in the Eclipse devepment environment?
80071 [aix_tech@ya ] I installed Eclipse and the ruby plug-in for it.
80102 [nathaniel@NO] At this point the Ruby Eclipse plugin only allows the
80198 [aix_tech@ya ] Thank you Nathaniel.
80218 [dcorbin@ma h] Now there's a good idea.     Elsewhere I suggested the ability to call
+ 80223 [rodrigo.berm] Take a look at
+ 80269 [surrender_it] I think Mauricio Fernandez is working on a bridge beetween ruby and
  80369 [batsman.geo@] I'm now re-implementing the stuff in C to make it faster.
  80578 [aix_tech@ya ] I am not sure what the AIX comment is all about, but
  80586 [michael_s_ca] What do you mean by "estable"?  I'm not familiar with the term.
  + 80587 [hal9000@hy e] I assumed it was a typofor "stable."
  | + 80590 [michael_s_ca] <D'oh!>  Of course.  *chuckle*... thanks.  =)
  | | 80591 [hal9000@hy e] It does look like "nestable" with a missing n.
  | | + 80592 [michael_s_ca] hah, I considered that, but it was almost too easy.
  | | + 80595 [aix_tech@ya ] I must admit that your reply was/is funny.
  | + 80594 [aix_tech@ya ] Well, since I am just a neophyte on the subject, I can
  + 80597 [easco@ma .c ] It's probably just the word "Stable".  I would guess that Ludwigi
    80606 [aix_tech@ya ] Obviously it was a typographical error. But I was so
    + 80609 [michael_s_ca] I was not being sarcastic; I honestly didn't see the "obvious" typo, or I would
    + 80615 [hal9000@hy e] I honestly don't know what sarcasm you're talking

Ruby newbie Q: Do I have a damaged copy of PickAxe
80076 [Meino.Cramer] While reading through "The PickAxe" "Programming in Ruby" I found
+ 80079 [Golgatha@gm ] I don't know why the figures are missig but I'v got something for you.
| + 80096 [Meino.Cramer] Thanks for the link! :)
| | 80109 [Dave@Pr gP o] Converting the book fro the original LaTeX proved to be harder than I
| | 80162 [Meino.Cramer] Thank you for your reply and for the PickAxe, of course !
| + 80097 [Meino.Cramer] me again!
+ 80117 [juergen.kati] I can assure you that the german translation is very precise. I think it
  + 80130 [gentoo@xa ie] Please allow me to jump in this thread.
  + 80164 [Meino.Cramer] Thanks for your reply !

Apollo, hidden password
80080 [helmut.brugg] for some days I work with Ruby 1.6.8 and Apollo 0.636 to use GUI
80085 [repeater@lu ] i don't think so, most of the apollo users are japanese speaking, and it
80176 [helmut.brugg] edit_pw.password_char = 43 #-->*****
80177 [hal9000@hy e] I am not sure whether this is a bug or a feature. In general,

Re: Tk: non-default font 16 x slower
80084 [wybo@se va y] font => 'Courier'

Ruby tcltklib includes a Tcl interpreter
80087 [mwilson13@co] I just discovered something I didn't know that I think others might be

[OT] ruby post
80088 [kdresner@cs ] Someone posted something a day or two ago about how much they liked Ruby
80093 [kdresner@cs ] -Kurt

fxRuby and errors
80090 [fredde@po ox] I just started to make my first 'real' application using Ruby and
80092 [vjoel@PA H. ] Thread.abort_on_exception = true
80095 [fredde@po ox] Yes, that worked perfectly. Thanks.
80202 [vjoel@PA H. ] I'm not really sure either, but your explanation makes sense, and here's

80103 [webmaster@12] ̥顼祪ȥեץ

How did this variable become negative?
80108 [pmak@aa ni e] ./throttle.rb:42:in `/': divided by 0 (ZeroDivisionError)
80118 [batsman.geo@] As you point out, your code is not threads-safe

80110 [yaoyao@an oz] ...

ANN: wxRuby 0.1.0 Alpha has been released!
80112 [curt@hi bs c] The code itself has been quite stable for several weeks. This release
80133 [mjais@we .d ] great!
+ 80140 [curt@hi bs c] I'm not a Linux user. I suggest you subscribe to the wxRuby ML and get
+ 81115 [wsdng@on in ] Have you enabled the support for GTK2 in wxWindows?

80113 [pa_zubby@ti ] ADEMOLA ADETOKUNBO STREET

80114 [pa_zubby@ti ] ADEMOLA ADETOKUNBO STREET

80115 [pa_zubby@ti ] ADEMOLA ADETOKUNBO STREET

Ruby 1.8.0 now on Fink
80119 [mwilson13@co] ...

RAA proposal - Add 'maintainer' field
80120 [mwilson13@co] In light of the size of RAA and the ambitiousness of many projects, I

MIME::Tools (was Re: Ruby & Perl)
80123 [gsinclair@so] Could you give a quick description of it, and explain what's so good

80126 [Dee.Jacobs@D] Can you help me understand the scope problem that occurs at line 18 in my

80127 [Dee.Jacobs@D] Sorry, bad cut and paste job.
80201 [vjoel@PA H. ] Works ok for me, after I changed the paths to the icons to find them on

autoconf for 1.8.0
80128 [jim@fr ez .o] While trying to install the stable version of Ruby
80129 [keith@fl t2 ] It's the Gnu macro processor (autoconf makes heavy use of macros)
80132 [jim@fr ez .o] Can you give me a URL to download the macros.
80134 [keith@fl t2 ] It's the actual processor, rather than the macros.
80138 [jim@fr ez .o] Ah, your're right. My ./configure must have been removed by accident.

Specification of Ruby regex?
80135 [  rhp@ds .n ] I was just wondering... Is there any place where Ruby's Regex
80159 [gfb@to es ft] Pickaxe is your best friend (ideally, the hardcopy). Some information may be
80204 [  rhp@ds .n ] There is certainly a lot of information there, but I have the feeling
+ 80206 [mwilson13@co] Ruby's regular expressions are almost identical to Perl's. The Master
| 80292 [B.Candler@po] Except where they are different. The biggest glaring difference is that
| 80297 [mgarriss@ea ] what do ^ and $ mean then?  they do match start and end for me.  what
| 80299 [hal9000@hy e] Correct me if I'm wrong. (Famous last words on most newsgroups.)
| + 80323 [spoon@de la ] In Perl's multiline mode (/m), yes.
| + 80336 [sabbyxtabby@] In Ruby, ^ and $ match the start and end of *lines* not strings.
|   80364 [hal9000@hy e] Quite right, thank you.
|   80493 [B.Candler@po] In that case you are fine. But if a string is coming from an untrusted
+ 80211 [cyclists@nc ] In the paper version of the Pickaxe r{m} is described on
| 80212 [emmanuel.tou] does ruby support named matches (sorry i don't know the proper terminology)?
| + 80213 [gsinclair@so] I'm 99.99% sure it doesn't.
| | + 80216 [ms@ia ta e. ] Is this helpful at all?
| | | + 80219 [emmanuel.tou] sure, i just asked for this particular feature "because it's cool", and
| | | + 80226 [flori@ni e. ] year, month, day =  /(\d{4})-(\d{1,2})-(\d{1,2})/.match(s).captures
| | |   80232 [ms@ia ta e. ] ...
| | |   80233 [decoux@mo lo] it add $&
| | + 80267 [austin@ha os] The latest Oniguruma supports it. I'm not sure how to use/enable that, but
| + 80215 [martindemell] I started doing this (xregex: http://zem.novylen.net/ruby/index.html),
| + 80295 [rjp@fr tt ge] [Posted and Cc'd]
+ 80239 [gfb@to es ft] characters,
  + 80250 [fxn@ha hr f.] Now that we are on it and just out of curiosity is there any particular
  | 80254 [decoux@mo lo] /s means that you want to work with SJIS codeset
  + 80328 [  rhp@ds .n ] Thanks for all the feedback. Apparently I have to increase my search
  | 80330 [hal9000@hy e] There's a reasonably good summary in chapter 1 of _The Ruby Way_.
  + 80335 [sabbyxtabby@] r {m}  matches exactly ``m'' occurrences of r.
    80344 [Dave@Pr gP o] Good point - I've noted the update...

Multi OS install
80136 [jim@fr ez .o] I am in the process of configuring an install of Ruby

ruby-dev summary 21192-21253
80137 [ksaito@ur nu] This is a summary of ruby-dev mailing list for the

problem (?) with ruby handling 10^7 elements in one Array
80144 [surrender_it] I was doing some little tests with various 1.8 new idioms and in
+ 80145 [dan@si he or] Sounds like you started swapping at that point, then finally ran out of
+ 80146 [ben@th ng ag] This may be a dumb question, but could it be the physical memory of the
+ 80151 [surrender_it] DOH!
  80156 [hal9000@hy e] I think it may, since in other languages a float is

Re: [Wxruby-users] RE: ANN: wxRuby 0.1.0 Alpha has been released!
80147 [wxRuby@qu li] I'm using wxwindows 2.4.0 with GTK2 and Ruby 1.8.0.

Ruby launching system apps?
80157 [falseflyboy@] I have a UNIX machine and I want a ruby app that can launch UNIX commands
+ 80160 [jim@fr ez .o] Either
+ 80161 [gfb@to es ft] The simplest way is to use "system" or `` (you can use Shell too, of
+ 80166 [mgarriss@ea ] `cat some_file`          # returns string of stdout
+ 80175 [mwilson13@co] I've found that when you have a program that makes use of UNIX commands
  + 80182 [markjreed@ma] The Shell module lets you invoke UNIX commands, but bear in mind
  | 80186 [mwilson13@co] Avoid premature optimization. If the inefficiency is a problem,
  | + 80187 [mailinglists] I hear this a thousand times, but this makes it not more truth.
  | | + 80188 [dblack@su er] Then it isn't premature :-)
  | | + 80189 [mgarriss@ea ] "Avoid premature optimization. If the inefficiency is a problem,
  | + 80258 [dagbrown@LA ] On the other hand, always think of the poor schmuck who has to
  + 80224 [rodrigo.berm] on ruby 1.6.8
    + 80225 [rodrigo.berm] ...
    + 80230 [flori@ni e. ] I don't think that it is fair to compare ruby with sed because Ruby's
    + 80231 [jason@ja on ] Wrong comparison, given the subject of the thread. Invoking sed

Extra Array methods?
80167 [mgarriss@ea ] class Array
+ 80168 [andre@di ir ] I believe that #any? and #all? are what you want.
| + 80169 [mgarriss@ea ] Ah!  Thanks.
| + 80170 [mgarriss@ea ] Now I see that #detect is in Enumerable.  Doh!
+ 80199 [androflux@so] <blush>

INI file access from Ruby
80171 [Stephan.Kaem] if you need to parse/access INI files - what are you using? (whatever
+ 80196 [tksano@m3 kc] I don't know what's included in the PragProg installer for
+ 80294 [rjp@fr tt ge] You reminded me that I knocked up a quickie version of Perl's Config::Ini
  80487 [Stephan.Kaem] Takashi, Rob thanks for your answers.

1.8.0 pb
80174 [wilmot@cl b-] I have experiencing a quite strange thing when I tried to
+ 80192 [matz@ru y- a] Hmm.
| 80275 [wilmot@cl b-] Matz, I can give you my wrapper code but I'm afraid it's too big (116
| 80313 [nobu.nokada@] Yes.  But you define a instance method "create" instead of a
| 80391 [   aa@aa co ] yes, you are right... passing a self instance instead of class
| 80407 [nobu.nokada@] It caused crash in fact, so now it is checked in 1.8 CVS head.
+ 80197 [nobu.nokada@] I can't see the intention of the code.  Is rb_foo a subclass of

Using a trace function with multiple threads
80178 [fjoanis@vi e] I'd like to know if the set_trace_func function works on a "per
80179 [mailinglists] Read the source code of the debugger. You find your answer there.

SUN 1.8.0   Build Patches - SUN Workshop 6.1
80181 [michael.l.sc] I just built SUN and ran the rinda examples that were giving me

80184 [matju@sy pa ] So Ron Jeffries originally expressed interest in my project, called

Email and smtp.sendmail security vulnerabilities?
80185 [ng@jo nw on ] I've created a small class and supporting methods for sending email from a
80210 [hgs@dm .a .u] That is your security problem in itself.  Far better would be to
80220 [ng@jo nw on ] from
80221 [hgs@dm .a .u] This is open to the same kind of abuse.
80268 [JLong@ib p. ] How would you suggest we implement this feature on our web site?
+ 80305 [sean@cS Pl o] The only way for a someone to do something evil with your body message
+ 80339 [decoux@mo lo] The good question is, perhaps, why do you want to add such feature when
  80350 [nathaniel@NO] <html>
  80353 [ng@jo nw on ] We've considered this, but it has the disadvantage of not being able to work

reply for your message
80191 [matz@ru y- a] I'm sorry for confusing yours and Ryan's project.

Impatient Newbie Question: "Self-Compiled..."???
80193 [dhtapp@co .n] I've snagged the Ruby Nutshell book (which is jam-packed full of stuff that
+ 80195 [harryo@qi so] Can you give us a reference (eg, page number, if you saw it in one of the Ruby books)?
+ 80203 [dooby@d1 .k ] If you're referring to:-
| + 80311 [dhtapp@co .n] That's the answer I needed...thanks!
| + 80387 [helmut.brugg] Of course you can compile ruby scripts, look for 'exerb'.
|   80396 [james_b@ne r] This does not compile anything.  It packages your Ruby application along
+ 80207 [mvondung@gm ] If you are very new to Ruby and don't have a complex programming

80200 [royal_assets] Attn,

Environment, behavior, and scripting
80208 [wsdng@on in ] "It's a question of priorities, and support for dynamic languages

Freezing OpenStruct
80214 [gsinclair@so] The irb session below demonstrates that OpenStruct objects (part of
+ 80228 [matz@ru y- a] I forgot to check frozen status.  Thanks.
+ 80229 [flori@ni e. ] ===================================================================

Another Ruby-powered site
80217 [tom.hurst@cl] After only bothering with PHP for web stuff, I now feel like I could
80276 [surrender_it] and a useful service, btw...
80278 [michael_s_ca] Neat.  Another of the same ilk is http://tinyurl.com/, which doesn't
+ 80279 [mgarriss@ea ] And tinyurl.com doesn't call you a dumbass for entering a invalid url! ;)
+ 80281 [aredridel@nb] qurl lets you set that option under "preferences"
| 80286 [michael_s_ca] Fair enough.  I'd still prefer that to be the default, but to each
+ 80285 [tom.hurst@cl] I deliberately made it optional, because some people like to see the URL
+ 80293 [martindemell] A not unmixed blessing - /.ers have already speculated on the
+ 80338 [mvondung@gm ] But qurl.net is Ruby *and* FreeBSD driven! Those are two good reasons to
  + 80351 [michael_s_ca] I see the smiley so the intent here isn't lost on me.  Playing
  | 80432 [tom.hurst@cl] No religion here; Ruby and FreeBSD are simply what get the job done best
  | 80433 [decoux@mo lo] Try something like this (this is just an example)
  | 80434 [decoux@mo lo] bad, bad : I've forgotten #[]
  + 80397 [ jupp@gm .d ] Pax vobiscum,
  | 80445 [mvondung@gm ] You saw the ";)" smiley at the end of my article, I hope! :)  I'll admit
  | 80454 [hal9000@hy e] It's a catch-22. They will add more books when the existing ones are
  | 80473 [Dave@Pr gP o] ...
  | 80492 [fredde@po ox] Does it count that I happen to have both 'The Pragmatic Programmer'
  | + 80496 [Dave@Pr gP o] I'm not aware of _any_ money coming from the books on Safari, but
  | + 80516 [hal9000@hy e] As to the Safari thing: Would you believe I don't know much more
  + 80541 [surrender_it] just add PostgreSQL and you'll se another example of the most common

newbie with inheritance issues...
80234 [jon@cs il mi] just to try and wrap my head around ruby I'm attempting to build a
80240 [decoux@mo lo] You are working with 1.6.8, no ?
80255 [jon@cs il mi] Yes.

[BUG] Incorrect TCPSocket errors
80235 [NOSPAMcs96an] I'm using ruby 1.8.0 on windows 2000.  I've discovered that when
+ 80236 [NOSPAMcs96an] Sorry, I managed to hit ctrl+enter before I'd finished typing this.
| 80237 [nathaniel@NO] Just thought I'd throw in my $0.02 on this... I've seen this problem as
| 80314 [matz@ru y- a] Usa, the win32 maintainer told me he committed fix last night to the
| 80534 [NOSPAMcs96an] matz@ruby-lang.org says...
+ 80282 [bdelmee@ad a] That's not stange at all, but very well documented.
  80535 [NOSPAMcs96an] bdelmee@advalvas.REMOVEME.be says...

profilier issues???
80238 [walter@mw ew] I have a program that does a lot of file IO, multiple DBI DB access,
80272 [mailinglists] Welcome to the world of "proof-of-concept" ruby tools.
80274 [mgarriss@ea ] Isn't your company trying to build a ruby debugger to sell?
80284 [lyle@us rs s] If he is, is that a bad thing?
80287 [mgarriss@ea ] No, not in theory.  However one might be a bit biased about a free

80242 [mgarriss@ea ] Anyone know why Array#uniq returns an array in every case and
+ 80244 [michael_s_ca] return
| 80264 [billk@ct .c ] I thought Matz had said it was because there'd be no equally
| + 80266 [michael_s_ca] Interesting.
| | 80283 [mwilson13@co] I've thought about this for awhile and had on my to do list a catalog
| | 80291 [hal9000@hy e] [snippage]
| | 80304 [jfh@ci e. fl] Hmmm...what if they could take an argument that allowed the user to
| + 80341 [matz@ru y- a] You guys are right.  I've said both.
+ 80245 [kdresner@cs ] The exclamation point usually means that the array is modified in place,
| + 80248 [mgarriss@ea ] I'll just use '(a = a.uniq).some_method' to keep it in place.  In my
| + 80256 [flori@ni e. ] This doesn't work: Array#uniq! just returns the now changed receiver.
+ 80246 [decoux@mo lo] Well, you can look at the thread
+ 80253 [flori@ni e. ] Array#uniq! modifies the receiver, you should not rely on the objects
  80259 [mgarriss@ea ] Just such a disaster prompted my original post.  It turned out that in