90364-90926

90140-91167 subjects 90574-92940

Initial Problem...
90364 [me@pr va y. ] well, I'm trying to run an example rb-script, but I keep getting

gsub oddity?
90375 [ralph.mason@] What am I missing here.  I am trying to replace a single quote with the
90377 [markjreed@ma] You're missing an extra level of processing applied to the replacement
90395 [bob.news@gm ] "Mark J. Reed" <markjreed@mail.com> schrieb im Newsbeitrag
+ 90404 [mike@st k. o] You can make life a little easier by picking a quote other than ' to
| + 90407 [bob.news@gm ] "Mike Stok" <mike@stok.co.uk> schrieb im Newsbeitrag
| + 90430 [hal9000@hy e] I'm the maintainer of the comp.lang.ruby FAQ, which (mainly) deals with
+ 90418 [markjreed@ma] Did you not read the rest of my post, when I pointed that out and
  90468 [bob.news@gm ] "Mark J. Reed" <markjreed@mail.com> schrieb im Newsbeitrag

Boost Protein Expression by Codon Optimization
90378 [service@ge s] Dear Colleague,
+ 90396 [joe@no ch rl] This is the most surprising spam I've ever seen.
| 90419 [jrb3@ei og n] You think you're surprised?  I work for a company whose customers would be
| + 90433 [hal9000@hy e] Obviously someone is a fan of genetic programming. :)
| + 90443 [intc_ctor@ya] It's quite bizarre, though.  This isn't the sort of business that
+ 90439 [ jupp@gm .d ] Smells like spam but it could still be on-topic if they use Ruby :-|

Trouble installing eRuby on MacOS X 10.3
90379 [gavin@re in ] All day I have been trying to get mod_ruby and eRuby installed on MacOS
+ 90380 [gfb@to es ft] 1. Run configure with option "--enable-shared" where appropriate.
| 90384 [gavin@re in ] Thanks muchly!
+ 90383 [kevin_mcconn] I had exactly the same problem the other day, and got enough help on
  90385 [gavin@re in ] Heh, thanks. I seem to have learned about this newsgroup 1 day too late.
  90424 [kevin_mcconn] Um, I'm afraid I don't really know either -- I was just following the

How can I report a BigDecimal fix?
90393 [jgoizueta@wa] I've detected and fixed a problem with the BigDecimal extensi?n in Ruby
+ 90403 [matz@ru y- a] i,
+ 90412 [shigeo@ti yf] Oops!

Dir set different owner ?
90401 [sv-erik@re o] <SNIP>

DRb error with Ruby 1.8.1
90402 [martin@zs fh] and have experienced no problems.

Very basic Ruby docs/books/tutorial?
90405 [feldt@ce ch ] I got a question from someone who wants to learn Ruby but are not very
+ 90409 [jim@fr ez .o] The 21 Days book is very good for beginners.
+ 90410 [erik@so id o] Regards,
| + 90413 [tibbetts@ac ] Erik,
| + 90416 [surrender_it] wow that's cool and I did not know about it. But it seem stopped at
+ 90434 [mikkel-remov] "Robert Feldt" <feldt@ce.chalmers.se> skrev i en meddelelse
+ 90445 [mvondung@gm ] Definitely "Teach yourself Ruby in 21 days" by Mark Slagell, Sams
| 90450 [hal9000@hy e] I will second that. Mark's book is excellent.
+ 90464 [cpine@he lo ] It might be too basic, though.  I haven't worked on it since my son was
  + 90469 [careck@ci cl] It is very basic and I like it that way! Very good work! I hope you do
  | 90489 [cpine@he lo ] Of course it is!  (It's not the most gorgeous code, though.)  Go to the
  + 90490 [tjk@an ap li] I looked at your tutorial today.

Marshal format filter? 1.6.8 to 1.8.1
90411 [djberge@qw s] I'm in a situation where I may want to have a 1.8.1 client communicate
+ 90414 [khaines@en g] I'm kind of curious about that, too, as my current Iowa implementation
+ 90415 [matz@ru y- a] Marshal.dump(Marshal.load(STDIN), STDOUT)

help with Win32API
90417 [lists@za a. ] long getrand()
+ 90444 [ggarramuno@a] Without checking in detail, it seems you are on the right track.
+ 90523 [sveit@ea th ] Unfortunately you have two mistakes. The first simple one is that the
  90569 [lists@za a. ] Ah, missed another zero there (251658240 = 0xF000000).

BibTeX parser
90420 [dcarrera@ma ] I have a difficult problem and I need some smart people to give me a hand.
90432 [batsman.geo@] Looks like you're doing the parser by hand... wouldn't it be easier
90436 [dcarrera@ma ] Yes, because I am a parser-newbie and I don't know better.
+ 90471 [ jupp@gm .d ] There are a couple of books. A good one in english is
+ 90480 [batsman.geo@] It's a parser generator similar to YACC (kind of de facto standard) for

Re: Dir set different owner ? Solved
90421 [sv-erik@re o] `/bin/mount -t smbfs -o uid=#{$user},gid=#{$user},username=#{$user},\

Parse Date bug?
90422 [guslist@fr e] [gus@comp Ruby]$ ruby -v
90460 [matz@ru y- a] ParseDate is easily fooled by incomplete input.
90580 [gavin@re in ] I think the point is that it's understandable that it may be fooled.
+ 90584 [markjreed@ma] I like the fact that Date provides both an interface that
+ 90585 [austin@ha os] Yuck. IMO, standard date classes should expect valid dates to be passed.
  90637 [aredridel@nb] Sounds like a time for

REXML and IOSource
90423 [kapheine@hy ] [I posted this earlier but it never showed up. If this is a repeat, I apologize.]

Scala programming language
90425 [mikkel-remov] I just discovered the Scala programming language.
+ 90426 [gfb@to es ft] Old news ;-) -- see recent thread "Proposal for programming language of
| 90431 [mikkel-remov] "Gennady" <gfb@tonesoft.com> skrev i en meddelelse
+ 90435 [batsman.geo@] heh everybody's talking about Scala nowadays ;-)
  90470 [robertm@sp l] (hmm good ole babel fish ...)

Re: Debunking misconceptions about Ruby
90427 [intc_ctor@ya] Cool.  A good example of how just about any new feature that someone

Socket.gethosbyname AgrumentError
90428 [dali@in ul .] I have upgraded and one of my scripts now dies with ArgumentError while
+ 90453 [tjk@an ap li] Seems to work on Debian Sarge Linux.
+ 90463 [nspring@cs w] Dalibor,

how to broadcast UDP packets
90437 [vjoel@PA H. ] I'm trying to use ruby to immitate some C code that broadcasts UDP
+ 90446 [flori@pi g. ] Try "0.0.0.0" as host in your server.
| + 90448 [hal9000@hy e] Florian,
| | 90452 [flori@pi g. ] Not only your brain! ;)
| | 90454 [markjreed@ma] That's usually called the "factorial" function . . .
| + 90449 [vjoel@PA H. ] That's it. Thanks a lot, Florian.
+ 90447 [yanfali@be t] Have you tried binding to the network broadcast address rather than the

scriptroute
90440 [vjoel@PA H. ] Just came across YARBA (Yet Another Ruby-Based Application), which

1.8.1 build errors on Sun Sparc
90441 [Bil.Kleb@NA ] I couldn't find anything at blade...
90590 [Bil.Kleb@NA ] FWIW, I just stuck a "#define CONST84" at the top of ext/tcltklib.c and it

Questions on Rite and embedding
90442 [jeremy@ch os] I read Matz's "How Ruby Sucks"
90451 [mailinglists] I can only wish that Matz take a look at deepth look at TCL before
90466 [jeremy@ch os] IIRC Matz is a self-confessed language nut, so I am sure he has

Class.new and inspect
90456 [hal9000@hy e] hal@alpha ~/projects/peco $ irb
90457 [matz@ru y- a] When inspecting unnamed class, Ruby look around the constants for the

Smarty template engine for Ruby - anyone interested?
90458 [ruby@hi me i] There are a lot of HTML-templating systems out there.
90478 [ruby@hi me i] It would have to be full-blown Smarty EXCEPT the implementation would

ruby-1.8.1 build failed on HP-UX 10
90462 [Bil.Kleb@NA ] I found a Japanese note about this in the developer list,
+ 90897 [Bil.Kleb@NA ] FWIW, I just took the -ltinfo out of the ext/curses Makefile and went
+ 90926 [nobu.nokada@] Try the patch in [ruby-dev:22420].

Y-Combinator (was: how to broadcast UDP packets)
90467 [jweirich@on ] I was skimming through the threads in the mail list.  Imagine my
+ 90536 [sdate@ev re ] Thank you very much, Jim.
+ 90633 [flori@pi g. ] Ah, you're using the anonymous inner classes trick. You can even

[ANN] Ruby/Extensions v0.3 released
90472 [gsinclair@so] A new version of Ruby/Extensions, a suite of useful methods added to
+ 90502 [hal9000@hy e] Gavin,
| 90533 [gsinclair@so] Such confusion has certainly occurred to me.  The project is
| + 90551 [ahoward@fa t] </snip>
| | 90563 [neoneye@ad l] boost
| | 90658 [gsinclair@so] Yes, nice one.  That doesn't capture the essense of the project,
| + 90568 [surrender_it] woowoo! playing the nbame game again :)
+ 90516 [transami@ru ] first let me say that i think this is a very admirable project. it provides
| 90532 [gsinclair@so] Those methods make sense only in very specific cases.  They assume you
| 90537 [transami@ru ] do you think NilClass' to_a and to_i methods should be removed then?
| 90539 [austin@ha os] I don't think that's what Gavin said at all. I don't particularly consider
| + 90550 [ahoward@fa t] i'm with you austin - that way leads to p*** style debugging sessions!
| + 90555 [transami@ru ] how does one define acceptable? is it not enough that suggestions for such
| + 90560 [msparshatt@y] Personally I'd prefer to not even have Nilclass#to_s since it converts a
+ 90586 [gavin@re in ] May I make the suggestion of adding in some convenience methods for the
  + 90587 [gavin@re in ] OK, so for some reason I totally missed the Date class in the standard
  + 90601 [flgr@cc n. e] I think Time#year, #month, #week and #day could be useful. (#hour and

[BEGINNER] Usage of 'super'
90473 [michael@gu s] I have some experience with programming in other languages, but I'm new
+ 90474 [decoux@mo lo] Just write it like this
| 90476 [michael@gu s] That doesn't do the trick (btw: super is different from super()?).
| + 90479 [dblack@wo bl] super() explicitly says that you want an empty argument list, whereas
| + 90482 [news-1074866] (r1.rb)
+ 90477 [bob.news@gm ] "Michael Weller" <michael@gutschi.de> schrieb im Newsbeitrag
  90481 [michael@gu s] <code>
  + 90483 [decoux@mo lo] Well, not really :-))
  | 90487 [michael@gu s] Huh, I must find out more about this language ;-)
  + 90484 [bob.news@gm ] "Michael Weller" <michael@gutschi.de> schrieb im Newsbeitrag
    90486 [michael@gu s] I had some commented lines before that statement.

[Ann] Formation of Atlanta Ruby User Group
90475 [joey@jo yg b] I'm currently forming the Atlanta Ruby User Group (AtlRUG) and I wanted

they used to be the only ones.
90485 [drivehushing] The first worth substitute of all existing men`s remedies!

Problems with resolv.rb && Queue/Thread
90488 [jfh@ci e. fl] ...
90496 [bob.news@gm ] "James F. Hranicky" <jfh@cise.ufl.edu> schrieb im Newsbeitrag
90498 [jfh@ci e. fl] /usr/local/lib/ruby/1.8/resolv.rb:539:in `delete': undefined method `queue' for 6:Fixnum (NoMethodError)

FXRuby: adding child widgets after #run has started
90491 [y.leikind@sa] Is there a way in Fox to add widgets after the widget hierarchy has been built and
90494 [lyle@us rs s] If you add widgets after the program's started, you'll need to call
90520 [y.leikind@sa] require "fox"
90546 [lyle@kn lo y] The problem is that merely adding an FXScrollWindow to the FXGroupBox
90662 [y.leikind@sa] Oh yes, it does, thank you again.

puts(derived_from_array)
90493 [Ara.T.Howard] rb_io_puts tests for Array types with rb_check_array_type and handles them

Regular Expressions
90495 [rove.monteux] Sorry for posting this one on the list. Anyone has any documentation/URL
+ 90497 [bob.news@gm ] "Rove Monteux" <rove.monteux@fluid-rock.com> schrieb im Newsbeitrag
+ 90499 [ahoward@fa t] get the oreily regex book.  it's one of their best books.
| 90501 [sroberts@un ] I heartily second that. Let me rave about the book! :-)
| 90506 [rove.monteux] Yes, I own the Lex & Yacc book from Oreily, fairly good may say so. Will
+ 90545 [gavin@re in ] Although not specific to the Ruby language, the JS introduction to
  90572 [michael_s_ca] When posting a long url, give http://www.tinyurl.com/ a try.  That URL for example can also be: http://tinyurl.com/yw7xg

$stdout vs. $defout what's the difference?
90500 [google@jo nw] irb(main):001:0> class O; def write; end; end
90660 [matz@ru y- a] What version of Ruby are you using?  $defout is obslete since 1.8.
90676 [google@jo nw] Ruby 1.6.8

[OT] Re: Regular Expressions
90503 [ruby-talk@pc] I don't want to whine, but you don't think this signature is a bit much?

using open3.rb from a thread
90504 [y.leikind@sa] I use  open3 library from non-main threads, and I get the following warning
90511 [vjoel@PA H. ] I don't know about open3, but if more than one thread is active when you

Why is to_a going to be obsolete?
90505 [patrick.benn] I find it immensely useful when dealing with arrays to be able to
90507 [gfb@to es ft] I was also surprised to learn that Object#to_a is going to be obsolete.
+ 90510 [patrick.benn] Hmmm, thanks, but it's a bit 'non-obvious' to casual Ruby programmers
| + 90512 [gfb@to es ft] I would not call "to_a" very obvious, as compared to, say, "to_array"
| | + 90521 [linse428@st ] Compare it with to_i and to_s.
| | | 90522 [patrick.benn] Exactly...
| | + 90524 [transami@ru ] I hadn't heard of this deprecation. Waht is the reasoning? If x.to_a is going
| |   + 90526 [gfb@to es ft] As far as I understand, only the default to_a (Object#to_a) is becoming
| |   | 90528 [transami@ru ] sarcasm? please don't miss understand me. i was actually being quite sincere,
| |   + 90542 [matz@ru y- a] Try Array(x).
| |     + 90543 [patrick.benn] Ah, thanks! I see that it returns the object as-is if it's already an
| |     | 90556 [matz@ru y- a] I wanted to reserve "to_a" method for Array-like objects, such as
| |     | + 90557 [patrick.benn] Ok, now that I know about Array.new's behavior, it makes a bit more sense now.   Thanks Matz.
| |     | + 90702 [pbrannan@at ] I thought that was the purpose of to_ary()?
| |     |   90712 [gsinclair@so] #to_x and #to_xyz are meant to have different semantics (explicit and
| |     + 90570 [danj@3s el c] But should it not be up to 'x' to decide how it should be represented
| |     + 90571 [danj@3s el c] My apology, I read a few more messages: to_a will still be the
| |       90626 [matz@ru y- a] Right, as long as I understand you correctly.
| + 90534 [mvondung@gm ] As one of those who use Ruby casually, I wholeheartedly concur. to_s
|   90535 [markjreed@ma] No, because to_a will still exist and will still be the way to get
|   90552 [transami@ru ] ah. thank you mark. that makes this whole subject much more comprehensible.
+ 90514 [vjoel@PA H. ] Don't get too fond of it ;)
  + 90517 [gfb@to es ft] It shows only that currently '*' for hashes implemented via to_a, no more.
  + 90576 [dooby@d1 .k ] I don't think the future is so gloomy :)
    90581 [vjoel@PA H. ] Quite right. The example shouldn't have been a hash, since Hash#to_a

ruby VMs?
90508 [kgergely@ml ] Is there a central site/URL/anything about ruby VMs? Can I compile ruby
90509 [kgergely@ml ] Sorry, ignore my previous mail.

detecting default parameters
90513 [ian@ca ib n.] Does anyone know of a way to detect whether default parameters are being
+ 90527 [neoneye@ad l] Have you considered using 'nil' as default value?
+ 90529 [intc_ctor@ya] I doubt there would be any way to actually implement #default? as you show.
| 90530 [daniel.doel@] #!/usr/bin/ruby
| 90531 [gfb@to es ft] require 'delegate'
+ 90548 [nobu.nokada@] def my_method(*args)
  + 90554 [markjreed@ma] def my_method(foo = (default_foo = 'foo'), bar = (default_bar = 'bar'))
  + 90564 [ian@ca ib n.] Aha, very clever!

turning a hash into an array
90519 [lists@za a. ] hash = Hash[*ary]
+ 90553 [ptkwt@ar cn ] Well this is something I didn't know about till I saw Matz mention it in
+ 90664 [bob.news@gm ] "David Garamond" <lists@zara.6.isreserved.com> schrieb im Newsbeitrag

Racc and JRuby
90525 [dcarrera@ma ] IIRC, JRuby is a Java implementation of Ruby 1.6.  The Racc web page says that
90558 [batsman.geo@] That's because parsers generated with racc require some runtime

RubyGems news?
90559 [ptkwt@ar cn ] After RubyConf2002 some people decided that a package
+ 90573 [danj@3s el c] Not being familiar with either, what was wrong with raainstall that
+ 90579 [sera@fh an .] You can see the RubyGems documentation at
  90594 [chad@ch df w] (reply at the bottom)
  90607 [sera@fh an .] Can you talk about the state of both 1) remote installation and 2)
  90636 [sroberts@un ] I second this. The developers docs consist of a single example, but no

nuby: determine method passed and determine the receiver that rec eived the method
90561 [botp@de mo t] Forgive me in adv for asking a newbie question.
90562 [djd15@po cw ] I don't think you can do this.
90565 [botp@de mo t] Thank you for asking, sir Dan.
+ 90566 [neoneye@ad l] I tried to teach programming to my little bother (13 years old). He
+ 90567 [batsman.geo@] You could simulate that with some meta-programming magic involving
  90646 [botp@de mo t] I've tried this method on my other son and other students of mine, too (I
  + 90655 [botp@de mo t] Mauricio Fern?ndez alias batsman [mailto:batsman.geo@yahoo.com] brilliantly
  | 90661 [batsman.geo@] batsman@tux-chan:/tmp$ ruby e.rb
  | + 90663 [botp@de mo t] Mauricio Fern?ndez [mailto:batsman.geo@yahoo.com] aka batsman humbly replied
  | + 90740 [kapheine@hy ] Promise us you will never show this code to anyone who is considering
  |   90834 [botp@de mo t] I thought it was a simple request ( -that an object know what
  |   90851 [djd15@po cw ] I think the reason it's not around by default is that it wouldn't
  + 90675 [neoneye@ad l] Maybe by showing scary examples of what mess procedure-only code can turn
threads.html
top