74208-74900

74038-93484 subjects 74399-75302

Problem with local DRb on OS X
74208 [john.platte@] I'm getting delays making TCP connections to "localhost" on our OS X
74222 [fgp@ph o. rg] Did you try using 127.0.0.1 instead of localhost? Maybe Roundevous (included
74283 [john.platte@] Thanks for the suggestion. Yes, I did try 127.0.0.1, as well as the

Build problems on HP-UX with HP C compiler
74209 [djberge@qw s] Ruby 1.6.8 and Ruby 1.8.0 (today's snapshot)
74273 [mxp@dy al bs] Hmm, I just tried building 1.6.8 as well as ruby-1.8.0-preview3, and I
74428 [djberge@qw s] Thanks to Michael's diligence, it was discovered that "#define inline"

timeout and gets on windows, or user error?
74213 [michael_s_ca] I'm sure this is my misunderstanding, and/or possibly a known thing,

Array#pop doesn't remove last element?
74219 [0bz63fz3m1qt] I have an absurd problem in my ruby-code. I tried recreating the
+ 74220 [jj5412@ea th] on 6/23/03 7:41 PM, Simon Strandgaard at 0bz63fz3m1qt3001@sneakemail.com
+ 74221 [0bz63fz3m1qt] OK.. I solved it..   This was because @left contained a vspace element.
  74336 [0bz63fz3m1qt] Finaly, 2 minutes ago I woke up (I am about to go to sleep).

problem installing 1.6.8 on OS X 10.2
74225 [gary.palmer@] I'm not a UNIX whiz, but I'm trying to learn how to do these things
74235 [mwilson13@co] I've never seen that before. I think you have to start over from the
74348 [Gary.Palmer@] bash-2.05a$ ls -dF /Library/Receipts/BSD*.pkg
+ 74349 [gary.palmer@] No, I don't use fink and never have.
| 74350 [mwilson13@co] That would be `uname' and not `unname'
+ 74351 [mwilson13@co] I no longer remember how to do this, but I think the Apple site has
  74429 [Gary.Palmer@] [PALMERS:~] gary% bash

[ANN] Raggle 0.1.0
74228 [pabs@pa lo r] Raggle is a console RSS aggregator written in Ruby. Raggle features

Operate on a range of lines in a file.
74230 [invalid@in a] I'm hoping someone can jog my memory here. Say I've got a file which
+ 74231 [pabs@pa lo r] Why not something like this?
+ 74233 [sdate@ev re ] You mean like this example from ruby-talk [73674] ?
+ 74243 [B.Candler@po] while line = gets
| + 74265 [bob.news@gm ] "Brian Candler" <B.Candler@pobox.com> schrieb im Newsbeitrag
| | 74291 [djberge@qw s] Read in paragraph mode.  Set $/ to "END".
| + 74328 [mike@ra do .] Did you miss an extra line =~ there?
+ 74335 [invalid@in a] Thanks, everyone. That

Accessing Objects from Anonymous Namespace
74234 [lunfis@gm .d] Is there any way to access objects (eg. constants) from within a 'module'
+ 74246 [bob.news@gm ] <lunfis@gmx.de> schrieb im Newsbeitrag
+ 74261 [kentda@st d.] def collect_modules
+ 74466 [nobu.nokada@] Not impossible, but strongly unrecommended.
  74500 [decoux@mo lo] Why not give the possibility ?

ncurses-ruby on cygwin
74237 [culley@fa tm] I am trying to install ncurses-ruby on cygwin, which all the docs
74249 [tpeters@un -] Yes. Last time I tried, it did work.
74250 [culley@fa tm] I have never installed with Win32 Native Ruby-- only Cygwin
74262 [tpeters@un -] I did not know that cygwin has a ruby package by now. Nice.
74266 [culley@fa tm] check.c:1:21: ncurses.h: No such file or directory
74473 [nobu.nokada@] You don't install libncurses-devel package.

Warning error in YAML
74239 [REMOVE_THISu] require 'yaml'
+ 74240 [REMOVE_THISu] but it does not give me any warning on the Windows XP.
+ 74270 [decoux@mo lo] No, the problem is in yaml which make reference to Kernel::Hash rather
  + 74284 [REMOVE_THISu] If that's true, then how come it did not give any error on windows?
  | 74288 [decoux@mo lo] It depend on the ruby version
  | 74315 [REMOVE_THISu] Thanks ts,
  + 74474 [nobu.nokada@] Nobu Nakada
    + 74499 [decoux@mo lo] Yes, this is just that I've not understood why he try to reference
    | 74519 [ruby-talk@wh] Kernel was the top level namespace.  I will change to ::Hash, if it will
    + 74577 [androflux@so] ~$ ruby -v
      74588 [matz@ru y- a] Sometimes you have to stand ugliness, when Hash may be overridden.

Decimal builtin?
74247 [dsafari@pa a] I am curious what people use to represent decimals when with no rounding
+ 74251 [botp@de mo t] what is http://www.rubycentral.com/book/ref_c_bignum.html
| 74253 [dsafari@pa a] Thanks for your reply Botp, but wouldn't this still be susceptible to rounding
| + 74254 [botp@de mo t] could you site an example so that our ruby friends/hackers can also help?
| | 74255 [dsafari@pa a] Actually funny you ask because I can't seem to make the float class provide
| | 74263 [tim@ba es id] irb(main):001:0> x = 1.5e10
| | 74271 [haugwarb@ch ] Interesting. I have also noted this and figured out that maybe Matz has
| | 74276 [bob.news@gm ] "Tore Haug-Warberg" <haugwarb@chembio.ntnu.no> schrieb im Newsbeitrag
| + 74256 [0bz63fz3m1qt] I think it has a class rational numbers.. is it useful ?
|   74258 [dsafari@pa a] It could do...I'll look into it. Thanks to those that answered - you have been
|   74259 [botp@de mo t] ah, money matters (or rather cents matters ;-). I, too, am paranoid of cents
+ 74257 [haugwarb@ch ] I have had this problem for years until I started use Ruby. Fundamentally,
+ 74280 [mwilson13@co] 8&selm=5.1.0.14.2.20021210134040.02102738%40zcard04k.ca.nortel.com
+ 74381 [ jupp@gm .d ] The answer to your question is 355/113 (^_^)
+ 74464 [unet@re x. o] Shigeo Kobayashi's BigFloat module (and also its successor BigDecimal)

Problem with regular expresions
74267 [robson@ma ar] I am having a problem with regular expression.
74269 [0bz63fz3m1qt] Have you tried String#split  ?
74275 [bob.news@gm ] "Simon Strandgaard" <0bz63fz3m1qt3001@sneakemail.com> schrieb im

Ruby for Mac OS 9?
74272 [jj5412@ea th] I've seen sketchy info here and there. Is there a recent (1.6+) Ruby for Mac

Ruby/Tk web browser plug in
74277 [J.P.Fletcher] I have been looking on the web to find a plugin for Nestcape and

[ANN] GalleryAdministrator 0.0.2
74278 [kou@co mi ng] using extended RubyPhoto (which is included an archive)

Ruby Developer's Guide - hurt book sale
74279 [dennis@su ch] Syngress Publishing is having a hurt book sale.  Per Syngress
+ 74282 [xlucid@us rs] Plus $5 plus $20 for shipping outside of the USA.
| 74300 [mailinglists] I never understood why shipping from the USA is so extrem expensive.
| + 74308 [michael_s_ca] Probably part of our (Americans) "free market" collective psyche;
| | 74380 [ jupp@gm .d ] Saluton!
| | 74778 [rodrigo.berm] I have just recived my book , and it just have a little
| | 74783 [joey@jo yg b] I got mine on Friday. I can't see anything wrong with it, which means it's
| + 74339 [cjh_nospam@m] When my sister lived in NY for a year we joked that it was because
|   74378 [rasputin@id ] Yeah, but that's not an exclusively American problem.
+ 74285 [REMOVE_THISu] Will this edition cover Ruby 1.8(alpha/beta)?
  74286 [lyle@us rs s] No, this book was published in January 2002.

Inspecting a caller environment?
74287 [luigi.ballab] having to design a usable environment for non
+ 74292 [bob.news@gm ] "Luigi Ballabio" <luigi.ballabio@fastwebnet.it> schrieb im Newsbeitrag
| 74309 [luigi.ballab] Hmm, not if calculate is defined in another module, I think...
| 74368 [bob.news@gm ] "Luigi Ballabio" <luigi.ballabio@fastwebnet.it> schrieb im Newsbeitrag
+ 74326 [pbrannan@at ] require 'readline'

proposal for a ruby expert system
74289 [0bz63fz3m1qt] From time to time, every now and then, I bump into bugs in my own code.
+ 74290 [lyle@us rs s] Yes, the ruby-talk mailing list ;)
| 74295 [0bz63fz3m1qt] They are very similar.. but when problems tend to be too complex and
| 74363 [timsuth@ih g] Array#[]= mutates the object.
| 74375 [0bz63fz3m1qt] I know this is not a bug..  This was just examples of what such expert
+ 74294 [bob.news@gm ] "Simon Strandgaard" <0bz63fz3m1qt3001@sneakemail.com> schrieb im
+ 74299 [peter@se an ] A cross between a FAQ and a mailing list digest with a good search

Concatenating Hash's
74296 [dlandrith@ma] What is the fastest way to concatenate two hash tables?
+ 74297 [michael_s_ca] "fastest" might be taken different ways; fastest runtime?  Fastest to
| 74298 [dave@la dr t] Perfect.  Thanks!
| + 74307 [michael_s_ca] I missed it too, actually.  I only knew something that did what you
| + 74369 [bob.news@gm ] "David King Landrith" <dave@landrith.com> schrieb im Newsbeitrag
|   74376 [0bz63fz3m1qt] If your hash-tables has differents sizes, I suppose that it will be
|   74433 [bob.news@gm ] "Simon Strandgaard" <0bz63fz3m1qt3001@sneakemail.com> schrieb im
|   74871 [0bz63fz3m1qt] Hmm..
|   74900 [matz@ru y- a] Aliases.
+ 74317 [0bz63fz3m1qt] Have you tried Hash#update  ?
  74714 [spam@de k. k] require 'profile'
  74716 [0bz63fz3m1qt] Yes I know 'profile.rb' ...  I wasn't aware of Hash#update, so I started

CAN find appropriate regexp ;-))
74302 [jonnypichler] thanx - that's perfect
+ 74303 [aredridel@nb] (?: ... )  is "group without capture" -- it's the same grouping effect
+ 74318 [tran55555@ya] ...
  74321 [ahoward@fs .] /usr/home/howardat > irb
  + 74325 [tran55555@ya] ...
  | 74331 [ahoward@fs .] ah - yes it is - not the first time that has happened.  good catch!
  + 74327 [tran55555@ya] ...

Good & cheap mp3 player, USB Flash disk, cd/vcd/mp3 player and digital camera etc
74304 [hechun1978@s] My dear friend,

ruby 1.8.0-preview3 build errors
74305 [aredridel@nb] /home/users/aredridel/rpm/BUILD/ruby-1.8.0/lib/mkmf.rb:20: private
+ 74319 [0bz63fz3m1qt] I see you use athlon optimizations.
| 74330 [aredridel@nb] It doesn't build without optimization either -- the error is in the
+ 74341 [matz@ru y- a] Show me your "rbconfig.rb" file.
  74343 [aredridel@nb] ...
  74345 [matz@ru y- a] Thank you.
  74352 [aredridel@nb] Ah, I see -- PLD's build scripts.  I'll have to delve into the depths of
  74353 [dooby@d1 .k ] ^^^^                        ^^^^
  74424 [aredridel@nb] Not odd control characters -- just separate tokens that bash doesn't
  + 74426 [B.Candler@po] It doesn't print nothing: it prints a space (to separate your two empty
  + 74449 [fritz.heinri] Newest ruby built with -O -march=athlon segfaulted with

[ANN] resource database on Ruby/Tk
74310 [nagai@ai ky ] ...

Test::Unit 0.1.8 reporting problem
74311 [gfb@to es ft] ...
+ 74367 [B.Candler@po] You could try calling 'STDOUT.sync' in your setup() method?
+ 74420 [nathaniel@NO] Agreed, and I've added it to the TODO list.

Re: reading file text
74314 [0bz63fz3m1qt] How about this ?
74370 [bob.news@gm ] "Simon Strandgaard" <0bz63fz3m1qt3001@sneakemail.com> schrieb im

Another Run Time Evaluation Q:
74320 [orion2480@ho] I am fiddling around with the eval() function, and loading information at
+ 74337 [sdate@ev re ] As of Ruby 1.8, local variables assigned within an eval are
| 74361 [dooby@d1 .k ] Invoking "Hunt & Thomas" Programming Ruby - (Addison Wesley Longman) ...
| 74410 [sdate@ev re ] RUBY_PLATFORM)
| 74412 [decoux@mo lo] This is because they use an interactive ruby shell which display the value
| 74472 [sdate@ev re ] value
+ 74372 [bob.news@gm ] "Orion Hunter" <orion2480@hotmail.com> schrieb im Newsbeitrag
  74407 [sdate@ev re ] ruby 1.8.0 (2003-05-26) [i386-mswin32]
  74411 [decoux@mo lo] Try this
  + 74437 [bob.news@gm ] "ts" <decoux@moulon.inra.fr> schrieb im Newsbeitrag
  + 74480 [sdate@ev re ] Of course, by creating 'a' here, this has to work. I would like
    74502 [decoux@mo lo] irb do someting like this
    + 74542 [wkb@ai ma l.] irb(main):001:0> VERSION
    + 74581 [sdate@ev re ] Oh, I see.

Where to get Ruby(mswin32)/Gtk?
74323 [REMOVE_THISu] I've seen Ruby/Gtk for cygwin or mingw but NOT for mswin32? I've installed
74324 [REMOVE_THISu] oops ... its for Ruby 1.8[mswin32]. Thanks

thank you all so much
74329 [jonnypichler] thank you all so much for replying

who is working on ruby?
74333 [offstuff@ao ] first of all I have to say...
+ 74338 [mwilson13@co] I agree, except for the part where language is put in quote marks.
+ 74346 [matz@ru y- a] This is mine, I guess.

Fwd: problem installing 1.6.8 on OS X 10.2
74340 [Gary.Palmer@] Mark,

help needed: extending ruby
74347 [sdate@ev re ] I'm trying out the following example from
+ 74366 [laurent@da a] Hey,
| 74408 [sdate@ev re ] That didn't work either ... I tried all variations of name capitalizations,
| 74457 [laurent@da a] Hey,
| 74468 [sdate@ev re ] And hence it would be impossible for you to correct my mistakes,
+ 74476 [0bz63fz3m1qt] [snip example]

[ANN] possibly fixed memory eating problem of TkCanvas Items
74354 [nagai@ai ky ] I commited the patch for memory eating problem of TkCanvas Items.

another problem with regular expression
74355 [robson@ma ar] array[0] = "car"
+ 74356 [vjoel@PA H. ] array = []
| + 74358 [botp@de mo t] array = []
| + 74371 [bob.news@gm ] "Joel VanderWerf" <vjoel@PATH.Berkeley.EDU> schrieb im Newsbeitrag
|   + 74373 [martindemell] Or something like
|   | 74434 [bob.news@gm ] Even better!  great!
|   + 74395 [michael_s_ca] Maybe I'm just the cynic here, but does this sound to anyone else suspicously
|     74405 [kentda@st d.] If so, maybe we should grant Rob immunity in this case in exchange for
+ 74359 [rpav@nw in .] array.each { |w| s.gsub!(w, "*") }
  74360 [botp@de mo t] not sure if that would scale up to a 10000 entry array though..
  74374 [rpav@nw in .] This is a good point... it wouldn't.  OTOH, it depends on the

another problem with regular expressions
74357 [robson@ma ar] array[0] = "car"
74423 [aredridel@nb] sentence.gsub!(Regexp.new(array.join('|')), '*')

protect parents from children
74379 [0bz63fz3m1qt] I fell into these pitfalls yesterday.. that a child was modifying a parent!
+ 74382 [decoux@mo lo] You make a confusion : the child was not modifying the parent.
| 74383 [0bz63fz3m1qt] Me don't understand.   If I add debug-print's to selftest then I see that
| + 74384 [decoux@mo lo] svg% cat b.rb
| | 74385 [0bz63fz3m1qt] OK. I think im to c++bias'ed (assuming too much).
| | + 74388 [decoux@mo lo] I still don't know what is a child, and what you want to do
| | | + 74389 [0bz63fz3m1qt] [snip code]
| | | | + 74390 [decoux@mo lo] Try to forget C++ : ruby is not C++
| | | | | 74392 [0bz63fz3m1qt] OK.. C++ is now erased completly from my mind.
| | | | + 74398 [martindemell] Offhand, I'd say it wasn't even hackable in pure ruby, because
| | | |   74401 [0bz63fz3m1qt] I am sad to hear that. Then I have to learn to live without protection.
| | | |   + 74403 [kentda@st d.] (\[ Kent Dahl ]/)_    _~_    _____[ http://www.pvv.org/~kentda/ ]_____/~
| | | |   + 74404 [decoux@mo lo] This is just the proof that you've not forgotten the C++ model :-)
| | | |   | 74417 [0bz63fz3m1qt] C++ got erased.. it must be some leftovers from Pascal ?
| | | |   + 74414 [martindemell] You're welcome - it's been educational for me too.
| | | |     74419 [0bz63fz3m1qt] Yes. Any method within A is able to read+write (mutable).
| | | |     74460 [martindemell] Me neither - again, note the problem of values attaching themselves to
| | | |     74461 [0bz63fz3m1qt] [snip}
| | | + 74391 [martindemell] Huh?
| | |   74393 [decoux@mo lo] see the discussion about class local variable in ruby-talk
| | |   74402 [martindemell] Ah, I missed that :)
| | + 74435 [bob.news@gm ] "Simon Strandgaard" <0bz63fz3m1qt3001@sneakemail.com> schrieb im
| + 74386 [martindemell] Okay, class A defines an instance variable @value and initializes it to
|   74387 [0bz63fz3m1qt] Yes.. I found out it works like that.  What I want is know: Is it possible
|   74396 [B.Candler@po] No, because an instance variable has no concept of "which class it came
+ 74430 [nagai@ai ky ] Do you talk about such as the followings?
  74550 [spam@de k. k] I cannot easily find a way around your problem, if all you want is

Text parsing example code
74394 [dwerder@gm .] has anyone some code to parse data from a text file, like semicolon
+ 74397 [nahi@ke na t] $ ruby18-preview3 -rcsv -e 'p CSV.parse_line(%Q("abc";"def"), ?;)'
+ 74406 [martindemell] Might be better to help debug the CSV module, as per Joel Spolsky's
threads.html
top