13415-13883 subjects 13820-14847

^ Off-topic: General flow of a (specific kind of) CGI
13633 [hal9000 hype] This is an offtopic post, which I rationalize in the
13645 [neumann s-di] I've written something similar, but a bit complexer.

^ A bit of Win32OLE code for you
13634 [hal9000 hype] I've done a bit of playing with win32ole and thought

^ Newbie to ruby may questions please help
13639 [akhar videot] I have been browsing for more than 7 hours now, and I am still hesitating
13654 [matju sympat] I don't know about other platforms, but I created a package for sound

^ operator +
13641 [luigi.ballab] I suspect this to be a rather stupid question, but I couldn't find the
13646 [decoux moulo] Add
+ 13648 [ ericb eb.to] Shouldn't that really be
+ 13649 [luigi.ballab] Hmm. Looks like I kept my example too simple.
  + 13650 [decoux moulo] You'll have a problem with -
  | 13651 [ ericb eb.to] Oh, that's what that mirror stuff was about - so you can seperate the
  | 13652 [decoux moulo] Just define a constant
  + 13713 [johann physi] This is exactly the sort of thing that multimethods solve well.  Is
  + 13728 [decoux moulo] It's easy to add this in ruby

13643 [dcorbin impe] Is there a CPAN equivalent for Ruby?
13644 [majcher majc] applications, libraries, and documentation.  It's

^ SV:  Re: CRAN?
13647 [dennisdecker] #

^ FREE DOWNLOAD - www.vanethian.com - www.tomatic.it 65906
13653 [vanethian ho] *** http://www.vanethian.com & http://www.tomatic.it ***

^ create/init ruby object in C
13656 [chris atdesk] I'm trying to embed ruby into an application, and I'm having a bit of
13657 [decoux moulo] This is very quickly written
13660 [chris atdesk] Thanks, a lot!  Especially for the fast response.  That's exactly what

^ Regexp problem
13658 [agnot_tok eu] Its time to do some Ruby programming. However, I stumbled on the following
13659 [decoux moulo] Probably a problem in regex.c
13661 [matz zetabit] Yes, it's a bug.  Thank you for fixing it.  Happy Easter!

^ read this notice......     902
13662 [aukasricsmn ] jbglyqomtyivwa

^ Retrieving current signal handler without altering it
13663 [ljz asfast.c] I'd like to retrieve the current handler for a given signal without

^ Iterator Question
13665 [flifson cs.u] For a non numeric iterator is there a way to find out how many times the iterator has looped so far?
+ 13666 [Dave Pragmat] array.each_with_index do |element, index|
| + 13671 [flifson cs.u] I was not aware of the each_with_index call, it'll no doubt help a lot in the future.
| + 13684 [flifson cs.u] Sorry I should've added this to my previous post. Is each_with_index a very new feature. It's not mentioned in the Ruby Language Reference Manual (Ver 1.4). If so, what other undocumented features am I missing out on?
| + 13685 [decoux moulo] pigeon% grep each_with_index ruby-man-1.4/*.html
|   13688 [flifson cs.u] Just found it as well.. oops egg on my face... apologies
+ 13667 [gnhurst hurs] can't find a way to do it without the i's. Any ideas?
  13668 [gnhurst hurs] oh, and that should be i==0, not i=0

^ Re: Infinity, NaN
13669 [matju sympat] But IMHO special value logic *has* to be essentially unusable. It's for

^ Question on gsub with a block
13670 [matt lickey.] First, is there any better way to read a whole file into a string
+ 13672 [dblack candl] page = template.gsub(/<!--\s+(\S+)\s+-->/) { send($1) }
+ 13686 [neumann s-di] template = File.readlines(@template).to_s
  13697 [   xm w3d.ru] /skipped/

^ CONFIG["prefix"] ?
13673 [ray hackfoo.] Just a quick one here, Ive asked a few people individually but
13691 [matz zetabit] No.  TOPDIR might be nil, since sub! returns nil if no match found.

^ gathering user input
13674 [will_conant ] Because I don't know much about terminals, this may be a naive question, but
13675 [henryso eart] Though I haven't actually used it in the context of Ruby, this is the sort of
13690 [kjana os.xax] Or, you just need echo-less non buffered input, use ruby-termios

^ interating for separate values...
13676 [skidrow nown] I know that in ruby I can do this..
+ 13677 [rise knavery] It's a change from the Perl-ish pseudocode. :)
| + 13680 [dblack candl] Or even just take a chance and try:  ri step  :-)
| + 13683 [skidrow nown] semantics,
|   13694 [Dave Pragmat] It's a little utility that gives you documentation on Ruby methods and
+ 13678 [Dave Pragmat] Iteration in Ruby is controlled by the object being iterated over, so
| 13681 [matju sympat] why is #step defined in Integer, and not in Numeric, and neither in Float?
| 13692 [matz zetabit] Because I felt it to be a operation of integers.  But probably not.
| 13693 [Dave Pragmat] Done.
+ 13679 [chris atdesk] 0.step(100, 5) { |i| puts i }

^ methods and types
13682 [karoshijish ] I have been using mostly java for the last 5 or 6 years and did
+ 13687 [billk cts.co] As one who felt strongly about how beneficial static typing (compile-
+ 13689 [berndlor t-o] If all you know about a function is the name of the arguments,
  13706 [karoshijish ] How could any function that does any sort of useful work not be
  13709 [Dave Pragmat] Possibly the issue is broader than this.
  + 13715 [spwhite char] The way I think of this is "easy in, easy out". The data goes into the
  + 13726 [matz zetabit] More than 10 years ago, I was an evangelist of OOP with static typing.
  + 13729 [matt lickey.] I'm curious about this.  Coming from a mainly C/C++/Perl background, it
    + 13733 [karoshijish ] I am busily learning ruby, and I see some things that I like or
    | + 13755 [Dave Pragmat] And that sounds like an eminently sensible plan :)
    | + 13757 [jimm eris.io] Thank you. That went directly into my .sig quotes file.
    + 13749 [Dave Pragmat] I find I do a couple of things differently. First, because method and
      13751 [ndrsbngtssn ] This may be an instance of some design pattern about
      13752 [Dave Pragmat] I think that's a good refinement of the process. Ruby allows you to

^ SV:  methods and types
13695 [dennisdecker] #  How do you design programs when you can't specify types?  If all

^ cookie trouble in cgi.rb
13696 [majcher majc] While playing with CGI::Cookie this weekend, I discovered that, used

^ Tizek.com is in dire need of a development team...
13698 [developers t] There is no pay (yet) but once we get going income will be generated through advertisements on the site and various other services which we will offer, and there will surely be enough to go around.

^ Introduction to non-blocking networking and select()?
13699 [terje elde.n] I've recently discovered ruby, and while I'm amazed at how fun the language
13701 [decoux moulo] Look at IO::select

^ ANN: German Ruby article in the iX magazine (5/2001)
13700 [wys helbling] Did my best to give Ruby a first positive appearance in the german
+ 13702 [sma 3plus4.d] IMHO you did a great job.  Your article made my eventually looking at
| 13704 [Dave Pragmat] gewschte Gr鲞e
| 13708 [sma 3plus4.d] Dave,
| + 13710 [sma 3plus4.d] I found my problem.  I was assuming that "p" and "print" have the same
| | 13828 [fvdelius gmx] I have no problems with german umlauts even when I use "p" instead of
| | 13841 [skilchen swi] "Felix von Delius" <fvdelius@gmx.de> schrieb im Newsbeitrag
| + 13711 [Dave Pragmat] This might be a mail-news gateway issue. I see it fine on the mailing
+ 13771 [alex holupir] you definitely did a great job, it's an easy-to-read article, that

^ Ruby on a JVM - good or bad idea?
13703 [sma 3plus4.d] I've a question which might be asked a few times already, but I didn't
+ 13705 [elderburn mi] IMO it would.  As Stephanie pointed out, Java is 'ubiquitous'. In the IT
| + 13717 [matju sympat] I think the most difficult part of writing a "Ruby for Java" interpreter
| | + 13719 [Dave Pragmat] How would you handle singleton methods efficiently: would every method
| | | + 13727 [decoux moulo] I don't agree with you. The most difficult part is to have a j*v*
| | | | + 13730 [billk cts.co] Sounds like a job for a C-to-Java translator?  ;-)
| | | | | + 13734 [schneik us.i] # From: "ts" <decoux@moulon.inra.fr>
| | | | | + 13777 [sma 3plus4.d] Don't think so.  The only one I know (from Novocode) creates code
| | | | |   13783 [bkelly atg.e] Ah.  Well I admit it may be a silly idea.  But what I'd envisioned
| | | | |   13822 [sma 3plus4.d] If we're already talking about silly ideas.  An easier solution, if
| | | | + 13833 [matju sympat] MetaRuby possible; Jruby's base classes could be written according to a
| | | + 13782 [sma 3plus4.d] I think, for the start, we should try to simply interpret Ruby code on
| | | + 13829 [matju sympat] Given Ruby's multiple-inheritance, side-inheritance, dynamic method
| | + 13781 [sma 3plus4.d] Why do you think this would be advantageous?  I noticed there's
| |   13838 [matju sympat] Because you can reuse that parser for parsing without executing, and then
| |   13852 [decoux moulo] yes,
| |   14428 [matju sympat] Wrong, there are two of them, and I didn't know it before this post.
| |   14441 [Dave Pragmat] Not wishing to pour cold water on this flamefest, but... if you have
| |   14729 [matju sympat] You already added a small note about it, in the errata, last February, on
| |   14734 [hfulton aust] <Dave@PragmaticProgrammer.com>
| + 13778 [sma 3plus4.d] I'd be interested in something like JRuby as a backdoor to introduce
|   13780 [glen enabled] I use Jython frequently and love it! I can express myself in Python where it is
+ 13707 [slove avalan] Hey,

^ Dir methods
13714 [johann physi] It would be nice if Dir implemented a method "in_directory", implemented
13723 [matz zetabit] In the latest development snapshot (1.7.0),
13788 [johann physi] Aha!  You *have* been borrowing Guido's time machine.  I knew it.

^ Ruby threading implementation docs?
13716 [ljohnson res] Has anything been written down (in English) about Ruby's threads
13718 [chris atdesk] Chapter 11 of "Programming Ruby" is called "Threads and Processes".
13725 [johnson2 hiw] Thanks; I've got my (well-read) copy of Programming Ruby and agree that it
13732 [matz zetabit] There's none such (except eval.c itself).  Sorry.
13756 [ljohnson res] it

^ eb.fm 响亮的名字,精彩的世界!
13722 [eb.fm 3339.c] This is a MIME encoded message

^ Msg 13722
13724 [hal9000 hype] Hmmm.
13731 [matz zetabit] No, it's Chinese, which I cannot read.

^ RCR: trivial but useful add-ons
13735 [gnhurst hurs] I was browsing the older messages from last year, and
+ 13737 [matz zetabit] I don't feel their nessesity right now.  But three separate RCR can be
| + 13738 [   xm w3d.ru] Two RCR's will do, I think - and I'll agree with both of them.
| + 13743 [Tjabo.Kloppe] I'ld like Numeric.odd?, even? and so on.
|   + 13748 [wmwilson01 h] By the way all, I'm still around... going through a marital separation, so
|   + 13754 [Dave Pragmat] Dave
+ 13772 [neumann s-di] String#ltrim

^ RUBY NEWSGROUP FAQ -- Welcome to comp.lang.ruby!  (Revised 2001-02-17)
13736 [schneiker ju] RUBY NEWSGROUP FAQ -- Welcome to comp.lang.ruby!  (Revised 2001-02-17)

^ compiling ruby executable
13739 [jim freeze.o] I need to deliver a ruby script to a site that does not have
13753 [jim freeze.o] compiling ruby executable
+ 13901 [gnhurst hurs] There can be several ways to make stand-alone executable from Ruby
| 13936 [ben_tilly op] Actually this has not been used with Perl for a long time.
+ 14144 [feldt ce.cha] Maybe this is too late since I've been out of town but anyway...

^ Wrapping objects
13740 [ndrsbngtssn ] I'm developing a simple persistence mechanism for Ruby
13741 [decoux moulo] Look at #append_features and #extend_object
13773 [ndrsbngtssn ] Thank you,

^ Ruby like CLOS
13742 [cliffw rdint] While ruby is a great OOP language I have for some time been trying to find
13762 [ronjeffries ] Yes

^ range in regexp
13744 [decoux moulo] ruby make something strange with regexp
+ 13750 [decoux moulo] I've forgotten 5 :-(
+ 13760 [matz zetabit] Hmm, I think both sould be invalid, whereas Perl consider them as [-z0-9].
+ 13763 [decoux moulo] perl give a warning (with -w) in this case, but (personnally) I prefer

^ Almost OT
13745 [jilanik tin.] I am trying to understand Ruby logic, seeing inside ruby.h
13746 [sharpd cisco] #ifdef HAVE_PROTOTYPES
13747 [decoux moulo] See the macro _

^ Slashdot: "Programming Ruby" book review by Chromatic
13758 [wmwilson01 h] Well, the title says it all

^ Odd Hash Behavior (long)
13759 [SAT MULTITEC] Could someone explain the following behavior?
13761 [dblack candl] ... =>
13764 [SAT MULTITEC] If I call aTestHash['B'].add_one again and then print out aTestHash['C']
13765 [decoux moulo] This is very quickly written (verify it)
13766 [SAT MULTITEC] I am kind of new to Ruby, could you explain the change to the hash class in
13768 [decoux moulo] I'll try but personnally I'm not good in english :-)
13769 [SAT MULTITEC] Guy, thanks so very much!

^ P        ROTE  CT   YOURSELF!!!

^ mx-record/dns
13770 [NotHere gmx.] I'm looking for a way to check the existence of a certain email via the

^ upgrading ruby
13774 [jim freeze.o] I just downloaded ruby-1.6.3. I have the following version installed
13785 [matz zetabit] Just compile and install it.

^ Problems with racc rule definitions
13775 [neumann s-di] Following racc-rule raises an error during parsing (not during 'racc parser.y'),
13795 [aamine cd.xd] Please tell me an entire part of error. I cannot answer
13807 [neumann s-di] As you perhaps noticed, it is (or will be) a XPath parser.
13810 [aamine cd.xd] Ahh, I'm sorry, I did not take the point of your question.
13816 [neumann s-di] Does "xmlscan" implement XPath, and where can I get it?
13832 [aamine cd.xd] ...

^ SV:  Re: RCR: trivial but useful add-ons
13776 [dennisdecker] #  > I was browsing the older messages from last year, and

^ Ruby DBI/DBD
13779 [SAT MULTITEC] Is anyone interested in developing a standard API for database access in

^ Web Applications
13784 [newsgroups e] Has someone made a framework for web applications?
+ 13786 [bryan_zarnet] I'm currently working on something like this --
| 13787 [avi beta4.co] If you haven't already, you might also want to take a look at iowa
| 13789 [hal9000 hype] Avi,
| 13790 [avi beta4.co] It depends what you mean by "its own server"... yes, iowa applications are
+ 13792 [   xm w3d.ru] /skipped/
  13800 [newsgroups e] Well, there's not a lot of information on IntelliSite available...

^ winoldap
13793 [karl_lopes y] Just wondering if anyone has seen this before, and
+ 13809 [rise knavery] It should be possible to use  to kill the process that's keeping the
+ 13814 [rise knavery] Sorry, my reply should have read "you may be able to use Ctl-Alt-Del to
  + 13818 [schneik us.i] #
  + 13819 [mmare xs4all] I had exactly the same problem. Killing the winoldapp with Ctl-Alt-Del

^ RE: generic method
13794 [wys helbling] Will/shouldn't this proposal (as TS puts it: "my toy") make its way into

^ module syntax
13796 [murphyv stud] module Foo
13797 [ ericb eb.to] def Foo::Bar::instance_method
13798 [decoux moulo] It's in the ToDo

^ Interesting post on slashdot.
13799 [spwhite char] Any comments on this style of programming? It sounds like an interesting
13827 [matju sympat] I use a technique I called side-inheritance which I will describe as

^ Re: IOWA Re: Web Applications
13801 [newsgroups e] IOWA is surely an interesting development, but it lacks the most
13804 [avi beta4.co] That's a very interesting statement... I don't know if this is the forum
13811 [ben_tilly op] some
+ 13813 [SAT MULTITEC] IMO, the problem with the template toolkit is that the source documents for
+ 13817 [avi beta4.co] It depends very much on what your goals are.  Yes, there is a need for
  + 13824 [ben_tilly op] With that said, my needs are for data delivery, and that data
  | 13826 [ben_tilly op] The markups are generally easily recognizable in the editor, and
  | 13839 [gnhurst hurs] This topic interests me...
  + 13830 [newsgroups e] The widget toolkit is there, it's called "HTML". And it has lot's of
    13840 [avi beta4.co] I consider mixing logic - loops, print statements, anything - with HTML, a
    13895 [newsgroups e] I've seen so many cases where i don't see a way to get around
    13896 [avi beta4.co] In the simple case, just by having the web designer block off <span>
    13905 [newsgroups e] ok, so you have

^ rb_ary_length
13802 [pbranna nosp] I've recently had the need to find the length of a Ruby array from within
+ 13803 [decoux moulo] RARRAY(ary)->len
+ 13805 [chris atdesk] Perhaps you'll just have to access the data directly then...
+ 13806 [decoux moulo] There are not exactly the same, rb_ary_length() is

^ local vars in case
13808 [tjunier pcis] [0,1].each {|n|
13812 [decoux moulo] add this line, perhaps you'll better understand what ruby do
+ 13815 [tjunier pcis] I see.
+ 13831 [matz zetabit] That's what's happening.
  + 13854 [kosako sofne] From Yukihiro Matsumoto
  + 13856 [decoux moulo] I've quickly look at your patch, but do it solve this ?
  | + 13857 [kosako sofne] From Guy Decoux <200104191053.f3JArsH28644@orsay1.moulon.inra.fr>
  | | 13872 [matz zetabit] dyna-var-link should be formed at the compile time.  Plus, I'm still
  | + 13858 [decoux moulo] Explain me the result :-)
  |   13909 [kosako sofne] From Guy Decoux <200104191131.f3JBVKl29014@orsay1.moulon.inra.fr>
  + 13866 [decoux moulo] 1) at compile time, when ruby create a NODE_EVSTR to store in this node
    + 13871 [matz zetabit] No, same thing happens with eval(), and this won't for for it.
    | 13873 [matz zetabit] Oops, I meant "won't work for it".
    + 13916 [decoux moulo] Well, if I've well understood the best that you can do is to store the