161186-165085

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 graypr] 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] .keys

^ 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 gma] 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 gmail] Foo#bar : bar is an instance method of the class Foo
| 161204 [kballard gma] You can also use Foo::bar to mean a class method, but that form is
+ 161203 [jamis 37sign] In documentation, Foo#bar specifically indicates an instance method
  161208 [guoxiaotian ] that makes sense, thanks!

^ :whatever => thing  QUESTION
161202 [warrens actc] 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 graypr] 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 37sign] hash = { :action => "overthere" }

^ Catch/throw vs rescue/raise/retry
161218 [warrens actc] 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 alum.mit.] nd
| 161333 [bob.news gmx] catch/throw and
+ 161224 [khaines enig] Not really.  A throw just lets one unwind from some deep nesting without

^ rescue'ing OpenSSL errors
161220 [mannl gmx.co] I'm trying to rescue whatever errors the library wants to throw,
161227 [ef alum.mit.] By default, rescue only catches exceptions that are derived from
161237 [mannl gmx.co] thanks about pointing that out. Another thing learned :)
161250 [toby cbcg.ne] Your clue is the last part of the error. It appears as if the OpenSSL

^ Re: [SOLUTION] Lost Cities (#51)
161225 [james graypr] Well, it's not brilliant yet, but I've run out of time to keep
161256 [daniels pron] Hmmm.... tried running your client through my tester, and it ends up
+ 161373 [james graypr] 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 graypr] charset=US-ASCII;

^ 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 burt.id] You're probably right, it is severe, but rb_waitpid shouldn't return with
| | |   | 161395 [dave burt.id] .... 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 d10.ka] Very many 98se (and, presumably ME) DLLs are NT versions
| | |   | 161671 [curt.hibbs g] Just to add my voice...
| | |   | 161680 [dooby d10.ka] Yes, thanks for that.
| | |   | 161723 [christophe.g] He did (at least for Windows ME :) ). I sent a bug report because the
| | |   + 161601 [dooby d10.ka] 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 actc] 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 redry.n] mouse.rb
+ 161243 [collinsj sea] 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 redry.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 redry.n] Thanks Brian.
  161492 [collinsj sea] It might be instructive to point out that the reason changing code_words

^ bad String blows up world using length method!!!!!!!!!
161233 [xeno eskimo.] Yeah, I'm pissed.  This kind of thing shouldn't happen.
+ 161234 [jamis 37sign] Xeno,
| 161308 [xeno eskimo.] Yeah, hey sorry for getting so uptight guys, but it was really crazy,
+ 161240 [james graypr] Something is fishy here.  Please provide an example of broken code...
+ 161244 [dblack wobbl] def contentvariable.size
+ 161252 [Ara.T.Howard] can we see the actual code?  how did you install ruby?
+ 161319 [google erikv] Apart from the problem you described, this code will always
  161380 [kballard gma] 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 wobbl] 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 semant] Well we could start with a couple of chapters for ideas
+ 161652 [bogomil spis] What abput XMLRPC?
| + 161655 [botp delmont] #http://www.crummy.com/writing/RubyCookbook/
| + 161679 [pertl gmx.or] my favourite...
+ 161656 [peter semant] Got me thinking, maybe the first chapter
| + 161660 [danieljohnle] * blocks, closures and yeilding (and using Ruby functionally)
| | 161664 [peter semant] 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 neur] I agree; a cookbook is more generally organized around tasks or goals;
| |   + 161675 [hgs dmu.ac.u] System administration tasks (lots to choose from).
| |   + 161705 [rdm cfcl.com] 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 magi] 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 ruby-la] 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 capitain] 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 dim.] I am trying to use Rails with Oracle 9 on a legacy schema. Each table
161720 [drbrain segm] 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 cts.co] require 'odeum_index'
+ 161375 [james graypr] [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 graypr] I've added this problem to the quiz queue.  It will show up in a few
    161784 [dbalmain.ml ] Hey guys,

^ How to hire a rubyist?
161262 [jeff.fry gma] Hey there,
+ 161275 [infocommon g] ...
+ 161312 [zedshaw zeds] 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 zeds] Jeff,
| 161350 [none none.co] I'm definately in agreement with Zed's whole post.
| 161441 [jeff.fry gma] Aemca, Zed, and Infocom, thanks for your replies.
| + 161446 [tanner.burso] ===Tanner Burson===
| + 161463 [florgro gmai] There's nothing better than a job where there is people that are a
+ 161549 [scott alodar] 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 gma] Defintely...but it has a much smaller membership than this list does,
  161964 [none none.co] Good to hear, keep us posted :)

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

^ gem install problem?
161270 [erne powerna] I've been running ruby on WindowsXP without a problem  Ruby Gems
161288 [halostatue g] require 'rubygems'
161289 [erne powerna] 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 burt.id] Quite. Let's imagine that's what I said.
161385 [calamitates ] Done :-)
+ 161401 [dave burt.id] 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 burt.id] Ah, yes. I'm not doing too well with accuracy in this thread, am I?
|   161581 [itsme213 hot] +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] Please expand on that last sentence please. Could this cut feature be
|   | + 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 hot] 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 gmai] I'm trying to combine FXRuby with RMagick. I've searched the mail archives
161326 [makenai gmai] Oops! Sorry. I was supposed to post this to the fxruby list instead. Feel

^ [SOLUTION] Lost Cities (#51)
161325 [daniels pron] Here's my overly complicated player.
161379 [james graypr] 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 xss.de] 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 vegeta.a] ASCII 26 is the EOF character for text files in DOS/Windows
  161339 [robert.evans] Thanks for the detailed description.
  161369 [zdennis mkte] Isn't bindmode supposed to be getting set automatically? Or is this up
  161382 [matz ruby-la] Short answer: no.
  162469 [pit capitain] 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 capitain] 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 capitain] Thanks for your input, Sean. I answered the other thread.
threads.html
top