234804-236863 subjects 235196-243196

^ Re: Number Spiral (#109)
234950 [w_a_x_man ya] This is more obfuscated than
235111 [SimonKroeger] depends on your line end character(s) :)
235158 [w_a_x_man ya] Only if you're under windoze and you neglect to remove

^ Minor Change Proposal for Classe 'UnboundMethod'
234961 [wonado donne] Minor Change Proposal for Classe 'UnboundMethod'

^ Declaring instance variables dynamically
234962 [aas11 duke.e] Coming from PHP I want to take a class say,
+ 234965 [ryand-ruby z] ri OpenStruct
| 234971 [tim.pease gm] To elucidate a little more, OpenStruct is a great class that does what
+ 234978 [gwtmp01 mac.] It is a bit hard to sort out what you are really after because your
+ 234988 [aas11 duke.e] Thanks for the feedback.  I am in fact trying to do what openstrtuct
  + 234999 [gwtmp01 mac.] Well, it is certainly possible to roll your own class that
  | 235002 [james graypr] It's called OpenStruct and it is included in Ruby's standard library.
  | 235005 [gwtmp01 mac.] The original poster wanted the setters and getters mapped to instance
  + 235028 [ssmoot gmail] => nil

^ what's wrong with this snippet ...
234974 [koflerjim ma] I've just stumbled over this orphaned snippet on my hard drive that
234977 [vincent.four] This creates an instance method and not a class method. Consider using
234980 [koflerjim ma] Thanks, Vince!

^ TrueClass === TrueClass
234982 [lists mihela] TrueClass === TrueClass # false
234987 [vincent.four] === returns true with one class if you 'compare' it to an instance of
+ 234993 [dchelimsky g] Ah - so Object === Object returns true because the second Object is an
| 235121 [robert.dober] If you are looking for a language in which not everything is an object,
| 235152 [dchelimsky g] ...
| 235231 [robert.dober] I was not sure, but I thought that if  you really did not realize  what was
+ 235001 [lists mihela] Thanx Vince, just what I looked for.

^ Re: Ruby 1.8.4
234983 [amir.j26 gma] I'm having the same problem mentioned compiling the newest release of

^ Negative Float conversion to Fixnum
234990 [public gmail] I'm sure this has been hashed out somewhere on the list before, but
+ 234995 [wonado donne] irb(main):001:0> 3930-39.30*100
+ 235011 [wonado donne] If you always expect a result for which "x * 100" is a number without a

^ Conventions for project organization?
234996 [gregory.t.br] I'm going to writing a short blog entry for the O'Reilly blog about
+ 235000 [james graypr] Probably want a better explanation there.
| 235067 [gregory.t.br] Right, that's a good point.   Often i've organized code so that ts_all
| 235093 [drbrain segm] I never organize into "suites".  All my tests are capable of running
| 235125 [gregory.t.br] Yeah, this is the case for me too since I use autotest.  However, Eric
| 235127 [gregory.t.br] By the way, if it wasn't clear, in some of my projects I use the ts_*
+ 235070 [ snk gna.org] These patterns seem to have less effect on BDD (with rSpec), where there
| 235077 [gregory.t.br] This is good advice, especially for use with rspec.  I'm mostly
+ 235090 [alex blackke] It may be a bad habit I've picked up from Rails, but for a lot of my

^ Re: TrueClass/FalseClass vs. Boolean
235004 [gwtmp01 mac.] interesting observation
235010 [collinsj sea] The reason, IIRC, was the lack of meaning for true > false, false >

^ Regexp.newbie?
235006 [bitdoger2 ya] i've got a whole file to scan...but can't get neatly get the last
235014 [wonado donne] Hope there is one solution O.K. for you.
235452 [bitdoger2 ya] ...wow...thanx..a whole lot..dave

^ Looking for Game Dev IRC channels/mailing lists/forums
235008 [h4lfl1ng inb] I recently started using Gosu with ruby, And I'm working on a 1:1 isometric

^ I don't get rspec
235013 [dorrenchen g] I just discovered rspec today, reading the example and tutorials,
+ 235021 [james.britt ] There is a  good Google video about rspec and Behavior Driven
| 235035 [dorrenchen g] I still fail to see the value added by rSpec. In the video, one main
| + 235039 [ssmoot gmail] It's not. If you're doing TDD right, then BDD is just what you're doing
| | + 235058 [james graypr] Yes.  This has always bothered me about the zentest tool.  I love
| | | 235787 [joevandyk gm] What's wrong with zentest, specifically?
| | | 235789 [james graypr] You will probably understand better by watching the movie, but
| | | 235793 [drbrain segm] Which will match up 1:1 if you factor your code well.
| | | + 235794 [pergesu gmai] The point is that you shouldn't try to shoehorn your tests into this
| | | | 235798 [drbrain segm] Shoehorning is design smell, so I refactor.  The 1:1 falls out
| | | | 235806 [twifkak comc] Each one of these test methods invokes multiple methods on Stack. You're
| | | + 235813 [dchelimsky g] Eric,
| | |   235837 [drbrain segm] I don't really care if people use zentest or autotest or unit_diff or
| | |   235866 [dchelimsky g] Hear, hear!
| | + 235071 [Gennady.Byst] charset="iso-8859-1"
| + 235042 [lionel-subsc] assert_equal is ambiguous and as said in the video, many mismatch the
| | 235051 [dorrenchen g] Each context in rSpec is just a new testcase. For example,
| + 235380 [dchelimsky g] You may not now, but if you have to maintain your app over a long
+ 235083 [pergesu gmai] First of all, it's just a simple example for people brand new to
+ 235377 [dchelimsky g] bias that might bring.
+ 235492 [chneukirchen] I don't know about you, but since I use test/spec[1] (my Test::Unit
+ 235520 [nightphotos ] I don't look at this as "add a test to the spec/add a trivial fix to
  + 235766 [jim weirichh] It's easy for folk to dismiss RSpec by saying that it's just semantics
  + 235773 [jim weirichh] When I do TDD, I approach it with a Jeckle and Hyde perspective.  When I
    235782 [dchelimsky g] With me it's more like Abbott and Costello!

^ Float to Fixnum (was: Negative Float conversion to Fixnum)
235015 [aaraines gma] When I think of rounding error, I think of lost precision due to
+ 235016 [ara.t.howard] no.  check out
+ 235036 [gwtmp01 mac.] Because 39.30 is a base 10 representation of a number and there
+ 235068 [botp delmont] #--------------------------------------
+ 235079 [w_a_x_man ya] Almost all programming languages use binary floating point, so 0.30

^ Bug in Ruby with adding strings?
235017 [tester.paul ] I just found what looks like a bug in Ruby 184-20. (I haven't tried it
235018 [dflanagan gm] I suspect that having no space after the + makes Ruby think it is a
235088 [shortcutter ] I think it's trying to parse as
235146 [tester.paul ] I originally came across this when I was trying to assign something
+ 235234 [shortcutter ] irb(main):001:0> a = 1,2,3
| 235494 [tester.paul ] Thanks for the feedback Robert.  I didn't know Ruby could do that.
+ 235500 [gregory.t.br] it may be parsing as 'foo' + x.to_s(+'bar') since to_s can sometimes
  235505 [wonado donne] This makes sense. When translating the infix notation to method usage (don't

^ Acts_as_taggable (the gem) woes (solved)
235019 [jean.helou g] I had to battle quite a bit to find how to load acts_as_taggable
235027 [jean.helou g] Dammit!

^ FuseFS-version of cheat
235023 [judofyr gmai] I don't know if it's done before, but today I created a nice script

^ the elusive rubyweaver dreamweaver extension
235024 [mcyi2mr3 goo] Does anyone know where i can get hold of this much vaunted rubyweaver
235026 [mcyi2mr3 goo] found it!

^ YAML::Syck fault tolerance
235029 [phlip2005 NO] I need to read a block of YAML and recover gracefully if it fails. The
235237 [jan.svitok g] Not tested idea: If the exception contains error position, try cutting
235279 [phlipcpp yah] That's what I hacked-in shortly after posting. The actual bug was something

^ [Offtopic] Learning Japanese
235031 [gerardo.sant] Thanks to Ruby I've learned a lot recently about programming languages
+ 235038 [greg.pederso] I don't know Japanese, only a couple of expressions that I learned when I
| 235049 [james graypr] I use the Rosetta Stone, for Japanese, and love it.
| 235054 [greg.pederso] One more thing to add, find a native Japanese speaker.  My wife is Turkish
+ 235044 [ruby.hardwar] What would you recommend?
+ 235069 [h4lfl1ng inb] Some good resources are podcasts. Here are some of the things I use.
+ 235332 [gerardo.sant] Thank you everybody for your help. Hope to be able to thank you again
+ 235381 [rubyzbibd ub] < Snip >
+ 235413 [threeeyedfis] Good day!

^ Errors in mysql + ruby connection
235043 [acmw diamond] After getting my installation worked out, I'm having an error in my test

^ "postgres" module needs work, author gone, patch included
235046 [ruby j-davis] The "postgres" module is old and it's been a long time since there's
+ 235057 [djberg96 gma] I talked to Dave Lee a while back and he indicated to me that a new
| 235075 [ruby j-davis] Please let me know if you get more information from Dave Lee.
+ 235061 [tom infoethe] I use it with PostgreSQL 8.2 and I've been pretty happy with it.
+ 235156 [jason indeli] I use postgres on openbsd and netbsd without incident, but recently got
  235170 [ruby j-davis] (1) Test my patch against the snapshot version available from the
  235178 [jason indeli] project, and offers a snapshot dated 2005.12.21.
  235188 [jason indeli] Find attatched a diff that applies cleanly to the 2006.04.06 source.

^ Re: "postgres" module needs work, author gone, patch include
235047 [shevegen lin] Actually I tried to use it but somehow I didnt even finished compiling.
235073 [ruby j-davis] Ouch, you avoided postgresql because the ruby driver was that bad?
235187 [kevwil gmail] I use the postgres driver everywhere - Windows, Linux, Mac, production,
235195 [jason indeli] Ha. I've never come across that before, but indeed that is what happened

^ ERROR: Failed to build gem native extension
235048 [greg.pederso] Can anyone tell this noob what I've done wrong?  I tried to install rmagick,
235050 [TimHunter nc] To install RMagick on Windows, use the rmagick-win32 gem. See
235052 [greg.pederso] OK thanks, however, I'm a little confused.  I used gem install -r command to
235060 [TimHunter nc] Partly. The "rmagick" gem includes the source code for RMagick. It

^ Looking for Rails/OWL,RDF,RDFS speaker
235053 [kathryn2006 ] Anybody out there interested in speaking/ demonstrating your work with Rails and OWL/RDF or RDFS? We're trying to get a Rails day inserted into an existing upcoming local conference, but we can only do it if we can find sufficient support out there,  ASAP. Interested? Contact me over the weekend - we've got to show some possibilities by Monday.

^ Re: Learning Japanese
235063 [ snk gna.org] I just watched lots and lots of Japanese anime with English subtitles.
235632 [dan-ml dan42] I did that too but now all my Japanese friends tell me I speak like an

^ Call for developers: Alexandria project
235074 [tristil gmai] The Alexandria project (http://alexandria.rubyforge.org/), a project

^ flat file database for ruby?
235078 [beingthexemp] Does anyone know of any flat file database implementations for Ruby?
+ 235094 [shortcutter ] There is a ton of options, at least Marshal, Yaml, PStore, CSV.  What
| 235097 [eweaver.spam] Don't forget KirbyBase.
+ 235098 [hhausman gma] The same author started another project with similar functionality,
  235107 [khaines enig] Mongoose.

^ Re: stub implementations in TDD (was: I don't get rspec)
235080 [twifkak comc] It seems to be part of Kent Beck's definition of TDD. AFAICT, he excuses
235376 [dchelimsky g] There's a point that Kent makes I'm not seeing in your description.

^ problem in win32-service ... or ... what ?
235081 [rajib.chakra] I am trying to build an windows service ( WIN XP SP-2) using the
235103 [djberg96 gma] Is there anything in the log?
235190 [rajib.chakra] Thanks for your reply
235193 [djberg96 gma] You either install yahootickerpull.rb in ruby sitelibdir, or you modify
235416 [rajib.chakra] Thanks it is working perfectly.

^ attr_accessor weirdness, or something
235084 [CBlair1986 g] currently using attr_accessor to set up a list of variables that are
+ 235085 [mvette13 gma] def update_timer
+ 235086 [robert.dober] you are assigning to a local variable, as you found out  yourself you can
+ 235087 [w_a_x_man ya] @timer is an instance variable; timer isn't.
+ 235135 [gavin refine] a) Call the method named "timer=" and pass it the value of Time.now, or
  235625 [CBlair1986 g] Thank you, Phrogz! Thinking on it now, it's obvious. Must've had a late

^ conditional value in hash array ?
235109 [josselin wan] hos to have a conditional value  ?  :  :category => domain unless domain.nil?
+ 235113 [wonado donne] It doesn't make sense in this situation, because "domain unless domain.nil?"
| 235115 [josselin wan] thanks Wolfgang
| 235119 [shortcutter ] What exactly are you trying to achieve?  Is it maybe rather something
| 235129 [josselin wan] thanks that's better... forgot the key nme ..
+ 235162 [Gennady.Byst] charset="iso-8859-1"

^ [ANN] ruby-oci8 1.0.0-rc1
235117 [kubo jiubao.] ruby-oci8 1.0.0-rc1 is released. This is a Oracle module using OCI8 API.

^ Proper way to either create or append to an array?
235128 [adam usa.net] Let's say I want to either create a new named array or append to that
+ 235130 [vincent.four] @foo[:bar] ||= []
+ 235133 [gavin refine] ( @foo[:bar] ||= [] ) << "snafu"
+ 235136 [shortcutter ] Since you're using a Hash the block constructor is the most elegant
  235138 [gavin refine] To be clear for those unfamiliar with this: any time you ask for the
  + 235143 [Rob AgileCon] That's only because you're not checking for the presence of a key
  | 235154 [w_a_x_man ya] irb(main):006:0> ['foo','bar'].include? 'bar'
  + 235157 [w_a_x_man ya] What if foo[:bar] has been assigned a value of false?

^ Ruby installation winders PATH issue
235134 [whackencrack] home ed laptop. Everything works ok if I call ruby directly
+ 235236 [ml.chibbs gm] It looks like you path is starting with a CR or LF character. This would
+ 235247 [djberg96 gma] By any chance are you using a command shell that was open before you

^ FreeRIDE - Way too many warnings
235141 [grauenwolf g] Whenever I start FreeRIDE I get a ton of warnings. It takes a long time
235145 [matt kettlew] 1) Don't post the thousands of repeated errors to the list
+ 235159 [grauenwolf g] You mind telling me who the fx ruby people are and how to contact them?
| 235160 [matt kettlew] I must be in a good mood.  Didn't even get laid last night....
| + 235163 [lyle.johnson] What is this "Google," and why have you been keeping it a secret from
| + 235174 [grauenwolf g] Gee thanks for being ever so helpful. It was so nice of you to almost
|   235175 [matt kettlew] Yes, but I saved you from having to type "www.google.com" and then find
+ 235172 [grauenwolf g] They say its Ruby's fault for putting the bug in v1.8.5 and FreeRide's
  235173 [matt kettlew] 1. Fix the bug in ruby and submit patch
  235181 [grauenwolf g] Let me get this straight. You are telling a newbie with one day of
  235184 [TimHunter nc] Please accept my apologies, on behalf of the Ruby community, for your
  + 235186 [grauenwolf g] Thanks, I really appreciate that. It is so hard to find ones way around
  | 235255 [TimHunter nc] To the best of my knowledge all the components in the 1.8.5 one-click
  + 235191 [matt kettlew] There's no need to apologize on anyone's behalf (I'm certainly not
    + 235198 [grauenwolf g] Tell me something, why do you bother?
    | + 235468 [johan.veenst] The answer to that is quite simple, the only help you needed was knowing who
    | | 235474 [r.mark.volkm] We really shouldn't get into long threads discussing who was polite
    | | + 235478 [ml.chibbs gm] +1 ... again!
    | | + 235479 [ramalho gmai] Most car accidents involving two vehicles are the fault of both drivers.
    | |   235526 [grauenwolf g] Luciano, do you have any idea how rude and arrogant you are being right
    | |   235529 [olsonas gmai] Here's an answer that might actually help you out :)
    | |   235552 [Grauenwolf g] I appreciate your help, and I'm sure I'll forget this incident in short
    | |   235558 [gwtmp01 mac.] The one-click installer isn't the 'main distribution' for Ruby. It
    | |   235571 [Grauenwolf g] Then Ruby has a serious perception issue it needs to be addressed. The
    | |   235618 [gwtmp01 mac.] I think you are imagining an organization that doesn't exist with
    | + 235629 [ttmrichter g] How else is he supposed to prove that his Pretendy-Fun-Time e-penis is
    + 235232 [bwilli maili] I pity those that have forgotten (or never knew) the difference between
    + 235240 [gsinclair gm] I offer my condolences too, Johnathan.  Statistically, you're very
      235477 [ml.chibbs gm] +1

^ fxri - Way too many warnings
235142 [grauenwolf g] Whenever I start fxri I get way too many warnings, easily in the

^ Net SFTP / Deprec
235161 [pgattphoto g] I am trying to get deprec gem to work on windows, and I'm told by the
236166 [robin.curry ] I'm stuck on this same issue. Anybody had luck getting this to work, or

^ [ANN] ograph 0.0.1 Released
235171 [aaron_patter] ograph version 0.0.1 has been released!
235385 [rubyzbibd ub] This is really cool!  I have a long time love hate relationship with

^ Implementing a "calcuator" feature
235176 [sonny.chee g] Hey Guys,
235177 [jtregunna bl] Why not just write a parser for algebraic expressions?

^ Hash pairs at?
235180 [transfire gm] h = { :a=>1, :b=>2, :c=>3 }
+ 235182 [cdcarter gma] Check out Day 11
+ 235185 [w_a_x_man ya] h = { :a,1, :b,2, :c,3 }
+ 235224 [vjoel path.b] h = { :a=>1, :b=>2, :c=>3 }
+ 235228 [robert.dober] I will try to answer your question,  but still it will  be more questions :(
| 235229 [robert.dober] STOP PRESS
+ 235244 [GGarramuno a] No.
| + 235246 [GGarramuno a] That being said, Hash DOES seem to be buggy and missing a proper
| | 235249 [dblack wobbl] It's not incorrect or buggy; that's the way Enumerable#find_all works.
| | 235299 [GGarramuno a] Sorry, David, but I disagree.  It may not be buggy (as the bugginess is
| | 235301 [vjoel path.b] This does look a bit odd...
| | 235322 [dblack wobbl] A bit.  The funny thing, though, is that it of course makes it
| | + 235326 [transfire gm] Avoiding net loss, how about going for gross gain. So how about "fixing
| | | 235461 [aledonne.lis] Maybe I'm late to the party, but instead of select_pair, I'd name the
| | | 235497 [vjoel path.b] It might be in facets, too.
| | | + 235514 [robert.dober] And I have to agree that it is not a bad name, I still favor pairs_at, but
| | | + 235515 [transfire gm] hmm... in Facets, Hash#slice is just an alias for Hash#values_at.
| | | + 235658 [flori nixe.p] module HashInclusion
| | + 235667 [kbloom gmail] No it wouldn't because you could just call .to_a on the returned hash to
| |   235706 [transfire gm] that's a good point.
| + 235250 [robert.dober] Assuming this is a frequently used idiom you'd  not prefer to see
+ 235260 [gavin refine] #  h = { :a=>'a', :b=>'b', :c=>'c' }
  235259 [gavin refine] Oh, and yes: I'd like a method like this in the core, also. Preferably
  235265 [dblack wobbl] I'll put in a plug here for flattenx, which lets you flatten by any
  + 235272 [robert.dober] I'd rather see it in the core
  | 235293 [transfire gm] I agree. I think #paris_at is easier to quicky comprehend.
  | 235295 [robert.dober] syntactic sugar kind of spoils us, ( I remember how happy I was about C++ in
  + 235318 [w_a_x_man ya] class Array
    235320 [dblack wobbl] That's the idea, though flattenx lets you do flatten_by(n) and also is
    235342 [gwtmp01 mac.] I didn't see anyone else mention that in Ruby 1.9...
    235345 [dblack wobbl] Cool!  I actually didn't know that had made it into 1.9.  I look