170647-173339

170408-176386 subjects 170787-176139

^ [ANN] jEdit Ruby Editor Plugin 0.7.6 released
170647 [rob.02004 gm] - Introduce variable refactoring.
+ 170651 [belorion gma] Great work Rob! Thanks for the update!
+ 170701 [vjoel path.b] I followed the instructions, but when I run jedit after installing the
| 170704 [stefan mahli] I guess nothing (except I did it wrong as well).
| 170714 [vjoel path.b] Thanks! I did use firefox. I'm using wget instead, and.... that did it!
+ 170710 [mark.ericson] Ouch, slow download, 0.3KB/sec!  Are there any mirrors?

^ 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 pron] I might be wrong - but I'm pretty sure that substrings in ruby are
+ 170834 [bob.news gmx] You're not.
| 171110 [bob.news gmx] 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 acm.org] 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 acd.ne] 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 gma] 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 hot] String.instance_methods == "abc".methods
+ 170674 [zoso foton.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 gmx.or] that why I love ruby (and functional languages in general)
+ 170686 [jeff schwabc] What about that snippet demonstrates Ruby as a "functional language?"
| + 171031 [angagon eart] def fib n
| | + 171057 [nightphotos ] def fib n
| | + 171268 [jeff schwabc] 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] def fib(n)
+ 170691 [chneukirchen] That's not functional...
| + 170694 [jeff.darklig] Nice.
| | 171040 [rcs bgoark.n] That's not functional...
| | 171059 [akonsu gmail] fibonacci n = round((phi ** (x + 1) - (1 - phi) ** (x + 1)) / (sqrt 5))
| | 171069 [ruby-ml magi] fibs :: [Int]
| + 170696 [ef alum.mit.] If we're talking about elegance, I prefer this one.  It reads just
|   + 170700 [akonsu gmail] complexity, both time and space, is bad though.
|   + 170702 [chneukirchen] Yes.  But Ruby is not tail-recursive (neither is your method), and
+ 170699 [akonsu gmail] www.haskell.org
  170736 [jaco neottia] Yesssss. If only I/O operations were easier to manage...
  170818 [awbacker gma] def calc_iterative(n)

^ DBI ADO problem
170688 [mark.ericson] I was wondering if this exception thrown by my use of DBI  ADO is meaningfu=

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

^ regular expressions question
170706 [akonsu gmail] i need to capture all matches for a group. for example if
+ 170711 [james graypr] => ["a", "b", " ", "c"]
| 170723 [akonsu gmail] thank you. the question is general.
| + 170730 [james graypr] => 0
| + 170748 [rosco roscop] 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 ...
| | + 170762 [rosco roscop] Why not just address me directly?
| | | + 170769 [w_a_x_man ya] Ross, don't pay too much attention to unreasonable fanatics.
| | | | + 170776 [neil hakubi.] How convenient that you quote that without quoting the drawbacks listed
| | | | + 170828 [rosco roscop] MatchData now ;)
| | | + 170800 [jeff.darklig] Because it wasn't *just* directed at you ... there have been other posts
| | |   170830 [rosco roscop] Ok, sorry. I'm kind of paranoid ;)
| | + 170766 [vanweerd gma] Regular expressions is the only area I still use Perl magic variables
| | + 170768 [billk cts.co] Thankfully, this is Ruby, and not Python with its rigid
| | + 170789 [james graypr] Yes, I recognize that you are probably speaking at least in part to
| | | + 170791 [neil hakubi.] If the majority here uses globally scoped variables to store locally
| | | | 170793 [james graypr] I really think you are blowing the issue out of proportion.  A Regexp
| | | | 170796 [neil hakubi.] Actually, I just looked it up, and according to "Programming Ruby,"
| | | | 170805 [neil hakubi.] Hold on, this wasn't really my mistake, I think.  How is one supposed to
| | | | + 170821 [vjoel path.b] Usually if you think about what the variable represents, it's obvious
| | | | + 170825 [billk cts.co] I think it's more like when the intrepid Ruby nuby first notices
| | | + 170803 [jeff.darklig] Quite simply, Ruby is *supposed* to be about consistency ... Having the
| | | | + 170953 [neil hakubi.] I think that's exactly what some people want you to do.  People don't
| | | | | + 170958 [james graypr] Hey, can we keep this to a discussion of language features and stop
| | | | | | 170974 [neil hakubi.] You are the one who first suggested that more people are using these
| | | | | | 170978 [james graypr] Since you are educating me about the joys of MatchData, allow me to
| | | | | | 170981 [neil hakubi.] 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 yakimah] 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 graypr] 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 hakubi.] irony here isn't what you think.
| | | | | |     171082 [leavengood g] Yes I see. Actually your statement can be interpreted either way,
| | | | | |     171084 [neil hakubi.] 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 covad] That's just 'cause Ruby rocks are too expensive to throw ;-)
| | | | | |     | + 171087 [neil hakubi.] 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 covad] <<bunch of snipped stuff about rudeness and such>>
| | | | | |       + 171092 [adam.s covad] 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 yakimah] Can we please try to keep it civil in here? You go code how you want
| | | | |   171041 [neil hakubi.] Actually, no, you're wrong.  String's gsub, for one, has been hard-wired
| | | | |   171047 [cyclists nc.] plonk
| | | | + 171088 [zdennis mkte] You have made a common mistake, you are thinking Ruby is meant for your
| | | + 170829 [rosco roscop] (Sorry, James, I assumed that was directed at me alone)
| | + 170957 [ mfp acm.org] MatchData can be quite convenient too
| + 170761 [w_a_x_man ya] t = 'a , b,c'.split( /\s*,\s*/ )
+ 170715 [rosco roscop] irb(main):001:0> "ab c".split('')			# split on nothing
| 170717 [akonsu gmail] thank you. this was just an example. in general, is it possible to get
| 170725 [rosco roscop] Have to admit I'm not exactly a regex wiz, but I imagine it can be done
+ 170773 [akonsu gmail] i give up. there seems to be no way to get all the captures for a
  170774 [billk cts.co] Could you help us to understand why #scan didn't meet your needs?
  170775 [akonsu gmail] Bill,
  170780 [billk cts.co] 'a , b,c' =~ /^((?:\w\s*,\s*)*)(\w)$/
  170784 [akonsu gmail] thank you. yes, it seems to be the only way. just that it is a shame
  170976 [akonsu gmail] yes, thank you. this is a better description of the problem. i am not a
  171598 [bob.news gmx] I don't know whether your question was answered in the lengthy thread

^ Same class, different module
170707 [caleb aei-te] module Mod1
+ 170713 [ruby-forum-r] You could use #const_get, possibly, since a method call is dynamic.
+ 171008 [itsme213 hot] 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 wobbl] 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 hot] ** >          include other::ModuleMethods if defined?
  171925 [ara.t.howard] i'm using ModuleMethods to hold methods which can be called on either

^ Re: FreeRIDE: Where does the output go?
170709 [laurent mold] Basi,

^ Re: Ruby Code & Style is looking for articles.
170718 [ruby-forum-r] Jim Weirich held a (reportedly very good) presentation on DSLs
170744 [agorilla gma] 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 laston] Howdy,
+ 170727 [ruby-forum-r] # This takes into account nested class names
+ 170728 [james graypr] @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 path.b] 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
+ 170737 [jim freeze.o] Congrats
+ 170752 [james graypr] 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
| 171067 [hal9000 hype] 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 hype] Yep, should have alphabetized it. But then it wouldn't be soup,
| 170795 [agorilla gma] Sure it would.  It would be alphabet soup ;)
+ 170809 [ezra yakima-] Impressive list of topics! i will buy this book in a heart beat!
| 170811 [hal9000 hype] Thank you.
| + 171038 [hal9000 hype] I'm using the community already. I knew that the announcement itself
| + 171063 [hal9000 hype] 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 hype] It's a matter of opinion. I mostly achieved my objective, and I
+ 170822 [ptkwt aracne] That's good news!
| + 170824 [kevin.jackso] Although I haven't read the ruby way, I'd prefer to see a coverage of
| + 170968 [ptkwt aracne] that's a great idea.  And perhaps a section in that chapter on creating
| | 171009 [james_b neur] You know this book will end up longer than TAOCP.
| + 171045 [hal9000 hype] ;) There's not terribly much to unlearn. Some things that I showed how to
+ 170836 [leslie camar] I know it's a long shot but the only thing I have found missing
+ 171138 [twifkak comc] 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

^ Secure Programming in Ruby
170740 [john.johnkni] A friend asked me for a book entitked "Secure Programmin in Ruby". I don't

^ string comparison
170741 [boris boris-] I have a class containing a string as an instance variable and I have a local
+ 170745 [akonsu gmail] s0 = "hello world"
+ 170747 [janchrister.] I tried this code.
+ 170802 [wilsonb gmai] Just to remove any precedence weirdness, does this behave differently
+ 170954 [w3gat nwlaga] You might check to see that obj.text.class is the same as obj.text.class.

^ string comparison
170743 [boris boris-] I have a class containing a string as an instance variable and I have a local
170797 [dblack wobbl] Well... but showing some working code that doesn't illustrate the

^ [ANN] Raggle 0.4.4
170749 [pabs pablotr] Raggle is a console RSS aggregator, written in Ruby. Features include

^ Re: string comparison => problem solved
170754 [boris boris-] The problem was a whitespace, which I did not see. I actually wrapped the output
170760 [akonsu gmail] you can run your cgi script from a command line thus: 'ruby script.cgi'

^ Ruby group in Orlando Florida
170756 [slitt earthl] Are there any Ruby User Groups in Orlando Florida, or anywhere in
172865 [damien.mcken] Let me know if anything kicks into gear.  It'd be worth pinging the
172906 [jpb ApesSeek] I'm interested as well. Please post here if something turns up.
173262 [jasonecartwr] I have talked to a couple of other guys in the Orlando area that are
173339 [slitt earthl] Depends what you want. Right now at GoLUG, we meet at the Seminole County

^ GetoptLong example
170758 [slitt earthl] Anyone have a short and easy GetoptLong example in Ruby? It's not
170799 [nicksieger g] Funny I was just in the same position yesterday.  A google of "ruby

^ Re: GetoptLong example <SOLVED>
170771 [slitt earthl] I cruised the net, found an example, and turned it into a small
+ 171004 [jim freeze.o] Here is the above code re-writen using CommandLine as
| + 171018 [slitt earthl] The preceding has a couple typos that keep it from running. The
| | 171021 [jim freeze.o] Thanks for fixing the errors. I should have mentioned that it
| + 171020 [slitt earthl] [clip]
|   171022 [jim freeze.o] Uh huh. An notice that you never actually have to type App.new
+ 171207 [meta pobox.c] Handy hint: use RDoc::usage

^ [OT] Re: Puby 1.0 Release!
170772 [pabs pablotr] class Array
+ 171002 [pabs pablotr] [snipped]
+ 171019 [martindemell] There's always RODS - Ruby, OS, Database, Server
  + 171023 [perrin apoth] where "Free Unix" = Linux, *BSD, MINIX, whatever
  | 171025 [perrin apoth] ...
  + 171037 [ezra yakimah] Ok only one more I swear...
    171051 [agorilla gma] We have a winner! :)

^ LISP to Ruby translation
170778 [rampant gmai] ((if (zero? 0) + -) 3 4)
+ 170781 [vjoel path.b] 3.send(x.zero? ? :+ : :-, 4)
| 170994 [mreed theree] What dialect of LISP is that?  Not Common... CL has no "zero?"
| 170996 [ef alum.mit.] It's Scheme.  A much nicer dialect than CL, IMHO.  ;-)
| 171233 [chneukirchen] (apply (if (zerop 0) #'+ #'-) '(3 4))
+ 170783 [neil hakubi.] Well, these kind of questions are rarely helpful; translating an
| 170785 [Neville.Burn] I think that's the first time I have seen an emoticon in ruby code
| 170786 [neil hakubi.] Oh wow, you're right.  I need to fit that into some real code sometime,
+ 171104 [steve waits.] 7 if true
  171105 [vjoel path.b] vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407
  171113 [martindemell] There - who says ruby isn't concise!

^ [ptBR] iniciante
170779 [tetri.mesqui] gostaria de saber se algu˝╬ recomenda algum material dispon¨Îel na
171039 [eustaquioran] Oi!
171055 [cbueno81 gma] Opa,
threads.html
top