134079-136629

133923-136785 subjects 134202-138472

Ruby/Tk WIN32OLE Object Browser (was: MS Windows automation - howto use it?)
134079 [dave@bu t. d] It's the same as the above, plus a Ruby/Tk interface, which is default.

[QUIZ] Texas Hold'Em (#24)
134080 [james@gr yp ] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 134091 [sera@fh an .] Or, more generally: No matter what, you take only the best hand that
| 134101 [angus@qu va ] [Francis Hwang <sera@fhwang.net>, 2005-03-18 17.32 CET]
| 134115 [james@gr yp ] I believe all the remaining cards are kickers.  See the example on this
| 134117 [angus@qu va ] [James Edward Gray II <james@grayproductions.net>, 2005-03-18 21.02 CET]
+ 134093 [sera@fh an .] T is what people usually use for 10 when discussing the hands online.
| 134094 [hal9000@hy e] That is the most amazing domain-specific reply I have ever seen.
| + 134102 [jamesUNDERBA] Hmm.  I'll keep this in mind at the next RubyConf.
| | 134104 [blaumag@gm i] I bet it is.
| | 134311 [jamesUNDERBA] Oct. 14 - Oct. 16, 2005
| | 134350 [blaumag@gm i] I'd love to be able to say the same.
| + 134146 [sera@fh an .] I don't know if you could call me a cardsharp yet, otherwise I wouldn't
+ 134107 [tone_hole@ya] 'T' is it.
+ 134116 [james@gr yp ] Hmm, the quiz doesn't seem to account for this, so we should probably

Fwd: [QUIZ] Texas Hold'Em (#24)
134084 [james@gr yp ] For all to see...

[ANN] Kashmir/Elusion 0.2
134088 [chneukirchen] This is the first public release of Kashmir/Elusion.
134159 [spoooq@gm il] Where were you last week??? ;)
+ 134160 [hal9000@hy e] Coding, apparently. :)
+ 134181 [chneukirchen] What was last week?
  134184 [spoooq@gm il] Last week at work for me was trying to solve the same problem
  134189 [chneukirchen] That's very nice. :-)  Do you have any code to share?
  134192 [spoooq@gm il] I put an early version in another thread, I think it was called
  134193 [chneukirchen] Oh yeah, now I recall.  Did you really use XSLT for that?
  134204 [spoooq@gm il] result sooner than the amount of time it would take to convert the fairly

Iterating through a string and removing leading characters
134103 [rhkramer@gm ] This is going to seem a little strange (for a number of reasons I might
+ 134118 [ruby-ml@ma i] I implemented a semi-stateful wiki parser in a somewhat similar manner
| 134226 [rhkramer@gm ] StringScanner looks interesting, and I'm starting to dig into it.  Care to
| 134229 [ruby-ml@ma i] I do. I was waiting to complete the actual application it is
| 134259 [rhkramer@gm ] It would be interesting to see, if it's not too much trouble.
+ 134123 [flgr@cc n. e] str.slice!(0)
| + 134179 [chneukirchen] Better use String#delete! for that, no?
| | 134186 [bob.news@gm ] "Christian Neukirchen" <chneukirchen@gmail.com> schrieb im Newsbeitrag
| | 134256 [rhkramer@gm ] What is the significance to the # in String#delete! and String#[]= above?  (I
| | 134277 [cyclists@nc ] It is simply a notational convention for identifying instance methods.
| | 134290 [rhkramer@gm ] Thanks!
| + 134255 [rhkramer@gm ] Thanks!  (Can't believe I didn't recognize that approach.)
+ 134187 [bob.news@gm ] "Randy Kramer" <rhkramer@gmail.com> schrieb im Newsbeitrag
  + 134190 [chneukirchen] This reminds me of my old idea for matching against multiple regexp
  | 134450 [matju@sy pa ] Wow, cool idea!
  | 134482 [chneukirchen] A kind of self-optimizing regular expression.  Will rock if done
  | 136615 [matju@sy pa ] Depends on how seldom the Huffman tree is updated. I see it like this: you
  | 136617 [ruby-ml@ma i] This is a worthy idea, certainly! I should not expect it to cause
  | 136619 [rhkramer@gm ] I like this idea (I think it would be helpful with my problem of fast parsing
  | 136621 [ruby-ml@ma i] I mentioned this a while ago; I edited my strscan.c to provide
  | 136629 [rhkramer@gm ] Thanks, I might take you up on that offer, but I'll be busy for 2 to 4 weeks
  + 134194 [rhkramer@gm ] Thanks to all who replied so far.  I also want to look into the StringScanner
    134316 [bob.news@gm ] "Randy Kramer" <rhkramer@gmail.com> schrieb im Newsbeitrag
    134404 [rhkramer@gm ] See http://twiki.org/cgi-bin/view/Wikilearn/RWP_RE_Tests -- it's rather ugly
    134459 [bob.news@gm ] "Randy Kramer" <rhkramer@gmail.com> schrieb im Newsbeitrag
    134490 [rhkramer@gm ] Oops, for a minute I thought I had really screwed up (like by not doing 5 the
    134496 [bob.news@gm ] "Randy Kramer" <rhkramer@gmail.com> schrieb im Newsbeitrag
    134687 [rhkramer@gm ] Robert,
    134813 [bob.news@gm ] "Randy Kramer" <rhkramer@gmail.com> schrieb im Newsbeitrag
    134851 [rhkramer@gm ] Oh, yeah, thanks--I could/should have tried that. ;-)
    134853 [flgr@cc n. e] string[number] returns either nil or the ASCII number of the character
    134871 [rhkramer@gm ] Thanks, but I'm still confused--s1 is "This is a test", so 211 is neither nil
    + 134897 [flgr@cc n. e] irb(main):001:0> ?i.id
    | 135057 [rhkramer@gm ] Thanks, Florian and Robert!  (It took a little while for this to sink in, but
    | 135108 [bob.news@gm ] "Randy Kramer" <rhkramer@gmail.com> schrieb im Newsbeitrag
    | + 135120 [glenn.parker] (sp?) indicates questionable spelling.
    | + 135122 [rhkramer@gm ] Thanks!
    |   135125 [lasse.koskel] Attempting remote installation of 'rails'
    |   135286 [matt@in er s] Lasse, I had this problem too
    + 134898 [bob.news@gm ] "Randy Kramer" <rhkramer@gmail.com> schrieb im Newsbeitrag

[ANN] Ruby/ZOOM 0.1.0
134120 [lrz@gn me or] I am happy to announce the first release of Ruby/ZOOM!
+ 134121 [pat.eyler@gm] That's wonderful!  I've been looking at Z39.50 for a long time, but
+ 134122 [horacio.lope] that's great, are you doing something like Koha (but in Ruby) ?
| + 134126 [pat.eyler@gm] Are you interested in something like that?  I've been involved in the
| + 134128 [laurent.sans] More or less.  Ruby/ZOOM will be integrated in the next release of
+ 134124 [sroberts@un ] Ok, I've gone through about 3 web pages, and I still don't know what
  134130 [laurent.sans] Z39.50 is mainly used for book information retrieval.  For instance,
  134147 [aredridel@gm] You're dead on. An ugly stupid protocol, but it works!

Advice on ASCII representation of objects for testing using string compares?
134133 [kohljonathan] I've written a quick test that checks an input file for an application.
134141 [wyhaines@gm ] This sounds like a job for YAML.
+ 134142 [kohljonathan] Thanks. I Iooked at YAML, but given that the input files are XML it
+ 134143 [vjoel@PA H. ] I've had problems with both Marshal and YAML when comparing loaded
  134516 [kohljonathan] application.

ANN: 2005 International Obfuscated Ruby Code Contest (IORCC)
134139 [iorcc@ya oo ] Entry Deadline, Midnight on March 31st, 2005
134381 [ jupp@gm .d ] Zulu?
134423 [iorcc@ya oo ] Yes, Greenwich time.  Not local.  :)  Unless of course you live in

Paul Graham recommends Ruby
134158 [joevandyk@gm] undergraduate C.S. students.  And plugs Ruby while he's at it.
134169 [premshree.pi] I don't think he "recommends Ruby". He probably means something to the
+ 134170 [joaopedrosa@] My take is that he sees Ruby as a good medium to delivering some good
| 134175 [premshree.pi] Heh. But we could always use name dropping. :-)
+ 134171 [horacio.lope] Are you arguing about the use of the verb 'to recommend' ?
| 134173 [premshree.pi] Well, I was taking the phrase into context -- "Ruby on Linux". He
| 134177 [waisun.chia@] I agree. He explicitly stated "Ruby on Linux".
| 134178 [premshree.pi] TCL definitely doesn't qualify as a "cool dynamic language". :-)
| + 134185 [surrender_it] you're underestimating tcl, it is a *strange* language but it is in the
| | 134201 [glenn.parker] Cool!  You can put your money where your keyboard is.
| + 134372 [snowzone5@ho] pack [button .b -text "quit" -command{exit}]
+ 134182 [chneukirchen] Yeah, but Python 3000 won't have lisp stuff anymore, didn't you read
  134218 [navindra@cs ] Can you expand on this?
  134221 [laurent.sans] But who cares? :-)
  + 134222 [horacio.lope] I believe it's just a matter of time for Paul Graham to say something
  + 134227 [navindra@cs ] Ruby was a language that was designed and inspired from other
  | + 134230 [ruby-ml@ma i] We need eta-reduction in Ruby! :)
  | + 134231 [joaopedrosa@] I love taking a cheap shot at Python. :-)
  | + 134232 [chneukirchen] Care to elaborate?  What's lacking?
  |   134234 [navindra@cs ] Yeah, sorry for being unclear.  I was referring to higher-order
  |   + 134236 [chneukirchen] This apparently got better with the anonymous blocks recently imported
  |   | + 134237 [navindra@cs ] I'm not sure how that could be improved, since it's already doing what
  |   | | + 134242 [chneukirchen] I think you can write  foo {|x|...}, {|y|...}  with recent CVS.
  |   | | | + 134243 [ruby-ml@ma i] In data 3/19/2005, "Christian Neukirchen" <chneukirchen@gmail.com> ha
  |   | | | | + 134246 [chneukirchen] But with localvar(), it can be even more confusing.  Besides, method
  |   | | | | + 134258 [vjoel@PA H. ] If "operator()" is syntax sugar for some method (#call, say), then you
  |   | | | | + 134457 [matju@sy pa ] Given that a system like Mathematica uses [] for both function-calls and
  |   | | | + 134247 [navindra@cs ] What does the syntax for yield look like then?
  |   | | |   134252 [chneukirchen] def foo(x, y)
  |   | | |   + 134257 [dblack@wo bl] irb(main):008:0> def foo(x, y)
  |   | | |   + 134305 [navindra@cs ] This thread was started because he seemed to be pushing Ruby.  In any
  |   | | |   | + 134306 [horacio.lope] You seem to really have a hard time believing someone IS pushing Ruby :-)
  |   | | |   | | 134307 [navindra@cs ] I honestly have no idea what you're talking about...  I push Ruby
  |   | | |   | + 134320 [chneukirchen] Will Arc be there before Rite? ;-)
  |   | | |   + 134669 [steven_shaw@] Could you expand on why OO languages are better off as Lisp 2?
  |   | | |     134693 [chneukirchen] Because it is more consistent.  I have actually designed a primitive
  |   | | + 134244 [martindemell] Simple - [] is a method and () isn't :)
  |   | |   134248 [flori@ni e. ] irb(main):001:0> a = lambda { |x| x * 2 }
  |   | |   + 134250 [dblack@wo bl] I guess I spoke too soon in my last message.
  |   | |   | + 134270 [matz@ru y- a] Nowhere.  I'm just experimenting new syntax, such as
  |   | |   | | + 134310 [aredridel@nb] I rather like the idea of a lambda without lambda, and moreso the call
  |   | |   | | | 134322 [surrender_it] I agree, even if I think a little messing up it's ok, if the stuff that
  |   | |   | | | 134331 [dblack@wo bl] I don't think anyone does.  But that doesn't mean that every aspect of
  |   | |   | | | + 134335 [ruby-ml@ma i] if someone thinks that a particular enhancement would work to
  |   | |   | | | + 134438 [martindemell] That's an excellent way of looking at it.
  |   | |   | | | + 134462 [flori@ni e. ] I think "f = {|| }" is analogous to "def f() end", and I really like it.
  |   | |   | | | | + 134471 [csaba@ph ny ] What I don't get: why is the restriction that the "(*) falls back to
  |   | |   | | | | + 134475 [dblack@wo bl] I don't think making Ruby resemble other languages makes it
  |   | |   | | | |   134479 [flori@ni e. ] Hey, this is the language of my dreams, it does only exist there. In
  |   | |   | | | |   134483 [dblack@wo bl] Are you saying you'd like to have foo {} be the same as foo({})
  |   | |   | | | |   134499 [flori@ni e. ] Not necessarily, I only pointed out, that there is a problem, that could
  |   | |   | | | |   134503 [dblack@wo bl] I still don't have my head around the new block param syntax... but
  |   | |   | | | + 134668 [steven_shaw@] Do you mean syntactically? Like instead of Smalltalk like [| ]? or
  |   | |   | | |   134679 [dblack@wo bl] I mean if Matz had wanted such a constructor from the beginning, what
  |   | |   | | |   + 134709 [ruby-ml@ma i] I absolutely agree with you on this and can see how this would be a
  |   | |   | | |   + 135518 [steven_shaw@] It's clear that you are talking about syntax. That's all I wanted to
  |   | |   | | + 134332 [dblack@wo bl] Thanks for the clarification :-)
  |   | |   | + 134304 [navindra@cs ] Why?  It seems natural to call a function with ().
  |   | |   |   134333 [dblack@wo bl] I'm not sure about the naturalness of it -- I'm more thinking about
  |   | |   |   134344 [navindra@cs ] It isn't a method in 1.9?  Well, maybe it will be made a method or at
  |   | |   |   134348 [dblack@wo bl] irb(main):006:0> {||}.methods.grep(/\(/)
  |   | |   |   + 134379 [daniel.amela] Anyone tossed around the idea of changing hash's syntax so that {}
  |   | |   |   | + 134384 [mailing-list] Well, that could work, as it will be obvious that its a hash due to the
  |   | |   |   | | 134386 [dblack@wo bl] []
  |   | |   |   | | + 134390 [mailing-list] An empty hash/list?  A proxy that defines its behavior depending on
  |   | |   |   | | + 134400 [daniel.amela] I entirely prefer getting rid of the {} empty hash constructor
  |   | |   |   | |   + 134403 [mailing-list] Heh, that was a quite nice solution actually,
  |   | |   |   | |   | 134405 [rampant@gm i] As symbols are often used as keys, how about describing a hash as a
  |   | |   |   | |   | 134408 [daniel.amela] [key:value, foo:bar]  (the key:value syntax is already part of ruby 1.9)
  |   | |   |   | |   + 134513 [djberg96@ho ] it's
  |   | |   |   | |     134602 [navindra@cs ] What mess?  Daniel's suggestion unifies the Array/Hash literal syntax
  |   | |   |   | + 134437 [martindemell] [: name:bill, age:25 ]
  |   | |   |   + 134394 [martindemell] If () ever gets to the stage where it works on literals as well as
  |   | |   |     + 134395 [hal9000@hy e] IIRC David doesn't like for/in either. :)  Though I do.
  |   | |   |     + 134396 [dblack@wo bl] It doesn't work on either right now, though, just on method
  |   | |   |       134439 [surrender_it] notice that it is not a lambda thing.. is something done for callable
  |   | |   |       134476 [dblack@wo bl] But this notion of "a callable" collapses things which really aren't
  |   | |   |       134532 [surrender_it] => nil
  |   | |   + 134253 [martindemell] Very sweet. How does this work, internally? Have lambdas been
  |   | |   | 134269 [flori@ni e. ] There is a NODE_LAMBDA now, but the () change seems to be  independent
  |   | |   + 134254 [chneukirchen] Katsu!
  |   | |   + 134312 [ksibilev@be ] Hm, strange
  |   | |   | 134323 [flgr@cc n. e] By design, it's only intended to work for local variables for now AFAIK.
  |   | |   + 134368 [malteNOSPAM@] I don't know whether I like that. If I understand correctly, it means that
  |   | + 134249 [dblack@wo bl] my_lambda = {|| puts "I am a lambda"}
  |   |   134458 [matju@sy pa ] Why not alias lambda/proc to L ? it would be just one more character to
  |   |   134477 [chneukirchen] Rather, extend Ruby to handle uncode identifiers!! (or can it already?)
  |   |   134511 [flgr@cc n. e] Yes. Use ruby -Ku.
  |   + 134245 [martindemell] Well, since you cited scheme, it's the difference between
  + 134295 [michael.camp] Wow. He and I clearly have different views of "clear".
    134319 [chneukirchen] And S.find_all { |x| P(x) } is even more readable. :-)
    134324 [flgr@cc n. e] class Symbol
    134334 [chneukirchen] Oy, thanks.  Why didn't I figure that on my own. :-)

win32utils installation of doc and sample
134167 [botp@de mo t] The docs and samples directory is _forced to install in drive C: even though
134195 [sdate@ev re ] Yes, this is a known problem and we have mentioned it in the "Known

OSNEWS: The International Obfuscated Ruby Code Contest
134174 [pan@er kv en] The front page of OS News [1] mentions "The International
134183 [dblack@wo bl] I've never, ever heard any Ruby programmer say that.  I guess one of
134188 [chneukirchen] Me neither.  However, I don't know what happens between Eugenias ears

Test::Unit teardown with child process
134180 [B.Candler@po] I have a suggestion which might improve the behaviour of the 'teardown'
134233 [ryand-ruby@z] I've been tearing up rubicon in the past couple of days and noticed

Cygwin Ruby and Windows Ruby?
134197 [cjlesh@gm il] I use cygwin, and installed ruby to mess around with it.
134198 [sdate@ev re ] Yes.
134238 [cjlesh@gm il] Well, I went ahead and installed the one-click installer, and I think
134240 [cjlesh@gm il] If I type irb I get the error message I described in my previous post.
134251 [mailinglists] One Click Installer has now implemented the stupid idea to register
134271 [cjlesh@gm il] Thanks for the info.
+ 134284 [curt@hi bs c] By default, the one-click installer installs RubyGems and sets the
+ 134302 [sdate@ev re ] I owe you an apology for leading into a sticky situation. I haven't
+ 134303 [sdate@ev re ] I owe you an apology for leading into a sticky situation. I haven't

strip and its evil brother strip!
134200 [braempje@ne ] Possibly a stupid question: why does strip! of a string with a single
134203 [glenn.parker] Looks like a bug to me.
+ 134207 [flgr@cc n. e] This is by design. The destructive forms of built-in methods usually
| 134220 [glenn.parker] Yup, my bad.  I know (really!) that this is by design, but I got myself
| + 134223 [flgr@cc n. e] I tend to disagree as destructive methods are not supposed to be
| | + 134224 [glenn.parker] Who (else) ever said destructive methods are not supposed to be chained?
| | + 134225 [martindemell] It'd be nice to similarly optimise
| | | 134228 [ruby-ml@ma i] In data 3/19/2005, "Martin DeMello" <martindemello@yahoo.com> ha
| | + 134261 [james@gr yp ] I like the current behavior and have used it in if statements more than
| |   134264 [ruby-ml@ma i] In data 3/19/2005, "James Edward Gray II" <james@grayproductions.net>
| |   134272 [mailing-list] Fun?
| |   + 134273 [ruby-ml@ma i] In data 3/19/2005, "Nikolai Weibull"
| |   | 134280 [mailing-list] That's a rather weak statement.
| |   | 134285 [ruby-ml@ma i] WTF is with the attitude?
| |   | 134289 [mailing-list] Right back at you?  Sorry for being a dick.  I guess I should have
| |   + 134274 [martindemell] Thread-local $variable?
| |     134281 [mailing-list] I'm sorry, but that's just terrible,
| |     134456 [martindemell] Not really any more terrible than overloading the return value of a function
| + 134235 [agorilla@gm ] I've always wondered about the "return nil if unchanged".  I don't
|   134265 [billk@ct .c ] I've only used it occasionally.  But as Matz pointed out
+ 134210 [jason.sweat@] This came up on another thread recenly. It is a legacy behavior of the
  134213 [dblack@wo bl] I don't think it's legacy in the sense that that usually implies
  134215 [daniel.amela] I ranted about this very behavior 2 days ago. I'm willing to do an RCR
  + 134217 [gavin@re in ] I experience the same pain, and would vote for such an RCR
  | 134263 [mailing-list] Exactly when do you experience this pain?  Perhaps you need some
  + 134402 [matju@sy pa ] One thing I dislike about the Smalltalk-style habit of returning self when
    + 134407 [g_ogata@op u] x.instance_eval{chop!; strip!}
    + 134480 [chneukirchen] +1
    + 134484 [csaba@ph ny ] x.instance_eval { chop; strip }
    | + 134486 [flgr@cc n. e] What about the multi-line form?
    | | + 134492 [csaba@ph ny ] Yeah, that's somewhat bizarre... But not that bad. You could just stick
    | | | 134508 [flgr@cc n. e] Not every form of syntax sugar has to have the object on the left-handed
    | | + 134589 [glenn.parker] Seems like it should be the value of the last expression, but that gets
    | + 134573 [matju@sy pa ] The problem with it, compared to the smalltalk one, is that it changes the
    |   134588 [csaba@ph ny ] That's true. #instance_eval is not the same as what Smalltalk has, but
    |   135996 [matju@sy pa ] GridFlow (my video software) has a C++ macro called IEVAL(). However I
    + 134579 [matz@ru y- a] Yep, cascading method call style has been sought several times in the
threads.html
top