163344-165631

163128-181006 subjects 163532-165461

easiest way to set future date
163344 [jasonecartwr] I need to calculate an end date based on a start date (Date.today + #
+ 163380 [gene.tani@gm] (altho I have a hazy recollection that the months ago calculations
+ 163421 [meta@po ox c] Well for starters, you'll want to reject any method that requires

Faster CSV parsing
163345 [w_a_x_man@ya] ## Read, parse, and create csv records.
163347 [gavin@re in ] Thanks for sharing this. You claim 'faster' CSV parsing. Faster than
163350 [w_a_x_man@ya] Than Ruby's standard-lib csv.rb.
+ 163370 [bob.news@gm ] I didn't look too closely at it nor did I test it but your use of class
| 163377 [w_a_x_man@ya] If anyone wants to make it more robust, he is free to do so.
| 163392 [james@gr yp ] def parse_csv( data )
+ 163374 [surrender_it] what things is this missing wrt standard csv.rb?
  + 163375 [langstefan@g] ...
  | 163391 [james@gr yp ] Ara.T.Howard posted a test framework for a bunch of edge cases on
  | 163394 [langstefan@g] Doesn't look good :(
  + 163378 [langstefan@g] I'm sending this message a second time. Seems that my client

Error Installing 'termios' [ld: fatal: file crt1.o: open failed: No such file or directory]
163348 [caldridge@gm] gem install termios

Running one test with test/unit
163352 [chris@se gu ] As per this page[1], it is possible to run one test from a testcase by
163358 [chneukirchen] test/unit simply parses ARGV.
163367 [chris@se gu ] Indeed I was missing something obvious.  Thanks for the pointer.

RMagick on OSX
163354 [lists@la to ] Howdy,
163368 [cyclists@nc ] Howdy, Hunter!
163434 [lists@la to ] -bash: /usr/lib/ruby/1.8/powerpc-darwin8.0/ruby.h: No such file or directory

Re: Nitro + Og 0.24.0, Annotations, KirbyBase, SCGI, Og Evolution, Gen, Dynamic CSS...
163366 [anibalrojas@] Invalid repository:  http://www.nitrohq.com:8090

Kernel#require accepting multiple arguments?
163379 [daniel.schie] What is the reason that Kernel#require only accepts one filename?
+ 163381 [langstefan@g] Perhaps to allow version specification in the future.
+ 163382 [matz@ru y- a] Since we'd like to keep it for "parametrized require" in the future.
| 163398 [daniel.schie] Good enough for me!
+ 163473 [drbrain@se m] %w[file1 file2].each { |f| require f }

Which Ruby Version?
163383 [transfire@gm] Okay, since 1.8.3 is smoking, which version should I be using right
163387 [matz@ru y- a] md5sum cfb6e4c53369c016ebb4061c240c493d
+ 163396 [ruby.brian@g] Does that solve the "gems are not automatically distributed via
| + 163397 [matz@ru y- a] I'm afraid it's not under our control.  Ask RubyGems maintainers.
| + 163403 [langstefan@g] Do you mean the YAML related problem?
|   + 163410 [transfire@gm] 1,8.2-preview4 okay here?
|   | 163428 [langstefan@g] Did you mean 1.8.3-preview4? Didn't check that.
|   + 163412 [ruby.brian@g] yes, that was what i meant.
+ 163399 [transfire@gm] I tried 1.8.4-preview1, and I can no longer require anything :-(
| + 163400 [transfire@gm] Should I move all mystuff to /usr/local/lib/ruby/site_ruby/1.8 now? I
| + 163402 [matz@ru y- a] It's just a configuration problem.  What were you using before
|   163407 [transfire@gm] 1.8.3 from Ubuntu repository. Load paths were the same but without the
|   163418 [matz@ru y- a] Then you have to type
|   163423 [transfire@gm] I see. Thanks. Though I've got a better idea: I've dumped Ubuntu/Debian
+ 163601 [tom@in oe he] Yours,

gem install mysql on windows (xp)
163386 [maurizio@gm ] (please, see below). i scanned a few of forums, blogs an groups, but
163419 [kevin.olbric] I've been having the problems as well on my WinXP box.  See the comments on
163441 [zdennis@mk e] I scanned the post, it doesn't look like that post or any comments help on getting the mysql

C# attributes in Ruby?
163393 [d454d@we .d ] sorry if this has been discussed before (in this case please point me in
+ 163409 [transfire@gm] See annotation.rb from http://facets.rubyforge.org
| + 163420 [meta@po ox c] The sum total of the documentation appears to be "Annotation class
| | + 163422 [transfire@gm] Yes. I'll work on that --annotation.rb is a new lib. It works pretty
| | | 163429 [jeff.darklig] ...
| | + 163612 [george.mosch] regards,
| |   163626 [d454d@we .d ] So my OO persistance example was not that unrealistic after all! 8)
| + 163486 [d454d@we .d ] Thank you, looks quite promising. Is my assumption corrects that facets
+ 163451 [zdennis@mk e] Steph,
  + 163454 [transfire@gm] Yes. That's about right. Keep in mind though that #ann works
  + 163483 [d454d@we .d ] yes, this are valid applications of attributes. Another popular example
    163492 [zdennis@mk e] Ok, still wrapping my head around this... Is the following a correct
    + 163503 [transfire@gm] I think you mean to annotate the class itself, yes? Then...
    | 163511 [jeff.darklig] ...
    | 163608 [transfire@gm] Well that would make a kernel method and that would have o be too
    + 163586 [d454d@we .d ] I don't think this example is very useful to demonstrate annotations. In

1.8.4 preview1 win32 error
163401 [simonharriso] I've downloaded the binary release from garbagecollect.jp and now irb
+ 163404 [jamis@37 ig ] I suspect that you either need to install Rubygems again, or you need
| 163415 [simonharriso] Jamis, tried installing rubygems 0.8.11 but no joy. is rubygems now
+ 163405 [transfire@gm] Ruby 1.8.4 has move lib path it seems.
| 163408 [langstefan@g] No, at least not on my (Linux) system.
| + 163411 [decoux@mo lo] You are right.
| + 163413 [transfire@gm] So its a Debian thing? What linux are you running?
|   163425 [langstefan@g] SUSE 9.2, but I always installed Ruby from source,
+ 163414 [surrender_it] I think that maybe you had the old one-click-installer installed, which
  163416 [simonharriso] Thanks Gabrielle, you are right. did have the one click installer.
  163417 [simonharriso] ri now works, but irb stubbornly refuses to play ball.
  163436 [surrender_it] mh.. there are issues with the ruby/readline exstension on win32 (that
  163437 [simonharriso] sorry gabriele. did not mean to question your manhood. any idea when

[rails] attaching the debugger to functional test.
163427 [dan.bikle@gm] People,
+ 163431 [drbrain@se m] For Rails questions you'll get the best and fastest answers from the
+ 165631 [dan.bikle@gm] People,

[ANN] traits-0.8.0 - better living through meta-programming
163430 [Ara.T.Howard] URLS
+ 163432 [langstefan@g] ^     ^
| 163447 [Ara.T.Howard] ...
+ 163795 [duane.johnso] Great work, Ara!
+ 163796 [duane.johnso] ...

ruby 1.8.3 installer for windows
163435 [ahidalgo@be ] Where can I get ruby 1.8.3 for windows as a single installer?
163438 [leavengood@g] Nowhere. For various reasons a release was not able to be made. There
163445 [dave@bu t. d] Look for it soon after 1.8.4 is finalised, around Christmas.
163459 [curt.hibbs@g] ...

Very useful...  'break' accepts an argument
163442 [tom.agnew@re] Greetings,
163444 [vjoel@pa h. ] It's also cool because it works with your own iterators (really, any
163446 [eric.mahurin] ...
163448 [Ara.T.Howard] config =

KirbyBase DateTime
163449 [hsanson@mo g] Has anyone worked with DateTime fields in a KirbyBase database?? I can insert
163502 [cribbsj@oa w] Here's what is happening:  When you do a #select, KirbyBase returns a KBResultSet, which is basically an Array that holds a bunch of Struct objects.

[ANN] Toronto Ruby User Group Nov 6 Meeting
163456 [mikestok@ro ] [Sorry if this is a duplicate - mail server issues - Mike]

rubynow.com down?
163460 [matt@te hn r] I was trying to check the listings at jobs.rubynow.com and the site seems

<ANN> TeSLa, a Domain Specific Language for Unit Testing
163461 [javierg1975@] I just posted version 0.1.0 of TeSLa, a Domain Specific Language (DSL)
163467 [james_b@ne r] 1. How does this compare to behavior-driven development?
163469 [daniels@pr n] I know nothing about TeSLA, but I can make a guess.
163516 [javierg1975@] Well, it doesn't quite works that way (the implementation, that is... I
+ 163521 [james_b@ne r] Ah.  Thank you for the clarification.  I often put my unit tests in the
+ 163526 [itsme213@ho ] I like this direction.
  163555 [javierg1975@] No part of the code makes that line true, that line is a precondition
  163642 [itsme213@ho ] A precondition is a check with no side effects.
  163679 [javierg1975@] Well, I think your confusion stems from my use of the word
  163779 [leavengood@g] test_method :add_item => [:item4] do
  163790 [james_b@ne r] Such as
  + 163813 [rampant@gm i] test_method :add_item => [:item4] do
  + 163901 [chneukirchen] Continuing the brainstorm (I used "assuming" before "given", but that
    163920 [eric.mahurin] ...
    163933 [chneukirchen] Also, how do you develop test-first with non-existing instance variables?
    + 164112 [javierg1975@] Thank you all for your responses, I though on posting here some of my
    | + 164113 [christophe.g] I know it's not exactly what you asked for when you've written this post, but
    | | 164230 [chneukirchen] assert raises(ZeroDivisionError)
    | + 164133 [eric.mahurin] ...
    |   164319 [javierg1975@] Well, it might be a matter of wording, maybe I'm not quite getting what
    + 164229 [chneukirchen] Yeah, I've seen those already.  It's all rehashing the same content.
      164266 [jim@we ri hh] gem install rspec

Sqlite-Ruby manual ? Examples ?
163463 [Meino.Cramer] I am looking for examples scripts and a manual for
+ 163464 [jamis@37 ig ] - Jamis
+ 163515 [phlip2005@gm] Phlip

qtruby problems now on linux
163465 [fugalh@gm il] Maybe it's related to halloween being tomorrow; all of a sudden qtruby
+ 163472 [Richard_Dale] I don't think this is a bug in QtRuby, it seems like there is something
| + 163487 [fugalh@gm il] The 4:3.3.2-1 is a debian version number based on 3.3.2, yes. I was
| | 163510 [Richard_Dale] The QtRuby 1.0.10 release depends on the current version of the Smoke
| | 163527 [fugalh@gm il] Thanks for your help on this very strange bug. The bug you linked to
| | + 163541 [fugalh@gm il] the double libstdc++ stuff. I'm sure it was a bad thing that I was
| | | + 163549 [fugalh@gm il] Another update: this has also been reported as a bug on the debian
| | | | 163569 [Richard_Dale] I've never had an error where the second puts in this code is never
| | | | 163613 [fugalh@gm il] Well, except I first had the problem in the original tarballs (1.0.9
| | | | 163624 [Richard_Dale] I would be surprised if QtRuby 1.0.9 and 1.0.10 had this problem.
| | | | 163638 [hans@fu al n] Nevertheless, that's what I've been saying. The "empty-window, super
| | | + 163550 [fugalh@gm il] Another update: this has also been reported as a bug on the debian
| | + 163725 [Richard_Dale] This looks like the cause of the problem to me.
| |   163831 [hans@fu al n] It looked like it might be to me too, but I have since fixed this
| + 163565 [asp16@D- -I ] <posted & mailed>
+ 164481 [caleb@ae -t ] I've got a Gentoo user now reporting the same issue - with
  164553 [fugalh@gm il] I confirm this on Debian. Downgrading ruby back to 1.8.2 (not

[ANN] EzCrypto 0.2 with Rails support
163471 [pelleb@gm il] I have no added released EzCrypto 0.2, where the big news isActiveCrypto which adds crypto support to Rails applications. The ideawas to add cryptography via a single line or two of code in youractiverecord model and another line or two in a controller somewhere.

Re: [Rails] [ANN] EzCrypto 0.2 with Rails support
163474 [rblists@gm i] Very interesting. It's something  I'll need in a near future. I

IRB - correcting errors in blocks
163475 [hh@hh nn .d ] When running IRB, and I have made an error, I miss a facility, which
163494 [james@gr yp ] My .irbrc saves my irb history to a file, among other things.  Maybe

Problem installing FxRuby
163476 [NoOne@No he ] I'm running Ruby 1.8.2-15 over WinXP-Pro/SP2.  I tried to install Ruby on
163519 [lyle.johnson] OK, so if I understand this part correctly, you were trying to first
163537 [NoOne@No he ] Thanks a lot for weighing in on my plight.  It's great to hear from a
163538 [lyle.johnson] I *think* this should do the trick. Basically, after you do a "gem
163582 [NoOne@No he ] now empty]
+ 163617 [curt.hibbs@g] I didn't really read this thread, but one thing below caught my eye.
| 163636 [NoOne@No he ] Thanks for taking a look at my problem.
+ 163633 [lyle.johnson] So far, so good.
  + 163647 [NoOne@No he ] Success!!
  + 163720 [pit@ca it in] Who is responsible for those names? Could they be changed to something
    163737 [lyle.johnson] If I recall correctly, they are predefined constants in the RubyGems

Cgi test failure.
163478 [dave.m@em il] Hy,
163480 [ruby.brian@g] I think you started your script with eruby, not with ruby. Have you
163482 [dave.m@em il] Yes, my real target is to use sessions from a .rhtm file.

[ANN] Priority Queue 0.1.2 now as a downloadable gem
163479 [ruby.brian@g] There are problems with gems created with ruby 1.8.3 which prohibited

create Date from Monthname
163488 [hh@hh nn .d ] I have a string of format: '28/Sep/2005'.
+ 163489 [dteare@te re] DateTime.parse works for me when using the format "2005-Oct-12".  I
+ 163493 [eban@os ri .] % ruby -rdate -e 'puts Date.strptime("28/Sep/2005", "%d/%b/%Y")'
  163495 [hh@hh nn .d ] Thanks,
  163496 [langstefan@g] % ri Time#strftime
  163500 [hh@hh nn .d ] Thank you.

City and Connection
163506 [boyang.xia@g] E. g. I am going to make a programm for a forwarding agency containing
+ 163509 [bob.news@gm ] Well, a connection certainly needs a starting and ending point - at least
+ 163513 [dooby@d1 .k ] In my inexperience, I would inherit from a Map.
  + 163524 [bob.news@gm ] Because it's Bad, is's Bad-
  | 163581 [dooby@d1 .k ] I have to resist commenting, else it's a court appearance for me ;)
  | 163594 [bob.news@gm ] LOL
  | 163598 [dooby@d1 .k ] No offence committed ... I mean none taken ;))
  | 163610 [bob.news@gm ] No caffeine omitted ... I lean on bacon ;-)
  + 163529 [boyang.xia@g] Thank you for your tip. Though I am not going to implement as you told
    163580 [dooby@d1 .k ] Yes; the relationship probably is one-way (Connection -> City)
    163661 [rascal1182@g] This sounds like straight-up graph theory.  The graph representations
    163685 [daniels@pr n] The proper answer is that you can implement this a million different
    164447 [boyang.xia@g] Thank you, Daniel. I have tried to make an own implementation and then

City and Connection
163507 [boyang.xia@g] E. g. I am going to make a programm for a forwarding agency containing

what version of ruby will run on osx 10.2
163508 [dhuebsch@ma ] I have a beige g3 that apple will not support past 10.2. What version
163539 [hramrach@gm ] Of course it does not. Look at the patches included in the finkpackage for 10.3.I guess the package would build on 10.2 as well. But I cannot try myself.Specifically I am not sure the environ patch would work on 10.2 as well.

bug in REXML escape codes
163512 [phlip2005@gm] require 'test/unit'
163591 [dooby@d1 .k ] daz

USB device
163514 [rene.davila@] ...
+ 163520 [blargity@gm ] If you're just looking to distribute a single ruby application, then Ruby2Exe
| 163523 [rene.davila@] ...
| 163563 [faker@ya oo ] Thank you so much, it's what I need, even better that the solution I was
+ 163832 [kero@ch ll .] I don't know how small your USB stick is, but mine holds ruby about 64

TumbleDRYer (#53) - my solution
163517 [dmartenson@m] I am not sure I understood the quiz this week. When I first read it, I
163522 [hgs@dm .a .u] You were right the first time.  I was wondering how much of this
+ 163554 [dmartenson@m] Below is my Huffman coding version. A sample of the output in included
| 163573 [dale.martens] For readability, I left the binary encoding as strings rather than
| 163596 [hgs@dm .a .u] Yes, you could assemble the whole lot and use pack for that.  It was
+ 163635 [dbatml@gm .d] Here is my solution.
  163637 [hgs@dm .a .u] A very nice solution.  Much simpler than the coding theory approach,

Ruby Beautifier
163518 [petermichaux] Is there a Ruby beautifier out there that can do more than just
+ 163535 [zdennis@mk e] The following would be good if the programmer could set the values. Here
| + 163540 [petermichaux] How are code beautifiers usually written? Seems as complicated as a
| + 163834 [kero@ch ll .] Beauty is in the eye of the beholder.
+ 163551 [drbrain@se m] ruby2ruby.rb in ZenHacks can do this at the cost of your comments

Trapping errors.
163528 [hgs@dm .a .u] begin
163595 [bob.news@gm ] Maybe it's in another thread.  Or your code is actually not between "begin"
163600 [hgs@dm .a .u] there's no threading in there, and I'm pretty certain it is within
163756 [hgs@dm .a .u] I see my changes to fileutils are now in the Ruby CVS.
163761 [bob.news@gm ] Maybe there's another rescue clause that is closer to the place where the
163774 [hgs@dm .a .u] But unless I have completely misunderstood the point of rescue, even
163793 [bob.news@gm ] But who guarantees that the other rescue clause actually throws again?  If
163803 [hgs@dm .a .u] Then it's already caught, and I should never see the error.
163806 [bob.news@gm ] Why not?  If it's printed in the other rescue clause you would see it.  Or
163809 [hgs@dm .a .u] I wouldn't see it as an error which kills my program.  It would have
163876 [bob.news@gm ] Well, there's at least the theoretical chance that this block just calls
163878 [hgs@dm .a .u] It died with a stack trace.  exit doesn't do that.
163884 [bob.news@gm ] Yes, but it's not too difficult to print a stack trace like the one you
163886 [hgs@dm .a .u] thanks.  It did the trick.  I was hoisted by my own petard.
163892 [bob.news@gm ] Although the meaning is obvious I had to look up "petard".  Did you know
163896 [hgs@dm .a .u] I thought you meant "Shaking Stevens" for a minute! I know it was
163899 [christophe.g] It does come from Latin through French too, but luckily it doesn't have the same
163907 [hgs@dm .a .u] I should have put a smiley there :-)
163918 [christophe.g] I did understand it without the smiley, which is why I added the "Yeah, I know
threads.html
top