170634-302163 subjects 171142-173767

Secure Programming in Ruby
170740 [john.johnkni] ...

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

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

[ANN] Raggle 0.4.4
170749 [pabs@pa lo r] Raggle is a console RSS aggregator, written in Ruby. Features include

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

Ruby group in Orlando Florida
170756 [slitt@ea th ] 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@Ap sS ek] 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@ea th ] Depends what you want. Right now at GoLUG, we meet at the Seminole County

GetoptLong example
170758 [slitt@ea th ] 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
0019 [jim@fr ez .o] Have you tried OptionParser? It is fully OO and integrated with Application.
0028 [slitt@ea th ] I came across OptionParser. I tried reading the documentation, but I
+ 0043 [wybo@se va y] is good, although I don't like the use of ostruct. For a cleaner, yet
+ 0044 [jim@fr ez .o] Please help me out and post some comments on what you like and don't
  0089 [slitt@ea th ] I'm pretty sure those are the docs I couldn't fathom. IMHO what you

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

[OT] Re: Puby 1.0 Release!
170772 [pabs@pa lo r] class Array
+ 0033 [mail@wb .o g] Let's play with permutations, 'coz you gotta have a LARF ...
| 171019 [martindemell] There's always RODS - Ruby, OS, Database, Server
| + 171023 [perrin@ap th] where "Free Unix" = Linux, *BSD, MINIX, whatever
| | 171025 [perrin@ap th] ...
| + 171037 [ezra@ya im h] Ok only one more I swear...
|   171051 [agorilla@gm ] We have a winner! :)
+ 0035 [mark.ericson] ...
  171002 [pabs@pa lo r] [snipped]

LISP to Ruby translation
170778 [rampant@gm i] ((if (zero? 0) + -) 3 4)
+ 170781 [vjoel@pa h. ] 3.send(x.zero? ? :+ : :-, 4)
| 170994 [mreed@th re ] What dialect of LISP is that?  Not Common... CL has no "zero?"
| 170996 [ef@al m. it ] It's Scheme.  A much nicer dialect than CL, IMHO.  ;-)
| 171233 [chneukirchen] (apply (if (zerop 0) #'+ #'-) '(3 4))
+ 170783 [neil@ha ub .] 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@ha ub .] Oh wow, you're right.  I need to fit that into some real code sometime,
| 0040 [ilmari.heikk] # A bit of fun to while away a boring afternoon
+ 171104 [steve@wa ts ] 7 if true
  171105 [vjoel@pa h. ] 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?m recomenda algum material dispon?vel na
171039 [eustaquioran] Oi!
171055 [cbueno81@gm ] ...

Is ruby dbi still in development?
170787 [capitain@gm ] The lastest version of ruby's dbi is build at 2003-09-07, 2 years ago
+ 0020 [khaines@en g] Yes.  There is now a team consisting of myself, Daniel Berger, Francis Hwang,
+ 0030 [sera@fh an .] As Kirk said, we're moving forward ... but slowly. These sorts of
  171137 [capitain@gm ] Thanks for your reply and I appreciate your work for providing this lib
  171144 [gregory.t.br] I am running into a lot of issues with this too.
  171157 [capitain@gm ] TIME column error
  + 171170 [gregory.t.br] Neat.
  + 171174 [khaines@en g] There is a variety of broken time/date handling that I have completed or

Dynamically adding methods to a Ruby class
170798 [drjflam@gm i] ...
+ 0002 [bob.news@gm ] class Module
| 0042 [drjflam@gm i] ...
+ 170808 [ruby-forum-r] Not really, except for using define_method (which has
  170820 [brian.takita] ...
  + 0045 [drjflam@gm i] ...
  + 170823 [brian.takita] ...

Re: Forthcoming 2nd ed. of _The Ruby Way_
170806 [ruby-forum-r] First, one more congratulatory note: congrats! :)

Re: can someone improve on this multiple inheritence methodo
170807 [ruby-forum-r] Well.. #include :)
170810 [ara.t.howard] i like mix!
170813 [dblack@wo bl] But self.superclass == SomeModule won't be true, nor will anything
170815 [ara.t.howard] not sure about that... module appear in ancesors and work like everything

[ANN] Instant Rails 1.0 preview7 -- with Typo!
170816 [curt.hibbs@g] ...
+ 170817 [ml.chibbs@gm] Wait about an hour before trying to download. This will give the
+ 172413 [no@sp m. le ] Curt,
  172418 [ml.chibbs@gm] I think this same problem is happenning with the cookbook app.

Re: iniciante
170826 [ricardo.dapa] O meu portugues nao e muito bom pois ja vivo no exterior a muitos anos.
+ 0016 [cbueno81@gm ] ...
+ 171061 [eustaquioran] Oi!

(nessun oggetto)
170832 [spago_ok@em ] Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Ruby Hash wierdness
170833 [kevin.jackso] I'm having problems with using a hash.  I put in a class and when I
0004 [bob.news@gm ] Try
0005 [kevin.jackso] beautiful, thank you so much
0012 [drnicwilliam] Yep, urls only contains strings. Often horribly ugly ones with %20 etc

treating 'string'+var as method
170837 [bmg2x@ya oo ] I am a new Ruby recruit (thanks to *ahem*, Rails)..
+ 0007 [rosco@ro co ] # A hash to play with
+ 0010 [bob.news@gm ] That's ok.  As Ross pointed out you can also use obj.send("string#{var}").

[OT] credit card processing
170952 [sillewille@g] Sorry this is so far off topic, but there are a lot of smart,
+ 170972 [perrin@ap th] If you're starting from zero with low-traffic implementation, I'd say
| 170987 [sillewille@g] Is your PayPal business account hooked to a personal checking account
| 170998 [perrin@ap th] It's connected to a personal checking account.
+ 171003 [snacktime@gm] Granted my opinion is biased as I work for a payment processor, but if

Sub Hashes
170962 [jaco@ne tt a] Say i have a hash representing a book index (keys are strings,

Sub Hashes
170966 [jaco@ne tt a] Say i have a hash representing a book index (keys are strings,

Re: [(not so)OT] credit card processing
170971 [aredridel@nb] Nothing but good experiences with authorize.net here.
170989 [sillewille@g] What do you mean by "clearing with a ruby script shortly"?  What all

Advanced Ruby Book (was [ANN] Forthcoming 2nd ed. of _The Ruby Way_)
170988 [pat.eyler@gm] I can't speak to order either, but I'd love to see a chapter on
+ 170992 [martindemell] And one on distribution and IPC in the most general sense (Drb, shared
+ 171007 [ptkwt@ar cn ] good list.
  171010 [pat.eyler@gm] I'd love to see a more in-depth look at unit testing.   (In fact, it wouldn't
  171015 [james@gr yp ] Yeah, the Prags have a Java and C# version of their volume don't
  171643 [dave@pr gp o] ...
  171843 [drosihn@gm i] Well, that was succinct, but I'm not quite sure what you wanted

[SOLUTION] Kalah (#58)
171030 [horndude77@g] I know this is a bit late, but I've been trying to train my neural net.
+ 171065 [dbalmain.ml@] Dude, nice work. I really must take a closer look later on.
+ 171068 [ezra@ya im -] Wow!

$-variables and regexp
171032 [akonsu@gm il] if i indeed want to start using MatchData instead of the "warts" such
+ 171028 [neil@ha ub .] puts 'a-b-c-'.gsub(/(.)-/) { |str| str + '_' }
| 171029 [akonsu@gm il] i think this is incorrect. id appends an underscore. i need to replace
| 171027 [neil@ha ub .] Ah, sorry, mis-read what yours did.
+ 171052 [james@gr yp ] The MatchData object is also placed in a global variable, but I won't
+ 171058 [florgro@gm i] puts 'a-b-c-'.gsub(/(.)-/) { Regexp.last_match[1] + '_' }

Hey Rubyistas!
171033 [rcs@bg ar .n] Hey all Ruby folks!
171131 [zoso@fo on e] htm

Re: repeated regular expressions -- Need addition to Matchdata
171048 [drosihn@gm i] This does happen to solve my specific example, but...
171102 [w_a_x_man@ya] Looks like a logical and natural extension.  Until it's added, perhaps

Emacs mode question: backward-sexp & forward-sexp for begin..end
171074 [lists@za a. ] Is there a Ruby Emacs mode where I can do M-C-b (backward-sexp) and
171297 [g_ogata@op u] Does C-M-n / C-M-p do what you want?
171356 [lists@za a. ] Why yes, thank you! I should've checked for ruby-* functions first, doh.

Ruby tail recursion
171075 [mark.ericson] In another thread someone mentioned tail recursion doesn't work right
171079 [ruby-ml@ma i] The current interpreter does not do tail-recursion optimization.
+ 171108 [johannes.fri] Here's a somewhat lengthy explanation. Well, you asked for it :)
| 171109 [johannes.fri] def tailrec_max(arr, i=0, best=-Infinity)
+ 171111 [collinsj@se ] ...
| + 171197 [mark.ericson] Thanks, I get it now!   Some languages will generate code that won't
| + 171199 [ruby-forum-r] I really only call it 'tail-recursion optimization'
| + 171205 [johannes.fri] I agree that it's not (just) optimization in the sense of 'runs
| + 171215 [kyosuke@se n] Well, what about this, for example?
|   + 171280 [collinsj@se ] ...
|   | 171303 [surrender_it] parser,
|   | 171311 [chneukirchen] IIRC, YARV already supports reusing the current stack frame for calls
|   + 171282 [neil@ha ub .] Good point.  Tail-call recursion is just a form of recursion that's easy
|     + 171283 [hal9000@hy e] Well, my take is this. If you happen to write recursive code, and it
|     + 171304 [surrender_it] well, but maybe it could be nice to write iterators in a recursive way, i.e
+ 171389 [justin.w.smi] The reason that tail recursion is "important" is that functional
  171399 [gwtmp01@ma .] I hope people do realize that they can change the
  + 171416 [surrender_it] IIRC ruby 1.9 even has Process.setrlimit as a builtin, not sure about
  + 171557 [pit@ca it in] @i = 0

How come I get two e-mails?
171099 [francisv.lis] How come I get two e-mails everytime I post here?
171100 [mike.douglas] Gmail includes your sent message in the conversation view and theruby-talk mailing list daemon sends one to all list members (includingyou). Nothing to worry about.
+ 171101 [francisv.lis] Hmm.. I thought it was a mailing list "feature" of some sort. Thanks Mike!
+ 171107 [l.d.u.n.c.a.] should this question be added to the comp.lang.ruby FAQ do you think? it
  171125 [chrisgame@ex] ....to which the answer would be, use the newsgroup not the mail
  + 171130 [gregory.t.br] That's a little... no... incredibly steep considering the situation.
  | 171241 [gdonald@gm i] Nor is this issue present on all list serves.  I do not see this
  | 171244 [gregory.t.br] so is this an issue with USENET groups and Gmail?
  | 171267 [jonsmirl@gm ] I think this this is a problem in the FML mailer. I am subscribed to
  | 171269 [jonsmirl@gm ] I also don't think FML should be setting a Reply-To: header.  If it
  + 171200 [perrin@ap th] No . . . to which the answer would be: "Use something other than Gmail,

[ANN] scoped_require 0.0
171103 [twifkak@co c] ... and from the substratum, it arises ...
171119 [ mfp@ac .o g] You also dislike alias_method, don't you? ;-)
171135 [twifkak@co c] I tried to pollute the namespace as little as possible. (And then I

nonblocking TCPSocket in multithread software.
171112 [arto.pastine] Why this blocks?
+ 171115 [arto.pastine] It seems work if i lock thread.. funny.. :)
| 171117 [arto.pastine] pah.. now it just dont do nothing..
| 171129 [arto.pastine] .. sad .. huoh..
| 171176 [billk@ct .c ] My version of Ruby (1.8.2) doesn't have the #nonblock method.
| 171476 [arto.pastine] I try your example, and well it works little better but it is not what
| 171479 [akr@m1 n. rg] How do you multiplex I/O?  IO.select?
| 171482 [arto.pastine] ah.. the magic select.. :)
+ 171256 [ysantoso-rub] I expect it to block. All IO's buffered I/O methods (puts, prints, read, write,
  171262 [akr@m1 n. rg] Agreed.
  171266 [ara.t.howard] i respectfully suggest, to matz, that this should not stand in the way.  this
  171353 [akr@m1 n. rg] matz?

Debugging intermittent FastCGI failure
171118 [pbattley@gm ] it's fast, responsive, and reasonably light on the processors.
171143 [ara.t.howard] when the processes begin to hang attach to them using stract/pstrace.  this
171247 [pbattley@gm ] Thanks for the ideas.  strace seems very helpful, and I'm trying it

how get data from xls document?
171120 [keal21@ma l.] how get data from excel document (*.xls) without using win32ole?
+ 171136 [anne@wj .h r] I used matlab. In my case the mac version could only read documents
+ 171148 [gene.tani@gm] Haven't done it, google for
| 171185 [janchrister.] cheers
+ 171322 [dan@ep rk ab] Keal,
| 171352 [dca.gis@gm i] You could also try to port perl's excellent Spreadsheet::ParseExcel
+ 176139 [info@ja eo a] Hey, This is very useful :) What other output encodings are available.

(nessun oggetto)
171122 [spago_ok@em ] unsubscribe francesco pugliese

(nessun oggetto)
171123 [spago_ok@em ] unsubscribe

[QUIZ] RRobots (#59)
171134 [james@gr yp ] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 171147 [peter.thoman] Is there a limit on the amount of time the tick() method may take? I can
| + 171151 [novakps@gm i] Are team entries permitted/forbidden?
| | 171152 [simon.kroege] Basically no, I would like to see the 'interesting stuff' and
| + 171153 [james@gr yp ] We tried to talk these issues to death, and I knew we would still
|   171154 [simon.kroege] The tournament will be 1on1 only. If your robot has
|   171167 [ruby.brian@g] I suspect he meant submitting a robot written by a team.
|   + 171191 [adam.shelly@] Figures this one comes out the day before I leave on 2 week vacation.
|   | 171193 [james@gr yp ] James Edward Gray II
|   + 171226 [SimonKroeger] Ok, if you want to put some man weeks into a robot just go on!
+ 171294 [rretzbach@go] I am so excited :>
+ 171635 [james@gr yp ] I'm extending this date/time to 6 PM (GMT) on the 20th, to give
| 171638 [joevandyk@gm] Gah, was out of town and just now saw this.  I think you should extend
| 171639 [james@gr yp ] Simon can make the call on this.
| + 171640 [dbalmain.ml@] Sounds like someone needs to set up a league. I have no time for the
| + 171692 [james@gr yp ] Simon gave us the green-light.  This quiz will be our first two-week
+ 171660 [ilmari.heikk] ...
  + 171665 [botp@de mo t] #From: Ilmari Heikkinen [mailto:ilmari.heikkinen@gmail.com]
  + 171689 [james@gr yp ] I think it's fine.

RubyGems and bin/
171140 [james@gr yp ] I'll readily admit that I haven't looked into this much yet.  I
171145 [jim@fr ez .o] I think it is just
171155 [james@gr yp ] Sure is.  Wow, that was easy.  Thanks much!