160952-162042 subjects 161330-162064

AND THE WINNER IS... [WAS] Re: How to get non-unique elements from an array?
161186 [Ara.T.Howard] don't worry -- your tax dollars funding my testing ;-)
+ 161207 [SimonKroeger] Hmm, it doesn't effect the winners, but i would still like to mention
+ 161221 [james@gr yp ] It's good to know I sometimes do the right thing, completely by
+ 161228 [pauldacus@gm] Yes... my solution seems to suck in that it doesn't work & is slow.  I
  161249 [lyndon.samso] ...

Are we going to see a Net::Netrc anytime soon?
161188 [mailing-list] Is the standard Ruby distribution going to include a Net::Netrc module

usage 0.0.4 - The IO edition
161193 [stevetuckner] What is usage?
161434 [netghost@gm ] This looks really handy, could you post a few more examples?
161447 [stevetuckner] I am not sure what you would like to see for examples. Including with

class#method notation
161197 [guoxiaotian@] what's the purpose of Ruby's Foo#bar notation(what's wrong with
+ 161198 [oeaniz@gm il] Foo#bar : bar is an instance method of the class Foo
| 161204 [kballard@gm ] You can also use Foo::bar to mean a class method, but that form is
+ 161203 [jamis@37 ig ] In documentation, Foo#bar specifically indicates an instance method
  161208 [guoxiaotian@] that makes sense, thanks!

:whatever => thing  QUESTION
161202 [warrens@ac c] I see this notation, which appears to be undefined outside of hash literals, all over the
+ 161209 [christophe.g] Basically, those are hash literals too. They look a bit like keyword
| + 161213 [ruby.brian@g] It works not only when the method has only one argument, but always
| | + 161215 [christophe.g] Thanks for pointing that out. I've only ever seen this with methods that
| | | 161219 [james@gr yp ] find(:all, :conditions => "whatever...")  # first arg not part of hash
| | + 161217 [martindemell] And (since none of the examples have made that explicit), the hash can
| + 161231 [cyclists@nc ] It was present in 1.6, too, and the online Pickaxe documents it. See the
+ 161212 [jamis@37 ig ] hash = { :action => "overthere" }

Catch/throw vs rescue/raise/retry
161218 [warrens@ac c] There appear to be 2 separate exception mechanisms in Ruby, catch/throw and
+ 161222 [the.mindstor] I haven't met/read about catch/throw. The begin/rescue/ensure/end is
+ 161223 [ef@al m. it ] nd
| 161333 [bob.news@gm ] catch/throw and
+ 161224 [khaines@en g] Not really.  A throw just lets one unwind from some deep nesting without

rescue'ing OpenSSL errors
161220 [mannl@gm .c ] I'm trying to rescue whatever errors the library wants to throw,
161227 [ef@al m. it ] By default, rescue only catches exceptions that are derived from
161237 [mannl@gm .c ] thanks about pointing that out. Another thing learned :)
161250 [toby@cb g. e] Your clue is the last part of the error. It appears as if the OpenSSL

Re: [SOLUTION] Lost Cities (#51)
161225 [james@gr yp ] Well, it's not brilliant yet, but I've run out of time to keep
161256 [daniels@pr n] Hmmm.... tried running your client through my tester, and it ends up
+ 161373 [james@gr yp ] I didn't test my player using your tester, so it may not work there.
+ 161398 [anthony.mora] Thanks for those fixes. I found the other problem. Risk player keeps
  161408 [james@gr yp ] ...

Killing Threads & Processes on Windows
161230 [caldridge@gm] x = Thread.new { system("c:/program files/internet explorer/iexplore.exe") }
+ 161242 [nobu.nokada@] A thread and a process spawned within it are not related.
| + 161268 [caldridge@gm] Thank you for the response.
| | + 161280 [dave.burt@gm] require 'win32ole'
| | | + 161287 [caldridge@gm] Dave, that my friend was EXACTLY what I wanted. Thank you!!!
| | | + 161309 [nobuyoshi.na] Does it work on Win9X?
| | |   161338 [dave.burt@gm] No, I don't think so -- I think all of WMI is WinNT family only, but
| | |   + 161344 [nobuyoshi.na] I know about TerminateProcess(), but think it is considered
| | |   | 161392 [dave@bu t. d] You're probably right, it is severe, but rb_waitpid shouldn't return with
| | |   | 161395 [dave@bu t. d] .... or just hang without closing the process?
| | |   | 161421 [Daniel.Berge] The win32/process package uses a CreateRemoteThread() + ExitProcess()
| | |   | 161432 [nobu.nokada@] It's also only for NT, isn't it?  Well, to be honest, I'd like
| | |   | 161437 [Daniel.Berge] Probably.  I consider Win9x a dead platform, so I don't worry myself
| | |   | 161590 [nobuyoshi.na] Actually, we already had buried it as a development platform,
| | |   | 161609 [dooby@d1 .k ] Very many 98se (and, presumably ME) DLLs are NT versions
| | |   | 161671 [curt.hibbs@g] ...
| | |   | 161680 [dooby@d1 .k ] Yes, thanks for that.
| | |   | 161723 [christophe.g] He did (at least for Windows ME :) ). I sent a bug report because the
| | |   + 161601 [dooby@d1 .k ] I wanted to point out, though, that passing a Ruby string
| | + 161367 [snowzone5@ho] or you can use a combination of sysinternals' pslist, and pskill. i
| | + 162885 [warrens@ac c] You can do WMI in Ruby.  There's a library already built for this.
| |   165084 [caldridge@gm] for future reference to others and thanks to dave.
| |   165085 [caldridge@gm] whoops..
| + 161278 [dave.burt@gm] Could IO#close use ExitProcess() on Windows?
+ 161285 [sean.ohalpin] You might want to take a look at Daniel Berger's win32/process package

require problem
161232 [ruby@re ry n] mouse.rb
+ 161243 [collinsj@se ] If you mean your are requiring 'mouse' in rabbit, then my_string would
+ 161321 [ruby.brian@g] Unlike in php or c require and load do not simply replace the
  161343 [ruby@re ry n] Thanks I understand what you are saying... however consider the
  161349 [ruby.brian@g] this is a known bug in _why's tutorial. It would be a good idea if it
  161352 [ruby@re ry n] Thanks Brian.
  161492 [collinsj@se ] It might be instructive to point out that the reason changing code_words

bad String blows up world using length method!!!!!!!!!
161233 [xeno@es im .] Yeah, I'm pissed.  This kind of thing shouldn't happen.
+ 161234 [jamis@37 ig ] Xeno,
| 161308 [xeno@es im .] Yeah, hey sorry for getting so uptight guys, but it was really crazy,
+ 161240 [james@gr yp ] Something is fishy here.  Please provide an example of broken code...
+ 161244 [dblack@wo bl] def contentvariable.size
+ 161252 [Ara.T.Howard] can we see the actual code?  how did you install ruby?
+ 161319 [google@er kv] Apart from the problem you described, this code will always
  161380 [kballard@gm ] I prefer the more sensible

Building Extensions
161238 [mikelygee@ih] I'm trying to write a Ruby extension to access some C++ drivers that are

Seeking Contributions for O'Reilly's Ruby Cookbook
161245 [leonard.rich] Lucas Carlson and I are happy to announce that we're working on a Ruby
161260 [l.d.u.n.c.a.] i sometimes farm this site for ideas. i think the contributions are
161294 [gsinclair@gm] Be careful with that.  PLEAC entries are translated from the Perl
161301 [dblack@wo bl] I'd add that I was told at one point by the PLEAC Ruby maintainer (or
161639 [gsinclair@gm] Yeah, that's of little concern to someone writing a fresh cookbook,
161650 [peter@se an ] Well we could start with a couple of chapters for ideas
+ 161652 [bogomil@sp s] What abput XMLRPC?
| + 161655 [botp@de mo t] #http://www.crummy.com/writing/RubyCookbook/
| + 161679 [pertl@gm .o ] my favourite...
+ 161656 [peter@se an ] Got me thinking, maybe the first chapter
| + 161660 [danieljohnle] * blocks, closures and yeilding (and using Ruby functionally)
| | 161664 [peter@se an ] I speak with no authority (on anything) here but a cookbook is where
| | + 161667 [danieljohnle] * Using Ruby like a functional programming language (e.g an I/O monad)
| | + 161668 [james_b@ne r] I agree; a cookbook is more generally organized around tasks or goals;
| |   + 161675 [hgs@dm .a .u] System administration tasks (lots to choose from).
| |   + 161705 [rdm@cf l. om] Seeing all these ideas go wafting by, I'm struck by the notion that
| |     161757 [gsinclair@gm] Yes, but it's a _lot_ of effort.  At least three people have tried to
| |     162325 [danieljohnle] I am willing to help with a cookbook if you have a section of recipes
| + 161704 [surrender_it] require 'sdl'
+ 161690 [leonard.rich] I see lots of good recipe ideas in this thread; thanks to everyone for
| 161708 [wmwilson01@g] I'm a sysadmin who uses Ruby :O)  How about a logfile reader.  Here's
| 161709 [wmwilson01@g] Hmm, apparently I didn't do a good job removing the work e-mail
+ 161710 [ruby-ml@ma i] Or maybe introduce KirbyBase with a caveat "unless you really

[ANN] [RCR] Cut-based AOP
161251 [transfire@gm] This is to "officially" announce an RCR that I posted to RCR archive
+ 161347 [christophe.g] I've just voted "strongly advocate" for it! After reading about AspectJ, I had
| 161364 [calamitates@] Great! One down, many more to go ;-)
| + 161368 [christophe.g] LOL! Seriously, I really hope this RCR gets accepted. It is nicely
| | 161422 [calamitates@] Thank you for the kind words!
| + 161400 [eric_mahurin] What's the reason for naming the cut?  In all of the code I've
|   161414 [calamitates@] Well, naming the cut is interesting if you want to reopen the cut and
|   161418 [christophe.g] It isn't. Both "Cut.new(A) {...}" and "cut <<obj ... end" are shown in the text
+ 161594 [matz@ru y- a] I understand the basic idea.  How about introducing a new method
| + 161614 [sean.ohalpin] I like the idea but may I point out that "preclude" has a meaning very
| | 161622 [nobuyoshi.na] The method lookup order feels "post"clude rather than
| + 161630 [calamitates@] This is indeed an option we have considered, and not completely dismissed
| + 161658 [eric_mahurin] +1, if it is what I think you mean.  Is this what you mean?
|   161661 [pit@ca it in] I like it too, but instead of having to remove methods from modules, it
|   161669 [eric_mahurin] class C
+ 161619 [the.mindstor] I would like to comment on this proposal. I can agree right from the beginning that the points here
| 161632 [christophe.g] From the rest of the discussion here about this RCR, I have understood (and
| 161670 [the.mindstor] #: Christophe Grandsire changed the world a bit at a time by saying on  10/20/2005 2:20 PM :#
+ 161666 [daniel.schie] +1
+ 162853 [ed.howland@g] The concept seems clear to me. But I have an aditional question. Will

Applying ActiveRecord path...
161259 [fernand@di .] I am trying to use Rails with Oracle 9 on a legacy schema. Each table
161720 [drbrain@se m] Is where the answers to Rails questions may be found.

Ruby Quiz Idea
161261 [lyndon.samso] All this fidding with bits in the Thread "How to get non-unique
+ 161267 [billk@ct .c ] require 'odeum_index'
+ 161375 [james@gr yp ] [snip quiz idea]
  161410 [leavengood@g] It sounds interesting to me. Despite doing all the benchmarking I
  + 161416 [Ara.T.Howard] memory should could too - the user should at least provide a big estimage of
  + 161473 [james@gr yp ] I've added this problem to the quiz queue.  It will show up in a few
    161784 [dbalmain.ml@] ...

How to hire a rubyist?
161262 [jeff.fry@gm ] Hey there,
+ 161275 [infocommon@g] ...
+ 161312 [zedshaw@ze s] You know, this is something I've been thinking about for a while now.
| 161465 [tomsonp@ee p] I know exactly now you feel.  I've been burried in work on my Master's thesis
+ 161313 [zedshaw@ze s] Jeff,
| 161350 [none@no e. o] I'm definately in agreement with Zed's whole post.
| 161441 [jeff.fry@gm ] Aemca, Zed, and Infocom, thanks for your replies.
| + 161446 [tanner.burso] ===Tanner Burson===
| + 161463 [florgro@gm i] There's nothing better than a job where there is people that are a
+ 161549 [scott@al da ] I suspect you will need to look for 'right thinking' people that can be
+ 161703 [wmwilson01@g] Have you tried posting the job to the Watir mailing list?
  161730 [jeff.fry@gm ] Defintely...but it has a much smaller membership than this list does,
  161964 [none@no e. o] Good to hear, keep us posted :)

mysql & ruby on windows?
161264 [ralph@lk lk ] The only instructions for getting ruby to access mysql that I've been able to find seem to be
+ 161266 [james_b@ne r] Simplest way is to get the pure-Ruby MySQL binding.
| 161346 [ralph@lk lk ] I followed these instruction.
+ 161303 [mzhang.cn@gm] You can install RubyForApache.
+ 163075 [xrfang@ho ma] Ruby/MySQL is from the same author of mysql-ruby. The difference is that

gem install problem?
161270 [erne@po er a] I've been running ruby on WindowsXP without a problem  Ruby Gems
161288 [halostatue@g] require 'rubygems'
161289 [erne@po er a] That did the trick.  Thanks.

Re: [RCR] Cut-based AOP
161277 [dave.burt@gm] What is a cut? Is it a subclass that hides its parent's class? Are the
161362 [calamitates@] Did you mean the following? (Otherwise the class definition of Bar is
161371 [dave@bu t. d] Quite. Let's imagine that's what I said.
161385 [calamitates@] Done :-)
+ 161401 [dave@bu t. d] Yes. We're talking about the Cut in the inheritance heirarchy.
| 161428 [calamitates@] Ah, I see. But you asked "shouldn't cut be a module". There's no "a"
| + 161435 [transfire@gm] Peter covers this well in his repsonse. I just want to point out one
| + 161562 [dave@bu t. d] Ah, yes. I'm not doing too well with accuracy in this thread, am I?
|   161581 [itsme213@ho ] +1.
|   161682 [transfire@gm] Additionally, Cuts exist in proxy form to allow modules to be
|   161693 [transfire@gm] Yes, in a way you are correct. Ruby provides enough reflective
|   + 161695 [transfire@gm] Your .16 Yen is appreciated :) In fact we have discussed similar
|   | + 161697 [transfire@gm] No. The idea is that it would use a proxy-cut, just as a module uses a
|   | | 161701 [stevetuckner] ...
|   | + 161802 [daniel.schie] I just don't think the lesser than character should be used when it
|   |   + 161804 [christophe.g] I disagree. Cuts are, for all purposes, transparent subclasses. They are
|   |   + 161832 [eric_mahurin] I don't like the cut syntax either.  It doesn't seem to
|   |   | 161874 [calamitates@] I see. So is that the problem? You have a different concept in your head,
|   |   | 161920 [eric_mahurin] You are starting to touch on the inconsistency by asking for
|   |   | 161929 [calamitates@] No I'm not. My previous remarks have nothing to do with AOP. These were
|   |   | 162044 [itsme213@ho ] Does this also provide a quite general form of dependency injection,
|   |   + 161833 [eric_mahurin] One more thing.  This RCR introduces a new reserved word to the
|   |     161898 [calamitates@] The syntax of cuts parallels that of subclassing, preclude parallels
|   + 161716 [the.mindstor] #: Trans changed the world a bit at a time by saying on  10/20/2005 6:36 PM :#
+ 161404 [jeff.darklig] Although I see the power of the examples and the ideas, it seems like
  161419 [calamitates@] Thanks for contribution ;-)

Rails webapp
161290 [lyndon.samso] Another cool rails app. http://web2ornot.com

problem installing gems
161297 [petermichaux] I am using OS X 10.3 and I succesfully installed ruby 1.8.2
161300 [petermichaux] I was trying gems 0.8.11

problem setting up virtual host on localhost
161305 [petermichaux] I'm using OS X with Apache and am trying to set up a virtual host to
161310 [petermichaux] Sorry. Nevermind. Too excited about starting with Ruby on Rails:)

Recommended way to create an object from XML (or other) file?
161317 [Alexander.J.] I need to be able to edit small files representing simple objects.
161318 [jqshenker@gm] Yaml?
161327 [Alexander.J.] Oups, of course Yaml! (I knew I had to read past page 400 in the

How to stop periodically_call_remote on Rails?
161322 [dido.sevilla] I've been doing some experimentation with Ajax on Rails after reading

FXImage problems
161324 [makenai@gm i] ...
161326 [makenai@gm i] ...

[SOLUTION] Lost Cities (#51)
161325 [daniels@pr n] Here's my overly complicated player.
161379 [james@gr yp ] This is really cool stuff.  Thanks for sharing!

How to use swig and ruby with an existing DLL
161328 [ivan.muzzoli] Dear all,

Byte order reading on windows versus unix in ruby
161329 [robert.evans] I have written some code that reads bytes from a file in bigendian
+ 161331 [    s@xs .d ] File.open("name", "rb")
| 161336 [robert.evans] ...
+ 161332 [mulperi@cc h] Try to open file with "rb" option i.e. File.open("foobar", "rb").
+ 161337 [tim@ve et .a] ASCII 26 is the EOF character for text files in DOS/Windows
  161339 [robert.evans] Thanks for the detailed description.
  161369 [zdennis@mk e] Isn't bindmode supposed to be getting set automatically? Or is this up
  161382 [matz@ru y- a] Short answer: no.
  162469 [pit@ca it in] Shouldn't binmode be the default? This way we'd have the same behaviour
  162487 [sean.ohalpin] Possibly because it ~is~ the default. If you changed the default to
  162514 [pit@ca it in] Yes, I thought of that, too. But I really doubt that there are many Ruby
  162607 [sean.ohalpin] 'Non-binary' mode (or 'text mode') comes from the underlying C
  162692 [pit@ca it in] Thanks for your input, Sean. I answered the other thread.