37877-38724 subjects 38363-39452

Idea for a new shorthand
38136 [hal9000@hy e] OK, maybe this is an idea no one will like. Or
+ 38140 [matz@ru y- a] I know the problem you want to solve.  I'm considering something like
| 38142 [hal9000@hy e] OK, I am glad it is a sensible idea...
| + 38143 [matz@ru y- a] Rite. ;-)
| + 38152 [hipster@xs a] defadvice is Aspect Oriented Programming, like aspectr (RAA). What you
+ 38141 [hal9000@hy e] [snip my own text]
+ 38154 [tsiivola@cc ] <snip> super-like prior instead of alias </snip>
+ 38156 [dblack@ca dl] I've always thought of super as a Y-axis thing, and alias as an X-axis
| + 38160 [tsiivola@cc ] I may have misunderstood, but I don't think Hal ment "prior" as a
| + 38224 [hal9000@hy e] You're absolutley right, David...
+ 38166 [krobbins@ll ] Eiffel solves the problem as you suggest, but uses the term Precursor
+ 38180 [pbrannan@at ] Does this mean that when a method is redefined, the old definition must
| 38188 [decoux@mo lo] Try this with your modified version of ruby
| 38194 [pbrannan@at ] Hmm, I see.  On the one hand, I shouldn't be able to call a method that
| 38233 [decoux@mo lo] or if this method was redefined, you have the same problem if I write
| 38243 [pbrannan@at ] class Base; def foo; puts "Base#foo"; end; end;
+ 38192 [sean@ce so t] I may be off-base with this, but a problem jumped right into my mind doing

Ruby and MSVC++
38138 [anton@we st ] How can i compile my module by MSVC++ 6.0?
+ 38144 [usa@os .a t.] Add /D "NT" and /D "IMPORT".
| 38145 [anton@we st ] In both cases i get same error message :(((
| 38146 [usa@os .a t.] Hmm, are you really need to use C++ ?
| 38155 [ozawa@te hf ] RUBY_METHOD_FUNC helps.
+ 38147 [nobu.nokada@] Rename tstruby.cpp tstruby.c
  38150 [anton@we st ] creating Makefile
  38153 [usa@os .a t.] Sorry, change the argument of create_makefile in extconf.rb.

Posting attachments via mailing list (Re: GetoptLong question)
38149 [pit@ca it in] no, it wasn't weird at all.
38151 [ruby-talk@je] That is difficult. Theoretically, MIME attachment should be readable

Why Object#class Is Inconsistent in "==" and "case"?
38167 [billtj@y. lu] I know that when I use the case statement, it is the "===" operator that
38169 [decoux@mo lo] Write it like this
38171 [billtj@y. lu] It works!  Thanks.
38172 [decoux@mo lo] Try this
38175 [billtj@y. lu] Thanks for the example.  I can see that in the case statement involving
+ 38176 [decoux@mo lo] Well, it's not wrong : the === operator is overriden at C level
| 38182 [billtj@y. lu] But in this case we are calling "Object#===" and not "Kernel#===" or
| 38183 [decoux@mo lo] No, when you write
+ 38178 [Dave@Pr gm t] You're using Module#===, not Object#=== in your example.
  38184 [billtj@y. lu] In the previous example by Guy Decoux,
  38189 [Dave@Pr gm t] Yes.
  38193 [billtj@z. lu] Dear Mr. Dave Thomas,

FXRuby, FOX and OpenGL - Shape Colours
38168 [james@la ya ] Does anyone know how to set the colour of an FXGLShape object in FXRuby/FOX?
38181 [lyle@kn lo y] FXRuby/FOX?

0820 [do_joly@ya o] I was able to register the dll file using regsvrce.exe!  Thank you very
38425 [lite_cheng@y] Sorry for the late reply - I was away for a few days.

Couple of questions about XML modules
38196 [stopm@at bi ] I am considering doing a fairly large project with Ruby and XML, and I'd
+ 38197 [tobiasreif@p] Check REXML
| 38198 [chris.morris] Xml Serialization. It's still in the pre-release stages.
+ 38204 [james@ru yx ] If you're not validating, then I would suggest looking at REXML. The

not vs !, and vs &&
38199 [james@ru yx ] I'm confused about the behavior of 'not'.  The Pickaxe and Ruby21Days books
+ 38201 [sean@ch tt n] puts (!true)
| + 38202 [james@ru yx ] puts "#{not true}"
| + 38229 [gnhurst@hu s] Not a bug.
|   38245 [james@ru yx ] <snip />
|   38268 [gnhurst@hu s] They are synonyms, but one forms a statement, and the other forms an
|   38304 [in6x059@pu l] I took a look at Rubys parse.y and it seemed like there really is a
+ 38221 [niko.schwarz] very simple. the and has a very low precedence. there are just 3 levels,
  38223 [james@ru yx ] Ah so.  Thank you.  I'm still unclear about
  38227 [ruby@fo rt c] irb(main):127:0* `ruby --version`
  38244 [cameron@cw u] irb(main):001:0> `ruby --version`
  38246 [decoux@mo lo] pigeon% ruby -v -e 'puts (not true)'
  38248 [james@ru yx ] Then is there a big in Ruby on SuSE release 7.3, where this same expression
  38249 [decoux@mo lo] No, you have just removed one part of my message.
  38251 [james@ru yx ] Ah, I see.   Thanks.

confused about threads
38200 [probertm@no ] I am a little confused about threads and scope.  Here is a simple version
38211 [lyle@kn lo y] You never modify the value of 'count' and so you're always passing zero in
38214 [probertm@no ] Unfortunately, no.  Still empty in the array output department.
38216 [dmartenson@m] ...

What is WSDL and is it useful? was: Re: [ANN] Ruby/Google
38215 [pete@mc re n] Phil Tomson asked

Rudy idiom for enumeranting parents of a node?
38220 [bcox@vi tu l] I need to enumerate the parentage chain of the nodes in a
38225 [pete@mc re n] I though that this one would be easy to answer until I realized that
+ 38228 [chr_news@gm ] def parents
+ 38235 [dblack@ca dl] I don't think that's such a hack.  Actually, until 1.6.6, the block
  38236 [decoux@mo lo] Well, I'll not say that the block was propagated.

[OT] Stop Using SOAP, Before It's Too Late
38234 [anany@ec .v ] It seems that our old "buddies" over at Microsoft and IBM want
38286 [erik@so id o] I would like to suggest to have a look at REST instead if you are looking for a
+ 38288 [curt@hi bs c] I quick glance at these has piqued my interest. Thanks for the references, I
| + 38290 [erik@so id o] BTW, I am interested in some sort of 'REST by example' document that uses Ruby
| + 38416 [paul@pr sc d] Interesting to stumble upon this while I was skimming the Ruby group!
|   + 38431 [james@ru yx ] <snip />
|   | 38439 [paul@pr sc d] Excellent question. There is room for discussion about what the "default
|   + 38481 [msergeant@st] Paul,
|     38569 [paul@pr sc d] Yes, I remember. The XML was ugly but it worked. ;)
+ 38291 [dsafari@xt a] Thanks for the links Erik. I never knew about a different paradigm attempting
+ 38347 [Vladimir.Doz] ehlo.

building Ruby for Windows
38237 [tobiasreif@p] What are the advantages of building (is this the same as 'compiling'?)
38247 [james@ru yx ] I used the installer for 1.6, but there's no 1.7 installer version

Barnes & Noble putting on the squeeze
38238 [dblack@ca dl] It looks to me like Barnes & Noble (at its actual stores) has cut down
38241 [pate@ey er a] Fortunately, this is something we can all do something about.  If you
+ 38242 [vmreyes@us i] The first time I heard about Ruby was two weeks ago, when I came across the
+ 38265 [ptkwt@sh ll ] A few weeks ago I was in Borders and they had the Pickaxe, Ruby in a
  + 38266 [dblack@ca dl] I guess Java has bought its way into permanent special treatment (Java
  + 38273 [james@ru yx ] Well, the B&N down the block from me has a sizable "southwest" section, but
  | 38276 [cbbrowne@ac ] What gets concentrated on varies a surprising amount; I've seen quite
  + 38279 [web2ed@ya oo] Powell's must be world famous, I hear about it once a month down here
  | 38329 [sean@ce so t] Out here in Los Angeles there's OPAMP, and there's another one in El Segundo
  | + 42002 [dlc-usenet@h] OpAmp is great.  Up here in the SIlly Valley, there *used to be*
  | + 42057 [mnorton@ot k] In the Orange County are, in Irvine, there's a technical book store
  + 38379 [rs@on it te ] Here's an eyewitness report of just how centrally controlled and weird

Freshmeat article about Ruby
38239 [anany@ec .v ] "The Scalability of Ruby" by Jack Herrington
+ 38277 [jack_d_herri] Thanks.  Just doing my bit to give Ruby some more exposure.  I have
| + 38281 [anany@ac di ] Jack,
| + 38285 [tobiasreif@p] In the first snippet: does the file get closed?
| | 38292 [tom.hurst@cl] Yes, when the garbage collector runs at exit (or after 8MB of memory's
| + 38478 [avi@be a4 co] Interesting.  I did some playing with precisely that a while back.  I
+ 38447 [vjoel@PA H. ] Ruby scales downward as well as upward ;)
  38457 [dblack@ca dl] And down... and down...
  38560 [mjones@tu e.] ruby -pe ''
  38561 [pbrannan@at ] ruby -pe0
  + 38562 [pate@ey er a] arrrgh!!! It's Ruby Golf!
  | 38564 [jack_d_herri] You know, if you alias ruby to 'r' you could remove three characters. ;-)
  + 38563 [ rik@kd .o g] #if Paul Brannan

Displaying gif or jpg files using Win32API?
38252 [mdavis@se ai] Has anyone successfully displayed a gif or jpg using Win32API?  Has
38284 [heesobpark@y] Here is one solution.
38366 [mdavis@se ai] This is a cool suggestion and it works great.  However, this opens a new

ring the alarm
38253 [tobiasreif@p] how do I cause the system's beep, portable or on Windows?
+ 38254 [dblack@ca dl] I think
| + 38256 [tobiasreif@p] no beep on my Windows :|
| | 38262 [stopm@at bi ] Being a fairly experienced Tcl hacker, I know Tk supplies a "bell" command
| | 38263 [armin@ap ro ] good luck,
| + 39152 [xlucid@us rs] Dredging my memory, I recall from days of yore that the Ascii
+ 38257 [james@ru yx ] James
| 38259 [tobiasreif@p] no beep (WinME)
| 38260 [dmartenson@m] ...
+ 38258 [tomas_brixi@] require 'Win32API'

button_configs in TkDialog
38261 [avanderhook@] Sorry if this has been asked before.  I've been all over the archives
38328 [Jean-Francoi] require 'tk'

perl with a ruby accent
38267 [mattmsykes@y] So I learned some ruby today.  Since I am coming from the perl world,

38269 [index@e- ai ] Набираются сотрудники на серьёзну? работу ? приличны? доходо?.

Silence warning
38270 [dcorbin@im e] /home/dcorbin/projects/homenet/tools/testall.rb:41: warning: already
+ 38271 [rich@in oe h] ARGV.clear
| 38294 [dcorbin@im e] Yes, that seems to work.  Thanks.
+ 38278 [sean@ch tt n] ARGV is a global variable that is prepopulated for you with the
  + 38283 [jeremy@ch os] I often have cause to do that when writing Perl, because Perl has
  + 38293 [dcorbin@im e] One of the modules I'm using has an END block that uses ARGV.  The only
  | 38316 [sean@ch tt n] Can you post the code snippet in question?
  + 38305 [jim@fr ez .o] Hmm. I commonly extract arguments from ARGV using ARGV.shift.
    38313 [michael_s_ca] Isn't [the thought of being able to modify] ARGV counter to the idea constants
    38314 [rich@in oe h] Constants point to an object.  The object that a Constant points to

statements &  expressions( was RE: not vs !, and vs && )
38272 [james@ru yx ] OK.  I guess then that if two things are called synonyms, I expect that
38282 [decoux@mo lo] no, with 1.7.2
38298 [mwg@fl ff .i] irb(main):001:0> class Z ; self ; end
38299 [decoux@mo lo] 1.6.7 give an error when you try to assign the return value of a void
38302 [mwg@fl ff .i] Thank you for the explanations and examples.

ruby-run in httpd.conf : WAS (Re: Switching from PHP to Ruby - Comments Please)
38274 [jim@fr ez .o] Ok, just a few more questions still.
38303 [jim@fr ez .o] On a related note, after setting this all up and testing it,
38315 [sean@ch tt n] Nope.  The ruby interpreter is embedded inside of the httpd process

RCR: key value mapping for sprintf/%
38287 [gnhurst@hu s] I was on irc at irc.openprojects.net in #ruby-lang
+ 38295 [C.Teubner@t-] Wow, what a cool idea.
| 38742 [gnhurst@hu s] I don't like complaints ;-)
+ 38297 [nobu.nokada@] Not only in the order.

inspect object attributes
38307 [gmosx@so tl ] i need some help with finding attributes of an object
+ 38309 [armin@ap ro ] Play with sth. like this
+ 38310 [home@cl bs o] I believe
  38510 [gmosx@so tl ] I cant believe i didnt see this in my docs, I 'll chek it out. thanks for

Reverse hash lookup?
38317 [stopm@at bi ] Is there any way to specify a value and hash, and get the key corresponding
+ 38319 [dblack@ca dl] h = { 1,2,3,4 }
+ 38320 [tom.hurst@cl] Create a class that delegates to Hash for the most part, but for []=
+ 38321 [martindemell] How would this work in the case of more than one key having the same value?
  38323 [dblack@ca dl] Hash#index seems to follow the default order of the keys (as returned by

ruby-dev summary 16750-1680
38325 [ttate@kt ja ] I present you a summary of activity on the ruby-dev mailing list.

strange behavior for a subclass
38326 [mattmsykes@y] #!/usr/local/bin/ruby
38327 [matz@ru y- a] it should be super().  Forget your Smalltalk (or Objective-C)

mime type
38331 [tobiasreif@p] puts "content-type: text/plain\n"
+ 38332 [chris@da kr ] because you need atleast one blank line between the headers [which
| + 38337 [dblack@ca dl] Actually it's a Ruby subtlety, in this case :-)  Tobi knows about the
| | + 38341 [chris@da kr ] Problem of reading the question too fast :)
| | + 38342 [tobiasreif@p] thx David and Chris
| + 38372 [ms@ia ta e. ] "I was told once..." that to be excruciatingly correct you are supposed
|   38378 [jason@jv eg ] HTTP/1.1 defines the sequence CR LF as the end-of-line marker for all
+ 38333 [mps@di co sy] Because according to the protocol, you must have a blank line following
| + 38336 [tobiasreif@p] but unless self.confused
| | 38340 [chris@da kr ] Not sure, but the other pots indicate that puts places a \n on the end only
| + 38344 [hgs@dm .a .u] Also, according to RFC 2045
|   38404 [chris@cm -e ] I've never had a problem with "Content-type", for what it's worth.
+ 38334 [dblack@ca dl] Writes the given objects to ios as with IO#print. Writes a record
+ 38335 [tsiivola@cc ] Because puts appends a newline to the line only if one does not already
+ 38376 [sean@ch tt n] r = Apache.request

Compiling Ruby on Mac OS X
38338 [alwyn@al yn ] I've downloaded the latest Stable Snapshot and tried building it. It
+ 38345 [jim@fr ez .o] I got this error, but only after installing the bash shell.
| 38348 [alwyn@al yn ] I've never installed 'bash', and I always run tsch, so that can't be it.
| 38349 [gehlker@fa t] This may not be the problem, but don't let Stuffit Expander unarchive your
| + 38351 [jim@fr ez .o] Nope. I always extract with tar xzvf.
| + 38357 [alwyn@al yn ] I used Scott Anguish's excellent 'OpenUp' in this case.
| + 38360 [alwyn@al yn ] Problem now solved, thanks.
|   38400 [nobu.nokada@] It sounds complier or headers aren't installed correctly.
|   + 38408 [gehlker@fa t] On 4/15/02 6:09 PM, "nobu.nokada@softhome.net" <nobu.nokada@softhome.net>
|   + 38417 [alwyn@al yn ] Well, what I think may have happened is that when I installed Fink, the
|     38418 [nobu.nokada@] I don't know Fink, <http://fink.sourceforge.net/index.php>?
|     38421 [alwyn@al yn ] That is correct. You are well informed. :-)
|     38422 [jim@fr ez .o] I installed it first from the sources and it installed just fine.
+ 38352 [guzmann@er l] I installed Ruby successfully a couple of weeks ago and it runs fine.
  + 38359 [alwyn@al yn ] Interesting. So it can be done.
  + 38361 [jim@fr ez .o] I believe I have the latest version of the Developer Toolkit.
    38370 [alwyn@al yn ] No, the Developer Tools will not be updated via the Software Update
    38377 [jim@fr ez .o] Thanks for the info.

Ruby on Psion Series 5
38339 [neil@se ti e] I've posted about this before, as have other people.
38343 [chris@da kr ] By the looks of things the Debian/ARM I run on my psion5mx is testing,
38451 [mmaciaszek@g] How about Ruby for PalmOS? ;))
38488 [pgregory@aq ] Yes Please!! :-)

C++ Exceptions and Ruby's catch/throw
38362 [pbrannan@at ] Because Ruby exceptions are implemented using longjmp, it is not safe to
38398 [matz@ru y- a] rb_jump_tag(state);