89969-90547 subjects 90364-90926

mysql-ruby troubles
90140 [preisa@sb x.] When installing mysql-ruby-2.5.4 on Mandrake 9.2.
90142 [nobu.nokada@] Does that Mysql package contain headers and libraries?  Aren't
90144 [preisa@sb x.] MySQL-4.0.11a-5mdk.rmp
+ 90145 [andre@di ir ] You'll probably need the `libmysql-devel' package.
+ 90146 [nobu.nokada@] I guess what you need may be MySQL-devel-4.0.11a-5mdk.rpm or
  90148 [preisa@sb x.] $ rpm -ql MySQL MySQL-client MySQL-common | grep -e '\.h$' -e '\.so$'
  90150 [nobu.nokada@] Then, you haven't installed packages for development with

Ruby1.8.1 on FreeBSD
90157 [careck@ci cl] I've just installed my first FreeBSD 5.1 server and I'm wondering about
+ 90159 [slumos@ya oo] Hmm, FYI 5.2-RELEASE is out...
+ 90259 [roberto@RE O] [courtesy cc of this posting sent to cited author via email]

List of defined classes/modules
90161 [markjreed@ma] How can I programmatically determine what classes and modules
90164 [ggarramuno@a] Look up ObjectSpace in the Pickaxe book.
90166 [markjreed@ma] Ah, thank you very much!
+ 90173 [kgergely@ml ] Enumerable is not a class, but a module.
| 90180 [kgergely@ml ] Sorry, I misunderstood you. Forget it.
+ 90176 [george.marro] See http://www.ruby-talk.com/blade/71203

RCR discussion: safety considerations
90162 [ptkwt@ar cn ] I want to have a discussion on certain safety issues and then submit some
90172 [batsman.geo@] IMHO this handles a pretty benign issue, as methods in the current class
90232 [ptkwt@ar cn ] Perhaps you're right.  Being able to pick & choose what methods to include

calling ruby methods in C
90163 [boson@cy er ] I have a question about what is the best way to call Ruby methods which
90193 [boson@cy er ] Looks like this question was mostly answered by this post
90199 [nobu.nokada@] For an instance made in same function, direct call would be

data acquisition and control with Linux and Ruby
90165 [steven.jenki] Frank Mori Hess and I have just put the finishing touches on a first set

Calling blocks and Proc objects from C: let me guess?
90167 [im_not_givin] I plan on letting the user give me Proc objects that I will execute in

ruby/dl or win32API win32 help?
90170 [emmanuel.tou] ...
90239 [emmanuel.tou] ...

Alias question
90177 [GGarramuno@a] Is there any performance cost involved in using aliases?  If I am

[ANN] win32-event 0.1.0
90186 [djberge@qw s] I'm happy to announce the release of win32-event 0.1.0.  This is an

Threads & GC
90190 [usenet@an re] irb(main):038:0> Thread.start do

[OT] Re: Threads & GC
90192 [decoux@mo lo] because GC::start is run on line 42, and ruby don't like this
90195 [bob.news@gm ] "ts" <decoux@moulon.inra.fr> schrieb im Newsbeitrag

Ruby/ODBC, Oracle 9.2 and tables(pattern)
90197 [MartyMcL@co ] I want to restrict the result set returned from the tables([pattern])

CGIKit  --  MySQL
90198 [rubytuzdayz@] Are there any example(s)? Thanks.
90204 [m.wieding-dr] Have a look here

regex help
90200 [chrismo@cl b] '  /* comment */  String s = "***/";  '.gsub(re, "*\\")
+ 90206 [neoneye@ad l] possible.. but difficult.
| 90207 [chrismo@cl b] I thought it might be. I've fallen back and written a simple
| 90208 [zdennis@mk e] Chris,
| 90209 [chrismo@cl b] Yeup.
| 90210 [zdennis@mk e] Can this span multiple lines for a match?
| 90212 [chrismo@cl b] I don't think a string literal can span multiple lines in a .java source
| 90216 [pit@ca it in] 1) extract string literals
| 90285 [chrismo@cl b] Thanks for posting this -- very cool approach.
+ 90246 [bob.news@gm ] "Chris Morris" <chrismo@clabs.org> schrieb im Newsbeitrag
+ 90257 [ruby-talk@pc] there are better things, yes...
  90267 [bob.news@gm ] "Nikolai Weibull" <ruby-talk@pcppopper.org> schrieb im Newsbeitrag
  90270 [ruby-talk@pc] yes, but i seem to have made a mistake in copying it over for some
  90277 [bob.news@gm ] ...
  90298 [ruby-talk@pc] 'my' version avoids a lot of unnecessary backtracking under certain
  + 90300 [zdennis@mk e] I've got the book Nikolai, and tonight after the office closes my goal is to
  | 90304 [ruby-talk@pc] hehe, eh, thanks i suppose.  Its covered in Chapter 6.  It's a use of
  + 90338 [bob.news@gm ] "Nikolai Weibull" <ruby-talk@pcppopper.org> schrieb im Newsbeitrag

Help!  cannot recursive call
90213 [greg@br nd .] Having a problem with following code.  It will drop to the first directory
+ 90215 [harryo@qi so] Maybe I've misread the code, but shouldn't the marked line just be "chmodDir(ftp, dir)"?
| 90218 [harryo@qi so] Presumably, there should also be some kind of chmod() call in there, too.  Ie, something like ...
+ 90217 [markjreed@ma] That should be just chmodDir(ftp, dir), no "ftp.".  "ftp.chmodDir" tries

detecting Win95/Win98/WinME
90214 [vjoel@PA H. ] Some of the File#flock arguments do not work on Win95/Win98/WinME
+ 90220 [phasis@bc in] How about `ver` ?
| 90221 [vjoel@PA H. ] Thanks, that does the trick.
| 90231 [ptkwt@ar cn ] Hmmm... but that's not exactly cross-platform.
| 90235 [vjoel@PA H. ] I've tried it on ME, and Park Heesob tried it on Win2K, so now we know
| 90240 [nobu.nokada@] ver command has been available from DOS, 2.x at least AFAIK.
+ 90276 [djberg96@ho ] This is stolen from Moonwolf's "init.rb" file (part of the win32/winbase module).
  + 90321 [intc_ctor@ya] What about XP?  I suspect it falls somewhere in the WinNT/2000 case.
  | + 90330 [nobu.nokada@] It is NT 5.1, isn't it?
  | + 90331 [emmanuel.tou] AFAIK, XP is NT 5.1 (major == 5, minor == 1).
  + 90329 [vjoel@PA H. ] Thanks. I'll keep that in mind in case the `ver` solution doesn't work

rubyvm-talk (was: Re: ruby-dev summary 22435-22573)
90222 [sasada@na ik] [ Re: ruby-dev summary 22435-22573 ]
90247 [george.marro] See http://www.rubygarden.org/ruby?VirtualMachineOptions
90518 [ko1@na ik la] [ Re: rubyvm-talk (was: Re: ruby-dev summary 22435-22573) ]

threads, mutex, regexp and trouble
90225 [probertm@no ] I have a bit of a problem suing threads.  The program reads in a list of
90248 [bob.news@gm ] "Mark Probert" <probertm@nospam-acm.org> schrieb im Newsbeitrag
90909 [probertm@no ] Thank you very much for your input.  It is was the @cmds that was in fact
90929 [bob.news@gm ] "Mark Probert" <probertm@nospam-acm.org> schrieb im Newsbeitrag

90227 [ralph.mason@] I am playing with dynamicaly creating proxy ruby objects, but need more
+ 90229 [rpav@me hl .] these two things: MetaTags and Strongtyping.  Unfortunately the server
| 90230 [ralph.mason@] I will check out your stuff.  Thanks
| 90234 [rpav@me hl .] Yeah, I don't validate, but then there's no data that's really for
+ 90723 [rich@in oe h] Ralph,

Re: New to Python: my impression v. Perl/Ruby
90228 [ptkwt@ar cn ] It _is_ very cool.
+ 90251 [ggarramuno@a] No, he can't.   If you read his code carefully, he is using step() to count in
| 90322 [ptkwt@ar cn ] Yes, I know. I wasnt' trying to show a solution to his problem, just a
+ 90264 [Tim.Hunter@s] This one statement is what got me started on Ruby. After 20 years of
+ 90292 [ville.spamst] Though "sending messages" to int literals is a syntax error.
  + 90294 [zdennis@mk e] Ville,
  | 90332 [GGarramuno@a] Well, that isn't too confusing.  But one issue with looping using the
  | + 90333 [walker@le ha] Ever since I started using ruby, I don't believe I've actually looped based on numbers for actual programming. Why should I, since there is usually a number of better ways to do so, especially when doing it the 'ruby way'.
  | | + 90368 [ggarramuno@a] for i in (0..i); something; end
  | | | + 90370 [sroberts@un ] Are you sure? Can't i be a RegEx? If not, the .. operator is a special
  | | | | 90388 [austin@ha os] Actually, only i matters for whether the result of i + 1 is a number.
  | | | + 90373 [djd15@po cw ] (-1).times do
  | | | | 90394 [GGarramuno@a] That is indeed interesting!   My idea that for loops were faster were
  | | | | + 90461 [flgr@cc n. e] Remember that the  for item in items  construct really is only an alias
  | | | | + 90677 [bg-rubytalk@] Overall, I think it's more Matz' philosophy that you shouldn't write
  | | | |   + 90678 [rove.monteux] Thats great stuff, Ben.
  | | | |   + 90745 [GGarramuno@a] Well, most natural to me would likely be something in Spanish as it is
  | | | |     90805 [surrender_it] I suppose that is 'home language' or 'native language'. Tongue should
  | | | |     + 90806 [gfb@to es ft] Actually, it is not an error. "Tongue" is quite acceptable replacement
  | | | |     + 90809 [hal9000@hy e] It is not actually an error. "Tongue" can mean "language"
  | | | + 90382 [gsinclair@so] a = 'a'
  | | | | 90386 [ahoward@fa t] that sounds like a meta-physical question gavin
  | | | + 90387 [austin@ha os] ('a'..'z').each { |i| ... }
  | | | + 90390 [jwkenne@at g] No, as a matter of fact, it doesn't.
  | | | + 90397 [joe@no ch rl] So, what you're saying is, you don't want to use Ruby's features because
  | | |   90399 [bob.news@gm ] "Joe Mason" <joe@notcharles.ca> schrieb im Newsbeitrag
  | | + 90389 [jwkenne@at g] Well, here is an example of "times" from a real program.  The point is
  | |   90429 [GGarramuno@a] Well, as a new user, that kind of constructs would scare me quite a
  | |   90438 [zdennis@mk e] GGaramuno,
  | + 90351 [zdennis@mk e] GGarramuno,
  + 90297 [sombDELETE@p] ...
  | 90301 [wmwilson01@h] That syntax is just so lovely...  It's completely apparent what's going on
  + 90302 [newsgroups@j] message news:du71xpue3rm.fsf@mozart.cc.tut.fi...
  + 90303 [markjreed@ma] It's not "cute", it's legible.  "10.times do" is *much* clearer
  | 90311 [linse428@st ] While that might be true of those languages, what do you think of the
  | 90315 [markjreed@ma] I think it complicates the elegance of the design; I'm a big believer in
  + 90365 [sera@fh an .] A lot of this has to do with how you conceptualize objects. In some

eRuby on Mac OS X
90233 [kevin_mcconn] I'm trying to get eRuby and mod_ruby running on OS X (Panther).
90242 [gfb@to es ft] Mac OS X 10.3.2 (Panther)
+ 90256 [kevin_mcconn] Thanks for the info.  Is there a reason you are using Apache 2 (as in,
| 90266 [gfb@to es ft] I was about to compile Apache anyway to include some specific options,
+ 90269 [kevin_mcconn] Just to follow up: getting a newer mod_ruby solved my problem.  Thanks again...

Ruby at FOSDEM + Rich's interview
90249 [raphael.baud] Rich Kilmer will be present at the next Free and Open Source
91067 [emiel@il fo ] I'm going, but just out of curiousity... is anyone else? :)
91167 [damphyr@fr e] Was about to, had the days booked and everything and then I found out my

ldap - openldap
90258 [rubytuzdayz@] To install ruby-ldap, I need an ldap server/sdk ...Where do I get the
90342 [sroberts@un ] I've never used ruby-ldap, but I've used the openldap sdk on windows.
90345 [Patrick.Benn] Actually the MS ldap api is part of windows (the platform sdk) already
90347 [sroberts@un ] The msdn docs suggested that the ldap api is part of the Active

deep clone
90261 [lists@za a. ] I need to produce deep copies of an object structure (the elements will
90279 [vjoel@PA H. ] All the datatypes you mention can be handled by Marshal.

Diff algorithm
90262 [lists@za a. ] Does anyone know if there's a Ruby-/Artistic-Licensed implementation of

[ANN] FXRuby-1.0.28 Now Available
90263 [lyle@kn lo y] All,

Ruby/ODBC, Oracle 9.2 and tables(pattern) function - how to
90275 [martymcl@co ] ...

ruby-dev summary 22574-22624
90280 [ksaito@ur nu] This is a summary of ruby-dev mailing list.

Numerical problems of mswin32 Ruby
90282 [jgoizueta@wa] I've been doing some comparisons between two Windows ports of Ruby
90288 [djberge@qw s] This thread, http://tinyurl.com/2x34f, leads me to believe that the

Ruby/ODBC, Oracle 9.2, table(pattern) function

DBI improvement
90287 [ferenc@en ar] I think all the DBI type classes (DBI::Timestamp etc.) should support
90289 [ahoward@fa t] how about special timestamps?  for example, postgresql supports
90367 [ferenc@en ar] And these can be DBI::Timestamp values? Well, then what is the result of

Socket hang (was recursive call problem)
90290 [greg@br nd .] Ok..Here's the new code...might be a bug in net/ftp or the socket code.  The
90335 [decoux@mo lo] ftp.list('.').each do |entry|
90826 [greg@br nd .] Thanks!  That worked.  One more questions though....

question about blocks
90291 [ferenc@en ar] How can I return a value from a block? "return" immediately returns from
+ 90293 [neoneye@ad l] How about this code?
| + 90295 [jgb3@em il b] By way of explanation, I believe the difference is this:  when the block
| + 90310 [boson@cy er ] $ ./a.rb
|   90312 [neoneye@ad l] Wierd.. is this a bug?  am I doing something wrong?
|   90313 [boson@cy er ] $ ruby -v
+ 90308 [nobu.nokada@] next value
  90369 [ferenc@en ar] Thanks, this is it. The documentation should be updated! :)

enable debugflag in module
90299 [neoneye@ad l] To ease unittesting I have made a #debug keyword, which enables
90314 [nobu.nokada@] Should be Module's instance method.
90346 [neoneye@ad l] ok

Proposal for programming language of the year
90309 [szegedy@t- n] learnt.
+ 90317 [Mark.Volkman] ...
| + 90318 [careck@ci cl] IMHO it doesn't even have to be a 'new' language. There are some 'old'
| | 90323 [sdate@ev re ] I have started on this already :-)
| | 90324 [joey@jo yg b] Why limit yourselves to using Squeak? Cincom Smalltalk (nee VisualWorks)
| | + 90325 [sdate@ev re ] Just taking baby steps ... learning it with kids and all :-)
| | + 90326 [careck@ci cl] Why exactly is using Squeak a limitation? Could you expand a little more
| |   + 90340 [joey@jo yg b] Maybe that was a bad choice of words. The last time I wanted to use
| |   + 90366 [avi@be a4 co] It is.  I don't really know what "limitations" Joey means, but here
| |     90406 [rasputnik@he] Thats the clincher for me - is VisualWorks windows only?
| |     + 90408 [joey@jo yg b] It runs on several platforms including Windows, Linux, WinCE and several
| |     + 90455 [avi@be a4 co] No, VW actually runs on lots of platforms - Windows, Mac, and various
| |       90459 [joey@jo yg b] That's correct on the WinCE support; it's still a preview. In the Fall 2003
| + 90320 [szegedy@t- n] Ruby's syntax resembles that of C, Perl and Python. This did not
| + 90328 [joe@no ch rl] Syntax isn't everything.  Scala has type inferencing, which is a pretty
|   90348 [tibbetts@ac ] Your mentioning Haskell reminded me that I tried to learn it a couple of years
|   + 90349 [jgb3@em il b] Wow, that was my experience in a nutshell, too.  I've tried several
|   | + 90350 [Mark.Volkman] ...
|   | + 90352 [szegedy@no p] I thought, all of you can already Haskell, since it was sometimes the
|   + 90400 [joe@no ch rl] I found it much easier than Lisp.  I have a hard time thinking in Lisp
+ 90339 [feldt@ce ch ] Sounds interesting. For people considering LotY I would like to propose
| + 90343 [martindemell] I've personally been considering OCaml - I'm impressed by the speed it
| + 90749 [GGarramuno@a] Erlang was also used to build one of the most popular non-professional
|   90751 [johnknight.c] what about arc? http://www.paulgraham.com
+ 90398 [wsdng@on in ] Does anybody know the Pragmatic Programmer's language of the year 2003?
| 90741 [invalid@se -] AFAIK, they couldn't agree on a single language, so some decided on Oz
+ 90465 [cpine@he lo ] Well, I don't think anyone has mentioned Icon yet, but it is a pretty cool
  90492 [tibbetts@ac ] Chris,

Parsing periods of time: Code and questions
90319 [ jupp@gm .d ] I am presently working on a new version of my feed aggregator
+ 90337 [bob.news@gm ] "Josef 'Jupp' SCHUGT" <jupp@gmx.de> schrieb im Newsbeitrag
+ 90344 [angus@qu va ] Only integers.
+ 90363 [sera@fh an .] All sounds really interesting and useful. One question: Are you sure

no timeslicing?
90353 [rasputnik@he] I decided its high time I tried to learn threads again,
+ 90357 [flgr@cc n. e] This might be related to the scheduler not doing any thread switches in
+ 90358 [pit@ca it in] Maybe Thread.pass can help you. It's also in the pickaxe.
| 90376 [rasputnik@he] Ack! - just my luck to confuse two completely different methods on
+ 90360 [bob.news@gm ] "Rasputin" <rasputnik@hellooperator.net> schrieb im Newsbeitrag

Modules as namespace
90354 [ gm@na el gr] module My; module Little; module Namespace;
90355 [hal9000@hy e] First of all, you can only do this when the modules already
+ 90356 [matz@ru y- a] No, parens are not required.  Ruby parser is smart enough to read your
| + 90361 [ahoward@fa t] really?  what am i missing?
| | 90362 [rpav@me hl .] Probably the fact A doesn't exist here.
| + 90391 [hal9000@hy e] Sorry to mislead. This is different from the case I was looking at
+ 90359 [bob.news@gm ] "Hal Fulton" <hal9000@hypermetrics.com> schrieb im Newsbeitrag
+ 90515 [ gm@na el gr] Thanks for the info, then perhaps a more flexible way to declare
  90541 [matz@ru y- a] What do you mean by "flexible way to declare namespaces"?
  + 90549 [ahoward@fa t] e p   e
  + 90578 [ gm@na el gr] instead of
    + 90582 [dblack@wo bl] You can do essentially that, as long as the rightmost one is the only
    + 90583 [bob.news@gm ] "George Moschovitis" <gm@navel.gr> schrieb im Newsbeitrag
      + 90692 [ gm@na el gr] wow, this is a cool idea! I forgot how ..flexible Ruby is ;-)
      + 90716 [ruby-talk@pc] heh, sweet...one can really tell Ruby is inspired by Lisp :-)
        90718 [surrender_it] nah, you can tell it fromn this