170634-302163

170407-176386 subjects 170740-176139

English Ruby Home as a second class citizen
170634 [slonik.az@gm] I just noticed that Japanese Ruby Home http://www.ruby-lang.org/ja/
170654 [james_b@ne r] Of course it is possible, but it currently depends on native
+ 170657 [capitain@gm ] I use
| + 170661 [james_b@ne r] Thanks.  I can use that, or Alta Vista's Babel.
| | 170672 [lukfugl@gm i] I've got a framework running at "http://jacob.fugal.net/era/" (ERA =
| | 170712 [wilsonb@gm i] Does this lame little snippet help? Heh.  Unfortunately, babelfish is
| | + 170719 [lukfugl@gm i] I tried integrating that, but the 150 char limit meant that most -- if
| | | 170722 [ruby-forum-r] You could split the strings into 150-char sections and loop over
| | | 170732 [lukfugl@gm i] Well, truth be told, I couldn't even get the snippet working for me,regardless of the 150ish-char limit[1]. The oddity is this: I can echoout the URI I'm going to request, past that URI into my browser andget a page with a decent translation. However, if I take that same URIand run it through wget (or Ruby's open-uri) I get a different result.And the difference isn't just in encoding, there are differences inthe returned HTML!
| | + 170721 [blargity@gm ] Babelfish will also let you plug in a site and just translate that.  So why
| |   + 170731 [alang@cr no ] FWIW, it appears that Google also supports pulling a URL and doing
| |   + 170746 [james_b@ne r] Ah.  Turns out this this is indeed fairly trivial with WWW::Mechanize.
| + 171421 [mark.ericson] ...
|   171457 [damphyr@fr e] Ouch, painfull reading makes it. We ask may somebody does it properly that.
+ 170679 [halostatue@g] Now, what I *really* want to know is what happened to the website
| 170770 [pabs@pa lo r] [snipped]
| 171403 [slonik.az@gm] Wow, my innocent post generated 17 responses:-) It seems that the
+ 170753 [pbattley@gm ] How about creating a pool of people who can translate new items as

[ANN] jEdit Ruby Editor Plugin 0.7.6 released
170647 [rob.02004@gm] - Introduce variable refactoring.
+ 170651 [belorion@gm ] ...
+ 170701 [vjoel@pa h. ] I followed the instructions, but when I run jedit after installing the
| 170704 [stefan@ma li] I guess nothing (except I did it wrong as well).
| 170714 [vjoel@pa h. ] Thanks! I did use firefox. I'm using wget instead, and.... that did it!
+ 170710 [mark.ericson] ...
  0039 [rob.02004@gm] Thanks for the feedback on the download problems. I'm taking steps to

Question of reference and (sub)strings.
170649 [steve_rubyta] Imagine comparing using C++ and Ruby to manipulate some strings. I would
170812 [adam.shelly@] You don't need to create the substrings until you need them:  Here's a
170814 [daniels@pr n] I might be wrong - but I'm pretty sure that substrings in ruby are
+ 170834 [bob.news@gm ] You're not.
| 0050 [steve_rubyta] That sounds like absolutely great news - a _very_ pleasant surprise. I
| 0057 [bob.news@gm ] Care to unveil a bit of the nature of the computation that yields those
| 0083 [steve_rubyta] It's not really relevant to the question I was asking - but I've no
| 171110 [bob.news@gm ] Certainly.  I don't know now complex your type calculations are.  I'd
+ 171016 [ronjeffries@] I asked about this a week or two ago, as part of my Extended Set Theory thing,
  + 171116 [steve_rubyta] Ah-ha... Hmmm - that suggestion "puts the cat among the pigeons" - as
  | 171189 [ronjeffries@] I'm with you ... when you find out, please be sure to let me know!
  + 171121 [ mfp@ac .o g] VALUE
    171187 [ronjeffries@] Easy for you to say, Maruicio ... but whanging a little C code in there is out

Differences between 1.8.2 and 1.8.4
170652 [joevandyk@gm] Is there any place that summarizes the major differences between Ruby
+ 170681 [vanek@ac .n ] I don't think there have been any major changes, but many, many small changes,
| 170764 [joevandyk@gm] I don't really care too much about security, mainly bugs and speed.
+ 170835 [nobuyoshi.na] We're working on it at ruby-dev ML, and

Re: jEdit Ruby Editor Plugin 0.7.6 released
170655 [capitain@gm ] Oh., It's so cool!

#methods and #public_instance_methods
170666 [cohen.jeff@g] I'm trying to understand #methods and #public_instance_methods as I
+ 170673 [itsme213@ho ] String.instance_methods == "abc".methods
+ 170674 [zoso@fo on e] #methods returns the list of methods callable for that _object_. That i=
  170682 [cohen.jeff@g] Got it.

Freeride on Windows XP - where does the output go?
170668 [luthycraig@j] I want to use Freeride on my Win XP box, Version 2002, sp 1, but the
170670 [ml.chibbs@gm] You need to set a debugger option. the menu command "Edit >>
170680 [luthycraig@j] thanks for your reply.
170683 [ml.chibbs@gm] Hmm... I'm not sure then,. I suggest posting this to the FreeRIDE Users ML.
170690 [luthycraig@j] Thanks - I found the list and have e-mailed my dilemma.

Embed ruby in a threaded C++ Application (Mingw)
170671 [frederic.coi] I have a Qt4 Application which runs on Windows (thanks to Mingw).

ruby beats them all
170676 [pertl@gm .o ] that why I love ruby (and functional languages in general)
+ 170686 [jeff@sc wa c] What about that snippet demonstrates Ruby as a "functional language?"
| 0046 [justin.w.smi] If Ruby properly handled tail-recursion, then the "accumulator passing"
| + 171031 [angagon@ea t] def fib n
| | + 171057 [nightphotos@] def fib n
| | + 171268 [jeff@sc wa c] An alternative implementation might even use only one subroutine.
| | + 171474 [logancapaldo] Sadly, that doesn't really hide the helper function. fib_helper will
| + 171536 [RemoveThisPr] <justin.w.smith@gmail.com> in
|   172587 [hawkman.gelo] ...
+ 170691 [chneukirchen] That's not functional...
| + 0029 [snail@ob me ] <chneukirchen@gmail.com> writes
| | 0051 [chneukirchen] I disagree.  APL isn't about readability to outsiders (and this is IMO
| | 0055 [pertl@gm .o ] this is fibonacci written in Random++
| + 170694 [jeff.darklig] ...
| | + 0017 [matiassurdi@] You're all crazy.... :-)
| | | 0023 [bob.news@gm ] I didn't know there was a bad sense about it... ;-)
| | + 171040 [rcs@bg ar .n] That's not functional...
| |   171059 [akonsu@gm il] fibonacci n = round((phi ** (x + 1) - (1 - phi) ** (x + 1)) / (sqrt 5))
| |   171069 [ruby-ml@ma i] fibs :: [Int]
| + 170696 [ef@al m. it ] If we're talking about elegance, I prefer this one.  It reads just
|   + 170700 [akonsu@gm il] complexity, both time and space, is bad though.
|   + 170702 [chneukirchen] Yes.  But Ruby is not tail-recursive (neither is your method), and
+ 170699 [akonsu@gm il] www.haskell.org
  170736 [jaco@ne tt a] Yesssss. If only I/O operations were easier to manage...
  170818 [awbacker@gm ] def calc_iterative(n)

DBI ADO problem
170688 [mark.ericson] ...
302163 [oobleck@us .] Yes, because I'm getting something similar. However I was using win32ole

Re: [ANN] Rote 0.3.0 (doc/web) (FIX)
170698 [rosco@ro co ] How innocuous it seemed at first :(

regular expressions question
170706 [akonsu@gm il] i need to capture all matches for a group. for example if
+ 170711 [james@gr yp ] => ["a", "b", " ", "c"]
| 170723 [akonsu@gm il] thank you. the question is general.
| + 170730 [james@gr yp ] => 0
| + 170748 [rosco@ro co ] I don't really get what you mean. I don't understand the rules that got a
| | 170751 [jeff.darklig] PLEASE stop sending out code that uses any of the perl ${x} variables ...
| | + 0112 [leavengood@g] Just to add another voice to the maelstrom: I have never coded Perl
| | | 170957 [ mfp@ac .o g] MatchData can be quite convenient too
| | + 170762 [rosco@ro co ] Why not just address me directly?
| | | + 170769 [w_a_x_man@ya] Ross, don't pay too much attention to unreasonable fanatics.
| | | | + 170776 [neil@ha ub .] How convenient that you quote that without quoting the drawbacks listed
| | | | | 0067 [chneukirchen] Which drawbacks?
| | | | + 170828 [rosco@ro co ] MatchData now ;)
| | | + 170800 [jeff.darklig] ...
| | |   170830 [rosco@ro co ] Ok, sorry. I'm kind of paranoid ;)
| | + 170766 [vanweerd@gm ] ...
| | + 170768 [billk@ct .c ] Thankfully, this is Ruby, and not Python with its rigid
| | + 170789 [james@gr yp ] Yes, I recognize that you are probably speaking at least in part to
| |   + 170791 [neil@ha ub .] If the majority here uses globally scoped variables to store locally
| |   | + 0061 [mental@ry ia] Were you aware that $1 and friends aren't actually globally scoped?
| |   | + 170793 [james@gr yp ] I really think you are blowing the issue out of proportion.  A Regexp
| |   |   + 0063 [mental@ry ia] They're method-local.
| |   |   + 170796 [neil@ha ub .] Actually, I just looked it up, and according to "Programming Ruby,"
| |   |     + 0071 [chneukirchen] use strict;
| |   |     + 170805 [neil@ha ub .] Hold on, this wasn't really my mistake, I think.  How is one supposed to
| |   |       + 170821 [vjoel@pa h. ] Usually if you think about what the variable represents, it's obvious
| |   |       + 170825 [billk@ct .c ] I think it's more like when the intrepid Ruby nuby first notices
| |   + 170803 [jeff.darklig] ...
| |   | + 170953 [neil@ha ub .] I think that's exactly what some people want you to do.  People don't
| |   | | + 170958 [james@gr yp ] Hey, can we keep this to a discussion of language features and stop
| |   | | | 170974 [neil@ha ub .] You are the one who first suggested that more people are using these
| |   | | | 170978 [james@gr yp ] Since you are educating me about the joys of MatchData, allow me to
| |   | | | 170981 [neil@ha ub .] It's unfortunate that you think it's rude to point out facts that are
| |   | | | + 170990 [gregory.t.br] And what "facts" have you mentioned?
| |   | | | + 170993 [ezra@ya im h] kill-filed
| |   | | |   171034 [jeff.darklig] I know I said I'd shut up, and I am, but I did feel that after some of
| |   | | |   + 171060 [james@gr yp ] I too apologize if I came back at you too harsh.  It was unintentional.
| |   | | |   + 171078 [leavengood@g] You have been fairly civil. What I find most amusing is how Neil
| |   | | |     171080 [neil@ha ub .] irony here isn't what you think.
| |   | | |     171082 [leavengood@g] Yes I see. Actually your statement can be interpreted either way,
| |   | | |     171084 [neil@ha ub .] I never called out anyone in particular, didn't have anyone in mind in
| |   | | |     + 171085 [gregory.t.br] That's the point you missed.  Rubyists don't throw rocks at dogs.
| |   | | |     | + 171086 [adam.s@co ad] That's just 'cause Ruby rocks are too expensive to throw ;-)
| |   | | |     | + 171087 [neil@ha ub .] Heh, some humor was perfect for this point in the thread.  Very nice.
| |   | | |     | + 171114 [martindemell] Nicely put! :)
| |   | | |     + 171089 [leavengood@g] I'm not sure if anyone lashed out really, just pointed out your
| |   | | |       171091 [adam.s@co ad] <<bunch of snipped stuff about rudeness and such>>
| |   | | |       + 171092 [adam.s@co ad] I meant MatchData. Matcher is a Java thing... <<administers self flogging>>
| |   | | |       + 171093 [leavengood@g] You are right of course, plus I was starting to get hypocritical and
| |   | | + 170959 [ezra@ya im h] Can we please try to keep it civil in here? You go code how you want
| |   | |   171041 [neil@ha ub .] Actually, no, you're wrong.  String's gsub, for one, has been hard-wired
| |   | |   171047 [cyclists@nc ] plonk
| |   | + 171088 [zdennis@mk e] You have made a common mistake, you are thinking Ruby is meant for your
| |   + 170829 [rosco@ro co ] (Sorry, James, I assumed that was directed at me alone)
| + 170761 [w_a_x_man@ya] t = 'a , b,c'.split( /\s*,\s*/ )
+ 170715 [rosco@ro co ] irb(main):001:0> "ab c".split('')			# split on nothing
| + 0036 [snowzone5@ho] a regex tool i'm finding invaluable is "redet"  (on freshmeat)
| + 170717 [akonsu@gm il] thank you. this was just an example. in general, is it possible to get
|   170725 [rosco@ro co ] Have to admit I'm not exactly a regex wiz, but I imagine it can be done
+ 170773 [akonsu@gm il] i give up. there seems to be no way to get all the captures for a
  170774 [billk@ct .c ] Could you help us to understand why #scan didn't meet your needs?
  170775 [akonsu@gm il] Bill,
  170780 [billk@ct .c ] 'a , b,c' =~ /^((?:\w\s*,\s*)*)(\w)$/
  170784 [akonsu@gm il] thank you. yes, it seems to be the only way. just that it is a shame
  0001 [bob.news@gm ] I still didn't get what exactly you want.  Does this help?
  0080 [drosihn@gm i] Now that I've read the responses in this thread a few times, I think
  + 0106 [w_a_x_man@ya] DATA.each {|line|   line.chomp!
  + 170976 [akonsu@gm il] yes, thank you. this is a better description of the problem. i am not a
    171598 [bob.news@gm ] I don't know whether your question was answered in the lengthy thread

Same class, different module
170707 [caleb@ae -t ] module Mod1
+ 170713 [ruby-forum-r] You could use #const_get, possibly, since a method call is dynamic.
+ 171008 [itsme213@ho ] module M1

can someone improve on this multiple inheritence methodology?
170708 [ara.t.howard] this provide method re-use at both the class and module level.  it can be used
+ 170750 [transfire@gm] I like the fact that this gets around the module method inheritance
| 170790 [ara.t.howard] right.  what i have is actually
+ 170801 [dblack@wo bl] My main suggestion would be to rename this method.  I don't think this
| 170804 [ara.t.howard] true true.  hmmm... how is it different here?  you'll have all the
+ 171858 [itsme213@ho ] ** >          include other::ModuleMethods if defined?
  171925 [ara.t.howard] i'm using ModuleMethods to hold methods which can be called on either

Re: Ruby Code & Style is looking for articles.
170718 [ruby-forum-r] Jim Weirich held a (reportedly very good) presentation on DSLs
170744 [agorilla@gm ] Excellent, thanks for the link.
170767 [robert.evans] I would also like very much to see a good tutorial on building DSLs

Getting Object From String?
170726 [lists@la to ] Howdy,
+ 170727 [ruby-forum-r] # This takes into account nested class names
+ 170728 [james@gr yp ] @items = Object.const_get(@model).find(:all)

JEdit Plugin Jar files please
170734 [Roseanna80@h] I m trying to download and install the Jedit Ruby Plugin files, from
170742 [vjoel@pa h. ] That may be a problem between the server and your browser. There are
170755 [Roseanna80@h] Joel

[ANN] Forthcoming 2nd ed. of _The Ruby Way_
170735 [rubyhacker@g] Thought I might as well announce this "officially" as many people
+ 0003 [george.mosch] Great  to hear :)
+ 0060 [rblists@gm i] One suggestion;
+ 0074 [laurent@mo d] That's good news! On my wish list are: soap, xml/rpc, wsdl
+ 170737 [jim@fr ez .o] Congrats
+ 170752 [james@gr yp ] This is just fantastic news.  The old version is quite out of date
| 170757 [jeff.darklig] ... Please be sure to provide it in PDF form... That's how I have my
| 0006 [luc@ho k- on] Make that a Pickaxe-2-style-beta-book and I'm signing up right away :)
| 171067 [hal9000@hy e] Well, my publisher is not as cool as Dave. :) There won't be a
+ 170763 [tanner.burso] At least a small section on Rake would be excellent.
| 170765 [joevandyk@gm] I think it's under consideration, considering that Rake is in that
| 170788 [hal9000@hy e] Yep, should have alphabetized it. But then it wouldn't be soup,
| 170795 [agorilla@gm ] Sure it would.  It would be alphabet soup ;)
+ 170809 [ezra@ya im -] Impressive list of topics! i will buy this book in a heart beat!
| 170811 [hal9000@hy e] Thank you.
| + 0018 [chrisgame@ex] There's more to a book than a list of topics. What about depth,
| | 171063 [hal9000@hy e] If you're familiar with the first edition, the basic style and
| | 171124 [chrisgame@ex] So, do you think you got it right? No use going by the feedback
| | 171127 [hal9000@hy e] It's a matter of opinion. I mostly achieved my objective, and I
| + 0031 [james@gr yp ] Can you use the community?  Together we know a fair amount.  ;)
|   171038 [hal9000@hy e] I'm using the community already. I knew that the announcement itself
+ 170822 [ptkwt@ar cn ] That's good news!
| + 0021 [jack@jn so t] +1. I'd also be much more interested in pure, advanced Ruby rather than
| | 0024 [briankbuckle] ...
| | 171045 [hal9000@hy e] ;) There's not terribly much to unlearn. Some things that I showed how to
| + 0027 [tksano@gm il] My 2 yen for all the above.
| | 170968 [ptkwt@ar cn ] that's a great idea.  And perhaps a section in that chapter on creating
| | 171009 [james_b@ne r] You know this book will end up longer than TAOCP.
| + 170824 [kevin.jackso] Although I haven't read the ruby way, I'd prefer to see a coverage of
+ 170836 [leslie@ca ar] I know it's a long shot but the only thing I have found missing
+ 171138 [twifkak@co c] Definitely. And maybe a few words on why it's *Java's* fault, not
+ 171173 [rob.02004@gm] Hal, we meet last year at RubyConf 2004. You signed my copy of the
threads.html
top