152422-154877

152186-156359 subjects 152641-153992

^ postgres extension lib
152422 [ruby redry.n] Im wondering if there is more detailed docs for the postgres
152424 [Gavin.Kistne] charset="iso-8859-1"
152425 [ruby redry.n] Thanks for that! I have what im looking for now...
152431 [Gavin.Kistne] charset="iso-8859-1"

^ Qt:  signals of DateTimeEdit?
152426 [x5 danisch.d] 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 danisch.d] Works. Thanks.

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

^ Ruby on Unix vs. Windows
152434 [rick nooner.] 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 nooner.] That's what I suspect as well.
| + 152483 [mailinglists] No its exactly the same. Remember that the ruby GC has an extremely
|   + 152484 [rick nooner.] I looked at Ruby's allocator and Lothar is right.  It's just a wrapper
|   + 152554 [bob.news gmx] Also I believe the limit for user process memory is lower on 32 bit
+ 152454 [billk cts.co] 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 nooner.] The deployed system will run on linux or solaris so testing on windows was just a quick
| + 152458 [rick nooner.] You are describing exactly the behavior that I'm seeing.
|   152463 [vjoel path.b] What about testing with cygwin or mingw32 ruby? I'm guessing those use
|   + 152485 [rmok algorit] Another option is SFU(www.interix.com).  I believe there is a Ruby 1.8.2 binary package.
|   + 152489 [sigzero gmai] I would be curious to see if mingw32 has the same problems (remembering
|     152492 [billk cts.co] I encountered this problem a year or so ago working
|     152518 [mailinglists] For example take this one
|     152520 [alex verk.in] 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 gma] 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 gnome.or] I am happy to announce the 0.2.0 release of Ruby/ZOOM.

^ Array manipulations questions
152442 [Peter.Fitzgi] charset="us-ascii"
152446 [Peter.Fitzgi] a =
+ 152487 [pit capitain] 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 sar] Sorry for late reply.  A lot happened but now it works (I hope).

^ Generic Parsing Library
152451 [netghost gma] I was wondering if anyone would be interested in, or knows of a generic
+ 152457 [khaines enig] 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 hype] Sweden, and he was very busy the last time I talked to
+ 152470 [james graypr] I've just recently been throwing together my own tool for this.  I
| 152474 [netghost gma] It would be interesting to look at one way or another.  It looks like
| 152830 [james graypr] I don't want to send out a big announcement message until I get
| 152955 [netghost gma] Great.
| 152957 [james graypr] I have ideas for more features and I will document the next release,
+ 152472 [patrick hexa] ~ Patrick
| 152473 [james graypr] Any good tutorials on Racc hiding on some corner of the net?  I would
| + 152481 [netghost gma] 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 refine] the desired output is a hierarchy of nodes and text (i.e. an XML type

^ Why and His Guide Mentioned...
152464 [james graypr] 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 gma] I think Why's guide is an excellent piece of subversive education.
  + 152533 [merkoth gmai] yup, I totally agree. I'm just beggining with ruby but I find that
  + 153183 [julian coret] What is why's guide?
    153185 [cyclists nc.] You are in for a treat!

^ YAENQ: Variable as a pattern
152465 [basi_lio hot] (I ordered for a copy of Mastering Regular Expressions. Should be in my
+ 152468 [netghost gma] "goodness" =~ /[#{v}]/
+ 152469 [vjoel path.b] "goodness" =~ /[#{v}]/
+ 152471 [cyclists nc.] "goodness" =~ /#{v}/
  152609 [basi_lio hot] 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 nixe.p] # starts a line comment in Ruby.
| 152486 [brockweaver ] ...but # is escaped within a string, so there is an exception.  #{
+ 152488 [jamal.hansen] I'm a Ruby Nuby as well, but why would you pass 2 hashs? Couldn't you pas=
  152495 [brockweaver ] Sure you can, but the start_form_tag method expects the first hash to
  152514 [daniels pron] You don't need to enclose each argument in brackets, you just need to

^ fxruby questions
152494 [ritchie ipow] 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 ipow] 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 aracne] [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 delmont] #> 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 delmont] #*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 thereal] ruby myxmloutput | xml fo

^ Rails vs X
152529 [lyndon.samso] Interesting write-up of Rails vs a similar python based framwork.
152541 [james_b neur] Remarkably level-headed.
152548 [ptkwt aracne] Would it be fair to say that Django and Nitro are closer in philosophy
+ 152589 [james_b neur] 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 d10.ka] < [...]

^ Newbie question
152535 [lsumnler gma] Is there some difference in the code I'm not seeing or is one better
+ 152537 [merkoth gmai] 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] Both are acceptable, but it is common convention that you use {} for
| 152698 [jeff.darklig] Oh, and there is quite a difference in the evaluation of both within the
+ 152540 [jamal.hansen] I think it is a matter of preference / readability though they do the same=
| + 152544 [lsumnler gma] Thanks everyone
| | 152560 [ruby.brian g] There are two schools regarding the use of {} vs do - end. Some use it
| + 152625 [rhkramer gma] I'm a newbie, but I'm quite certain I've read that there is (was?) a
|   152626 [james graypr] irb(main):001:0> puts %w{cat bat rat}.map { |w| w.capitalize }
|   + 152628 [ssrat mailba] 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 gma] Thanks!  (I was sure I had read about some difference.)  Thanks also for the
|     152839 [hal9000 hype] 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 gma] 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 gmail] 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 eskimo.] There are just too many problems that can quickly be solved by
+ 152550 [billk cts.co] 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 capitain] 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 eskimo.] Thank you.  I used this just yesterday, and it helped a lot with a
|   + 153090 [dblack wobbl] Let's be fair, though: you can't just airlift what Perl does into
|   + 153093 [dagbrown LAR] I quite liked Perl IV, but I always thought Perl 77 was a big
+ 152965 [meta pobox.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 capitain] 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 gma] I just stumbled across this page[1] on RubyGarden. The writer tells
+ 152557 [bob.news gmx] => nil
+ 152578 [gavin refine] charset=US-ASCII;
| 152585 [lyndon.samso] I'd say prototype means no classes, that is create an Object from another (=
| + 152587 [dblack wobbl] 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 che] 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 wobbl] Yes, but that use is deprecated.  The explanation given by Matz in the
| | | + 152619 [dblack wobbl] $ /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 wobbl] 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 wobbl] 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 gmai] "Researchers seeking to improve performance should improve their
| + 152610 [binary42 gma] 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 gmai] It is, after you implement it. See http://rubyforge.org/projects/evil/
  152690 [zimba.tm gma] 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 gmx] While reading this thread I thought class Matrix would be a good solution,

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

^ Ruby's Assets (was: Re: Ruby Performance)
152569 [bob.news gmx] 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 gma] 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 sgtpe] As far as I know there seems to be no group that is dedicated to

^ Loop improvement
152588 [eduardo.yane] class Test
152591 [james graypr] 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 graypr] 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 coret] Just wondering if there's a simpler way to do this?
+ 152601 [james graypr] file_contents = File.read("/usr/blah/1.txt")
| + 152603 [zdennis mkte] or, for two more characters shortened...
| | 152607 [bob.news gmx] One less...
| + 152605 [bob.news gmx] 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-O] 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 gma] 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 pobox.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-O] Now it works. Sometimes it is so easy.

^ Object based administrative shell
152622 [reyn.vlietst] Dare I say monad ?=20
+ 152631 [james graypr] Interesting concept.  Neat to play with.
| 152644 [jeffm ghostg] 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 ghostg] 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 gmx] 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 graypr] 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 path.b] Sorry for late reply, but this is something useful to know about yield
threads.html
top