63841-64686 subjects 64279-65388

Re: Bug in dbd_mysql [fixed]
64070 [paul@sn ke n] The above changes have been made.  A few other changes have been

rubydb and emacs
64080 [wing@em lo e] I just started using rubydb under emacs and found that emacs doesn't
64179 [usenets@ny .] of using ruby and oracle 9i database.
64189 [B.Candler@po] Regards,

Ruby DB Connection Pooling (was Relative performance of Ruby templating systems)
64082 [egabriel@io ] "dbBalancer", not dbpool.  It is available at

irb idea:  return value history
64087 [nemo@he lo r] irb(main):001:0> 17+4
+ 64089 [nemo@he lo r] /num      -->  $return_values[num]
+ 64095 [dcarrera@ma ] I'd like something like this too.
+ 64097 [dblack@ca dl] I start lines with / a lot, when testing regexes.
+ 64099 [nobu.nokada@] Try conf.eval_history.
  64110 [nemo@he lo r] Of course!  I forgot regexes.  D'oh!
  64125 [gsinclair@so] Put it in your .irbrc file.

[ANN] plruby
64091 [decoux@mo lo] plruby 0.3.2 was released with 2 *experimentals* features

RAA raainstall-able flag
64092 [transami@tr ] does anyone else think it would be a good idea to add a flag to the packages
64105 [gsinclair@so] I don't see the point really.  You can easily try it and see whether a
+ 64113 [transami@tr ] thanks Gavin,
+ 64115 [ tom@u2 .c m] I wonder if having a flag in RAA would work as an encouragement to

DBI commit and rollback with postgesql DBD
64093 [transami@tr ] i was testing out transaction support with DBI against my postgresql DBD and
64111 [jweirich@on ] I have no problems using transaction in DBI and Postgresql.  I've
64116 [transami@tr ] thanks Jim. wow! 8-o  did you hack that out solely in repsonse to this email?
64121 [jweirich@on ] It just took a few minutes.
64143 [transami@tr ] only a few minutes? very skilled! do you code for a living?

assembling a string of characters?
64094 [meinrad.rech] how to create a string from variables containing numeric values of range
+ 64096 [eban@os ri .] % irb
+ 64098 [meinrad.rech] a = 32

[ANN] math-const  1.0.0
64102 [dcarrera@ma ] I just added a Math/const module to RAA.  It provides mathematical and
+ 64118 [hal9000@hy e] Congratulations on a first!
+ 64131 [steink@pi g.] I like this. Wouldn't it be nice to be able to write
  64134 [masa@ir is s] % irb -r quanty

Help overloading Fixnum#+
64104 [dcarrera@ma ] I'm trying to overload Fixnum#+, but I am getting what seems to be a
+ 64107 [nemo@he lo r] It looks like those were just other numbers being added; Ruby has many
+ 64128 [B.Candler@po] Try

'static' variables in a proc?
64119 [ptkwt@sh ll ] Is there a way to get a variable in a proc that maintains it's value
+ 64120 [transami@tr ] a = 1
| + 64123 [ptkwt@sh ll ] Right, I know that would work, but it's not exactly what I'm looking for
| | + 64130 [B.Candler@po] If it's the same Proc object then it will have no idea that it is being
| | + 64144 [transami@tr ] figured as much, but i thought it was worth pointing out in relation to the
| + 64126 [ptkwt@sh ll ] [the news server seems to be having trouble, so hofefully this one will
|   64132 [B.Candler@po] Generating functions for fun and profit :-)
+ 64122 [daniel@ze ed] There's a couple of ways to do it, you could just define 'a'

Threading problem
64124 [ ek@na el gr] I've been occasionally stumbled upon a strange problem with Ruby's
+ 64137 [decoux@mo lo] Well, the problem is that  you don't give enough information.
+ 64192 [bob.news@gm ] "Elias Karakoulakis" <ek@navel.gr> schrieb im Newsbeitrag
  64210 [ahoward@fs .] that's a good suggestion, the return value of try_lock has confused me before.

Executing interactive system commands
64127 [vitaly@si or] I need to execute SCP (secure copy) command from Ruby script on Windows.
+ 64171 [vitaly@si or] user@host's password:_
| + 64172 [nobu.nokada@] You may want to detach CTTY?
| + 64176 [mwilson13@co] Expect is made to do what you want. There is a Windows version,
+ 64174 [scottbrooks@] A better solution would be to use a public/private key to do

[ANN] Ruby-GNOME2-0.3.0
64135 [mutoh@hi hw ] Ruby-GNOME2-0.3.0 released.
+ 64149 [knu@iD em ns] FYI, they build beautifully without a problem on FreeBSD.  I updated
| 64193 [mutoh@hi hw ] Thank you!
+ 64159 [feldt@ce ch ] Can it be built on windows (with cygwin and/or mingw32)?
| 64194 [mutoh@hi hw ] Unfortunately, Win32 has not supported yet.
| + 64195 [feldt@ce ch ] I don't really in this context. There is GTK+ 2.2.0 for windows though
| | 64197 [mutoh@hi hw ] Sure. This is an issue of Ruby-GNOME2 itself.
| + 64217 [mikkelfj-ant] GTK is poorly supported under Windows. However, Dia has managed to implement
|   + 64310 [CRIBBSJ@oa w] While that may have been fairly accurate for GTK1.x, GTK2 has much better
|   | 64325 [mikkelfj-ant] runtime
|   + 64456 [davinciSINSP] Win support has been improved radically with Gtk2, same that Linux
+ 64175 [waisun.chia@] Congratulations!

Ruby Qt3 bindings
64136 [gour@ma l. n] Any news regarding Ruby bindings for Qt3.x?

Installing from CVS
64140 [tim@ba es id] Ugh.
64148 [knu@iD em ns] If you mean the setup.rb/install.rb, Minero Aoki-san is.  The contact
64185 [aamine@lo er] Thank you.  I have not know this thread...

ruby-dev summary 19457-19539
64146 [ksaito@ur nu] This is a weekly summary of ruby-dev mailing list.

How to find an install directory.
64147 [dcarrera@ma ] require "mod"
64150 [jason@jv eg ] f = __FILE__
64166 [gsinclair@so] my_dir = File.dirname(__FILE__)
64167 [jason@jv eg ] Perhaps instead of "There's More Than One Way To Do It", Ruby should

Operator reordering, good idea? (was Re: ruby-dev summary 19457-19539)
64151 [sroberts@un ] I think anybody who has programmed with ruby for more than a few hours has
64173 [akr@m1 n. rg] Just String#==, Array#== and Hash#==.
64283 [sroberts@un ] I don't understand, doesn't
64285 [akr@m1 n. rg] For example, "a" + "b" != "b" + "a".
+ 64324 [sroberts@un ] It's a fundamental property of the language. When you understand that
| 64348 [akr@m1 n. rg] Yes.  So equality for == must be implemented by method call.  Equality
+ 64417 [dblack@ca dl] Exception.new("a") == "a"
  64420 [akr@m1 n. rg] Since Exception.new("a") == "a" never returns true, your problem is
  64422 [dblack@ca dl] Whoops, I must have misunderstood the thread completely.

How to build a ruby app that I can ship to somebody who doesn't have ruby?
64152 [sroberts@un ] Is there a way to bind a set of ruby source files into a self-running
+ 64153 [dcarrera@ma ] For which OS?
+ 64154 [michael_s_ca] #! doesn't obviate the need for the interpreter, it just tells the OS

I have method call, but I get warning: ... interpreted as method call!
64155 [sroberts@un ] ./vcard.rb:246: warning: each_with (...) interpreted as method call
64156 [hal9000@hy e] call!
64157 [sroberts@un ] That was it, thanks Hal.

Is there a "continue" for while loops?
64160 [dcarrera@ma ] Is there any way I can go to the next iteration of a loop?  Something
+ 64161 [jason@jv eg ] Jumps to the point immediately before the evaluation of a loop's
+ 64162 [cyclists@nc ] next

Trapping Access/Modification of Objects
64164 [jason@jv eg ] After a long delay, I'm now starting to work on the RubyGOODS library
64169 [transami@tr ] i have too many for my own good :-)
64196 [jason@jv eg ] Thanks for the input.  AspectR provides functionality for wrapping
64198 [matz@ru y- a] I guess so.  I prefer general hooking framework.
64297 [jason@jv eg ] By this do you mean that the RCR should
64304 [matz@ru y- a] Either 2 or 3; I prefer 2 if possible.
64336 [chadfowler@c] Jason had mentioned that AspectR fills part of this need.
64362 [matz@ru y- a] I like aspects, but I prefer CLOS-like method combination.  I wish I
64400 [feldt@ce ch ] No problem for me. I haven't touched it for long though so not sure if any
64445 [matz@ru y- a] How should it be done?  Are you willing to work on it, or do you want
64637 [feldt@ce ch ] Unfortunately I will not be able to work on this the coming 5-6 weeks.
64639 [matz@ru y- a] I think I can wait.  By the way, is it OK for you to rename it?
64682 [feldt@ce ch ] Aspect is kind of general but maybe its ok. I dunno, you can decide and

embed applicaiton INSIDE ruby
64168 [hhcNYC@ya oo] Call me wierd. I just wonder how could one embed the other application
+ 64199 [lyle@us rs s] You create a Ruby extension module for it. Usually, when people talk
+ 64211 [probertm@NO ] hhcNYC@yahoo.com (hhcNYC) did say ...
  64368 [hhcNYC@ya oo] Thanks to you all!

fcgi and cgi-lib.rb
64170 [ahoward@fs .] anyone out there using cgi-lib.rb and fcgi together?  it looks like something

64177 [transami@tr ] no IPv6 libraries in the RAA?
+ 64180 [matt@li ke .] My understanding is that Ruby supports IPv6 natively if the platform
| 64222 [drbrain@se m] Yep, with the usualy dual stack gotchas, for example if you don't have
+ 64181 [ahoward@fs .] /usr/local/lib/ruby/1.8 > ruby -e "puts (require 'ipaddr')"

[ANN] MIME::Types 1.005
64184 [austin@ha os] additional changes have been made to make the data cleaner. Certain
64214 [matt@li ke .] This looks cool, though without knowing what Perl's MIME::Types does,

[ANN] ruby syntax file for GNU Source-highlight
64191 [nnakamur@mx ] Dear, World Wide Ruby Users!
64272 [cyclists@nc ] Thanks! Very nice!

Equivalent to Java's Float.MAX_VALUE?
64200 [flifson@cs u] Does Ruby have an equivalent to Java's Float.MIN_VALUE and
+ 64201 [bob.news@gm ] Float INFINITY = 1.0 / 0.0
+ 64202 [matz@ru y- a] matz.
| 64203 [flifson@cs u] I assume there will be a corresponding Float::MIN?
| 64205 [matz@ru y- a] matz.
+ 64204 [nobu.nokada@] That's Bignum.
  64209 [bob.news@gm ] <nobu.nokada@softhome.net> schrieb im Newsbeitrag

power point handling
64207 [lafor@ar ak ] it can sound "bizarre" but, it's possible to modify/create powerpoint
+ 64208 [mgushee@ha e] The only alternative I know of (and this assumes Office 2k or later) is to
+ 64220 [mikkelfj-ant] I don't much about PowerPoint or it's object model, but I'm positively sure

[ANN] DataVision 0.7.0 released
64212 [ jimm@io co ] [DataVision is written in Java. I've just added Ruby as the scripting
64275 [botp@de mo t] very cool and very useful.
64517 [ jimm@io co ] Thank you.

one lonely fcgi user
64213 [ahoward@fs .] ruby'ists-
64221 [  amk@am .c ] My project group kept running into mysterious hangs with Apache's
64223 [ahoward@fs .] can you elaborate?  how were you managing signals?
64226 [  amk@am .c ] We don't use signals at all (they're evil!).  The symptom was that all of
64231 [ahoward@fs .] it looks like the fcgi_pm forwards TERM on to all it's children, so unless the

cgi and 1.8
64216 [ahoward@fs .] ruby'ists-
+ 64224 [transami@tr ] cgi.params['k']
| 64230 [ahoward@fs .] thanks!
+ 64225 [fg@si me om ] try cgi.params['k'], which returns an array.

everything is an object... right?
64233 [nemo@he lo r] So everything in Ruby is an object, right?  Classes are objects, etc.  And
+ 64234 [pbrannan@at ] I think it would be more correct to say that all data in Ruby are
+ 64235 [nemo@he lo r] I'm not really sure why I didn't just use irb in the first place... sorry.

Ruby1.7.3 win [glut32.dll missing?]
64238 [meinrad.rech] I installed ruby1.7.3 using the windows installer provided at
64240 [mikkelfj-ant] By coincidence yes - I just tried this a few days ago on 1.7.3 and got the
+ 64243 [lyle@us rs s] A google search for "glut32.dll" yields the answer ;)
| 64263 [mikkelfj-ant] the
+ 64244 [meinrad.rech] WOW GLFW is cool. who wants to wrap it for RUBY? :)

web graphing for windows/ruby?
64239 [chrismo@cl b] Any recommendations for generating simple graphs for web pages from a Ruby
64264 [mikkelfj-ant] Not sure what you mean by graphs, but DOT is an excellent tool for graph
64302 [chrismo@cl b] Ruby
64308 [mikkelfj-ant] Ah - I see - I don't know about Ruby, but I just stumpled over the following

FAQ for comp.lang.ruby
64241 [hal9000@me c] RUBY NEWSGROUP FAQ -- Welcome to comp.lang.ruby!  (Revised 2003-1-7)
64281 [botp@de mo t] I think this there is no more problem ? :-)

Source code for "Ruby Developer's Guide"
64242 [harryo@qi so] I'm sitting here at work, cursing myself for
+ 64245 [uu9r@rz un -] The sources are available from www.syngress.com.
| 64246 [harryo@qi so] I created an account ages ago, but don't have the
+ 64254 [gemerson@ev ] This seems like a good opportunity to plug the IRC channel, #ruby-lang on

turning modules into classes
64247 [nemo@he lo r] Did you ever want to instantiate a module?
64251 [dblack@ca dl] No :-)
64258 [nemo@he lo r] You could do something similar more concisely.
+ 64261 [hal9000@hy e] it
| 64265 [nemo@he lo r] to some extent, no?
+ 64268 [dblack@ca dl] However....  don't forget that Module is a Class object (even though
  64271 [nemo@he lo r] However....  don't forget that Module is a Class object (even though

Trying to build Amazon Web Service class using SOAP4R
64248 [ben@bl hr co] I'm working on a class to provide easy access to the Amazon Web Service
64249 [ben@bl hr co] Sorry, it appears I had the address wrong for that WSDL, its actually
64252 [bruce@co ed ] Bruce R. Williams :: [iusris/#ruby-lang] :: http://www.codedbliss.com

no singleton methods for Fixnums?
64250 [nemo@he lo r] I ran across the following and was just curious as to why this doesn't work?
64253 [bruce@co ed ] As I understand it, the problem is that due to speed/convenience concerns,

Question about page 244 of the pickaxe...
64255 [nemo@he lo r] I have a question about Figure 19.2, page 244 in Programming Ruby.
+ 64259 [harryo@qi so] I'll answer the important part :-) ...
+ 64274 [dblack@ca dl] Every object's "klass" pointer will point to its singleton class, if
  64298 [nemo@he lo r] Every object's "klass" pointer will point to its singleton class, if
  + 64299 [nemo@he lo r] I really like replying to myself these days...
  + 64307 [dblack@ca dl] But the superclass of Guitar is Object, not Class.  Guitar is an
    64341 [nemo@he lo r] example.
    64346 [decoux@mo lo] Well, and ruby is handling classes differently from other objects.

FOX-based Windows GUIs
64256 [harryo@qi so] Is there a way to make FOX/Ruby applications look
+ 64260 [hal9000@hy e] I think you can use a .rbw extension instead of
+ 64262 [lyle@us rs s] (This is not FOX-specific.)
  64273 [jason@pe sa ] Just wanted to provide a word of warning though.
  64384 [harryo@zi .c] Thanks for the warning.  This isn't an issue in my particular program, but

Sending complexType using SOAP4R
64266 [ben@bl hr co] After further investigation, I was able to use the WSDLDriverFactory to
64441 [nahi@ke na t] Oops.  I found that I didn't commit soap4r/sample/Amazon/* files before
64499 [ben@bl hr co] So I just fill in the details on these classes and send it along as part
64580 [nahi@mw .b g] Yes.  And you don't have to change the class definitions.

grabbing an included module's proxy class
64267 [nemo@he lo r] x = 'foo'
64269 [dblack@ca dl] class << Mod; self; end
64270 [nemo@he lo r] class << Mod; self; end

Doc question and Mount question
64276 [daniel@ze ed] I have two unrelated questions.
64277 [sroberts@un ] rdoc!

inheriting from base classes
64278 [dblack@ca dl] Gavin Sinclair and I have been involved in an interesting exchange
+ 64280 [pete@mc re n] The normal test for subclassing is to see if the question "Is a Y is a
| 64315 [dblack@ca dl] I have a Ruby-specific question about this, which I ask with a bit of
| + 64318 [pbrannan@at ] The biggest disadvantage I see is that you are exposing many more
| | 64319 [pbrannan@at ] Let me elaborate on this.  The behavior of Array does not change, but
| + 64344 [gsinclair@so] If I were writing code that needed to perform all those operations on
| | 64351 [dblack@ca dl] They don't; If they're just require'ing a library, and using the
| | 64355 [gsinclair@so] The fact that Ruby allows such runtime shenanigans doesn't mean that
| | 64389 [dblack@ca dl] But not always.  Class methods are a good example of a very common
| | + 64393 [rich@in oe h] I don't know.  I am nut'in out a production Ruby application, and I
| | + 64448 [gsinclair@so] There's a difference between a theoretical mystery and a practical
| |   64521 [kentda@st d.] No such thing as too many methods, just a thing as too many accessible
| + 64434 [pete@mc re n] Agreed. In Smalltalk, some developers do talk about inheritance purely
+ 64282 [chrismo@cl b] Seems in practice, whenever I have a need to do something with a String,
+ 64288 [ptkwt@sh ll ] I'm more likely to think that ClassRoster 'has-a' Array then to think that
| + 64293 [bob.news@gm ] "Phil Tomson" <ptkwt@shell1.aracnet.com> schrieb im Newsbeitrag
| + 64295 [dblack@ca dl] Sorry for using an opaque example.  What I meant by AssignmentValues
+ 64291 [daniel@ze ed] I subclass whenever I'm going to need the functionality provided by the base
+ 64313 [Tim.Hunter@s] The ImageList class in RMagick is a subclass of Array. An ImageList is
| 64321 [pbrannan@at ] class ImageList
| + 64333 [dblack@ca dl] My answer to that is that it dramatically increases the amount of code
| + 64409 [Tim.Hunter@s] I don't see the benefit of this approach over subclassing.
+ 64317 [batsman.geo@] I think Rubys design favors aggregation over inheritance heavily. [I
+ 64335 [nemo@he lo r] My feeling was always that it was only OK to subclass a class if it would be
| + 64337 [michael_s_ca] I agree with this, and try to stick with it.  Inheriting because it
| + 64342 [dblack@ca dl] But a further question is: how fundamental is the inheritance hierarchy
|   + 64345 [michael_s_ca] Are you saying here that because it's easy to not do strict kind-of?
|   | 64347 [chadfowler@c] I wouldn't say this is an issue of saving typing (as in pushing keys on
|   | 64350 [gsinclair@so] In the last substantial project I did, using Ruby, I used inheritance,
|   + 64349 [nemo@he lo r] But a further question is: how fundamental is the inheritance hierarchy
|     64352 [dblack@ca dl] I'm not sure I understand that last point, but in any case,
|     64353 [dblack@ca dl] Whoops, didn't mean to sound like I was mocking your phrase :-)
|     64383 [nemo@he lo r] Whoops, didn't mean to sound like I was mocking your phrase :-)
+ 64532 [pbrannan@at ] [ruby-talk:21745]
  64708 [jd204@NS ih ] Sorry for being ignorant, but I'm confused.  What do you mean by
  + 64709 [michael_s_ca] I think he's joking.  By inheriting from a class, it becomes (by
  + 64716 [pbrannan@at ] class Base