122482-123428 subjects 122895-127537

[RDOC] quoting YAML
122651 [vjoel@PA H. ] I'm trying to embed YAML output in a simple markup file (not a ruby code
+ 122665 [jamis_buck@b] Needle for RubyForge--one of my examples had a similar line in it.
| 122701 [vjoel@PA H. ] Thanks, Jamis. I can live with that, since it's legal YAML.
+ 122674 [pragdave@gm ] Sorry about that. It's a hole in the way RDoc handles directives. At
  122676 [mneumann@nt ] ...
  122678 [pragdave@gm ] I'm guessing this doesn't help in this particular case, as the scanning
  122687 [mneumann@nt ] Ah, sure. That's why I suggested to move the directive handling into the

Syntactic sugar for common idiom
122660 [ gm@na el gr] module MyModule
122776 [vjoel@PA H. ] Don't wait :)

Slashdot mention
122670 [demerzel@gm ] "RAD in Ruby"
122753 [dross@ru ym ] KDevelop uses Kate by default. Its even better in this recent

Best way to debug ruby+fastcgi?
122675 [jd@no pa .c ] What is the best way to debug fastcgi scripts?
+ 122688 [clr4.10.rand] I am not sure how fastcgi relates to regular cgi scripts. But for
+ 122749 [drbrain@se m] 1) Run the equivalent as a regular CGI, make sure it works.
+ 122788 [lists@za a. ] Argh, that error message always makes me mad. I'm sure Apache can be
+ 122826 [flgr@cc n. e] ...

[ann] uname ruby library
122692 [ceaser@ro e.] I did this to more or less scratch an itch.

[OT] Read comp.lang.ruby through Google Groups
122695 [ehames@gm il] Have any of you tried reading the messages to ruby-talk through Google Groups?

Ruby Article at Linux Journal
122696 [pat.eyler@gm] Hey, it looks like our own Ara Howard has been busy.  He's got a cool
122710 [ryco@gm .n t] Very nice read. Thanks for sharing Pat, and thanks for writing, Ara.

Re: Read comp.lang.ruby through Google Groups
122700 [aredridel@gm] Google Groups?
+ 122702 [aredridel@gm] Google Groups?
+ 122707 [ruby@br an s] Doesn't seem to work that good, as your messages was sent twice ;)
  122708 [ehames@gm il] Sometimes, I get duplicated posts in GMail, but I don't know whose fault is it.
  122781 [martin.anker] I only post through groups-beta.google.com, but google seems to have a

Gui programming example
122705 [braempje@ne ] I'm absolutely new to ruby but I can program in a lot of other languages. To
+ 122706 [mark@oc we .] Sounds like you need something with the power of Tk's Canvas widget. I've
| 122714 [steven.jenki] Ruby-gnome2 supports the Gnome Canvas. I've used the Canvas in C, and
| 122722 [lymans@gm il] FOX/FXRuby has a 2d canvas (FXCanvas) and a 3d GL canvas
+ 122728 [ruby@br an s] A small example project I once used in a ruby course can be found at.
| 123166 [braempje@ne ] That's a very nice project, that helps quite a lot. Thanks, and thanks for
+ 122731 [phlip_cpp@ya] To
+ 122991 [devel@ni re ] If you have any familiarity with the MFC, then wxRuby will seem very

[rcr] String#split behaves odd
122717 [neoneye@gm i] Maybe the return value of String#split is wrong.
+ 122719 [james@gr yp ] Perl's split() works as you described above.  You just need to call it
+ 122748 [matz@ru y- a] Feeling odd is subjective.  Could you tell me why you felt
  122768 [botp@de mo t] //|Maybe the return value of String#split is wrong.
  122774 [matz@ru y- a] I don't get it.  [] is an array of strings with zero elements. ;-)
  + 122778 [neoneye@gm i] In the past I had the impression, that as long as there are no newline's
  | 122779 [botp@de mo t] //|[] != [""]
  + 122780 [zdennis@mk e] There is misleading behavior though with the current implementation. For
  + 122795 [jim@we ri hh] This is a tough call, IMHO.  It all depends on your mental description of
    122846 [neoneye@gm i] Ah I had forgotten this..
    122863 [ryand-ruby@z] To weigh in, I think the behavior of split should necessarily be
    + 122864 [ryand@ze sp ] argh... should _NOT_ be compared... not not... stupid brain.
    + 122865 [ryand-ruby@z] argh... should _NOT_ be compared... not not... stupid brain.
    + 122869 [transami@ru ] This is good thinkings.
    | 122875 [botp@de mo t] //should be a 1:1 correlation between join and split. Namely, anything
    | 122886 [matz@ru y- a] "abc\n".split("\n").join("\n")
    | + 122889 [botp@de mo t] //
    | | 122891 [matz@ru y- a] Blame Larry Wall for the weird default behavior. ;-)
    | | 122892 [botp@de mo t] //Blame Larry Wall for the weird default behavior. ;-)
    | + 122894 [transami@ru ] "abc\n".split("\n",-1).join("\n")
    |   + 122913 [halostatue@g] No. Most of the time, I don't actually *want* all the extra crap when
    |   | 123102 [transami@ru ] Really? In all my code I either had to put the -1 in b/c I was getting
    |   | + 123104 [halostatue@g] Really. I just did a quick audit of my publicly released code -- no checks to
    |   | | 123112 [transami@ru ] Could you send me said code? I would like to see how it effects things.
    |   | | 123119 [halostatue@g] No; it's all publicly available, as I said. TeX::Hyphen,
    |   | | 123121 [transami@ru ] Okay, well that's good enough. I'll grab a couple and check it out.
    |   | + 123105 [billk@ct .c ] I'm pretty sure it would break a lot of my code.  I'm used to #split working
    |   + 122940 [flori@ni e. ] "abc\n\ndef\nghi".split(/\n+/)
    |     123046 [transami@ru ] Sorry, what are you pointing out here?
    |     123068 [glenn.parker] It is impossible to have perfect forwards-backwards symmetry with split
    |     + 123070 [ruby@br an s] That is obvious, but no argument against wanting split and join to be symmetric
    |     | 123075 [bob.news@gm ] "Brian Schr?der" <ruby@brian-schroeder.de> schrieb im Newsbeitrag
    |     | 123083 [glenn.parker] I had the same thought, based on the similar Perl feature.
    |     + 123085 [transami@ru ] I see. Well, The -1 parameter was only have the story. The other half of this
    + 122881 [jim@we ri hh] %w( aabb bbaa ).map do |s| s.split(/a/,-1).join('a') == s; end
      122882 [botp@de mo t] //second that.

Re: uname ruby library
122720 [djberg96@ho ] There is already sys-uname on the RAA.
122732 [ceaser@ro e.] I wanted to find something I could play with and write an

Re: String#split behaves odd
122733 [tsawyer@gm i] it

Re: Duck images (DRb service)
122736 [ruby-talk@wh] I'm amazed at the progress that has been made in just the last 12
122737 [pat.eyler@gm] Don't be silly!  Who would want to use ducks to take Switzerland ...

COM with Ruby
122750 [justin.rudd@] I know about Win32Ole for accessing COM objects, but what about
+ 122799 [trieck@be ls] Wow.  That sounds pretty involved.  Wouldn't you have to generate a COM
| 122819 [justin.rudd@] Shouldn't.  At least I hope not.  Python has a library that allows
+ 122818 [djberg96@ho ] Regards,
  122820 [justin.rudd@] Looks like a good start.  I might have to extend it a bit to be able

RMagick pre-requisite changes
122755 [cyclists@nc ] Just a heads up that RMagick 1.6.2 is the last release that will support

Ruby (quiz?) simulation idea
122756 [hal9000@hy e] This is just off the top of my head. I thought I'd post it instead of
122802 [james@gr yp ] [snip description]
122804 [ruby@br an s] I'd like to propose something a bit different that stresses the fact that
+ 122809 [james@gr yp ] War of the simulators?  I say we unleash Brian's vampire bats on the
| 122812 [ruby@br an s] Oh, oh, oh. I wanted to stress cooperation and altruism, and now we have
+ 122810 [jamesUNDERBA] Sounds like something from A.K. Dewdney's Computer Recreations column
  + 122813 [ruby@br an s] This is not my source, as I don't read scientific american. But it is a very
  + 122848 [james@gr yp ] (off-list reply)
    122850 [james@gr yp ] Or not.  Sorry.

RDoc =begin and =end?
122759 [transami@ru ] I'm currently trying to Rdoc a large project. After a great deal of typing
+ 122767 [james@gr yp ] Sure is.
+ 122825 [pragdave@gm ] =begin rdoc
  123049 [transami@ru ] Whoa, almost lost this thread...
  123072 [pragdave@gm ] No - that's a current vintage. If you still see the problem, why not

any way to know context of expression evaluation?
122765 [itsme213@ho ] def bar (x, y)
122769 [itsme213@ho ] Totally inadequate context for my question, which is a bit more complex than

Recommened readings?
122775 [jtrunek@ho m] For one of my university courses, I have to complete a paper on Ruby.
+ 122777 [jamesUNDERBA] Programming Ruby, 2nd Ed., by Dave Thomas
| + 122800 [johnwilger@g] I'll second that. It covers pretty much everything you need.
| | 122808 [merkoth@gm i] yup, I'll second that too. it's simply awesome. i started with ruby
| + 122840 [jtrunek@ho m] I've heard good things about that book.  Now it's just a matter of tracking it
|   + 122842 [mark@oc we .] I'm in good shape if that's true!
|   + 122852 [johnwilger@g] For your purposes, the first edition would probably be sufficient. You
|     + 122856 [jtrunek@ho m] Thanks for the URL, I wasn't aware that there was an older edition available online.
|     | 122859 [michael.deha] My apologies to the students in the course that drew Brain**** and Intercal :)
|     | 123011 [vanweerd@gm ] c2 is unbelievable.  I think it's the coolest website on the web.
|     + 123597 [jtrunek@ho m] Is this just excerpts?  It seemed a bit brief, although it worked wonderfully
|       123602 [gavrif@vi tu] No. It's the whole book. I have felt the same way, that the book is choppy at times and lacks continuity between chapters....Hope I'm not commiting sacrilege here...I was just so glad that someone else felt the same way that I had to nod in agreement :)
|       123604 [johnwilger@g] 2nd edition seemed to be a bit better in that regard, IMHO. Also, I
|       123678 [michael.ulm@] I bought the dead tree variant before I encountered the online version.
+ 122816 [vanweerd@gm ] What is the purpose of your paper? Is it comparitive? Or simply
  122838 [jtrunek@ho m] A little bit more about the purpose of the paper.  The paper is for my language

Ruby Weekly News 29th Nov - 5th Dec 2004
122782 [timsuth@ih g] Ruby Weekly News 29th Nov - 5th Dec 2004
122785 [dave@bu t. d] s="\033[2J\033[0;0H          _\n Quack! >(')____,\n         (`
122867 [gsinclair@so] "*6;s.tr!('>>v^^v<','<^vv^>');puts s;sleep 1}
+ 122871 [ruby@br an s] Just scroll up and down eight lines at a time in one second intervals ;)
| 122904 [ryco@gm .n t] Haha, thanks, that really saved my day! :)
+ 122898 [dave@bu t. d] It does. Your problem is probably extraneous newlines in the string. Try

[Q] TK & Iwidgets
122783 [npolizotis@g] I am using the one-click installer and  I tried to run the tk sample
122844 [rff_rff@re o] HTH
122901 [npolizotis@g] Thanks Gabriele

OT: Re: Ruby Article at Linux Journal
122789 [eule@sp ce c] Being swiss, I can confirm that there is no such thing, and not much use
123245 [ jupp@gm .d ] Correct me if I am wrong but doesn't the *true* swiss army knife only
+ 123249 [michael.deha] " it is some kind of
| + 123252 [drbrain@se m] Swiss Army Laser Scalpel
| | 123262 [michael.deha] Ironically I thought about this (the Swiss Army Laser Scalpel) on the way home.
| | 123270 [vanweerd@gm ] Swiss Army Kanata
| | 123271 [vanweerd@gm ] Brain cramp..
| + 123257 [transami@ru ] What show is this?
| + 123264 [dblack@wo bl] Exactly what it would be if Perl were never referred to that way: a
| + 123335 [ jupp@gm .d ] OT: Re: Ruby Article at Linux Journal
+ 123568 [eule@sp ce c] Yeah, I guess the classic one does have about 6 tools. But classic in that
  123628 [ruby@br an s] Though I'm a big fan of the hitchhikers trilogy (or more accurately pentology),
  123706 [eule@sp ce c] Nothing like a good quote to snap a metaphor. Thanks.

Re: Slashdot mention (Kate/KDevelop syntax highlighting)
122790 [langstefan@g] ...
122791 [dross@co e- ] I actually have 1.08 installed, I had the file upgraded. It was in CVS,
122797 [langstefan@g] OK, I downloaded version 1.10 from CVS.
122811 [michael.deha] One of the sidethreads on the Slashdot article discuss Ruby having
122815 [halostatue@g] Ruby's Strings are encoding agnostic. For dealing with encoded
+ 122821 [michael.deha] Wow, didn't know about exerb!   Thanks.
+ 122833 [flgr@cc n. e] While Ruby does not have much support for the encoding of Strings it

Idiom for creating hash from two arrays
122798 [jp-www@dc .g] I'm currently using the following code for creating a hash from two arrays,
122801 [bob.news@gm ] "Jonathan Paisley" <jp-www@dcs.gla.ac.uk> schrieb im Newsbeitrag
122822 [jp-www@dc .g] Of these (including my original), I think the each_with_index solution
+ 122824 [flori@ni e. ] hash = {}
| 122906 [jp-www@dc .g] Below are some benchmark results from four different implementations
+ 122845 [transami@ru ] zipnew ?
  122905 [jp-www@dc .g] Hash.zipnew ... I quite like the similarity to Hash.new, and the inclusion
  122914 [glenn.parker] Why does it need a new name?  Instead, why not extend Hash.new to do
  + 122916 [dblack@wo bl] What if you wanted to set a default value for the hash?
  | 122930 [glenn.parker] Hash.new                          => hash
  | + 122933 [dblack@wo bl] But what about a hash from two arrays with a default value?
  | | 122943 [glenn.parker] h = Hash.new(keys, values)
  | | 122953 [dblack@wo bl] I know.  I'm still not in favor of changing the signature of Hash#new
  | | 122974 [glenn.parker] Unless Ruby is much smarter than I thought, this will build a new
  | | 122985 [dblack@wo bl] Not exactly... more that I don't think updating an existing hash from
  | + 122936 [jp-www@dc .g] That's a good point. Given that, I don't think it's really necessary to
  |   122938 [dblack@wo bl] class Forever
  |   122946 [glenn.parker] That's a fairly pathological case.  Should we therefore deny all the
  + 122919 [transami@ru ] I guess b/c Hash.new already takes a hash-default. Perhaps with keyword
  + 122922 [jp-www@dc .g] That's certainly a possibility. I suppose the disadvantage of this is that
    122926 [transami@ru ] How do you set the default value after the fact?
    122932 [jp-www@dc .g] Yes.

rb_sys_fail problem with One Click Installer
122807 [djberg96@ho ] Ruby 1.8.2 RC 7 and 10

Duck Images Weekly News 29th Nov - 5th Dec 2004
122817 [ruby-talk@wh] Duck Images Weekly News 29th Nov - 5th Dec 2004
+ 122831 [flgr@cc n. e] Good stuff. Thanks a lot. :)
+ 122832 [michael.deha] Quacktastic.
+ 122866 [robert.mcgov] Thanks Why that gave me a much needed smile!
  122878 [discordantus] Sponsored Links
  122880 [vjoel@PA H. ] Gee, I almost regret not having a side order of ads served up with the

Ruby in the Rainy City (2nd and final notice)
122828 [pat.eyler@gm] (2nd notice ... it's this Saturday if you're in the area, you should

Win32 Utils
122829 [walter@mw ew] Are there plans to include the Win32 Utils as part of the Windows One Click
122849 [jamesUNDERBA] That would be quite nice; I've been finding them quite useful.
122851 [walter@mw ew] They do have one, which is great, but it has not kept up with the new
122857 [djberg96@ho ] I've got binary versions of open3 and shortcut available at

extension with undefined symbols
122834 [elathan@ph s] Is there a way to force ruby to load a shared lib with undefined

Problem using ruby_options() - help!
122839 [snail@ob me ] I'm trying to call a Ruby program from C and pass it some arguments.
+ 122855 [sroberts@un ] I don't know anything about ruby here.. but I know the standard format
| 122908 [snail@ob me ] <sroberts@uniserve.com> writes
+ 122887 [nobu.nokada@] $ ./x
| 122907 [snail@ob me ] <200412080520.iB85Ker4006311@sharui.nakada.niregi.kanuma.tochigi.jp>,
+ 122996 [snail@ob me ] I've got a solution.
  123057 [nobu.nokada@] ruby_set_argv() sets the arguments for the script, while

122841 [mikael.x.lar] Is the wrapper for libxml still maintained ?
+ 122853 [ksibilev@be ] I don't know whether it is being maintained but I'm using it without
+ 122910 [neil@ha ub .] I asked the same question a while back.
  123094 [transami@ru ] Could you send me a copy? Or does anyone else know where I can get a source
  + 132354 [martin.povol] Here is my version, it uses latest verzion from Sean Chittenden and
  | 132370 [mikael.x.lar] I found this new project at rubyforge, no source yet, the project admin is
  | 132371 [martin.povol] He also has http://rubyforge.org/projects/libxsl/
  + 132377 [neil@ha ub .] Oops, I missed this message when you first sent it!

Re: ruby-dev summary 24959-25044
0512 [ko1@at ot ne] This is ruby-dev summary 24959-25044.

[ANN] RubyGems 0.8.3 Released!
122884 [jim@we ri hh] = Announce: RubyGems Release 0.8.3
+ 122909 [robert.feldt] Did you fix the problem with C extensions that should not be installed
+ 122957 [langstefan@g] Did just that. But now certain operations work only as root.
| 122975 [jim@we ri hh] Ug.  I won't get a check this until this evening, but I'm guessing that
| 123013 [langstefan@g] $ echo `gem env gemdir`/gems/sources-0.0.1
+ 123004 [vanweerd@gm ] Thanks for the update and the awesome package. RubyGems has made me
| 123015 [jim@we ri hh] This whole post install thing is a bit of a hot topic (sheesh, what isn't
+ 123016 [mailinglists] Is it possible to get a better server for the gem archive ?