114748-124882 subjects 115125-116989

^ Regexp match question on interpolated strings...
114924 [rich infoeth] And assuming I could find the first and last double quotes, how would I
+ 114934 [code joechen] Hmmm, if I understand your question, and if you really knew where the
+ 114958 [ruby brian-s] Regular expressions are not able to "count" more than a finite number of
| 114998 [james graypr] Just for the sake of clarity, you are speaking of Ruby's regular
| + 115008 [decoux moulo] ...
| | 115025 [james graypr] Wow.  I can't decipher how, but that sure appears to work, though not
| | 115027 [decoux moulo] ...
| | 115029 [james graypr] In that case, I guess my wishes have already been answered, I just
| + 115020 [markus reali] I think Brian's point is true of regular expressions in general,
| + 115032 [rich infoeth] I am working in an environment that is neither Ruby or Perl.  The piece of
+ 114999 [james graypr] .sub(/^(.+?)\#\(.+\}/m, '\1')
  115012 [ruby brian-s] .sub(/^(.+?)\#\{.+\}/m, '\1')
  115022 [james graypr] If it's know there are no braces in the string save the #{ ... }, I

^ Ruby-esque Inversion of Control
114927 [jgb3 email.b] First, let me just say THANK-YOU to everyone who gave me feedback on my
115046 [pbrannan atd] I still don't think that Copland is in any way useful to me (I just
115087 [lymans gmail] From what I understand of Copeland, it's not really that useful to the
115094 [pbrannan atd] What you are describing (duck typing) seems to me totally orthogonal to
+ 115118 [horacio.lope] Sometimes lightweight IoC is also useful in highly componentized apps
+ 115126 [jgb3 email.b] Not exactly... Copland is actually based strongly on the fact that Ruby
  115331 [headius gmai] I forget who made this point at RubyConf, but the best example of why
  115333 [jim weirichh] I've added my attempt at explaining DI/IoC at http://onestepback.org.  I
  + 115351 [B.Candler po] I was completely unaware of DI/IoC until now, so hopefully I'm a good
  | 115364 [jim weirichh] [... code elided ...]
  | 115373 [B.Candler po] Or maybe it could be as simple as allowing registrations to be overridden;
  | 115378 [jgb3 email.b] In Copland, I have a LogFactory service which intelligently manages the
  + 115436 [jamesUNDERBA] Early on, you refer to Dependency *Inversion*, rather than Inversion of

^ [yanq = yet another newbie question] correct syntax fovariable and regexp
114941 [yvon.thorava] ...
114942 [markus reali] I am not sure exactly what you are asking, so I will offer multiple
114943 [yvon.thorava] ...
114948 [bob.news gmx] "Yvon Thoraval" <yvon.thoravalNO-SPAM@free.fr> schrieb im Newsbeitrag
114955 [yvon.thorava] thanks for all, crystall clear to me ?;)

^ Ruby Graph Library -- add a single knode
114945 [r_mueller im] Moin Moin,
+ 115284 [monora users] This is a bug in rgl/dot.rb. If you use the latest CVS-Version (1.4), you
+ 115337 [hal9000 hype] I don't know that lib and so can't help you...

^ WEBrock question
114964 [george.mosch] request.query["param"] => 1
+ 114974 [tamc2 cam.ac] Off the top of my head I think the method you need is
| 114985 [ gm navel.gr] Thank you very much, this is it :)
+ 114975 [bob.news gmx] "George Moschovitis" <george.moschovitis@gmail.com> schrieb im Newsbeitrag
  114984 [ gm navel.gr] No ';' is the xhtml compatible separator, this is no typo.

^ env question
114967 [ruby brian-s] This is maybe not exactly a ruby question, but maybe you have also
114970 [flori nixe.p] #!/usr/bin/env ruby
114989 [matz ruby-la] If you don't need compile-time check.
114996 [bob.news gmx] "Yukihiro Matsumoto" <matz@ruby-lang.org> schrieb im Newsbeitrag
115002 [Ara.T.Howard] many of my scripts are run from 30-40 machines.  some of the machines mount a
115009 [bob.news gmx] <Ara.T.Howard@noaa.gov> schrieb im Newsbeitrag
115018 [Ara.T.Howard] tcsh
115030 [bob.news gmx] <Ara.T.Howard@noaa.gov> schrieb im Newsbeitrag
115047 [michael.camp] Robert, you're EXPLICITLY running each shell; that's different from
115151 [bob.news gmx] "Michael Campbell" <michael.campbell@gmail.com> schrieb im Newsbeitrag

^ SQLite/ActiveRecord and Backslashes
114986 [david.naseby] I've got a problem with some combination of SQLite, ActiveRecord, and my

^ Rails gem install failure
114987 [itsme213 hot] ...
+ 114991 [joey joeygib] In both instances you are trying to do a "local" install, which means
| + 114993 [B.Candler po] I don't think so. See the line I highlighted above. The 'undefined method'
| | 115031 [jim weirichh] If the gem command isn't complaining about the '-i' on the base gem
| + 114994 [itsme213 hot] ...
+ 114997 [rich infoeth] Did you run "update_rubygems" after you installed the "rubygems-update" gem?
  115019 [itsme213 hot] ...
  115023 [rich infoeth] Right...those are rdoc messages...they are not really errors.

^ Rubyonrails - SQL change request
115003 [jim freeze.o] David
+ 115013 [Ara.T.Howard] does rails support sqlite?
| 115026 [jim freeze.o] I have heard that there was a recent release that enabled rails to work with
| 115040 [justin.rudd ] I believe that it supports the Ruby/SQLite 1.3.x bindings, not the
+ 115028 [jim freeze.o] UPDATE
+ 115062 [beast system] UPDATE
  115064 [jgb3 email.b] Seems to me the "standard" (as if there were really a reliable SQL
  + 115066 [headius gmai] Generally I believe it's best to avoid using reserved words as table
  + 115068 [wildwildwes ] UPDATE [the_table]
  + 115069 [joey joeygib] SQL Server also support putting the column name (or anything else, for

^ String limits?
115004 [Becker004 gm] Does a string have a limited size? assuming running on the average desktop.
115015 [bob.news gmx] "STEPHEN BECKER I V" <Becker004@gmail.com> schrieb im Newsbeitrag
115053 [cmills frees] Each Ruby String's length is stored in a long and Ruby won't compile
115067 [markus reali] Of course, the actual memory in your machine (even including swap

^ Table-driven dispatch
115011 [james.b.crig] I need to read a file into memory and parse it for information on
115021 [bob.news gmx] "James B Crigler" <james.b.crigler@lmco.com> schrieb im Newsbeitrag
+ 115043 [james.b.crig] With no associated block, open is a synonym for File.new . If
| 115050 [james.b.crig] I apologize for my previous post.  It occurred to me that Robert might
+ 115058 [james.b.crig] I like this solution, except it solves the wrong problem.  That's
  115150 [bob.news gmx] "James B Crigler" <james.b.crigler@lmco.com> schrieb im Newsbeitrag

^ http-access2 and vars
115017 [werkt mail.r] I seem to be unable to pass vars to post requests using the body element.

^ status of Ruby 1.8.2 release ??
115024 [see_signatur] I am quite worried about the status of the forthcoming
115035 [agorilla gma] Bill Guindon (aka aGorilla)

^ [ANN] session-2.1.8
115037 [Ara.T.Howard] Session
+ 115135 [botp delmont] looks great. do you have an rpa for this?
| + 115140 [Ara.T.Howard] ...
| | 115153 [batsman.geo ] There's only little documentation about how to package using rpa-base.
| | + 115179 [chadfowler g] The gemspec would also be longer if you added a description to it ;)
| | + 115191 [Ara.T.Howard] ...
| | + 115199 [Ara.T.Howard] what's the '-1' indicate?
| + 115149 [batsman.geo ] batsman@tux-chan:~$ rpa update --no-proxy
|   115152 [botp delmont] Yes!
+ 115155 [bitserf gmai] This looks like it works really well, thanks :)

^ Extending existing classes (was: Re: A ruby course)
115057 [ryco gmx.net] Taking over from Brian (sorry :) ) I need to ask a question of my own.
115059 [ehames gmail] I usually try not to do that kind of things. Then, for each new
115063 [ryco gmx.net] In my case there is never going to be a different language to support,
115097 [discordantus] 1. When the added methods are useful for that class in general (ie,
115113 [sera fhwang.] But this is all fairly subjective, isn't it? Among some programmers,
115261 [discordantus] Extremely :) In fact, my first draft of the email said so... but I
115476 [B.Candler po] There are a couple of caveats to extending or subclassing built-in classes

^ Use ri from irb ?
115065 [itsme213 hot] ...
115080 [mneumann nte] That's handled in Programming Ruby 2 (Pickaxe II), page 191.
115089 [discordantus] Is it just me, or does that look a bit kludgy? ri itself is a ruby
+ 115092 [dave pragpro] It is a tad kludgy, but not too bad... In the chapter I wanted to
| 115099 [discordantus] good fix for the problem, especially when seen in the light of it
| 115176 [kristof vlee] Not so difficult.  That's what I did to create my emacs-extension.
+ 115101 [B.Candler po] require 'rdoc/ri/ri_driver'
  + 115114 [batkins57 gm] Or maybe
  | 115158 [B.Candler po] Erm, except the method 'oldpa' still doesn't take any arguments, so what's
  | 115189 [B.Candler po] There is another problem with this though: if you do
  + 115129 [dave pragpro] That's a simple fix, methinks. I'm heads down on this amazon talk at

^ Help! Can't get the FXRuby clipboard example to work...
115076 [mailinglist_] Essentially, when I select a customers name and click
+ 115082 [lymans gmail] First off - the last 15 or so lines won't be 'processed' until after
| 115084 [lymans gmail] Sorry for the extra reply...
| 115088 [netikular gm] Nope setDNDData works between other applications - can't vouch for the
+ 115083 [netikular gm] There were several mistakes in your code I corrected them and below is

^ Using CLucene
115093 [lispamateur ] ...
+ 115102 [mccallister ] I am looking to do the same thing, but fwiw, calling C (haven't tried
| 115428 [lispamateur ] ...
+ 115109 [rff_rff remo] well, you can use the ruby/dl module to wrap c libraries withouth c, in
| 115110 [mccallister ] The other option is to take the PyLucene work and make a SWIG interface
| + 115147 [martindemell] ...
| + 115175 [rff_rff remo] well, you can even do what the OSAF guy did: take the original lucene,
+ 115115 [horacio.lope] There's a Ruby/Lucene project by Erik Hatcher, but it seems to be
  115121 [mccallister ] Did, he is the one who suggested I look into PyLucene ;-)
  115132 [horacio.lope] sorry, I didn't see Erik in this thread

^ Large disc-based "hash"?
115095 [feldt ce.cha] I need a simple way to have a potentially very large hash mapping
+ 115096 [rich infoeth] Berkely DB is a good solution, and Guy Decoux has a great Ruby wrapper for
| + 115098 [rich infoeth] Opps... http://www.sleepycat.com/
| + 115124 [gsinclair so] ("DBM", "GDBM", "SDBM")?
|   115130 [rcoder gmail] Berkeley DB is an embedded database system developed and supported by
|   115157 [batsman.geo ] dbm, sdbm and ndbm have rather low limits for the data size IIRC.
+ 115104 [Ara.T.Howard] if 'fairly frequent' is once per week look at CDB too - it's blindingly fast
| 115106 [feldt ce.cha] fairly frequent is more like "1-5% of keys per hour" but thanks for the
| + 115117 [rcoder gmail] If you guys are talking about the same CDB format Bernstein created,
| + 115131 [majere ftml.] My experience with bdb has been very good.  Tests with >500
| + 115144 [code joechen] If I'm not mistaken, bdb is also not free if you want to redistribute it
+ 115139 [markus reali] Following the road less traveled a short way to see where it
  115141 [Ara.T.Howard] check out fsdb on the raa - it might actually be suitable for OP's post too.

^ rdoc and C files again
115100 [cmills frees] Looks like rdoc doesn't replace tabs in .c files like expected (when
+ 115105 [cmills frees] I also added support for rb_define_attr().  New diff is below...
+ 115127 [dave pragpro] This doesn't work if you have
  115142 [cmills frees] OK, changed it.  I just added support for documenting global variables

^ ruby to replace sed command (was Re: http://www.rubyonrails.org/show/GettingStartedWithRails)
115103 [Bil.Kleb NAS] I would, but let the truth be known: My command-line ruby is so poor that
+ 115107 [Ara.T.Howard] perhaps
+ 115111 [ajohnson cpa] ...
  115112 [Ara.T.Howard] wow - you win!

^ [SOLUTION] Secret Santas (#2)
115108 [mail petermc] I realised that my implementation is rather flawed, and rather late, so

^ [SOLUTION] Secret Santas (#2)
115116 [mail petermc] Less fun, but more reliable possibly, is the

^ Range behavior (Re: [RCR] New [] Semantics)
115120 [matz ruby-la] I changed the subject.
115128 [transami run] irb(main):001:0> a = 0..2
+ 115159 [B.Candler po] Are you saying: get rid of Array#include? and Enumerable#include? (for 2.0)?
| 115196 [transami run] Not at all. This is something particular to a Range so why overload #include?
| 115295 [matz ruby-la] Your opinion makes sense.  What do you thinks is the best way to fix?
| 115345 [martindemell] ...
| 115404 [transami run] Let me think on it some more. It's actually not a simple problem once you
| + 115413 [B.Candler po] I can understand why there is not an explicit flag at the moment, because
| | 115424 [transami run] Brian, you make some excellent points, and clarify the issues. Thanks.
| | + 115432 [B.Candler po] I think more generally, if you provide a proc, then you don't need to
| | | 115439 [transami run] Except you gain no speed advantages in dealing with numeric ranges, which I'm
| | + 115437 [Ara.T.Howard] - huge indexes sets into binary data
| | | 115444 [markus reali] I've almost sort of got the roll your own operators patch
| | | + 115450 [Ara.T.Howard] lol.
| | | + 115471 [batkins57 gm] It's got its own whims?  I'd be careful with that code.  ;)
| | |   115475 [markus reali] It's working now (see the ANNouncement a few messages back).  I
| | + 115514 [matz ruby-la] Define the problem to solve.  What do you want to fix?
| |   + 115521 [ml-ruby thep] FWIW, I like the current implementation.
| |   + 115527 [transami run] Well, it might look like the later, b/c I am also "exploring". But also b/c it
| |     + 115533 [transami run] val <=> first >= 0 && val <=> last </<= 0
| |     + 115539 [markus reali] I have lots of other ideas.  At present they are drowned out by the
| |     | 115554 [transami run] He he. That's why I use Ruby!
| |     | 115556 [markus reali] I've fixed the one bug I found in the pre-alpha version.  I want to
| |     + 115543 [matz ruby-la] ...
| |       115553 [transami run] Okay. The problem is that Range behavior is contradictory. Maybe this will
| |       115569 [matz ruby-la] I don't agree with the word "contradictory".  The above function
| |       + 115597 [B.Candler po] In this case, also change the documentation of Enumeration to state that
| |       + 115601 [james graypr] My opinion is that the only reason people complain about this is the
| |       + 115626 [transami run] Okay, planB is good. You are going the other way toward Range being
| |         + 115660 [markus reali] Yes, the problem is that it means several something elses (see
| |         + 115674 [transami run] Following this to logical conclusion. (IMHO) Elegant design would be along
| |         | 115737 [transami run] (well, except for when you compare class)
| |         + 115800 [matz ruby-la] OK.  I will consider taking planB in the future.  Would somebody
| |           + 115802 [ml-ruby thep] FWIW, I respectfully disagree.
| |           | 115807 [matz ruby-la] The point is whether your expectation is
| |           | 115809 [ml-ruby thep] Hmm, I guess I expected Range to be implemented as an ordered set, an
| |           | 115811 [matz ruby-la] No.  It just hold upper and lower bounds, plus a flag for exclusion of
| |           | 115814 [ml-ruby thep] Ahh, ok. I didn't realize set was implemented in this way. I can see why
| |           | + 115816 [B.Candler po] Range
| |           | | 115818 [ml-ruby thep] [Oops, first copy accidently got sent to Brian instead of list. Sorry.]
| |           | + 115817 [rff_rff remo] isn't <=>+checking for same class enough for this?
| |           |   115820 [B.Candler po] At the moment,
| |           |   115822 [B.Candler po] Also, your rule requires that 'succ' generate all possible intervening
| |           |   + 115831 [transami run] After expirementing with implementation of Interval which coerces to a purely
| |           |   + 115850 [james graypr] (3..5).to_a.include?(4)
| |           |     115853 [transami run] Note that this won't work for
| |           |     115860 [B.Candler po] But that's unlikely to be useful anyway, even with the current member?
| |           |     115873 [transami run] Granted.
| |           |     + 115879 [transami run] In fact, I just played with this idea a bit and found Range to be quite out of
| |           |     + 115958 [B.Candler po] Those are the common cases I can think of too.
| |           |       115969 [transami run] Fully concur. This is essentially the conclusion I arrived at too. It is
| |           + 115848 [transami run] I will if no one else will --just some documentation changes, yes?
| |             115932 [matz ruby-la] Yes.
| + 115415 [markus reali] Not so.  Time ranges, for example, can be Continuous, as could
| | 115433 [transami run] True. Although I think one could argue, that the defining characteristic is a
| | 115443 [markus reali] Well, there are continuous mathematical constructs that _don't_ map
| | 115453 [transami run] Sorry, I meant reals.
| + 115878 [martindemell] ...
+ 115163 [peter semant] What are you expecting the to_a method to actually do? Return a list of
  115171 [B.Candler po] I think Ranges represent at least two different things in Ruby. I will
  115238 [transami run] Agreed. I doubt they are ever used. I don't even consider them. Obfuscation
  + 115243 [B.Candler po] Is there an easier way to say "give me all the elements of this
  | 115250 [transami run] My mistake. I actually disagree. I use a[0..-2] and the like regularly.  I
  + 115244 [markus reali] You're joking, right?  In the past week we've seen on this very
    115252 [transami run] See my last post. I misunderstood Brian, and was actually referring to a[2,-2]