127972-129773

127790-135501 subjects 128183-129684

Curious behavior of rake
127972 [itsme213@ho ] I came across a curious rake behavior, in which my rakefile required a file
127981 [jim@we ri hh] Hmmm ... don't do that :)
128006 [itsme213@ho ] Very clear now, thanks.
128011 [jim@we ri hh] 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@gm il] 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@gm ] That's the idea, and with a small project, it seems the way to go-
+ 128038 [matju@sy pa ] Ruby allows you to play in the swamp, but it doesn't mean it's better to
| + 128061 [cjs@cy ic ne] No, Ruby's implementation of it is the problem. You can do duck typing
| | + 128075 [mailinglists] 100% ACK.
| | | + 128095 [pit@ca it in] I'm sure you know where the original refactoring browser came from. Your last
| | | | + 128102 [itsme213@ho ] last
| | | | | + 128110 [vanweerd@gm ] This is the impression I've gotten- that a live image system uses the
| | | | | | 128196 [flgr@cc n. e] Partially, IRB does not actually evaluate the expressions. If it sees
| | | | | | 128207 [vanweerd@gm ] Cool!
| | | | | | 128323 [flgr@cc n. e] The IDE project.
| | | | | + 128563 [matju@sy pa ] 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@gm ] DRY= don't repeat yourself, http://c2.com/cgi/wiki?DontRepeatYourself
| | | | |   128800 [matju@sy pa ] 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@gm ] Several interesting articles on http://www.smalltalk.org at the moment-
| | + 128317 [matju@sy pa ] Well, I was not questioning Ruby at all here, but rather, how the current
| + 128121 [vanweerd@gm ] My recent thought was that this should emerge as the result of good
|   128799 [matju@sy pa ] There are indeed protocols that emerge rather often when you program, but
+ 128044 [bob.news@gm ] "Edgardo Hames" <ehames@gmail.com> schrieb im Newsbeitrag

[REXML] is my installation not working?
127977 [boris@bo is ] I am trying to parse an xml file on my fedora Core 3 machine.
+ 127982 [zdennis@mk e] The xml file "mydoc.xml" has to exist, for this tutorial to work. It
| 127989 [boris@bo is ] The file exists and is a valid xml file according to the firefox DOM expector.
| 127991 [vanweerd@gm ] Sure sounds like it. Maybe the maintainer disagreed with XML's
+ 127988 [vanweerd@gm ] 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@gm ] Is there a popular cross-platform way to generate UML diagrams from ruby code?
128002 [assaph@gm il] Not quite what you're looking for, but you can take a look at
+ 128015 [drbrain@se m] ParseTree will get you started on such a tool.
| 128026 [vanweerd@gm ] 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@gm ] Very nice. And nice sql table diagrams as well for your book web app.
+ 128025 [vanweerd@gm ] I might be happy with objectgraph. I like UML, but hate UML tools. So,
  128159 [rff_rff@re o] metoo!
  128250 [vanweerd@gm ] 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@no he e. ] $stderr = File.open('error.log', 'w+')
| 128010 [pete@pe ta t] That's true.  But you probably don't want $stdout to go to a file as
+ 128014 [eric@af ik 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@gm ] 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@gm ] I think the bigger issue is one of being forced to create an account
| 128022 [itsme213@ho ] Nicholas,
| 128024 [vanweerd@gm ] 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@ho ] Is there a top-level object in any executing Ruby program? Is it the thing
+ 128047 [matz@ru y- a] Yes and yes.
| 128063 [matt.mower@g] Shouldn't #print really be in a module somewhere and then included
| 128066 [decoux@mo lo] 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@mo lo] Hey, you can't write this :-)
|   + 128074 [matt.mower@g] Well I did say "much" of the stuff in object, not all ;-)
|   + 128100 [pit@ca it in] I think the original poster asked why
|     128135 [matz@ru y- a] 1. Compatibility.  It would break a lot of code, which assume
|     + 128149 [itsme213@ho ] A compatibility mode perhaps :-)
|     + 128182 [pit@ca it in] Oh, now I see. Seems I've never mixed procedural and OO code, so I hadn't
|     + 128247 [itsme213@ho ] 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@ph ny ] * 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@gm ] "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@gm ] 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@oc we .] I'm not sure what you mean by saying "it's not focused on installing libraries".
| + 128132 [vanweerd@gm ] 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@oc we .] I see your point and agree on this.
+ 128131 [vanweerd@gm ] 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@gm i] 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@bo is ] Thanks for the replies !
128064 [balcer@fu ur] I use Fedora Core 3 and file indeed is missing.
128072 [boris@bo is ] 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@mo lo] What do you expect with this ?
| 128088 [george.mosch] this is an artificial example. I expect Hash's [] to be replaced
| + 128090 [decoux@mo lo] Well, you can use #instance_method and #bind but ruby will make the test
| | + 128115 [george.mosch] test
| | + 128127 [george.mosch] test
| | + 128198 [flgr@cc n. e] Note that EvilRuby has a less strict version of UnboundMethod#bind
| |   128272 [george.mosch] wtf is EvilRuby ?!?! :)
| |   128298 [flgr@cc n. e] See http://evil.rubyforge.org -- code is available from CVS.
| + 128093 [drejewic@ws ] Why you don't want to use module?
|   128106 [george.mosch] Well, I know about modules, this is not what I want.
|   128109 [gfb@to es ft] Object methods do not work in vacuum, they usually use instance
|   128116 [george.mosch] I thought Ruby promotes 'duck typing'.
|   + 128129 [gfb@to es ft] I do not think what you want has anything to do with 'duck typing'.
|   | + 128144 [george.mosch] class C1
|   | | + 128163 [bob.news@gm ] "George Moschovitis" <george.moschovitis@gmail.com> schrieb im Newsbeitrag
|   | | | 128193 [george.mosch] and
|   | | | 128278 [bob.news@gm ] "George Moschovitis" <george.moschovitis@gmail.com> schrieb im Newsbeitrag
|   | | + 128199 [flgr@cc n. e] ...
|   | | + 128324 [ruby@ro la l] 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@re in ] FWIW, in Javascript you can invoke a method defined anywhere with any
|   |   129741 [zdennis@mk e] def method_missing( arg1, arg2=nil )
|   + 128138 [bob.news@gm ] "George Moschovitis" <george.moschovitis@gmail.com> schrieb im Newsbeitrag
|   | 128141 [bob.news@gm ] "Robert Klemme" <bob.news@gmx.net> schrieb im Newsbeitrag
|   | 128368 [csaba@ph ny ] o = Object.new
|   + 128246 [vanweerd@gm ] 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@wo bl] It's not exactly that it's being treated as a Hash -- it's more that,
|     | 128301 [sroberts@un ] I see your point.
|     | 128305 [dblack@wo bl] 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@wo bl] a = []
|     | + 128413 [sroberts@un ] and what they do with those args.
|     + 128300 [sroberts@un ] I don't agree. I suggest it seems exceptional because its impossible.
+ 128200 [flgr@cc n. e] 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@un ] I don't think thats the case at all. I'd like to see you implement
  | + 128270 [george.mosch] not really!
  |   128292 [dblack@wo bl] But remember, it's duck with a small 'd' :-)  It doesn't mean "the
  |   128299 [flgr@cc n. e] 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@di pl y] I use a simple XML-RPC Server, which should print out Content from some Files via XML-RPC.
128096 [mneumann@nt ] You could insert GC.start, which invokes the garbage-collector. Is
128099 [senf@di pl y] The memory increasing monotonically. Where can be the memory leak? In my
128103 [mneumann@nt ] I don't think so. How long do you run it? And how much memory does it
128117 [senf@di pl y] You got the server code in an older mail. Here is a client which should
+ 128123 [mneumann@nt ] Ah okay, that's (IMHO) just normal in Ruby, so no memory leak. Not sure
+ 128252 [vanweerd@gm ] Is it maybe a threading issue, and the GC never getting a chance to

In need of Win32 fcntl (non-blocking)
128097 [ivo@pa li nl] I am making a multi-user, telnet based, bbs. At work I use Linux Ruby,
+ 128108 [akr@m1 n. rg] sysread might be usable because sysread doesn't block when some data
| 128155 [ivo@pa li nl] You are correct, sysread() returns without blocking. However this is a
| + 128184 [djberg96@ho ] script
| + 128233 [csaba@ph ny ] 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@gm ] "Zuzzurro" <celhoquilabrioche@zuzzurro.it> schrieb im Newsbeitrag
| 128118 [celhoquilabr] thank you.
+ 128201 [flgr@cc n. e] 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@gm ] Heaven is here - we have Ruby!
128128 [vanweerd@gm ] 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?sum? still sitting on

Hacking NArray
128145 [ruby@br an 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@br an 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@br an s] a.abs!
| 128290 [ytsunesada@y] Brian,
| 128293 [ruby@br an 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@er kv] 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@er kv] 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@we ri hh] 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@er kv] Worked flawlessly on another machine!
  128208 [jamis_buck@b] No reason. I'm just arbitrary by nature. :)

ruby cgi and forms question
128158 [mrmargolis@w] I have a form that contains both text fields and a file field for
128161 [belorion@gm ] If I recall correctly, multi-part form data comes as type StringIO,
+ 128195 [mrmargolis@w] Ok that worked.  Now my problem is just getting the uploaded image into
| 128197 [belorion@gm ] Also, I had some issues with image upload, storage, and retrieval.
+ 128477 [alex@ve k. n] It's either that, or a Tempfile (for larger files). Tempfile is also an

A Rubyist's Dream
128164 [ben@ta je o.] today.
128170 [ruby-talk@wh] That sounds about right, Ben.  Early on, long ago, I had a dream that
+ 128173 [ben@ta je o.] Some how I expected a response like this from you, _why.
| 128174 [belorion@gm ] You know you're addicted to coding when ...
| + 128178 [jeff@op nd m] I dream about server strings, whatever those are. You know you need a
| | 128189 [logancapaldo] No dreams about ruby yet, but I have had a couple of dreams in Forth.
| + 128241 [hal9000@hy e] In all seriousness, have you ever dreamed the exact location and cause
| | 128248 [matz@ru y- a] Often.  Furthermore, sometimes I jumped up from the bed and turned on
| | 128249 [vanweerd@gm ] Wow. Matz even time-travels in his sleep!
| + 128245 [vanweerd@gm ] That was breakpoint launching it's irb session. You want to disable
| + 128450 [discordantus] I sometimes spend my mornings fixing bugs. An alarm rings, and I have
+ 128213 [nospam@lu ac] Isn't it Oniguruma instead? I haven't heard about it yet but that sounds
  + 128243 [hal9000@hy e] I think that's right. "Guru" is a mnemonic for spelling it.
  + 128254 [david@sl to ] "Oni" means demon/fiend/ogre (Also the player who's "it" in a game of tag)
    128255 [billk@ct .c ] Since http://ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/36756
    128256 [ruby-talk@wh] Would that I could swallow up all of my vowelish improprieties here
    128262 [david@sl to ] I'll buy that. Another dictionary defines 'oni' as: devil, demon, ghost;
threads.html
top