152422-154877

152186-156359 subjects 152641-153992

postgres extension lib
152422 [ruby@re ry n] Im wondering if there is more detailed docs for the postgres
152424 [Gavin.Kistne] ...
152425 [ruby@re ry n] Thanks for that! I have what im looking for now...
152431 [Gavin.Kistne] ...

Qt:  signals of DateTimeEdit?
152426 [x5@da is h. ] I'm just writing an application with ruby Qt and tried to connect a
152516 [Richard_Dale] You need a type signature of 'const QDateTime&' in the string passed to
152620 [x5@da is h. ] Works. Thanks.

[Newbie Alert] Probably missing something simple here ... help {wimper}
152427 [lists@ac iv ] Am trying to read from a file and write to a number of files based on
+ 152435 [bg-rubytalk@] afile.puts a
+ 152443 [wilsonb@gm i] I'm at the end of a long day here, and I haven't bothered to try to
  152508 [daniels@pr n] Sorting wont help minimise the number of files open with the code that
  152522 [wilsonb@gm i] Yeah, sorry.. I meant to write a couple more sentences there about how
  152574 [lists@ac iv ] I want to thank all of you who helped in this!  The file was

Ruby on Unix vs. Windows
152434 [rick@no ne .] Yesterday at work we took an analysis program written in ruby that we had been
+ 152447 [Daniel.Berge] I suspect mostly the latter, with a little bit of the former mixed in
| + 152449 [rick@no ne .] That's what I suspect as well.
| + 152483 [mailinglists] No its exactly the same. Remember that the ruby GC has an extremely
|   + 152484 [rick@no ne .] I looked at Ruby's allocator and Lothar is right.  It's just a wrapper
|   + 152554 [bob.news@gm ] Also I believe the limit for user process memory is lower on 32 bit
+ 152454 [billk@ct .c ] Any chance the program does any large block allocations?
| + 152455 [Daniel.Berge] Just for to see if it helps, you could add some explicit calls to
| | 152461 [rick@no ne .] The deployed system will run on linux or solaris so testing on windows was just a quick
| + 152458 [rick@no ne .] You are describing exactly the behavior that I'm seeing.
|   152463 [vjoel@pa h. ] What about testing with cygwin or mingw32 ruby? I'm guessing those use
|   + 152485 [rmok@al or t] Another option is SFU(www.interix.com).  I believe there is a Ruby 1.8.2 binary package.
|   + 152489 [sigzero@gm i] I would be curious to see if mingw32 has the same problems (remembering
|     152492 [billk@ct .c ] I encountered this problem a year or so ago working
|     152518 [mailinglists] For example take this one
|     152520 [alex@ve k. n] Oh my! That's ptmalloc on Windows, isn't it?! That little thing
|     152521 [mailinglists] Yes it will improve the runtime speed but it also has lower
|     152528 [mailinglists] Sorry, there is a "not" missing in this sentence.
+ 152493 [olczyk2002@y] Look around for a Live CD distribution like Knoppix. But find one
+ 152624 [tesla.nicoli] My only experience with this is through SQL Server 2000. Large processes

Rails docs as a CHM file
152436 [demetriusnun] For the Windows Railers, I've made the Rails docs available as a CHM
152501 [agorilla@gm ] Thx much!

Re: Probably missing something simple here ... help {wimper}
152438 [w_a_x_man@ya] You are repeatedly opening a file that is already open.
152453 [w_a_x_man@ya] Doesn't this open and close a file every time a line is

[ANN] Ruby/ZOOM 0.2.0
152441 [lrz@gn me or] I am happy to announce the 0.2.0 release of Ruby/ZOOM.

Array manipulations questions
152442 [Peter.Fitzgi] ...
152446 [Peter.Fitzgi] a =
+ 152487 [pit@ca it in] def a.grid( i )
+ 152496 [ruby-talk@wh] Let's start with the easy stuff.
  152566 [Peter.Fitzgi] If I wanted to include the array A as a class-accessor, how would I
  152570 [ruby.brian@g] Just extend Array with the functions

RAA Appears to be down
152448 [halostatue@g] I was trying to do a search and the RAA WEBrick server seems to be down.
+ 152450 [Daniel.Berge] Yep.
+ 154877 [nakahiro@sa ] Sorry for late reply.  A lot happened but now it works (I hope).

Generic Parsing Library
152451 [netghost@gm ] I was wondering if anyone would be interested in, or knows of a generic
+ 152457 [khaines@en g] Load) system in Perl.  It had a lot of bells and whistles, but the core of it
| 152459 [Daniel.Berge] Whatever happened to Rockit?!  Robert Feldt, where are you?
| 152504 [hal9000@hy e] Sweden, and he was very busy the last time I talked to
+ 152470 [james@gr yp ] I've just recently been throwing together my own tool for this.  I
| 152474 [netghost@gm ] It would be interesting to look at one way or another.  It looks like
| 152830 [james@gr yp ] I don't want to send out a big announcement message until I get
| 152955 [netghost@gm ] Great.
| 152957 [james@gr yp ] I have ideas for more features and I will document the next release,
+ 152472 [patrick@he a] ~ Patrick
| 152473 [james@gr yp ] Any good tutorials on Racc hiding on some corner of the net?  I would
| + 152481 [netghost@gm ] The mention of rockit from above was good too, it looks pretty
| | + 152498 [eric_mahurin] Hopefully I'll do another release in a couple of weeks (under
| | + 152579 [ogilthorpe@d] Adam,
| + 152703 [steven.jenki] The Racc distribution includes several sample applications, including a
| + 152807 [clr7.10.rand] If there is some interest, I might post a small parser
+ 152517 [transfire@gm] Actually I have written something similar to what you describe, though
+ 152524 [gavin@re in ] the desired output is a hierarchy of nodes and text (i.e. an XML type

Why and His Guide Mentioned...
152464 [james@gr yp ] Why the Lucky Stiff and The Poignant Guide to Ruby are mentioned
+ 152526 [lyle.johnson] To be clear: Which book are you talking about? Joel's book, which
+ 152531 [netghost@gm ] I think Why's guide is an excellent piece of subversive education.
  + 152533 [merkoth@gm i] yup, I totally agree. I'm just beggining with ruby but I find that
  + 153183 [julian@co et] What is why's guide?
    153185 [cyclists@nc ] You are in for a treat!

YAENQ: Variable as a pattern
152465 [basi_lio@ho ] (I ordered for a copy of Mastering Regular Expressions. Should be in my
+ 152468 [netghost@gm ] "goodness" =~ /[#{v}]/
+ 152469 [vjoel@pa h. ] "goodness" =~ /[#{v}]/
+ 152471 [cyclists@nc ] "goodness" =~ /#{v}/
  152609 [basi_lio@ho ] thanks to all who replied. so simple. (goodness, why didn't I think of

Passing inline hashes
152478 [brockweaver@] I just stumbled across an intresting problem with passing two hashes
+ 152480 [flori@ni e. ] # starts a line comment in Ruby.
| 152486 [brockweaver@] ...but # is escaped within a string, so there is an exception.  #{
+ 152488 [jamal.hansen] ...
  152495 [brockweaver@] Sure you can, but the start_form_tag method expects the first hash to
  152514 [daniels@pr n] You don't need to enclose each argument in brackets, you just need to

fxruby questions
152494 [ritchie@ip w] when I'm using a connect method, how do I tell fxruby that the event
152525 [lyle.johnson] If the result of evaluating the event handler block or method is
152555 [martindemell] Why the false/nil split?
152592 [lyle.johnson] Good question; it's for a combination of reasons.
+ 152643 [ritchie@ip w] Lyle
| 152711 [lyle.johnson] I guess so, I've never tried it. You might ask on the foxgui-users
+ 152850 [martindemell] That's a pretty neat use of 'false' as a distinguished singleton object,

Generic Parsing Library
152500 [ptkwt@ar cn ] [I happened to see this on the ruby-talk archives, but it hasn't shown up

Re: newbie: installing rails on standalone pc
152506 [botp@de mo t] #> How do i install rails to a pc that does not have an
152573 [chneukirchen] *Well*, that's not exactly true.  Note that the rails.tar.gz contains
152647 [botp@de mo t] #*Well*, that's not exactly true.  Note that the rails.tar.gz contains

xmlrpc question
152507 [joevandyk@gm] Using ruby's xmlrpc, how can I view the XML that's being generated by
152513 [joevandyk@gm] Aha, XMLRPC::Marshal.dump_response does the trick...
152571 [chneukirchen] ruby myxmloutput | xmllint --format -
152692 [adam@th re l] ruby myxmloutput | xml fo

Rails vs X
152529 [lyndon.samso] ...
152541 [james_b@ne r] Remarkably level-headed.
152548 [ptkwt@ar cn ] Would it be fair to say that Django and Nitro are closer in philosophy
+ 152589 [james_b@ne r] I haven't used Django, but based on that write up that sounds correct.
+ 152672 [george.mosch] I got the same feeling. But if you take the time to experiment with

[OT] Re: NEWBIE QUESTION: pattern with nil
152530 [dooby@d1 .k ] < [...]

Newbie question
152535 [lsumnler@gm ] Is there some difference in the code I'm not seeing or is one better
+ 152537 [merkoth@gm i] AFAIK, both of them do the same thing. you're just changing the block
+ 152538 [mailinglists] No both are the same, the one liner
| 152697 [jeff.darklig] ...
| 152698 [jeff.darklig] ...
+ 152540 [jamal.hansen] ...
| + 152544 [lsumnler@gm ] Thanks everyone
| | 152560 [ruby.brian@g] There are two schools regarding the use of {} vs do - end. Some use it
| + 152625 [rhkramer@gm ] I'm a newbie, but I'm quite certain I've read that there is (was?) a
|   152626 [james@gr yp ] irb(main):001:0> puts %w{cat bat rat}.map { |w| w.capitalize }
|   + 152628 [ssrat@ma lb ] I ALWAYS use {} for block delimiters.
|   | + 152639 [halostatue@g] Binding precedence. do/end has a lower binding than {}, which is part
|   | + 152686 [ruby.brian@g] 1) Binding when it is neccessary. (Though I prefer brackets except for
|   + 152838 [rhkramer@gm ] Thanks!  (I was sure I had read about some difference.)  Thanks also for the
|     152839 [hal9000@hy e] What he means is, it's a matter of precedence.
|     + 152840 [jamal.hansen] So then it would make sense (for clarity) to use the do .. end when
|     + 152953 [rhkramer@gm ] Yes, wonderful--the parentheses and thinking of it as precedence made it sink
+ 153340 [chris.pine.f] In general, I tried to show one and only one way to do something.

Re: Scheduling (#42)
152546 [fugalh@gm il] Well I'll take your word for it on the NP thing because I don't have

Ruby 2 Idea:  You've got to have a[a][b][c][d][e][f][g][h][i]...
152547 [xeno@es im .] There are just too many problems that can quickly be solved by
+ 152550 [billk@ct .c ] I don't know how to do it with Array, because Array doesn't
| + 152558 [ruby.brian@g] Though I never had use for this, here is my attempt on an
| | 152561 [pit@ca it in] Very nice. There are problems with negative indexes (try a[1][-2][2])
| | 152564 [ruby.brian@g] Should have written unit tests, but it is just a hack. Heres the
| + 153088 [xeno@es im .] ...
|   + 153090 [dblack@wo bl] Let's be fair, though: you can't just airlift what Perl does into
|   + 153093 [dagbrown@LA ] I quite liked Perl IV, but I always thought Perl 77 was a big
+ 152965 [meta@po ox c] Well, the support for multiple dimensions of index selector is already
  152973 [Ara.T.Howard] require 'narray'

RubyGems praise (was Re: Rails vs X)
152551 [ruby-talk@wh] I had no idea you could serve gems directly with gem_server.  That's
152774 [chadfowler@g] Yea, I think we haven't done a good enough job of publicizing this
152798 [pit@ca it in] Maybe you can use Ruby's Rinda::Ring and don't need to implement another
152899 [chadfowler@g] That's also true, though there are two existing implementations of DNS

Prototype-based / Ruby question
152556 [zimba.tm@gm ] I just stumbled across this page[1] on RubyGarden. The writer tells
+ 152557 [bob.news@gm ] => nil
+ 152578 [gavin@re in ] ...
| 152585 [lyndon.samso] ...
| + 152587 [dblack@wo bl] Duck typing co-exists peacefully with the existence of classes -- or
| | 152615 [eric_mahurin] Using the term "type" by itself instead of something else helps
| | + 152616 [rm_rails@ch ] Seems like the same issue Java and Self compilers have
| | | 152637 [eric_mahurin] This is not directly what I'm talking about, but related.  You
| | + 152618 [dblack@wo bl] Yes, but that use is deprecated.  The explanation given by Matz in the
| | | + 152619 [dblack@wo bl] $ /usr/local/lib/ruby-cvs/bin/ruby -ve '"".type'
| | | + 152632 [eric_mahurin] From what you said above, I don't see any debate over how I
| | |   152653 [dblack@wo bl] It sounds like you think I mean you should send all possible messages
| | |   152705 [eric_mahurin] Ah, the joys of discussing typing in Ruby... at least neither
| | |   152714 [dblack@wo bl] I think of respond_to? as a kind of "weak duck typing" :-)
| | |   152716 [eric_mahurin] In ruby, since you don't declare the type of your arguments
| | + 152630 [florgro@gm i] "Researchers seeking to improve performance should improve their
| + 152610 [binary42@gm ] Hmm. I think it would be a _very_  bad idea. Prototypes would make
+ 152636 [lthiryidontw] As far as I could understand it, the most practical advantage of
  152677 [florgro@gm i] It is, after you implement it. See http://rubyforge.org/projects/evil/
  152690 [zimba.tm@gm ] I'm happy my initial message generated so much participation. That's

Extend Class Matrix? (was: Re: Ruby 2 Idea: You've got to have a[a][b][c][d][e][f][g][h][i]...)
152563 [bob.news@gm ] While reading this thread I thought class Matrix would be a good solution,

why do some gems require 'rubygems'?
152567 [wybo@se va y] Some gems, like RMagick, can be loaded with just 1 require,
152682 [wybo@se va y] export RUBYOPT=rubygems

Ruby's Assets (was: Re: Ruby Performance)
152569 [bob.news@gm ] There has always been heated debate about which programming language was

SuDoku-X Solver
152582 [astrodean@ya] I have written a sudoku solver in ruby that finds all solutions using
152645 [clsnyder@gm ] this is great - nice work. someone has a mac osx sudoku solver/creator
152646 [mohit.muthan] neatly documented and serves as a decent tutorial, IMO.

Matz' Ruby user group?
152584 [transfire@gm] I was wondering: What part of Japan do you live in? And do you belong
153195 [techml@sg pe] As far as I know there seems to be no group that is dedicated to

Loop improvement
152588 [eduardo.yane] class Test
152591 [james@gr yp ] class Test
+ 152593 [eduardo.yane] All are good ideas. Sometimes I need to cry because of my rigid brain :(,
+ 152594 [eduardo.yane] Which is the e's class?
  + 152596 [ruby.brian@g] home_squad = home.squad.to_a.map { |e| p e.class; e.first }
  + 152600 [james@gr yp ] Whatever the class of home_squad[n] is.  map() just walks the Array,

Memory allocation, Unix vs Windows (was: Ruby on Unix vs. Windows)
152597 [Daniel.Berge] Well, consider the following script.  On Solaris the memory peaks at

Is there a simpler way to do this?
152599 [julian@co et] Just wondering if there's a simpler way to do this?
+ 152601 [james@gr yp ] file_contents = File.read("/usr/blah/1.txt")
| + 152603 [zdennis@mk e] or, for two more characters shortened...
| | 152607 [bob.news@gm ] One less...
| + 152605 [bob.news@gm ] I was tempted to say "of course there is".  It's so typical Ruby. :-)
+ 152614 [astrodean@ya] I believe the following does it...
  152617 [halostatue@g] Yes. But there's a problem with this -- it does more work than

Geturl with net/http package
152621 [Debitsch@T- ] I want to retrieve an image from the world wind server using the Ruby http
+ 152623 [brockweaver@] You behind a proxy?  There is another method in http which takes proxy
+ 152627 [mohit.muthan] Remove the 'http://' from the 'server' variable.
  + 152633 [djberg96@gm ] It would take a minimal amount of code to make it work with or without
  | + 152649 [brockweaver@] I'd say the server method shouldn't accept url specs
  | + 152942 [meta@po ox c] You should be using the URI class to parse and assemble URLs; there's no
  |   152950 [Daniel.Berge] Sounds good.  I'll submit a patch (or you can, if you prefer).
  + 152712 [Debitsch@T- ] Now it works. Sometimes it is so easy.

Object based administrative shell
152622 [reyn.vlietst] ...
+ 152631 [james@gr yp ] Interesting concept.  Neat to play with.
| 152644 [jeffm@gh st ] Care to post a few cut-n-paste examples for those of us who don't want
+ 152657 [transfire@gm] There's been some discussion on this with regards to R:O:S. You might
  152684 [reyn.vlietst] Trans, thanks I had a look at their mailing list and they had a few
  + 152754 [reyn.vlietst] I started a wiki for anyone interested.
  + 152820 [jeffm@gh st ] Thanks for the examples. I'll also have to take a look at the wiki
    152885 [reyn.vlietst] Jm, yes I agree, having ruby continuously on a few segments on that

OS X Resource Forks
152634 [Steve Zich <] Howdy -
152635 [schlu-do@gm ] If you're working with Ruby on Mac OS X, you should be able to get them
152638 [Steve Zich <] Worked like a charm!

Passing blocks further down
152640 [matthias-lue] at first I must say that after reading this newsgroups for some weeks
+ 152642 [james@gr yp ] traverse_inorder(@root, &block)
| 152670 [matthias-lue] Fair engouh, really straightforward. Thank you!
| 152685 [ruby.brian@g] Hey, you know you can optimize this ;-)
+ 153164 [vjoel@pa h. ] Sorry for late reply, but this is something useful to know about yield
threads.html
top