122482-123428

122279-124019 subjects 122651-132377

Hash#eql? and Hash key testing
122482 [vjoel@PA H. ] 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@gm ] No you have not, however hashes have different
| 122514 [chr_mail@gm ] def hash
+ 122510 [matz@ru y- a] You are right.  "hash" should be redefined as well.

[ANN] Pimki 1.1
122494 [assaph@gm il] 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@re o] 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@nt ] There's no mailing list where CVS commits are automatically posted,
+ 122506 [decoux@mo lo] Well,
| 122517 [mneumann@nt ] Sorry, I looked there but overlooked it...
+ 122508 [rff_rff@re o] I'd like to have an rss feed, fwiw :)
  + 122511 [matz@ru y- a] Shugo Maeda, the cvs admin, told me it will be up soon.
  | 122559 [rff_rff@re o] wow, this is what I call quick feedback :)
  | 122560 [dross@ru ym ] Shugo created an rss feed as a side effect of setting up scripts for the
  + 122516 [mneumann@nt ] (but doesn't work with Firefox/Thunderbird)
    122581 [rff_rff@re o] well, just when I discover one, people comes up with another.

[ANN] Ruby CVS IRC bot, and Ruby CVS RSS feed
122522 [dross@ru ym ] 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@gm ] 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@gm ] nil maybe.

OpenSSL bus error if no args to PKey::RSA.new, bug?
122527 [sroberts@un ] uname -a
122552 [drbrain@se m] I think I have 1.8-p3 installed, but I'm not sure because yours is 6
122576 [decoux@mo lo] Probably a problem with the version of openssl
+ 122596 [sroberts@un ] Apple's OS X 10.2 has 0.9.6.e, so I'm seeing the SEGV.
+ 122725 [drbrain@se m] MAA=

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

(xml) Builder question
122531 [itsme213@ho ] I love it!

mkmf problems
122533 [ceaser@ro e.] I cant seem to find any substantial docs on the net for mkmf..
122534 [decoux@mo lo] By default it use the compiler used to compile ruby.
122537 [ceaser@ro e.] doesnt that make it, pretty well broken then?
122574 [decoux@mo lo] no, you can have problems if you mix 2 differents compiler.
122575 [ceaser@ro e.] so everyone downloading the 1click installer on windows
+ 122578 [decoux@mo lo] I know nothing about Windows, but I think that you can have
+ 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@ik .] 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@un ] I want to do unpadded RSA operations with openssl, but I discovered that

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

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

[doc patch] error in ruby/re.c documentation
122541 [sroberts@un ] ===================================================================
122553 [matz@ru y- a] Thank you.

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

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

Re: [QUIZ][SOLUTION] Crosswords (#10)
122570 [jim@fr ez .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@ru ] [QUIZ][SOLUTION] Crosswords (#10)
| | 122599 [transami@ru ] Improvement. Change,
| + 122979 [james@gr yp ] This is a wonderful test file.
|   122980 [james@gr yp ] 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@cp ] class Xword

Check comand status in ruby
122585 [pustoi@sp ls] How can I check comand status in Ruby ?
122586 [decoux@mo lo] You have the class Process::Status

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

Uninstall Gems
122602 [transami@ru ] 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@we ri hh] 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@we ri hh] I still must be missing something ... with Ruby 1.8.2.preview2 ...
123401 [rff_rff@re o] 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@we ri hh] Ahhh ... thanks.  This does make sense.  I do very little development on
+ 123428 [rff_rff@re o] 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@br an s] Here is my version. Nothing special, just a few branches and thats it. Only
122673 [ruby@br an 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@PA H. ] ruby 1.8.2 (2004-12-06) [i686-linux]
122621 [pragdave@gm ] 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@ho ] I would like to see the following navigations at the Ruby level (unless
+ 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] I'd disagree with this - privacy is done at the class level rather than
    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@gm ] Is there a feature to freeze variable assignment?
+ 122632 [itsme213@ho ] I like this, specially if it also covers instance variables. I think Ruby's
+ 122638 [dblack@wo bl] 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@PA H. ] It's useful in GUI code, where each control, field, etc. is wired up to
| | + 122682 [itsme213@ho ] observable.
| | + 122746 [halostatue@g] That makes sense, and it seems that the observable-attr is the right
| + 122690 [itsme213@ho ] Correct. All instance variables of the object are frozen, not the objects
|   122727 [drbrain@se m] No, the instance variables are not frozen, the instance 'a' of Effable
|   + 122740 [itsme213@ho ] I respecfully but heartily disagree. Ruby freezes objects by freezing their
|   | + 122743 [dblack@wo bl] Ruby freezes objects by... freezing objects.  It doesn't freeze
|   | + 122745 [halostatue@g] You may disagree, but you'd be incorrect.
|   | + 122752 [drbrain@se m] VALUE
|   |   122757 [jim@we ri hh] You guys are talking past each other ...
|   |   + 122760 [dblack@wo bl] David's previous statement on this: "One of the consequences of
|   |   | 122764 [itsme213@ho ] My main interest in freezing is around instance variables. As  I said ...
|   |   + 122762 [itsme213@ho ] I think so.
|   |     + 122766 [halostatue@g] Ruby isn't Smalltalk.
|   |     | + 122803 [itsme213@ho ] If there is a standard Ruby term to describe what it is? Is "indexed items
|   |     | | 122806 [halostatue@g] Simply "object state." Alternatively "members of the [Collection]".
|   |     | + 122805 [vanweerd@gm ] 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@gm ] 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@cc n. e] Rite will do non-inherited instance variables via @_foo AFAIK. But I
|   |     |     122879 [matz@ru y- a] Yes, I am.  I think it's good to have general purpose object graph
|   |     |     122921 [flgr@cc n. e] Agreed, the GC already knows how to traverse all the built-in classes
|   |     + 122835 [flgr@cc n. e] Please call this Object state ("as in a[1] and a[2] are part of Object
|   |       122956 [itsme213@ho ] 'named
|   |       + 122970 [halostatue@g] No, it isn't. It is very easy to say that "object x has a state
|   |       | 122981 [itsme213@ho ] "Austin Ziegler" <halostatue@gmail.com>
|   |       | 122986 [halostatue@g] Yuck. What you're describing isn't Ruby, and tries to combine things
|   |       | 123213 [itsme213@ho ] Hmmm. I see no need to get abrasive.
|   |       + 122993 [dblack@wo bl] I don't think there is one that really covers it, though.  I tend to
|   |         123224 [itsme213@ho ] Ah. Thank you for the example.
|   |         123266 [dblack@wo bl] I don't see how or where any state is stored.  Are you talking about
|   |         123267 [itsme213@ho ] "David A. Black" <dblack@wobblini.net>
|   |         + 123272 [dblack@wo bl] Well... but you're now using this concept of 'slots' uncritically in
|   |         | + 123273 [vanweerd@gm ] I recall seeing "slots" used in Dylan. Is it used in any other
|   |         | | + 123283 [ruby@br an s] Cognition Scientists love models with slots and values. So I imagine lisp would
|   |         | | | 123285 [ruby@br an s] To clarify: cognition science-people also love lisp.
|   |         | | + 123293 [pit@ca it in] Slots are a fundamental concept in prototype oriented languages like Self and
|   |         | + 123302 [itsme213@ho ] That's because it would be repetitive to say "instance variable, array
|   |         |   + 123306 [dblack@wo bl] I think where I came in was discussing the freezing of local variable
|   |         |   | 123318 [itsme213@ho ] Leaving aside freezing local variables, I am curious what you think of
|   |         |   | + 123331 [halostatue@g] To me, the issue is simple. If you want to freeze more than the
|   |         |   | + 123338 [dblack@wo bl] It's not impossible -- you just have to do it by other means than
|   |         |   |   + 123340 [dblack@wo bl] Or, to phrase it less imperatively:  You might, for example, use
|   |         |   |   + 123359 [itsme213@ho ] That's always an option. Cheers.
|   |         |   + 123326 [halostatue@g] Why? Except for meta-programming, it is not generally the case that
|   |         |     + 123348 [itsme213@ho ] Please tell me how you would implement MyHash#freeze below, assuming it has
|   |         |     + 123349 [itsme213@ho ] "Austin Ziegler" <halostatue@gmail.com>
|   |         + 123300 [halostatue@g] I don't have a problem with YOUR mental model of an object and its
|   + 122741 [itsme213@ho ] But 'a' is not an instance of anything. 'a' is a _variable_, it _refers_ to
+ 122837 [flgr@cc n. e] The proposed Syntax confuses the object a variable is referring to with
  122854 [vanweerd@gm ] Yes. My bad.

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

[SOT]Signatures and one liners
122644 [binary42@gm ] 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@ru ] I like this one by Tadayoshi Funaba, mostly because it says "Begin landing
+ 122667 [heimdall@un ] 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@re o] #!/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@ru ] You know, it would be kind of cool if someone started a one-liners rubyforge
    + 123053 [kig@mi fi in] Golfed some with sinewaves, the ALT_SEPARATOR -bit makes me unhappy
    | 123073 [flgr@cc n. e] Maybe use k=PLATFORM["win"]?`cls`:`clear` -- it's also shorter.
    | 123084 [kig@mi fi in] Only problem is that "win" matches to "powerpc-darwin"
    + 123056 [dave@bu t. d] It would have to make it into standard distributions for use in signatures,
    + 123058 [bob.news@gm ] "trans. (T. Onoma)" <transami@runbox.com> schrieb im Newsbeitrag
      123060 [transami@ru ] Ah, very good. Let's be sure that the super cool one-liner wiki and blog are

Duck images
122645 [dave@bu t. d] Phil Tomson recently suggested developing a duck image to represent ruby
+ 122652 [transami@ru ] This may help.
| + 122663 [dave@bu t. d] #!/usr/local/bin/ruby
| | 122712 [transami@ru ] Cool! Did you submit to the contest?
| | 122734 [dave@bu t. d] It's not mine - I just found it lying around on the web.
| + 122666 [dave@bu t. d] OK, here's another ASCII-style Ruby Duck (Type), this time using Jave (it's
|   122699 [ptkwt@ar cn ] This is the one we should dig up whenever anyone posts something about
+ 122697 [ptkwt@ar cn ] Well, or maybe in addition to the red stone thing... a duck to represent
| + 122711 [ruby-talk@wh] It's an upright horse.  His name is Audie the Upright Horse.  He's the
| + 122713 [transami@ru ] 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@re o] people, I love this place.
|   + 122739 [flori@ni e. ] ...
|     + 122744 [ruby@br an s] Cool thing!
|     + 122758 [vanweerd@gm ] That's awesome.
|     + 122877 [ruby@br an s] # Franks original Version: 186 Bytes
|       122883 [eh@ma .s ie ] I am having the worst time getting these cute little things to work.
|       + 122897 [dave@bu t. d] The problem is indeed line-wrapping. All the duck sigs posted to date have
|       | 122900 [transami@ru ] 142
|       + 122912 [ruby@br an 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@ru ] 144
|           123040 [dave@bu t. d] 122
|           + 123045 [transami@ru ] Holy smokes! This has to be the tap out. Look how dense that thing is! Nice
|           | 123055 [billk@ct .c ] 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@br an 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@ha de] I think the escape code "\e[;11H" is valid(works with xterm and
threads.html
top