194368-196129 subjects 194812-196098

Array#delete_if! - a method to delete and return all array items for which the block evaluates to true.
194621 [alder.green@] Here's a method to delete and return all items in an Array for which
194622 [drbrain@se m] $ ri Array#reject!
194623 [drbrain@se m] $ ri partition
194629 [alder.green@] Thanks. I didn't know about #partition.
194630 [daniels@pr n] class Array
194632 [alder.green@] Yup, good one. Thanks.

for those who have not seen the news-group
194625 [agorilla@gm ] The ruby-forum _is_  the ruby news group (unfortuntately, that's not obvious).
194697 [shortcutter@] Are you sure about that?  I see recent postings from the forum on the
194750 [agorilla@gm ] My mistake.  I wasn't thinking about the 'disconnect'.

Retreiving column values from a variable column name
194627 [csmetcalfe@h] I need to retrieve a value from a column which I reference from a
194628 [steve.debaun] text = shape.send(p)

ruby/cocoa delegate issue
194633 [rt@al m. pi ] And when I say "issue", I really mean "crash". ;-)
195424 [groups@gr nd] rubycocoa-talk@lists.sourceforge.net

ruby 1.8 & soap
194636 [tallison@ta ] I'm trying to run some test scripts using SOAP on a debian installation.
194637 [tallison@ta ] Nothing known about...
194638 [james_b@ne r] James Britt
194641 [tallison@ta ] Not a lot of documentation, eh?

How to get bitmap file via ethernet
194639 [rubyprogramm] I have connected a PC (Windows2000) to a camera controller and I want
194643 [leavengood@g] How much do you know about the protocol used for transmitting the
194690 [rubyprogramm] That was it.

RDoc Hacks still out there?
194642 [james@gr yp ] Does anyone know where I can get a copy of RueDoc:  RDoc Hacks?
194655 [james_b@ne r] Did that morph into Rdog?
194663 [m.fellinger@] No, this was a modification to rdoc from rue, i think he's hanging out on
194667 [james_b@ne r] Ah so.

gmailer library problem
194644 [turtlethief@] I've been using the gmail library in ruby to connect to gmail for some
194653 [phasis68@ho ] What's your ruby version and gmailer version?
194783 [turtlethief@] rc 2 installer? Do I need to have that also? I'm a noob with all

FXRuby not seeing Ruby headers
194648 [rubyforum@gm] I'm trying to install FXRuby (in order to user FreeRIDE. Are there any
+ 194649 [omar@uo .e u] Yes, you can try RADRAILS It is still on beta but much better than a simple
+ 195093 [lyle.johnson] Which operating system is this?
  195095 [rubyforum@gm] It's Darwin (Unix) on Mac OS X.
  195099 [lyle.johnson] ...
  195244 [rubyforum@gm] i have the latest version installed, does that still apply? it doesn't
  195669 [rubyforum@gm] Okay, I'm having the same problem again when trying to install the

ri broken?
194652 [warrens@ac c] ...
194654 [james_b@ne r] Nothing, probably.  Did you use the "1-click" Windows installer package
+ 194738 [ml.chibbs@gm] ...
| 194740 [james_b@ne r] What are these other problems?
| 194806 [ml.chibbs@gm] ...
| 194808 [james_b@ne r] Wow.    Painful.
| 194827 [leavengood@g] The directory layout changed quite a bit in the latest installer.
| 194829 [james_b@ne r] Interesting.  I had thought there were well-defined locations for
| 194831 [leavengood@g] The openssl example is a prime deal breaker. To fix this problem you
| 194832 [james_b@ne r] But it's not not just gems that would have to migrate, but all the libs
| 194833 [ara.t.howard] not to mention all binary gems would need re-compiled.
| 194849 [ml.chibbs@gm] ...
+ 195180 [warrens@ac c] Thanx guys.  That fixed it.  I nuked the site directory and left the system directory and

Re: [ANN] win32-eventlog 0.4.0
194656 [botp@de mo t] # The Win32 Utils Team is pleased to announce the release of

Method '!='
194658 [vshepelev@im] 'a'.send('==', 'b') #it works, returns true
+ 194659 [collinsj@se ] a != b gets turned into !(a == b) or something like that.
| 194661 [vshepelev@im] It's intuitively understandable; but I feel myself very uncomfortable when I
| 194662 [alder.green@] irb(main):007:0> 'a'.!= 'b'
| 194664 [vshepelev@im] Hmmm... Really :)
| 194666 [sroberts@un ] Perhaps <=>
| 194669 [vshepelev@im] No-no.
| 194671 [sroberts@un ] Ok, I see.
| 194674 [vshepelev@im] OK, some more pieces of puzzle :)
| + 194678 [dave@bu t. d] []
| + 194686 [shortcutter@] This solution is not very nice, but the usage of != as symbol in
+ 194660 [vshepelev@im] Sorry. Return 'false', of couse.
+ 194680 [daniels@pr n] The syntax magic makes != work... but that doesn't mean you can't create
  + 194681 [vshepelev@im] Wow! Elegant. Thanks.
  + 194683 [dave@bu t. d] A good point.
  + 194684 [alder.green@] irb(main):013:0> class Object; define_method(:!=) {|arg| self != arg }; end
    194685 [dave@bu t. d] No, just that symbol syntax. :!= is not a valid symbol. "!=" will work
    194687 [alder.green@] Yup, good tip. However, the relations between the operator syntax and
    194692 [collinsj@se ] foo.==(1) returns the string 'Foo#== was called' which is true. Then it
    194696 [alder.green@] Do'h!  You are correct, of course.

help regarding extracting a particular value in a file
194670 [tanushree.bh] ...
194688 [shortcutter@] Kind regards
194691 [Nuralanur@ao] ...
194695 [tanushree.bh] ...
194718 [Nuralanur@ao] ...

DL: Array of symbols in a dynamic lib
194676 [benjohn@fy h] With DL, is there a way to ask for the symbols that exist within a
194736 [ara.t.howard] it's not exactly what you're asking, but try
194743 [ruby@an hr p] } it's not exactly what you're asking, but try
194746 [ara.t.howard] indeed.  i'm still drinking my coffee! ;-)
194811 [benjohn@fy h] Brilliant :) Thanks Ara and Greg - they look good.
194813 [benjohn@fy h] Interesting that objective c methods are verbosely described in a

making 1.8.4 default
194677 [turtlethief@] I've tried installing ruby 1.8.4 on my Mac OS X, but ruby 1.8.2 remains
194704 [rmagick@gm i] Ruby 1.8.2 is installed in /usr/bin. Probably (if you took the defaults)

Differences between Ruby 1.8 and 1.9
194693 [vladgalu@gm ] I thought of giving 1.9 a try and from what I saw by googling there
194698 [m.fellinger@] The economy depends about as much on economists as the weather does on

String Match method =~ error
194701 [timkuntz@gm ] The Ruby doc states the following for a String#=~
194702 [fs8206@ya oo] "cat o' 9 tails" =~ /\d/
194703 [leslieviljoe] ie. Ruby Doc is wrong?
+ 194705 [timkuntz@gm ] I found the answer. The Ruby doc is wrong for the Ruby 1.8.4.
| 194707 [decoux@mo lo] 1.8.2
| 194835 [timkuntz@gm ] Guy >  1.8.2
+ 194706 [rmagick@gm i] More likely just outdated. What "Ruby Doc" are you reading? I believe
  194837 [james_b@ne r] Maybe, but it *should* be getting regenerate each night after fetching

[QUIZ] Dungeon Generation (#80)
194710 [james@gr yp ] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 194799 [ruby_talk@sh] Oh, hell yes.
| 194800 [james@gr yp ] I'm glad to see some interest.  I thought if was a great problem too,
| 194801 [wilsonb@gm i] I'm pretty booked this weekend, but I hope I can fit this in. I love
| 194802 [slamboy@gm i] ...
| 194804 [james@gr yp ] James Edward Gray II
+ 194850 [benjohn@fy h] If you, like me, were about to ask why those dungeons seem a bit
+ 194950 [benjohn@fy h] 48 whole hours!??!??! How's a man supposed to last so long, damn it?!
  195275 [benjohn@fy h] <very_unsubtle_attempt_to_get_people_on_the_quiz>
  195292 [ruby@an hr p] } <very_unsubtle_attempt_to_get_people_on_the_quiz>
  195358 [benjohn@fy h] At least you have one. - feeling like a school master here.
  195364 [mental@ry ia] I'm in pretty much the same boat, really.  I might have something by the weekend, but I don't feel very motivated if I'm just going to miss the summary.
  195369 [colspan@je k] This quiz in particular is a painful one because it's so darned cool, but
  195382 [matthew.moss] Agreed with all of the above...
  195385 [curi@cu i. s] I did the quiz :) I am new to Ruby so any tips are appreciated.
  + 195404 [james@gr yp ] Let me be one of the first to welcome you then.  Your code looks
  + 195425 [benjohn@fy h] Hooray! :) I've had a quick squiz through your code, and I think I

How to access a classes private method
194711 [charlie@ca t] ...
+ 194712 [charlie@ca t] ...
| 194716 [toalett@gm i] If you need to access it outside of an instance, why make it protected?
+ 194720 [a2800276@gm ] You do realize that the whole point of making methods protected is NOT
| 194722 [charlie@ca t] ...
+ 194723 [gwtmp01@ma .] 1) you are calling bars_method on the class object 'Foo::Bar' and

[Fwd: Re: How to access a classes private method]
194717 [charlie@ca t] ...
194719 [charlie@ca t] ...

FXRuby - Howto remember some default settings as specified by the user ?
194721 [Nuralanur@ao] ...
+ 194725 [meinrad.rech] there is no such mechanism implemented in fox / fxruby (at least i
+ 194737 [leavengood@g] Store the user settings in a Hash object and then save that to YAML
+ 194777 [vjoel@pa h. ] This is what I use with FXRuby (but it's not dependent on FXRuby or even
+ 194778 [vjoel@pa h. ] This is what I use with FXRuby (but it's not dependent on FXRuby or even
+ 195094 [lyle.johnson] FOX's built-in registry stuff is probably the easiest choice to use.
  195107 [vjoel@pa h. ] Preferences lib) because of the attached, from FXSettings.cpp. Note
  195133 [lyle.johnson] Thanks for pointing that out, I wasn't aware of it. That one reason

Binding Blocks?  (in Tk, for example)
194724 [schapht@gm i] TkLabel.new {
194727 [decoux@mo lo] it use instance_eval
194728 [schapht@gm i] Can you give a code example or documentation page?  I can't figure
194729 [decoux@mo lo] moulon% cat b.rb
194732 [schapht@gm i] That example wasn't quite what I meant, but I found it myself.

Extra CR chars inserted into a downloaded file
194726 [morse.nate@g] Could anyone help shed light on some pesky (extra) Carrige Rreturns '\r's
+ 194733 [schapht@gm i] I would blame the webserver before ruby... Try to make the webserver
| 194769 [morse.nate@g] # tried others such as application/x-gzip and application/octet-stream ...
| 194775 [schapht@gm i] I'd do one last thing.  I seem to remember something about \r\n being
+ 194809 [logancapaldo] open("http://localhost/test/test.txt", 'rb') { |f|

Questionable behavior
194730 [transfire@gm] I'm getting some very strange behavior from a conditional statement --
+ 194748 [schapht@gm i] I'd be happy to test it here and see if I can replicate it.  But I
| 194758 [transfire@gm] It would be tricky to run the test in that the code is pretty deep
| 194774 [schapht@gm i] Sounds like it's pretty wrapped up.  Interesting fix.  And something
+ 194751 [dbatml@gm .d] No, that is no bug, it' a feature ;-)
  194762 [transfire@gm] Oh, I love those kind of "features".... NOT!
  194766 [transfire@gm] Ah, despite my rant, there is an easy solution. And it makes it very

new.ruby-lang.org (was: Re: Proposing: A new Ruby Windows installer)
194739 [hramrach@ce ] Yes, it looks very "professional". But the blue stripes on each sideof the page take way too much space. Perhaps my browser window islarger than that of the person who designed the web?
+ 194741 [james@gr yp ] This site is in a CMS, so it is trivial to replace the entire look of
| + 194756 [charlie@ca t] ...
| | 194768 [james@gr yp ] Yes, it's easier for us to maintain.  Hopefully that will translate
| + 194874 [hramrach@ce ] yes, I would like a new site as well. And the modifications to thestylesheet to make better use of screen space should be trivial.
|   194885 [james@gr yp ] We have a Basecamp project.  We'll probably see about opening up or
+ 194745 [schapht@gm i] In my recent dealings with visual design people, I understand the
  194873 [hramrach@ce ] That is a mistake of the visual design people. You do not know theline length anyway.First, you do not hand-adjust the paragraph layout for every piece ofcontent on the site.Second, even if you do, the person who displays the site may get adifferent font with different width, or render the site with adifferent sized font so that it is easily readable. If you disallowfont scaling (specify the font sizes in pixels) you should getgenerally similar layout unless the used font happens to have verydifferent relative width. Even then most browsers would allow changingthe font size anyway. If they do not (like IE) the site eitherdisplays in huge letters on low-dpi screens or is unreadable onhigh-dpi screens.
  194945 [rhkramer@gm ] Not sure to whom(?) to mention this, but when I view that site with images
  194953 [james@gr yp ] I forwarded this to the designer.  We will look into this.
  195026 [erlercw@gm i] ...
  + 195048 [onceuponapri] ...
  | 195066 [botp@de mo t] # built-in tutorial) or this can be added as "Web-based irb for when the
  + 195145 [james@gr yp ] I have now added it to the sidebar as well.
    195147 [danielbaird@] ...
    195154 [james@gr yp ] It's fixed now.

new.ruby-lang.org (was: Re: Proposing: A new Ruby Windows in
194744 [hulachr@ho m] I think it looks great! Any reason we haven't switched yet?
+ 194747 [james@gr yp ] Yes, we're not finished with the content, but we are hard at work on it.
| 194787 [minkoo.seo@g] ...
+ 194857 [jes@lu et nk] Brilliant! Great work!
+ 194878 [hramrach@ce ] The fact that you can get a dynamic-sized web page wrong does not meansuch pages should not be done. To extend it a bit, just because thereare too many bad web sites I would not give up on the idea of creatinga web site.

Input before Output in Eclipse
194753 [yoche2001@de] I've just started to learn ruby, using Eclipse and RDT as IDE (on Mac).
194754 [jfh@ci e. fl] puts "Whats your name? "
194757 [yoche2001@de] Thank you for your fast response.
194759 [jfh@ci e. fl] Interesting -- unfortunately I don't have any experience with the eclipse
+ 194763 [Stuart.Holde] Does adding the following to the start of your script help?
+ 194764 [SimonKroeger] $stdout.sync = true
  194767 [yoche2001@de] Indeed, my friend, this really solved the problem!

Mongrel "loopback"l request
194760 [peter@no no ] I'm using mongrel (the mongrel_rails wrapper to be exact) for a SOAP
+ 194761 [ppalmer@na i] This is because Mongrel ( I believe ) is single threaded. As it is
| 194765 [khaines@en g] Mongrel is not single threaded, but the Rails handler is because Rails is not
| 194773 [peter@no no ] But doesn't this then mean Mongrel is only capable of handling one Rails
| 194780 [khaines@en g] Maybe I am splitting hairs here, but Mongrel itself can handle X numbers of
+ 194782 [zedshaw@ze s] Everyone else has already told you what's going on with Rails locking,
  194784 [jpshack@gm i] Unless I misunderstand the source--or unless it is lying or has

Re: Ruby Client to Microsoft .Net Webservice
194779 [arkie@co pl ] I'd also set

[ANN] Rant 0.5.6
194781 [langstefan@g] Rant is a flexible build tool written in pure Ruby.

irb issue under mingw
194785 [ara.t.howard] i just compiled ruby-1.8.4 under msys/mingw.  works great, except one thing,

Question about -K, $KCODE, command line
194786 [djberg96@gm ] If I run a program from the shell like "ruby test.rb -K u", why isn't
194790 [rossrt@ro co] You need -Ku, not -K u. The K is being taken as empty, and the 'u' is
194792 [djberg96@gm ] I tried that.

Automatic code generation in vim.
194788 [minkoo.seo@g] ...
+ 194789 [ruby@ph li .] Not sure if pre-existing stuff exists for this (but I think so) but you
+ 194794 [ mfp@ac .o g] I read it's closer to TextMate than snippetsEmu.
| 194979 [rosejn@gm il] I haven't been able to work on it for a while, but snippet magic is for
| 195035 [minkoo.seo@g] ...
| + 195040 [alex@bl ck e] caw should do what you want, I think?  Surely it's collection that you
| + 195050 [rosejn@gm il] Hmmm.  This has been one of the most frustrating things about this
+ 194796 [james_b@ne r] Get the vim stuff for Ruby, and look in ruby-macros.vim
| 194937 [logancapaldo] Incidentally, I tried this put and changed it to
| 194948 [james_b@ne r] Oh, nice.  Thanks for the pointer.
+ 194864 [d454d@we .d ] you may have a look at the file plugin/imaps.vim from the latex-suite
+ 194991 [daniel.schie] On a side note, has anyone got code generation (e.g. adding "end")
  195036 [minkoo.seo@g] ...

Preserving Leading Zeros Using sprintf
194797 [jeremy.smith] "Invokes block once for each element of arr, replacing the element with
194798 [lukfugl@gm i] You've been bit by the "variables == objects" mentality. When you

Re: Mongrel 'loopback'l request
194803 [peter@no no ] I will look into this, thanks.

Executing a shell command from within a ruby script?
194805 [BPaatsch@ac ] ...
194807 [logancapaldo] Check out the system method, and back ticks (x = `gem list --local`).
194823 [zach.buckhol] I recently used this to capture stdout and stderr after running