180084-205107

179944-183481 subjects 180281-248069

newbie trouble with RubyGems
180084 [donavonj@co ] This is a newbie question.  I used OneClick to install Ruby onto my
180108 [jim@we ri hh] If you are behind a firewall and need an http proxy, make sure that you
180156 [david@va ln ] Is local caching of the gem index in the works by any chance?
180158 [jim@we ri hh] The gem index is already locally cached.  The problem is that the index

why does this freeze not work?
180087 [konsu@ho ma ] i need to set an instance variable in my object once and make sure this
+ 180090 [matz@ru y- a] No.  You have frozen a Fixnum object 1, not @id.  Instance variables
+ 180092 [rcoder@gm il] Freezing affects the object on which you call the 'freeze' method, not
  180094 [konsu@ho ma ] thank you. i understand.
  + 180098 [david@va ln ] The same person could also reopen your class, replace #initialize_copy, and
  + 180130 [bob.news@gm ] In your case simply change it to attr_reader.  That way the field will be

rails - saving a 1 to many relationship in db
180099 [doug.baker@f] ...
180107 [interfecus@g] def save

XML Builder - why?
180112 [eastcoastcod] I see that a lot of Rubyists like using XML Builder to generate XML.
+ 180115 [james_b@ne r] Uses plain Ruby.  No '<' '>" thingies. Automagic encoding of special
+ 180146 [ruby-talk@ba] I like that the ruby parser checks the well-formedness of my markup for
+ 180147 [keith@or il ] Well, I don't really use Builder for HTML, but generate quite a lot of
+ 180191 [mental@ry ia] Perhaps because it's straight Ruby code -- you can apply the same
  180196 [lists@tu ni ] Personally I use the two in different situations. Generally I prefer to

[ANN] Mongrel 0.3.4 -- Win32 Gems/Better CGIWrapper
180114 [zedshaw@ze s] Today's Mongrel is the first release to sport spiffy pre-built win32 gems.

Re: Mongrel 0.3.4 -- Win32 Gems/Better CGIWrapper
180118 [drunkvoodoo@] Great work!
+ 180128 [rmt512@gm il] thanks for the new version!
| + 180144 [zedshaw@ze s] Let me try with an AWS setup.  It might be that the way CGI tries to set the
| + 180348 [zedshaw@ze s] Comments below...
+ 180138 [zedshaw@ze s] Version 1.8.4 of Ruby has the readpartial function for Socket (and other
  180374 [james_b@ne r] I just tried the Win32 gem, but it complains that I do not have
  180409 [david@va ln ] Yay for msvcrt version lossage *mutter*. My favourite was .NET 2.0 cl linking

Creating objects without knowing their names
180121 [paul.p.carey] I'd like to load an arbitary number of Ruby files from a directory and
180124 [vjoel@pa h. ] You probably know this already, but for the benefit of bystanders: there
180132 [bob.news@gm ] - Make sure all classes on those files inherit a base class which
180141 [m4rkusha@gm ] Or you can compare the classes you had before loading to classes you
+ 180169 [paul.p.carey] All very helpful answers. Many thanks indeed.
+ 180195 [vjoel@pa h. ] Unreliable if your "script" files also require libraries. You still have

[ANN] ParseExcel 0.4.0 released
180125 [hannes.wyss@] transparently converts its contents to this.

File.exist? svn2rss.rb
180129 [Bil.Kleb@NA ] We're migrating from CVS to Subversion and I am looking
180181 [kou@co mi ng] tools/hook-scripts/commit-email.rb is what you looking
180207 [Bil.Kleb@NA ] I'll have another look at it, but I think it may be
+ 180212 [ruby-talk@wh] ...
+ 180357 [kou@co mi ng] ...

[RUBY ON RAILS] Executing an action of a component _within_ a component !
180131 [ben-jamin.ca] In order to design a custom autocomplete field component, i need to be able,
180172 [steve@wa ts ] Thanks for your message about Ruby on Rails.  I think you'll find
180267 [ben-jamin.ca] OK, thank you Steve :-)

Ruby Garden Spam
180135 [robert.mcgov] Been a while since I've been to Ruby Garden and just removed spam from
180148 [jim@we ri hh] Actually, this past week has been a slow week for spam.  Out of 731

Coroutines (Was: FasterGenerator (#66))
180136 [rossrt@ro co] Well, I've snapped a string on my guitar and my computer won't play MP3s
180149 [jim@we ri hh] I've come to believe that having a backup set of guitar strings is
180245 [rossrt@ro co] I've been lulled by living two minutes walk away from a well stocked

Windows shell commands
180137 [joergd@po ox] Is there a way to run windwos shell commands from Ruby?
+ 180140 [mail@ko fe n] `dir`
+ 180266 [musashi@ok g] This link

russian RUBY forum
180139 [codeby@gm il] forum for Ruby programmers on russian
180171 [mike@os n. r] ...
180175 [pavel.s.soko] cheers ;)

rubygems and Config::CONFIG
180142 [g_ogata@op u] I have two versions of ruby installed, rooted at different source
180173 [ara.t.howard] i have exactly the same issue here at work and i'm working with chad and jim to
180391 [g_ogata@op u] I think that might be addressing a different issue.  That lets you

Forking an .rb script (or multi-threading)
180145 [joergd@po ox] I am using rubyscript2exe on my rails app. tar2ubyscript uses an init.rb

1.8.4 broke my Rinda app
180150 [jim@cr ss ey] At the bottom of this email is a contrived example of something I was
+ 204949 [lists@na bl ] Jim -
+ 205107 [ksruby@gm il] Kent

Ruby TK window size question
180153 [htruax@st .c] ...
180162 [dperkins@fr ] You could try this to get the maximum screen size.

Newbie: how to dynamically add methods?
180170 [devlists-rub] The PickAxe doesn't seem to cover details of how to dynamically create
+ 180174 [wilsonb@gm i] class << self is usually used for things that are a bit beyond a basic
| 180192 [r.mark.volkm] I wonder if the stiff server is down now. That URL isn't working, but
| 180215 [devlists-rub] And how does class_eval and instance_eval play a role here?
| 180320 [evahlis@gm i] As far as I remember,
+ 180184 [dblack@wo bl] The "<< obj" notation takes you into the singleton class of obj, which
  180187 [cameron.mcbr] It also might be worth pointing out that if 'a' is a class, you'll be

ruby-dev summary 28274-28333
180176 [ksaito@ur nu] This is a summary of ruby-dev mailing list.

[SUMMARY] FasterGenerator (#66)
180177 [james@gr yp ] There were two kinds of solutions to this problem.  The first were Array-based
180188 [lukfugl@gm i] One important thing: I've since realized that this implementation of

Forum search is broken
180180 [skolgan@co .] In the search text field enter 'win32ole'. Click Search button.

Eclipse RDT preferences page not error
180190 [pmrobinsonuk] When I try to install the Ruby RDT (v7) for Eclipse 3.1.1 by

recontextualizing a block (looking for deep magic)
180202 [ptkwt@ar cn ] What I'm trying to do probably isn't possible, but maybe someone knows some
+ 180208 [shortcutter@] There is one way: you can use instance_eval with a block. This
| 180232 [ptkwt@ar cn ] Right, that's why instance_eval doesn't work for this case either.
| + 180240 [lukfugl@gm i] # body of define_behavior references 'count'
| | 180242 [lukfugl@gm i] (Responding to myself...)
| + 180274 [bob.news@gm ] And especially assigning to "count" would be useless.
| | 180326 [ptkwt@ar cn ] I'd rather just go ahead and use the '@'.
| + 180278 [pit@ca it in] Phil, I don't understand the usage of variables. When should they be
|   180328 [ptkwt@ar cn ] Well, it's a bit strange in the example above.  Really what I want is for it to
|   180851 [pit@ca it in] to understand why you can't use accessor methods for variables. Accessor
|   181302 [ptkwt@ar cn ] class AndGate < RHDL
|   181502 [pit@ca it in] This is a nice looking compromise.
|   181505 [ptkwt@ar cn ] Right.  I've considered that option, but for now I think it's better to make
|   181507 [pit@ca it in] class RHDL
|   181525 [ptkwt@ar cn ] Oh, I like that!  I think I'll give it a try.
+ 180210 [jim@fr ez .o] This is interesting. For a while you had me thinking the Proc.new {} should
| 180222 [ptkwt@ar cn ] Right. And 99% of the time that's what you want because they're closures.
+ 180246 [glen_ap@ya o] suggested this yet, I assume that it is not what you are looking for.

Rubuntu LiveCD I need vim/emacs configs!
180204 [ezmobius@gm ] Friends-
+ 180206 [alex.combas@] Awesome!I just use standard ruby-mode.el for emacs.
+ 180211 [badcherry@ma] I'm sorry I can't offer my ruby vimrc file.  I lost it some time ago and
+ 180214 [ruby-forum-r] I run a really minimal config for vim. I really need a sensible
+ 180217 [wilsonb@gm i] I'm mostly a vim noob, so I'm looking forward to hearing other
+ 180235 [lists@ha el ] Awesome idea.
| + 180238 [ruby-forum-r] # Works both with constants and strings (ri Hash vs ri 'Hash')
| | 180243 [ezmobius@gm ] Cool, I have a killer .irbrc already with some really nice stuff in
| + 180318 [chneukirchen] I have no trouble with MMM-mode here, this is the relevant part of my
+ 180350 [gregory.t.br] set nobackup
+ 180903 [jonbaer@gm i] Ive switched from emacs to the new RadRails IDE as it is pretty slick
| + 180914 [ezmobius@gm ] Jon-
| + 181013 [david@va ln ] sun-j2re from an unofficial Debian repository, 30 MB compressed, 90 MB
|   181043 [gregory.t.br] why not just use ubuntu's free-java-sdk which wraps around the GNUtools and acts as a replacement for sun's SDK.
|   181172 [david@va ln ] You don't need the SDK for eclipse, you need the JRE. It seems they got
|   181186 [botp@de mo t] On Behalf Of Pistos
+ 180964 [me_ncl@ho ma] <posted & mailed>
+ 181038 [pistosREMOVE] Well, I was about to toot my own horn, but it looks as though someone
| 181039 [pistosREMOVE] Posted via http://www.ruby-forum.com/.
+ 181105 [pfharlock@ya] The only must have change I always make is to include some commands at
  182082 [joesavona@gm] Just a thought - what about creating a VMware player appliance with all
  185813 [brandonhines] This topic has been dead for a few days...how's the project coming?
  185901 [ezmobius@gm ] ...
  + 185905 [gregory.t.br] Hehe. My quote! ;)
  + 185923 [mblondel@gm ] I would suggest "Ruby Live".
  + 186030 [brandonhines] Good to hear that the project is alive and kicking!
  | 186053 [gregory.t.br] Rubix
  | 186058 [gretlein@gm ] I was just about to say that the most obvious name for a Ruby-centric
  | 186118 [brandonhines] "RubyReady" rolls right of the tounge.  Slick.  ;0
  | 186622 [kris@al er a] Is Rubuntu ready yet?
  + 186697 [jed.hurt@gm ] Have you considered adding SVN and Mongrel to the Distro?
    + 186705 [gregory.t.br] I'd like to see this, too.
    + 186955 [ezmobius@gm ] Yes these will be included for sure along with some nice

Don't let this happen to Ruby, pleeeeease?
180213 [glenn.ruby@g] ...
+ 180216 [james_b@ne r] I tried reading it, but it went on and on, and seemed basically to
| 180471 [glenn.ruby@g] ...
| + 180478 [james_b@ne r] <elided amount='scads' />
| | 180482 [glenn.ruby@g] ...
| + 180556 [david@va ln ] Noone's stopping you.
|   180566 [glenn.ruby@g] ...
|   + 180568 [rossrt@ro co] <thinking aloud>
|   + 180595 [david@va ln ] You don't represent any significant majority of Ruby users on any platform in
|   | 180615 [glenn.ruby@g] ...
|   | + 180622 [james_b@ne r] Be careful what you wish for.
|   | + 180707 [groups@gr nd] Or you could ignore him. *I* certainly found comments like "It takes at
|   |   + 180724 [james_b@ne r] To be fair, though, most people have little trouble getting Ruby
|   |   | 181147 [groups@gr nd] I know. I cannot believe my setups differ in some fundamental manner
|   |   + 180730 [tanner.burso] ...
|   |   | 181152 [groups@gr nd] Well, the last time I had a problem with the Ruby core itself, I just
|   |   + 180746 [gregory.t.br] Ruby is not about being very good.  It's about world domination.
|   |   + 180781 [glenn.ruby@g] ...
|   + 180599 [james_b@ne r] I don't think your experiences are representative of that large a group,
+ 180226 [alex.combas@] I agree, road maps are nice. Are they necessary? I dont think so.
| + 180230 [james_b@ne r] Who should write the docs, if not the people writing the code?
| | 180239 [alex.combas@] Linus has not written any documentation. Ok, bad example.
| + 180279 [dblack@wo bl] I don't think turning something into a wiki is a way to clean it up --
|   180340 [alex.combas@] Well I hate being contradictory, but I think a wiki-faq would bea great idea. It would require a few key elements, but the goodnews is that all of key elements a wiki-faq would require are alreadyrequired by a regular faq.
+ 180229 [david@va ln ] Not really. Different language. I took a brief look at Groovy hoping it could
+ 180277 [anne@wj .h r] I think the key of this text is that groovy had a big community making

Rails application failed to start properly
180218 [michaelaugus] my settings
+ 180219 [michaelaugus] ok I del $1 option from .htaccess
+ 180221 [halostatue@g] -austin--Austin Ziegler * halostatue@gmail.com               * Alternate: austin@halostatue.ca
  180241 [michaelaugus] yeah never mind it works

no such file to load
180223 [michaelaugus] I need to load lib/geocoder
180297 [gdprasad@gm ] If you have installed geocoder via rubygems try
180410 [david@va ln ] Rails is only distributed via gems to my knowledge, so that should be already

dot-product operators and strides for linear algebra
180228 [jam5238-001@] ...
+ 180236 [logancapaldo] ...
| 180271 [jam5238-001@] ...
| 180293 [logancapaldo] ...
+ 180418 [znmeb@ce ma ] I guess a lot depends on what your performance requirements are. Octave

[BUG] cross-thread violation
180233 [rakaur@gm il] /usr/local/lib/ruby/1.8/monitor.rb:218: [BUG] cross-thread violation on
180248 [tsumeruby@ts] Heh, well okay. I received the exact same error on NetBSD 2.0.2 yesterday

Re: cross-thread violation
180251 [rakaur@gm il] Apparently this was caused when I did something along the lines of.
180258 [matz@ru y- a] It is possible to show us a script to reproduce your problem?
180268 [rakaur@gm il] require 'timeout'
180269 [rakaur@gm il] Sorry, I should clarify "kills it." It doesn't actually kill the

Mr. Guid (Ruby GUI Debugger)
180257 [ffsnoopy@gm ] Mr. Guid 0.1.4 is out!

SystemStackError when rb_define_module_function() * 3
180265 [skurapat@uc ] I'm getting a "test.rb:46: stack level too deep (SystemStackError)"

NWS-NOAA: accessing attributes with SOAP4R
180270 [hombre@gm il] I've successfully retrieved data from the NWS weather server with the
180272 [hszillat@gm ] Hey,
180339 [hombre@gm il] Thanks for the pointers. Unfortunately, it seems that I'm dealing with

Some error happends when I use SDL model..
180276 [zusocfc@gm i] I've get some problem..
180317 [david@va ln ] Well, first questions first - do you have SDL and the Ruby binding installed

[QUIZ] metakoans.rb (#67)
180280 [james@gr yp ] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 180283 [matthew.moss] Wow...  I feel somewhat enlighted just reading the quiz...
+ 180287 [GENIE@pr di ] Beautiful.  I have aggravating work to do today, and a billion
+ 180300 [ezmobius@gm ] This quiz is way cool.
| 180307 [james@gr yp ] I know.  When Ara originally sent it to me, I couldn't stop fiddling
+ 180309 [lerno@dr go ] A most excellent quiz.
| 180311 [ara.t.howard] they wouldn't be koans otherwise!  ;-)
| 180333 [sander.land@] Very interesting quiz :)
| 180336 [ara.t.howard] since only false and nil are failed predicates in ruby i find it quite uesful
+ 180334 [phurley@gm i] <pedantic>
| 180335 [ara.t.howard] i generally make a block the winner because it's bigger visually and harder to
| 180337 [phurley@gm i] Thanks ok last question (probalby), if remove_instance_variable is
| 180338 [ara.t.howard] good question.  my version does not - the default is set once only.  i would
| + 180341 [wilsonb@gm i] Awesome quiz. For a while there, I didn't think I was going to
| | 180345 [lukfugl@gm i] Amen, I ran into that too :)
| | 180346 [wilsonb@gm i] Just got mine down to 30.  I'm really looking forward to seeing the
| | + 180347 [lukfugl@gm i] Ah, but you see, the number 42 is intricately related to the Zen of
| | + 180349 [mental@ry ia] 23, with copious whitespace.
| | | 180392 [chneukirchen] 23 here too, I could go <20 easily, but this way it's nice to read.
| | | 180481 [ptkwt@ar cn ] I've got a very readable 18 lines.
| | + 180352 [ara.t.howard] 42 is the clear winner - regardless of who goes shorter ;-)
| |   180355 [wilsonb@gm i] I got it down to 15, but I can pad it to 42 with some haiku. Heh.
| |   180393 [sylvain.joye] I'm at 13
| |   + 180404 [phurley@gm i] I also have 13; however, two lines exceed 80 columns. Additionally, I
| |   | + 180421 [sander.land@] 14 lines here, with no really long lines.
| |   | + 180451 [mental@ry ia] 13 seems to be the lower limit without seriously golfing.  My "best"
| |   |   + 180496 [kero@ch ll .] Dunno about golfing, been snowboarding the whole week.
| |   |   + 180538 [ruby-talk@le] Mine's at 9 without any real golfing. No newlines though. Maximum line
| |   |   + 180545 [GENIE@pr di ] Yea, I don't usually golf, so I'm torn as to what's reasonable and
| |   + 180473 [peter.thoman] My current attribute method is just 8 lines, but the whole solution is
| + 180342 [mental@ry ia] Depends.  If you think of it in terms of the default value being
|   180351 [ara.t.howard] per-object - where object may be a class (singleton method).
|   180353 [mental@ry ia] Hmm, would semantics like Hash's default block be acceptable?
+ 180573 [rossrt@ro co] It's 18 lines when you strip comments. The only thing with it is that
+ 180706 [grddev@gm il] ...
+ 180850 [michael.ulm@] Awesome quiz! Here is my solution, quite ugly I'm afraid.
threads.html
top