127790-131829 subjects 128158-129684

^ Convert a Hash into an Array
127966 [eustaquioran] h = {"a"=>"111","b"=>"222"}
127967 [mneumann nte] h.to_a.flatten will do the trick.
+ 127969 [eustaquioran] THANK you very much! :-)
+ 128004 [dblack wobbl] However, if any of the hash values are arrays, they'll get flattened
  128042 [bob.news gmx] "David A. Black" <dblack@wobblini.net> schrieb im Newsbeitrag
  + 128053 [richard zygo] Cool!  I was wondering how to convert a hash to an array, dropping the
  | 128054 [pit capitain] h = {"a"=>"111", "b"=>"222"}
  | 128073 [richard zygo] Even better!  I thought there must be a method for that but my (very
  + 128676 [georgesawyer] (Wistfully) Even though 'inject' is the name in Smalltalk, I feel it were
    128681 [sellberg goo] I don't have anything against #inject, but I could see the case for an
    + 128728 [georgesawyer] incorrect)
    | 128770 [ruby-lists l] the main problem i've had with inject is the naming.
    | + 128780 [eero.saynatk] Well, since #foldr and #foldl are not offered, it may be better to
    | + 129011 [bob.news gmx] "Alexander Kellett" <ruby-lists@lypanov.net> schrieb im Newsbeitrag
    |   134037 [gavin refine] although I'm
    |   + 134040 [tone_hole ya] Is not #reduce the name we're looking for?  Or is it not faithful enough
    |   + 134048 [ruby-ml magi] I'm convinced there were two main creators for Lisp. One designed the
    |   | 134056 [bob.news gmx] "ES" <ruby-ml@magical-cat.org> schrieb im Newsbeitrag
    |   | 134219 [gavri.fernan] Perfect! I'm surprised no-one thought of this before!
    |   + 135396 [matju sympat] And even shorter,
    |     135413 [bob.news gmx] "Mathieu Bouchard" <matju@sympatico.ca> schrieb im Newsbeitrag
    |     135501 [guslist free] "Mathieu Bouchard" <matju@sympatico.ca> schrieb im Newsbeitrag
    + 128765 [rff_rff remo] #fold would be better imho (even if slightly incorrect)

^ Curious behavior of rake
127972 [itsme213 hot] I came across a curious rake behavior, in which my rakefile required a file
127981 [jim weirichh] Hmmm ... don't do that :)
128006 [itsme213 hot] Very clear now, thanks.
128011 [jim weirichh] Generally rake assumes that it owns the "VM".  It doesn't expect you to run

^ "Duck Typing" or "No need for abstract classes"
127973 [ehames gmail] I'm working on a new small project where several network protocols are
+ 127975 [jamis_buck b] You've got it! Congratulations. :)
| 127976 [eero.saynatk] Yep, you're right. It doesn't matter what the type of an object you
+ 127979 [vanweerd gma] That's the idea, and with a small project, it seems the way to go-
+ 128038 [matju sympat] Ruby allows you to play in the swamp, but it doesn't mean it's better to
| + 128061 [cjs cynic.ne] No, Ruby's implementation of it is the problem. You can do duck typing
| | + 128075 [mailinglists] 100% ACK.
| | | + 128095 [pit capitain] I'm sure you know where the original refactoring browser came from. Your last
| | | | + 128102 [itsme213 hot] last
| | | | | + 128110 [vanweerd gma] This is the impression I've gotten- that a live image system uses the
| | | | | | 128196 [flgr ccan.de] Partially, IRB does not actually evaluate the expressions. If it sees
| | | | | | 128207 [vanweerd gma] Cool!
| | | | | | 128323 [flgr ccan.de] The IDE project.
| | | | | + 128563 [matju sympat] Depends what kind of Ruby one writes. I have written a lib that includes a
| | | | |   128567 [mailinglists] No i was thinking about this and how i want to implement it in Arachno
| | | | |   128619 [vanweerd gma] DRY= don't repeat yourself, http://c2.com/cgi/wiki?DontRepeatYourself
| | | | |   128800 [matju sympat] Personally, I use both terms interchangeably, but i often mention both so
| | | | + 128105 [mailinglists] If i remember correctly the first version was not more intelligent
| | | + 128125 [vanweerd gma] Several interesting articles on http://www.smalltalk.org at the moment-
| | + 128317 [matju sympat] Well, I was not questioning Ruby at all here, but rather, how the current
| + 128121 [vanweerd gma] My recent thought was that this should emerge as the result of good
|   128799 [matju sympat] There are indeed protocols that emerge rather often when you program, but
+ 128044 [bob.news gmx] "Edgardo Hames" <ehames@gmail.com> schrieb im Newsbeitrag

^ [REXML] is my installation not working?
127977 [boris boris-] I am trying to parse an xml file on my fedora Core 3 machine.
+ 127982 [zdennis mkte] The xml file "mydoc.xml" has to exist, for this tutorial to work. It
| 127989 [boris boris-] The file exists and is a valid xml file according to the firefox DOM expector.
| 127991 [vanweerd gma] Sure sounds like it. Maybe the maintainer disagreed with XML's
+ 127988 [vanweerd gma] Did you check for the namespace file? I have a namespace.rb in my
+ 128018 [w_a_x_man ya] .. class String

^ Class Diagrams
127992 [vanweerd gma] Is there a popular cross-platform way to generate UML diagrams from ruby code?
128002 [assaph gmail] Not quite what you're looking for, but you can take a look at
+ 128015 [drbrain segm] ParseTree will get you started on such a tool.
| 128026 [vanweerd gma] I've meaning to look at it, but haven't had the time to-date.
| 128040 [ryand-ruby z] (be sure to look at the "ginormous" link as well)
| 128139 [vanweerd gma] Very nice. And nice sql table diagrams as well for your book web app.
+ 128025 [vanweerd gma] I might be happy with objectgraph. I like UML, but hate UML tools. So,
  128159 [rff_rff remo] metoo!
  128250 [vanweerd gma] I didn't even know there was such a thing. I'll check it out.

^ redirect error messages
127999 [mrmargolis w] I am working on a ruby cgi script on a host that refuses to give me ssh
+ 128005 [ed nowhere.c] $stderr = File.open('error.log', 'w+')
| 128010 [pete petta-t] That's true.  But you probably don't want $stdout to go to a file as
+ 128014 [eric afaik.u] This is so obvious I am sure you checked it already, but are you sure
| 128017 [mrmargolis w] That did the trick.  I had the shebang line setup wrong, I guess they
+ 128023 [navindra cs.] No idea about the exact setup, but often, having CGI access like you

^ RuWiki in a Corporate Environment
128008 [vanweerd gma] I'm about to kick off a wiki at work for collaboration.
+ 128009 [jamesUNDERBA] Interesting question, though I tend to think wikis work best with no
| 128013 [vanweerd gma] I think the bigger issue is one of being forced to create an account
| 128022 [itsme213 hot] Nicholas,
| 128024 [vanweerd gma] Project namespaces, text file back-end, interesting architecture,
| 128028 [eero.saynatk] AOL.
+ 128052 [raphael.baud] I'm very interested in the ldap connectivity. I hope you'll share your experience

^ Re: is my installation not working?
128019 [w_a_x_man ya] .. class String

^ top-level object? top-level methods?
128021 [itsme213 hot] Is there a top-level object in any executing Ruby program? Is it the thing
+ 128047 [matz ruby-la] Yes and yes.
| 128063 [matt.mower g] Shouldn't #print really be in a module somewhere and then included
| 128066 [decoux moulo] Well, in this case do you want to always write
| 128067 [matt.mower g] Maybe I've gotten the wrong end of the stick about the original question.
| + 128069 [matt.mower g] It occurs to me that, as well as being a bad pun, this isn't clear.
| + 128070 [decoux moulo] Hey, you can't write this :-)
|   + 128074 [matt.mower g] Well I did say "much" of the stuff in object, not all ;-)
|   + 128100 [pit capitain] I think the original poster asked why
|     128135 [matz ruby-la] 1. Compatibility.  It would break a lot of code, which assume
|     + 128149 [itsme213 hot] A compatibility mode perhaps :-)
|     + 128182 [pit capitain] Oh, now I see. Seems I've never mixed procedural and OO code, so I hadn't
|     + 128247 [itsme213 hot] A compatibility mode perhaps :-) Don't know is something like this is a good
|       + 128447 [discordantus] It already behaves this way, except for the lack of the Main object.
|       | 129394 [aredridel gm] +1.
|       + 129773 [gavri.fernan] It was just a couple of days back that I commented on a post
+ 128210 [csaba phony_] * If you are in an interactive session, or create a 10-line script to

^ String.str_replace ????
128029 [contact_us h] Any body can help me with this str_replace problem.
128031 [eero.saynatk] Well,
+ 128033 [contact_us h] Thanks,
+ 128045 [bob.news gmx] "E S" <eero.saynatkari@kolumbus.fi> schrieb im Newsbeitrag
  128222 [contact_us h] You are right, it doesn't
  128257 [ysantoso-rub] But there is: String#gsub()
  128268 [contact_us h] Thanks you verymuch

^ JRuby Gem?
128030 [vanweerd gma] Would it be possible to make a rubygem or rpa of JRuby? Other Java
128080 [chadfowler g] I guess you could theoretically use RubyGems to install JRuby.  You
+ 128091 [mark ociweb.] I'm not sure what you mean by saying "it's not focused on installing libraries".
| + 128132 [vanweerd gma] That's cool! I didn't know Maven did that. I'd  heard it was a bloated
| | 128524 [martindemell] [1] http://jroller.com/page/fate
| + 128152 [chadfowler g] I mean that Maven's scope starts with and expands to way beyond just
|   128190 [mark ociweb.] I see your point and agree on this.
+ 128131 [vanweerd gma] Cool.

^ DC area user group mailing list
128034 [ysantoso-rub] I was wondering if there is any mailing list for user groups around DC

^ Callcc problem in Generator
128036 [garious gmai] Hey all,

^ execution control
128048 [jdavis-list ] Is it possible to control some of the execution parrameters of Ruby? For

^ Re: [REXML] I've reported the bug in fedora's bugzilla
128057 [boris boris-] Thanks for the replies !
128064 [balcer futur] I use Fedora Core 3 and file indeed is missing.
128072 [boris boris-] The file has been put into the wrong package according to the package maintainer.

^ jpegs with qt and ruby
128071 [StillLifeWoo] using QImage in Qt.
+ 128076 [ruby-lists l] try qlabel with a qpixmap
+ 128077 [Richard_Dale] I think you'd use Qt::Pixmap/QPixmap and a Qt::Label for that, rather than
  128258 [StillLifeWoo] Thanks guys QPixmap/Qlabel is the answer, worked first time.

^ Injecting methods from one class into another.
128079 [george.mosch] class Source
+ 128082 [decoux moulo] What do you expect with this ?
| 128088 [george.mosch] this is an artificial example. I expect Hash's [] to be replaced
| + 128090 [decoux moulo] Well, you can use #instance_method and #bind but ruby will make the test
| | + 128115 [george.mosch] test
| | + 128127 [george.mosch] test
| | + 128198 [flgr ccan.de] Note that EvilRuby has a less strict version of UnboundMethod#bind
| |   128272 [george.mosch] wtf is EvilRuby ?!?! :)
| |   128298 [flgr ccan.de] See http://evil.rubyforge.org -- code is available from CVS.
| + 128093 [drejewic wsi] Why you don't want to use module?
|   128106 [george.mosch] Well, I know about modules, this is not what I want.
|   128109 [gfb tonesoft] Object methods do not work in vacuum, they usually use instance
|   128116 [george.mosch] I thought Ruby promotes 'duck typing'.
|   + 128129 [gfb tonesoft] I do not think what you want has anything to do with 'duck typing'.
|   | + 128144 [george.mosch] class C1
|   | | + 128163 [bob.news gmx] "George Moschovitis" <george.moschovitis@gmail.com> schrieb im Newsbeitrag
|   | | | 128193 [george.mosch] and
|   | | | 128278 [bob.news gmx] "George Moschovitis" <george.moschovitis@gmail.com> schrieb im Newsbeitrag
|   | | + 128199 [flgr ccan.de] If you're subclass provides an overwritten version of the base method
|   | | + 128324 [ruby roblall] Your object doesn't quack like a duck. If it did it would have a method 'a1'. Your object has some of the same internal
|   | + 129733 [gavin refine] FWIW, in Javascript you can invoke a method defined anywhere with any
|   |   129741 [zdennis mkte] def method_missing( arg1, arg2=nil )
|   + 128138 [bob.news gmx] "George Moschovitis" <george.moschovitis@gmail.com> schrieb im Newsbeitrag
|   | 128141 [bob.news gmx] "Robert Klemme" <bob.news@gmx.net> schrieb im Newsbeitrag
|   | 128368 [csaba phony_] o = Object.new
|   + 128246 [vanweerd gma] That's not duck typing, it's duck cloning, Dr. Frankenstein!
|     128253 [eero.saynatk] That's what I said :)
|     + 128271 [george.mosch] for
|     + 128294 [dblack wobbl] It's not exactly that it's being treated as a Hash -- it's more that,
|     | 128301 [sroberts uni] I see your point.
|     | 128305 [dblack wobbl] Do you mean how many arguments it takes?  Beyond that, one object's
|     | + 128313 [eero.saynatk] It was an oversimplification, apologies. Addressing the exact code, I
|     | | 128316 [eero.saynatk] I concur, that's a better way of saying it.
|     | | 128326 [dblack wobbl] a = []
|     | + 128413 [sroberts uni] and what they do with those args.
|     + 128300 [sroberts uni] I don't agree. I suggest it seems exceptional because its impossible.
+ 128200 [flgr ccan.de] obj = Class.new { def bar() puts "foo" }.new
  + 128216 [eero.saynatk] You're forgetting something. It's not "If it quacks...", it's
  | + 128235 [sroberts uni] I don't think thats the case at all. I'd like to see you implement
  | + 128270 [george.mosch] not really!
  |   128292 [dblack wobbl] But remember, it's duck with a small 'd' :-)  It doesn't mean "the
  |   128299 [flgr ccan.de] That's exactly what I thought was wrong with the common duck typing
  |   128674 [georgesawyer] The good thing is, Duck Typing is a great phrase to pull people in from
  |   128675 [petite.abeil] I don't know. Sounds more like something to do with animal abuse to me
  + 128275 [george.mosch] Florian,

^ XML-RPC Memory Problem
128092 [senf display] I use a simple XML-RPC Server, which should print out Content from some Files via XML-RPC.
128096 [mneumann nte] You could insert GC.start, which invokes the garbage-collector. Is
128099 [senf display] The memory increasing monotonically. Where can be the memory leak? In my
128103 [mneumann nte] I don't think so. How long do you run it? And how much memory does it
128117 [senf display] You got the server code in an older mail. Here is a client which should
+ 128123 [mneumann nte] Ah okay, that's (IMHO) just normal in Ruby, so no memory leak. Not sure
+ 128252 [vanweerd gma] Is it maybe a threading issue, and the GC never getting a chance to

^ In need of Win32 fcntl (non-blocking)
128097 [ivo palli.nl] I am making a multi-user, telnet based, bbs. At work I use Linux Ruby,
+ 128108 [akr m17n.org] sysread might be usable because sysread doesn't block when some data
| 128155 [ivo palli.nl] You are correct, sysread() returns without blocking. However this is a
| + 128184 [djberg96 hot] script
| + 128233 [csaba phony_] require 'rbconfig'
+ 128971 [nobu.nokada ] [ruby-core:3157] has been committed to CVS HEAD instead, but
  128972 [joaopedrosa ] This is good news. I'm going to test this later. Thanks!

^ *IMPORTANT* Message for Google Group users!
128098 [google_group] Good News!
128126 [transfire gm] SPAM is a devil's advocate.

^ Array#insert implementation
128104 [celhoquilabr] I need an insert method for the Array class, the insert method let you
+ 128113 [bob.news gmx] "Zuzzurro" <celhoquilabrioche@zuzzurro.it> schrieb im Newsbeitrag
| 128118 [celhoquilabr] thank you.
+ 128201 [flgr ccan.de] irb(main):043:0> ary = [1, 2, 3]; ary.insert(1, 5); ary
  128265 [celhoquilabr] nice to see they added #insert in the 1.8 version, I'm still using 1.6

^ [OT] Re: *IMPORTANT* Message for Google Group users!
128111 [bob.news gmx] Heaven is here - we have Ruby!
128128 [vanweerd gma] Do spammers go to hell?

^ Ruby script archive
128112 [premshree.pi] I'm aware of the RAA, but I was wondering if there's any work being

^ [JOB] Ruby Job in Vancouver, BC, Canada
128136 [halostatue g] I was sent this opportunity through my rņÔumstill sitting on

^ Hacking NArray
128145 [ruby brian-s] I will be busy doing volume data processing the next six months, and I have decided to use narray for this purpose.
+ 128151 [ruby brian-s] Well, in fact the code seems to be generated by ruby-scripts that are
| 128221 [ytsunesada y] Could you show Ruby code you expect to work with it ?
| 128274 [ruby brian-s] a.abs!
| 128290 [ytsunesada y] Brian,
| 128293 [ruby brian-s] Thank you for this information. It is very helpfull. Maybe it should be included onto the website?
+ 128176 [dave.baldwin] I cannot offer any advice on narray, but I have been investigating some

^ SQLite-Ruby and Cygwin: Problem and Solution
128150 [google erikv] I had a problem installing SQLite-Ruby under Cygwin. But we
128153 [jamis_buck b] Non-standard install locations are problematic for compiled gems (like
+ 128156 [google erikv] Non-standard location? "/usr/local/bin" and "/usr/local/lib"
| 128165 [jamis_buck b] As compared to "/usr/bin" and "/usr/lib", I meant. By default, that's
+ 128169 [jim weirichh] Just add the extconf.rb options to the gem install command after a "--".
  128175 [jamis_buck b] Wonderful! I should have known you gems guys would already have
  128204 [google erikv] Worked flawlessly on another machine!
  128208 [jamis_buck b] No reason. I'm just arbitrary by nature. :)