102066-103173

101841-102893 subjects 102256-103399

A newbie question about path
102066 [ssk@ch l. os] I've got a simple question.
+ 102070 [dooby@d1 .k ] RUBY/lib/ruby/site_ruby/1.x   (if version specific)
| 102074 [assaph@av ya] all
+ 102129 [Tim.Hunter@s] Add RUBYLIB to the list env. variables defined during startup. If

Problem installing the Ruby Eclipse plug-in
102067 [vinfoley@iq ] I would be interested to try the Ruby Eclipse plug-in.  So, I downloaded
+ 102132 [djberg96@ho ] The Ruby Eclipse plug-in, and many others, do not work past 3.0M8
| 102138 [paul@NO rg l] So does that mean wait until the plugin is rewritten to use JAXP, or is
| 102196 [Markus.Barch] Unfortunately there have to be changes in the code, so there is no easy
+ 102197 [Markus.Barch] As Daniel Berger already stated, the current RDT release (0.4.1) does

Closing files opened with Open3.popen
102072 [sera@fh an .] Is there anyway to close a file that I opened with Open3.popen ? I'm
+ 102090 [ahoward@no a] ~ > ruby -r open3 -e 'ios = Open3::popen3 "sh"; system "ps"; ios.map{|io| io.close}; system "ps"'
+ 102140 [pbrannan@at ] Use IO#close.

Equality of constants
102081 [luke@ma st p] if Hash === Hash
+ 102083 [alexmchale@g] The answer this doesn't work as you expect is that Class is a subclass
+ 102084 [dblack@wo bl] === is separate because it's actually the case operator, not an
| + 102085 [alexmchale@g] Dang .. why didn't I think of that.  Silly me, it's so obvious.. and I
| | 102089 [dblack@wo bl] Don't feel bad -- I had to amend my comments because it's actually not
| + 102086 [dblack@wo bl] I realize actually that this isn't identical to what you wanted to do,
| + 102186 [luke@ma st p] This is exactly sufficient for my needs; all of the objects I am testing
+ 102088 [guslist@fr e] irb(main):001:0> Hash == Hash

installing ruby with 'readline'
102096 [r_mueller@im] this is my first question and i hope it's not too simple.
102097 [vjoel@PA H. ] That probably means GNU readline is not installed on your system. It's a
102099 [r_mueller@im] many thanks for that (exorbitant) simple hint.

Re: What is the equivalent of Python's '%s' % 'MyString'?
102106 [gsinclair@so] Incorrect thinking, I'm afraid.  printf and friends are better than #{}

[OT] EURUKO 2004 status update
102108 [wuonm@ya oo ] are the TeX and PDF changes to instiki available anywhere? I don't remember
102109 [mneumann@nt ] taken from instiki CVS.
102306 [surrender_it] eh, it sounds strange cause instiki.org does not have that :)

CGI - table from csv
102111 [nospam@li ac] I am attempting to convert a script that produces csv output into
102141 [angus@qu va ] [Milo Thurston <nospam@linacreschoolofdefence.org>, 2004-06-02 11.03 CEST]
102149 [nospam@li ac] Thanks, that was most useful.

Re: What is the equivalent of Python's ""Zsban Ambrus" <ambrus@math.bme.hu>" % "MyString"?
102116 [ambrus@ma h.] You could still use the NUMBER$ syntax of printf. That is less convenient

Article "Processing XML+XSL with Ruby"
102124 [alex_mailbox] Will be very glad if it is usefull for you.

CGI form method error
102134 [nospam@li ac] /usr/lib/ruby/1.8/cgi.rb:1841:in `popup_menu': undefined method
102135 [decoux@mo lo] Apparently it's case sensitive for #scrolling_list
102136 [nospam@li ac] Thanks - it seems that that affects a few other methods,
102137 [decoux@mo lo] #checkbox_group, #radio_group seems also case sensitive

ruby-dev summary 23566-23622
102146 [ttate@tt ky ] The following is a summary of ruby-dev.
+ 102177 [pbrannan@at ] I'd prefer (a), because backward-compatibility is a good thing, and I'd
| + 102184 [vjoel@PA H. ] I'd vote for (a), too. I use this syntax as part of the programmer's
| + 102224 [nobu.nokada@] The former.  The latter syntax will be
| | + 102226 [vjoel@PA H. ] Lovely!
| | | 102227 [nobu.nokada@] I'm not sure whether it will be allowed, non-keyword arguments
| | + 102251 [surrender_it] sorry for asking again, but I went ignored the first time, this is the
| |   102342 [nobu.nokada@] This is not that distinction, but between hash literal and
| + 102249 [lists@za a. ] But I suspect there will be lots of changes needed for Ruby 1.x source
|   + 102259 [mneumann@nt ] No, both will work.
|   + 102261 [surrender_it] ...
|     102289 [Austin.Ziegl] foo(** :foo => 14, :bar => 92)
|     102337 [nobu.nokada@] As well as *array, it prefixes an expression.  So the former
+ 102221 [nagai@ai ky ] I chose the solution (a) at [ruby-dev:23624]. :-)

[ANN] Active Record 0.8.0: Transaction that!
102147 [david@lo dt ] What's new in Active Record 0.8.0?
+ 102152 [carl@yo ng l] Is this for performance reasons?  It seems like it wouldn't be too hard
| + 102154 [Austin.Ziegl] One might want to consider using Transaction::Simple if you need
| | 102165 [carl@yo ng l] Why not even add Transaction::Simple to Active Record?
| + 102167 [khaines@en g] [WINDOWS-1252?]> > returned to their state before the transaction started.
| | 102173 [Austin.Ziegl] I am not opposed to DHH including Transaction::Simple with
| + 102382 [gavin@re in ] I could actually see an usefulness to the current
|   102389 [carl@yo ng l] Didn't David say that you can still do it the old way by just not
|   102397 [david@lo dt ] Right. If you don't want to bother with the objects transactions, just
+ 102166 [khaines@en g] Hey, cool.  I'll have to compare how you did transactions to how I did them

RedCloth 2.0.11 -- Textile Humane Web Text for Ruby
102160 [ruby-talk@wh] RedCloth 2.0.11.
102210 [chadfowler@g] $ sudo gem -Ri redcloth --install-stub

[ann] bidirectional iterator 0.8
102161 [neoneye@ad l] I am pleased to announce the release of version 0.8 of my
102182 [martindemell] This suggests "higher order" iterators composed of parallel and serial
102191 [neoneye@ad l] Yes, I have a MultiIterator in the sample directory.

looking for host supporting modruby
102164 [eniac@sd -e ] I finally started written my home page (not that interesting)
102168 [mailinglists] Go and get a virtual server if you have less traffic or a dedicated
+ 102171 [carl@yo ng l] Linode.com is a great option.
+ 102174 [paul@vu ma k] rootr.net might get you started...they are in hong kong.
| 102299 [dave@da ed m] I'll second the recommendation for rootr.net.  modruby is included in
| 102303 [zdennis@mk e] I use rootr.net for my brother's band's website. The only downside is that
| 102732 [mailing-list] I want to throw out a plug for FutureQuest.net - They don't suppport
+ 102176 [mailinglists] I recommend this because they have low priced Vservers which are

[RCR] Floating point division operator /. (or fdiv method)
102170 [mneumann@nt ] I know that introducing new syntax into Ruby is probably far from being
+ 102175 [neoneye@ad l] Hmm. that could be useful.. though I rarely uses floats.
| + 102179 [mneumann@nt ] No the name actually comes from Ocaml's /. operator :-)
| + 102180 [pbrannan@at ] Perhaps the operator should occasionally (or often) return return bad
|   102255 [martindemell] And the complementary mod operator would only go to 5 :)
+ 102214 [surrender_it] Maybe you could use the 'mathn' module?
+ 102217 [dblack@wo bl] But you've still got a "have to write" case -- meaning, when you write
| + 102222 [dmartenson@m] Agreed, but is it really necessary.
| + 102262 [mneumann@nt ] Sure, but when at the time of writing #meth, you think parameters a and
|   102265 [dblack@wo bl] OK, but what I mean is: given the same problem, you can also solve it
+ 102247 [bob.news@gm ] David has said it all - here are some additional remarks.
| 102345 [jim@we ri hh] Then your code will break whenever it is used in a program that requires
| + 102371 [matz@ru y- a] Numeric#div does integer division and Numeric#quo does float (or
| | 102393 [martindemell] Not a good choice of names, IMO, since it's not obvious which is which.
| | + 102410 [matz@ru y- a] fdiv is not good either, since it may return rational.
| | + 102473 [matz@ru y- a] matz.
| |   102546 [martindemell] True, but "quo" means integer to me too (as in "quotient and
| + 102374 [pbrannan@at ] I strongly disagree.  It is mathn that is broken, not the / operator.
|   + 102381 [bob.news@gm ] "Paul Brannan" <pbrannan@atdesk.com> schrieb im Newsbeitrag
|   + 102383 [sroberts@ce ] I agree, mathn's / operator is broken, not Ruby's!
|   | 102409 [pbrannan@at ] [ruby-talk:26362] and the following thread
|   + 102430 [unet@re x. o] Then your code is incompatible with the standard libraries and
|   | 102667 [pbrannan@at ] If you don't like my code, you don't have to use it, but it is not your
|   + 102432 [jim@we ri hh] There are two separate operations intdiv and floatdiv with different
|     102457 [mneumann@nt ] That's exactly what I tried to express in this RCR... polymorphism in
|     102460 [msparshatt@y] However GvR has decided to fix the problem in the way you suggest, by
|     102466 [mneumann@nt ] Ah thanks.... would be great to see this in Ruby too (without breaking
|     102967 [unet@re x. o] It would *not* be great to see this in Ruby: the quotient of two integers
|     103173 [mneumann@nt ] I'm not sure I understand you correctly, or you me.  My "suggestion"
+ 102309 [unet@re x. o] We already have .div for integer division.  (13.div(7) == 2)
  + 102312 [sroberts@un ] % irb
  + 102336 [unet@re x. o] That should be 13.div(7) == 1, of course.  *BLUSH*

[ann] regexp-engine 0.11
102172 [neoneye@ad l] Phwew.. regexp now supports unicode ;-)
102390 [gavin@re in ] w00t! Thanks so much, Simon!
102745 [neoneye@ad l] I am happy you like it.. yesterday I added support for

A bug in logical 'or' with regexp?
102183 [gfb@to es ft] I am still using Ruby 1.6.8 and just came across a very strange thing
+ 102211 [bob.news@gm ] "Gennady" <gfb@tonesoft.com> schrieb im Newsbeitrag
+ 102225 [nobu.nokada@] It was a deprecated feature.  A mere regexp literal in logical
  102288 [gfb@to es ft] Thanks a lot, guys, for explanation. Now it all makes sense. We plan to

Value type or reference type
102185 [ssk@ch l. os] In ruby FAQ, I find the following code.
+ 102187 [Gavri_F@in o] Fixnum is value type, but whatever you pass into addOne() is passed by value, which means that a copy of  the value is made.
| 102198 [Austin.Ziegl] Yes. 'n' is a label, not a memory slot, and '+=' is syntax sugar.
| 102200 [Gavri_F@in o] wow! seems i completely misunderstood the concepts!! maybe i should just stop looking at all languages with java-colored classes :(
| 102201 [Gavri_F@in o] oops! i meant java-tinted _glasses_
+ 102209 [bob.news@gm ] "Sam Sungshik Kong" <ssk@chol.nospam.net> schrieb im Newsbeitrag

I18N, L10N (was: Re: What is the equivalent of Python's "%s" % "MyString"?)
102194 [clr1.10.rand] I don't know about M17N, but I18N is preparing your application for
102233 [assaph@av ya] differences

[rcr] supply option hash to Regexp.new
102202 [neoneye@ad l] Regexp.new is old, and relies on C'ish magic values.
102208 [bob.news@gm ] +1
102212 [neoneye@ad l] Robert, +1 ??    if we calculate the flags for 'uxim'
102213 [dblack@wo bl] I think +1 means "I vote yes" (or in this case perhaps, "I will vote
102218 [neoneye@ad l] ok.. apparently +1 translates into 'i vote yes'..   I guessed so.
+ 102220 [neoneye@ad l] I have added an RCR entry.. vote on it here :-)
+ 102248 [bob.news@gm ] "Simon Strandgaard" <neoneye@adslhome.dk> schrieb im Newsbeitrag

[OT] Re: mysql-ruby
102203 [rasputnik@he] See, this looks wrong to me. You've got a random header for some
102207 [paul@vu ma k] No, that did not seem 'obvious' to me either howver I've tried the paths

Help with fox-tool
102215 [nigel@wa pz ] I've been playing with this app and think it shows great promise.
102216 [neoneye@ad l] How about?
102219 [nigel@wa pz ] Perhaps I should have been more explicit. My problem is how to use the
102244 [neoneye@ad l] [snip code]

Reply wasn't posted; will test new post
102231 [botp@de mo t] Pls forgive me in advance.
+ 102232 [botp@de mo t] pls ignore.
+ 102236 [dooby@d1 .k ] You're right,
  + 102237 [dblack@wo bl] The fix definitely hasn't fixed everything; Austin Ziegler's posts
  + 102241 [dblack@wo bl] The remaining problem seems to be subject lines with "Re:" in them,
  | 102281 [oelkers@zr .] My further investigations proved that this is really the problem. The
  | + 102284 [bob.news@gm ] "Dennis Oelkers" <oelkers@zrz.TU-Berlin.DE> schrieb im Newsbeitrag
  | | 102286 [oelkers@zr .] This is not possible because in cases like this there is no real clue to
  | | + 102291 [Austin.Ziegl] make it through, but those from evault.com may not be making it. If
  | | + 102292 [bob.news@gm ] "Dennis Oelkers" <oelkers@zrz.TU-Berlin.DE> schrieb im Newsbeitrag
  | |   + 102293 [Austin.Ziegl] Dennis Oelkers
  | |   + 102296 [surrender_it] ...
  | + 102294 [angus@qu va ] [Dennis Oelkers <oelkers@zrz.TU-Berlin.DE>, 2004-06-03 16.18 CEST]
  | + 102322 [dblack@wo bl] I (reluctantly) would opt for the first one, if it's the likeliest way
  | | 102332 [dooby@d1 .k ] Couldn't it be solved simply by changing params.rb ...
  | | 102346 [dooby@d1 .k ] Yuurk, that's technical BS !!
  | + 102330 [beast@sy te ] Arg, *bleeping* Microsoft *bleeping* us all again, by ignoring an
  | | 102360 [bob.news@gm ] "Thomas Fini Hansen" <beast@system-tnt.dk> schrieb im Newsbeitrag
  | | 102475 [beast@sy te ] Perhaps, but I'm not particularly convinced.
  | | + 102511 [austin@ha os] There are plugins for Usenet/NNTP handling for Outlook, but it is not
  | | | 102518 [beast@sy te ] And I wont pass any judgement on that's compliance either, as I'm not
  | | | 102592 [dooby@d1 .k ] RFC 2822 is a not a standard, yet.
  | | | 102595 [beast@sy te ] August 13, 1982
  | | | 102600 [dooby@d1 .k ] I think so.
  | | | 102638 [beast@sy te ] OK, now you lost me. This whole subthread started out at someone
  | | | 102739 [dooby@d1 .k ] If this summary helps, please re-read the rest of your message
  | | | 102762 [dblack@wo bl] I think so, not because it is ideal or non-kludgy but because I want
  | | | 102820 [dooby@d1 .k ] By far the highest-percentage way to make that happen would be
  | | | + 102838 [dblack@wo bl] All of your ideas and questions are fine.  What I'm saing is I'd like
  | | | + 102984 [beast@sy te ] Doesn't seem much different than a SMTP server returning an SMTP error
  | | |   103004 [dooby@d1 .k ] SMTP error or SMTP USER error ?
  | | |   103026 [dblack@wo bl] 2.1.4. Subject
  | | |   103049 [dooby@d1 .k ] "Request For Comments" ?   Makes me wonder if anyone did :-)
  | | |   103077 [dblack@wo bl] In practical terms, though, the spelling out of the requirement in the
  | | |   103103 [Austin.Ziegl] EXCEPT that the statements are "should" (see RFC2119 noted above)
  | | |   + 103109 [bob.news@gm ] "Austin Ziegler" <Austin.Ziegler@evault.com> schrieb im Newsbeitrag
  | | |   | 103143 [hal9000@hy e] I think part of the issue is the use of these modal auxiliaries.
  | | |   | 103152 [discord@ma .] There's an RFC for that :) Seriously, I'm pretty sure there's an RFC
  | | |   | + 103154 [dooby@d1 .k ] Austin posted the link, today.
  | | |   | + 103155 [dblack@wo bl] Yes, I think that's RFC2119, the one Austin mentioned.  They don't
  | | |   + 103133 [dblack@wo bl] According to the above, References is "required", not "strongly
  | | |     103147 [dooby@d1 .k ] First evidence of that is Austin's post that you're replying to :-)
  | | + 102558 [bob.news@gm ] "Thomas Fini Hansen" <beast@system-tnt.dk> schrieb im Newsbeitrag
  | + 102331 [sean@ce so t] Is it possible to mirror the References header item as another header item,
  | | 102333 [beast@sy te ] When a MUA is replying, it doesn't take the original mail and strip
  | + 102350 [nobu.nokada@] (1) revive subject tag (e.g. [ruby-talk:102281]).
  |   102357 [beast@sy te ] [snip perl]
  + 102250 [surrender_it] seing this and previous msg from Botp on my newsserver.

Using Win32OLE, WMI and ExecMethod
102234 [djberg96@ho ] Ruby 1.8.1
102354 [djberg96@ho ] Never mind.  It appears that you call the method on an instance within

Re: about What is the equivalent of Python's "%s" % "MyString"?
102239 [dblack@wo bl] Note (from David Black): This was a message sent by Botp to ruby-talk
+ 102240 [dblack@wo bl] (Meaning, didn't make it through to comp.lang.ruby.)
+ 102254 [bob.news@gm ] "David Alan Black" <dblack@wobblini.net> schrieb im Newsbeitrag
  102267 [dblack@wo bl] Which part is the question? :-) If it's whether that regexp appears in
  102273 [bob.news@gm ] "David A. Black" <dblack@wobblini.net> schrieb im Newsbeitrag
  102275 [dblack@wo bl] Yeah, hopefully not :-) I think what's happening is that the "Re:"
  102277 [bob.news@gm ] "David A. Black" <dblack@wobblini.net> schrieb im Newsbeitrag

Net::SSH?
102242 [jgb3@em il b] I've done a fair bit of looking, and it appears to my humble eyes that

Job posting
102243 [jim@fr ez .o] Our company has posted a job listing on Monster[1].
102253 [ptkwt@ar cn ] I suspect that learning Ruby is a lot easier than learning semiconductor

ruby-* mailing list service maintenance stop
102246 [nahi@ke na t] Ruby-* mailing list service on helium.ruby-lang.org will stop soon for
102258 [shugo@ru y- ] Mailing list services are restarted. Thank you.
102260 [botp@de mo t] first test. pls ignore/delete.
102263 [botp@de mo t] K got it (no less than a minute :-).

CGI "please wait" message.
102252 [nospam@li ac] Apologies for the many CGI posts.
+ 102298 [dhtapp@se _s] { Snip... }
| 102305 [nospam@li ac] That's definitely the sort of thing I need.
+ 102315 [angus@qu va ] [Milo Thurston <nospam@linacreschoolofdefence.org>, 2004-06-03 12.10 CEST]
+ 102451 [no.mail@av i] 1) You show a page with the "Please wait" message, then you redirect to the final page
  102470 [ see@th .e d] That line with JavaScript is not needed there. It slipped from my original page. Sorry.
threads.html
top