122482-123428

122279-124019 subjects 122651-132377

^ Hash#eql? and Hash key testing
122482 [vjoel PATH.B] The +eql?+ method returns +true+ if _obj_ and _anObject_ have the
+ 122503 [mcl-ruby-tal] h1 and h2 are not the same object above, though they are equivalent at
+ 122509 [chr_mail gmx] No you have not, however hashes have different
| 122514 [chr_mail gmx] def hash
+ 122510 [matz ruby-la] You are right.  "hash" should be redefined as well.

^ [ANN] Pimki 1.1
122494 [assaph gmail] This is a bug fix and minor updates release oon Pimki. Many thanks to

^ Ideas
122495 [lyndon.samso] I'm working on a little app I call RAF ( Radar and Folio ), mostly as
+ 122496 [matt.mower g] How about scoring and filtering posts from multiple RSS feeds?
+ 122497 [chneukirchen] This sounds nice, I have been starting to write something like that a few
  122500 [rff_rff remo] I have the feeling this is some kind of drb/Rinda redone, maybe it can
  122545 [chneukirchen] .oO(Why didn't I notice this sooner...)

^ Ruby CVS Commit Mailinglist
122505 [mneumann nte] There's no mailing list where CVS commits are automatically posted,
+ 122506 [decoux moulo] ...
| 122517 [mneumann nte] Sorry, I looked there but overlooked it...
+ 122508 [rff_rff remo] I'd like to have an rss feed, fwiw :)
  + 122511 [matz ruby-la] Shugo Maeda, the cvs admin, told me it will be up soon.
  | 122559 [rff_rff remo] wow, this is what I call quick feedback :)
  | 122560 [dross rubymi] Shugo created an rss feed as a side effect of setting up scripts for the
  + 122516 [mneumann nte] (but doesn't work with Firefox/Thunderbird)
    122581 [rff_rff remo] well, just when I discover one, people comes up with another.

^ [ANN] Ruby CVS IRC bot, and Ruby CVS RSS feed
122522 [dross rubymi] Thanks to our
122523 [jamesUNDERBA] is not the correct content type for an RSS feed.  text/xml would be better.
122524 [jamesUNDERBA] Ah, and now it comes as

^ Is there a way to get the name of symbol passed to method?
122526 [vanweerd gma] Is there a way to get the name of the symbol passed to a method?
122528 [sstephenson ] Not without one of the parse-tree hook extensions, I would think. And
122564 [vanweerd gma] nil maybe.

^ OpenSSL bus error if no args to PKey::RSA.new, bug?
122527 [sroberts uni] uname -a
122552 [drbrain segm] I think I have 1.8-p3 installed, but I'm not sure because yours is 6
122576 [decoux moulo] ...
+ 122596 [sroberts uni] Apple's OS X 10.2 has 0.9.6.e, so I'm seeing the SEGV.
+ 122725 [drbrain segm] MAA=

^ Sending a cookie in the request using Net::HTTP
122530 [sera fhwang.] I can't find this answered in the RDoc, so I'll ask here: How do I send
122547 [jos catnook.] {"Cookie" => 'cookie_name=cookie_val; another_cookie=brownie'}
122557 [sera fhwang.] Works like a charm. Thanks!

^ (xml) Builder question
122531 [itsme213 hot] ...

^ mkmf problems
122533 [ceaser rome.] I cant seem to find any substantial docs on the net for mkmf..
122534 [decoux moulo] ...
122537 [ceaser rome.] doesnt that make it, pretty well broken then?
122574 [decoux moulo] ...
122575 [ceaser rome.] so everyone downloading the 1click installer on windows
+ 122578 [decoux moulo] ...
+ 122579 [mulperi cc.h] 1click installer and mingw build extensions should be binary
  122591 [nobu.nokada ] mkmf.rb just uses specified compiler, or how can it know what
  122592 [mulperi cc.h] What I meant that mkmf could warn, if the current compiler differs with
  122594 [nobu.nokada ] There is nothing else.
  122600 [mulperi iki.] Oops, I just read the Guy's example again. You are right. Sorry

^ openssl request - don't hardcode PKCS1 padding (and some docs)
122536 [sroberts uni] I want to do unpadded RSA operations with openssl, but I discovered that

^ Obtaining mode information on a File object
122538 [jos catnook.] Another question... How do I access the File open mode ("w" in this case) on a
+ 122589 [bob.news gmx] "Jos Backus" <jos@catnook.com> schrieb im Newsbeitrag
| 122648 [jos catnook.] I hadn't thought of that. It seems... wrong. This information is available
+ 122649 [akr m17n.org] % ruby -rfcntl -e '
  122693 [jos catnook.] This is good enough for my purposes (it only needs to run on Linux), thanks.
  122718 [jos catnook.] Jos Backus                       _/  _/_/_/      Sunnyvale, CA

^ [patch] for openssl to support non-pkcs1 padding
122539 [sroberts uni] I think the hack I made to openssl.rb to define the constants is wrong,
122569 [gotoyuzo not] got it.
122595 [sroberts uni] Thank you, I look forward to it showing up in cvs.

^ [doc patch] error in ruby/re.c documentation
122541 [sroberts uni] ===================================================================
122553 [matz ruby-la] Thank you.

^ get TkCanvas from an item?
122546 [mark ociweb.] If I have a Tk item like a TkcRectangle that has been created on a TkCanvas,
122558 [nagai ai.kyu] If you want that, please add the following to your script.

^ Tk scrolled canvas
122562 [mark ociweb.] I can create a canvas like this.
122571 [nagai ai.kyu] Please define the widget class which you want. ;-)
122597 [mark ociweb.] I don't understand why I have to write my own TkScrolledCanvas class.
122624 [nagai ai.kyu] Because a scrolled canvas is not a standard widget of Tcl/Tk. :-)

^ Re: [QUIZ][SOLUTION] Crosswords (#10)
122570 [jim freeze.o] Here is my solution. This took a few more LOC than I expected.
+ 122588 [jamis_buck b] I originally thought I would have my solution work in two passes--the first,
| + 122593 [transami run] [QUIZ][SOLUTION] Crosswords (#10)
| | 122599 [transami run] Improvement. Change,
| + 122979 [james graypr] This is a wonderful test file.
|   122980 [james graypr] My mistake.  It does get it 100% right.  I read the layout wrong.
|   123003 [jamis_buck b] Gah. Thanks for the heart-attack, James. :) I was pretty sure I'd
+ 122603 [ajohnson cpa] ...

^ Check comand status in ruby
122585 [pustoi spils] How can I check comand status in Ruby ?
122586 [decoux moulo] ...

^ [SOLUTION] Crosswords (#10) (was: [QUIZ] Crosswords (#10))
122587 [markus stber] This is my solution.
+ 122598 [james graypr] Here's mine...  again.  (Feel bad about the early spoiler.  Sorry!)
+ 122617 [ jimm io.com] Here's mine. I changed the cell borders so they look like

^ Uninstall Gems
122602 [transami run] What's the proper way to uninstall RubyGems?
122616 [chadfowler g] (for example)
122786 [batsman.geo ] One would also have to remove the stubs in bin/ carefully, I guess.
123304 [batsman.geo ] Chad?
123307 [jim weirichh] I must have missed something.  What exactly is the problem with compiling ruby
123332 [halostatue g] Once miniruby is built, if RUBYOPT is set, then it can't find
123366 [jim weirichh] I still must be missing something ... with Ruby 1.8.2.preview2 ...
123401 [rff_rff remo] maybe you have RUBYLIB set to search in the old library path, and those
123423 [nobu.nokada ] On dosish systems, load paths are relative to the path of the
+ 123427 [jim weirichh] Ahhh ... thanks.  This does make sense.  I do very little development on
+ 123428 [rff_rff remo] Yes it does.

^ Re: [SOLUTION] Crosswords (#10)
122608 [cjjefcoat ya] I build the full display with double borders and then remove

^ Re: [Solution] [QUIZ] Crosswords (#10)
122610 [ruby brian-s] Here is my version. Nothing special, just a few branches and thats it. Only
122673 [ruby brian-s] I added a hackish CrosswordGenerator that finds a possible setup of words to

^ KDevelop Technote for Ruby
122611 [ryan-ruby tr] The new KDevelop technote is going through a walkthru of the new Ruby

^ [RDOC] sections bug?
122618 [vjoel PATH.B] ruby 1.8.2 (2004-12-06) [i686-linux]
122621 [pragdave gma] My mistake - a 1.9 feature snuck back into the 1.8 branch. Should be OK

^ [ANN] patch to "make def return something useful"
122619 [Peter.Vanbro] In RCR 277 it is proposed to have def return something useful, more
+ 122628 [halostatue g] A Method still isn't good, because you can't easily get the name of
| 122654 [Peter.Vanbro] You're right, the Ruby programmer can't get at the name of the method not
| + 122684 [halostatue g] Yes, but the whole point of having def return something useful is to
| | 122716 [Peter.Vanbro] Part of it is exposed indirectly. For example the class matters when
| + 122694 [itsme213 hot] ...
+ 122631 [nobu.nokada ] I wonder if this might cause confution.
  122653 [Peter.Vanbro] Right, at some point I thought of this, but forgot to actually add the
  + 122656 [nobu.nokada ] gc.c:obj_free() frees it using the critcal section, if dfree is
  | 122658 [Peter.Vanbro] I see. Is this necessary because of the change I made? Because even in 1.9
  | 122672 [nobu.nokada ] It is used to postpone signal handlers.  Especially, on
  + 122657 [Peter.Vanbro] But maybe an extra clarification: in the end I settled for the solution
    122659 [martindemell] ...
    122662 [Peter.Vanbro] Maybe I'm a bit biased, having seen the underlying implementation. Method
    122683 [halostatue g] IMO, that's an implementation detail that shouldn't be exposed at the

^ Freezing Variable Assignment
122630 [vanweerd gma] Is there a feature to freeze variable assignment?
+ 122632 [itsme213 hot] ...
+ 122638 [dblack wobbl] I tend to think this would be a pretty radical reconceptualization of
+ 122641 [halostatue g] No, but you might be able to do something with WeakRef (weakref.rb)
| + 122643 [vjoel PATH.B] It's useful in GUI code, where each control, field, etc. is wired up to
| | + 122682 [itsme213 hot] ...
| | + 122746 [halostatue g] That makes sense, and it seems that the observable-attr is the right
| + 122690 [itsme213 hot] ...
|   122727 [drbrain segm] No, the instance variables are not frozen, the instance 'a' of Effable
|   + 122740 [itsme213 hot] ...
|   | + 122743 [dblack wobbl] Ruby freezes objects by... freezing objects.  It doesn't freeze
|   | + 122745 [halostatue g] You may disagree, but you'd be incorrect.
|   | + 122752 [drbrain segm] VALUE
|   |   122757 [jim weirichh] You guys are talking past each other ...
|   |   + 122760 [dblack wobbl] David's previous statement on this: "One of the consequences of
|   |   | 122764 [itsme213 hot] ...
|   |   + 122762 [itsme213 hot] ...
|   |     + 122766 [halostatue g] Ruby isn't Smalltalk.
|   |     | + 122803 [itsme213 hot] ...
|   |     | | 122806 [halostatue g] Simply "object state." Alternatively "members of the [Collection]".
|   |     | + 122805 [vanweerd gma] I think immutability is usually a good thing from a design point of
|   |     |   + 122814 [halostatue g] Why? Convince me, because as someone who has done my share of design
|   |     |   | 122823 [vanweerd gma] I agree- good interface design effectively creates immutable classes
|   |     |   | 122885 [halostatue g] I'm still not convinced, and I think that the problem that I'm
|   |     |   + 122836 [flgr ccan.de] Rite will do non-inherited instance variables via @_foo AFAIK. But I
|   |     |     122879 [matz ruby-la] Yes, I am.  I think it's good to have general purpose object graph
|   |     |     122921 [flgr ccan.de] Agreed, the GC already knows how to traverse all the built-in classes
|   |     + 122835 [flgr ccan.de] Please call this Object state ("as in a[1] and a[2] are part of Object
|   |       122956 [itsme213 hot] ...
|   |       + 122970 [halostatue g] No, it isn't. It is very easy to say that "object x has a state
|   |       | 122981 [itsme213 hot] ...
|   |       | 122986 [halostatue g] Yuck. What you're describing isn't Ruby, and tries to combine things
|   |       | 123213 [itsme213 hot] ...
|   |       + 122993 [dblack wobbl] I don't think there is one that really covers it, though.  I tend to
|   |         123224 [itsme213 hot] ...
|   |         123266 [dblack wobbl] I don't see how or where any state is stored.  Are you talking about
|   |         123267 [itsme213 hot] ...
|   |         + 123272 [dblack wobbl] Well... but you're now using this concept of 'slots' uncritically in
|   |         | + 123273 [vanweerd gma] I recall seeing "slots" used in Dylan. Is it used in any other
|   |         | | + 123283 [ruby brian-s] Cognition Scientists love models with slots and values. So I imagine lisp would
|   |         | | | 123285 [ruby brian-s] To clarify: cognition science-people also love lisp.
|   |         | | + 123293 [pit capitain] Slots are a fundamental concept in prototype oriented languages like Self and
|   |         | + 123302 [itsme213 hot] ...
|   |         |   + 123306 [dblack wobbl] I think where I came in was discussing the freezing of local variable
|   |         |   | 123318 [itsme213 hot] ...
|   |         |   | + 123331 [halostatue g] To me, the issue is simple. If you want to freeze more than the
|   |         |   | + 123338 [dblack wobbl] It's not impossible -- you just have to do it by other means than
|   |         |   |   + 123340 [dblack wobbl] Or, to phrase it less imperatively:  You might, for example, use
|   |         |   |   + 123359 [itsme213 hot] ...
|   |         |   + 123326 [halostatue g] Why? Except for meta-programming, it is not generally the case that
|   |         |     + 123348 [itsme213 hot] ...
|   |         |     + 123349 [itsme213 hot] ...
|   |         + 123300 [halostatue g] I don't have a problem with YOUR mental model of an object and its
|   + 122741 [itsme213 hot] ...
+ 122837 [flgr ccan.de] The proposed Syntax confuses the object a variable is referring to with
  122854 [vanweerd gma] Yes. My bad.

^ Seeking Simulation Ruby Quiz (was Re: Ruby 2.0)
122642 [james graypr] Subject change:  In my spare time, I've been scanning the web for the

^ [SOT]Signatures and one liners
122644 [binary42 gma] readers.each{|x| puts "Hi #{x},"}
+ 122646 [jamis_buck b] ruby -h | ruby -e 'a=[];readlines.join.scan(/-(.)\[e|Kk(\S*)|le.l(..)e|#!(\S*)/) {|r| a << r.compact.first };puts "\n>#{a.join(%q/ /)}<\n\n"'
+ 122647 [transami run] I like this one by Tadayoshi Funaba, mostly because it says "Begin landing
+ 122667 [heimdall uni] here's mine. It's not really tricky but it's fits into christmas time.
+ 122680 [martin.anker] d=13;x=Hash.new{|h,n|n<d ?[n]:h[n/d]+[n%d]};p x[3*0x58615c45*
+ 122681 [martin.anker] d=13;x=Hash.new{|h,n|n<d ?[n]:h[n/d]+[n%d]};p x[3*0x58615c45*
+ 122698 [chneukirchen] Come on, this is really readable compared some some Perl around...
  122704 [chneukirchen] puts"Content-type: text/html\n\n<h1>Blog",Dir["*.entry"].sort_by{|f|-File.
  + 122735 [rff_rff remo] #!/path/per/ruby -r cgi
  | 122787 [batsman.geo ] puts"Content-type: text/html","\n<h1>Blog",Dir["*.entry"].map{|x|[(f=File.new x
  + 123047 [transami run] You know, it would be kind of cool if someone started a one-liners rubyforge
    + 123053 [kig misfirin] Golfed some with sinewaves, the ALT_SEPARATOR -bit makes me unhappy
    | 123073 [flgr ccan.de] Maybe use k=PLATFORM["win"]?`cls`:`clear` -- it's also shorter.
    | 123084 [kig misfirin] Only problem is that "win" matches to "powerpc-darwin"
    + 123056 [dave burt.id] ...
    + 123058 [bob.news gmx] "trans. (T. Onoma)" <transami@runbox.com> schrieb im Newsbeitrag
      123060 [transami run] Ah, very good. Let's be sure that the super cool one-liner wiki and blog are

^ Duck images
122645 [dave burt.id] ...
+ 122652 [transami run] This may help.
| + 122663 [dave burt.id] ...
| | 122712 [transami run] Cool! Did you submit to the contest?
| | 122734 [dave burt.id] ...
| + 122666 [dave burt.id] ...
|   122699 [ptkwt aracne] ...
+ 122697 [ptkwt aracne] ...
| + 122711 [ruby-talk wh] It's an upright horse.  His name is Audie the Upright Horse.  He's the
| + 122713 [transami run] Which is why is so perfect for representing duck typing. Is it a squirrel? Is
|   122715 [michael.deha] 0>
|   + 122723 [pat.eyler gm] 0<   quack
|   | + 122726 [michael.deha] YES!     Anyone want to golf the duck down further?    On second
|   | + 122730 [rff_rff remo] people, I love this place.
|   + 122739 [flori nixe.p] ...
|     + 122744 [ruby brian-s] Cool thing!
|     + 122758 [vanweerd gma] That's awesome.
|     + 122877 [ruby brian-s] # Franks original Version: 186 Bytes
|       122883 [eh mad.scien] I am having the worst time getting these cute little things to work.
|       + 122897 [dave burt.id] ...
|       | 122900 [transami run] 142
|       + 122912 [ruby brian-s] After some further golfing borrowing heavily from Dave and T. Onoma. I have on
|         + 122963 [ruby-talk wh] Great work everyone.  Now, on to phase two.  Here's my vision.
|         | 122966 [michael.deha] Quicktime VR.
|         + 123017 [transami run] 144
|           123040 [dave burt.id] ...
|           + 123045 [transami run] Holy smokes! This has to be the tap out. Look how dense that thing is! Nice
|           | 123055 [billk cts.co] A minor tweak to the ANSI/VT100 codes... the 0;0 is surpufluous...
|           | 123126 [pat.eyler gm] i=1;loop{puts"\e[2J\e[H%11s\n %8s(*)____,\n%10s`
|           | 123127 [gsinclair so] <(*)____,
|           | 123129 [ruby brian-s] I think that if you put everything onto one line, the picture should be ok.
|           + 123090 [ruby-talk wh] Yes.  The water is looking a lot more realistic.  And less choppy.
+ 123202 [jannis harde] I think the escape code "\e[;11H" is valid(works with xterm and
threads.html
top