149447-151292 subjects 149805-151353

defining to_s works oddly?
149560 [martinelzen@] puts obj
+ 149566 [james@gr yp ] For that, you need the duck typed version of the method, to_str()...
| 149574 [lukfugl@gm i] I'm curious about that... why the two methods, to_s/to_str? I know
| + 149575 [dotnetguy@gm] ...
| + 149576 [james@gr yp ] "So why not use to_s? Because to_s coerces objects into strings. So,
+ 149642 [daniel@br ck] You're probably not the only one.  The reason why °∆puts°«
  149671 [martinelzen@] Thanks for your explanations everyone, I now feel like I do understand the

Re: using a gem installed package
149563 [adrian.dimul] Thanks a lot, and sorry for the lack of subkect -- but I realize I still
+ 149584 [code@jo ch n] I think depending on how you installed gems, you might need to use
+ 149585 [code@jo ch n] Sorry for my last message, that won't help.
| 149596 [adrian.dimul] Thanks! I would have expected it to "just work", somowhat like "perl
| + 149601 [Ara.T.Howard] use rpa.
| + 150971 [dblack@wo bl] Hopefully RubyGems will become part of the standard Ruby package at
+ 149597 [jlsysinc@al ] $ ruby -rubygems -e 'require "log4r"'

Ruby "Classpath" (was blank)
149565 [james@gr yp ] => ["/usr/local/lib/ruby/site_ruby/1.8", "/usr/local/lib/ruby/

[SOLUTION] [QUIZ] Drawing Trees (#40)
149569 [dave@bu t. d] I apologise for my solution. I optimised the output for compactness, and
149572 [jim@fr ez .o] I like this layout. If the algorith could be made to
149621 [dave@bu t. d] "Jim Freeze" <jim@freeze.org> responded...

Cross compiling for ARM processor
149591 [shawn@bo it ] I am new to Ruby and I have an application which would be well-suited to
149625 [shawn@bo it ] Never mind, I worked it out.
149627 [guslist@fr e] Would you mind sharing what you ran into and what you did to solve it? I
149630 [shawn@bo it ] CC=/usr/local/arm/bin/arm-linux-gcc \

SOAP examples
149600 [brianpdoyle@] I'm a Ruby newbie and have a SOAP client question.  I can't seem to
149640 [nakahiro@sa ] Please use wsdl2ruby.rb which is included in soap4r-1.5.4.  wsdl2ruby.rb
149767 [scott@al da ] Ooooo - keen.  This will help one project of mine!  (A different project

Next Official Ruby Version
149616 [wonado@do ne] Is it somehow planned to build a new official Ruby before Ruby 2, that means a version called 1.10 or so?
+ 149620 [drbrain@se m] 1.8.3 will be the next stable release.  A preview was released in
| 149622 [jeff.darklig] Is there a release calendar for Ruby ... I've never looked for one ...
| 149624 [jeff.darklig] Also, I've seen documents that point to version 1.9 as the integration
+ 149629 [wonado@do ne] "Wolfgang N?dasi-Donner" <wonado@donnerweb.de> schrieb im Newsbeitrag news:3knjnkFvenq5U1@uni-berlin.de...
  149649 [mailinglists] For some reasons there will be no 1.10 (release number will
  149661 [jeff.darklig] Lothar,
  149670 [mailinglists] It's Eiffel not Haskell. But for most guys its on the same exotic
  + 149689 [jeff.darklig] I agree that D is pretty neat.
  | 149696 [mailinglists] Ruby is without the nicer and cleaner language, but Python still
  | 149699 [jeff.darklig] Thank you very much for your insight ... I believe that your opinion
  + 149730 [probertm@ac ] What is it that you like about D?  Personally, I was always impressed by
    + 149784 [martindemell] I'd be interested too, particularly as regards usability for GUI
    + 149788 [mailinglists] No. It's beta. The recent change in the hash semantic shows
      149880 [martindemell] Erlang and OCaml come to mind (not saying they're as suitable as D for a
      + 149888 [mailinglists] I forgot OO on my criteria list, so Erlang is also off the list.
      + 149895 [thorin@th sh] Erlang is not statically typed, nor does it have a native code compiler
      + 149927 [surrender_it] is'nt erlang dynamically tiped

Dir.entries returns [] on the second call
149628 [vjoel@pa h. ] Is this normal?
149631 [langstefan@g] Call <tt>dir.rewind</tt> before <tt>dir.entries</tt> and it
149633 [vjoel@pa h. ] Thanks! I knew there was a reasonable explanation.
149647 [matz@ru y- a] Maybe reasonable.  But still not intuitive.
+ 149653 [vjoel@pa h. ] I dunno. Shouldn't Dir#each behave like File#each? Would it make sense
| 149656 [discordantus] I think File#each inherits that behavior from IO, which Dir doesn't
| 149758 [vjoel@pa h. ] The analogy I think of is: Dir is to opendir(), readdir() as File is to
+ 149789 [ruby.brian@g] It seems to me that the choice of the method name is the problem here.

redirecting stdout in an extension
149636 [probertm@ac ] Any ideas on how to redirect stdout in an extension and then revert it
149638 [guslist@fr e] Just a guess. I don't know how well it will play with the Ruby
149741 [probertm@ac ] $ ruby foo.rb
149939 [dooby@d1 .k ] I was thinking that a reply would pop up suggesting rb_io_reopen()

Help on array.to_s
149643 [ober@li bs .] I am using the following code to execute a query to sqlite, and
149650 [daniel@br ck] See Array#join.

(X)Emacs users going to RubyCOnf
149654 [fkc_email-ne] Just wondering who's an emacs user that's going to RubyConf.
+ 149655 [jim@fr ez .o] Forrest, I think that is a great idea. And, as a non emacs user,
| 150063 [fkc_email-ne] I can give a quick answer to what I know.  I think I'd be happy to
| + 150077 [kristof.bast] It works best on XEmacs, but should work fine on Emacs.
| + 150097 [jim@fr ez .o] Sounds good. I just hope I have time to do all these post event activities.
|   150170 [batkins57@gm] ...
|   150468 [fkc_email-ne] If things go well, you should have an easy to use package of stuff.
|   163490 [eric.wenbl@g] ...
+ 149659 [jim@we ri hh] I'll be there.  I have donwloaded brain cells into my elisp macros so that I
| + 149676 [aglarond@gm ] Care to share these macros with those that won't be there?
| | 149690 [jeff.darklig] I'm an xemacs user ...
| | 149692 [matt@te hn r] These things happen, even in the best of families.  Have you considered a
| + 150061 [fkc_email-ne] Cool.  Look forward to meeting with you and seeing how you use
+ 149718 [linguist@gm ] I'm a (GNU)Emacs user, and I'll be there.  Meeting up with fellow

[ANN] Net::SSH 1.0.2
149660 [jamis@37 ig ] allowing Ruby programs to interact with remote computers via SSH2.

149663 [dbarros@gm i] I was wondering if ActiveRecord support was available for database
+ 149665 [rasputnik@he] gem install activerecord
| 149666 [dbarros@gm i] Thanks Dick. Appreciate it!
+ 149781 [george.mosch] If you don't need the rest of Rails's infrastructure have a look at Og
| + 149798 [jim@fr ez .o] Yes. Just
| + 149818 [michael.camp] As was noted, AR is perfectly usable (and installable) w/o all the
|   149844 [george.mosch] Did I say otherwise?
+ 149863 [david.heinem] Unless your database schema is too far off the Rails path (such as

how to open and read zip files with Zlib?
149667 [mileskeaton@] I need to a ruby script to go through some zip files in the
149669 [ruby.brian@g] Unlike a gzip file a zip file may contain many files. So you need a
149684 [mileskeaton@] That did it.  Thanks!

Build one-click-installer version - Files allready downloaded
149673 [wonado@do ne] I moved to another problem building a own one-click-installer version for windows.
+ 149680 [curt@hi bs c] The tarball is only downloaded when it doesn't exist in the download
| 149733 [wonado@do ne] The tarball is only downloaded when it doesn't exist in the download
| 149736 [curt@hi bs c] Yes, you don't really need ruby/mock, and I don't think test.rb is used
| 149750 [wonado@do ne] The message is somehow destroyed
| 149759 [curt@hi bs c] Yes, you don't really need ruby/mock, and I don't think test.rb is used
| 149816 [wonado@do ne] Unfortunately there comes up a new problem. I have tried the original data downloaded, installed everything,
+ 149866 [wonado@do ne] Meanwhile I'm confused, because with four different precondistions the building process failed in different

ActionMailer NoMethodError 'deliver'
149678 [jasonecartwr] I have created a mailer class ReservationMailer < ActionMailer and
149683 [jamis@37 ig ] The way to specify the content type of emails is using the
149704 [jasonecartwr] My original code is the way it is explained even in the release version
149839 [jasonecartwr] Jamis,

APL on Acanthae (was Re: Lisp on Lines)
149681 [twifkak@co c] [[1,2,3],[4,5,6],[7,8,9]] * :+ should => [1,2,3,4,5,6,7,8,9]
+ 149688 [rf.oodanaw@s] Choosing a comment of Dijkstra on APL is as valid having the creator of
| 149694 [w_a_x_man@ya] w=60
+ 149700 [daniel@br ck] class Symbol
  149715 [twifkak@co c] Fair point. It's funny, though!

RubyForge CVS repos are now searchable...
149685 [tom@in oe he] ....thanks to the nice folks at http://www.koders.com/.
149746 [cyclists@nc ] Sweet!
149749 [curt@hi bs c] +1

gems and test dependencies
149693 [Daniel.Berge] I've noticed that a few packages require certain third party packages,

add_weekdays method
149698 [chris@se gu ] I've just spent some time looking at an add_weekdays method on the Date
149747 [toddkennethb] Looks like you want to skip weekends.  I might do it this way...
149948 [toddkennethb] Don't listen to that piece of code.  I thought I tested it, but now
149963 [chris@se gu ] Thanks for the alternative implementation Todd.  I'm still running with
149975 [simon.kroege] here is the obfuscated version :)
150035 [toddkennethb] Yes, Simon, that is much better :)

RubyGems and zlib.so
149702 [shawn@bo it ] I am trying to install RubyGems using 'ruby setup.rb'.  I have
149705 [rwoliver2@gm] ...
149727 [shawn@bo it ] Yes, both the build and the target machines are Linux.  I'm building on

ctype / isprint ?
149707 [x5@da is h. ] what's the best way to check whether a String consists of printable
+ 149708 [daniel@br ck] "a b c" =~ /\A[[:print:]]*\z/    #=> 0
| + 149711 [Ara.T.Howard] is that locale senstive?
| | 149714 [matz@ru y- a] 1.8 regex uses C ctype macros, so that it is locale sensitive.
| + 149744 [x5@da is h. ] Great, thanks.
+ 149771 [djberg96@gm ] See also: http://rubyforge.org/projects/ctype/

Austin meeting, Thur 28th
149719 [rubyhacker@g] The Ruby group for Austin (and) Texas is having its first

Rubygems dependency bug?
149728 [jamis@37 ig ] I'm building a gem that has a dependency on net-ssh. So, in the
149762 [jim@we ri hh] Are you doing a local install?  Dependencies are not checked for local
149763 [jamis@37 ig ] Bingo! Okay, that's the issue, then. Thanks for clearing it up, Jim.

XML-RPC question
149732 [joevandyk@gm] If I have a Ruby function that's exposed via XML-RPC that takes

149738 [mailing-list] This may be silly, considering that Fixnums are converted to Bignums if
+ 149740 [james@gr yp ] I too have wished for them in the past.
+ 149742 [Ara.T.Howard] ...
  149745 [Daniel.Berge] Signed or unsigned max?
  + 149748 [Ara.T.Howard] ...
  | 149751 [Daniel.Berge] True.
  | 149753 [Ara.T.Howard] you have a point.  perhaps
  | + 149754 [Daniel.Berge] There is if there's an Integer::MAX. :-D
  | + 149755 [mailing-list] Sure, though its value would fluctuate with the amount of memory
  |   149756 [Ara.T.Howard] it does seems that way - so maybe impossibleto determine/store since saying
  + 149752 [mailing-list] I don°«t know if you°«re trying to be clever, but as far as I know, it°«d

[boulder_denver.rb] - at agile?  come on down! (fwd)
149757 [Ara.T.Howard] i had a few people say they didn't get this so, even though it's a bit late

[SURVEY] Ruby in embedded applications
149783 [stephen.hill] I'm interested in finding out how widespread the use of Ruby is in
+ 149785 [keith.nichol] We use uCLinux....which there is a python port for....But no ruby port
+ 149786 [ts_news1@so ] I took a look at embedding ruby but went with mozilla's
+ 149787 [kevin.jackso] We've just got an embedded project involving C + RTL? (some kind of
| 149861 [ptkwt@ar cn ] This sounds really interesting - are you at liberty to provide more
| 149921 [kevin.jackso] A few more, we have the project, but the docs are in Japanese so some of
+ 149848 [daniel.amela] For most RTOS apps, support for native threading is a must, which
+ 149851 [vjoel@pa h. ] Well, tangentially...
+ 149859 [ptkwt@ar cn ] I haven't used Ruby in embedded applications simply because I haven't had
| 149954 [kero@ch ll .] I have Ruby running on iPAQ (linux) for years!
+ 149938 [news-1122608] I'm using ruby in an embedded Ethernet switch application as a

[ANN] Nitro + Og 0.21.2 (Bugfix release)
149790 [george.mosch] New versions of Nitro (Web Application Framework) and Og (Object

Re: Nitro Spark 0.3.0
149791 [george.mosch] I forgot to mention that Spark needs Nitro 0.21.2

[ANN] Nitro Spark 0.3.0
149792 [george.mosch] I am proud to announce a Nitro spinoff project: Spark

Idea for Ruby 2.0
149793 [mailing-list] Lately I've found myself using pseudo-anonymous variables a lot, e.g.,
+ 149795 [ruby.brian@g] On 28/07/05, Nikolai Weibull
| 149799 [mailing-list] Well, it depends on how you would want it.  In Prolog (don't remember
| + 149804 [ruby.brian@g] On 28/07/05, Nikolai Weibull
| | 149810 [mailing-list] Well, you can still reference them if you want to.  I guess
| | 149811 [eric_mahurin] There is no reason Ruby couldn't optimize for the case where a
| | 149814 [mailing-list] Nor for it to not issue a warning if the variable is declared in the
| | 149976 [chneukirchen] This should not happen anyway.  There are enough good reasons
| | 149987 [mailing-list] That's precisely why you would want to have unnamed variables,
| | 150113 [chneukirchen] Don't make me write 5.times { |_| foo }, *please*.
| + 150055 [david@va ln ] for 25% certain SWI-Prolog uses variables starting as underscores as
|   150136 [chneukirchen] I'm not sure they are "old variables"... compare foo(A, A, B) and
|   150180 [matthias-lue] [SWI-Prolog]
+ 149796 [matz@ru y- a] How about
| + 149797 [pavel.s.soko] What about
| + 149800 [mailing-list] Hm, yeah.  :-).  I had no idea, thanks.  Still, it wouldn't currently
|   149823 [transfire@gm] Underscore works as it is, so { |a, _, c| ... } works.
|   + 149829 [ruby.brian@g] bschroed@black:~/svn/diplomarbeit/text$ irb
|   + 149830 [dave@bu t. d] So does this: { |a, _, _, d| ... }
|     149834 [mailing-list] Yeah, I tried using it twice in a def but it didn't work, so I figured
+ 149813 [james@gr yp ] $ perl -e '($one, undef, $two) = split " ", "1 2 3"; print "$one $two
+ 149913 [daniel@br ck] Nikolai,
  + 149929 [twifkak@co c] That's because blocks don't actually have "arguments." They follow the
  + 149977 [mailing-list] Precisely so.

Combination of two arrays
149801 [docboobenste] Greetings!
+ 149819 [jim@fr ez .o] irb(main):002:0> foo = [ "a", "b", "c" ]
| 149821 [ruby.brian@g] That is not the same as what the OP was proposing. One could write the
| 149824 [jim@fr ez .o] Oops, read too fast. My apologies.
| 149825 [jim@fr ez .o] To answer my own email, that is still not exactly what you
| 150649 [gavin@re in ] require 'flattenx'
+ 149820 [Ara.T.Howard] foo = [ "a", "b", "c", 'n' ]
| 149822 [Ara.T.Howard] i'm sorry claus - this obviously does not solve your problem.  that's what i
| 149836 [ruby-talk@wh] I don't want Ara to fail!
| + 149837 [Ara.T.Howard] you win _why!  nice.
| + 149860 [docboobenste] Wow, what a plethora of responses! Thanks to everyone who responded.
| + 149867 [w_a_x_man@ya] With
|   149952 [martindemell] This is one of the prettiest pieces of ruby code I've seen! Also, the
+ 149827 [Ara.T.Howard] i felt obiliged to send this after messing it up before ;-)
| 149828 [jim@fr ez .o] Wow, that's great. But my brain hurts.
| 149831 [ruby.brian@g] I like the expanded version better though. Seems somehow less obfuscated.
| 149832 [jim@fr ez .o] Nice. Brain feel better.
+ 149916 [daniel@br ck] Claus,

method_missing crazyness
149802 [bitserf@gm i] def prefix_/(a-zA-Z0-9_)/(suffix, *args)
+ 149808 [halostatue@g] 1. It's uglier than sin. Strictly speaking, you would want something
+ 149847 [surrender_it] IMO, it would be cool to have multiple dispatch based on ===, so that
  149864 [jeff@op nd m] Multimethods with optional typed argument lists would be totally awesome. It
  149868 [dfayram@gm i] Aren't these against the spirit of duck typing, though? I thought that
  + 149873 [halostatue@g] Not in my experience. I've worked with a lot of stuff, but I mostly
  + 149878 [jeff@op nd m] I think optional type checking, key word being optional, would actually
  + 149930 [surrender_it] # Beware: just mumbling aloud, I understand that probably there is a