53120-60465

52846-54601 subjects 53298-54221

^ ALERT -  GroupShield ticket number OA51_1034552973_LEVIATHAN_1 wa s generated
53120 [NAIITACTICSL] The attachment was quarantined from the message and replaced with a text

^ Virus Alert
53121 [security pop] ...

^ [ANN]RDE0.9.8.0 released
53123 [QZS01353 nif] I released RDE0.9.8.0.
53124 [botp delmont] ronment%29
53139 [QZS01353 nif] No, I do not have one for linux.

^ Problem with rdoc?
53126 [austin halos] I've done some translation of some Perl packages to Ruby, and I'm
+ 53129 [Dave Pragmat] Could you send me the source file that causes the problem and I'll
+ 53168 [list NOSPAMc] Can't say, but for rpkg, wait for the next release -- it's much more
  53205 [austin halos] How soon until the next release?

^ 1.8 release?
53141 [gsinclair so] Sorry if this has been discussed to death, but I found no concrete mention
53142 [bulatz integ] give us full list, please :)  i know only list at pragamtic
+ 53144 [gsinclair so] problems
| 53149 [bulatz integ] but all these methods are one-liners. i think that ruby programnmers
+ 53269 [lyle users.s] See the doc/NEWS file in the Ruby 1.7.x source code distribution.

^ admin scripting -script to scan network share and open ports
53151 [botp delmont] I would like to scan my network for network shares and open ports. How do I
53249 [B.Candler po] mynet = '192.168.5.0/24'
53250 [botp delmont] Many thanks sir Brian.

^ Ruby Weekly News
53157 [Dave Pragmat] Ruby Weekly News: 10/14/2002

^ URGENT TRANSACTION
53160 [austineuwa5 ] charset="US-ASCII";

^ Fourth Sydney Ruby Users' Group meeting
53161 [harryo zip.c] I'll stop counting them soon :-).  At least I remembered to give more than 30

^ access surrounding class
53165 [matthias_vei] is there a possibility in ruby to access the surrounding runtime
53169 [decoux moulo] Well, I've not understood what you want to do but try this
53173 [rking panopt] Matthias, can you describe your problem at a higher level?
53200 [matthias_vei] Sorry for my stumbled sentences - I try again.
53220 [list NOSPAMc] class A

^ The old SEGV is back...
53167 [Dave Pragmat] I've started getting the SEGV again when running RDoc. The backtrace

^ RubyConf registration is closed - can we still register?
53170 [michael.piec] Just went to register for RubyConf and found that that the on-line
53172 [dblack candl] There's no on-site registration.  I'll contact you separately about

^ Size of unnamed pipe?
53171 [hyukjoon e5-] Is there any way to calculate the size of unnamed pipe in ruby?
53179 [rking panopt] Do you mean the amount of data ready to read?

^ ruby command expansion
53176 [gpmarra le.i] is there a possibility in ruby to execute a system command by variable?
+ 53177 [decoux moulo] Try
+ 53180 [billtj z.glu] You can use the ` (backquote), and it is similar as replacing the value of
  53181 [gpmarra le.i] Thank you!!

^ string comparism
53178 [kgergely mla] I'm just wondering if is there any method, which can intelligently sort

^ Message threading code
53182 [tom.hurst cl] I don't suppose anybody's happened to implement jwz's message threading

^ final in ruby
53183 [kgergely mla] I've seen so far, that a ruby method can be hacked to be
+ 53184 [rking panopt] Why would you want that?
| + 53187 [kgergely mla] Because I want to protect everyone (including myself) to overwrite some
| | 53206 [decoux moulo] Freeze your class
| | 53207 [austin halos] a() end end'
| | 53208 [decoux moulo] He just need to put the methods that he want protect in a module and then
| | 53256 [kjana dm4lab] module M
| | 53257 [decoux moulo] Yes, like all objects are open because you can write
| + 53191 [billtj z.glu] I guess for the same reasons that Java has provided such facility :)
|   53201 [matthias_vei] In java this is mainly a speed issue: no virtual method lookup mechanism
+ 53186 [decoux moulo] Why do you want this, this can be usefull to modify a method. Imagine that
| 53189 [kgergely mla] mwrap? What is it?
| 53192 [decoux moulo] method wrapper this is based on function wrapper (fwrap) from Allegro
+ 53190 [peter semant] Java gives you this and it can do so because it is a statically typed
| 53198 [bulatz integ] and this is universal problem to any question, where someone don't
| 53221 [list NOSPAMc] Admit it: you're learning 'test/unit' and are waiting a green bar on
| + 53235 [james jamesb] That almost made me spit my gum out!
| + 53243 [bulatz integ] i think that answers "whole nature of ruby would have to be changed"
+ 53197 [gsinclair so] How would your method get overwritten anyway?  (I know it's possible, so in
  + 53204 [kgergely mla] Singleton methods in an object, which is derived from a kind of template
  + 53364 [martindemell] For what it's worth, that was the same revelation that made me stop

^ Maximum size of unnamed pipe size in ruby
53185 [hyukjoon e5-] For the clearfication of previous question.
53195 [gsinclair so] I'm afraid I don't know.  Can you tell me how you might do it in C, or some

^ Referring to instance vars in a Struct?
53188 [chrismo clab] I have a Struct -- then I extend the class by adding some methods. I
53193 [chrismo clab] class TestMe
53196 [billtj z.glu] I am not pretty sure, but by drawing analogy between C++ struct and class,
53213 [chrismo clab] In my real code, I had a struct that represented a database row with several
+ 53214 [billtj y.glu] I agree with you that it is probably pushing Structs too far.  As I do not
+ 53228 [dblack candl] One way to look at it: having methods that set and retrieve same-named
  53229 [alan digikat] A cleaner way to do this is to derive the class from an anonymous struct.

^ Assistance
53194 [mbundu00 yah] DEMOCRATIC REPUBLIC OF CONGO.

^ & operation and if statment
53199 [tarasis btop] I'm puzzled by the behaviour in the following run. I would expect line 2
53202 [dblack candl] Don't forget that 0 is true.
+ 53211 [billtj y.glu] It is Item 12 in "Things That Newcomers to Ruby Should
+ 53225 [tarasis btop] Duh, thank you, I had compelely forgotten that.

^ ruby<=>php for web scripting
53203 [kgergely mla] I've a question. Probably I will be a web programmer. They want me to
53212 [mikkelfj-ant] If it is a large project, Ruby offers increased productivity because it
53218 [ sz szasz.hu] FWIW, my impression is the same, Ruby may be more of a promise
53219 [kgergely mla] That's why I'm a bit afraiding asking it...
53223 [ sz szasz.hu] if even I get hit by one, then they really get into some serious trouble!... ;-)

^ passing on a block
53215 [tromp serpen] I defined a Statespace class, which happens to encode states as integers
53355 [meier meiste] I would take the latter because of does not hard codes the arity of
53358 [kentda stud.] I thought of method arity when I first read your sentence, so just to be

^ Ruby Weekly News
53216 [Dave Pragmat] Ruby Weekly News: 10/14/2002

^ Recommend "Register Domain with only $14.95"
53217 [recomnd pand] register / renew and transfer domain (.com/.net/.org/.info/.biz/.us) with only $14.95

^ 0 is true - how'bout "least surprises" ;-P (Was: Re: & operation and if statment)
53227 [ sz szasz.hu] Er... Not that I couldn't fix my scripts (my server monitor
+ 53231 [tom.hurst cl] Better to say "everything is true except nil and false" rather than
+ 53244 [bulatz integ] see str.index, for example. this is already used in language design
+ 53251 [B.Candler po] One of the things I find annoying about Perl is having to write everywhere

^ Please check my algorithm
53230 [vinfoley iqu] I have written an entry in Ruby, and I'd like to know if there are
+ 53236 [gsinclair so] Without comments it's difficult to understand what you're trying to do, but I
+ 53238 [dblack candl] That is quite a cool one.
  53365 [martindemell] ISBN_RE.match(self) &&
  53403 [michael_s_ca] Was the intent here to shorten the code to beyond obfuscation threshholds?
  + 53406 [billtj z.glu] Well, I personally do not object obfuscation as long as it is
  + 53447 [martindemell] Nope, just to use two injects rather than an accumulator (which was
  | 53459 [michael_s_ca] Yeah, I apologize for my tone there; I didn't mean to come across as
  | + 53463 [dblack candl] OK, then I apologize for the somewhat icy post that just crossed in
  | + 53517 [martindemell] 'Sok, though I must admit I was taken aback.
  |   53536 [michael_s_ca] Point well taken.  It might be a good idea sometimes however for
  + 53461 [dblack candl] I don't there exists some particular code-length threshhold, to drop

^ Test unit stuff...
53233 [austin halos] I am preparing a couple of packages for release on RAA (they are
53237 [jweirich one] Yes it is.  The packages have been combined and RubyUnit is no longer
53262 [chrismo clab] IIRC,
53266 [Mark.Volkman] This message is in MIME format. Since your mail reader does not understand

^ [ANN] MIME::Types for Ruby (1.003)
53240 [austin halos] I have just reimplemented MIME::Types for Perl (1.003) in Ruby. I

^ SNIPPET: Sliderule simulation.
53242 [phlipcpp yah] Here's the latest in my series of irrelevant irreverent TkCanvas sample

^ MONEY MAKING THAT WORKS!!
53245 [smardl yahoo] My name is Luc, and I want to share with you a MONEY

^ How to undefine a method on the fly?
53255 [mfraser seas] class Hello
+ 53259 [decoux moulo] class << x
+ 53270 [bilotta78 ho] Could a workaround be to re-define/overload the method so that it

^ extensions in C++ (iostream)
53258 [0bz63fz3m1qt] Has anyone experience with or knows how to get iostream
+ 53261 [kentda stud.] Agh! Use std::cout, std::endl etc or a "using namespace std".
| 53264 [0bz63fz3m1qt] ruby/ext> g++ -shared -Wl,-soname,Test.so -L/usr/local/lib -o Test.so test.o -L. -lruby -lc
+ 53263 [decoux moulo] Change the call to `cc' by a call to `c++' i.e.
  53265 [0bz63fz3m1qt] it does the trick, thanks alot.  Im a happy man ;-)

^ OT: MacOS seminar for *nix geeks
53267 [canyonrat ma] A friend of a friend is putting on a free online seminar for those

^ (none)
53268 [binishbabu s] off

^ Re: mingw install
53271 [probertm nor] This is quite strange.  I am using MSYS package 1.0.8 which includes
+ 53434 [tpeters inva] I have no windows near to check, but I remember to have read in one of the
+ 53469 [probertm nor] Earnie says: "It offers only a user land environment for MinGW development."

^ Last minute RubyConf Registration
53272 [pabs pablotr] I just noticed the registration for the RubyConf 2002 has closed.  Is

^ [ANN] FXRuby-1.0.14 Now Available
53274 [lyle knology] I am pleased to announce the latest release of FXRuby, the Ruby language
+ 53283 [hal9000 hype] <foxgui-announce@lists.sourceforge.net>;
| 53294 [lyle knology] I believe this bug was fixed in the latest exerb release (version 2.2.0),
| 53302 [hal9000 hype] Oh, pardon me. I thought this was a limitation
+ 53286 [ian caliban.] FXRuby.cpp:258: cannot convert `VALUE' to `void *' for argument `1' to `rb_gc_mark (void *)'

^ async system call on Windows?
53275 [chrismo clab] I need a way to thread a system call to Windows without having the entire
53369 [chrismo clab] Following up...
53401 [sdate kc.rr.] I am interested in learning from your Ruby code ... if it is available for
53505 [chrismo clab] Sure - here you go. Thx to Phil Tomson for posting a version of his
53627 [sdate kc.rr.] Thanks a lot !

^ Ruby on OSX
53276 [bobx linuxma] If you have OSX can you tell me what version of Ruby is installed? Also have
+ 53279 [paul NoSpAm.] [pjs@chaos pjs]$ ruby -v
+ 53280 [canyonrat ma] I.6.7 I haven't personally tried 1.7.3 since the OS was updated from

^ Module.extend_object aFixnum
53277 [ahoward fsl.] rubyists (we need something like 'perl mongers') -
53281 [dblack candl] How about... "rubyists"? :-)
53288 [ahoward fsl.] my understanding (explained to me on this group) is that anytime an object is

^ ruby-dev summary 18458-18504
53278 [maki rubycol] Sorry to post so late. This is a summary of ruby-dev ML
+ 53306 [decoux moulo] Well, because I've a modified version which test this, here the result for
| + 53307 [nobu.nokada ] At least, yes for lib/optparse.rb.
| | 53308 [decoux moulo] lib/fileutils.rb also I think
| + 53329 [pbrannan atd] i = 0
|   + 53330 [decoux moulo] Read [ruby-talk:53308] you don't find something strange ?
|   | + 53336 [angus quovad] st = r = w = nil
|   | | 53400 [aamine lover] It is there just because for peephole optimization.
|   | | 53404 [billtj z.glu] This looks to me like some performance fine tuning which is achieved
|   | + 53339 [pbrannan atd] Yes, it does look strange.  Why bother assigning nil to r and w if the
|   |   53343 [gsinclair so] again, their collected experience in Ruby would cause them to write them in a
|   + 53332 [batsman.geo ] Speed :-P
+ 53320 [batsman.geo ] If this is now considered "bad style", why was it allowed at
  + 53323 [decoux moulo] Well, the latest that I know is [ruby-talk:52440] where there is
  + 53324 [matz ruby-la] Because I was stupid.  This is bad manner.

^ CGI::Session
53282 [grzegorz cs.] I have a problem.  I am using apache with mod_ruby and eruby.
53310 [hwyss ywesee] Greg,

^ Porting a CRC function to ruby
53284 [namille2 vt.] I'm a bit new to Ruby and I'm having trouble porting a CRC function from C++
+ 53304 [billtj z.glu] The problem is not signed vs unsigned.  The problem is, given an int, the
| 53386 [namille2 vt.] Thanks for the insight. I tried my suggestion of masking off all but the
| 53392 [billtj z.glu] I think in Ruby it is for efficiency purpose.  Ruby internal C
+ 53667 [bulatz integ] instead, use "return 65535-aCrc"

^ Psyco
53285 [whitton atla] There's an interesting article on IBM developerWorks about a new program
+ 53287 [ptkwt shell1] It's an interesting idea, but first we need a bytecode interpreter.  As it
| + 53325 [nat.pryce b1] Why would it not be possible to compile the AST to native code?  That's
| | 53351 [justinj mobi] The real problem is that Ruby is so dynamic.  This is great for programmers
| | + 53353 [ndrsbngtssn ] It may be faster to JIT-compile bytecode into native code than doing it
| | | 53363 [mikkelfj-ant] That's
| | + 53357 [billtj y.glu] Totally agree.
| | + 53361 [nat.pryce b1] Sorry, I wasn't clear.  I meant why would it not be possible to
| | + 53362 [mikkelfj-ant] better
| |   53366 [Dave Pragmat] Not really....
| |   + 53370 [pbrannan atd] Why allow the user to change the definition of Fixnum#+ to begin with?
| |   | 53374 [Dave Pragmat] I don't know about '+', but I quite often change definitions of
| |   | 53375 [pbrannan atd] 1) I don't think that modifying any class that you didn't write is EVER
| |   | 53391 [hal9000 hype] I don't agree, but I'm not passionate about it either way.
| |   | 53393 [billtj z.glu] As I am more into "performance" than "purity" (such as everything should
| |   + 53387 [mikkelfj-ant] True.
| + 53348 [mikkelfj-ant] I'd rather see a proper native code compiler. JIT's are not that great,
+ 53321 [batsman.geo ] It's already been talked about in this list, in

^ OSX file extension
53289 [bobx linuxma] I was just perusing some OSX sites and reading a REALbasic review when lo
53299 [canyonrat ma] It does cause some problems if you have REALbasic on the Mac. A lot of
53314 [peter semant] Real Basic is the product of http://www.realsoftware.com/ which has no
+ 53337 [canyonrat ma] I have the Office v 10 upgrade CD with the REALbasic promo right in my
| 53340 [peter semant] So your saying that RealBasic doesn't come with the macintosh at all but
| 53371 [canyonrat ma] Exactly.
| 53465 [bilotta78 ho] Get OpenOffice.org
+ 53356 [canyonrat ma] I have the Office v 10 upgrade CD with the REALbasic promo right in my
+ 53372 [canyonrat ma] I have the Office v 10 upgrade CD with the REALbasic promo right in my

^ Re: [Fxruby-announce] Re: [ANN] FXRuby-1.0.14 Now Available
53290 [lyle knology] The corrected prototype for rb_gc_mark() [from the latest CVS sources
53313 [ian caliban.] Thanks. That did the trick.

^ instance_eval & attribute accessors
53291 [austin halos] There appears to be some bizarre behaviour with instance_eval with a
+ 53293 [austin halos] After writing this, I realized what the problem was. It'd still be
+ 53295 [lyle knology] This is not a limitation of instance_eval(), it's just how Ruby works. Both

^ quick question
53292 [nemo hellotr] Why does this not work in mod_ruby?
53311 [kentda stud.] It might be the wrapping of the mod_ruby code in an anonymous namespace
53326 [nemo hellotr] That is rather odd, and seems to go counter to my point above.
53344 [kentda stud.] Been a while since I touched mod_ruby, but I seem to recall that require

^ Max. size of unnamed pipe size.
53296 [hyukjoon e5-] Does anybody know how to calculate the max buffer size of unnamed pipe?
53341 [angus quovad] In Linux it is a constant PIPE_SIZE == 4096.

^ Interfaces in Ruby
53297 [web2ed yahoo] Is there a way to write/inforce interfaces in Ruby like one can using
+ 53300 [canyonrat ma] I don't think C++ abstract classes are that similar to Java interfaces.
| 53334 [pbrannan atd] Not having used Java interfaces extensively, I can't speak about their
| + 53342 [gsinclair so] The confusion arises because if you mix in a module, it effectively becomes
| + 53350 [canyonrat ma] It's just that the contract is used as a weak form of multiple
|   53379 [pbrannan atd] I think that MI can be used to implmement the contract, but that does
|   + 53396 [staypufd aus] Doesn't the fact that a class mixes in the mixin satisfy goal number 2?  I
|   | 53407 [jweirich one] The reason you can't have Java interfaces provide implementation has
|   | 53411 [staypufd aus] Weak typing allows the code to work on any object though.  In Eiffel, the
|   | 53416 [jweirich one] Its not type conflicts that you worry about, but name conflicts.  And
|   + 53397 [canyonrat ma] I was just  expressing the conventional wisdom. See for example, Sun's
|     + 53410 [jweirich one] An abstract class in C++, with all pure virtual methods and no data, is
|     | 53415 [canyonrat ma] Yes it is. In that case, they are functionally equivalent.
|     + 53468 [pbrannan atd] I think I was mistaken to call this "generic programming," which is
|     | 53479 [canyonrat ma] Aha
|     | 53485 [pbrannan atd] module Foo1
|     | 53506 [canyonrat ma] charset=US-ASCII;
|     | 53521 [pbrannan atd] I think your diagram here is slightly off.  Ruby has only single
|     | 53530 [canyonrat ma] I consider mixins to be a *form* of MI. I would go so far as to say
|     | 53549 [pbrannan atd] 1) No two modules mixed into the same class provide two methods with
|     + 60464 [bob.news gmx] "Chris Gehlker" <canyonrat@mac.com> schrieb im Newsbeitrag
+ 53301 [ptkwt shell1] class AbstractException < Exception
+ 53335 [pbrannan atd] but as I use Ruby more and more, I see less and less use for this.
  53409 [web2ed yahoo] This is what I was getting at.  Nice code.  Why do you feel that this
  + 53412 [staypufd aus] On 10/16/2002 11:08 PM, in article
  + 53470 [pbrannan atd] [ruby-talk:51906]
    + 53475 [austin halos] Wouldn't DbC take care of this?
    + 53514 [list NOSPAMc] [Not strictly related to your post, Paul, just blatantly taking some
      + 53522 [pbrannan atd] The intent of an interface is not to cerfity a particular behavior.  It
      | + 53523 [list NOSPAMc] Fair enough.  Still it bothers me that classes are `branded' with a
      | + 53524 [jason jvoege] This is true of Java interfaces, but Design By Contract does make
      | | 53607 [gsinclair so] "Reify" is a word I had encountered once.  In a dictionary.  Becuase someone
      | + 53529 [nat.pryce b1] Isn't that the point of comments and/or documentation.  I'd argue that
      | | 53550 [pbrannan atd] There are some days that I agree.
      | | 53551 [nat.pryce b1] That's true, but interfaces don't help you, and DbC only gets you part
      | | 53600 [jweirich one] I'm not sure I understand the above comment.
      | | 53682 [nat.pryce b1] Often, when designing classes you define a protocol by which calls can
      | | + 53690 [jason jvoege] [snip code example]
      | | + 53820 [jweirich one] [... socket example elided ...]
      | | | 53852 [staypufd aus] On 10/22/2002 7:27 AM, in article 1035289773.8156.27.camel@traken, "Jim
      | | + 60465 [bob.news gmx] "Nat Pryce" <nat.pryce@b13media.com> schrieb im Newsbeitrag
      | + 53534 [alwagner tca] There is no way to certify that an author's intent is reflected in his code.
      + 53533 [alwagner tca] Thank you.  Finally, this discussion is getting down to it's philosophical
threads.html
top