94067-95427 subjects 94493-95191

^ Ruby 1.8.1 and forwardable warnings
94282 [djberg96 hot] Ruby 1.8.1
94292 [nobu.nokada ] I guess those methods should be skipped, perhaps in

^ convention for internal class/module name?
94298 [lists zara.6] Since Ruby forbid _Foo, what is the convention for internal class/method
94299 [pbrannan atd] What do you mean by "internal"?  A class that shouldn't be accessed by
94302 [lists zara.6] Yes. In my case, it's several different implementation per platform.
94317 [rubyguru hot] module FooInternals

^ How to use Ruby's Rinda::Ring
94305 [drbrain segm] After studying Masatoshi SEKI's translated Rinda::Ring description, the
94359 [m_seki mva.b] good page. I linked your page. thanks a lot.

^ RubyCocoa problem:multiple definitions of _rb_obj_clone
94306 [ptkwt aracne] I installed Ruby 1.8.1 on OS X 10.3 using the darwin ports as someone
94315 [discord mac.] Okay, this is way beyond my knowledge... Perhaps this would be a good

^ The opposite of .succ!   (though it still may)
94312 [gltewalt yah] # An opposite to .succ!   Or, a predecessor method for String.
+ 94364 [billk cts.co] IRB can be a big help in trying out bits of code interactively...
+ 94389 [discord mac.] First of all: You're doing too much work! :D there are a couple things
+ 94438 [batsman.geo ] => "abcc"

^ Parrot now has objects
94316 [joe notcharl] According to http://use.perl.org/articles/04/02/29/2124204.shtml, Parrot
94415 [msparshatt y] I've recently started a rubyforge project to do just this. At the moment

^ plruby: --enable-static-ruby / --disable-shared ?
94319 [lists zara.6] What about adding these configure option, so plruby.so doesn't need
+ 94320 [decoux moulo] What is your version of plruby and ruby ?
| 94325 [lists zara.6] plruby 0.3.9, ruby 1.8.1 (using Ian's binary RPM).
| 94328 [nobu.nokada ] Don't link libruby-static.a to shared objects.  It is for
| 94329 [decoux moulo] plruby is not an extension library.
+ 94335 [decoux moulo] Well, this is a little more complex. Try it with
  94339 [lists zara.6] Thanks, with --safe-level it works (though I don't understand why/what
  + 94340 [decoux moulo] Except that it's a very *BAD* idea and don't repeat that this option exist
  + 94343 [decoux moulo] Try this
    94408 [lists zara.6] Thanks!

^ JRuby and Class.forName()
94326 [yvon.thorava] 1 require 'java'
94333 [ndrsbngtssn ] [---]
94334 [yvon.thorava] tanxs for your answer, i did some progress in the meantime

^ Code samples
94342 [bob peirce-f] I am trying to learn ruby 1.6.8 on a Mac PowerBook G4.  I bought the
+ 94347 [bob.news gmx] "Robert Peirce" <bob@peirce-family.com> schrieb im Newsbeitrag
| 94371 [bob peirce-f] Great resource.  Thanks.
+ 94350 [rasputnik he] Look at rubyforge.org or RAA.
| 94372 [bob peirce-f] Rubyforge is too complex for learning, but the Ruby Application Archive
+ 94370 [vjoel PATH.B] Just guessing, but the windows package doesn't always include all the
| 94373 [bob peirce-f] Thanks.  That's more than enough to get started with.  Plus there are
+ 94483 [gltewalt yah] Did you look in  ruby-1.6.8/sample   ?
  94509 [bob peirce-f] I don't have that but I downloaded 1.8.1 and found its sample directory.

^ Problems with Ruby under Windows XP
94345 [kecik.yalin ] I have installed ruby with "ruby181-11.exe" on Windows XP and wanted to try
+ 94349 [neoneye adsl] welcome to Ruby  ;-)
| 94351 [kecik.yalin ] Thanks,
| + 94354 [neoneye adsl] p "hello"               # "hello"
| + 94363 [dave pragpro] If you want Ruby to output a value, you need to say something like
+ 94353 [curt hibbs.c] The result of expressions are not automatically dumped to the console
+ 94355 [dennis.ranke] The problem is that "a[0]  1" in the Ruby Programmers Guide doesn't mean

^ Images in Ruby
94356 [Peefh.AVIRER] Images in Ruby
94618 [Peefh.AVIRER] Eureka!

^ GCC 3.3.3 and Ruby 1.8.0 and 1.8.1
94357 [brett_willia] We recently upgraded to GCC 3.3.3 and now we can no longer compile ruby
+ 94383 [andrew walro] Ruby successfully compiled the latest stable snapshot with 3.3.3, so perhaps
| 94384 [andrew walro] Or, in English :) I have successfully compiled the latest Ruby 'stable
| 94390 [brett_willia] Thanks for the clarification :)
+ 94396 [nobu.nokada ] curses.c in 1.8.1 already uses stdarg.h if found.
+ 94421 [zeroth darko] Some time ago I backported a old version of ruby (1.0 something) to gcc

^ eval + taint problem
94360 [neoneye adsl] Should taint information be propagated around?
+ 94362 [decoux moulo] $SAFE = 1
| 94365 [neoneye adsl] Then it raises as its suppose to..
| 94367 [decoux moulo] taint is useless with $SAFE = 0
| 94368 [neoneye adsl] This information is new to me.
+ 94387 [fgp phlo.org] I believe you shouldn't eval tainted code in the first place - IMHO,

^ [ANN] SWS 0.2 released
94374 [childNOSPAM ] I am proud to announce new release of SWS web development library.
+ 94385 [gavin refine] I'm just about to embark upon a large application, and am very
+ 94410 [martindemell] Looks wonderful! As a big fan of the WebObjects philosophy, I'm
+ 94431 [mnestler who] How does SWS compare to CGIKit or other WebObjects-like frameworks? I
| 94507 [childNOSPAM ] The most usual question - I think I'll add the answer to the
+ 94590 [yvon.thorava] ruby 1.6.8 (2002-12-24) [powerpc-darwin7.0]
  94591 [childNOSPAM ] I didn't test it with Ruby 1.6, but I'm afraid you need to upgrade.

^ taint resurrected unexpectedly (1.8.1)
94375 [billk cts.co] I'm seeing something seemingly incorrect in a CGI script
94380 [news stud.nt] Does CGI#[] still return an array? I thought this had changed, but at
94381 [billk cts.co] Aha!

^ Ruby translation for UNIX scripting command
94376 [tluedeke exc] Quick (and slightly embarassing) newbie question for the Ruby experts. I'm trying to learn Ruby, and move away from antediluvian UNIX scripting.How do I make a sequence of pattern matching lines in a file, then extract a particular field from the line? For example, in UNIX talk if I were interested in finding all lines with a particular match pattern "test", and printing the fourth field, I'd do a grep plus awk command such as:grep "test" file_name | awk ' { print $4 } ' &gt;&gt; output_fileHowever, in my Ruby books, I don't see any discussion about the function equivalent of printing a field of the type "$4" (i.e. fourth field). I can get the lines out of the search file, but I'm not quite sure how to determine fields.Thanks.TPL
+ 94377 [thomas_adam1] You win the UuoGA (Useless Use of Grep Award). Why not let awk to the
| 94378 [tluedeke exc] ette.net" We'll just save up your sins, Thomas, and punish you for all of them at once when you get better. The experience will probably kill you. :)"-- Benjamin A. Okopnik (Linux Gazette Technical Editor)___________________________________________________________Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html
+ 94379 [surrender_it] open('filename').grep(/pattern/).split[4]
| 94392 [discord mac.] except that element number four is the fifth element. no, not the movie
| 94406 [flgr ccan.de] filtered_data = File.read("input_file").grep(/pattern/) \
+ 94423 [bob.news gmx] "Thomas Luedeke" <tluedeke@excite.com> schrieb im Newsbeitrag

^ Problems with RI? (was: Re: Ruby 1.8.1 on OS X Panther and RubyCocoa)
94382 [discord mac.] have would be basically the same. It really isn't. I'm renaming this

^ Re: Bus Error with tk app
94386 [wmwilson01 h] Is this a bug?
+ 94395 [nobu.nokada ] Try CVS HEAD version.  There were some significant fixes after
+ 94402 [nagai ai.kyu] Probably. But I cannot do enough test your script because I don't

^ [ANN] RSSscraper - Get RSS feeds from virtually any website!
94388 [Qty rocketma] Get RSS feeds from virtually any website! RSSscraper generates RSS

^ ruby web spiders?
94391 [ bob bob.com] are there any web spiders/crawlers written in ruby?

^ Compiling 1.8.1
94397 [bob peirce-f] I have a small problem.  I use /local instead of /usr/local.  What do I
94398 [flori nixe.p] $ sh configure --prefix=/local
94399 [bob peirce-f] Thanks.  That was easy!

^ Special characters: (TM), (R)
94400 [intc_ctor ya] I need to output a company name and legal requires that we put the
+ 94403 [tim bates.id] `puts 174.chr` gives me a little (R) symbol that's rather difficult to
| + 94404 [gavin refine] "The Absolute Minimum Every Software Developer Absolutely, Positively
| | 94433 [discord mac.] It looks like a character encoding issue... When I set my terminal to
| + 94437 [ptkwt aracne] I think you're right.  Now that I'm on a LInux box I see the (R) char
| + 94588 [kapheine hyp] I wouldn't use (R) and (TM). I have read in various places that (C) is
|   94688 [ jupp gmx.de] Wether (C) is acceptable or not depends on the country. In Germany it
|   94736 [jwkenne attg] Assuming that you mean the drug, that's "Heroin", in either German or
|   94844 [ jupp gmx.de] Sorry, I was a bit confused because in German 'Heroine' means an
+ 94505 [ jupp gmx.de] In my complete list of ISO 8859 charsets I only find in

^ bug reports for ruby?
94401 [cere u.washi] Does anyone know/if where a central place for this exists?
+ 94409 [me privacy.n] ...
+ 94412 [djberg96 hot] There used to be, but it got overrun with spam.  Generally, people

^ has anyone made an all-Ruby website?  how'd it go?
94407 [ruby hitmedi] I run a website that's all PHP now, but was due for
+ 94420 [raphinou yah] I am in the same situation as you, and began to look at cgikit.
+ 94428 [jamesUNDERBA] Not sure what you mean by "interactive", but I have a number of sites
+ 94430 [khaines enig] Yes.
+ 94468 [cpine hellot] It's not terribly interactive, but it does actually run the example scripts
  94484 [sdate everes] "Chris Pine" <cpine@hellotree.com>

^ rublog and mod_ruby (was: mod_ruby & Apache)
94411 [rob_m_mckinn] I have a similar difficulty trying to run rublog with mod_ruby on
+ 94425 [dave pragpro] If you come up with a solution for this, please send me a patch and
+ 94545 [me privacy.n] Yep, that is exactly what is happeing to me.

^ 37signals?
94413 [hal9000 hype] Did anyone ever hear back from 37signals?
+ 94416 [surrender_it] you should have read rubygarden
| 94417 [surrender_it] I didn't. forget about me :(
+ 94418 [ruby hitmedi] I'm oh-so-curious about the "web-app framework Rails" that the

^ ruby and jRuby and PostgreSQL
94414 [yvon.thorava] i'm able to connect to a PostgreSQL database using ruby or java.

^ random range
94424 [cc1 cec.wust] Why doesn't rand take an integer range and then generate a random number
94432 [hal9000 hype] Charles,
+ 94434 [vjoel PATH.B] Would be tricky for general Enumerables...
| 94436 [dblack wobbl] I'm not quite following (?) -- I think the original idea was
| + 94439 [vjoel PATH.B] Wouldn't size be infinite in this case?
| | 94440 [blackdav shu] Right -- I now see what you mean.  I had Array tunnel-vision.
| + 94441 [discord mac.] Please don't redefine a Kernel method. I think that's a Bad Idea(tm).
|   + 94448 [cc1 cec.wust] Why is redefining a kernel method to take a different class of argument
|   | 94450 [discord mac.] It's not redefining rand to take more varied arguments that's a bad
|   | + 94456 [dblack wobbl] You must not be very fond of IO#gets, Thread#exit, Dir::open, or
|   | | 94462 [discord mac.] point taken :) Still, with IO#gets and Thread#exit (I admit I haven't
|   | | 94481 [gltewalt yah] First off let me apologise if I double post.
|   | + 94466 [mghallNO ent] I agree, FWIW.
|   | | 94480 [gltewalt yah] What about this...
|   | | 94503 [cc1 cec.wust] yes but what happens when someone says
|   | + 94504 [cc1 cec.wust] That's kind of interesting, I have always thought that half the reason
|   + 94451 [g_ogata optu] module Enumerable
|     94476 [cc1 cec.wust] Umm I don't think that is a uniform distribution, not to mention the
|     94479 [batsman.geo ] It *is* uniform...
|     94500 [discord mac.] => 10000
+ 94435 [dblack wobbl] I'm the one who said that, and I was actually referring to the
+ 94442 [ptkwt aracne] I like this a lot.  Please submit an RCR.
+ 94445 [cc1 cec.wust] Well I wasn't in the IRC channel, it gets filtered on my connection, but

^ freeze, frozen? in extensions
94429 [cyclists nc.] I'm poking around in the 1.8.1 ext/ sources and I notice that there are
+ 94485 [dooby d10.ka] Calling a C extension which uses rb_str_modify() and /not/ rb_check_frozen_p()
| 94486 [decoux moulo] well, I can give you an exception. In plruby you have
| + 94488 [cyclists nc.] Today I see that I my original post was terse to the point of being
| | + 94489 [decoux moulo] raise an error.
| | | 94498 [bob.news gmx] "ts" <decoux@moulon.inra.fr> schrieb im Newsbeitrag
| | | 94499 [decoux moulo] It depend what you call ruby :-)
| | + 94491 [dooby d10.ka] Did you look for use of the OBJ_FROZEN(obj) macro, also ?
| |   94496 [cyclists nc.] Good suggestion! I see it used in openssl and stringio.
| + 94490 [dooby d10.ka] I'm checking for holes in my life-boat.
+ 94540 [matz ruby-la] I encourage extension writers to add frozen/security check to their
  94568 [Tim.Hunter s] Thanks, matz! I spent most of yesterday afternoon adding calls to

^ How can I get the callers __LINE__ and __FILE__?
94443 [sroberts uni] def debug(*objs)
+ 94444 [sroberts uni] def debug(obj, f = __FILE__, l = __LINE__)
+ 94446 [dave pragpro] Have a look at Kernel#caller
  + 94447 [sroberts uni] Thanks, thats what I want.
  | 94449 [msparshatt y] It's not quite what you want but you access your callers context by
  + 94549 [bob.news gmx] "Dave Thomas" <dave@pragprog.com> schrieb im Newsbeitrag

^ Whitespace Syntax Error?
94452 [gregbenx yah] I'm using: ruby 1.8.1 (2004-01-27) [i386-mswin32]
+ 94453 [rpav mephle.] 20 million will answer this ahead of me probably, but remember...
+ 94454 [g_ogata optu] It's whitespace neutral where it's unambiguous.  The problem here is
+ 94455 [news stud.nt] Not possible, AFAIK.
+ 94458 [gregben_x _y] Thanks everyone, for the quick reply!

^ Whitespace syntax error?
94457 [gregben_x _y] I'm using: ruby 1.8.1 (2004-01-27) [i386-mswin32]
94463 [discord mac.] It's not a bug, it's expected behavior. The problem is that when you

^ [ANN] GCBoard :  Boardgame API for gtk
94459 [kristof vlee] I have written a library to create Chess-style boardgames with Ruby (and
94460 [hal9000 hype] That's cool. I'm always in favor of more games.
96840 [kristof vlee] I am sorry, Go, Othello and Pente are not supported.

^ Converting Line ends using Ruby (Was: Calling ruby scripts)
94465 [ jupp gmx.de] DOS -> UNIX: ruby -p -i.bak -e '$_.sub!(/\r$/,"")' file_name
94478 [surrender_it] you can safely omit $_, just use Kernel#gsub that is $_.gsub by itself

^ I know I am beginning to sound whiney...  but I need help  :/
94467 [candiazoo co] ...but now I have rebuilt my system, and installed ruby, installed
94471 [jgb3 email.b] Try looking in the mkmf.log file -- it should explain why the last check
94474 [dooby d10.ka] I added a dir_config to the extconf.rb file to install.

^ 'require' and installing / using new libraries
94470 [itsme213 hot] I just downloaded Foxtails (the FXRuby extensions), and upon running the
94473 [vjoel PATH.B] You can install to another directory by doing
94501 [itsme213 hot] (Hyperlink
+ 94511 [vjoel PATH.B] Normally, '.' is on the require path, $:. But that does not help if you
+ 94592 [timsuth ihug] [ruby-talk:92675]

^ install.rb, why doesn't it have a uninstall option?
94472 [sroberts uni] I can simulate by running install in --no-harm mode, and then deleteing
94621 [ jupp gmx.de] '--no-harm' should be taken literally. Overwriting files is only one

^ Request patch to Win32API.c
94475 [mdavis sevas] I would like to request an enhancement to Win32API.c to support short integers.  This is needed so support an ODBC interface I am working.  The return codes from all ODBC function calls through Win32API are incorrect using 'i' or 'l'.  Adding support for 's' (short int) corrects this problem.  Here is the diff of Win32API.c from Ruby 1.8.1 and my working code with support for short integers.  Please let me know if there is any thing I can do to help this enhancement along.
+ 94477 [dooby d10.ka] In the meantime ...
| 94494 [mdavis sevas] Thanks.  This very work around help me identify where the real problem was.  My only concern with this implementation is the over overhead associated with every function call.
+ 94539 [matz ruby-la] I'm not the one to decide, but at least you'd better use unified diff
| 94541 [mdavis sevas] Thanks.
+ 94543 [usa garbagec] You can use Ruby/DL.
  + 94553 [robertm spel] Morning,
  | 94559 [usa garbagec] Ah, I should say;
  | + 94569 [mdavis sevas] Is there any English documentation for Ruby/DL?
  | | 94570 [happy user.c] there's ext/dl/doc/dl.txt file in cvs. And yes, Ruby's GC will release
  | + 94571 [surrender_it] I wonder: there is a generalized effort to port bindings for C library
  + 94554 [sdate everes] When will this deprecation be in effect ?
    94560 [usa garbagec] We are planning to remove Win32API from Ruby distribution.

^ Looking for HTML templating system
94487 [usenet andre] I am looking for a templating system for my forum
+ 94506 [khaines enig] Your performance requirements should be no problem at all for any decent
+ 94508 [ruby hitmedi] I'm just about to do the same thing (mutli-language), and here's the solution
| 94513 [usenet andre] The problem is that the methods generating html could end up containing
| 94514 [shu rufuran.] I agree with Andreas here. Templates are templates, there should be no logic
| + 94519 [usenet andre] Most template systems have "if" constructs, iterators etc...
| | + 94521 [nick.faiz ce] I'm a Ruby newbie.
| | | 94524 [khaines enig] There are oodles of them.
| | | 94526 [nick.faiz ce] Thanks Kirk,
| | + 94530 [shu rufuran.] Yeah, heh, I would hate it too. But you get the hyperbole.
| | + 94562 [aredridel nb] Have you tried Amrita with the bytecode compiler enabled?
| |   94733 [usenet andre] No, not yet; but what is this bytecode compiler good for, wouldn't it be
| |   94734 [usenet andre] I tried use_compiler = true, but my simple example (table with 30 rows)
| |   94735 [usenet andre] The new version is about 4 times faster but uses quite a lot of RAM
| + 94532 [ruby hitmedi] Presentation DEFINITELY needs logic, for anything beyond the
|   + 94533 [david.naseby] I'd take some issue with this. Sort of. The colour of the flag is (should
|   | 94542 [ruby hitmedi] I guess from my experience I feel that the business-logic is the code that
|   | 94555 [usenet andre] I agree on this point; the template needs some basic methods to process
|   + 94578 [kwa kuwata-l] If you need a fast temlate system, try Kwartz.
|     94579 [khaines enig] Kwartz!  That's the one that I was trying to think of for my mini-list of
+ 94510 [usenet andre] Thanks, I'll have a look at it.
+ 94512 [shu rufuran.] I have also chosen to write a forum in Ruby, and the solution I came up with
| 94515 [usenet andre] Yes, of course.
| 94516 [shu rufuran.] The translation files (po's and mo's) are in the gettext format, which means
| 94523 [usenet andre] I'm not convinced that gettext has many advantages in a web application,
+ 94582 [chad chadfow] # I am looking for a templating system for my forum