95664-96238 subjects 95994-97895

Ruby in FreeBSD
95901 [sabymus@re i] ...

Re: ruby dbi installation issue
95902 [sabymus@re i] ...

About Ruby
95904 [sabymus@re i] ...
+ 95905 [NOSPAM@ke py] I think there are more than 10-15 people using Ruby in India.
| 95907 [dirk.einecke] bye
+ 95919 [bighead@us r] Hey
  95930 [rohitlodha@h] There are more than 30 Indians I know uses Ruby.

[newbie] regexp - match quotation mark
95908 [_ebuffer_@ho] inside a string. Actually, what I want is to extract the text between two
+ 95909 [walter@mw ew] if /"([^"]*)/ =~ 'This should be "simple", but I can\'t do it.'
+ 95912 [surrender_it] => /"([^"]+)/
  95914 [bob.news@gm ] "gabriele renzi" <surrender_it@remove.yahoo.it> schrieb im Newsbeitrag
  96103 [_ebuffer_@ho] very new to ruby and not really experienced with regular expressions in

Save to use const Regexp in several threads?
95917 [bob.news@gm ] out of curiosity: is it safe to define a global constant regular
95920 [nobu.nokada@] Yes if it is without `o' option or in recent version.
95924 [ahoward@fa t] __without__ the 'o' - i would have thought the compile once option would be
95937 [nobu.nokada@] No, regexp with o option will be evaluated at the written

Another RDoc suggestion
95927 [mdavis@se as] What you do think about changing the relationship between RDoc and the template?  I seems like having the template be a module that RDoc mixes in may provide simpler templates and offer the template more flexibility in generating output.  This could involve having RDoc build containers (possibly arrays) for each of the sections and then passing each container to a method in the template that returns a string containing the formatted HTML for that section.  It would nice to be able to view and alter the container before it is processed, this could be accomplished by calling a method and passing in the container just after the container is built.  I would actually prefer two methods for each section, one method that iterates over the content of the container and a second method that processes each element in the container.
95931 [dave@pr gp o] That's actually how it works now: the HTML generator builds a container

Cross Compiling Question
95928 [srubin@fs sy] I'm presently trying to get any decent scripting language to run on an

'net/pop' bug: username/pass containing %-sign
95933 [zoranlazarev] 'net/pop' library (POP3/APOP client) has a bug: Authentication fails
95976 [aamine@lo er] Thank you for your report.  Fixed now.

sysread for buffered IO (IOError)
95938 [Ara.T.Howard] i'm experimenting with using non-blocking io and sysread/write for me session
95954 [akr@m1 n. rg] select should not be a problem.

[ANN] Ruby-rdf
95941 [dom@si na co] ...

Question on generic lib names (was Re: [ANN] Ruby-rdf)
95944 [jamesUNDERBA] There is also a Ruby-rdf project at
95962 [dave@pr gp o] It seems to me that its rdf first, and a particular implementation
95968 [jamesUNDERBA] That makes sense.  Each section narrows the focus.

[newbie] linked hash
95945 [yvon.thorava] Map fieldsHash = new LinkedHashMap();
96024 [bob.news@gm ] "Yvon Thoraval" <yvon.thoravalNO-SPAM@free.fr> schrieb im Newsbeitrag
96032 [yvon.thorava] no ordered only as it is entered, in the mean time i've found a solution
+ 96034 [bob.news@gm ] ...
| 96044 [yvon.thorava] ok, tanxs for your help
+ 96167 [discussionru] Making a subclass of a standard class like Hash can be dangerous,
  96203 [yvon.thorava] fine ?;=)  tanxs... i don't use "delete" today but...

[PATCH] rubyzip on extra bytes.
95947 [nobu.nokada@] I found rubyzip 0.5.4 fails on a zip file with with extra
95949 [thomas@Fi st] Thank you very much. I'm happily accepting your patch!
95950 [nobu.nokada@] Well, yes.  It was better to send to you directly?

SV: Need some advice on PickAxe II
95948 [donv@cr sa e] Yes, definately.

problem in making tk work with ruby 1.8.1
95958 [elango@sw ss] i installed ruby-1.8.1 on edura and ruby  works
95963 [ahoward@fa t] when you built ruby it did not find the tk/tcl headers or libraries.  you need
96011 [nick.faiz@ce] I've had the same issue also.

Formatting dates and counting words
95959 [robo@ma s. o] Just got started on making a real attempt in building a Ruby app, and got
95961 [surrender_it] I believe Time#strftime() is what you need
95970 [robo@ma s. o] Is there doc for that function? I looked it up in ruby-doc.org, it has at
+ 95972 [mreed@th re ] The strftime function probably isn't documented because it's not a Ruby thing.
+ 95973 [timsuth@ih g] Try the command
+ 95977 [jamesUNDERBA] The rdoc for this in ruby 1.9 is, I believe, accurate for 1.8 as well

Status of AOP in Ruby
95960 [markusjais@y] I am looking for some AOP Stuff in Ruby.
+ 95964 [feldt@ce ch ] AspectR was more of a hack to try it out; it's very small anyone can
+ 95975 [itsme213@ho ] ObjectTeams is an ambitious implementation of (a richer-than-usual model of)

mkfifo on windows
95965 [Ara.T.Howard] windoze types-
95971 [dooby@d1 .k ] yeah, whaddyawant ?                                       :>
96026 [bob.news@gm ] "daz" <dooby@d10.karoo.co.uk> schrieb im Newsbeitrag
96031 [djd15@po cw ] MSDN reference on the CreateNamedPipe function.
96033 [ahoward@fa t] this look promising.  i was under the impression thet fifo's were a posix
96364 [guslist@fr e] Any examples? I am always interested in new ways to do this type of

[ANN] session-2.1.6
95966 [Ara.T.Howard] - wrapped send_command in a Thread (send async) so output processing can

When You Hear The Heavy Accent & The Poor Phone Connection... HANG UP!!!  _____  Ahu502o5hDQIP
95967 [Victim_Of_Hy] When You Hear The Heavy Accent & The Poor Phone Connection... HANG UP!!

Re: OT: When You Hear The Heavy Accent & The Poor Phone Connection...
95969 [mailinglists] I think my english communication skills are good enough for
95974 [matt@te hn r] I resent that!

loading file to irb
95978 [robo@ma s. o] Say I've written a few classes in a .rb file, how do I load the classes to
+ 95979 [mailinglists] Starting irb and then type 'require "somethin.rb"'.
+ 95980 [nobu.nokada@] $ irb --help
| 95982 [robo@ma s. o] Thanks, didn't really wanna ask such newbie questions, still getting grips
+ 95983 [surrender_it] require 'filename' :)

Dormant projects (was Status of AOP in Ruby)
95981 [xlucid@us rs] RAA & RubyForge initiatives going dormant is not uncommon.
+ 96166 [tom@in oe he] RubyForge doesn't at the moment.
| 96169 [neoneye@ad l] Maybe one could calculate a 'dormant' value, so that visitors easily
| 96209 [martindemell] Something I suggested a package manager include is separate "last
| 96237 [xlucid@us rs] Sounds good to me.
+ 96189 [hatespyware@] No offense, but I think it is a pretty awful idea.  Under what
  96236 [xlucid@us rs] Most circumstances, imo.
  96262 [kero@ch ll .] What is the same, had better keep the same name to prevent confusion.
  96276 [rasputnik@he] Hear, hear. I can think of a dozen ruby packages I use on a regular
  96293 [surrender_it] that's what the 'like' is for , avoiding heresy ;)

deciding between ruby and python
95984 [ik@de on is ] I'm trying to decide to learn either python or ruby. Are there fundamental
+ 95985 [flgr@cc n. e] That's the fundamental error you're making -- Just learn both. It's
+ 95986 [lthiryIdontw] No in a theoric point of view (since the last versions of python),
+ 95987 [lists@za a. ] Maybe :-)
+ 95988 [neoneye@ad l] Ruby aims to be as intuitive to read as possible, while still maintaining
+ 95991 [jamesUNDERBA] James
+ 95998 [mailinglists] No, there aren't any fundamental difference. From an educational point
| + 96062 [ik@de on is ] fundamental
| | + 96081 [mailinglists] No i don't think that python has such a top priority. It came from a
| | | 96089 [ptkwt@ar cn ] TCL the most advanced scripting language and TK 'technically the best GUI
| | | 96099 [mailinglists] No other language has complete separate multiple interpreters in the
| | | + 96122 [surrender_it] And tcl has a lovely vfs implementation in the core :)
| | | | 96148 [ptkwt@ar cn ] does vfs == "virtual file system" ?  Meaning that you can access a URL
| | | | 96160 [surrender_it] yes
| | | + 96178 [michael_s_ca] What is it about a "scripting" language that obviates their need for
| | + 96082 [cyclists@nc ] Ruby-ists, IMO, are generally reluctant to make qualitative statements
| |   96095 [xlucid@us rs] Yes - it's a lot like saying "I'm looking for a large quadruped.  Is a
| |   96096 [ahoward@fa t] definedly a cow.  horse burgers are terrible.
| |   96097 [daniels@pr n] What? You want to ride the quadruped?
| |   96098 [hal9000@hy e] And thus was C++ born.
| |   96118 [andrew@wa ro] For those developers capable enough to use it, it is peerless. For the less
| + 96135 [ccos@al ha i] yes either that or you could just learn Oz and kill three birds with
+ 96006 [klausm0762@y] Ruby has a lot of Smalltalk ideas in it and implements OO very nicely
| 96008 [seth@cq .c m] I don't think I would say that python has a lisp slant.  In fact, ruby has more functional programming syntax (e.g. list processing) than python.  Python is a procedural language.
| + 96010 [surrender_it] I'd say that python has a Scheme slant, cause functions are in the
| | 96012 [cc1@ce .w st] I would say feature wise they are very similar, from a theoretical
| + 96317 [ville@sp mm ] It's amazing to see how clueless people here can be, and still offer
|   96319 [hal9000@hy e] I'm prepared to admit you are right, since I don't know Python.
|   + 96322 [Stephan.Kaem] Right, it's doesn't seem to be either. What I immediately thought was
|   + 96334 [ville@sp mm ] That's a commendable attitude.
|     96336 [hal9000@hy e] I'd have thought t.split.join(' ') would better exemplify
|     96339 [ville@sp mm ] ' '.join(sequence) tends to get some bad rep, but I think it's more OO
|     96340 [hal9000@hy e] I'd have to disagree. join, since it produces a string, obviously
|     + 96345 [ville@sp mm ] And hence, the sequence knows about strings. The Ruby approach is
|     | + 96348 [surrender_it] I *believe* he talks about accessor methods.
|     | + 96352 [g_ogata@op u] It's not String-specific; it calls the elements' #to_s methods, and
|     | | 96353 [surrender_it] I believe this is just like print.
|     | + 96377 [discord@ma .] I get the feeling I may be feeding a troll, but some of your comments
|     |   + 96387 [flori@ni e. ] class Proc
|     |   | 96400 [swap@gm .n t] My arity preserving solution to this problem was
|     |   | 96421 [matt@te hn r] Just to totally confuse the ongoing discussion, I'd like to throw in my
|     |   + 96390 [ville@sp mm ] It does make a difference, because sequences (or 'iterables') are a
|     |     + 96391 [decoux@mo lo] and security, this is more, more important ... (at least for me)
|     |     + 96393 [ahoward@fa t] i think alan turing would disagree.  strings are THE fundemental concept
|     |     + 96427 [nathaniel@ta] Hmmm... you're missing the two things that completely turned me off of
|     |       96429 [alex_verk@ma] I was faced with this decision just about a month ago. What I wanted was
|     + 96368 [jim@we ri hh] I think Ville means that making join a method on a list means that lists
|       96373 [ville@sp mm ] I mostly meant that the sequence has a special case for the list of
|       96446 [aredridel@nb] class Socket
|       + 96456 [discord@ma .] <snip example>
|       + 96467 [ville@sp mm ] Indeed it is. We do the same thing in Python (just define __str__() in
|         + 96486 [aredridel@nb] Hm. In this case, defining (locally!) the Socket#to_str method seems to
|         + 96493 [billk@ct .c ] A little foolishly, probably, I feel somewhat impelled to point
|           96495 [jamesUNDERBA] I've been enjoying this thread, as it teeters on trolling but yet is
|           96503 [ville@sp mm ] Alright, let's assume that we have a function f that should always
|           96508 [djd15@po cw ] As you say, this whole thread has been done many times before.
|           + 96509 [guslist@fr e] I had the exact opposite understanding of the meaning of #to_s and
|           | 96511 [djd15@po cw ] Ah, yes. Upon going back and reading I had it backwards. Serves me right for
|           | 96515 [dblack@wo bl] I think there's a difference between an object acting like a string
|           | 96518 [matz@ru y- a] Pre 1.0 Ruby was very tolerant about types: 1 + "2" gave 3, and
|           | 96523 [guslist@fr e] Just a as we are on the subject. Should Ojbect#to_s return self.to_str
|           | 96552 [matz@ru y- a] I encourage defining "to_str" along with string methods, i.e. by
|           | 96561 [ramen@la ki ] I'd really like to understand what you mean, here. In your first sentence,
|           | 96562 [gsinclair@so] I won't speak on Matz's behalf, but it's important to remember that
|           + 96512 [ville@sp mm ] #each is just a for loop (at least the #each usages I've seen
|           | 96538 [gsinclair@so] #each is not just a for loop.  #each is the embodiment of Ruby's
|           | 96544 [surrender_it] As of current python, you have equivalent mechanics for yield as an
|           | 96548 [gsinclair@so] It's not equivalent.  Ruby's approach is more OO: you can chain
|           | + 96564 [surrender_it] ok, I can agree, cause I like consistency, but I think you can agree
|           | | 96690 [dagbrown@LA ] Nope.
|           | | 96691 [surrender_it] yep
|           | | + 96692 [harryo@qi so] Yes, he's creating a hash (not an array), but that's presumably just because he grabbed the code from a real application, where he wants to be able to re-use the values.
|           | | | 96693 [djd15@po cw ] No, his point is that you can't zip two such objects together. You need at
|           | | | 96694 [harryo@qi so] Ah!  I thought he was just commenting on the fact that Dave's Fib#each was storing all the values.  I thought Gabriele just thought this was necessary to make it work.
|           | | + 96695 [jim@we ri hh] Alas, that is a limitation of the internal iterator paradigm that Ruby
|           | |   96707 [surrender_it] yes, I knew this, look at an older post of mine in this thread :)
|           | + 96566 [ville@sp mm ] (Yes, I know I'm really overstaying my welcome in this ng, just
|           |   + 96571 [cc1@ce .w st] (reverse (map (lambda (x) (begin (display x) (* x 2)))
|           |   | 96574 [dblack@wo bl] I think you want #map there.  With each, the first block is
|           |   | 96579 [cc1@ce .w st] Whoops, just goes to show what happens when I forget to test the code
|           |   | 96585 [dblack@wo bl] There's definitely an efficiency issue; #each only has to keep the
|           |   + 96573 [dblack@wo bl] That looks like #map rather than #each.
|           |   + 96580 [gsinclair@so] I don't mind.  You post intelligently, and although a lot of this
|           |     + 96582 [vadimn@re ha] Feature-by-feature comparisons are useful insofar as they help you
|           |     | + 96588 [cc1@ce .w st] Yea but that doesn't give you the guarenteed cleanup that the yield
|           |     | | + 96591 [vadimn@re ha] The English language does just fine without explicit case endings.
|           |     | | | 96598 [cc1@ce .w st] I like the logic being inline like it is in the ruby example.  I find it
|           |     | | + 96592 [vadimn@re ha] $ cat Main.java
|           |     | |   + 96594 [mikei@gw so ] class ExternalResource : System.IDisposable {
|           |     | |   + 96596 [cc1@ce .w st] Yea I knew that was a possibility, but that seperates logic from point
|           |     | + 96590 [bg-rubytalk@] Ah yes, in one fell swoop, demonstrating almost all the things I find
|           |     | + 96615 [gsinclair@so] Doesn't seem insurmountable to me! :)
|           |     + 96624 [ville@sp mm ] You don't really pollute it much, because you can always use the same
|           |       + 96628 [gsinclair@so] [warning, long post :]
|           |       | 96645 [ville@sp mm ] Yes, why not? The scoping of objects is the same, and using list
|           |       + 96657 [bg-rubytalk@] Not only that, but in Ruby you don't need to know about "rollback" or
|           |         96683 [daniels@pr n] While you may have created closure-like behaviour by using the array
|           + 96517 [matz@ru y- a] Maybe "join" should call "to_str" instead of "to_s" in the future.
|             96539 [gsinclair@so] Bad idea, IMO.  "join" is designed for returning a string.  It
|             96546 [rasputnik@he] Yeah, but it should be the objects decision whether it's able to provide a meaningful
|             96551 [gsinclair@so] I'm probably covering the same ground as DAB here, but there's a big
+ 96094 [charleshixsn] The main advantage of Python is that the libraries are more mature and
  96100 [mailinglists] This will happen in Python 2.4.

[WANTED] Secure TCPServer, TCPClient
95990 [djberg96@ho ] With the inclusion of the OpenSSL package in Ruby 1.8.x, is there
+ 96002 [surrender_it] FWIW I believe that this would be cool :)
| 96027 [rasputnik@he] cleartext = HTTPServer.new(
| 96600 [im_not_givin] def connect(tcp)
+ 96020 [frido@q- of ] I assume quite some peope are capable of it. Question is are enough

[ANN] Madeleine 0.6
95992 [ndrsbngtssn@] What is Madeleine?
+ 95993 [chad@ch df w] Wonderful, Anders!
| + 95997 [ndrsbngtssn@] The remote install works great. Thanks!
| + 96015 [NoSpamPlease] What's the significant difference between GPL, Lesser GPL, and BSD
|   96021 [surrender_it] you're stimulating a huge flamewar ;)
|   96040 [usenets@ya o] If a consultant use any of those program with the above license at his/her
|   96045 [surrender_it] absolutely no.
|   + 96048 [gfb@to es ft] Do not make confusions -- Ruby in general is not GPL, file "Copying" in
|   + 96050 [steven.jenki] It's better to get the answer to questions like this from the
+ 95999 [david@lo dt ] I'm thrilled to see that you're still working on Madeleine. I use it as
| + 96000 [seth@cq .c m] What is Madeleine?  URL?
| | 96001 [surrender_it] I believe you missed the first message of this thread :)
| + 96028 [ndrsbngtssn@] Cool to see it being used! I'll take a look at Instiki.
+ 96084 [NoSpamPlease] 1- connect to mysql db
| + 96106 [ndrsbngtssn@] Madeleine isn't a web library, it's a persistence library. So you would
| + 96120 [aengstrom@gn] Madeleine is not library to connect to a SQL database. Madeleine is a
+ 96239 [pbrannan@at ] After reading the webpage, I'm still wondering that.
  96240 [khaines@en g] It sounds like an in-memory database of Ruby objects that knows how to
  96257 [ndrsbngtssn@] It has some similarities with Pstore, but not that many. It has a very
  96259 [khaines@en g] I've been doing some reading on it.  It seems very interesting, and I can