76990-78775 subjects 77356-82423

install questions
77157 [hal9000@hy e] I have been thinking about installation
+ 77163 [ben@th ng ag] I'm not completely sure I understand the question.  Are you saying that if
| + 77164 [hal9000@hy e] What I mean is: AFAIK there is no existing mechanism anywhere
| | 77165 [ben@th ng ag] That sounds like it would be very useful.  I wish you luck with it.
| | 77170 [hal9000@hy e] Don't want to wander too far OT... but I'm coding
| + 77168 [mwilson13@co] I think this would be a good idea. As to implemented practice in this
|   77172 [hal9000@hy e] Well, to clarify, I wasn't thinking of a general solution.
+ 77326 [carl@yo ng l] This is a much-needed feature!  I'm convinced that an auto-installer could

did you see this
77160 [bjtolson@gt ] hey there, i thought you'd like to check this out

77162 [brem3@gt .n ] hey its me again, i was wondering if you'd be interested in this site

77171 [argentoff@rt] Dear All,
77173 [decoux@mo lo] svg% ri Kernel::select
77217 [argentoff@rt] This is obvious, and I wouldn't ask the question if I was glad with this
77221 [decoux@mo lo] You make the confusion between Kernel::select and Enumerable#select

[OT] CGI security [Was Re: install questions]
77175 [ben@th ng ag] In that case, maybe.  If you hard-code the filename you're writing to, don't

Fishing for ideas: Ruby-talk for Java coders
77176 [armin@xs .d ] Stefan and I have the lucky chance to give a talk about Ruby to the IT-
+ 77177 [ben@th ng ag] * The ways in which Ruby beats Java in OO design
| + 77178 [damphyr@fr e] Well, I don't think going into a Java only house and saying Ruby beats
| + 77179 [mccallister@] As a full-time Just-A-Programmer using Java (at work), and a part-time
| | 77316 [martindemell] + Anonymous arrays
| + 77181 [djberge@qw s] * mixins (vs interfaces)
|   77182 [mccallister@] Hmm, while I haven't tried it... are you telling me that Ruby can do
+ 77180 [jon@sc ns ft] This is stuff I really like about Ruby coming from Java. In general I
+ 77184 [pete@mc re n] I would suggest the use of Ruby as a tool to assist in Java development
| 77186 [tom@in oe he] Ruby certainly is handy to compliment some of the more unwieldy Java
+ 77194 [rasputin@id ] 1) Iterators - Java forces you to write scaffodling, Ruby just does it.
| 77195 [rasputin@id ] Ooh! Almost forgot - portabililty.
+ 77329 [wsdng@on in ] As some others already said.
+ 77330 [contact@ma k] In my opinion, you should try to focus on language features (blocks,
| 77405 [B.Candler@po] How can you have interoperability wth vapourware??
+ 77337 [0bz63fz3m1qt] JRuby.. I never tried it?
| 77435 [armin@xs .d ] A big thx for all the ideas we got so far from the group.
+ 77344 [bob.news@gm ] I'd probably show similarities between Ruby and Java (to make them feel at
+ 77348 [surrender_it] they won't let java.

smtp.sendmail security
77183 [ng@jo nw on ] We are using the following code to send email messages from an online form
+ 77185 [kirindave@le] I'm surprised that Net::STMP lets you do that. It really should be set up so when taint checking is on, it won't let you do that. Suffice to say that is very bad. You shouldn't allow that to happen.
| 77209 [ng@jo nw on ] so when taint checking is on, it won't let you do that. Suffice to say that
+ 77222 [matz@ru y- a] Check will be added.  Thank you.
  77234 [chrismo@cl b] Can you elaborate on what this addition will do? I frequently use
  77235 [decoux@mo lo] * lib/net/smtp.rb (Net::SMTP::send0): add taint check.

Generating random numbers?
77187 [harryo@zi .c] Can someone remind me of the name for the class/method for generating random
+ 77188 [ben@th ng ag] irb(main):012:0> rand
+ 77189 [wkb@ai ma l.] Harry,
| 77192 [harryo@zi .c] Thanks!
| 77248 [orion2480@ho] Speaking of random numbers... I encountered a problem this morning with
| + 77249 [matz@ru y- a] No one can answer for you unless you reveal "something with the random
| | 77251 [orion2480@ho] The only thing it was being used for was for grabbing the element at that
| | + 77253 [hal9000@hy e] values,
| | + 77254 [michael_s_ca] calling srand() more than once doesn't make your numbers "more random".
| | + 77257 [matz@ru y- a] You don't need to call srand unless you want to reproduce random
| |   77258 [orion2480@ho] I completely understand why this would result in sequentially repeated
| |   77259 [hal9000@hy e] My guess would be that it was some kind of logic bug
| + 77255 [michael_s_ca] Call srand once, or don't call it at all.
+ 77190 [brandon@dv l] HTH,
+ 77333 [cedric.foll@] irb(main):001:0> rand(10)
+ 77457 [ jupp@gm .d ] Saluton!
  + 77462 [harryo@zi .c] That's a good question.  I'm no statistics guru, so I probably don't really
  + 77584 [paul@ar el r] Actually, Ruby's RNG isn't so great for Monte Carlo or discrete event

[ANN] Ruby 1.8.0 preview5 in PLD
77191 [aredridel@nb] just an announcement: ruby 1.8.0-preview5 is available in PLD's CVS tree, and should be available in the nest FTP area when the builder is done with it.

Respond soon
77193 [maryam.7@pi ] Dear Partner,

[somewhat OT] A Slashdot mention of RubyForge...
77196 [tom@in oe he] Yours,
+ 77201 [james_b@ne r] Ohh, and I have moderator points again!
| 77328 [spam@de k. k] you must have stolen mine! Thief! I had 5 yesterday, now they are gone!
+ 77345 [ jimm@io co ] Thanks. Now I know where to spend my five shiny mod points.

Parser generator
77197 [rodrigob@in ] ...
+ 77205 [mwilliams@ag] 'racc' is pretty stable, I think.  'rockit' is newer, but includes
| + 77228 [rodrigob@in ] Thanks, I'll give them a try!
| + 77229 [batsman.geo@] Last time I used rockit (a couple months ago), it just didn't make it
+ 77342 [surrender_it] dunno what you mean for 'mature' but look on RAA for RACC and rockit.
  77469 [feldt@ce ch ] gabriele renzi <surrender_it@rc1.vip.ukl.yahoo.com> skrev den Wed, 30 Jul
  77520 [feldt@ce ch ] I agree.
  + 77532 [maillist@be ] Why would you want a native Ruby parser generator???  I am not trying to
  | 77546 [feldt@ce ch ] maillist@bestworldweb.homelinux.com <maillist@bestworldweb.homelinux.com>
  | 77591 [mailinglists] I really doubt that scripting languages offer faster implementation of
  + 77568 [drbrain@se m] Well if you aren't in too big of a hurry, there's a pure Ruby Coco/R
    77573 [feldt@ce ch ] Is this a new port or are you referring to the Coco/Rb in RAA?
    77578 [drbrain@se m] =20

RPM spec for ruby 1.8.0-preview5 for Mandrake.
77199 [john.carter@] Here is an RPM spec for ruby 1.8.0-preview5 that works for Mandrake 9.
77202 [ben@th ng ag] Interesting.  I've never really looked inside an RPM spec file before,
77212 [aredridel@nb] You might check the latest PLD from the cvs tree at cvs.pld-linux.org,
77214 [ian@ca ib n.] Better yet, modify the line so that Ruby is used during the build, not

Ruby web-application frameworks
77204 [mccallister@] I am looking for a webapp framework that nicely seperates out View
77226 [rasputin@id ] Education is the process of casting false pearls before real swine.
77233 [mccallister@] Except that Struts won't do what I want - it keys the View control off

Singletons as globals and GC
77206 [ben@th ng ag] Although Ruby allows the use of global variables, I still prefer not to
+ 77223 [matz@ru y- a] I don't know what you meant.  If w1 is referenced from somewhere, w1
| 77238 [ben@th ng ag] Sorry I wasn't more clear.  I meant to give a case where there are no more
| 77239 [decoux@mo lo] svg% cat b.rb
| 77241 [ben@th ng ag] Ah, how cool.  I have never (knowingly) encountered a class instance variable
| 77407 [wsdng@on in ] Just another warning. I don't know how to control the instance
+ 77327 [wsdng@on in ] Classes are global and a singleton instance will be referenced by a

Newbie question (originally: smtp.sendmail security)
77207 [xrfang@ho ma] Although I have been using Ruby for quite a long time and I love it. I

Documentation for standard library -- what format?
77208 [wew@wi li mw] I'm a bit confused as to what is meant to be the standard
+ 77219 [jbritt@ru y-] RD was the first, or one of the first, formats used to document code.
| 77338 [airboss@no e] With due respect to the authors of RDoc, I have to confess that I'm a
| 77364 [dave@pr gp o] Eventually ri and rdoc will be integrated, and you'll have your wish
| 77389 [james_b@ne r] In the interim there is Rimport, which aids in geting RDoc output into ri.
+ 77225 [gsinclair@so] There is an ongoing, though not very active, project to document the
  77231 [wew@wi li mw] Thanks to James and Gavin for their responses.  I've subscribed

How do I tell when my CLI output is piped?
77210 [dlandrith@ma] I've written several simple command line tools in ruby to display
77211 [harryo@qi so] In C, this is normally done using the standard library routine isatty(file_descriptor) which returns non-zero when output is going to a terminal.
77215 [dave@la dr t] Works perfect!  Thanks!
77216 [harryo@qi so] Don't thank me; thank Matz :-).

RPMs of Ruby 1.8.0 preview 5 for Red Hat Linux 9
77213 [ian@ca ib n.] As usual, RPMs of the latest Ruby 1.8.0 preview release can be found

1.8.0preview5 breaks VIM
77218 [ian@ca ib n.] It seems that the rb_defout symbol was removed a couple of days ago.
77265 [ruby-talk@gr] Indeed, I've found the same thing.  I'm not familiar with Ruby
77365 [ruby-talk@gr] See http://article.gmane.org/gmane.editors.vim.devel/4088 for a patch to

77224 [halilu_akilu] City Bank Of Nigeria Plc

77227 [tim@ba es id] I've recently got around to reinstating some of my old Ruby apps after a
77242 [matz@ru y- a] You've inspired me to add a way to stop all warnings.  In the near
+ 77252 [mdavis@se as] How about a way to trap warnings similar to rescue Exception so we can trap and suppress certain expected warnings?
| 77256 [matz@ru y- a] Since warning is a mere message, not exit like exceptions, it is more
| + 77262 [mdavis@se as] I can appreciate the difficulty, however, I would rather not suppress all warnings and yet I have code that generates warnings that are okay.  Will it be possible to turn off warnings and then turn them back on again at runtime?  This would at least provide me an option to disable warning messages during methods that generate warnings.
| | + 77263 [austin@ha os] irb(main):001:0> class WarningException < Exception; end
| | + 77264 [ben@th ng ag] When you say you have "code that generates warnings that are ok", you
| + 77339 [bob.news@gm ] "Yukihiro Matsumoto" <matz@ruby-lang.org> schrieb im Newsbeitrag
|   77341 [surrender_it] I proposed a think like this !
+ 77260 [tim@ba es id] What can I do in the meantime?  One of my curses-based apps is
| + 77261 [ruby-talk@wh] $stderr.close
| + 77390 [martindemell] Somewhat far-out, but could AspectR be used to redirect $stderr
+ 77431 [pbrannan@at ] How can this feature be accessed from inside Ruby code?
  77450 [matz@ru y- a] $VERBOSE = nil   # to make it silent
  77459 [mdavis@se as] Thanks, this worked great.

Re: Digest Articles 77163-77218 (1/5) (ruby-talk ML)
77230 [andre@sy po ] matome 0

[OT] Vim and ruby_no_expensive 'mode'
77236 [djkea2@mu ca] Is anyone using the ruby_no_expensive 'mode' for vim syntax
+ 77240 [gsinclair@so] I've never heard of it. :)
+ 77245 [lone-star@ho] let ruby_no_identifiers = 1
+ 77246 [austin@ha os] I find the two options there counter-intuitive (most syntax items use if

ruby-dev summary 20715-20940
77237 [ksaito@ur nu] This is a summary of ruby-dev mailing list.

Bug or feature in Ruby (1.80.pre4)
77243 [gour@ma l. n] While attempting to compile and tweak extconf.rb for wxruby bindings
77247 [eban@os ri .] No.  MinGW ruby is a navite win32 application.  It does not
77383 [gour@ma l. n] Thanks.

ruby-postgres for windows?
77268 [carl@yo ng l] Does anyone know where I can find some precompiled binaries for
77273 [carl@yo ng l] Just to clarify, I'm using the windows installer version from

[ANN] RMagick moves to RubyForge
77274 [cyclists@nc ] RMagick has taken up residence at RubyForge. I'm leaving the old web page

cgi traceback
77279 [jolsen@ma l2] Is there a way to configure the ruby cgi module to give
77399 [B.Candler@po] You can just trap the exception and display it.

[ANN] Ruby-Wise 0.6.15
77283 [kero@ch ll .] Ruby-Wise is a native WIdget SEt for Ruby. Currently it can only use X11

Passing a method block to a parent class
77290 [eric.anderso] If I have
+ 77286 [dooby@d1 .k ] super   #    <----------------###
+ 77287 [swap@gm .n t] The above is equivalent to
+ 77295 [markjreed@ma] To pass blocks around you have to use proc arguments.
  77401 [B.Candler@po] class B < A

Builtin objects namespace
77296 [eric.anderso] What namespace are the builtin objects? I want to create an object in
+ 77293 [swap@gm .n t] The ``Builtin'' Namespace is called Object - so write
+ 77294 [surrender_it] I think you can always refer to the root namespace with
+ 77377 [bystr@ma .c ] Use ::Hash to refer to the top level class.

is it possible to pipe ruby to more / cat / arbitrary programs?
77298 [tuanbui@cr y] Good morning,
+ 77324 [bob.news@gm ] "Tuan Bui" <tuanbui@cray.com.nospam> schrieb im Newsbeitrag
+ 77402 [B.Candler@po] I posted a solution which I think does what you want at
+ 77563 [tuanbui@cr y] After spending a few days on this, it seems that redirecting output
  + 77569 [bob.news@gm ] "Tuan Bui" <tuanbui@cray.com.nospam> schrieb im Newsbeitrag
  + 77574 [mwilson13@co] I tried less and more in irb with both backticks and using shell.rb.

XML in Ruby (or C++?)
77313 [jpmprb@sa o.] Dear Ruby users,
+ 77378 [bystr@ma .c ] I would suggest that you look at xml-simple on RAA
+ 77403 [B.Candler@po] There are several XML parsing libraries for Ruby; the one which seems most
+ 77427 [brett_willia] If you find performance to be an issue with the Ruby-only based parsers,

Re: -3 / 10 = -1  ?!
77314 [markjreed@ma] Because -1 == floor(-3/10).  Truncation toward zero, which is the usual
77334 [denshimeiru-] It's doing the "mathematical" division.
77360 [john_b_andre] Thanks to Rudolf and Mark for answering my question.
77361 [denshimeiru-] That is, use the integer type of the platform you are using. Its behaviour

File.open{} , huge files and gc
77317 [surrender_it] I just came across a diuscussion about C++ smart pointers and Python's
+ 77299 [tcfelker@mt ] The price you pay for not needing to keep track of the ownership and
| 77308 [surrender_it] well, the point is that in refernce count GC I can be sure that fd is
+ 77310 [bob.news@gm ] "gabriele renzi" <surrender_it@remove.yahoo.it> schrieb im Newsbeitrag

[ANN] filemagic
77319 [whitton@at a] FileMagic is a Ruby binding to the magic(4) library, which you may know better

1.8.0 Segmentation fault
77320 [graham@ta co] I have been experiencing problems with the 1.8.0 (MSVC build) causing

preview4 debugger bug?
77325 [cyclists@nc ] It seems to me that the debugger in 1.8.0preview4 always acts as if I've
+ 77370 [nahi@ke na t] Though I don't remember such a problem with preview4 or the
+ 77379 [chrismo@cl b] Yeup. Matz fixed it in p5. http://ruby-talk.org/76914

procfs.h problems (continued)
77336 [djberg96@ho ] -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
77443 [djberge@qw s] Note for those interested - building ruby with the --disable-largefile

Reading an integer out of 1..3 bytes
77351 [surrender_it] I'm working on a tiny dumb client for the Gnutella2/MP network, and I
+ 77441 [guslist@fr e] l = packet[offset_to_payload_length_field].unpack("c#{len_len}")
+ 77618 [mghall@en er] Like with String 'unpack'?
  77639 [surrender_it] possibly.. but how actually use it?

Ruby could be wildly more popular if it had ...
77354 [quixoticsyco] Brackets.
+ 77340 [tim@ve et .a] [ snipped vast majority of farce ]
+ 77343 [kentda@st d.] [snip balmy bracket babel]
| + 77350 [bob.news@gm ] "Kent Dahl" <kentda@stud.ntnu.no> schrieb im Newsbeitrag
| | 77382 [jweirich@on ] I tried this style for a while.  But then every time I added lines to a
| | 77388 [gsinclair@so] My take is: {} are for functional blocks; do..end for procedural blocks.
| | 77536 [arthur8@bo r] This sounds very interesting.  Can you expand upon this a little?
| | 77539 [bob.news@gm ] "Arthur" <arthur8@boardermail.com> schrieb im Newsbeitrag
| | 77562 [gsinclair@so] Precisely.  Some blocks are called to _do_ something, and some are
| | 77567 [bob.news@gm ] "Gavin Sinclair" <gsinclair@soyabean.com.au> schrieb im Newsbeitrag
| | 77642 [gsinclair@so] - in my code snippet, "something", "e.x", and "e.y" were placeholders
| | + 77657 [chris@m- ud ] Also
| | | + 77683 [bob.news@gm ] "Chris Thomas" <chris@m-audio.com> schrieb im Newsbeitrag
| | | + 77694 [martindemell] The ternary operator is *useful*, as evidenced by the fact that people
| | |   77696 [4mschulz@in ] ???
| | |   + 77708 [xrfang@ho ma] The beauty of ruby is its tolerance. I use delphi heavily, also Java
| | |   + 77766 [ jupp@gm .d ] Saluton!
| | |     77818 [austin@ha os] "The End Justifies the Means", in English.
| | |     77855 [ jupp@gm .d ] Saluton!
| | |     77858 [mgarriss@ea ] Could you take this discussion off the list please.
| | |     77910 [ jupp@gm .d ] Saluton!
| | |     + 77911 [B.Candler@po] But then they are just 3-5 character parentheses, not 1-character
| | |     | 77931 [denshimeiru-] function main(argc: integer; argv: array of string): integer;
| | |     + 77929 [bob.news@gm ] "Josef 'Jupp' Schugt" <jupp@gmx.de> schrieb im Newsbeitrag
| | + 77682 [bob.news@gm ] "Gavin Sinclair" <gsinclair@soyabean.com.au> schrieb im Newsbeitrag
| + 77425 [michael_s_ca] Or to have bracket-aware editors be able to fold, bracket-match, etc.
+ 77371 [aredridel@nb] Nice, clean, reads like english.  Flexible indentation, but language
| 77445 [drosih@rp .e] The one nice thing about brackets is that editors know how
| 77755 [austin@ha os] Vim can match do/end blocks, and folding is already done by it.
+ 77387 [james@ja es ] <snip amount='lots' />
+ 77392 [fritz.heinri] .... a look like javascript on steroids.
| + 77404 [B.Candler@po] Maybe it would be more popular with Perl programmers, but you wouldn't have
| | 77409 [maillist@be ] Ruby does have semicolons, but they are optional...
| + 77410 [xrfang@ho ma] Javascript's semicolon is also optional. Javascript is one of my
|   77507 [maillist@be ] Have you used a PHP debugger? Or do you just click the refresh button in
|   77519 [xrfang@ho ma] A programmer's feeling is important to him/herself... It does not mean
|   77531 [maillist@be ] Maybe so, but then if you care to use the ; in ruby, that defeats your
+ 77455 [ jupp@gm .d ] Saluton!
| 77463 [james_b@ne r] Becauae of the obvious criitcal differences between ( ) and { }.
| 77495 [flori@ni e. ] I don't like either of them. Because of the motto "Ruby makes
| 77499 [madsen@sj ve] [snip "all the fun stuff"]
+ 77780 [androflux@so] Okay, I will.