114559-115654

114332-115741 subjects 114748-124882

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

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

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

^ BigDecimal Float worries
114580 [ryco gmx.net] I stumbled over something while toying around with BigDecimal
114586 [henryso pani] You are seeing what I consider a classic problem of computer
114602 [ryco gmx.net] Well yes, I was aware of that fact, that's why I was using BigDecimals
114607 [bob.news gmx] "Henrik Horneber" <ryco@gmx.net> schrieb im Newsbeitrag
114613 [ryco gmx.net] 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 pacific.] 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 pacific.] I would like to use ruby for commercial application, possible embed it
114598 [matz ruby-la] Yes.
114599 [lymans gmail] Do you have an idea of when Oniguruma will be the standard/default and
114600 [rff_rff remo] IIRC 1.9 in the cvs already has oniguruma as the standard regex lib.

^ unix command from ruby win32
114610 [nkb pacific.] I would like to run a simple command on a remote unix machine from my
114611 [bob.news gmx] "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 email.b] What message do you get when it fails?
114649 [jamesUNDERBA] -e:1:in `instance_method': undefined method `g' for class
114668 [mulperi iki.] 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 chello.] October 9 and 10 is time for EuRuKo, the European counterpart of RubyConf.
+ 114614 [armin xss.de] 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 xss.de] What about meeting there on Friday and Saturday evening in this pizzeria?
| 114670 [kero chello.] Great, I'll be there 21:00 Friday.
| + 114671 [armin xss.de] Point taken.
| + 114676 [jamesUNDERBA] Same here.
| + 115085 [armin xss.de] What about a Greek restaurant on Saturday?
|   115463 [jamesUNDERBA] BTW, I'm staying at the
+ 114617 [dblack wobbl] Greetings from RubyConf :-)  I wish I could come to EuRuKo this year.
  114628 [armin xss.de] Thanks. We will miss you, Hal and all the others that can't make it this

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

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

^ [CHALLENGE] Range syntax & Solitare cypher
114622 [markus reali] 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 code-e] I noticed I was receiving mail from this leech in my accounts subscribed
+ 114667 [eule space.c] Yes.
| 114679 [dross code-e] I emailed the address once before telling him off. Which means that
+ 114855 [batkins57 gm] Yes.
  114858 [dross code-e] This is truely annoying and sad. I am about to launch an all out attack

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

^ Kernel#eval taking a block
114646 [transami run] # 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 run] Crud. I see. You are ( as always ;) quite correct. Is there anyway to
114807 [matz ruby-la] Because it's useless, for my eyes at least.  What do you want to
114837 [transami run] How to get locals into evaluation?
114842 [dblack wobbl] But if you're eval'ing in another binding, 'a' won't mean anything in
114847 [transami run] I see. So this kind of thing just can't happen I take it. (Hmm... I think we
+ 114854 [flgr ccan.de] eval("cool = yield.call(cool)", tb) { a }
| 114868 [transami run] Oh reeeaaaalllly...... darn it!
| 114880 [flgr ccan.de] Yikes, sorry. It only works when no explicit binding is given. :(
| 114933 [markus reali] class T
+ 115561 [nobu.nokada ] eval("proc{|cool|}", tb).call(a.call(eval("cool", tb)))
  115592 [transami run] What are you?
  115654 [markus reali] I agree.  That's a very clever hack.

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

^ Just Found Integer()
114653 [james graypr] 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 run] But that sort of begs the question. Why not Integer['42abc'] ?
114725 [matz ruby-la] Methods with class name constant e.g. Integer, String, etc. are

^ Feature Request:  Truly Indented Here-Docs
114654 [james graypr] Ruby's here-doc syntax baffles me.  I don't get the indent the end tag
+ 114655 [dblack wobbl] This has come up before; I don't remember what the state of discussion
+ 114656 [transami run] I concur. That would be nice. Likewise I have asked about a margin controlled
+ 114658 [gavin refine] Amen!
+ 114662 [marcel verni] if you want to have your here-doc indented to line up with your code
+ 114665 [gsinclair so] require 'extensions/string'
+ 114666 [ajohnson cpa] 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 lcs.mit.] 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

^ Socket::gethostbyname()
114661 [CarlosRivera] irb(main):103:0> response = Socket::gethostbyname('www.ebay.com')
+ 114664 [decoux moulo] svg% ruby -rsocket
| 114706 [CarlosRivera] I never would have guessed to have unpacked.  Is there a good
| + 114723 [markus reali] 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 ruby-la] How about using TCPSocket::gethostbyname instead?

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

^ [SOLUTION] Secret Santas (#2)
114675 [robo mars.co] I'm still new to Ruby, but giving this a crack anyway.
+ 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 graypr] 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 graypr] 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 refine] My solution to the Quiz #2 is at http://phrogz.net/RubyLibs/quiz/2/
| + 114684 [andre digira] Here goes mine... it has a method for sending mail which I haven't really
| + 114716 [james graypr] % ruby ZecretZanta.rb < quiz_data.txt
|   114718 [gavin refine] Oops! My FTP client must have auto-synchronized the folder while I was
+ 114681 [gavin refine] Very nice, Robo. Whenever I've thought of "random except for ____" type
| + 114692 [james graypr] But does it work?  I chose the test data after much thought.  ;)
| + 114694 [gavin refine] Indeed, with 3072 people in the pathological case (where half are one
|   114696 [code joechen] Hey Gavin, do you mind e-mailing that test data to <code@joecheng.com>?
|   114699 [gavin refine] See the ZecretZanta#simulate_participants method in
+ 114682 [code joechen] My solution first divides people into their families.  I build up a list
| + 114687 [code joechen] I thought it might be a good idea for me to explain exactly what is
| | 114689 [james graypr] Hmm, maybe I'm not awake yet this morning, but to me the solution seems
| | 114691 [code joechen] Ahh, you're both totally right.  I didn't do a check on the
| + 114688 [gavin refine] I think you need one other non-Skywalker, don't you?
| + 114695 [code joechen] Fixed my solution to check for tail and head being in same family, and
+ 114690 [james graypr] I had to rewrite my solution, because the true program takes more
| 114714 [gavin refine] Does this actually work? I mean, for realistic data sets?
| + 114757 [Peter.Vanbro] Bob Dole
| | + 114760 [niklas kagi.] [SOLUTION] Secret Santas (#2)
| | | 114777 [angus quovad] [Niklas Frykholm <niklas@kagi.com>, 2004-10-04 10.49 CEST]
| | | + 114783 [niklas kagi.] Assume three families with one member each A, B, C. Since the families
| | | | 114788 [angus quovad] [Niklas Frykholm <niklas@kagi.com>, 2004-10-04 15.14 CEST]
| | | | 114822 [code joechen] Your solution becomes viable again if you build up a circular list of
| | | | 114825 [james graypr] I'm not saying you're wrong, but how you define correct can be
| | | + 114818 [james graypr] To be honest, my first reaction to this problem was that it was
| | |   + 114823 [code joechen] Sorry for the misunderstanding; I didn't intend "toy code" to mean it
| | |   + 114899 [jim weirichh] Perhaps it does not count as enterprise level computing, but it is
| | |     114902 [james graypr] Oh, if we're sharing great Secret Santa stories now, maybe I should
| | + 114778 [gavin refine] exactly how I was looking at it :)
| |   114816 [james graypr] I'm of the opinion that it should be the number one feature for a Santa
| + 114810 [james graypr] (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 stok.co] Requiring mathn generates warnings under -w.  I would hope that the

^ [OT] Re: [SOLUTION] Secret Santas (#2)
114683 [decoux moulo] Please, stop to post *valid* domain name
+ 114685 [james graypr] This was my fault, originally.  I should have checked them before I
+ 114686 [code joechen] 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 remo] why better module_function ?
| | + 114704 [batsman.geo ] so that
| | + 114705 [markus reali] 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 ccan.de] Interesting -- this is another difference between module_function
|   114743 [transami run] Talk about your Too Many Ways!
+ 114758 [bob.news gmx] "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 web.] I am not happy with the following code fragment.
+ 114767 [matz ruby-la] Currently, there's no way to avoid.  If TkObject had parent attribute,
| 114769 [bob.news gmx] "Yukihiro Matsumoto" <matz@ruby-lang.org> schrieb im Newsbeitrag
| 114772 [matz ruby-la] TkObject initializers swaps self during the execution of the blocks
| 114773 [bob.news gmx] "Yukihiro Matsumoto" <matz@ruby-lang.org> schrieb im Newsbeitrag
+ 114795 [nagai ai.kyu] btn_callback = proc{ buttonPressed }

^ Thinking about Threaded IO
114708 [james graypr] I've not used Ruby's threads before, so I have what will probably be
114719 [dga lcs.mit.] 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 graypr] 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 graypr] 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 graypr] 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 gmx] "Kevin McConnell" <kevin_mcconnell@hotmail.com> schrieb im Newsbeitrag
+ 115073 [dga lcs.mit.] Think so too.  I don't remember why I switched it to sysread -

^ stack level to deep?
114710 [Becker004 gm] aaaaa
+ 114712 [rff_rff remo] on unix there is the ulimit setting.. but you can just do that
| 114713 [Becker004 gm] yes='a'*47
+ 114726 [markus reali] (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 reali] 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 segm] ('aaaaa'..'zzzzz').each do |x|

^ Learn French in the Alps.
114717 [i_cute33 hot] To learn French in France, I found this great school, located both in Annecy and Chambٔy, 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 code-e] Please stop spamming lists, thanks
114731 [Becker004 gm] To learn Ruby in my back yard, spam everyone.
114733 [matt technor] 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 code-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 stok.co] 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 stok.co] 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 loudth] Thanks for the kind words, Hunter.
| + 114755 [rff_rff remo] well, divert you airplane to munich for EuRuKo ;)
| + 114789 [joey joeygib] That would be me, Joey Gibson. No problem on forgetting my name. You
+ 114821 [dblack wobbl] You are most welcome :-)  We always like doing it, and it's so

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