52670-55052 subjects 53120-60465

License Question
52846 [canyonrat@ma] I'm working on a project with the working title of "Ruby Automation
52864 [matz@ru y- a] You didn't write any question. Your post did not have any question
52867 [canyonrat@ma] Thanks, Matz

Polymorphism, Isomorphism
52848 [ptkwt@sh ll ] Consider this a bit of public pondering...
+ 52857 [alwagner@tc ] I wouldn't surrender the term Polymorphism to a newer and more limited
| 52871 [ptkwt@sh ll ] I'm not sure we'd be giving up anything.  Here's the definition for
| + 52872 [bulatz@in eg] protocols (interfaces) are best answer, imho
| + 52908 [alwagner@tc ] I suppose my argument is: "If it isn't broke, don't fix it."  I remain
+ 52863 [ jimm@io co ] I don't think I would ever use the isomorphic? method. I very, very rarely
| 52873 [ptkwt@sh ll ] Perhaps you're right.  I also think that the method shouldn't be called
| 52903 [ jimm@io co ] Yes. Even better, what about
| 52911 [STUCKNER@MU ] First of all, I think that itis a good idea to be able to check if classes
+ 53011 [harryo@zi .c] I think you'd be better off with something more like how Java checks whether a
  + 53012 [harryo@zi .c] Whoops!  I take that back !!
  + 53013 [judson@ir v2] Add a interface() method to Class, and
  | 53014 [harryo@zi .c] True.  However, I think it makes more sense to keep the definition of the
  | + 53015 [harryo@zi .c] Of course, now that I think about it ... maybe it would be useful to be able
  | | 53018 [harryo@zi .c] OK. Here's what I came up with ...
  | + 53029 [gsinclair@so] implement
  |   + 53033 [harryo@zi .c] Agreed.  As I said in my later messages, I imagine noone would actually use
  |   + 53064 [cyclists@nc ] Thank you, thank you, thank you! This really needed to be said!
  + 53039 [tsiivola@cc ] Hear, hear! This is by far the best suggestion in this line of thinking I
  + 53041 [dblack@ca dl] There's something along these lines, from the #can? discussion, in
    53046 [gsinclair@so] would

Simple demo of mod_ruby persistence problem
52851 [harryo@zi .c] ...

Looking for a "ruby-qt" for dummies reference
52852 [waspz@bt pe ] Is there such a thing as a reference for ruby-qt. I have grasped the basics of the binding but not being a programmer by profession and haveing virtually no knowledge of C++ I have difficulty understanding the Trolltech documentation. So, does anyone knows of a ruby orientated reference guide to the API I would greatly appreciate it.

(堡绊) 绢赴捞甫 困茄 悼夸CD客 局聪皋捞记
52855 [flyingweb@LY] ...

[ANN] xmlscan-0.1.1 released.
52856 [unnie@bl e. ] xmlscan-0.1.1 has been released.

Problem with FXRuby 1.0.13/ruby 1.7.2 (i386-mswin32)
52875 [austin@ha os] Okay. The samples are working, and my application is (although
52879 [austin@ha os] *oops*

Problem with FXRuby 1.0.13/ruby 1.7.2 (i386-mswin32)
52876 [austin@ha os] Okay. The samples are working, and my application is (although

Oferta Especial --- Special Offer
52886 [info@be ta e] Si requiere de Un Sistema para Windows o Un Sitio Web Avanzado.

possible patch for singleton.rb
52888 [leikind@mo a] As you know, if you mix-in Singleton module in a class,
+ 52892 [Dave@Pr gm t] Except...
| + 52899 [mikkelfj-ant] I agree, I was about to post the same.
| + 52900 [austin@ha os] Why would it be a runtime error to call set_init_args more than
| + 52912 [chr_news@gm ] agreed
| + 52963 [YuriLeikind@] This approach is perhaps wiser than mine. The only thing is
|   52964 [bulatz@in eg] class Singleton
+ 52896 [matz@ru y- a] But you will not be sure if the arguments are used or not.

Using Ruby Hash for Crytography?
52889 [billtj@gl e.] Exactly.  That's why in the original post
52891 [dblack@ca dl] same as the presence of a key/value pair.  So nbs is an empty hash
52898 [billtj@z. lu] Probably the problem is not that bad.  A hash value can be populated with
52906 [dblack@ca dl] class Hash

superclass method calling problem
52897 [peter.schuel] # my baseclass
+ 52901 [decoux@mo lo] Well, you can use an alias something like
+ 52902 [billtj@z. lu] # ----------------------------------------

Ruby and GTK 2
52918 [ghost_dj@ho ] I apologise if this has come up before, but I can not find that much
52929 [info@mj is d] go to
54601 [bil@cc ma st] Another possibility: ftp://ccrma-ftp.stanford.edu/pub/Lisp/libxm.tar.gz.

undefined method for nil..
52919 [rayder@in me] Sorry to bother you with this stupid and trivial question, but I'm a
52921 [dblack@ca dl] Well, I think we can pretty confidently say that line[0] is nil :-)
52923 [enric@1s ar ] Thank David, you're very right, it's my "prototype" mind the one that

a strange construct (which lead to unspecified behavior AFAIK)
52920 [frido@q- of ] Am not sure if this is the right place to post it or better contact
+ 52922 [peter.schuel] of course the first code will work
| 52948 [frido@q- of ] Ah yes I see.
+ 52924 [nobu.nokada@] It's defined by the C specification.  Left hand side expression

Ruby in "Mastering Regular Expressions" ...
52926 [dmartenson@m] The latest edition of "Mastering Regular Expressions, 2nd Edition" refers to
52928 [dblack@ca dl] Take heart: some of the things you've listed are not negative, but

Sorting an array of hashes
52930 [martin@ma si] I've an array of hashes I want to sort, first by key1 and then subsort by
+ 52931 [ysantoso@je ] <code snipped>
+ 52933 [dblack@ca dl] unsorted = (0...100).map {|t| { :k1 => rand(10), :k2 => t} }
| + 52934 [martin@ma si] unsorted = (0...100).map {|t| { :k1 => rand(10), :k2 => t} }
| + 52952 [pit@ca it in] unsorted = (0...100).map {|t| { :k1 => rand(10), :k2 => t} }
+ 52937 [behrends@cs ] unsorted.map{|h|[h["firstKey"],h["secondKey"],h.id,h]}.sort.map{|_,_,_,h|h}
+ 52941 [mike@st k. o] # in Ruby 1.7.x
  52942 [martin@ma si] unsorted.map{|h|[h["firstKey"],h["secondKey"],h.id,h]}.sort.map{|_,_,_,h

FW: Sorting an array of hashes
52932 [martin@ma si] snip.....

Private instance variables
52939 [gsinclair@so] In all the discussion about private instance variables, I don't think I've seen
52949 [decoux@mo lo] It was proposed but you can't use it. For example
52975 [billtj@y. lu] I am sorry that I don't know much about the OO theory (haven't read that

[ANN] Coco/Rb LL(1) Recursive-decent scanner/parser
52940 [probertm@no ] I'd like to announce to the Ruby Community that I have posted

OT: was RE: Too Many Underscores?
52946 [michael_s_ca] Some info...

[ANN] YAML.rb 0.44 (no longer requires racc)
52950 [ruby-talk@wh] the latest: >
52962 [botp@de mo t] very cool, why?? (cool name too, :-)
52976 [ruby-talk@wh] In the 'Reference' section of http://yaml4r.sf.net/doc/, you should check out
53035 [botp@de mo t] I see it now on your page. The _examples_ (on the left frame) is located at

[FXRuby] Problems with coordinates and clipping
52967 [520079130762] Shouldn't the following piece of code show the complete rectangle?
+ 52968 [ sz@sz sz hu] Sounds like correct behavior. Please see the GDI docs.
| 52973 [520079130762] Where can I find those GDI docs?
+ 52974 [lyle@us rs s] Yes. The FXDC methods follow their X11 counterparts very closely, such
  52978 [520079130762] Yes, now I understand. Thanks.

Different Behavior of Class Variables w.r.t ||=
52977 [billtj@y. lu] This is very interesting.  Should Ruby be more consistent in this respect?
52981 [kentda@st d.] That might be a bad idea, since class variables are more "magical" than
+ 52983 [billtj@y. lu] Can you elaborate more on what sort of bugs is likely to occur?  (I.e.,
| 52989 [kentda@st d.] I am no expert at this stuff, but I ran into something like this when I
+ 52987 [nobu.nokada@] Oops, 1.7 behavior has changed.  Bad idea?
  52994 [kentda@st d.] I am not too sure which way it has been made consistent. Does ||= work
  + 52996 [kgergely@ml ] irb(main):001:0> a
  | 52999 [kentda@st d.] The line
  + 52998 [kentda@st d.] .... of course, every Ruby Nuby should run with -w, which would warn
  | 53002 [gsinclair@so] Funny, in every language I know, warnings are off by default, and then people
  | + 53006 [harryo@zi .c] I like that idea!  It would be interesting to see how many messages would
  | | 53030 [gsinclair@so] As James pointed out, you can use the RUBYOPT environment variable.
  | + 53008 [matz@ru y- a] Interesting.
  | + 53019 [james@ja es ] Where do you put the switch if you've set a file as executable and run it
  | | + 53028 [gsinclair@so] Fair enough.  In Unix, of course, that's a non-issue.  But there's a way around
  | | + 53166 [pbrannan@at ] $VERBOSE = false
  | + 53038 [tsiivola@cc ] "ruby bad.rb" => 17 warnings by default
  |   53136 [bulatz@in eg] "ruby bad.rb" =>> 17 warnings by default
  + 53009 [matz@ru y- a] Class variables themselves have same kind of problem.

syntax string[0]=?t
52980 [kgergely@ml ] Is there any good idea how should a character represented in ruby? The
53001 [gsinclair@so] Well, you know about "if str[0] == ?M", obviously.  What's wrong with that?

52985 [kgergely@ml ] Is there any english docs about visualuruby yet?
52997 [520079130762] It covers programming with VRuby, but not the the form designer.

Re: REXML & Root Node
52992 [T.Hammond@el] Sorry to be late in replying. What I meant was leading space before the

Re: Welcome to our (ruby-talk ML)         You are added automatically
52993 [mxawad2000@y] Can anybody send me a small segments of code of how to

sample code for including C++ or java classes in ruby
52995 [mxawad2000@y] I just started learing ruby, and I have difficulties
53031 [billtj@z. lu] Welcome to Ruby.  In my opinion, it is usually not the first step to

53000 [eto@vi .1 3.] This is a multi-part message in MIME format

UTF-8 Character Conversion to HTML
53003 [ben@bl hr co] All-
+ 53004 [ben@bl hr co] Excuse me. That's not Polish, its Portugese, but I'm having problems
+ 53005 [dblack@ca dl] Hmmm... I get an error about trying to call + on nil :-) But with a
+ 53007 [matz@ru y- a] You have to make sure the encoding of your input.  Is it really in
  53010 [ben@bl hr co] matz-
  53247 [nahi@ke na t] Is it 0xef, 0xbb, 0xbf?  Then, yes it should be UTF-8.

needed - html widget library
53017 [ahoward@fs .] does anyone of know of a good html widget library?  i'm thinking of
53026 [lyle@kn lo y] but your description of what you're looking for sort-of reminded me of it.

Re: Find remodeler & designer
53020 [sam_jin@et n] ...

FYI: Can't attend RubyConf
53021 [hal9000@hy e] I am an enthusiastic supporter of Ruby
53023 [jweirich@on ] Hal, I'm sorry to hear this.  I agree, last year's conference was
53024 [pate@re -b a] I'll be there!  I had to miss it last year, and don't want to miss it
53027 [james@ja es ] Same here.  This time I have the time and money; Seattle is closer to me (at

RubyConf list (was: Re: FYI: Can't attend RubyConf)
53025 [dblack@ca dl] Michael B. Babbitt    Daniel Berger         David Black

53036 [wanglin@er h] 加入《SOHO》,寻找生活的明天……

53045 [warren@fr ed] dear developer,
+ 53048 [dblack@ca dl] I think almost anything is a better name than CRAN, as that (to me)
| 53082 [michael_s_ca] CTAN preceded CPAN by... half a decade or more, did it not?
| 53083 [dblack@ca dl] The "it" in my last sentence was meant to refer to "CRAN" -- i.e.,
| + 53093 [gsinclair@so] Just a thought: why *not* copy CPAN?  It's pretty good, isn't it?
| | 53109 [michael_s_ca] This is my thought too.  It's not like Ruby hasn't copied a lot of things from
| | + 53111 [dblack@ca dl] No one has claimed it did.  In any case, I'm not sold on the "already
| | | 53113 [hal9000@hy e] I have always favored the name "Ruby Archive" -- it's concise, easy
| | + 53114 [dossy@pa op ] Yes, but the archive at first would be neither Comprehensive or a
| + 53095 [bilotta78@ho] I'm sure there are better names than CRAN, but there are worse names
| + 53101 [warren@fr ed] Hows the name RubyX3.... which means Ruby-Cube like the puzzle
|   53105 [billtj@y. lu] Well, if you really want to be "trendy", I think we should call the
|   53110 [michael_s_ca] Not to be a pedant here, but the Solaris name is more than a mapping of OS to
|   53116 [billtj@z. lu] OK, OK, I agree with you.  One problem with ASCII-based text like this is
|   + 53125 [gsinclair@so] On the contrary, I think nearly everybody would think "approximately" when they
|   | 53128 [billtj@y. lu] Well, that part in the original post was intended to be a
|   + 53162 [bilotta78@ho] TeX usage: SunOS 2.7 \in Solaris 7
|     53174 [billtj@z. lu] OK, OK, and what is the percentage of people who understand TeX notation
+ 53209 [drbrain@se m] VS Access
  53232 [james@ja es ] I think he means something like the RAA (Ruby Application Archive)
  53234 [drbrain@se m] lly=20

OT: English
53059 [billtj@y. lu] Well, in this case I guess "objectively" can mean either and/or both

Get your Website seen locally and globally
53061 [sales@ro kw ] Leading web authority (UK)

Design Philosophies (was Re: Different Behavior of Class Variables w.r.t ||=)
53063 [james@ja es ] This is an interesting question, analogous to the forced use of white space
53071 [gsinclair@so] Except that we're only talking about warnings here.  They can be ignored.

Delegating each
53066 [schuerig@ac ] I have a class that basically encapsulates an array and mixes
+ 53067 [Dave@Pr gm t] def each(&block)
| 53076 [schuerig@ac ] Sigh... I need to go to bed.
+ 53068 [jweirich@on ] You could try ...
+ 53069 [gsinclair@so] In addition to the other replies, you can check out the Delegate and
+ 53098 [list@NO PA c] require 'forwardable'
| 53224 [schuerig@ac ] That's cool. I didn't even know Forwardable existed.
+ 53210 [drbrain@se m] Or, if you expose a bunch of the array's functionality,

Re: English
53073 [gsinclair@so] Guy uses Ruby. :|

OT: Commodore 64 was Re: Platform again
53077 [tarasis@bt p] Strangley enough Gavin, earlier today I recieved a CD of Commodore 64

OT: Commodore 64 was Re: Platform again
53078 [tarasis@bt p] Strangley enough Gavin, earlier today I recieved a CD of Commodore 64
53080 [dossy@pa op ] My lord, Rob.  Thank you so much for mentioning these folks.  I

OT: Commodore 64
53084 [billtj@z. lu] Wow, my first computer exposure was programming BASIC on a Commodore
53094 [bilotta78@ho] I had a ZX Spectrum. Does that count too? :)

OT: English
53086 [billtj@z. lu] Well, I have this story.  This is just a story.
53099 [alwagner@tc ] -)
53107 [billtj@y. lu] Definitely, definitely.  There is no mistake about that... :)

Wired Magazine's Rave Award
53087 [james@ja es ] "This year I'm part of the Wired Magazine Brain Trust -- a group of people
53096 [kentda@st d.] "It doesn't matter (to me) if it has a billion users,

Re: Commodore 64
53090 [gsinclair@so] Of course!  (Used a Vic-20 before that, though.)  I never was able to learn
+ 53102 [james@ja es ] I learned C on my C=64; spent all my time writing cellular automata ...
| + 53106 [billtj@y. lu] What, you already had a C compiler for a Commodore 64 back then?  You were
| | 53108 [james@ja es ] Abacus Software sold various compilers for the C=64, including C and Pascal.
| | 53122 [ptkwt@sh ll ] Yeah, Wolfram became very interested in CAs (some would say obsessed) back
| + 53112 [szegedy@t- n] I loved to hack in 6510 assembler. Still now, I know all SID and VIC
|   53117 [billtj@z. lu] At that time one guy (or boy?) formed an assembly club at school, but I
+ 53104 [billtj@y. lu] Ahh... yes, yes, actually the first "computer" was Vic-20, with... 8 or 20
  + 53153 [B.Candler@po] I thought the VIC-20 had 3K of RAM in the base system. You could buy a RAM
  | + 53155 [botp@de mo t] ahh, the good old days :-)
  | + 53164 [billtj@z. lu] Probably you are right.  When I first got it, I think it was already
  + 53156 [bulatz@in eg] of memory and 8008 processor

Re: Commodore 64 was Re: Platform again
53091 [gsinclair@so] I *must* hear Ghosts 'n' Goblins.  Would you?
53097 [dossy@pa op ] Rock on.  Absolutely awesome.

size of unnamed pipe
53100 [kieler@te us] ...

Good name for RAA.succ (Re: Sorting)
53115 [maili31s@cl ] Possible name for RAA.succ, ...
+ 53118 [james@ja es ] Oh, good one.
+ 53127 [cloud@ch ol ] </lurk>
| + 53130 [austin@ha os] CRANberry -- "Comprehensive Ruby Archive Network".
| | 53131 [botp@de mo t] lol. OT though.
| | 53143 [hal9000@hy e] Zombie processes, that is... ;)
| | 53145 [botp@de mo t] I do hum this song (whenever I'm stuck w a code or anything). So, you'd
| + 53147 [kentda@st d.] I'm nitpicking, but Archive begins with an A. Should it be "Organized
|   + 53148 [botp@de mo t] How about "ORA is Ruby Archive"...
|   | 53150 [bulatz@in eg] or "SHMAra is Ruby Archive" :)
|   | 53175 [billtj@z. lu] Are we going to get sued by "Ruby Tuesday" restaurants or are we going to
|   + 53158 [cloud@ch ol ] I figured, why be conventional with the acronym?  Well, that and
|     + 53159 [tarasis@bt p] Hmmm, how about SORE
|     | 53241 [brailsmt@ya ] SPORE
|     + 53163 [bilotta78@ho] I like the TIARA idea, though.
+ 53896 [sean@ru yn t] Or simply, rubynet.