28986-30624 subjects 29493-30823

RPC via tuple space
29318 [list@ch om t] distributed objects in a language independent way, using tuples spaces
29354 [neumann@s- i] You should be able to use connection alive. Is that what you want?
29360 [list@ch om t] I think so.  I set up both client and standalone server as suggested
29423 [neumann@s- i] `multicall' has nothing to do with connection alive. If your XML-RPC

[ANN] JRuby beta 0.3.0 released
29321 [jpetersen@un] I just released JRuby beta 0.3.0.
29352 [mikkel@in re] ...

Setting up a cygwin build environment
29324 [harryo@zi wo] The last time I looked at cygwin, they had a single download that
29325 [chadfowler@c] Harry,

a better way?
29327 [ronjeffries@] I was writing a little code that cached a function value, and wound up
+ 29328 [dblack@ca dl] result = @@save[self] and return result
| 29331 [hal9000@hy e] if result=@@save[self] then return result end
| 29332 [dblack@ca dl] I think the design is that some calculation will only be performed
| + 29334 [angus@qu va ] puts t.fahrenheit(300) # "212"
| | 29335 [dblack@ca dl] What's the matter?  You've never heard of science fiction? :-)
| + 29337 [harryo@zi wo] As usual, I'm probably missing something obvious here, but
| | + 29339 [dblack@ca dl] You're not missing anything.  See my previous post (which introduced a
| | + 29368 [olczyk@in er] You hagve to forgive Dave, he's an amateur programmer and thus misses
| + 29344 [nobu.nokada@] Another one using Hash#fetch,
|   + 29359 [henning@ik o] [Nobu]
|   | 29365 [nobu.nokada@] Do you like this?
|   | + 29367 [Dave@Pr gm t] That is going on my list of FAQ additions. Not that anyone's asked the
|   | | 29391 [nightblade@n] What's the URL for this FAQ?
|   | + 29369 [hal9000@hy e] Oh, that is excellent. I wish I had thought
|   | + 29371 [matju@sy pa ] fahrenheit = Hash.new do |h, c| h[c] = c * 9 / 5 + 32 end
|   |   + 29372 [hal9000@hy e] I guess you are correct. I did not notice that these
|   |   + 29374 [nobu.nokada@] Yes, it's enough.
|   |   | 29379 [niko.schwarz] are there ever any other?
|   |   + 29376 [harryo@zi wo] Now, this is really nice!  I hadn't realised one could
|   + 29375 [ronjeffries@] These are way cool.  I gather the 1.7.2 feature is new? I think I'm in
|     + 29377 [nobu.nokada@] Yes, it works on only recent one.
|     | 29378 [billk@ct .c ] Interesting. . . Could one then create an autovivifying-style
|     + 29385 [in6x059@pu l] of the new features.
|     | 29392 [Dave@Pr gm t] My fault. In the past I generated entries in that page as I saw things
|     + 29388 [ralph.mason@] This does lead me to think that there is a surprise here.  Notably that a
|     + 29410 [pit@ca it in] class Temp
+ 29330 [list@ch om t] What about this?
+ 29333 [angus@qu va ] result = @@save[self]  and return result
+ 29336 [chadfowler@c] I'm sure this is complete overkill for what you're looking for (since
+ 29343 [ronjeffries@] Thanks all ... so far I like the two lines best. The version with the
+ 29353 [henning@ik o] @@save.fetch(self){your funcdef}

How to set up webserver with Ruby
29338 [jonas@de fs ] I want to use Ruby for webscripting. I couldn't find any mod_ruby

web application
29340 [baasad@qu li] I have a recycler.com like project in mind, so I was wondering what is a good
29345 [alan@di ik t] There is also eruby and mod_ruby.

Simple Console IO question
29346 [button_delet] I am in the process of attempting to learn Ruby (again)
29347 [hal9000@hy e] That's odd, because as you've written it, it
29348 [button_delet] Actually, RubyWin, and that's what shows in the console

raa.succ top 5!
29351 [dsafari@xt a] This is just posted out of curiousity, if you could have raa.succ do
+ 29358 [ jimm@io co ] 1) Keyword searches. Maintain lists of pre-defined keywords that project
| 29363 [niko.schwarz] 4) A list of platforms under which you can run it for each project
| 29380 [ps@ra ia .m ] 5) Be based on the RubyGems project and for crossplatform building maybe also
| 29384 [dsafari@xt a] Hmm..I'm not sure how this sort of thing works (dependency checking
+ 29463 [james@ru yx ] 1. Tell me what things actually do without having to go to a separate page for each entry.

RubyUnit Questions
29357 [ronjeffries@] 0. Is there a writeup somewhere about how RubyUnit works? I'm finding
+ 29361 [chadfowler@c] Seems like I saw one somewhere.  I'll browse around for it and post it
| 29373 [ronjeffries@] Internals. Comparison with Lapidary too, now that I've remembered
+ 29394 [masaki.suket] I have written a book about RubyUnit. The book describes internal
+ 29400 [mike@le to .] Mike.

command line args
29362 [niko.schwarz] Ruby seems to have perl-strength abilities with its command line arguments,
29366 [billk@ct .c ] ruby -pi -e 'gsub(/\\160/, " ")' Description.java

[ANN]RDE0.9.3.1 Release
29364 [QZS01353@ni ] I released RDE

x.dll versus x.lib in mswin32 ruby
29381 [mchahn@fa el] I've built mswin32 ruby and now I'm trying to build ruby/gtk.  When I run
29382 [bdelmee@ad a] Naturally you can; DLL's are used at run-time (and hold the actual code),
29383 [mchahn@fa el] Thanks.  (You can tell I'm not a windows programmer).
29393 [mchahn@fa el] 1. Create a .DEF (module definition) file based on the DLL that you're

This reminds me ...
29387 [ronjeffries@] Isn't it about time for Ruby to be written entirely in Ruby? What's up
29389 [ralph.mason@] And generate C as the IR?
29416 [matju@sy pa ] Well, I had such a project at some point, and it was called M?taRuby;
29421 [henning@ik o] Sorry, would anyone care to repeat the nice advantages of a Ruby in Ruby?

Radical 0.3 released
29395 [i_sofer@ya o] Radical 0.3 released.

Dependency generator and RubyGems [WAS: Re:  Re: raa.succ top 5! ]
29396 [ps@ra ia .m ] the dependencies should be recorded in the rubygems, not by hand in some

TkMenu patch and question
29397 [kero@d4 50 u] When trying to set a font in the TkMenu items of a TkOptionMenubutton,
+ 29398 [Jean-Francoi] did you try TkOption.add?
+ 29460 [nagai@ai ky ] Thank you for your report.

how do I set path or add path
29399 [Desai.Dinaka] I am running Ruby on Linux.  The $LOAD_PATH prints the following

raa.succ dev team
29401 [jbardin@hs .] I have jsut recently been following the progress of raa.succ and I was
29406 [dsafari@xt a] Yes, something similar to apt-get was what was floating around in my

29402 [jack@Ca ee w] I'm tackling the next area of my ruby development: the SMTP class. I can't seem to get it working correctly though?
+ 29404 [matz@ru y- a] You should try
+ 29407 [hal9000@hy e] far!

Re: Net SMTP
29403 [Desai.Dinaka] Following code works.

Compiling on Linux-PPC
29409 [ruby-talk-us] I'm new to Ruby. And not overly familiar with solving problematic compile

ruby 1.6.6 is out
29411 [matz@ru y- a] Ruby 1.6.6 was finally out.
+ 29412 [armin@ap ro ] Matz, thanks a lot for the X-mas present :-).
+ 29415 [ballabio@ma ] Ho ho ho. Ruby 1.6.6. Python 2.2. Quite a Xmas tree this year!
+ 29430 [ruby-talk-us] Compiles like a charm on YellowDogLinux 2.1, complete with ext modules.
+ 29580 [robert3501@y] Just a question. Does Ruby automatically compile in support for Tk if

Surprise (?) with sockets
29414 [list@ch om t] I took for granted that one socket opening and closing, plus three
29417 [tom.hurst@cl] ...Three puts and gets with one-time connections: 0.297782 secs
+ 29419 [tom.hurst@cl] Blegh, IPPROTO_TCP, not SOL_TCP which is in my (online) copy of
+ 29425 [list@ch om t] You saved my mental sanity.  Not too bad for a Xmas gift. ;-)
  29427 [tom.hurst@cl] If you need more assistance in this area, I have some spare prozac in
  29429 [Dave@Pr gm t] Explain the PR problem and I'll add it to the list. Is it that
  29443 [tom.hurst@cl] SOL_TCP is defined only if it's defined by the OS headers, where as
  29445 [Dave@Pr gm t] You have to love consistency. I'd always assumed the SOL_xxx variants

Is this a bug?
29418 [ryo_saeba_00] irb(main):003:0> Integer(3)
29420 [matz@ru y- a] No.  Integer() checks more strictly.  It's the spec.
29433 [nobu.nokada@] But Integer("3\n") passes.  Isn't it strange?
+ 29434 [decoux@mo lo] Integer("0\n") is seen as an octal number (base == 8) because it begin
| 29436 [nobu.nokada@] I know it, however, if "0" were simply the prefix, shouldn't
| 29437 [decoux@mo lo] Well, at least it's consistant with "0x0\n" and "0b0\n"
| 29439 [nobu.nokada@] I think they should behave similary.
+ 29441 [matz@ru y- a] You're right.  We should allow "0\n".  Thank you.
  29444 [nobu.nokada@] Sorry, the former patch was wrong, and dosn't allow "0\n".

Can't require extensions using eRuby
29422 [jonas@de fs ] I've installed eRuby on my Apache on my WinXP machine.
29424 [neumann@s- i] Could you post the eRuby file that produces the troubles?
29426 [jonas@de fs ] (require)
29475 [neumann@s- i] * Print out $LOAD_PATH (in your eruby file) to see if it contains the correct directories.
29476 [jonas@de fs ] correct

ruby-bug ML
29428 [Jean-Francoi] Reporting-MTA: dns; helium.ruby-lang.org

Help with Regular Expression
29431 [gnuvince@ya ] I would like to know how I would check if a variable's content matches a
+ 29432 [dsafari@xt a] irb(main):010:0> a = "+232"
+ 29435 [ralph.mason@] you can just use a normal test eg

Convincing people that Ruby is more productive than C++ or Java in many cases
29438 [armin@ap ro ] X-mas is holiday season, so one meets tons of friends
+ 29448 [gehlker@fa t] I tell people that it's like ObjC but with some of the good bits from C++
+ 29464 [nightblade@n] Following that argument, grep/sh programming "0wnz j00 a11" as they say...
| 29711 [tim@ve et .a] [ snip ]
+ 29712 [tim@ve et .a] Sometimes it looks like the newer languages need a marketing division

Tk / IO question
29440 [rcalco@co te] I'm experiencing some rather significant performance problems with IO.popen
+ 29461 [nagai@ai ky ] I'm sorry but I cannot show you any good solution for your problem.
+ 29621 [Jean-Francoi] I encountered some similar problems when trying to read from a socket

29446 [kumyr@ho ma ] ...

29447 [kumyr@ho ma ] unsubscribe

Newsgroup -> mail list problem?
29449 [schneiker@ju] Some NG posts from the past 2 days don't seem to be showing up on the
+ 29450 [decoux@mo lo] Yes, I've tried to reply to some messages directly from my news server and
+ 29451 [Dave@Pr gm t] Hmm. seems OK from this end. Is it possible they just haven't
  29452 [schneiker@ju] Conrad

29453 [baasad@qu li] image for it.  How can I make my script read all the image files in the
+ 29454 [baasad@qu li] I tried to write the script that will read img file and create thumbs from
| 29455 [dblack@ca dl] Well, you've started a comment at a very strange place :-)
| 29469 [baasad@qu li] thanks for the reply I tried it without #{} thingy and this is what came up
| + 29471 [dblack@ca dl] Do you mean n here, rather than f?
| + 29472 [decoux@mo lo] You remove the suffix '.gif' to `f' and store the result in `n'
|   29709 [baasad@qu li] thanks guys,
+ 29456 [tam@ka s. yo] require 'magick'
  29470 [baasad@qu li] but this will create me only one image file, instead of one thumb image for

A Drag-and-Drop Primer for Perl/Tk - Anyone want to translate to Ruby/Tk?
29457 [schneiker@ju] I've not worked with Perl/Tk or Ruby/Tk for a while, but someone might
29462 [nagai@ai ky ] If it is same to 'Tk DND extension' for Tcl/Tk,

Software Carpentry QMTest Testing Tool Released
29458 [schneiker@ju] FYI, test tools fans.

I think I found the problem with the gateway
29459 [Dave@Pr gm t] If this message appears on the ML, then the problem was due to an
+ 29482 [schneiker@ju] Thanks much, Dave!
+ 29518 [aamine@mx ed] I cannnot reproduce bug. Could you show me your code snip?
  29526 [Dave@Pr gm t] I dug a bit deeper, and the problem is not 1.6.6, but the change to

Sending mail via an Exchange server
29465 [harryo@zi wo] I looked in RAA, but couldn't find anything that allowed the sending
29474 [thomass@de t] Unless you are talking about some ancient version of Exchange, you

How to do a DNS lookup?
29466 [n.gilbert@so] ...
29467 [decoux@mo lo] I've replied on the newsgroup see
29468 [n.gilbert@so] Thank you!

Re: Eruby compiled with 1.6.6 does not work
29473 [YuriLeikind@] I checked it all.

Oracle 8 support?
29477 [sean@ch tt n] Does anyone have any success stories with ruby + Oracle 8i?
+ 29479 [chadfowler@c] I'm using it with 8i and no problems as of yet.
+ 29480 [Dave@Pr gm t] Works fine for me (in production code, no less). I had to tweak the
| + 29481 [sean@ch tt n] Excellent.  When I was reading over the DBI page it said Oracle 7 and
| | 29524 [neumann@s- i] Well, I mention there the dependent database library, which is
| + 29485 [mps@di co sy] Works fine for me on 8i (8.1.5, 8.1.6 and 8.1.7) on Solaris and Linux.
+ 29531 [danny@fr uk ] Oracle 9 doesn't seem to work, I cannot find the ocidfn.h file that

GC and values in extensions
29483 [johann@ph si] When is it safe to leave a VALUE floating around in an extension
+ 29506 [nobu.nokada@] VALUEs referred by C++ objects.  You can use a Hash instead in
+ 29508 [matz@ru y- a] Ruby's GC is "conservative" so that they are protected as long as they
  + 29528 [paul@at es .] I've heard this same response before, but I'm not sure quite what you
  | 29530 [decoux@mo lo] Look at rb_gc() and stack_end
  | 29532 [paul@at es .] VALUE foo(VALUE self) {
  | + 29533 [decoux@mo lo] Well a better example is
  | + 29539 [matz@ru y- a] It won't.
  + 29534 [johann@ph si] Can the conservative GC find objects (i.e. stuctures with VALUEs for
    29536 [nobu.nokada@] See [ruby-talk:29506].

29487 [hutch@xa pl ] I have downloaded and compiled Ruby 1.7.2 (27 December 2001) and have
+ 29492 [nobu.nokada@] Nothing more.
| 29529 [paul@at es .] So what is the difference, then, between Module#included and
| + 29535 [chr_news@gm ] The default action of #append_features is to ``append_features''.
| | 29538 [decoux@mo lo] Yes, another consequence is that
| + 29537 [nobu.nokada@] Module#append_features does actually append features(methods
+ 29514 [decoux@mo lo] Well, the response was given by Nobu Nakada. Just a small example

Python and Ruby: a comparison
29488 [rdsteph@ea t] I initiated a thread over on comp.lang.python which has turned into
+ 29489 [curt@hi bs c] I went to the URL you posted but could not find the thread.
| + 29490 [billk@ct .c ] (Haven't read it yet myself . . . . .)
| | 29495 [harryo@zi wo] Most of the postings are very reasonable.  Not pure Ruby bashing, just
| | + 29497 [billk@ct .c ] Yeah, mostly I agree . . .  cept when I look thru job listings ;-)
| | | + 29501 [harryo@zi wo] No problem there.  Wax lyrical about whatever they're asking
| | | | 29503 [billk@ct .c ] Indeed, sometimes I imagine that each and every programming
| | | + 29573 [elderburn@mi] Or...when you are creating sites on public hosts you don't own or
| | |   29594 [henning@ik o] yeah, we tried to convince our webhotel to install ruby, but then the RPM's
| | |   29601 [elderburn@mi] I wasn't even aware there ~were~ rpm's for Ruby! LOL
| | |   29611 [james@ru yx ] Ruby installs quite easily using the ./configure, make, make install route.
| | + 29759 [tim@ve et .a] [ snip ]
| + 29491 [rdsteph@ea t] Sorry, it  is found at comp.lang.python, a usenet newsgroup, not on my
+ 29651 [schneiker@ju] [In this and other somewhat related threads] Some people have (in different
  + 29652 [dblack@ca dl] I'm inclined to think not.  I imagine such a language would quickly
  + 29655 [henning@ik o] Pyby :-)!!
  + 29677 [rdsteph@ea t] Very interesting idea. Unfortunately, I doubt if it woudl be possible. For one
  | + 29691 [dan@si he or] Oh, don't doubt. We've pulled it off already, to an extent, with the perl 5
  | | + 29695 [dan@si he or] For now, yep. Once we get things situated right, you won't even need to
  | | + 29716 [decoux@mo lo] The perl parser is written in perl ?
  | |   29736 [dan@si he or] For perl 5, no. (Nasty mass of yacc and C) For perl 6, the plan is that it
  | |   29824 [decoux@mo lo] OK, now I've another question.
  | |   29858 [dan@si he or] What, you mean what do we do if we find the underlying security model for
  | |   29861 [decoux@mo lo] The problem of Safe.pm is fixed in 5.6.1 ?
  | |   29862 [dan@si he or] Dunno about Safe.pm in perl 5.6.1. That's someone else's responsibility.
  | |   29863 [decoux@mo lo] I can say that it's not fixed.
  | |   29865 [dan@si he or] If there are design flaws in Safe.pm, let me know. (Off-list, I think, as
  | + 29696 [schneiker@ju] one
  |   + 29701 [dan@si he or] I've Cc'd to ruby-talk. AFAI it's a bidirectional gateway. (It's where I
  |   + 29766 [dblack@ca dl] Personally, if these two languages merged, I'd really miss Ruby :-)
  |     29772 [mkelly2002NO] Hmm, I wonder if it wouldn't be more productive
  |     + 29774 [dan@si he or] Now there's an interesting idea... :)
  |     + 29777 [s3225202@st ] Check out Parrot
  |       29869 [mkelly2002NO] Parrot
  |       29871 [dan@si he or] As the Parrot designer, I'd be happy to answer any questions anyone might
  + 29680 [borcis@ge ev] What would be fun is to have library interoperability completed
    29764 [timr@pr bo c] Oddly enough, I believe that is almost exactly what Bill Gates believes he
    + 29765 [dan@si he or] To some extent he has. Sort of, for statically-typed OO languages at least.
    + 29788 [jdhunter@ni ] And which Ximian and GNOME are bringing to the open source world with
    + 29810 [eldiener@ea ] CLR is a lowest common denominator for language ideas which MS supports.
      + 29819 [james@ru yx ] Is it the lowest common denominator, or the highest common factor?
      | + 29850 [martin@v. oe] It is that bad. The only language that is provided completely and
      | + 29997 [eldiener@ea ] Well Microsoft would say the highest common factor but that is not even
      + 29833 [syring@em il] "Edward Diener" <eldiener@earthlink.net> schrieb