118104-120073 subjects 118480-119749
extending instance methods from a class object
118273 [wmorgan-ruby] I'm currently drowning in a pool of instance_methods and define_methods
118351 [vjoel@PA H. ] Here are two ways. There are probably more, knowing ruby :)
118523 [wmorgan-ruby] Thanks! It was the class_eval I was forgetting.
is this an open-uri bug?
118281 [todd.bradley] bug. Could someone take a look at this and if this is really a bug,
+ 118330 [rff_rff@re o] irb(main):001:0> require 'open-uri'
+ 118406 [akr@m1 n. rg] It seems that the URI is redirected to invalid URI.
RPA and author packages/interactions (forward vision)
118290 [eeklund@gm i] Discussions of the full RPA at the bottom.
118604 [neoneye@ad l] Wow.. this is good insight into how RPA works.
118609 [eeklund@gm i] I agree. A reasonable amount of competition (while keeping a good
Leak or not leak
118292 [mneumann@nt ] Ruby experts, does this memory usage look normal to you?
118389 [mneumann@nt ] After 14 hours... Ruby has stable memory consumption, with
Another scrach on head
118298 [mkhan@le tr ] if (expression)
+ 118299 [jgb3@em il b] By definition (in Ruby), nil and false are false, and _everything else_
| 118304 [mkhan@le tr ] Thanks, for clarify this. My appology, I didn't know that !
| 118306 [mkhan@le tr ] Wait a minute,
| 118308 [jgb3@em il b] No, I mispoke for the sake of simplification. nil and false _evaluate to
| + 118309 [mkhan@le tr ] In other words
| | 118317 [dblack@wo bl] You could also say
| | 118320 [mkhan@le tr ] David,
| | + 118321 [mkhan@le tr ] Correcting myself,
| | | + 118324 [zdennis@mk e] I fail to see where the problem is. if *a* is not an instance of the
| | | | 118326 [mkhan@le tr ] I already corrected myself.
| | | + 118327 [dblack@wo bl] It comes back to the fact that the words 'true' and 'false' are used
| | + 118352 [halostatue@g] I'm not sure this is a good consideration. Coming from an SQL
| | + 118357 [botp@de mo t] //I still don't see a reason for #true? and #false?.
| | | + 118413 [halostatue@g] Mmm. I don't think changing that to if a.true? will help readability
| | | + 118608 [mkhan@le tr ] this will return a boolean, so it doesn't fit in my example.
| | | 118617 [halostatue@g] No, I'm sorry, I *don't* know what you mean. Foo.new is a true value.
| | | 118618 [mkhan@le tr ] Foo.new is not a true value,
| | | 118619 [halostatue@g] In some other language, perhaps, but not in Ruby. IMO, the decision
| | + 118359 [binary42@gm ] If I am not mistaken this is probably something inherited from
| | 118363 [transami@ru ] That's interesting. Are you suggesting that `if` be a method?
| | 118364 [binary42@gm ] Sure... if we wanted to use real Ruby blocks for the conditionally
| | 118424 [transami@ru ] I think this has merit. But I too haven't thought enough about it. One of the
| + 118345 [matz@ru y- a] Ruby never get passed on telephone test.
| + 118348 [timsuth@ih g] This reminds me of some code written by a (normally sensible) co-worker.
| + 118596 [mkhan@le tr ] Thanks for your reply.
| | + 118598 [dblack@wo bl] a = "hi"
| | | 118602 [Ara.T.Howard] i'd really like a #true?
| | | + 118625 [mkhan@le tr ] You can extend Object
| | | | + 118626 [binary42@gm ] There is a thread on suby-ruby about experimantation with this. Join in :)
| | | | + 118646 [transami@ru ] Ruby allows all objects to eval as true values except the false and nil
| | | + 118627 [jim@we ri hh] if options['verbose'] == true
| | | 118629 [halostatue@g] if options['verbose'].true?
| | | + 118631 [jim@we ri hh] Me too.
| | | | + 118634 [msparshatt@y] Another problem is that a lot (perhaps most) tests within ruby don't
| | | | | 118644 [Ara.T.Howard] don't you think would suprise most newbies too?
| | | | | 118647 [msparshatt@y] The same way when a newbie working in C is surprised when comparing
| | | | | 118648 [msparshatt@y] Should be correct. :-[
| | | | + 118643 [mkhan@le tr ] As a newbie, this is also confusing to me
| | | | 118658 [jgb3@em il b] That's the key, right there. There is nothing wrong with being a newbie.
| | | + 118632 [mkhan@le tr ] This is more OOP
| | | | + 118636 [zoso@fo on e] AOL
| | | | + 118645 [halostatue@g] I disagree. I don't think it's any more or less OOP than what is below.
| | | + 118639 [Ara.T.Howard] o.k. - bad example on my part. i'm more in favour of a bool? and false? test
| | | 118652 [halostatue@g] def solar_elev_file=(value)
| | | 118659 [Ara.T.Howard] i actually coded it that way up front and hated it. the reason is that the
| | | + 118660 [mkhan@le tr ] or,
| | | | 118664 [halostatue@g] Won't work. Read up on case and #===. Frankly, I strongly suggest
| | | + 118663 [halostatue@g] class SolarElevFile
| | + 118599 [Ara.T.Howard] and perhaps also
| | + 118603 [zdennis@mk e] This is not true, block 1 will execute if *a* is anything but nil or false.
| | 118606 [mkhan@le tr ] a evaluates to true
| + 118623 [flgr@cc n. e] "In Ruby, nil and false are false values, but nil is not equivalent to
+ 118301 [zdennis@mk e] Everything in ruby except for false and nil return true in a boolean
+ 118302 [transami@ru ] if (not (a.nil? or a.false?))
+ 118305 [dblack@wo bl] Almost always :-)
+ 118307 [mkhan@le tr ] Exactly, thats what I wanted to illustrate.
+ 118310 [zdennis@mk e] Zach
at_exit, trap sigint, and sleep. no good in 1.8, ok in 1.6
118313 [homernile@ya] Any ideas about why the following code hangs in 1.8
118589 [pbrannan@at ] FWIW, it works fine on linux with both 1.8.2-preview1 and CVS head.
[ANN] Design by Contract for C Ruby Gem
118315 [cmills@fr es] Gem is now available!
ruby and LDFLAGS
118328 [hramrach@ce ] Does anybody know why ruby does not support LDFLAGS?
118501 [nobu.nokada@] Use DLDFLAGS for extensions instead of LDFLAGS. The latter is
118550 [hramrach@ce ] And what flags do I use to propagate my favourite library paths into
119677 [nobu.nokada@] What you want is --with-opt-dir / --with-opt-include /
embedding, 'require' and extensions
118332 [ptkwt@ar cn ] I've basically taken the embedding example from pickaxeII and the only
118372 [decoux@mo lo] You don't give the most important part : how do you build your
118429 [ptkwt@ar cn ] $ gcc -I/usr/local/lib/ruby/1.8/i686-linux -g -c -o summer.o summer.c
118481 [decoux@mo lo] Well, at moulon
Hashes and Blocks (Syntactical/Feature question)
118334 [pete@pe ta t] I haven't been able to find any documentation on the syntax for a
+ 118335 [gsinclair@so] state = 0
| 118380 [bob.news@gm ] "Gavin Sinclair" <firstname.lastname@example.org> schrieb im Newsbeitrag
| 118987 [jhaungs@ac .] What's a hashtable with names pointing to code blocks?
| + 118999 [bob.news@gm ] "Jim Haungs" <email@example.com> schrieb im Newsbeitrag
| + 119002 [pete@pe ta t] Thanks for all of the helpful responses!
+ 118336 [usenet@an re] state = 0
118338 [g.glueck@gm ] i'm trying to use TCPSocket the first time and had a problem with it.
118376 [decoux@mo lo] Try with
beginner gserver question...
118353 [hernan.silbe] I'm in the early stages of learning Ruby. I've been playing with std
118354 [binary42@gm ] theS.join
[ANN] Ruby on Rails presentation added to the WhyRuby repository
118360 [curt@hi bs c] I just added my presentation of Ruby on Rails to the WhyRuby repository.
+ 118370 [burtdav@ho m] Curt Hibbs> http://whyruby.rubyforge.org/wiki/wiki.pl?Ruby_Presentations
+ 118375 [batsman.geo@] s/Bjarn Stroustrap/Bjarne Stroustrup/
| 118396 [curt@hi bs c] Thanks, I'll fix that.
+ 118378 [batsman.geo@] sounds as if there were some kind of default implementation for actions
| + 118391 [burtdav@ho m] Mauricio Fern?ndez> (error corrections)
| | 118399 [curt@hi bs c] I'll fix it.
| | 118409 [jamesUNDERBA] Sluts? That's been a project of mine for a while now.
| | 118420 [transami@ru ] Unfortunately sluts do not program in Ruby. On the other hand, if they did
| | 118430 [sera@fh an .] Hey, speak for yourself, T.
| + 118397 [curt@hi bs c] Thanks again -- I actually meant to say "default". I'll fix this, too.
+ 118469 [batkins57@gm] private def find_customer()
118506 [djberg96@ho ] I suspect Curt implemented RCR 277 on his own - http://rcrchive.net/rcr/show/277
Re: Rounding error, (100.0 2000 2001 Desktop Money Projects Protege.png Protege_2.1 Q3.DIR Quicken RCS Screenshot-1.png Screenshot-2.png Screenshot-3.png Screenshot.png afs-backup afshome amixer.works b basic.edl bin bruin-woods c4isr.owl c4isr.pprj cellphones.sxc comedi comedilib config config-n6uni config.austin conv-factors.sxc debian drvinfo.txt dry.xml ds-tools emachines evolution float.sxc fnfix foomatic-db-current.tar.gz grp-backup iFog-Aqua20-1.tar.gz id_dsa.pub income jimo-core-sjenkins job-search ken-cole latex2docbook letters lfront log mbse modules n6uni-etc.tar.gz n6uni-home.tar.gz n6uni.tar.gz nasa nisotr old-ruby-tools openafs photos pickaxe2.pdf rdtmerge resume rexml.sxc ruby-bug ruby-oscon.sxi ruby-tidal ruby-tools smbmount.3.0.7 software themes tidal-3-11 tidal-3-5-patches tidal-cvsroot-archive tidal-data tidal-head tidal-poster-corrected.ppt tidal-poster.ppt tidal-web tidal-xdemo tidalsim.tar.gz uuid vim-ruby-snapshot-2003-10-12 wet.xml yepp 9.95).to_i == 994
118362 [steven.jenki] I work in a place that actually sends missions to Mars, and I can assure
ruby-dev summary 24487-24627
118365 [aamine@lo er] This is a summary of ruby-dev ML in these days.
118436 [drbrain@se m] What is NKF2?
+ 118502 [matz@ru y- a] NKF (Network Kanji Filter - character encoding converter between Shift
+ 118503 [nobu.nokada@] Network Kanji Filter ver.2, which supports UTF-8 as well as
Re: Rounding error
118366 [transami@ru ] Just a joke. I don't doubt your arithmetic abilities at all. You work for
118427 [discordantus] Looks like shell expansion, not spam, to me.
[ANN] Ruby on Rails presentation added to the WhyRuby repository
118367 [curt@hi bs c] I just added my presentation of Ruby on Rails to the WhyRuby repository.
Re: Rounding error ... [remainder of huge subject line truncated]
118368 [ljz@as as .c] In addition to being completely in agreement with Mr. Jenkins, I want to
118369 [transami@ru ] Everyone, obviously, has their own particular perspective on the world. You
+ 118377 [neoneye@ad l] It looks interesting.
+ 118431 [ljz@as as .c] The "better world" you are talking about already exists. I will explain
| 118440 [transami@ru ] You misunderstand me then. I never expected that. The original message in this
| 118442 [ljz@as as .c] What technological constraints are you talking about? The constraints
| 118444 [transami@ru ] You first will have to specify the problem set better then that. For example
| 118478 [ljz@as as .c] Let's specify all of the values to be floats in these examples.
| 118479 [transami@ru ] You are constraining the solution set to a system that can not provide a
| 118493 [ljz@as as .c] Yes, I recall.
| 118583 [transami@ru ] Sure. Although I never really disagreed. I've merely suggested that I believe
+ 118438 [steven.jenki] No, the last word was J. H. Wilkinson, "Rounding Errors in Algebraic
118441 [transami@ru ] What happened to David Matula?
reuse passed proc later?
118371 [blue_technx@] I'm new to Ruby and some of its features...
+ 118373 [dblack@wo bl] In your example you never call foo, so @func never gets assigned to.
| 118374 [botp@de mo t] //
+ 118382 [bob.news@gm ] "David Gurba" <firstname.lastname@example.org> schrieb im Newsbeitrag
+ 118383 [sdate@ev re ] class A
[ANN] win32-eventlog 0.3.0
118390 [djberg96@ho ] The Win32Utils Team is happy to announce the release 0.3.0 of
118737 [martindemell] I took a look through the docs and examples, but couldn't find out if
118841 [djberg96@ho ] It didn't work because net send's are logged in the "System" log, not
118879 [martindemell] Perfect! Thanks - this is going to save me a lot of tedium.
Flea vs RubyGarden
118423 [phlip_cpp@ya] I sympathize with the battle on spam, but I was using RubyGarden to build
+ 118425 [dross@co e- ] did you have the location: with the capital HTTP://?
+ 118448 [chadfowler@g] Flipster,
118452 [gsinclair@so] Wasn't the idea of the "HTTP" patch to only apply to _new_ Wiki edits?
+ 118455 [dross@co e- ] What would be the point if it were only new? They would spam the current
| 118456 [drbrain@se m] =20
| 118457 [phlip_cpp@ya] That's the thing - the pages "should" have all been grandfathered-in. I
| 118458 [dross@co e- ] Right, this spamming problem is just text related(I've yet to see image
+ 118471 [jim@we ri hh] Well, the patch does 2 things: (1) makes "HTTP:" the proper prefix for
118476 [phlip_cpp@ya] as
118491 [chadfowler@g] That's right.
118492 [phlip_cpp@ya] their
118495 [transami@ru ] You bring up an interesting insight. If a page contains a "mark" of
118514 [phlip_cpp@ya] can
118516 [transami@ru ] Right, it is sort of a captcha. The only thing I was really drawing onw was
118426 [duncan@ny ap] Why does it connect "business" objects? Does this mean it wouldn't be
+ 118437 [drbrain@se m] "Buisiness Objects" don't refer to licensing, but to doing or modeling
+ 118439 [jamesUNDERBA] The word "business" is meant to distinguish those objects from the code
| 118525 [patrick@he a] It is an odd distinction. Why is the in-memory code object, transient
| 118526 [jamesUNDERBA] Well, in this analogy, the plumbing would be the database and the
| 118534 [patrick@he a] James,
+ 118446 [aengstrom@gn] The business objects doesn't really have anything to do with business in
Running Multiple Versions of Instiki on Same Host?
118428 [anthony.bake] Hey Folks,
118434 [batsman.geo@] You don't need multiple installs; just specify the port as a command
118450 [aredridel@gm] This is what I do for my (several) instiki installs.
[SOLUTION] AnyWiki Spam - One step to Solution
118443 [dross@co e- ] Okay, one way to bundle RBL support with another way to get rid of any
[RDOC] Creating my own section in a page
118445 [djberg96@ho ] I've got a C extension that I want to rdocify. It works well enough,
118473 [dave@pr gp o] Not right now (although you could just list them in the file-level
118505 [djberg96@ho ] How about a Document-constant: directive? Another alternative is to
New Ruby conditional semantics thoughts
118447 [binary42@gm ] The basic background was begun by someone asking a question about
+ 118449 [transami@ru ] Nice work. Your explanation is a bit terse, but I'll take it :) I forwarded
+ 118504 [bob.news@gm ] I have some questions and remarks which you will find below.
+ 118513 [binary42@gm ] I am simple avoiding using method chaining. Note that I put this
| 118587 [bob.news@gm ] "Brian Mitchell" <email@example.com> schrieb im Newsbeitrag
| 118591 [itsme213@ho ] this
| 118615 [binary42@gm ] The main problem is that internally the entire conditional (i.e. if
+ 118524 [flgr@cc n. e] It's quite useful for proxies. For example a WeakRef to false will not
| 118579 [bob.news@gm ] "Florian Gross" <firstname.lastname@example.org> schrieb im Newsbeitrag
+ 118531 [chrunderscor] I once proposed a "truth" flag scheme akin to Ruby's
118537 [binary42@gm ] Just remember that we are NOT converting to boolean. In fact
118574 [halostatue@g] I'm really not trying to be obtuse here, but I still don't get why
Re: requesting advice about creating a business model sim.
118453 [sdate@ev re ] I am not sure that I have a "clever" idea, but I can point to similar
118461 [brotman@ex i] Shashank,
118468 [cc1@ce .w st] I think the queue based simulation is the key, I believe the other
RDoc duplicate methods
118459 [transami@ru ] I'm getting duplicate entries for methods using RDoc. Anyone know why that
+ 118460 [dross@co e- ] Which Ruby, which entries? I've not seen any quirks like you describe.
+ 118462 [hal9000@hy e] No, I haven't seen that. Can you diagnose further? Do the dups have anything
| 118463 [transami@ru ] So far, I've only determined that RDoc is processing some files twice. I'm not
| + 118465 [transami@ru ] Okay I figured it out. It's related to the problem I reported before --I have
| | 118467 [dross@co e- ] oh, so there really is a problem with every rdoc out there. heh...
| | 118475 [dave@pr gp o] No, it's a problem with Rake, as the poster indicated.
| + 118466 [dross@co e- ] Just curious, whats the version of your Ruby -v? Is this base base
+ 118474 [dave@pr gp o] Perhaps you have an older RDoc, and you have the documentation
Possible flaw in rubicon test for TestThreadGroup
118464 [headius@gm i] JRuby, and have run into an issue with one of the rubicon tests;
118477 [underbar_und] I've been thinking to myself, and what someone else
+ 118487 [usenet@an re] I got bored at this point.
| 118488 [underbar_und] I come of to some people a bit rude unintentionally.
+ 118530 [jim@fr ez .o] Hmm, is this a threat or extortion? Or maybe it more like
| 118559 [dross@co e- ] Bloody mess to them means they would see my every email. One click of a
| + 118560 [dross@co e- ] Newsgroups will work too. bada boom!
| + 118564 [jim@fr ez .o] TIME OF QUERY OF RBL1 ABOUT URL1
+ 118569 [peter@se an ] [delitia]
118573 [dross@co e- ] New people to the list often do what others do by trying to mimic what
118575 [batkins57@gm] DAVID ROSS!
118581 [jamesUNDERBA] May I suggest that the issue is no longer Mr. Ross, but those who
118588 [curt@hi bs c] Yes, let's please move on to more productive endeavors.