201302-203992 subjects 201720-204985

201505 [jamesmead44@] ...

qt4 qtruby on windows
201506 [mirosul@gm i] Where can I download and how can I install qt4 qtruby on windows?
201528 [greg.kujawa@] Check out
201678 [mirosul@gm i] I have Qt4.1.4 installed, MinGW as a C++ compiler, ruby 1.8.4 and
+ 201680 [pgquiles@el ] I'm developing some QtRuby/Korundum applications on Linux using Qt 3.3.6.
+ 201694 [greg.kujawa@] Not sure if the Windows version of Ruby Qt 4 bindings has been released
  + 201712 [mirosul@gm i] Thank you for the complex answer.
  + 201996 [dave.m@em il] There are not QT3-ruby for Windows.
    202001 [greg.kujawa@] You are correct! How quickly I forget that non-commercial Qt for
    202027 [caleb@ae -t ] My company sponsored Richard to work on the Qt4 bindings, but not
    202092 [dave.m@em il] A very good idea. It should be a major project, if possible more

Ruby on Rails job in Dallas (Plano), TX
201510 [bauer.mail@g] Data Delivery Services, an IT company in Plano, TX, is looking for a
201526 [headius@he d] ...

prototype design pattern
201511 [ara.t.howard] anyone know of a good impl for ruby?
+ 201515 [Daniel.Berge] Hm, it's not at
| 201522 [ara.t.howard] savings is only keystrokes.  but it can very elegant looking and, these days,
| 201651 [transfire@gm] Why no go the extra step?
| + 201715 [ara.t.howard] def does &b
| + 201767 [chneukirchen] connect { 'do something' }
|   + 201773 [ara.t.howard] sold.
|   + 201839 [transfire@gm] Sweet and fine! My, oh my, it's looking like a paradigm.
+ 201518 [transfire@gm] What criteria for "good"? I'm not aware of any lib that preports
+ 201597 [pertl@gm .o ] Can't imagine how it could be simpler...
  201633 [ara.t.howard] mostly succinctness, but also semantics.  cloning a prototype should not copy
  201648 [sean.ohalpin] Gosh! Blink and I miss the fun. Ironically, I've been using traits +
  201706 [ara.t.howard] yeah - i've been doing the same with traits.  this one uses attributes.rb,

Appending to a CSV file
201513 [Bil.Kleb@NA ] Just got a call from a telecommuting colleague
+ 201514 [Daniel.Berge] File.open(file, 'a+') ???
+ 201557 [chris.hulan@] Wouldn't it just be a matter of opening the file in append mode?
| + 201572 [hulachr@ho m] Ok, note to self "read docs before commenting"
| | 201579 [james@gr yp ] Interestingly, this design choice in FasterCSV has been questioned in
| | 201591 [hulachr@ho m] It does seem a bit odd that CSV limits the modes.
| | 201844 [renard@nc rr] I realize that I am jumping late into this thread. I do not understand
| | 201847 [greg.kujawa@] I can't speak for the OP, but I am assuming that they were using the
| | 202184 [renard@nc rr] As I said I am a newby to Ruby but not to programming in general.
| + 201588 [Bil.Kleb@NA ] It would, but unfortunately CSV doesn't support 'a'
|   + 201650 [hal9000@hy e] Well, darn.
|   + 201697 [sethrasmusse] Sorry about my last post sort of skipping over the whole matter of the
|   + 201698 [sethrasmusse] I'm not very familiar with the CSV lib, but if the heart of the matter
|   + 201705 [greg.kujawa@] I haven't used the CSV module before either, but looking into it this
+ 201629 [nakahiro@sa ] Please use CSV::Writer.  An instance of CSV is not an IO in contrast to
+ 201724 [chris.hulan@] Not sure if you read ruby-forum (http://www.ruby-forum.com/)

Generating a random floating point number
201517 [jamie@an fo ] I'm a Ruby newbie and I'm wondering if there's a simple way to generate
+ 201529 [penryu@sa yi] Calling Kernel.rand with no argument yields a random floating point
| 201540 [jamie@an fo ] Thanks! That seems to be just what I need!
+ 201531 [dan-ml@da 42] rand*(2+rand*1.6)
+ 201534 [khaines@en g] def fp_rand(limit)
  201566 [ mfp@ac .o g] <nitpicking>
  201577 [khaines@en g] Thanks, Mauricio.  It's always good to have one's nits picked on

shopping cart
201520 [vinayjohar@g] we are looking for one shopping cart in ROR (ruby on ralis)
+ 201530 [greg.kujawa@] HTH
+ 201762 [drbrain@se m] Please ask Rails questions on the Rails mailing list.

201523 [pversteegen@] I am using require in two different ways and they both don't work.
+ 201537 [wrecklass1@g] Are you defining the code_words variable as a local or instance
+ 201541 [chris.hulan@] Be easier to answer if you provided some code.

Ruby problems calling VB COM using win32ole
201524 [andrew.wroe@] I'm experiencing some unusual behaviour trying to use VB COM through

How to pack/unpack nested structures?
201532 [jgbailey@gm ] ...
201934 [nobu@ru y- a] I guess this buffer is the answer, unless the function returns
201949 [jgbailey@gm ] ...

[ANN] prototype-0.0.0
201535 [ara.t.howard] NAME
201601 [pit@ca it in] Great idea, and a nice syntax, Ara. Here's another implementation that isn't as
201603 [ara.t.howard] <snip - hey no fair stealing my 0.1.0 release!>
201606 [pit@ca it in] So sorry ;-)

[ANN] ruby-debug 0.1.3
201539 [ksruby@gm il] ...
201645 [botp@de mo t] # Also you can check out my little tutorial at
201646 [ksruby@gm il] Pe?a,

Class Help, undifined local var or meth
201542 [ryan.edwards] I was using this class before and it was fine until I tried to put it
201545 [robert.dober] ...
201549 [ryan.edwards] undefined local variable or method `aPOlist' for main:Object (NameError)
201551 [ryan.edwards] Oooo, I see, at least I think, is it because I haven't Initialized
201552 [ryan.edwards] Well that did't work...
+ 201562 [collinsj@se ] ...
+ 201568 [hulachr@ho m] aPOlist = POList.new
  + 201570 [collinsj@se ] ...
  + 201574 [ryan.edwards] THAT'S RIGHT! Thanks a bunch

[SOLUTION][QUIZ] Pangrams (#86)
201548 [john.baylor@] ...

Determining a class's ancestor easily without instances
201554 [weyus@at .n ] Given two classes A and B, I know that I can loop through the
201556 [vjoel@pa h. ] if A < B
201560 [weyus@at .n ] So is "<" the "superclass" assignment operator?  Is it a method?
201564 [vjoel@pa h. ] irb(main):012:0> string_lt = String.method("<")
201565 [weyus@at .n ] I looked all over the Pickaxe reference to find it but I couldn't it.
+ 201567 [rmagick@gm i] Look in the Pickaxe 1st Ed., in the documentation for the Module class,
+ 201573 [pit@ca it in] Wes, you have to know that "Class" is a subclass of "Module", and so it

Learning newb: regaring methods and class methods
201558 [dominicson@g] a '::' method class attached to another constant or variable will tell
201559 [dblack@wo bl] class A

Ruby Versions and other languages performane comparison
201563 [stephanwehne] I ran this simple ruby script
201642 [dbatml@gm .d] Here are the results with Ruby2CExtension (HEAD revision, not 0.1.0) on a

Newb: an explaination for this if statement..
201581 [dominicson@g] def add_product(product)
+ 201584 [dblack@wo bl] return existing_product
| + 201589 [dominicson@g] Hey Mr David. I really appriciate you helping me.
| | 201593 [dominicson@g] I would've thanked you too Justin! we posted literally at the same time!
| + 201594 [Pierre.Barbi] Well, I don't know how other feels, but I'd put it in another way: In
+ 201587 [collinsj@se ] In Ruby, methods return the value of the last expression if there is no
+ 201592 [cohen.jeff@g] In Ruby, the last expression executed becomes the return value of the
  202122 [renard@nc rr] So why not just use "return existing_product"

Fwd: Please Forward: Ruby Quiz Submission
201585 [james@gr yp ] ...

Fwd: Please Forward: Ruby Quiz Submission (Part 1)
201602 [james@gr yp ] I believe this message was rejected for length when I sent it the

HDF5 interface?
201605 [john.h.jenki] I've done a good bit of googling, searching this and other Ruby forums,

Listbox with Watir
201607 [chris.defeli] Is there a class or method for controlling listboxes in Watir? I tried
201637 [david.mullet] The API docs indicate that select_list object's select() and

Re: Please Forward: Ruby Quiz Submission (Part 1)
201609 [james@gr yp ] Sorry, I obviously didn't wait long enough.  :(

SOAP WSDL Question (ignored element)
201612 [James@ru y- ] I'm writing a tool in Ruby that need to talk to an ASP.NET SOAP web service.
201684 [nakahiro@sa ] Those messages are dumped with 'warn' method.  You can change $VERBOSE

multiple level hash assignment equivalence to perl
201615 [don.mcclean@] Is there a succinct way in ruby to do a multiple level hash assignement?
201618 [vjoel@pa h. ] There's an autovivification trick, using the default proc of a hash (see
+ 201619 [don.mcclean@] Thanks! Thats just what I needed.
+ 201623 [ara.t.howard] nice!  my approach is slightly more verbose.

Problem with Instiki update after OCI update
201622 [sigma.kappa@] I updated the One-Click-Installer to the brand new Ruby 1.8.4. After
202105 [assaph@gm il] I think that was due to some version mismatch between

Simple socketing
201624 [knutmathiese] simple irc bot, but I am having some slight problems though.

Simple socketing
201625 [knutmathiese] simple irc bot, but I am having some slight problems though.
201628 [sitharus@si ] You've got gets and puts the wrong way around. Read them as Get String

Re: [solution][QUIZ] Panagrams (#86)
201630 [bulliver@ba ] charset="iso-8859-6"

rescue and warning
201631 [r.fulton@au ] I have an app that gets regexpr from a config file.  I check these

rdoc and constructs like DL::Import's extern
201632 [kbloom@gm il] I'm wrapping a C library (link-grammar, to be specific) in an
201634 [logancapaldo] e.g. In some file parseoptions_doc.rb (that doesn't ever even get
201751 [kbloom@gm il] Then I still have to write all of the stubs. Although I suppose I

[ANN] Ruby Accessibility Analysis Kit (RAAKT gem) 0.3
201635 [peter.krantz] NAME

[ANN] prototype-0.1.0
201636 [ara.t.howard] NAME
201654 [logancapaldo] If I may offer a "patch" to your synopsis, IMO a prototype based
201717 [ara.t.howard] hmmm.  the thing is that prottotyping, in ruby, is not an object model but a

Re: [Rails] [ANN] ruby-debug 0.1.3
201643 [ksruby@gm il] Blair,

Setting up Ruby libraries
201644 [joevandyk@gm] /libraries
201742 [joevandyk@gm] Ruby is installed in /foo.  I want to install a Ruby library to /goo,
201749 [transfire@gm] sudo ruby setup.rb install --prefix="foo"

irb command history problems under Ruby-1.8.4 and Mandriva 2006
201647 [rich_apodaca] A few months ago problems were reported with irb's
201707 [schapht@gm i] If the problem is similar to the above link, you likely have a bad

Re: prototype-0.1.0
201652 [transfire@gm] Very nice!
+ 201658 [jtregunna@bl] That is the name of the model. See: http://en.wikipedia.org/wiki/
| 201673 [transfire@gm] I'm not sure what your point is. I'm, aware of what it is called. But,
| 201792 [jtregunna@bl] I've been working with, and assisting in development of the prototype
| + 201797 [ara.t.howard] i don't know too much about prototype based coding - but are you saying this
| | 201801 [jtregunna@bl] No I'm not saying that at all.
| | 201807 [ara.t.howard] ok.  that's what i really wanted to know.  reading on wikipedia it's apparent
| + 201850 [transfire@gm] I think maybe you took what I was saying for more than my intended
|   201863 [jtregunna@bl] Ah, okay, sorry.
|   201891 [transfire@gm] Why do they never choose "Thing"? ;-)
|   201892 [martindemell] mar
+ 201672 [pbattley@gm ] require 'prototype'
| 201718 [ara.t.howard] the latest release has both 'Prototype' and 'prototype' methods.  both
+ 201716 [ara.t.howard] yes.  i actually first coded up

re-define class method
201653 [david@ob ec ] module ClassMethods
201655 [david@ob ec ] Thing.class.send(:define_method, :other_method, lambda{ "other" })
201682 [david@ob ec ] Well, I discovered the solution, thanks to our friend google, and got
201683 [dblack@wo bl] Don't forget that you can do this much more concisely (unless you have
201687 [david@ob ec ] Thanks David. I definitely appreciate the conciseness of this, and
+ 201688 [dblack@wo bl] There's an intermediate version, which might be usable depending on
| 201691 [david@ob ec ] Excellent! Much cleaner.
+ 201695 [sean.ohalpin] def redefine_method_for(klass)
  201709 [david@ob ec ] Unfortunately (actually, rather fortunately ;) ), both the class and

Recursion and Ruby
201661 [glenn.cadman] As a practice to learn ruby I tried to create a recursive program
+ 201662 [curi@cu i. s] You have a typo. it is elsif not elseif.
+ 201663 [botp@de mo t] # def fib ( n )
| 201664 [glenn.cadman] Dear Elliot, Peña
+ 201668 [erikveen@gm ] You could use "case" as well (see version 2). It's faster.
  + 201670 [erikveen@gm ] Only the lambda version (versions 5) is much slower. Why is the
  | 201675 [rubytalk@ea ] ...
  | 201700 [erikveen@gm ] I could easily implement a cache myself, even a cleaner one
  | 201710 [robert.dober] ...
  + 201679 [dbatml@gm .d] Actually version 3 and version 4 are exactly equivalent for Ruby, it
  | + 201692 [robert.dober] ...
  | + 201703 [erikveen@gm ] Well, _finally_ the AST is the same. But somehow, it's
  |   + 201711 [erikveen@gm ] Oops... Wrong headers...
  |   + 201747 [dbatml@gm .d] if a
  |     201756 [the.mindstor] (stupid question): what have you used to parse the code and show the nodes?
  |     201766 [erikveen@gm ] ...
  + 201696 [martin@sn wp] All of these suffer from the problem that they make approximately fib(n)
    + 201778 [chneukirchen] Given you have an reasonably exact approximation of the square root of 5,
    | + 201781 [Rob@Ag le on] ...
    | + 201796 [robert.dober] ...
    |   201804 [doug@mc au h] OT, but...
    |   201809 [robert.dober] ...
    |   201814 [curi@cu i. s] sqrt(5) can be pre-computed.
    |   201816 [robert.dober] ...
    |   201851 [Rob@Ag le on] ...
    + 201878 [glenn.cadman] Well whilst my orginal exercise was just to get recursion working in
      + 201881 [glenn.cadman] printf("Enter a number: ")
      | 201884 [simon.kroege] maybe
      | 201886 [botp@de mo t] # puts (0..i).map{|k| fib[k]}.join(' ')
      + 201882 [martindemell] The block form of Hash.new calls the block for every
      | 201925 [phurley@gm i] When I am confused (which happens all too often), I like to "see" what
      + 201905 [Rob@Ag le on] ...
      + 201948 [Rob@Ag le on] (I hate when the email doesn't get through)

YARV install on Mac OS X ?
201665 [pere.noel@la] what to do in order being able to install YARV on Mac OS X ?
201667 [decoux@mo lo] The installation say (see http://www.atdot.net/yarv/#i-4-2)
201669 [pere.noel@la] Build and Install
201674 [decoux@mo lo] First retrieve the source
201676 [pere.noel@la] ok thanks !

Ruby on OpenVMS
201671 [ollin@em il ] Does anybody have some experience with Ruby on OpenVMS? e.g. link to
201758 [greg.kujawa@] Here's something I googled across -->
201867 [ollin@em il ] Thanks for your focus, however this is very short and only thing the
201902 [greg.kujawa@] Sorry, that's about the extent of what I came up with. The last time I

New C/ruby powered editor
201677 [phil@sh ll r] I've been hacking away at a new editor for a while and have come up with
201681 [pbattley@gm ] I managed to compile it on OS X PPC (had to do 'chmod +x install-sh'
201685 [phil@sh ll r] 'C-X C-X' should have got you out. 'C-B c' would have created a new buffer.

Reading month from timestamp (postgres) [Rails]
201689 [marco.kratze] Does anybody know how to get a month from a timestamp which was made with
201690 [rubytalk@ea ] ...

Re: Enterprise Ruby Studio
201693 [hulachr@ho m] I checked out the site, and thought it looked similar

cookbook example in InstantRails
201699 [rxv@ho ma l.] I'm trying to follow along with the code in the cookbook example provided in
201704 [schapht@gm i] That's the beauty part, you only need a few lines for basic stuff
201708 [alex@bl ck e] As as example, try looking in
201713 [schapht@gm i] [snip: instant rails question]
201721 [dblack@wo bl] And the Slashdot review of "Ruby for Rails", in the wake of which said
201722 [znmeb@ce ma ] Speaking of which ... there's a *reason* "Ruby for Rails" is the number
201765 [rxv@ho ma l.] Took you guys' advice and went out and bought R4R.