80782-81204 subjects 81183-81991

Re: OOP flavors
80953 [mwilson13@co] To me, it's all about context, or what the problem domain is.

exerb, bruby and ruby 1.8.0
80959 [be9-ml@be .r] Today I set out to make an .exe file of my program (which uses FXRuby).
80977 [jfontan@ce g] One posibility is to compress the executable with UPX or somethink like this. It's not really secure as it can be decompressed with se same tool, but your code can not be directly seen.
80989 [be9-ml@be .r] Oh, I tried PECompact, but in vain. The resulting file goes segmentation fault :-)
+ 80994 [xrfang@ho ma] Please try compress the exerb rbx file then make your exe, if you make
+ 81000 [tksano@m3 kc] According to Exerb's author, you can't compress executables

ANN: www.ruby-lang.org will be down on Sep. 11
80960 [matz@ru y- a] Due to the host maintenance, services from ruby-lang.org, including
81055 [ jupp@gm .d ] Saluton!
81365 [frank.schmit] .... which, given the problems CNN journalists seem to have with
81412 [ jupp@gm .d ] Saluton!

holub and OOP flavors
80961 [code@jo ch n] Just want to surface this link to everyone involved in the (rather large)
+ 80972 [rasputin@id ] That would be my first concern, but it's also worth considering the
+ 80975 [batsman.geo@] I agree completely.
+ 80987 [easco@ma .c ] I read his articles after you posted your note.  His ideas are
| 81053 [djd15@po cw ] I haven't finished reading all the articles yet (I'm on the second).
+ 80993 [hal9000@hy e] I will add it to my list of things to read. Near the top of the
+ 81025 [sean@cS Pl o] On these points, I wholeheartedly disagree.
  81077 [code@jo ch n] When I said "x does the fooing" I didn't mean x, the programming construct,

AW: YAML / Exerb problem
80963 [Meinrad.Rech] no, i got a working 180 core file, that works well if i do not include yaml.

[windows 9*] how to get the output of commands which contain backslashes?
80964 [tobiasreif@p] I have to deal with the annoying shell of Windows.
80983 [chrismo@cl b] I've got the following routines in a win.rb file that I always require
80996 [tobiasreif@p] Chris,
80997 [tobiasreif@p] P.S.

Re: how to get the output of commands which contain backslashes?
80965 [usa@os .a t.] cmd = '\for-programs\use\tidy\tidy.exe -v'
80968 [tobiasreif@p] First of all: Thanks for replying!
80970 [usa@os .a t.] Oh, sorry, I only tested on my WinXP box.
80973 [tobiasreif@p] Your code
80979 [usa@os .a t.] It's not work. Sorry, I mistook.

Re: (OT) Another Ruby-powered site
80971 [dali@in ul .] You can add three more machines running this combination.
81023 [ahoward@fs .] could you elaborate?  i'm in the process of setting up some new machines and
81030 [ben@th ng ag] For what it's worth, I'm running Linux, Apache, Ruby and MySQL for my

Output lines to stdout for debug
80974 [andrew@wa ro] Is there an easy way of getting each line of a ruby script to be written to
+ 80984 [msparshatt@y] The following function will do the trick
| 81917 [andrew@wa ro] Thanks - perfect!
+ 80986 [nobu.nokada@] tracer.rb

80988 [hobertmula@n] ...

Kernel.const_get and gets
80998 [rasputin@id ] Well, rubberducking has finally failed me.
81002 [decoux@mo lo] it has nothing to do with const_get, remove the line
81003 [rasputin@id ] KERRRR-CHUNK.  (sound of very large penny dropping).

81013 [dannykou20@n] ...

[BUG] unknown node type 0
81014 [hal9000@hy e] Who else has seen this error?
+ 81015 [decoux@mo lo] Generally this means that the GC has a problem.
| + 81018 [hal9000@hy e] Nothing but dbm.
| + 81024 [samuel@al en] I would get that while working on RERSS which is written (at the
+ 81019 [ben@th ng ag] I've never seen it, but it looks to me like a parser bug.  The first
+ 81039 [childNOSPAM@] I've seen this error several times. I also had a problem reproducing it.
| 81060 [steven.jenki] I've also seen the problem and this workaround in 1.6.8. Haven't done
+ 81059 [flori@ni e. ] class A
| 81097 [decoux@mo lo] I can't reproduce the bug.
+ 81148 [mike@ra do .] I hage with a simple script (75 lines) which uses REXML to mangle some
  81196 [decoux@mo lo] well, a bug was found in ruby which can completely explain the error given
  91703 [pbrannan@at ] I see this problem occur from time to time on ruby 1.6.8.  Is there a
  91796 [decoux@mo lo] Well, if it's the same problem the modification is
  92493 [pbrannan@at ] Does that mean there is no patch?  Is the following the right patch?  (I
  92543 [decoux@mo lo] Well, it was found with 1.8.0. Probably matz has a patch for 1.8.0 but not

cgi bug? with iis 5 and nph
81021 [chrismo@cl b] if options.delete("nph") or /IIS/n.match(env_table['SERVER_SOFTWARE'])

webrick and ruby
81028 [ahoward@fs .] does anyone know of a development effort being made to support fastcgi in
+ 81051 [david@lo dt ] I'd have a great interest in seeing something like this come through. A
| 81090 [martindemell] Something to add to the debate - the python guys have nicer wordplay
| 81216 [remi@ch rr p] Why don't you call it "Rubarb" :-)
| 81217 [easco@ma .c ] Given that cherries are often described as being Ruby red, I would
+ 81064 [ptkwt@ar cn ] How about including borges as well?
  + 81065 [david.naseby] I've got ruby + webrick + amrita + borges on the boil.. Trying to fit in
  | 81067 [harryo@qi so] I read your post to the Sydney mailing list the other day, but didn't reply since I haven't really played with any of that stuff.
  | + 81068 [harryo@qi so] Sorry about that.  I intended it to go just to David!
  | + 81164 [david@lo dt ] Very interesting!
  |   81169 [david@lo dt ] Aber verdammt!
  |   81173 [hal9000@hy e] No sweat. We've all done it. Or at least I have.
  + 81156 [ahoward@fs .] sounds good - can you explain it to me?  ;-)
    81636 [drbrain@se m] in
    81641 [feldt@ce ch ] But then your code will not be separated from the skin/presentation, eh?
    81653 [drbrain@se m] Borges promotes heavy use of CSS, and tight coupling is a "feature".  In
    81714 [feldt@ce ch ] Sounds great. Looking forward to larger examples.
    81740 [drbrain@se m] r=20
    81780 [david.naseby] I think you might find ruby + borges + madeleine = memory hog. I don't
    81796 [feldt@ce ch ] From your experience would you say Madeleine is the mem hog,
    81799 [drbrain@se m] 03=20

Ruby GC eating my VALUE on the stack
81033 [sean@cS Pl o] I thought I had read everything I needed about the Ruby GC, but
81054 [batsman.geo@] Is there any difference if you declare the VALUE to be volatile?
81058 [sean@cS Pl o] That solved the problem!  I guess because volatile forces the variable

How do I POST a multipart request?
81042 [rvarghese@us] I am writing a script to send a POST request to a webserver.

[ANN] Log4r 1.0.4 and update on adopting log4r
81043 [leon@ug s. a] Oh no, just when I wanted to quit this popsicle stand, I get sucked back in!

Re: [ANN] Log4r 1.0.4 - where to download
81044 [leon@ug s. a] Argh, this is an example of why I need help. :-)

81045 [williammadu@] ATTN; SIR/MADAM.

where can I get ssleay.dll for net/https usage?
81049 [chrismo@cl b] Sorry for the idiot post, I'm running low on time ... where can I get
81074 [nordehacedod] You'll find it in the OpenSSL package available at

WEBrick and mod_ruby performance
81057 [quixoticsyco] I've been scoping out ruby for an upcoming server project.
+ 81062 [ahoward@fs .] you should definitely check out fastcgi and the ruby fastcgi binding.  it's
| 81124 [d.borodaenko] What are you comparing it against: plain cgi, mod_ruby, or webrick?
| + 81145 [quixoticsyco] ahoward's post was unclear to me as well.
| + 81155 [ahoward@fs .] plain cgi.
+ 81592 [kwatch@ly os] You can try 'esehttpd'
  81595 [mgarriss@ea ] Why am I just now hearing about this?!  Ugh.  $40 on an apache book, oh
  + 81598 [michael_s_ca] How "production quality" is esehttpd?  (As compared to apache)  Speed
  + 81607 [ahoward@fs .] this looks o.k. - but the ENTIRE webserver is blocked when running ONE cgi
    81611 [mgarriss@ea ] Ah, ugh, dang, and that graph on the esehttpd site was so cool.  Well
    81614 [aredridel@nb] cgi.rb is that abstraction.  It handles apache requests, cgi and
    + 81618 [mgarriss@ea ] Excuse my noobness on this.  So when I do a look on RAA I find
    | 81619 [idan@id ns .] FastCGI is a communication protocol, so it requires support from both ends,
    | 81624 [mgarriss@ea ] Thanks for the info.  I will look into fastcgi more carefully now.
    + 81620 [idan@id ns .] Not entirely correct, fcgi can create cgi.rb enviroment, but that's not it's

This email is personal please and from Alhaji Mantu
81061 [alhajimantu@] Dear Sir/Madam

optparse documentation and/or examples
81063 [mwilson13@co] Does anyone have links to documentation for optparse (now a part of the
81069 [tksano@m3 kc] Download the OptionParser (optparse's formal name?) package from

[OT] Unit Tests and Encapsulation
81075 [easco@ma .c ] This may be off-topic in a Ruby list, although I have noticed that a
+ 81078 [mwilson13@co] I know nothing about bezier curves or drawing programs, so this may not
+ 81095 [batsman.geo@] This might sound silly, but would it be possible to overload, say, #==
+ 81101 [gsinclair@so] It might sound icky, but isn't that what unit tests are supposed to
+ 81112 [michael_s_ca] go
| 81123 [dan@ta ta od] I heard an interesting take on testing an implementation of an
+ 81113 [wsdng@on in ] I think unit test should test at least the public interface but aren't
+ 81122 [sera@fh an .] Most of the time, if you're having trouble unit-testing a class, that
| 81129 [easco@ma .c ] Well... I don't think that is the case in this instance.  The class
| + 81133 [wjl@ic ca er] This isn't directly related to this particular problem, but here is an
| | 81140 [bg-rubytalk@] I also regularly deal with cases that involve interfacing to external
| | + 81141 [aredridel@nb] You can always test the failure cases, too -- and when you find one you
| | | 81147 [bg-rubytalk@] Sure that's easy.  But what happens if you can't test the "success" case
| | + 81143 [wjl@ic ca er] Just to add some more fuel to the discussion: another real general place
| | + 81200 [norris@gf s.] I've asked similar questions when unit-testing screen-scraping applications.
| + 81247 [sera@fh an .] I'd recommend doing this exactly. After a while, any system I've
+ 81144 [wkb@ai ma l.] Scott,

Re: [On Topic] Unit Tests and Encapsulation
81076 [mwilson13@co] I think this is completely on-topic.

optparse versions and sources
81079 [Meino.Cramer] when I look at the homepage of the author of the optparse package,
81080 [nobu.nokada@] It is obsolete now.

Multiple gsub statements in one line possible?
81081 [keuler@po ta] All-
+ 81082 [hal9000@hy e] What probably happened s that the first gsub! didn't actually change
| 81083 [keuler@po ta] Hal-
+ 81084 [code@jo ch n] Forgive me for stating the obvious... Do you have to do in-place gsub?  Can
| 81096 [batsman.geo@] and even
| 81185 [keuler@po ta] Joe- Good point. I guess I don't need an in-place gsub (!)
+ 81085 [gsinclair@so] Further to Hal's response, if you remove the !s then everything will be OK.

Any way to advance to an iterator prematurely?
81087 [keuler@po ta] All-
81088 [djd15@po cw ] (1..30).each do |x|
81186 [keuler@po ta] Thanks Dan. Works fine!

Print to the printer
81094 [sabymus@re i] I have just started RUBY. But is there anything to print
81121 [easco@ma .c ] Printing to the printer is an operation that is very specific to each
81149 [sabymus@re i] Thanks for your mail. I want to use it for LINUX and Windows
81172 [hal9000@hy e] Do not be surprised if there are other Ruby users in Calcutta. The book

Ruby interpreter thread safety
81100 [thomas@Fi st] I have a scenario where a ruby extension module starts real/os/heavy-weight
+ 81103 [nobu.nokada@] Run the ruby interpreter in a particular os-thread, and use
| 81110 [thomas@Fi st] Could you give me an example of such a system provided queue?
+ 81104 [jweirich@on ] The general solution for any threaded code making calls to a non-thread
  81108 [thomas@Fi st] Got it!

Tanaka Akira's PrettyPrint usage? Are there any examples?
81106 [ejb@th wo ld] I'm interested in using the prettyprint module available from RAA.
81142 [ruby-talk@wh] Anything in particular you want to know?
+ 81160 [ejb@th wo ld] Without sounding incredibly stupid, I want to know how to feed it ruby code and
+ 81161 [ejb@th wo ld] Also, did I make a mistake in downloading the pp application from RAA?

REXML - external entities
81107 [tobias.grimm] Unfortunately, the REXML-site seems to be down, but maybe you can help

Printing in Ruby
81117 [sabymus@re i] I made a simple thing in ruby for printing to the printer.
81138 [aredridel@nb] [clip]

Thanks to all
81118 [sabymus@re i] Sorry, I didn't check mailbox for about 5 days. The members send
+ 81150 [surrender_it] I use ruby-talk as a newsgroup (comp.lang.ruby), I think that could be
+ 81274 [martindemell] Add your name here: http://www.rubygarden.org/ruby?IndiaGroup

Enterprise ruby applications
81119 [dan@ta ta od] I'm looking for evidence to present Ruby as a suitable language for
81125 [tobiasreif@p] "NASA Langley Research Center uses Ruby to conduct simulations [...]" etc
81127 [dan@ta ta od] Thanks Tobias.

backtick calls on Windows (9*)
81128 [tobiasreif@p] I'm disappointed to see that stuff like www.ruby-talk.org/9739 and

Compilation errors for FXRuby-1.0.25
81130 [jfh@ci e. fl] FOX Version	: fox-1.1.34
+ 81137 [jfh@ci e. fl] Ack, I obviously can't read -- this version of FOX isn't supported by FXRuby.
+ 81139 [lyle@us rs s] As stated on the home page (I wasn't kidding!), FXRuby 1.0.x is only

Re: [Re: Class libpcap]
81136 [hackerotaku@] Thank you very much i am trying it out now

[ANN] ruby-mp3info 0.2.1 released
81146 [moumar@ru yf] the new version of ruby-m3info has been released. This is v0.2.1 and
81729 [NOSPAMcs96an] Ah...  Fame at last!

"Code Generation in Action" review at Slashdot
81151 [fxn@ha hr f.] Since "Code Generation in Action" was mentioned a few weeks ago I

how to get the list of all classes?
81152 [tobiasreif@p] I'm writing a syntax highlighting program [code] for Ruby code listings
+ 81153 [wjl@ic ca er] $ ruby -e 'x = []; ObjectSpace.each_object { |o| x << o if o.class ==
| 81154 [rpav@me hl .] x = []
| 81157 [markjreed@ma] It seems odd to me that ObjectSpace doesn't mixin Enumerable, but
| + 81158 [wjl@ic ca er] I agree that having ObjectSpace enumerable would make sense. Actually, the
| + 81182 [androflux@so] Yes, that's seemed odd to me at times as well.
|   + 81205 [markjreed@ma] MJR = me
|   | 81206 [thomas_adam1] I agree with Jason here, alias is the way to go, it even speeds it up on
|   + 81209 [dblack@su er] class << ObjectSpace
+ 81241 [tobiasreif@p] How to get the list of names which includes "print"?
  81242 [tobiasreif@p] Sorry, please ignore the previous post.

[ANN] sys-win32etc 0.0.4
81159 [djberge@qw s] ...
81179 [phasis@bc in] when
81214 [djberge@qw s] Thanks!  That worked, though the wszTemp declaration didn't need to be

81162 [hugo@we fr e] Hugo Kazumi Kavamura

TCPSocket and rescue
81163 [probertm@NO ] I am trying to telnet to a large number of boxes.  I have created a
81197 [decoux@mo lo] you catch only StandardError, write it
81213 [probertm@NO ] Guy did say ...

using tktable under ruby
81166 [ferenc@en ar] I am building a db-handling app in ruby, with Tk GUI. I have found the
81176 [nagai@ai ky ] Unfortunately, current Ruby/Tk doesn't have a general framework for
81227 [ferenc@en ar] Great, I wanted to write something similar (using install_cmd), and now

Difference between .. and ... in boolean ranges
81167 [odain2@no pa] I'm a bit confused by some Ruby behavior I'm seeing with ranges.  As I
+ 81170 [sean@cS Pl o] Sean O'Dell
| + 81171 [bg-rubytalk@] That'll probably work... but I'm curious to know if Oliver Dain's method
| | 81174 [odain2@no pa] Its my understanding that its not a fluke but a design decision.  The
| + 81269 [martindemell] Yes, but this is a single boolean not a boolean range. From what I
|   81277 [odain2@no pa] I think you've got the 2 dot case right, but the 3 dot case is wrong.
|   81278 [martindemell] $ irb
|   81282 [odain2@no pa] The above code is, I think, interpreted completely differently that
|   81291 [martindemell] Sorry about the confusion - I was agreeing with your point about how it
+ 81178 [jzakiya@ma l] for second case, you get output: "Not in the range: 5"
| 81220 [jzakiya@ma l] equivalent oneliners
+ 81181 [shin@fa ul y] I think i can answer.

Code beautifier (was Re: Tanaka Akira's PrettyPrint usage? Are there any examples?)
81168 [ruby-talk@wh] If you run pp.rb from the commandline, the library will perform some

module_function semantics
81180 [william@wi l] I'm trying to understand some code in the stdlib (drb/drb.rb, to be
81198 [decoux@mo lo] module_function make a private method and a public singleton method.