311258-344337

311018-342551 subjects 311449-313872

^ at_exit kernal method
311258 [aidy.lewis g] Am I correct in saying that if I specify  the at_exit method, will it

^ Ruby printing to Cgi Error Log
311263 [patrickli_20] Just a simple question that I can't seem to find anywhere on google.
311265 [tommy.morgan] There are a few frameworks in Ruby for handling logging.

^ wsdl2ruby.rb and "certificate verify failed"
311268 [mojowings ho] 1) I installed the most recent httpclient from

^ Ruby without Rails
311269 [rasfast gmai] I have a Rails application, and now I'm trying to make a cgi-script
311274 [hongli phusi] mod_ruby hasn't been maintained since 2006, and people generally avoid

^ My computer is running slow?
311272 [ritu4741 gma] Below are steps for Microsoft Windows that should help speed up the

^ RDoc duplicate entries
311276 [transfire gm] This has happened to me before, and (sigh) I can't recall what it was

^ Re: How to pass an object as parameter from a "raise" to a "rescue"?
311277 [ibc aliax.ne] MjAwOC84LzE0LCBJw7Fha2kgQmF6IENhc3RpbGxvIDxpYmNAYWxpYXgubmV0PjoKPiBIaSwgaXMg

^ Inconsistent regexp behavior
311280 [damnbigman g] puts "toads suck".gsub(/(\s)/, "\\#{$1}")
+ 311284 [shortcutter ] I'm sorry, but you're wrong. :-)  When you pass "\\#{$1}" to gsub the
+ 311288 [sepp2k googl] Think about in what order the elements of this expression get evaluated. Then
+ 311289 [damnbigman g] Oops.  Typo, I should probably copy and paste next time.  The second gsub is
| 311307 [damnbigman g] Thanks guys, now I know why.
+ 311344 [botp delmont] # puts "toads suck".gsub(/(\s)/, "\\#{$1}")
  311368 [shortcutter ] orm

^ Uninitialized constant: String::StringIO
311281 [patrickli_20] I'm having a hard time spotting my bug in this code.
+ 311282 [ara.t.howard] require 'stringio'
| 311285 [patrickli_20] Thanks Ara,
| 311291 [ara.t.howard] irb simply had already required it.  there is no general way to tell
| 311293 [patrickli_20] Okay, I'll keep that in mind.
+ 311283 [shortcutter ] $ ruby -e 'p StringIO'

^ [ANN] logging 0.9.1 (Green Eggs & Ham)
311287 [tim.pease gm] logging version 0.9.1

^ nested loop
311294 [yves_dufour ] I know there is DRY way tow rite that, but I don't remember how
311295 [yves_dufour ] residence_rentals_ids =3D []
+ 311308 [adam.shelly ] residence_rentals_ids  = user.franchise.residences.map{ |residence|
+ 311309 [michael.c.li] T24gVGh1LCBBdWcgMTQsIDIwMDggYXQgMTI6MjcgUE0sIEVyd2luIDx5dmVzX2R1Zm91ckBtYWMu
  311468 [yves_dufour ] that's it... thanks a lot.. I was missing the .flatten functionality

^ date.parse does not work anymore
311296 [junkone1 gma] i am sure i have used date.parse in my code. however it does not work
+ 311297 [stefano.croc] require 'date'
+ 311298 [ibc aliax.ne] Don't ask me way, but you must load "date.rb" library instead of "time.rb"=

^ rmagick-win32 gem?
311300 [aidy.lewis g] I have attempted to gem install rmagick: Being on windows I am
311304 [rmagick gmai] The rmagick-win32 gem is bundled with a copy of the ImageMagick Windows

^ Best practice for set-and-test idiom?
311301 [kpnolan insg] I've been using Ruby/Rails for about about four months and wonder what
+ 311305 [rmagick gmai] val = (ar = Model.find(...)) ? ar.attribute : DEFAULT
| 311315 [kpnolan insg] Tim,
| 311327 [TimHunter nc] Actually I suck at these kinds of stylistic questions. If I want
+ 311381 [gsinclair gm] Does the Model.find(...) need to be buried in a test condition?  If
  311388 [ara.t.howard] charset=US-ASCII;
  311389 [phlip2005 gm] Can Ruby report an error's column? Or only its line number?
  311392 [ara.t.howard] the line

^ Top 10 Things To Look For In A Web Host
311302 [mzai.hosting] Top 10 Things To Look For In A Web Host

^ how exit a block?
311317 [lists gregwi] I found a suggestion that says to use return, but this generates a
+ 311318 [stefano.croc] break color if color == 'yellow'
| 311359 [lists gregwi] Oi. yep, break is what I was looking for. I guess I've just never come
| 311361 [joshnabbott ] Have you tried using detect?
+ 311346 [jballanc gma] Using 'return' will break you out of a method. If you want to use it to
+ 311473 [tpreal gmail] Your question is not what you really want to ask about.
  344337 [chinasaurli ] mixed_collection.sort do |x,y|

^ yaml and dates
311319 [shadowfirebi] It's turning out to be very difficult to come up with a reliable
311322 [shadowfirebi] irb(main):001:0> require 'date'

^ tricky hash initialization
311324 [raypereda ya] h = Hash.new {|h,k| h[k] = {} }
311325 [sepp2k googl] Hash.new {|h,k| h[k] = Hash.new(&h.default_proc)}
311337 [raypereda ya] Thanks for the attempt.  Seems on the right track but not quite.
+ 311340 [mikael hoilu] Don't do that. The h inside the block is conflicting with the h =20
+ 311341 [dblack rubyp] hash = Hash.new {|h,k| h[k] = Hash.new(&h.default_proc) }
  311342 [dblack rubyp] I should add: the same-variable-name version works in Ruby 1.9.

^ How to get Windows user name?
311331 [freezingsmil] I am trying to detect the user who's currently login the Windows system.
+ 311334 [s.korteling ] require 'win32ole'
+ 311339 [luislavena g] NT/2K/2K3/Vista systems have a environment variable for interactive
| 311403 [freezingsmil] Thanks all for the help.  It's working now. Thanks!
+ 311399 [djberg96 gma] require 'etc'

^ Problem running Watir script from cruise control
311333 [jtucker xoje] I have a watir script to test a MS Sharepoint web site that is being run
311336 [bret pettich] AutoIt needs to have access to the desktop. Typically cruise control is run
311338 [jtucker xoje] I had my cruise control service running as SYSTEM with the check box
311408 [jtucker xoje] Running cruise control as a service (with or without a user account) or

^ vector graphics library with pan and zoom
311335 [wpdster gmai] I'm not trying to open a debate about which GUI library is the best.
+ 311355 [vjoel path.b] TkCanvas is very good for that.
| 311371 [wpdster gmai] Thanks.
| + 311395 [AEtzold gmx.] Dear Patrick,
| | 311397 [wpdster gmai] Thank you.  I'll take a look at that.
| | 311442 [AEtzold gmx.] Dear Patrick,
| | 311444 [AEtzold gmx.] Best regards,
| + 311593 [vjoel path.b] I've never tried using it directly from MATLAB, as opposed to simulink.
|   311604 [wpdster gmai] Thanks for the tip.  However, I'm not planning on interfacing Tkar to
+ 311621 [charles.nutt] Batik in JRuby?

^ Month, Day etc. names in other languages other than English
311343 [diego heyboy] I was wondering if it was possible to internationalize the constant
311345 [s.korteling ] If it is a ruby issue, you can override the constants defined in the

^ Use of dup to remove references
311348 [p.brian.ross] I am new to ruby and looking for a brief explanation on why a code sample
+ 311351 [patrickli_20] Ruby treats all variables as references to an object.
+ 311352 [botpena gmai] # def wipe_from( sentence )
| 311353 [p.brian.ross] Thanks so much for the help. What has been confusing is that the object
| 311356 [patrickli_20] Mmm, there's only two types of operations in Ruby. Assignment, and
+ 311364 [botp delmont] # def wipe_from( sentence )

^ Best way to create a helper method.
311349 [patrickli_20] What would you guys say is the best way of creating a helper method?
311376 [phlip2005 gm] Can you put helperMethod inside MyModule, and make it private? I don't know if
311380 [patrickli_20] module MyModule
+ 311383 [phlip2005 gm] protected ?
+ 311387 [phlip2005 gm] Private methods are not a form of code security. Even if you made this method

^ rush wish list musings
311357 [rogerpack200] Amen to the lazy part!  Ruby in general seem to encourages this weakness

^ Wig-Wug Simulator
311358 [james graypr] I have started a Wig-Wug (http://therubyist.com/homework/wig-wug/)
+ 311400 [cmshea gmail] ster
+ 311401 [cmshea gmail] ster
  311428 [james graypr] Interesting.  Is this a patch to Map#[]?  I wouldn't think it would be
  311439 [cmshea gmail] /master
  311443 [james graypr] I think you are exactly right.  I've committed the fix.  Thanks!

^ Please remove me from the mailing list.
311363 [ashutosh.alc] I do not want to receive any further emails from the ruby-talk group. Can
311379 [cyclewood_lt] To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@=
311396 [ninja slapha] Well, actually, this is the Ruby-Talk list, so you would want to send some

^ autoload with a block?
311365 [ninja slapha] I've just discovered Ruby's autoload feature. It looks to imply something like
311603 [nobu ruby-la] I don't think it makes things simpler, but it sounds

^ Segmentation fault when running Rails on Windows Server 2008
311367 [arrixzhou gm] I am trying to run Ruby on Rails 2.1 with Webrick on Windows Server 2008.

^ Re: Second #ruby-pro gathering - reminder
311369 [apeiros gmx.] Just a small reminder, today in 11h (23.00 UTC) the #ruby-pro gathering

^ FTP error
311372 [paulo.junque] I'm new to ruby and writing a small ftp program to list some files.
311375 [cohen.jeff g] Can you get to that address with any other FTP client (IE7, FileZilla,
311415 [paulo.junque] Yes, I can get there using Firefox, Filezilla, etc.
311840 [paulo.junque] require 'net/ftp'
311873 [paulo.junque] ave

^ rbgccxml / rbplusplus gem dependency on hpricot question
311377 [AEtzold gmx.] Dear all,
311393 [ninja slapha] runtime error saying that
311434 [shawn42 gmai] The maintainer of rbgccxml is on vacation until next week.  Feel free to
311440 [AEtzold gmx.] Thanks for the info. I'll do that.
311695 [jameskilton ] Passion!
311720 [AEtzold gmx.] Dear Jason,

^ About RAILS
311378 [public2 japi] class Personne < ActiveRecord::Migration
311382 [phlip2005 gm] This forum is only qualified to discuss Ruby, the language behind Rails, and
311384 [public2 japi] Tx philip, I will go to the google forum.
311385 [phlip2005 gm] I prefer the output of script/generate model, because it gets so much ready for
311386 [public2 japi] Thank you for the generate model command, I will try it to see the result.

^ [QUIZ] Not So Random (#173)
311390 [matthew.moss] -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+ 311404 [frederick.ch] Great to have the quiz back! This one looks fun.
+ 311405 [brabuhr gmai] #!/usr/bin/env ruby
+ 311563 [frederick.ch] A crude solution: we remember the seed and how many times we've been
+ 311566 [brabuhr gmai] Since a single Ruby process only has one PRNG, slave off an extra
| + 311576 [billk cts.co] Nifty.  I hadn't seen the slave library before.  Is it a wrapper
| | + 311579 [brabuhr gmai] ...
| | + 311598 [billk cts.co] Here's a "cheater" solution.  The sequences _are_ reproducible
| + 311588 [uzimonkey gm] This is probably the cleanest solution you can get without implementing
+ 311587 [uzimonkey gm] Without knowing how the PRNG is implemented (even if in C or Ruby), this

^ Need to get average of specific fields in MySQL
311391 [contact thir] My Active Record query works fine and pull all records where
311394 [phlip2005 gm] According to the very first cite at...

^ Re: Ruby 1.8.7 slower than 1.8.6?
311398 [nate inkling] I haven't found the bottleneck myself but yes, moving to ruby 1.8.7 has

^ Ruby: Boolean Challenge
311406 [oga_emmanuel] # Paste url: http://gist.github.com/5603
+ 311407 [oga_emmanuel] puts (OddRecognizer.new.knows?(1) or OddRecognizer.new.knows?(3)) ?
| 311409 [patrickli_20] heh...
| 311411 [oga_emmanuel] The problem is that, if I extend NilClass, I wont be able to use new
| 311418 [gthiesfeld g] I'm not sure I understand what you're looking for, but this passes your specs.
| 311421 [oga_emmanuel] Yes I had a couple of typos, I think I have fixed them now. I'm not sure
| 311422 [patrickli_20] Hey,
| 311425 [oga_emmanuel] that sure works, the problem is that nil is extended with a or method
| 311426 [patrickli_20] Lol. Mmm i honestly didn't see that one coming.
+ 311413 [dblack rubyp] Do you mean EvenRecognizer?
| 311420 [oga_emmanuel] True, I confused the two terms (even, odd). I tend to make that mistake,
+ 311417 [adam.shelly ] Maybe I'm dense, but if the recognizer knows 2 but not 3 ... doesn't

^ South Carolina Ruby Conference -- Call for Proposals
311423 [jason.dew gm] I have the pleasure of announcing the first annual South Carolina Ruby
311424 [ldenman gmai] Great! I'm up in North Carolina, so Columbia is only about a two hour

^ BDD and TDD - What are they for?
311427 [cdj goh-inc.] charset="us-ascii"
+ 311429 [avdi avdi.or] BDD is simply an altered vocabulary for TDD.  Vocabulary is important;
+ 311430 [brabuhr gmai] ...
+ 311431 [shadowfirebi] I see your point.  I'm struggling with TDD concepts myself.  But I
| 311435 [avdi avdi.or] After doing TDD/BDD for, oh, five years or so, I'm convinced that the
+ 311438 [phlip2005 gm] Shine the "Phlip" symbol on the underside of the nearest cloud deck!
| + 311478 [dblack rubyp] I wouldn't call it literate programming in the Knuthian sense, though.
| | + 311485 [eleanor game] Many programmers believe they're bad at writing essays, and rather
| | | + 311487 [dblack rubyp] The essay-writing point, though, isn't at odds with writing tests;
| | | + 311510 [ninja slapha] I would say that such a project is very much in need of some requirements,
| | |   311513 [phlip2005 gm] He ran a survey comparing projects that called themselves "Agile" to those
| | + 311493 [phlip2005 gm] If Knuth only intended to invent markup languages in his spare time, and did not
| | | + 311495 [dblack rubyp] If you want to do what Knuth created it for, it is, or can be, very
| | | + 311500 [eleanor game] Which of course presupposes there is a clear and direct transformation
| | |   + 311501 [phlip2005 gm] That's why you don't T- or BDD in a vacuum. Your "goal donor" should review your
| | |   + 311655 [rphillips en] On Aug 16, 11:27=A0am, Eleanor McHugh <elea...@games-with-brains.com>
| | |     + 311680 [eleanor game] Very true.
| | |     | 311685 [avdi avdi.or] I think you may be conflating two different scenarios.  There's the
| | |     | 311782 [rphillips en] ort
| | |     | + 311798 [avdi avdi.or] I think you missed my point.  BDD is equally applicable to both
| | |     | + 311915 [ninja slapha] Yes, there is. But it's not a difference in testing methodology.
| | |     + 311684 [phlip2005 gm] Tx I am so passing that one to the XP mailing list!
| | |     | 311703 [robert.dober] Why be offended, our planet might be better off with faster horses, I
| | |     | 311721 [cdj goh-inc.] Thanks for the great replies. I'm attempting to learn BDD through rSpec
| | |     | + 311723 [avdi avdi.or] Peepcode's pretty awesome, I'd say go with that :-)
| | |     | + 311754 [phlip2005 gm] Yes - learn TDD, because that's what most of the tutorials will cover. And
| | |     + 311912 [ninja slapha] That's actually a really good analogy -- but you see, Ford's leap wasn't
| | |       311968 [phlip2005 gm] The car industry also did it incrementally. The original "horseless carriages"
| | |       312022 [lister pikkl] TDD seems badly suited to *really* rapid prototyping.
| | |       + 312028 [avdi avdi.or] You mean "Unit Tests", right?  The term "tests" encompasses manual
| | |       | 312042 [lister pikkl] well, i guess you could say looking at things in a browser is part of
| | |       | 312044 [avdi avdi.or] I don't have a problem with doing 24 hours worth of exploratory coding
| | |       + 312031 [gregory.t.br] I understand the sentiment, but if you feel the need to write
| | |       + 312096 [ninja slapha] I thought so, too. And I got quite a lot done, very fast, with this hobby
| | |         312099 [phlip2005 gm] Confer "Architectural Spike". That means a prototype where your colleagues are
| | |         312103 [ninja slapha] Well, more than that, my point was that the longer you wait, the harder it's
| | + 311506 [ninja slapha] Well, TDD and BDD seem very much against the Knuth style. After all...
| |   311508 [dblack rubyp] It was: "Beware of bugs in the above code; I have only proved it
| + 311681 [robert.dober] Some believe that no editing at all shall be done other than making a
+ 311458 [ninja slapha] BDD is a philosophy and a vocabulary for talking about TDD. They are not
| 311461 [phlip2005 gm] BDD is "customer facing". It's _supposed_ to be about writing the tests in terms
+ 311479 [dblack rubyp] I wouldn't say that it makes it easy for non-programmers to program.

^ im new... so can i have some help
311436 [gizabo yahoo] im new to ruby...... and i need some help!
+ 311437 [damnbigman g] Is this a homework assignment?  while num != 000 is not going to do what you
| 311446 [gizabo yahoo] array = []
| + 311447 [gizabo yahoo] nvm i relized i didnt add the "puts"
| | 311448 [damnbigman g] If you want the array data as a string (i.e. one line) you can use the join
| | 311451 [gizabo yahoo] ok, so here is my code
| | 311471 [nosp m.inval] puts array.inject {|sum,n| sum+n}
| + 311454 [phlip2005 gm] In general...
+ 311441 [AEtzold gmx.] Dear Daniel.

^ CGI Session Synchronization
311445 [patrickli_20] I finally tracked down a bug that's been bothering me, and I'm at a
311463 [oga_emmanuel] moment, but if you have multiple ruby processes that you need to
311467 [patrickli_20] Thanks for the help. It seems to be exactly what I need. I'm gonna need
threads.html
top