114332-115741 subjects 114748-124882

[JOIN] Range syntax & Solitare cypher
114559 [markus@re li] Here's a simple example of where ... is very nice to have.  You want to
+ 114561 [zdennis@mk e] deck = deck.values(x..-1,0..x-1)
| 114578 [markus@re li] deck = (1..52).to_a
| + 114579 [markus@re li] Oops.  Should be "values_at" in both cases.  "values" is a site-local
| + 114609 [kristof@vl e] Exactly.
+ 114563 [rff_rff@re o] x..,0..x-1

consider "..." as ellipsis (Re: Range syntax theory)
114573 [bob@wi ds ng] If you think of "..." as ellipsis (an English language punctuation
114588 [botp@de mo t] from "I, Peter, Paul, James, and Mary joined the rubyconf last year."
114591 [bob@wi ds ng] Actually, ".." for a range predates nix/pl--it goes all the way back to
114597 [jwkenne@at g] You are correct, sir!

114574 [ggarramuno@a] I was wondering if there was a method in ruby to obtain the hexadecimal
+ 114581 [james@gr yp ] I'm not 100% sure I understood the question, but does this do what
+ 114583 [flgr@cc n. e] It's Array#pack.
  114608 [bob.news@gm ] "Florian Gross" <flgr@ccan.de> schrieb im Newsbeitrag

BigDecimal Float worries
114580 [ryco@gm .n t] I stumbled over something while toying around with BigDecimal
114586 [henryso@pa i] You are seeing what I consider a classic problem of computer
114602 [ryco@gm .n t] Well yes, I was aware of that fact, that's why I was using BigDecimals
114607 [bob.news@gm ] "Henrik Horneber" <ryco@gmx.net> schrieb im Newsbeitrag
114613 [ryco@gm .n t] This is what it boils down to, agreed. I guess I just can't see the

How large it is to embedding ruby
114593 [nkb@pa if c.] I would like to be able to call and execute ruby scripts from my C/C++
114605 [B.Candler@po] - Lines of code that your program needs: very few!

ruby for commercial application
114596 [nkb@pa if c.] I would like to use ruby for commercial application, possible embed it
114598 [matz@ru y- a] Yes.
114599 [lymans@gm il] Do you have an idea of when Oniguruma will be the standard/default and
114600 [rff_rff@re o] IIRC 1.9 in the cvs already has oniguruma as the standard regex lib.

unix command from ruby win32
114610 [nkb@pa if c.] I would like to run a simple command on a remote unix machine from my
114611 [bob.news@gm ] "nkb" <nkb@pacific.net.sg> schrieb im Newsbeitrag
114634 [jamesUNDERBA] I've recently looked into using this shh library on Win2k, but have run
114643 [jamesUNDERBA] Jamis Buck, who just happens to be sitting in front of me here at
114644 [jamesUNDERBA] But, sadly, this test
114647 [jgb3@em il b] What message do you get when it fails?
114649 [jamesUNDERBA] -e:1:in `instance_method': undefined method `g' for class
114668 [mulperi@ik .] I've got a working net-ssh on win32, but I had to compile ruby myself.

EuRuKo, the European RubyConf -- Friday evening get-together?
114612 [kero@ch ll .] October 9 and 10 is time for EuRuKo, the European counterpart of RubyConf.
+ 114614 [armin@xs .d ] I will pick up Sven on Friday (October 8) evening at the airport
| 114616 [jamesUNDERBA] I'm taking the train up from Kempten on Friday, an I'm staying at the
| 114635 [armin@xs .d ] What about meeting there on Friday and Saturday evening in this pizzeria?
| 114670 [kero@ch ll .] Great, I'll be there 21:00 Friday.
| + 114671 [armin@xs .d ] Point taken.
| + 114676 [jamesUNDERBA] Same here.
| + 115085 [armin@xs .d ] What about a Greek restaurant on Saturday?
|   115463 [jamesUNDERBA] BTW, I'm staying at the
+ 114617 [dblack@wo bl] Greetings from RubyConf :-)  I wish I could come to EuRuKo this year.
  114628 [armin@xs .d ] Thanks. We will miss you, Hal and all the others that can't make it this

IA64 Ruby compilation sucessful
114618 [Bil.Kleb@NA ] Thanks to Charlie Mills, who actually bothered to read the comment
114630 [sdate@ev re ] Bil,
114633 [Bil.Kleb@NA ] $ cat > hello.rb

[zoso@demiurgo.org: Re: Anyone blogging the Ruby Conference?]
114620 [zoso@fo on e] You're missing an "e" :-) http://onestepback.org

[CHALLENGE] Range syntax & Solitare cypher
114622 [markus@re li] Agreed.  But that's not the only difference.  The idiom above

using narray and mmap with HUGE data sets
114624 [Ara.T.Howard] scientific rubyists-

Newsgroup email address leeches
114640 [dross@co e- ] I noticed I was receiving mail from this leech in my accounts subscribed
+ 114667 [eule@sp ce c] Yes.
| 114679 [dross@co e- ] I emailed the address once before telling him off. Which means that
+ 114855 [batkins57@gm] Yes.
  114858 [dross@co e- ] This is truely annoying and sad. I am about to launch an all out attack

WideStudio English page updates
114642 [dross@co e- ] There have been some new screenshots added to the WideStudio webpage
115133 [matt@te hn r] I've been looking at the documentation and I don't see a lot of info about
+ 115138 [dross@co e- ] Well. The English documentation for it is just about existant as many
+ 115322 [dross@co e- ] Btw, it explains the method definitions and api in the documentation.

Kernel#eval taking a block
114646 [transami@ru ] # Evaluate a Ruby source code string (or block) in the binding context
114729 [nobu.nokada@] It's evaluated in the Binding/Proc's context, but not in the
114796 [transami@ru ] Crud. I see. You are ( as always ;) quite correct. Is there anyway to
114807 [matz@ru y- a] Because it's useless, for my eyes at least.  What do you want to
114837 [transami@ru ] How to get locals into evaluation?
114842 [dblack@wo bl] But if you're eval'ing in another binding, 'a' won't mean anything in
114847 [transami@ru ] I see. So this kind of thing just can't happen I take it. (Hmm... I think we
+ 114854 [flgr@cc n. e] eval("cool = yield.call(cool)", tb) { a }
| 114868 [transami@ru ] Oh reeeaaaalllly...... darn it!
| 114880 [flgr@cc n. e] Yikes, sorry. It only works when no explicit binding is given. :(
| 114933 [markus@re li] class T
+ 115561 [nobu.nokada@] eval("proc{|cool|}", tb).call(a.call(eval("cool", tb)))
  115592 [transami@ru ] What are you?
  115654 [markus@re li] I agree.  That's a very clever hack.

How to terminate STDIN input in Windows?
114650 [robo@ma s. o] while (s = gets()) != nil
114651 [robo@ma s. o] Just found out by trying out random combinations, think I got it to work

Just Found Integer()
114653 [james@gr yp ] I'm happily devouring the new Pickaxe and early on I run across an
114659 [Ara.T.Howard] ruby 1.6.8 (2002-12-24) [i386-linux-gnu]
114660 [transami@ru ] But that sort of begs the question. Why not Integer['42abc'] ?
114725 [matz@ru y- a] Methods with class name constant e.g. Integer, String, etc. are

Feature Request:  Truly Indented Here-Docs
114654 [james@gr yp ] Ruby's here-doc syntax baffles me.  I don't get the indent the end tag
+ 114655 [dblack@wo bl] This has come up before; I don't remember what the state of discussion
+ 114656 [transami@ru ] I concur. That would be nice. Likewise I have asked about a margin controlled
+ 114658 [gavin@re in ] Amen!
+ 114662 [marcel@ve ni] if you want to have your here-doc indented to line up with your code
+ 114665 [gsinclair@so] require 'extensions/string'
+ 114666 [ajohnson@cp ] str = <<-DOC

Reinventing Telnet Servers for Serial Ports
114657 [siegfried@he] I need to write a program similar to a telnet server. A telnet server
+ 114673 [rasputnik@he] do you mean like tits? It's in C and written for NetBSD, but should be
| 114722 [dga@lc .m t.] tits is probably what you want (what an unfortunate name for
+ 114754 [B.Candler@po] The module ruby-termios from RAA has examples of serial port I/O, and how to

114661 [CarlosRivera] irb(main):103:0> response = Socket::gethostbyname('www.ebay.com')
+ 114664 [decoux@mo lo] svg% ruby -rsocket
| 114706 [CarlosRivera] I never would have guessed to have unpacked.  Is there a good
| + 114723 [markus@re li] I would guess that it is a wrapper around the system's
| + 114736 [gsinclair@so] Nothing wrong with your browser.  The standard of docs varies between
+ 114724 [matz@ru y- a] How about using TCPSocket::gethostbyname instead?

[Rails] redirect_to problem
114663 [sdmitry@lr .] I have a problem with my redirect_to usage. Following code in my controller,
114745 [david@lo dt ] It does indeed seem like you have a problem with the after filters. Try
115014 [sdmitry@lr .] def layout_normal

[SOLUTION] Secret Santas (#2)
114675 [robo@ma s. o] ...
+ 114677 [t_leitner@gm] And here is my version of the second quiz. It does not use 'net/smtp' but shows the chosen santas on the console.
| 114715 [james@gr yp ] Did you run this program on the provided test data?
| 115038 [t_leitner@gm] Yes, I did this. I have run the program 10000 times now and it never hung on me or produced false answers. I'm using
| 115056 [james@gr yp ] I'm using ruby 1.8.2pre2 on Mac OS X.
| 115078 [t_leitner@gm] Yeah, you're right! I think I will invest more time next time in a good unit test :-) Thanks for your help!
+ 114678 [gavin@re in ] My solution to the Quiz #2 is at http://phrogz.net/RubyLibs/quiz/2/
| + 114684 [andre@di ir ] Here goes mine... it has a method for sending mail which I haven't really
| + 114716 [james@gr yp ] % ruby ZecretZanta.rb < quiz_data.txt
|   114718 [gavin@re in ] Oops! My FTP client must have auto-synchronized the folder while I was
+ 114681 [gavin@re in ] Very nice, Robo. Whenever I've thought of "random except for ____" type
| + 114692 [james@gr yp ] But does it work?  I chose the test data after much thought.  ;)
| + 114694 [gavin@re in ] Indeed, with 3072 people in the pathological case (where half are one
|   114696 [code@jo ch n] Hey Gavin, do you mind e-mailing that test data to <code@joecheng.com>?
|   114699 [gavin@re in ] See the ZecretZanta#simulate_participants method in
+ 114682 [code@jo ch n] My solution first divides people into their families.  I build up a list
| + 114687 [code@jo ch n] I thought it might be a good idea for me to explain exactly what is
| | 114689 [james@gr yp ] Hmm, maybe I'm not awake yet this morning, but to me the solution seems
| | 114691 [code@jo ch n] Ahh, you're both totally right.  I didn't do a check on the
| + 114688 [gavin@re in ] I think you need one other non-Skywalker, don't you?
| + 114695 [code@jo ch n] Fixed my solution to check for tail and head being in same family, and
+ 114690 [james@gr yp ] I had to rewrite my solution, because the true program takes more
| 114714 [gavin@re in ] Does this actually work? I mean, for realistic data sets?
| + 114757 [Peter.Vanbro] Bob Dole
| | + 114760 [niklas@ka i.] [SOLUTION] Secret Santas (#2)
| | | 114777 [angus@qu va ] [Niklas Frykholm <niklas@kagi.com>, 2004-10-04 10.49 CEST]
| | | + 114783 [niklas@ka i.] Assume three families with one member each A, B, C. Since the families
| | | | 114788 [angus@qu va ] [Niklas Frykholm <niklas@kagi.com>, 2004-10-04 15.14 CEST]
| | | | 114822 [code@jo ch n] Your solution becomes viable again if you build up a circular list of
| | | | 114825 [james@gr yp ] I'm not saying you're wrong, but how you define correct can be
| | | + 114818 [james@gr yp ] To be honest, my first reaction to this problem was that it was
| | |   + 114823 [code@jo ch n] Sorry for the misunderstanding; I didn't intend "toy code" to mean it
| | |   + 114899 [jim@we ri hh] ...
| | |     114902 [james@gr yp ] Oh, if we're sharing great Secret Santa stories now, maybe I should
| | + 114778 [gavin@re in ] exactly how I was looking at it :)
| |   114816 [james@gr yp ] I'm of the opinion that it should be the number one feature for a Santa
| + 114810 [james@gr yp ] (Sorry for missing much of this exciting discussion.  My e-mail server
+ 114693 [exoticorn@ep] I didn't have the time to implement a complete solution, but at least I'd
+ 114700 [roelandmoors] Here is my solution.

[BUG] mathn not -w clean in 1.8.2 2004-10-02 stable snapshot
114680 [mike@st k. o] Requiring mathn generates warnings under -w.  I would hope that the

[OT] Re: [SOLUTION] Secret Santas (#2)
114683 [decoux@mo lo] Please, stop to post *valid* domain name
+ 114685 [james@gr yp ] This was my fault, originally.  I should have checked them before I
+ 114686 [code@jo ch n] Oops, sorry...!

Module visibility
114697 [giulio.pianc] Visibility issues within a module are not entirely clear to me. I was
+ 114701 [batsman.geo@] def self.g  or better  module_function :g  too
| + 114703 [rff_rff@re o] why better module_function ?
| | + 114704 [batsman.geo@] so that
| | + 114705 [markus@re li] Why is it needed or why is module_function a better way to define it
| + 114709 [giulio.pianc] Yes, but the problem is that I was able to call A3.g from outside the
|   114711 [flgr@cc n. e] Interesting -- this is another difference between module_function
|   114743 [transami@ru ] Talk about your Too Many Ways!
+ 114758 [bob.news@gm ] "Giulio Piancastelli" <giulio.piancastelli@gmail.com> schrieb im

[ANN] niouz 0.5 (simple NNTP server)
114702 [pierre-charl] I'm releasing version 0.5 of niouz, a very simple, standalone NNTP

how to escape variable expansion in a block
114707 [wuttke1@we .] I am not happy with the following code fragment.
+ 114767 [matz@ru y- a] Currently, there's no way to avoid.  If TkObject had parent attribute,
| 114769 [bob.news@gm ] "Yukihiro Matsumoto" <matz@ruby-lang.org> schrieb im Newsbeitrag
| 114772 [matz@ru y- a] TkObject initializers swaps self during the execution of the blocks
| 114773 [bob.news@gm ] "Yukihiro Matsumoto" <matz@ruby-lang.org> schrieb im Newsbeitrag
+ 114795 [nagai@ai ky ] btn_callback = proc{ buttonPressed }

Thinking about Threaded IO
114708 [james@gr yp ] I've not used Ruby's threads before, so I have what will probably be
114719 [dga@lc .m t.] Ruby's threads seem "generally pretty good" about not blocking
114756 [B.Candler@po] Essentially that's right. Was there any reason to use 'sysread' rather than
+ 114814 [james@gr yp ] So with a big read, you can still hang waiting for the bytes?  Are you
| 114817 [B.Candler@po] IO#read and IO#gets work properly; in other words Ruby wraps the calls
| + 114820 [james@gr yp ] Thank you for the excellent information.  I must say that this makes me
| + 115211 [kevin_mcconn] Not sure if any of you use Windows, but it's probably worth pointing out
|   + 115217 [james@gr yp ] It's that because you are calling gets() on STDIN here?  Would it
|   | 115232 [kevin_mcconn] I haven't had time to check that, but I'll try to do so later.  (I'd
|   | 115237 [Ara.T.Howard] is that to say that there is some other way (not the instructions) to build
|   | 115239 [kevin_mcconn] I'm not aware of a way to fix it.  I just meant I didn't do anything
|   + 115218 [bob.news@gm ] "Kevin McConnell" <kevin_mcconnell@hotmail.com> schrieb im Newsbeitrag
+ 115073 [dga@lc .m t.] Think so too.  I don't remember why I switched it to sysread -

stack level to deep?
114710 [Becker004@gm] aaaaa
+ 114712 [rff_rff@re o] on unix there is the ulimit setting.. but you can just do that
| 114713 [Becker004@gm] yes='a'*47
+ 114726 [markus@re li] (1..6).each { |n|
| 114727 [Becker004@gm] No its not a spamer, it was a stupid idea on to how to crack some
| 114728 [markus@re li] So roll your own.  (Hints, that is).  Frequency analysis generally
| + 114730 [Becker004@gm] Enter file loc (use // for ): PBEGUUYMIQICUUFGUUYIQGUUYQCUIVFIQGUUYQCUQBEMEVP
| + 114784 [Becker004@gm] the cook was a good cook as cooks go and as cooks go she went
+ 114759 [B.Candler@po] Not enough to allow for infinite recursion, I'm afraid :-)
+ 114930 [drbrain@se m] ('aaaaa'..'zzzzz').each do |x|

Learn French in the Alps.
114717 [i_cute33@ho ] To learn French in France, I found this great school, located both in Annecy and Chamb?ry, in the heart of the Alps. Given the number of activities and the surroundings I thought I would share this ressource with others.
114721 [dross@co e- ] Please stop spamming lists, thanks
114731 [Becker004@gm] To learn Ruby in my back yard, spam everyone.
114733 [matt@te hn r] Ok, where's your back yard?  I may show up...
114735 [Becker004@gm] Its better then the swiss alps. You ever hear of the appalachian?
114737 [dross@co e- ] appalachian mountains? If so.. where are you? :)
114740 [Becker004@gm] PA for now. I am going to school at http://www3.esu.edu/ ESU

Toronto Ruby User Group meeting Sun 10 Oct 2004
114732 [mike@st k. o] There will be a gathering of Toronto Ruby users on Sunday 10 October
114741 [halostatue@g] (1) this is Thanksgiving Sunday. I, for one, won't be making it,
114785 [wildwildwes@] Avenue Road is about a 5 minute walk from the Yonge-Eglinton subway stop ...
114907 [mike@st k. o] This is the first meeting in a while, and one of the things which will be

Just back from Rubyconf '04
114738 [cyclists@nc ] I'm just back from the Ruby Conference and I have to give a big (usenet)
+ 114747 [david@lo dt ] Thanks for the kind words, Hunter.
| + 114755 [rff_rff@re o] well, divert you airplane to munich for EuRuKo ;)
| + 114789 [joey@jo yg b] That would be me, Joey Gibson. No problem on forgetting my name. You
+ 114821 [dblack@wo bl] You are most welcome :-)  We always like doing it, and it's so

Personal Thanks to the RubyConf Bloggers
114739 [curt@hi bs c] I just wanted to say a big *thank you* to those who blogged RubyConf 200
+ 114744 [code@jo ch n] Do you mind posting links to some of those blogs?  Thanks!
| + 114770 [curt@hi bs c] James Britt originally posted these links on his blog (and has a picture of
| | 114771 [rff_rff@re o] well, rubygarden.org has a list of ruby blogs, I guess some have been at
| | 114871 [sera@fh an .] Where is this list you speak of? I canna find it.
| | 114876 [rff_rff@re o] I guess you searched the wiki :)
| + 114819 [jamesUNDERBA] See recent postings on http://www.ruby-doc.org.
+ 114749 [rff_rff@re o] +1