25725-27642 subjects 26141-27839

Why does #{a} not evaluate when read from file?
25918 [jim@fr ez .o] Here I am again.
+ 25923 [dblack@ca dl] The short answer is: because String handling in Ruby is sane :-)
+ 25930 [ptkwt@sh ll ] It won't evaluate when read from the file because that string is read in
+ 25931 [dblack@ca dl] [I mailed this answer a while ago but it hasn't shown up on the
+ 25967 [kit@fu cr mi] If you read the contents of the file into the variable 'var', you can

Checking if a file exists...
25920 [BSchumacher@] I was wondering if somebody had an easy way of checking if a file exists on
+ 25924 [mike@st k. o] File.exists? maybe?
+ 25926 [ralph.mason@] FileTest.exist? "filename"
| 25936 [jim@fr ez .o] Also
+ 25927 [decoux@mo lo] File#exists?
+ 25928 [armin@ap ro ] irb
+ 25935 [ptkwt@sh ll ] if FileTest.exists?("filename")
  25933 [ptkwt@sh ll ] File.exists?("filename")

FW: Checking if a file exists...
25921 [BSchumacher@] Nevermind. Just found FileTest. Thanks.

- sourceforge + savannah (?)
25939 [tobiasreif@p] There are aleady 3 Ruby projects @
+ 25943 [anany@ec .v ] Yes, one of them is mine (RubiCTM). I was hosted on SourceForge, and
| 25944 [tobiasreif@p] "Savannah"?
| 25945 [tobiasreif@p] where was thet "unsent" button? sorry, I was too slow.
| 26099 [martin@v. oe] It's called "Cancel" in UseNet.
+ 25947 [rokosm@kl ka] 'OpenSSL for Ruby' is also there...
+ 25951 [ptkwt@sh ll ] Thanks for the link.  Amazing how this looks a lot like Sourceforge ;-)
| 26035 [curt@hi bs c] In the original post was author had copyright and assignment issues with
| + 26045 [pbrannan@at ] What do you mean by "export" projects?  A tarball of each project's CVS
| | 26051 [curt@hi bs c] Besides the source code, there's at least the bug database and probably
| | 26101 [martin@v. oe] So how do you export the bug database from a Savannah project?
| + 26100 [martin@v. oe] But that inability is a myth. There is no problem whatsoever, AFAICT.
+ 26068 [mips@cy er p] Not under hand, but i think this should not be hard to find it.
+ 26098 [martin@v. oe] This is FUD. It is simply not true that exporting from SF doesn't
  26124 [tobiasreif@p] "Thank you for your interest in contributing software code to SourceForge.

psyco Python Specializing Compiler
25949 [benoit.cerri] in the parrot mailing list I came across this site

Re:psyco Python Specializing Compiler(relavent for Rite?)
25950 [ptkwt@sh ll ] It does look interesting.  The people working on Rite (the upcoming Ruby

a quick question
25954 [anany@ec .v ] What's the difference between using '' and "" in require calls at the top
25956 [Dave@Pr gm t] That's all there is to it. The parameter's a string object, which is

string concat and .to_s
25955 [mchahn@fa el] in `+': failed to convert Fixnum into String (TypeError)
25957 [Dave@Pr gm t] #puts knows that it it's parameter is not a string, it can call
25968 [ralph.mason@] Although as a bit of an anomaly it works with arrays.
25969 [Dave@Pr gm t] In what context?
25970 [ralph.mason@] I think ruby just bit me! Or I bit myself one or the other.
26018 [mike@st k. o] The boatload of Perl people would say that the use of + as an operator
26088 [mchahn@fa el] turned on
26089 [Dave@Pr gm t] No - it isn't built in. I mean enabling it by extending the
26092 [ralph.mason@] Sure it's in there just not in so many words :-)
26112 [decoux@mo lo] You have defined an instance method not a class method, try with

25959 [chadfowler@y] Has anyone gotten Ruby running (perhaps in some limited form) on the
+ 25961 [ralph.mason@] There is no reason that ruby can not run natively on CE.  It's just no one
+ 25965 [ned@bi e- om] There is a PocketPC port in process (or was, anyway). Look in the Ruby CVS.
| 25966 [chadfowler@y] <There is a PocketPC port in process (or was, anyway). Look in the Ruby CVS.
| 26041 [j1kwok@ya oo] I am the one working on PocketRuby (for Pocket PC only).  I promise to
| + 26048 [curt@hi bs c] I'm really glad to here this, and look forward to giving it a try on my
| + 26066 [ned@bi e- om] Jack, are you making sure that this will run in the HPC/Pro environment as
| | 26533 [j1kwok@ya oo] Ned, no... currently I am only working on the PocketPC environment.
| + 27110 [j1kwok@ya oo] I just uploaded my newest code a few minutes ago.
|   27234 [bobhicks@ad ] Please put a link to where it can be had..!
|   27271 [chadfowler@y] ...or...
+ 26635 [erik@ba fo s] On Linux
| + 26636 [tobiasreif@p] Looks like fun!
| | 26638 [erik@ba fo s] Check out http://www.handhelds.org/
| | 26646 [chadfowler@y] I don't know about pre-installed linux, but the latest
| + 26694 [j.travnik@sh] Yes, that is cool.
+ 27607 [j1kwok@ya oo] I am having trouble connecting to CVS for upload at the moment. But
  27712 [j1kwok@ya oo] Just want to let you know I have uploaded new source code (for
  29264 [j1kwok@ya oo] I have just updated the CVS with a very usable version of the

25960 [Jean-Francoi] when I use Canvas.postscript function, the resulting ps file is always
25964 [armin@ap ro ] This is interesting, as I seem to get color ps & I do not specify anything.

OO Singletons and Marshalling (bug?)
25963 [chr_news@gm ] the current (i.e. cvs) implementation of the  OO Singleton pattern has
26238 [matz@ru y- a] I like this one.  Can I merge it to the standard distribution, under
26364 [chr_rippel@g] Sure, I don't mind at all if some (or all)  could be merged according
26456 [matz@ru y- a] Thank you.  I will.

REXML parser bug(?)
26000 [maki@in c. o] The script to parse string with REXML::Document,
26001 [tobiasreif@p] really? where does the '2' come from?
26002 [maki@in c. o] Oops, sorry. I've copy&pasted old script.
26003 [tobiasreif@p] irb(main):001:0> require 'rexml/document'

Re: Hello World considered harmful
26004 [dblack@ca dl] That's probably why Dave and Andy very sensibly didn't start the book
26005 [ms@ia ta e. ] Dave, care to explain any of that?
26008 [decoux@mo lo] Here in more readable form
26020 [Dave@Pr gm t] People, people.
+ 26022 [ruby@ja es r] It's also a good way to learn some of the more subtle aspects of Ruby.
+ 26025 [jweirich@on ] Proving once again that it is possible to write Perl in *any*
  + 26028 [acme@as ra .] That's a little unfair to Perl. It's possible to write
  | + 26072 [john.carter@] It is a little unfair. Not much, but a little....
  | + 26164 [matju@sy pa ] It's more fair to say that you can write any language in
  + 26077 [paulp@Ac iv ] It is possible to write unreadable code in any language. But the
    26212 [pdcawley@bo ] Right, I'm off to write an obfuscated JARH that *doesn't* use perlish

R:  Re: Hello World considered harmful
26006 [a.caruso@cr ] I thought the main reason people are moving towards Ruby instead of keep
+ 26007 [dblack@ca dl] There is no Ruby Obfuscation contest, as far as I know.  There was
+ 26023 [Dave@Pr gm t] And once you're here, have fun. Golf tournaments, obfuscating code,
  + 26029 [erik@ba fo s] I think alot of people really liked the code :)
  | + 26033 [keesh@us rs ] Some people have strange ideas of what bad code is... I've seen the
  | | 26087 [mchahn@fa el] I was surprised when Sun announced that the next Java release would have
  | + 26039 [keesh@us rs ] Some people have strange ideas of what bad code is... I've seen the
  | | 26043 [billk@ct .c ] ...what could be more readable than that!?!?!????
  | + 26040 [Stephan.Kaem] I second that! I think it's the best joke written in Ruby I read up to now.
  + 26044 [pete@na ya P] i enjoyed your hello world program. i like Perl golf. one does learn

26009 [tobiasreif@p] how can I say "if you're positive: stay; if you're negative: become zero"?
+ 26010 [barry_shultz] is this ok?
| + 26011 [jim@fr ez .o] I like the above, but could be computational
| + 26012 [tobiasreif@p] Thanks; now i did
|   + 26013 [ms@ia ta e. ] class Numeric
|   | 26015 [tobiasreif@p] very nice; I'd like to use that. But how can I
|   | + 26016 [decoux@mo lo] 1.6.* interpret it as (p(10-40)).pos
|   | + 26017 [Pierre-Charl] Ruby parses it as (p(10-40)).pos, and p returns nil.
|   | + 26019 [kentda@st d.] Isn't this the good ol' parsing problem with puts (and p too), where it
|   + 26014 [henning@ik o] class Numeric
+ 26069 [niklas@ka i.] [Tobias Reif]
  + 26070 [tobiasreif@p] Very cool. Thx!
  + 26081 [jim@fr ez .o] def pos x
  + 26095 [mchahn@fa el] I spent some time looking for max(a,b) in ruby before discovering and using
    26097 [Dave@Pr gm t] It is more generic, as. #max is a method of all Enumerable objects

R:  Re: R:  Re: Hello World considered harmful
26021 [a.caruso@cr ] I'm new to this mailinglist and new to the language.

Re: sounding the alarm ?
26024 [alwagner@ua ] Tk has a beep. But it doesn't seem to work on windows. Probably

R:  Re: R:  Re: Hello World considered harmful
26026 [a.caruso@cr ] Don't worry. I'm not offended in anyway, and I think programming language IS

Compiling Ruby Extensions in Windows
26030 [billtj@y. lu] I have been following the book "Programming Ruby" (the printed
+ 26031 [    s@xs .d ] including the possibility for problems :-)
| + 26034 [mdavis@se ai] I use cygwin for development on windows.  It provides a fairly consistent environment between windows, linux, and freebsd.
| + 26108 [billtj@gl e.] Thanks for your pointers.  I just upgraded my Windows Ruby to 1.6.5
|   26110 [james@ru yx ] That doesn't sound quite right.  I installed cygwin, and I got make and gcc.
|   26111 [james@ru yx ] If you still don't have make & gcc, I think they can be found at
|   + 26121 [WYS@he bl ng] ...did you install cygwin using the http://www.cygwin.com/setup.exe ?
|   + 26687 [billtj@gl e.] Thanks for all the responses, which made me look further into the
|     26852 [harryo@zi wo] I could be wrong, but I think tcltklib.so is part of the Tcl/Tk
+ 26036 [eldiener@ea ] Lost to the MSVC crowd is the fact that Borland puts out a free C/C++
  26037 [keesh@us rs ] Doesn't produce small apps, there's quite a bit of overhead with Borland's

FXRuby on mingw
26049 [cv8t-hdk@as ] I built FXRuby in mingw32 environment, and I've created this patch.

26050 [tobiasreif@p] sometimes, methods call itself inside.
+ 26055 [neumann@s- i] Yes, this is called recursion.
| 26057 [tobiasreif@p] me neither. It's not about unwanted recursions: it's about making it
| + 26061 [dblack@ca dl] I see what you're getting at, but I think that if there are so many
| | 26067 [tobiasreif@p] good :)
| | 26073 [ralph.mason@] While I don't agree that call_self is of use.
| | 26076 [kentda@st d.] Arg! You beat me to it, since I can't tell heads nor tails of RegExps
| | 26079 [ralph.mason@] Your right about the argument count. Here is a perhaps useful use for this
| + 26062 [ptkwt@sh ll ] I'm not sure your 'call_myself' proposal would make it any clearer 'after
+ 26119 [matju@sy pa ] It's better for a method not to explicitly call itself, because that way

FXRuby:: replacement to enum method.
26056 [cv8t-hdk@as ] I'd like to propose replacement of enum method.

Fw: ANN: Jolt Award Nominations Now Open
26065 [petemcbreen@] Anybody care to join me in nominating Ruby for a Languages and

The first official release of ArunaDB
26071 [mdavis@se ai] I am very pleased to announce the first official release of ArunaDB.
+ 26074 [jan@ve me r.] currently
+ 26078 [bobhicks@no ] Someone with DB experience please please help out! One of the cool
+ 26082 [jim@fr ez .o] Would this be a good candidate for raa.succ?
+ 26104 [kevinbsmith@] I actually had discovered it earlier this week. Looks
  26186 [mdavis@se ai] performance reasons.  These are used by the A_BTree and A_FileStore
  26187 [mdavis@se ai] What is raa.succ?
  26192 [jim@fr ez .o] It is a proposal for a package management system for ruby code.

book "the ruby way" on publishers web-site
26075 [info@mj is d] "The Ruby Way" now is at

differing #args to super.initialize?
26080 [billk@ct .c ] I'm probably profoundly missing the obvious here, but why does the
+ 26083 [feldt@ce ch ] try
+ 26084 [henning@ik o] should be just super(a)
  26085 [billk@ct .c ] Thanks Henning and Robert,
  + 26086 [feldt@ce ch ] Not clear what you mean but if its an instance method in the super class
  | 26090 [billk@ct .c ] Right, the case I was referring to is the unusual one where one might
  | 26093 [feldt@ce ch ] Ok, well there are a couple of ways but a "standard" one is to alias the
  | 26096 [billk@ct .c ] Ah.  Thanks.  :)  Nice to know the method of doing so is available should
  + 26123 [kentda@st d.] You could do something like this, with alias_method, which seems to work

List of methods that can implicitly act on $_ ?
26091 [josb@cn ds .] Some methods can implicitly act on $_, such as chomp and split; others, such
26237 [matz@ru y- a] OK, You know I discourage this idiom.  Don't use them.
26290 [josb@cn ds .] Fair enough. I agree that it's bad idiom.
26322 [matz@ru y- a] I've not decided yet.  But I can tell you the future version will give
+ 26326 [dblack@ca dl] Hmmmm.... maybe you can find a diplomatic way to say it, like "legacy
+ 26386 [billk@ct .c ] I like to use the $_ shortcuts *only* in the -e invocation of Perl and
  26453 [matz@ru y- a] Good idea.  You won't be disappointed.

26106 [w3gat@be ls ] Can anyone tell me how long the pseudorandom sequence is for rand before it
26122 [feldt@ce ch ] Depends on the architecture since Ruby uses pseudo-rand gens of the OS it

What am I missing here?
26107 [ralph.mason@] This is a multi-part message in MIME format.
26113 [decoux@mo lo] $_ (like $~) is a local and thread local variable.
26114 [ralph.mason@] Why should Kernel.instance_eval  not give the same behavior as a method
26115 [decoux@mo lo] Your call to Kernel.instance_eval is the same than $_.upcase!, i.e. you

eruby on windows and apache
26109 [brianechapma] I'm having trouble getting require 'anything' to work
26163 [YuriLeikind@] I think I had the same problem with
26761 [shugo@ru y- ] Sorry, I didn't have time enough to read this newsgroup.
26906 [brianechapma] I got both binaries (latest releases) from the
27441 [shugo@ru y- ] Can you tell me the value of $:?
27549 [brianechapma] Here's the information you were looking for.  I'll do
27655 [shugo@ru y- ] It's a bug of ruby on Windows.

Dynamic programming and Unit Testing.
26125 [hgs@dm .a .u] I'm trying to understand how to use the dynamic featurs of Ruby
26127 [feldt@ce ch ] class T
26132 [hgs@dm .a .u] That's OK.

Conformance Test of XML Parsers in Ruby(20011122)
26126 [maki@in c. o] I tried to test conformace of XML parsers in Ruby, using
+ 26128 [tobiasreif@p] very good thing. Thank you.
| 26134 [dblack@ca dl] It's pretty close to useless... at least it won't be taken seriously by
| + 26135 [tobiasreif@p] Sure, but there are some misunderstandings... (sorry if I expressed
| + 26145 [kevinbsmith@] I totally disagree. There are plenty of cases where the
|   + 26147 [tobiasreif@p] That's the point; in all other cases, a non-conformant implementation is
|   | + 26150 [kevinbsmith@] And my point is that we don't really know whether 99% of
|   | | 26153 [tobiasreif@p] If you need a
|   | + 26152 [Dave@Pr gm t] Perhaps - it also depends to some extend on the failure mode. If the
|   |   26189 [dblack@ca dl] 1. an XML parser that implements a subset of what the 1.0 spec asks
|   |   26225 [hutch@xa pl ] On 01/11/22 10:29 PM, "David Alan Black" <dblack@candle.superlink.net>
|   |   26233 [tobiasreif@p] well put.
|   + 26165 [james@ru yx ] Referring to something as an XML parser|DOM|whatever brings certain expectations.  If only 99% of the expectations are met, then the
|     26177 [ jimm@io co ] Not Quite XML? (http://www.io.com/~jimm/downloads/nqxml/)
|     26191 [james@ru yx ] Actually, that only popped into my head *after* I sent the message.
+ 26149 [james@ru yx ] The XML spec says that an XML parser must raise an error and stop processing when it encounters an error.  The intent was to promote
+ 26162 [ jimm@io co ] TAKAHASHI,

Community spike: Fast-state-machines/goto challenge
26130 [feldt@ce ch ] I'm contemplating the fastest way to implement state-machines and
+ 26133 [angus@qu va ] Here is a simple straightforward approach, from a person who doesn't have
| 26138 [angus@qu va ] Hey, I've made it slighty faster by assigning to a local variable (instead
+ 26179 [Dave@Pr gm t] 1. The run time performance is dominated by the transition lookup, and

[ANN] LibNeural released
26137 [akimichi@mb ] I just released LibNeural 0.1.

XML conformance
26139 [tobiasreif@p] XML, conformance; a story.

SV:  XML conformance
26140 [mikkel.bruun] "there is no standard for breaking the spec"....very nice...I have to
26142 [tobiasreif@p] It's made up (sorry, I should have made it clear; but versions probably