141127-372617

140943-141790 subjects 141340-143678

HTTP Proxy problem
141127 [joe.mitchell] I'm having trouble getting Proxy to work properly within our corporate
+ 141137 [assaph@gm il] corporate
+ 141555 [aamine@lo er] remove "http://".  Net::HTTP::Proxy requires hostname, not URI.

Rake vs Subversion
141136 [vfoley@gm il] I have a question for people who use both Rake and Subversion: is there
+ 141139 [james@gr yp ] Well, the general thinking here is that RDoc documentation should not
+ 141303 [kevin.mcconn] You could just do "svn export" instead of "svn checkout", in whatever

rails+ajax slowness in IE
141149 [samuel.willi] I'm trying out a very simple bit of Ajax using the Rails helper.  While
141164 [lgalea@gm so] I've noticed the same slowness so I'm definately intrested if anyone knows
141297 [samuel.willi] Good, I'm glad to know I'm not alone.  That's strange, though -- the

OptionParser: using upper AND lower case option letters
141150 [tim@me zi s.] by default, OptionParser ignores case differences
141848 [nobu.nokada@] Do you mean long form options?

Class#singleton_of
141154 [Ara.T.Howard] at the risk of totally annoying everyone on this list and not getting any real
141157 [florgro@gm i] So are you okay with using Ruby-DL? This is something that ought to be
141160 [Ara.T.Howard] ...
141198 [florgro@gm i] Yup.

scripts to make all ruby19 + yarv0.2
141155 [pascal.guich] ...
141156 [pascal.guich] scripts to make all ruby19 + yarv0.2

[ANN] color-tools 1.1.0
141159 [halostatue@g] I am pleased to announce the release of color-tools 1.1.0. With this

Float to Rational
141163 [lgalea@gm so] I need to convert a float to a fraction.. So 1.5 to 1 1/2..
+ 141184 [jannis@ha de] class Float
| + 141259 [fgp@ph o. rg] [snipped code]
| | 141271 [chr_mail@gm ] For serious use he'd probably better using  "continued fractions" based
| | 141273 [zdodson@zd d] Knuth has a discussion of this in `Seminumerical Algorithms, The Art
| | 141279 [chr_mail@gm ] Florian's solution is of course nothing but continued fraction
| | 141300 [discordantus] Thanks to those who mentioned the "continued fractions" method. Here's
| | + 141388 [eric_mahurin] Here is another simple way I came up with.  This shouldn't be
| | + 141413 [lgalea@gm so] Thanks for all the great responses!
| + 141265 [fgp@ph o. rg] Here is another one - it's probably much slower, but works
+ 141257 [discordantus] there is no built-in way (that I know of), but here are two methods I

[ANN] Ruby Editor Plugin for jEdit 0.6 - method completion release
141165 [rob.02004@gm] Version 0.6 of jEdit's Ruby Editor Plugin has been released and is
+ 141176 [the_mindstor] #: Rob . said :: 5/5/2005 4:04 AM :#
| 141186 [rob.02004@gm] Rob
| 141205 [tom@in oe he] Da, foarte buna!
| 141219 [the_mindstor] #: Tom Copeland said :: 5/5/2005 3:12 PM :#
| 141225 [rob.02004@gm] Alex, I don't get an exception in this case, but I see what you mean.
| + 141227 [belorion@gm ] I am also getting an exception ...
| | + 141235 [rob.02004@gm] Thanks for the exception report. Not sure what's going wrong. I'm not
| | + 141236 [rf.oodanaw@s] Me too, same exception on Mac OS X 10.4 (Tiger release)
| |   + 141242 [belorion@gm ] First of all ... let me apologize for not giving you all the details.
| |   + 141243 [rob.02004@gm] Found the problem. By mistake I left in an unnecessary hook for a
| |     + 141246 [belorion@gm ] Fantastic, works like a charm :) Great work!
| |     + 141289 [jeff.barczew] Great job Rob!
| + 141229 [ruby.brian@g] irb(main):001:0> %().class
| + 141230 [the_mindstor] I have a strange idea - not sure if it worth anything :-S.
| + 141247 [florgro@gm i] I have not tried out this release, but regarding literals, there is also
+ 141261 [ilias@la ar ] I would prefere i pure ruby IDE [because the nature of Ruby requires an
  141268 [mailinglists] If you mean scriptable in ruby then i could maybe agree with you. But
  141291 [ilias@la ar ] An efficient ruby IDE is written in ruby and is extensible in ruby.

How to interface with an API written in C++?
141167 [DHaskin@tr n] Does any know how I would go about making calls to a set of APIs written in
+ 141179 [piers@om a. ] that the process should be similar (someone else my know better).
+ 141187 [mailing-list] You could search the archives at http://ruby-talk.org/ before asking
  + 141200 [piers@om a. ] extern "C" {
  | 141202 [mailing-list] I don't understand what this has to do with what I said,
  | 141204 [piers@om a. ] It continues the conversation.
  | 141224 [mailing-list] Ah, not very obvious when you push down what I was saying to the bottom
  | 141241 [gfb@to es ft] For a long time I've been doing C++/Ruby interfacing mannually. And
  + 141260 [ehames@gm il] On 5/5/05, Nikolai Weibull
    141287 [mailing-list] That°«s what the °»and I mean really°… nonessential clause was for,

How to interface with an API written in Java/COM/C++?
141168 [DHaskin@tr n] Actually I just found out that the API is provided in 3 different
141171 [dave@bu t. d] COM is pretty easy to interface with - look at Win32OLE, included in the

Re: Object#inside_metaclass?
141170 [transfire@gm] i'll change

Tkmenubar and checkbuttons
141178 [joevandyk@gm] ['Options',
+ 141183 [nagai@ai ky ] I'm very sorry.
+ 141220 [nagai@ai ky ] Maybe, do you want such like as the following?
  141264 [joevandyk@gm] Thanks for the example.  That's close to what I originally wanted and
  141266 [joevandyk@gm] require 'tk'

Rails developmnet environment  on Windows
141180 [ianic@4d a. ] Just started my first Rails project.
141282 [mulperi@cc h] Try arachno ruby. It has a great build-in debugger, great editor, great
141329 [jeff.barczew] Well I haven't tried Arachno yet, but Eclipse and jEdit are good.

[ANN] Classifier 1.3.0: New Summary feature and no dependency on external c-libraries
141185 [lucas@ru y. ] I know that many of you have been interested in trying out some of the

Re: Classifier 1.3.0: New Summary feature and no dependency on external c-libraries
141189 [lucas@ru y. ] Oh goodness, I hadn't tested my summary example without GSL. If you
141195 [george.mosch] utterly brilliant!

Help! what is going on here?
141192 [andrew@wa ro] $ cat test.rb
141193 [andrew@wa ro] Ok; the coffee worked. I found the 'key' :)

Whats so different about a Hash?
141196 [andrew@wa ro] irb(main):001:0> a=1 => 1
141197 [ruby.brian@g] irb(main):005:0> [1,2].hash === [1,2].hash
141199 [andrew@wa ro] ri Object.hash says
+ 141203 [florgro@gm i] Odd, I thought Hash#hash had already been added to Ruby itself recently.
| 141221 [andrew@wa ro] Is Hash#to_a guaranteed to sort the elements? My tests show that it does, but
| 141228 [florgro@gm i] I think that two hashes with the same elements will also have the same
| 141231 [andrew@wa ro] What does 1.9 do for Hash#eql?  ?
| + 141232 [andrew@wa ro] Actually,
| + 141237 [a.r.ferreira] class Hash
|   141240 [florgro@gm i] Hm, I'm okay with the last part (checking if all pairs are shared), but
|   + 141254 [a.r.ferreira] class Hash
|   + 141255 [andrew@wa ro] Whats wrong with just using
|     141267 [a.r.ferreira] You're right. Hash#== is already there. But, at least in Ruby 1.8,
+ 141207 [a.r.ferreira] Only if the object implementation (in case, Hash) agreeds on the
  141210 [andrew@wa ro] I've been discussing this on ruby-core aswell. It turns out that this was

Re: Fwd: Re: Whats so different about a Hash?
141208 [andrew@wa ro] See other message - same result as you.
141209 [decoux@mo lo] svg% ./irb
+ 141211 [andrew@wa ro] So 1.9 does what I would consider to be the _right thing_ :)
+ 141214 [andrew@wa ro] I assume {1=>2}.hash == {1=>2}.hash on 1.9 ?
  141215 [decoux@mo lo] yes,

Antlr (or other LR) and Ruby
141212 [nospam@no pa] A while ago I asked if it was possible to generate Ruby parsers for
141239 [surrender_it] I don't ever used it but did you took a look at RACC (included with ruby)?
141244 [eric_mahurin] think this is better than anything else out there because you

CSV parsing with optional spaces between fields
141213 [kgergely@mc ] I'd like to parse a CVS file, which can contain whitespaces between
372617 [cbciv@ya oo ] Just in case someone stumbles across this in the Google archive, here

ruby-yarv
141216 [pascal.guich] i made a yarv version of ruby19, so i tried ro use it.

[OT] Re: [ANN] Ruby Editor Plugin for jEdit 0.6 - method completion	release
141222 [tom@in oe he] Da, putsin.

FW: [Rake-devel] the origin of the strange bug on win2k
141226 [Daniel.Berge] I've forwarded this from the Rake dev mailing list in the hopes that
141234 [florgro@gm i] Can't you just do "exit ENV['RAKE_TEST_RUBY']"?
141322 [jim@we ri hh] ENV['RAKE_TEST_RUBY'] = "123"

[ANN] Ruby Quiz RSS Feed
141233 [james@gr yp ] Many have asked and I keep promising it with Ruby Quiz 2.0, but I've

ruby/irb within texmacs
141245 [thomas_adam1] Since there seems to be a lot of questions asked about plugins and

Ruby Editor Plugin for jEdit 0.6 installation question
141249 [briankbuckle] ...
141251 [rob.02004@gm] e.g.
141258 [briankbuckle] ...

Central Ohio Ruby Users
141250 [joeobjo@ya o] And yet another one ....

Rails with mod_proxy
141262 [braempje@ne ] I'm still setting up my shared rails websites. I'm not really satisfied with
141557 [premshree.pi] I'm not sure I understood everything, but you could specify the port

Thesaurus library?
141269 [richard@li s] Does anyone know of a library/package which will enable finding of
141272 [ruby.brian@g] Not really an answer, but If you train an LSA algorithm as it was
141274 [Daniel.Berge] While an interesting approach, it's probably easier to find a web service that does this and write a wrapper for it. :)
141275 [ruby.brian@g] That surely is simpler, but also a lot less interesting and time consuming... ;)

[ANN] Transaction::Simple 1.3.0
141276 [halostatue@g] I am pleased to announce the release of Transaction::Simple 1.3.0.
+ 141278 [jlam@iu kn w] Wow wow wow! This is so massively cool. Thanks for creating this. I can't wait to spend some quality time with this.
| 141286 [halostatue@g] I'm not quite sure what you're saying here. Transaction snapshots
+ 141288 [jeff.barczew] Could one use this as a simple way to provide dialog state across
  + 141290 [jlam@iu kn w] Yes - what you're saying does make sense.
  | 141295 [halostatue@g] Well, I do these against large objects. Transaction::Simple is a
  | 141308 [logancapaldo] This is cool. Would things like this work?
  | 141330 [halostatue@g] v.bad_method
  + 141292 [halostatue@g] Mmmm. Maybe, but it would depend on the architecture of your program

[ANN] phoenix.rb
141277 [james_b@ne r] The Phoenix Ruby Users Group will hold its next meeting on Thursday, May
141285 [Ara.T.Howard] i used to hang out at the tempe plantation all the time!  happy hour lattes
141293 [james_b@ne r] You still a Zonie?

[SOLVED?] Re: Class#singleton_of
141281 [Ara.T.Howard] ...

Re: Ruby Editor Plugin for jEdit 0.6 - method completion release
141283 [doodpants@ma] there

[OT]Re: [ANN] phoenix.rb
141296 [Ara.T.Howard] nope.  boulder, colorado.

another Tk question
141299 [joevandyk@gm] In Tk, what's the best way to show a large table of data that gets
+ 141326 [nagai@ai ky ] Use TkTable extension (http://sf.net/projects/tktable). :-)
| 141494 [joevandyk@gm] I can't find ext/tk/lib/tkextlib/SUPPORT_STATUS in Ruby's snapshot.
| + 141574 [gdprasad@gm ] I got over this problem by installing tcl-devel tk-devel in linux.
| + 141675 [nagai@ai ky ] Which version of Ruby do you use?
|   141740 [joevandyk@gm] Ruby 1.8.2.  The stable version.
|   141897 [joevandyk@gm] Ok, got the TkTable extensions installed and can run the TkTable Ruby
|   141917 [joevandyk@gm] I figured it out.  The way that worked for me was to use the :variable
|   + 141923 [joevandyk@gm] To get more detailed...
|   + 141927 [nagai@ai ky ] Do you talk about TkPhotoImage objects?
|     141929 [joevandyk@gm] Hm.  Is there any way I could do this on ruby 1.8.2?
|     + 141930 [joevandyk@gm] Would it be easier if I ported the application to FX-Ruby or something?
|     + 141941 [nagai@ai ky ] Replace tkextlib/blt.rb and tkextlib/blt/* to the latest CVS files.
+ 142259 [joevandyk@gm] I want to have the ability to color in titles in a TkTable according
  142303 [joevandyk@gm] Bah, figured it out.

compiler error: argument of type "VALUE *" is incompatible with parameter of type "VALUE"
141301 [me2faster@ex] I'm trying to build release 1.8.2 on a POSIX (1 and 2) based
141305 [ryand-ruby@z] We can't help you unless you provide more information. What OS?
141368 [me2faster@ex] I'm trying to build release 1.8.2 on a POSIX (1 and 2) based
141571 [nobu.nokada@] Does this patch help?
141872 [me2faster@ex] /usr/bin/c89 -g  -Wnowarn -I. -I.  -c eval.c
141916 [nobu.nokada@] Hmmm, the warnings disappeared by the patch, on gcc.
141918 [me2faster@ex] The initial diagnostics were errors, too, not warnings.  And yes, they
141919 [nobu.nokada@] I knew they were errors, so called "eccentric".
141925 [me2faster@ex] Yes, the patch was not applied correctly, since I had both the
141955 [nobuyoshi.na] Even if you deleted the first `rb_node_newnode' line and `+' sign at
141960 [me2faster@ex] #ifdef C_ALLOCA
142011 [nobu.nokada@] Committed.  Just recompile is needed.

Bug? Ruby on Windows - Compiled with C++ 2003
141302 [joaopedrosa@] require 'win32/registry'

.. and ... aren't operators, maybe they should be?
141304 [logancapaldo] I was just wondering if maybe the range construction syntax could be
+ 141473 [logancapaldo] Nobody likes this idea? Or is it just so dumb its not worthy of a response? ;)
| + 141474 [hal9000@hy e] Heh... so far I've never felt a need for these to
| | + 141475 [eric_mahurin] I completely agree.  I've wanted to override what's allowed in
| | + 141476 [markus@re li] Re-re-implementing.  There were (IIRC) at least two working versions
| + 141479 [markus@re li] I think the problem is that it was talked to death about six or eight
| + 141487 [bob.news@gm ] "Logan Capaldo" <logancapaldo@gmail.com> schrieb im Newsbeitrag
+ 141483 [lists@be tr ] Say `inf = 1/0.0', that works.
  141485 [eric_mahurin] class Range

Ruby Techs - A Graphic
141306 [joaopedrosa@] Hey,

String Manipulation Nuby Question
141307 [chris@se gu ] I have a Person with title, forename and surname (all of which are
+ 141309 [logancapaldo] "#{title} #{forename} #{surname}".strip
| + 141312 [chris@se gu ] Thanks for coming back so fast.  Unfortunately, this doesn't pass one of
| + 141313 [dblack@wo bl] Much more succinct than mine :-)  You would, however, have to put a
| | 141319 [chris@se gu ] Cool.  Thanks again.
| + 141314 [drbrain@se m] This leaves spaces in the middle.
| + 141315 [schlu-do@gm ] But that would leave double spaces in the middle if 'forename' was
|   141317 [logancapaldo] Ok Ok I admit it! I forgot the squeeze! ;-)
|   + 141318 [dblack@wo bl] "  Mrs.   Emma  Peel   ".strip.squeeze
|   + 141320 [logancapaldo] Ooops, one more mistake in my iteration, stop listening to me
+ 141310 [dblack@wo bl] I'd let Ruby do more of the work, especially the iterating through the
  141316 [chris@se gu ] Hmm, an hours work and a five line implementation replaced by one line a
  141335 [james_b@ne r] Yeah, but it's a great trip and you have excellent company.

[ANN] Ruby Editor Plugin for jEdit 0.6.1 - method completion release II
141311 [rob.02004@gm] Version 0.6.1 of jEdit's Ruby Editor Plugin has been released and is
+ 141606 [ilias@la ar ] I've looked at this, but it's much to complex.
+ 142249 [stefan@ma li] Can someone confirm a defect I experience on my system (I'm not sure
  142691 [stefan@ma li] Works with current version. Sorry for the noise.

Ruby-tk question
141321 [joevandyk@gm] What's the easiest way to rotate a Tk Canvas Polygon?
+ 141323 [joevandyk@gm] Hm.
+ 141327 [nagai@ai ky ] Probably, you'll have to calculate coords by yourself.
  141328 [joevandyk@gm] Hm, I have no idea how to do that.  Trig was so long ago.
  141331 [nagai@ai ky ] That is field of Mathematics. :-)
  141358 [joevandyk@gm] It's horribly difficult for someone who hasn't done math in years.
  + 141372 [logancapaldo] def deg2rad(x)
  | + 141373 [logancapaldo] One last note, this function is gonna rotate like it was on a
  | | 141375 [martindemell] Usual idiom is to translate the coordinates so that the point you want
  | + 141754 [snowzone5@ho] this sounds like a good idea for a 'numerical recipies in ruby' page.
  + 141412 [nagai@ai ky ] Here is an example. :-)
    141452 [joevandyk@gm] Perfect!  Thanks.

Fwd: [SOLUTION] Please Forward: Ruby Quiz Subumission
141324 [james@gr yp ] ...

RCR 303: nil should accept missing methods and return nil
141334 [john.carter@] A very simple and generic way of improving the reliability of Ruby
+ 141336 [alex@ve k. n] I, for one, would rather see it throwing an error as it is now. Dead
+ 141338 [spoooq@gm il] This would be a big change to behaviour and a lot of existing programs
| + 141339 [hal9000@hy e] I'll comment also.
| | 141345 [john.carter@] Be careful about exactly what is being asked for and what has been done
| | + 141348 [halostatue@g] Right. But why should I have to make that change for just about any
| | | + 141352 [john.carter@] Ah, but you're wrong, nil is "no thing, of any type, is here."
| | | | 141515 [billk@ct .c ] #<NoMethodError: undefined method `[]' for nil:NilClass>
| | | + 141383 [jim@we ri hh] Actually, it is the current behavior that forces you to write the "unless
| | |   + 141417 [lthiryidontw] But, if foo wasn't supposed to be nil, what would happen? foo.bar gives nil,
| | |   + 141446 [halostatue@g] Not really. The precise example I gave is a bad one. But generally,
| | |     141458 [jim@we ri hh] As I mentioned before, I'm in the "throw an exception" camp.  But the
| | |     + 141469 [vjoel@PA H. ] $ cat missing_obj.rb
| | |     | 141577 [mrcode@ne ro] I really like this. I think it is worthy of being put into a library
| | |     + 141480 [ruby-ml@ma i] Actually, throwing an exception might be better to do at an earlier
| | + 141367 [matz@ru y- a] I know Objective-C's nil works like that.  I once developed an OOP
| |   141406 [Ara.T.Howard] perhaps
| |   141416 [ruby-ml@ma i] Well, there is already $DEBUG. I think that should work fine, in case
| |   141418 [Ara.T.Howard] not at all - $DEBUG would need to be on by defualt then and most of the time
| |   141422 [ruby.brian@g] Wouldn't it be even simpler to include the proposed nillify.rb in the
| + 141341 [john.carter@] If there were a lot of programs deliberately doing
|   + 141343 [aredridel@nb] Only if the right thing is "do not crash ever".
|   | + 141346 [spoooq@gm il] Ive got to agree with this - sometimes crashing really is the best
|   | + 141354 [john.carter@] Is it? Prove me wrong empirically...
|   |   141523 [dolio@ca e. ] I certainly don't use Ruby in large business applications (just my personal
|   + 141443 [halostatue@g] Um. I think that the point being made is that crashing, in this
|     141490 [cyent@xt a. ] Ah, but _would_ it. On any other object I would agree with you. But nil
|     + 141493 [vjoel@PA H. ] Always look on the bright side of life...
|     | 141508 [hal9000@hy e] Now there's a role model. I'd love to be like him,
|     + 141511 [halostatue@g] Not really.
|       141711 [john.carter@] Hmm. Interesting.
|       + 141714 [ruby-ml@ma i] Well, one could redesign so that nil is never returned from
|       + 141752 [halostatue@g] In this *particular* case, it is usually a case of forgotten
+ 141363 [langstefan@g] I don't like it. It would hide many bugs. I want Ruby to throw an
| 141364 [spoooq@gm il] John wants to be proven wrong with real code. (Well, Im sure he doesnt
+ 141376 [bob.news@gm ] "John Carter" <john.carter@tait.co.nz> schrieb im Newsbeitrag
| 141499 [cyent@xt a. ] Think of an array with 42 elements. Access element 55. It returns nil. How
| 141519 [bob.news@gm ] "Cyent" <cyent@xtra.co.nz> schrieb im Newsbeitrag
+ 141377 [bob.news@gm ] "John Carter" <john.carter@tait.co.nz> schrieb im Newsbeitrag
+ 141486 [flori@ni e. ] Great! I've so long waited for something like this. I have just written
| 141496 [cyent@xt a. ] I presume the typo on @coutner was deliberate for illustrative purposes...
| + 141502 [flori@ni e. ] But unlike Perl, Ruby doesn't require warning switches to gloss over bad
| + 141503 [thomas_adam1] I fail to see why you're comparing the two, when perl's use of "-w" and
| + 141583 [mrcode@ne ro] So your argument is that because this particular error appeared when
+ 143154 [usenet@is ik] As far as I understand the whole discussion some wish this behaviour to be
  143155 [bob.news@gm ] What about #nil?
  143157 [usenet@is ik] nil.nil? -> true
  143159 [bob.news@gm ] I'm not sure I'm following you here.  If it's an expected nil (like for
  143161 [usenet@is ik] Well, from my point of view the semantics of #nil_friendly simply is to not
threads.html
top