116219-117728

115976-117042 subjects 116409-119999

^ 1.8.2 [WAS] Re: TempFile
116219 [Ara.T.Howard] would you say it should be safe to move from 1.8.1 to 1.8.2 without extensive
116221 [matz ruby-la] It should be, except for yield semantics, which I still need to
+ 116233 [markus reali] I believe there was a change that affected the behavior of
| 116252 [matz ruby-la] Right.  Older Ruby just discarded when two class sentence with
+ 116239 [Ara.T.Howard] can you expand (or provide reference for me to read)?
  + 116245 [markus reali] and the threads surrounding it for some background.  This is not the
  + 116250 [matz ruby-la] See the thread in ruby-talk from [ruby-talk:113697].

^ [ANN] Copland 1.0
116224 [jgb3 email.b] Well, I finally decided that Copland is ready for the Big Time. It's at
+ 116263 [david loudth] Congratulations, Jamis! Your dedication to well-documented and timely
+ 116335 [batsman.geo ] Thanks a lot Jamis! Looking forward to Needle (will have to rename the
| 116353 [horacio.lope] and thanks Mauricio for the RPA port
| 116377 [jgb3 email.b] Yup. Though, now that you mention it, I think there may be a few minor
+ 116350 [horacio.lope] Great work Jamis !

^ documentation as source
116226 [ml-ruby thep] Are there any Ruby modules that allow documentation to act as source
+ 116228 [jgb3 email.b] I haven't seen it done in Ruby, but the general idea is called "literate
| + 116260 [niklas kagi.] If you want to try out literate programming, I recommend the "Leo"
| | 116332 [markus reali] *smile*  Wonderfully put.
| | 116583 [jamesUNDERBA] Where do all of these different stories go, if not together, such that
| | 116638 [markus reali] Most fiction is layered; a novel may contain many short stories,
| + 116268 [ml-ruby thep] Doh! That's the term I've been trying to think of. Thanks.
|   + 116270 [ruby brian-s] Only for this special case, you could use
|   + 116272 [rff_rff remo] I'd check if RDoc can solve your problems.. then patch it to do it if it
+ 116230 [transami run] figure out these method signatures, but it is incomplete because Ruby is not
+ 116238 [Ara.T.Howard] do a search for 'literate programming' - it sounds like what you are talking
+ 116257 [bob.news gmx] "Randy W. Sims" <ml-ruby@thepierianspring.org> schrieb im Newsbeitrag
+ 116264 [ruby-lists l] one thing i'd like to have in ruvi is good integration
+ 116281 [Bil.Kleb NAS] require 'test/unit'
| + 116284 [flgr ccan.de] I've coded up test-extract which lets you embed some of your test-cases
| | + 116566 [nathaniel ta] class Adder
| | | + 116569 [flgr ccan.de] Ah, that looks very nifty. :)
| | | + 116693 [transami run] Well, I say, I like the general idea of sub('::', '/') and all --making
| | |   + 116706 [rff_rff remo] this is interesting, but still requires a lot of typing from you.
| | |   | + 116738 [nathaniel ta] Florian's approach definitely has advantages... the one killer
| | |   | + 116748 [transami run] I have three issues with using comments in this way.
| | |   |   116753 [rff_rff remo] don't you expect to have correct samples and comments?
| | |   |   116811 [nathaniel ta] This is the key thing for me. Anything that helps us (automatically)
| | |   |   116827 [transami run] Sorry,
| | |   + 116736 [nathaniel ta] Yup. It's miniscule, and I just don't care. If you do, you don't have
| | |     + 116749 [eeklund gmai] I'll take this one.
| | |     | + 116809 [nathaniel ta] Certainly possible complaints... but not enough to dissuade me from my
| | |     | | 116898 [eeklund gmai] The _maybe_ is the important part of this sentence, I think.
| | |     | | + 116983 [mmirra liber] I'm for any syntax that favours a quick code-test-code cycle.
| | |     | | | + 116987 [batsman.geo ] That's not really the case because...
| | |     | | | + 117022 [eeklund gmai] Are you by this saying you are going to abuse Nathaniel's syntax to
| | |     | | |   + 117025 [Bil.Kleb NAS] Can someone compare/contrast an example of each for the same scenario?
| | |     | | |   | 117026 [eeklund gmai] # Creates a Regexp which matches a literal string. In this
| | |     | | |   | + 117029 [peter semant] If this were a voting thing I would go for Nathaniel's syntax as
| | |     | | |   | | + 117033 [batsman.geo ] #   # This creates a Regexp which will match 3 "foo"s.
| | |     | | |   | | | 117048 [rff_rff remo] # This creates a Regexp which will match 3 "foo"s.
| | |     | | |   | | | 117057 [flgr ccan.de] I think the latter is harder to read, because there is more clutter,
| | |     | | |   | | | 117058 [transami run] Actually goes with your '# outputs ...' notation if you use '# => ...'
| | |     | | |   | | | + 117059 [flgr ccan.de] Isn't that what we already had above, but with the indentation removed? :)
| | |     | | |   | | | + 117060 [rff_rff remo] yes, but that way how would you distinguish code from text... mh.. maybe
| | |     | | |   | | |   + 117062 [flgr ccan.de] Note that not every line of the sample code has to have a result that is
| | |     | | |   | | |   + 117063 [transami run] Oops, I was just excluding the extra remark space '#  ' for brevity. But now I
| | |     | | |   | | |     117070 [flgr ccan.de] Currently it doesn't. Everything that is indented is assumed to be code.
| | |     | | |   | | |     117090 [transami run] Well I'm not sure what your doing presently. You could require an indented
| | |     | | |   | | |     + 117101 [botp delmont] many times, I have multi-# on a line on my code. Blame me lazy and my editor
| | |     | | |   | | |     | + 117105 [transami run] At least you write comments! Me the L:)
| | |     | | |   | | |     | | 117116 [botp delmont] trans. (T. Onoma) [mailto:transami@runbox.com]
| | |     | | |   | | |     | + 117118 [flgr ccan.de] Which is not explicitly bad. But do you also have indented text in your
| | |     | | |   | | |     + 117117 [flgr ccan.de] But even your example from above would pass the Syntax Parsing step. And
| | |     | | |   | | |     | 117140 [transami run] True. I "under-spoke". I was thinking that it might make sure those were real
| | |     | | |   | | |     + 117556 [markus reali] I still don't like the whole idea of executing comments.  What if
| | |     | | |   | | + 117035 [eeklund gmai] I think Nathaniel's is much more obvious *if you're viewing this
| | |     | | |   | |   117039 [transami run] That's a good point.
| | |     | | |   | + 117037 [transami run] This points out the distinction nicely --and the slight dislike I have with
| | |     | | |   + 117073 [mmirra liber] Uh?  No.  There's no need to, I already write ordinary tests at the
| | |     | | + 116984 [rich infoeth] I would use the syntax that Nathaniel is proposing...I would very much
| | |     | + 117123 [ruby-lists l] i much prefer florian's syntax, however, i much prefer the code being
| | |     + 116825 [transami run] Unfortunately this is very much a case where I DO have to eat your sandwich. I
| | + 116990 [ml-ruby thep] I very much like the idea of being able to test examples embedded in the
| |   117043 [flgr ccan.de] This sounds like a quite good idea -- currently the setup needs to be
| + 116285 [mikael phubu] What's in the works for test/unit2?
|   116567 [nathaniel ta] Formats include Keynote (the original), Powerpoint, Quicktime and PDF.
+ 116400 [dido.sevilla] As other people have mentioned, what you're talking about is

^ Rubyx on OS News
116244 [transami run] Rubyx splotlighted on OS News.
+ 116289 [batsman.geo ] I am very interested in the rubyx script, but I couldn't find any simple
| 116441 [andrew walro] I've put a copy here
+ 116440 [andrew walro] No longer the case :)
  + 116472 [transami run] Ooo.. that's promising.
  | 116946 [andrew walro] I'm afraid the iso hasn't many proxy mirrors yet, and the demand on my home
  + 116495 [batkins57 gm] What is the advantage of serving Rubyx through White Water rather
    116522 [transami run] It doesn't bother me --in fact I kind of like ww since it is just one
    + 116534 [zoso foton.e] hen=20
    + 116942 [discordantus] well, I guess you're lucky. I can't get whitewater to compile on my
      116944 [andrew walro] I'm happy to work with you to get this fixed; I'm already working with another

^ Re: Ruby is a slow performer
116255 [fritz.heinri] simply set the lines of code multiplier to 1 and all others to 0 and

^ How to get and compare file lists in directory?
116261 [nkb pacific.] I've a directory with a long list of files (e.g. *.rb, *.txt, etc.). All
116267 [ruby brian-s] Please note, that in ruby you have to but the argument list with the
116338 [elvstone gma] s/newfile/new_file
116378 [ruby brian-s] Oh, thats true. And also I did not follow my own advice to use
116399 [app1tam ups.] external program 'diff'.  Here's a snippet of what I did.  It might help

^ Help me with Webrick [BUG] rb_sys_fail()
116269 [tamc2 cam.ac] /usr/lib/ruby/1.8/webrick/httprequest.rb:307: [BUG] rb_sys_fail() -

^ "nan".to_f ?
116271 [beast system] irb(main):001:0> VERSION
+ 116273 [robo mars.co] Why would Ruby turn "nan" to "NaN" when you told it to convert the
| 116275 [rff_rff remo] NaN stands for Not a Number and is a 'builtin' value in floating point
+ 116276 [Stephan.Kaem] str.to_f   => float
  116340 [markus reali] Yes, but his point is that "NaN" _is_ the string representation of
  116343 [mikael phubu] 0.0/0.0? :-)
  + 116354 [Stephan.Kaem] When would you *need* NaN in the first place? To show the the result of
  | + 116366 [markus reali] I don't have a specific example in mind.  Perhaps you're writing
  | | 116450 [markus reali] x = 0.0/0.0
  | | + 116452 [matz ruby-la] Although we can tell whether a float value is NaN by using isnan(),
  | | | + 116463 [transami run] Not sure if portable, but one might try
  | | | + 116473 [gotoken notw] def aNaN
  | | | | 116526 [matz ruby-la] If the platform uses IEEE floating number, right?
  | | | | 116648 [gotoken notw] Agreed!  And if there exists NaN on a non IEEE platform,
  | | | | 116663 [markus reali] My mistake is clear.  I was assuming Float == IEEE.
  | | | | 116787 [gotoken notw] Mistake? I don't think you mistook. or I also mistake.
  | | | | 116788 [matz ruby-la] C99 defines isnan() and isinf().  I'm not sure C99 assumes IEEE 754.
  | | | | 116791 [gotoken notw] That is very IEEE 754 support.
  | | | | + 116800 [WBrown isoft] Matz,
  | | | | + 116838 [matz ruby-la] Does this mean that I can assume IEEE 754 on every platform?
  | | | + 116507 [markus reali] No, so far as I know you are correct (at as far as math operations
  | | |   116510 [markus reali] ...I really shouldn't post before caffeination, esp. after being up half
  | | + 116459 [Stephan.Kaem] I think there's not even a problem (or an SEP). You could easily
  | + 116394 [beast system] Well, my case was pretty simple, I'm parsing the output of RRDTool,
  |   116401 [matz ruby-la] It's not valid string representation of a float.
  |   116804 [furufuru ccs] Maybe I'm too late to jump in to this old thread
  |   116833 [matz ruby-la] I agree that it's good to be so.  The point is how I can implement
  + 116357 [markus reali] I almost went off on an IEEE spiel until I saw the ":-)"
    116363 [mikael phubu] Actually, I'm as ignorant as you first assumed.  Feel free to spiel if
    116370 [markus reali] Short form: there are several NaN's, and "NaN like values" (e.g. +/-

^ [ANN] ruvi 0.4.12 PRERELEASE [rpa only atm]
116280 [ruby-lists l] rpa install http://www.lypanov.net/ruvi-prerelease_0.4.12-1.rps
116345 [ruby-lists l] oh yeah. i'm a lazy git and couldn't be arsed doing this
116355 [ruby-lists l] urk. okay. this is what prereleases are for :)

^ tempfiles created by tmpfile removed at exit - can I change this easily?
116291 [graham rockc] (I think I'd call it a script as it is replacing a bash script), and if I
+ 116296 [bob.news gmx] "Graham Nicholls" <graham@rockcons._ns_co.uk(spam_filtered)> schrieb im
| 116306 [graham rockc] Thanks - thats taught me about ObjectSpace, and finalizers, which presumably
+ 116303 [Ara.T.Howard] i would try not to mess with the interals of Tempfile (although you could
  116304 [bob.news gmx] <Ara.T.Howard@noaa.gov> schrieb im Newsbeitrag

^ Auto-created Array elements?
116292 [B.Candler po] a = Array.new { [] }
+ 116295 [decoux moulo] svg% ruby -we 'Array.new { [] }'
+ 116300 [bob.news gmx] "Brian Candler" <B.Candler@pobox.com> schrieb im Newsbeitrag

^ [Little OT] Re: Ruby Directions (was Re: quality of error messages)
116309 [ehames gmail] I found this article which debunks some myths about Java performance.
116313 [bob.news gmx] "Edgardo Hames" <ehames@gmail.com> schrieb im Newsbeitrag

^ How to unsubscribe
116311 [linus_holmlu] I am just wondering how I can unsubscribe from this list, since I want to
116326 [ml-ruby thep] List-Id: ruby-talk.ruby-lang.org

^ return val of initialize [WAS] Re: tempfiles created by tmpfile removed at exit - can I change this easily?
116314 [Ara.T.Howard] i always use a clearly defined return value in my code as, at minimum,
116330 [bob.news gmx] <Ara.T.Howard@noaa.gov> schrieb im Newsbeitrag

^ [ANN] dev-utils v1.0.1
116318 [gsinclair so] This is a very minor update on dev-utils v1.0, released last week.
+ 116349 [batkins57 gm] Is it possible to have breakpoint open the IRB session within a
| + 116368 [ gm navel.gr] I tried to use the gem and got the following error,
| | 116372 [chadfowler g] right?  If so, you need to upgrade to 0.8.1 to use newly released
| | 116379 [ gm navel.gr] You are of course right :) Thank you for your help and the nice lib!
| | 116422 [ gm navel.gr] This gem was packaged by another version
| | 116428 [rff_rff remo] I think that dtermining a version mismatch from this error would be
| | 116444 [chadfowler g] In future RubyGems versions, we can do this.  The problem is that
| + 116405 [gsinclair so] Not at the moment, but it's very easy to implement.  Is that something
|   116407 [batkins57 gm] I think so. :)
|   116486 [flgr ccan.de] Would you be okay with doing breakpoint(nil, obj.send(:binding))?
+ 116419 [cc1 cec.wust] I don't know if this was mentioned before, but even though there is no
  116424 [gsinclair so] It's planned.  The fact that someone actually wants it (for personal

^ closure's self
116324 [transami run] Curious thought --- what if I'd like to know the arity of the proc being
+ 116333 [bob.news gmx] "trans. (T. Onoma)" <transami@runbox.com> schrieb im Newsbeitrag
| 116365 [transami run] and
+ 116336 [mikael phubu] Closures per se don't have selfs -- they're not objects.  Consider
| 116356 [markus reali] Ah, but they are Objects (as you make use of below).  It's just
| 116362 [mikael phubu] Proc objects contain closures, but they *are* not closures.  :-)
| 116367 [markus reali] Point taken.  I'd like to respond but I don't think my knife is
+ 116337 [Ara.T.Howard] like this?

^ rexml error - REXML::Validation
116334 [djberg96 hot] ruby 1.8.2 (2004-10-11) [sparc-solaris2.9]
+ 116341 [ruby-talk wh] Refresh your CVS checkout with `cvs update -d'.  Rebuild and you'll be
+ 116342 [ryco gmx.net] ary = doc.elements["//name[text()='#{database}']"] # does not make a

^ FreeRide problem
116347 [tad.bochan b] I just downloaded the latest Ruby for Windows (one-click installer),
116352 [curt hibbs.c] That file is part of an example/tutorial on how to create a FreeRIDE plugin

^ rdf ruby library
116358 [haaktu gmail] ey list,
+ 116361 [haaktu gmail] i pressed the send button too soon.
+ 116420 [jamesUNDERBA] This may be useful
  116873 [dom sisna.co] Here is my wrapper over the redland application framework
  116886 [haaktu gmail] Dom, James,

^ YAML: Integers in YPATH
116359 [jfh cise.ufl] It seems that when I do a YPATH select on a node that
+ 116364 [jfh cise.ufl] [del]
| 116369 [transami run] Looky, looky! Someone wants option #1 ;)
| 116371 [jfh cise.ufl] Sure -- that's what I was hoping to avoid.
+ 116374 [ruby-talk wh] I'm attaching one technique for turning off typing.  It looks like you
  116381 [jfh cise.ufl] Awesome! Thanks,

^ RŮ«. : Re: FreeRide problem
116373 [tad.bochan b] Thanks.

^ [ANN] Developer's helper documentation
116375 [eeklund gmai] Jamis (Buck) asked me to announce a couple of documents the RPA team has

^ {newb} file and puts
116384 [Becker004 gm] f="z:\t.txt"
+ 116385 [james graypr] Use print() instead of puts() and insert \n characters as needed.
| + 116387 [jason jvoege] Alternatively, continue to use puts() and use string variable
| + 116389 [Becker004 gm] Yes, i see there is always 6 ways to do the same thing... i think i
+ 116386 [li_rubytalk ] loc.puts((i+65).chr+' '+a[i].to_s) if a[i]>0
| 116388 [Becker004 gm] Thank you so much! That kinda sucks when you need to output an int,
| 116391 [james graypr] You don't.  Just use the interpolation technique that was suggested
+ 116395 [Ara.T.Howard] loc.printf('%s %d', (i+65).chr, a[i]) if a[i]>0

^ rake talk from EuRuKo
116398 [ptkwt aracne] Is Claudius Link's rake talk available anywhere either as slides or audio?

^ Meeting flyer
116403 [jgb3 email.b] Okay--just a quick request. Could a few of you glance at the flyer and
116404 [jgb3 email.b] Arg. I'm stupid. I meant to send this to my local RUG. *blush*
116406 [batkins57 gm] Jamis,

^ eRuby for Windows
116408 [gavin refine] I have a situation where I need to create/write static web pages using
116439 [david loudth] Yes, it's called ERb and is basically a Ruby-version of eRuby. It's
116458 [gavin refine] Awesome. Thanks, David!
+ 116460 [tamc2 cam.ac] <html>
| 116461 [gavin refine] Awesome. Thanks!
+ 116462 [t_leitner gm] I don't know if the following helps, but I'm currently using ERb for one of my projects. The template does not use HTML but LaTeX, but it is the same for HTML anyway.
| 116864 [dom sisna.co] This site probably has the best documentation.
+ 116465 [james graypr] Looks like you got your answer, but just FYI, ERb also gets some screen
+ 116488 [batkins57 gm] ...
  116542 [gavin refine] Correct. That's the location where there's no documentation.
  117257 [jamesUNDERBA] Mostly true.  A list of methods at least gives a place to start looking
  117287 [james graypr] I've been thinking about helping with some of these modules that still
  117298 [gsinclair so] In most cases, you should use RDoc formatting in the Ruby or C source
  117691 [james graypr] I'm having trouble with that.  Help.  <laughs>
  117728 [eban os.rim.] % cvs -z4 -d :pserver:anonymous@cvs.ruby-lang.org:/src co -r ruby_1_8 -d ruby18 ruby
threads.html
top