57448-60000

57251-59397 subjects 57695-58396

LoadError -> `require': (null) - /usr/local/lib/ruby/1.6/i686-linux/sqlite.so (LoadError)
57448 [ahoward@fs .] rubyists-
57496 [pbrannan@at ] I think this happens if sqlite.so doesn't have an Init_sqlite() functon.
57501 [decoux@mo lo] Just the time for you to upgrade your version of ruby :-)

(none)
57449 [sanisabo@sa ] Nigerian National Petroleum Corporation

Ruby Weekly News
57451 [Dave@Pr gm t] Ruby Weekly News: 12/02/2002

Something fun -- but not Ruby
57453 [ted@da ac mm] With the Ruby community spread all over the world (at least!), the sunclock program provides a way to visualize the time of day anywhere.
57468 [robertm@sp l] More info on it here: http://frmas.free.fr/li_1.htm#_Sunclock_

The "funny sumbols" FAQ
57454 [gsinclair@so] Rubyists,
+ 57456 [botp@de mo t] only one comment to your work... -Superb!
| 57471 [xrfang@ho ma] Gavin,
+ 57538 [rc@va ca er ] as well...
  57561 [gsinclair@so] Fair question, but that's already answered quite well by available materials.

compilation pb!
57462 [simonced@ho ] I'm trying ruby language. It's quite cool language.
57463 [matz@ru y- a] The latest CVS has just merged WinCE patch yesterday.

SPAM?
57470 [xrfang@ho ma] I received the following message from ruby-talk, I think it is a spam, can

Cloned objects doesn't get GC'ed (WAS: Re: Memory consumption problem with recursion)
57473 [squidster@te] Yup. I've renamed it to some other name...
+ 57477 [nobu.nokada@] Don't Your finalizers refer the objects?
+ 57478 [kentda@st d.] What version of Ruby are you using?
| 57575 [squidster@te] ruby 1.7.3 (2002-11-26) [i686-linux]
| 57576 [nobu.nokada@] Object#clone doesn't copy fiinalizer.
| 57586 [matz@ru y- a] But it should be.  I will fix (in 1.7).
+ 57494 [pbrannan@at ] I think a more reasonable question is why I am not able to reproduce

[ANN] ruby-locale-0.1
57474 [blackrob@je ] This is the first version of ruby-locale (0.1) which can be found at;

GC on WIN32OLE
57481 [xrfang@ho ma] While reading the discussion on Garbage Collection, I suddenly thought of
57492 [batsman.geo@] I don't know the WIN32 API, but if this is at all like a file handle the
57544 [david.naseby] I've found the following resource use pattern helpful when playing with ADO

広島 藤田雄山広島県知事の元での恐ろしい話。行政訴訟の実体
57485 [seimei@gm .n] 知ってて良かった情報の配信です”

exception types
57486 [xrfang@ho ma] Can anybody help me on the rescue clause? I tried to catch file not found
+ 57488 [decoux@mo lo] Well, what error ruby give you ?
| 57503 [xrfang@ho ma] I don't quite understand the "true" you used above, what I'm trying to do is
| 57507 [decoux@mo lo] pigeon% ruby -e '["aa", "b.rb"].each{|f| File.open(f) rescue next; p f}'
| 57510 [kentda@st d.] (ok, ok, thats from page 93, identical figure though :-)
| 57511 [xrfang@ho ma] I'm reading the one comes with Ruby distribution, not even on the internet,
| + 57514 [gfb@to es ft] Is there any reason for such constrain?
| | 57523 [robertm@sp l] Maybe they'd like you to get the book ;)
| | + 57526 [mwilson13@co] The Pragmatic Programmers would be the source for a definitive answer
| | + 57530 [dave@pr gp o] Nothing so subtle... :)
| + 57525 [dali@in ul .] I created a couple of charts describing Ruby class hierarchy. The exception
|   57533 [kentda@st d.] Small nitpick: StandardError and below are rescued by default in a
+ 57505 [Tim.Hunter@s] Shannon, each rescue needs  the name of one or more Exception classes
+ 57509 [gfb@to es ft] Have you ever had pickaxe in your hands? Have you read it through at least
+ 57535 [vjoel@PA H. ] You can make it youself with Ruby! Here's one way, from the examples
+ 57566 [gsinclair@so] Good idea; done.

Conditional block operations
57487 [rrytov@en op] Is there a way to filter results of EACH or COLLECT functions? Let's say
+ 57489 [xrfang@ho ma] I think for this case, the easist way might be
| 57490 [emmanuel.tou] grep could help, unfortunately I don't know if it can be negated (eg
| 57493 [emmanuel.tou] file.grep /^\S+$/ do |line|
+ 57495 [batsman.geo@] file.readlines.select{ |x| x =~ pattern }.each{ |line| a,b = line.split(pattern) }
| 57499 [dblack@su er] That's going to work only on numerical elements... which the
| 57532 [batsman.geo@] I took it too literally :-) "only odd elements". And you're right about #+
+ 57497 [emmanuel.tou] filteredArray = myarray.find_all { |x| (x%2==0) }
+ 57500 [dblack@su er] You need to get your shift key fixed :-)  There's no RUBY, just Ruby
  57504 [xrfang@ho ma] file.grep? I checked that grep is a method of Enumerable. is it suitable for
  + 57506 [xrfang@ho ma] Again, can we use Enumerable method on Array? And, { |x| x % 2 == 1} will
  | 57534 [batsman.geo@] The answer is 'yes' in both cases.
  + 57508 [decoux@mo lo] Enumerable is included in IO

I think I finally understand the Symbol type!  ...
57498 [christopher.] In short, I think it buys me what my C compiler would call "string pooling".

Regular expression question
57512 [rrytov@en op] line !~ /\(^#\)\|\(^[\s\t]*$\)/
57516 [coquelle@en ] ...
57517 [xrfang@ho ma] I think you just need to use ( not \(, I suppose it should be
57518 [rrytov@en op] My pattern works fine in VI. Back slash before (,) and | is needed to
+ 57519 [decoux@mo lo] This is the opposite in ruby, you use \ to say that this character don't
+ 57520 [coquelle@en ] ...
+ 57521 [gfb@to es ft] Well, Ruby regexps are not VI regexps. Look similar to some extend, but
  57522 [rrytov@en op] Thanks all. Now it works. The final form is

Reflection?
57513 [xrfang@ho ma] class A
57515 [xrfang@ho ma] I'm sorry I found out the reason is that the method is not a class method.
57556 [hal9000@hy e] than rudeness... and we are all ignorant anyway,

Inconsistency while playing with Symbol in IRB
57524 [app1tam@up .] Can I assume that the following inconsistency (See the diff between cmd 1
+ 57528 [dblack@su er] It's not inconsistent;  print and p often give you different
+ 57529 [decoux@mo lo] no,
+ 57531 [matz@ru y- a] I'm not sure what you meant by "inconsistency".
+ 57537 [batsman.geo@] p != print

syntax tree equivalent of a source file
57545 [lists@de on ] Is there a way to get a syntax tree for the ruby program file after
+ 57553 [ptkwt@sh ll ] I don't think there is a built-in way of doing this inside of irb, but
+ 57571 [sdate@kc rr ] Project name:  bRuby

Site Seeing week 49
57547 [siteseeing@s] Site Seeing is powered by The Startpage of New Zealand!! www.startinnz.com

Fox threading issues
57549 [STUCKNER@MU ] ...
57551 [david.naseby] The program shows the Linux like behaviour on Windows for me (locking up). I
57565 [lyle@us rs s] Threads are broken for the Windows version of Ruby 1.6.7. This has
57570 [david.naseby] mswin32.zip

FW: Fox threading issues
57550 [STUCKNER@MU ] ...

Creating directories with File.open
57555 [jason@pe sa ] I'm attempting to create a file within a directory
+ 57559 [cyclists@nc ] require 'ftools'
+ 57560 [matz@ru y- a] Put
  57562 [jason@pe sa ] Ah... I see that in the 'Standard Library' section
  + 57568 [cyclists@nc ] Mostly, I think, because that's just not the way it has traditionally been
  + 57569 [cyclists@nc ] Mostly because this is the way it has always been done. In the standard C

folding in vim
57558 [ahoward@fs .] rubyists-

Ruby Newbie: installing RUDL problem
57573 [pcestrada@ho] I'm diving into Ruby and trying out RUDL. I used the Ruby173-6.exe 'one
57582 [billk@ct .c ] I don't know the reason for the dll name change but recently in
57619 [ramloll2001@] I had exactly the same problem except that I did not

mod_ruby 1.0.1 install problems
57574 [nemo@he lo r] I sent this to the mod_ruby ML, but this one is much more active, so I
+ 57579 [usenets@ny .] Chris, I had the same problem too. It turns out that both mod_ruby 1.0.1 and
| 57578 [nemo@he lo r] Chris, I had the same problem too. It turns out that both mod_ruby 1.0.1 and
| 57583 [usenets@ny .] Chris, would you mind posting your working httpd.conf ? Also, may be a test
| 57584 [nemo@he lo r] No, when I say I got eruby working, but not mod_ruby, I mean *just* eruby.
| 57617 [usenets@ny .] Have you ever execute those file thru a web browser(Netscape or IE)?
+ 57590 [flori@ni e. ] ...
  + 57628 [usenets@ny .] Could please cut-n-paste(text only) the fix? I can't accept the attachement.
  + 57719 [nobu.nokada@] No, I haven't compiled mod_ruby yet.  I'm using ruby 1.7 with

[ANN] Spreadsheet/Excel 0.2.0
57577 [djberg96@ya ] I have unleashed Spreadsheet/Excel 0.2.0 upon the

mod_ruby, eruby, apache 2 -- FATAL COMBINATION!
57580 [usenets@ny .] Anyone ever get mod_ruby1.0.1, eruby0.9.8, and apache 2.0.43 working?
+ 57581 [nemo@he lo r] Well, it's sad that mod_ruby doesn't work with the latest Ruby, nor with the
+ 57622 [squidster@te] Try dropping mod_ruby to 1.0.0..

Wiki recommendation
57587 [ted@da ac mm] I'm planning to set up a wiki for non-technical users.  Is there one that is of good report and comes well-recommended?
+ 57593 [nat.pryce@b1] is
| 57595 [batsman.geo@] I have used it with moderate success, but it remains very complex if
| 57629 [curt@hi bs c] UseMod wiki is dead-simple to set up (its a single perl cgi script) and has
+ 57715 [mikkelfj-ant] is of good report and comes well-recommended?
  57725 [curt@hi bs c] Do these two wikis do versioning of pages? This is essential if you need to
  57884 [mikkelfj-ant] to

about miniruby
57588 [simonced@fr ] I'm trying to use it, but I have problems.
+ 57822 [simoncedruby] Does nobody can help me about miniruby ?
| 57919 [matz@ru y- a] Probably you have to show us how you compiled miniruby and *exact*
+ 57912 [nobu.nokada@] [ruby-talk:37766] and [ruby-talk:37834] may help you.
  57936 [simoncedruby] Here I found the binaries. but they are old

mod_ruby HEAD message
57592 [blackrob@je ] Is it possible (and sensible) to change cgi.out to handle HEAD messages
60000 [wakou@ru y- ] I think taht it is not good.

Class variables problem
57598 [peter@se an ] I have used
+ 57599 [decoux@mo lo] Why you don't use a class instance variable ?
| 57600 [peter@se an ] There is actually no real reason to instantiate this class. I know that
| 57602 [decoux@mo lo] pigeon% ruby
| + 57609 [peter@se an ] It never occured to me that instance variables would be usable without
| | + 57610 [decoux@mo lo] Well, you have an instance this is the class
| | | 57614 [peter@se an ] Now I used to think that instance variables only existed when you
| | | 57615 [martindemell] Well, there are object instance variables, which *are* created when you
| | | 57618 [peter@se an ] Ah ha. That clears it up for me. I was slipping into a Java moment there
| | | 57784 [surrender_it] I understand little java, but I think this is the same of
| | + 57611 [dblack@su er] They're not :-)  You've got two instances here (the Class objects Test
| + 57620 [usenets@ny .] Why would the following did not work?
|   + 57621 [decoux@mo lo] You have defined an instance method
|   + 57623 [ahoward@fs .] this has been called like a class method, but Calc is an instance method.
|     57626 [usenets@ny .] Which is better in term of OO Best practices?
+ 57601 [simonced@fr ] I'm not sure, but you should put your rate variable in class test and your calc

Private Class Method Confusion
57603 [robertm@sp l] I made a class which has simply class methods, the intention is that the
+ 57604 [decoux@mo lo] # strange :-))
| 57608 [robertm@sp l] First apologies that the rest of the test class didn't work properly, I
+ 57606 [mwilson13@co] As I understand it, private methods can only be used by an object of

Ruby from C and C++
57605 [martindemell] I've filled out the first two sections of my RubyFromOtherLanguages wiki
57616 [gsinclair@so] I like it!  It's late and I haven't read them right through but I'm impressed.
57692 [gsinclair@so] I've seen no mention of such on the list in the last few months.  Give it a go!
57723 [paul@ar el r] That wouldn't maek any sense unless it was that object-oriented
57724 [ted@da ac mm] Ahem...
57728 [bruce@co ed ] I managed to convince my workplace to switch to Python-- or at least allow me

[ANN] RTrans 1.0
57613 [idan@id ns .] RTrans is a library for internationalizing applications written in Ruby,
57709 [mikkelfj-ant] I noticed Radical before - but it is poorly documented. There is so much
57721 [idan@id ns .] I'm aware of this problem, this will be at least partily resolved in

PDF format
57624 [coquelle@en ] ...
57632 [mgushee@ha e] There are apparently 3 such packages available--check out

More funny Symbols
57625 [xrfang@ho ma] I just knew that *name used as parameter of a function/method means variable

Funny Symbol FAQ
57627 [xrfang@ho ma] Gavin,
+ 57630 [decoux@mo lo] just try it :-)
+ 57691 [gsinclair@so] Thanks for the suggestions.  I'll clarify & and add *name in the near future.

Re: method not from ancestor
57685 [david.naseby] obj.methods - Object.methods

Re: elseif?
57693 [xrfang@ho ma] Well easy to learn and easy to read is most important reason I like ruby.
+ 57696 [dave@pr gp o] The only $<punctuation> symbols I regularly use are $1..$9 (and very
| 57699 [matz@ru y- a] Syntax did not allow "else if".  So I chose the shortest same pronounce
+ 57700 [spoon@de la ] It is a perl thing: Native regex support *in* the *language*.
  + 57705 [gfb@to es ft] How about awk? ;-) I guess it was a pioneer in "Native regex support *in*
  | 57706 [spoon@de la ] Point conceded. =)
  | 57708 [botp@de mo t] personally, I prefer "elseif" than "elsif" (I was surprise actually -maybe
  | 57711 [dcarrera@ma ] "elseif" is more akward to pronounce.  I don't think it's less prone to
  | 57720 [ted@da ac mm] I prefer elseif because it is less of a bastardization -- and I'm really old.
  | 57722 [paul@ar el r] That was the thing I found most jarring about Ruby, too.  Not being a
  | + 57729 [martindemell] And here I thought that Ruby had stronger typing than Perl :)
  | + 57755 [jweirich@on ] It seems like every language makes a different choice in this matter.
  + 57730 [martindemell] I might look at that once the feature list is finalised, though I'm
    57735 [xrfang@ho ma] How about a vote? I vote to add elseif as an alternative... Least
    + 57736 [matz@ru y- a] But I will vote for "no".  I think this means something.
    + 57738 [dcarrera@ma ] I don't think that Ruby is a democracy.  :-)
    | 57821 [mghall@en er] And that's a good thing.
    | + 57824 [michael_s_ca] Can you alias things other than methods?
    | | + 57828 [rich@in oe h] elsif is a keyword, not a method...you cannot alias it...and I think
    | | | 57842 [xrfang@ho ma] Since Matz is the creator and his opinion is not to add elseif, I'd
    | | | + 57849 [spoon@de la ] You should probably be careful using terms as 'major languages'
    | | | | 57855 [harryo@zi .c] Algol68 ... and I'd guess others it spawned, but, yes, it's a little strange.
    | | | | 57858 [ted@da ac mm] Learn something new _EVERY DAY_!
    | | | | 57860 [ted@da ac mm] .. another mind-expanding experience.  Thanks!
    | | | | 57863 [ted@da ac mm] I find that vim does better brace matching with {}.
    | | | | + 57879 [gsinclair@so] Someone might, but I've long since given up on using {} just for the sake of
    | | | | | 57891 [ahoward@fs .] setting foldmethod=syntax gives a do/end matching of sorts.
    | | | | + 57888 [austin@ha os] I missed that until I started using some macros available. They're
    | | | + 57869 [dblack@ca dl] True, you can't just type in C or Pascal keywords and expect them to
    | | | | 57876 [botp@de mo t] personally,
    | | | | 57877 [ted@da ac mm] No, actually it makes less possible to have a messed-up if statement.
    | | | + 57939 [davep.news@d] ....but only of you're coming from a language that doesn't have "elsif". If
    | | + 57835 [vjoel@PA H. ] irb(main):021:0> $foo = 7
    | |   57837 [michael_s_ca] Wow, and...well, pew.
    | + 57825 [gfb@to es ft] Can you imagine that there are people who love "elsif" and hate "elseif"?
    | | 57826 [ted@da ac mm] Yuk!  Ruby was presented to me as a 'clean' language.
    | | + 57827 [ted@da ac mm] I apologize for the message.  'Cat-heard' should be 'cat-herd'.
    | | + 57829 [billk@ct .c ] I used to think these kinds of aliases were kind of quirky when I first read
    | | + 57832 [kentda@st d.] Yes they do. They provide information about _intent_. Granted, some
    | |   58062 [paul@ar el r] I disagree with any proposal to remove "elsif" and replace it with
    | |   58095 [hal9000@hy e] Well, I too prefer "elseif" to "elsif" -- but I don't see
    | |   + 58101 [helgaorg@ya ] Oh man... it must be really late... when reading
    | |   | 58102 [hal9000@hy e] Ha! Thanks for the laugh.
    | |   | 58105 [botp@de mo t] 1. I think the original thread ask for an inclusion of "elseif", so that
    | |   | 58110 [dblack@ca dl] Democracy means ruling, not voicing an opinion :-)  Ruby is a "gentle
    | |   | 58113 [botp@de mo t] That is being modest, imho. (Reading) Matz mails does not show any sign of
    | |   | + 58114 [dblack@ca dl] I see what you mean more clearly -- not just a kind of graveyard of
    | |   | | + 58133 [wyzzrd@be ls] One might paraphrase thusly, "From that which gives much, much more is
    | |   | | | + 58136 [dblack@ca dl] While hunting for "gentle dictator" citations before, I came
    | |   | | | | 58160 [batsman.geo@] I was once said that the very existence of Ruby violates the POLS,
    | |   | | | + 58152 [tim@ba es id] When I first discovered Ruby, I went through the whole of the pickaxe book
    | |   | | + 58318 [billtj@y. lu] I am not sure if I want to include such things in the newcomers list.  I
    | |   | + 58123 [brian@co ln ] I don't know, I've seen that behavior in most languages I've started
    | |   + 58156 [vjoel@PA H. ] x = 1.5
    | |   | + 58161 [martindemell] Nice!! You should add it to the RubyIdioms wiki page.
    | |   | | 58191 [vjoel@PA H. ] But I've never actually used it. :)
    | |   | | 58198 [gsinclair@so] I added it, and included a nasty swipe at Hal :)
    | |   | + 58169 [hal9000@hy e] In essence, that's what I'm talking about. But the
    | |   | | 58174 [gsinclair@so] I'd like to learn LISP and Latin too.  Maybe if someone coded a LISP
    | |   | | + 58181 [michael_s_ca] There's a perl module that does almost precisely that.
    | |   | | + 58266 [mjbjr@be ud ] ;))))))))))))
    | |   | + 58203 [nobu.nokada@] case
    | |   |   + 58204 [vjoel@PA H. ] Much nicer that way. Now I *will* use it.
    | |   |   | 58221 [hal9000@hy e] And so will I! That is amazing.
    | |   |   + 58207 [dblack@ca dl] Yet more proof of my theory, which is that as you work on a problem in
    | |   |     + 58256 [dblack@ca dl] puts case
    | |   |     + 58340 [rshaw1961@ya] <Pine.LNX.4.44.0212080116210.2040-100000@candle.superlink.net>,
    | |   |       58344 [rshaw1961@ya] <rshaw1961-AFB9AF.20591409122002@news-server.bigpond.net.au>,
    | |   + 58251 [AntiATField_] Why isn't case what you're looking for? See below.
    | |     + 58252 [decoux@mo lo] You don't need true
    | |     | 58253 [walker@de fc] Another thing that would be neat to see, in my opinion, is a 'caseall'
    | |     + 58484 [davep.news@d] Those who know and remember Clipper (and Fox, and probably dBase) will also
    | |       + 58532 [botp@de mo t] I used Clipper for work and free-lancing (many years back). It is a surprise
    | |       | 58602 [davep.news@d] [In danger of going off topic, but there is some ruby content]
    | |       + 58595 [bulatz@in eg] lisp and clipper are greate languages but... :) Charles Wetherell in
    | + 57941 [peter@se an ] So let see if I get this right...
    |   58038 [mghall@en er] 4) Everyone is happy!   The end.
    |   58077 [gsinclair@so] I believe, as I'm sure most others do, that keyword aliasing leads to madness.
    + 57739 [peter@se an ] How about a vote to stop adding sugar. It rots the teeth.
    + 57750 [fg@si me om ] Quicker than a vote: do it yourself for your personal installation of Ruby ;-)
      + 57752 [xrfang@ho ma] That's interesting... If I have the guts to run all the compiling process
      + 57814 [paul@ar el r] That's what people suggested to me when I brought up the topic several
threads.html
top