62321-63584

62134-62900 subjects 62389-62860

^ Definition: iterator
62321 [dcarrera mat] I sort of know what an iterator is, but not well enough to explain it.
62322 [bruce codedb] <programming> An object or routine for accessing items
62325 [dcarrera mat] So,
+ 62326 [bruce codedb] Yes, an iterator can be a method that functions thus.
| 62328 [hal9000 hype] What is an iterator? Hmmm.
| + 62330 [bruce codedb] Just because it uses a block doesn't make it an iterator; a block is used in
| | 62331 [dblack candl] I think this is why Hal said that the usage in Ruby is not necessarily
| + 62332 [martindemell] I'd distinguish iterators from the general case of yield-calling
| | 62334 [hal9000 hype] Yes, in a sense I agree.
| | 62336 [martindemell] Hm - something involving the phrase 'coroutines', perhaps. What's the
| | 62526 [bulatz integ] technically speaking, it's a higher-order function, or functional
| | 62543 [pbrannan atd] I don't understand what you mean.  I believe that functions that take blocks
| | 62544 [simon simon-] That would be true if you could essentially "yield" back to the calling
| | 62546 [bulatz integ] ... and can't reexecute block from start. the above 2 criteries
| + 62430 [gsinclair so] I certainly complain about it, but limit my complaints to muttering
|   62525 [bulatz integ] ... but full-featured cotoutines can do YIELD on both sides
+ 62333 [pbrannan atd] That would be true for normal Ruby iterators, but not all iterators.
  62527 [bulatz integ] technically speaking, iterator is a way to access elements of collection

^ THX
62323 [jonnypichler] thx for your prompt replies

^ Enumerable hacks
62335 [martindemell] Generalising the two methods in
62338 [vjoel PATH.B] def #{meth}_with_index(*args)

^ portably turning off the cursor
62337 [ian caliban.] Is there a way to portably disable the cursor in Ruby?
62339 [ysantoso jen] afaik, not in any language since this is runtime-environment related.
+ 62341 [ian caliban.] Yes, but I can't even find a way of doing it using Ruby curses.
+ 62353 [phasis nownu] In win32

^ mod_ruby: what's persistent and what's shared?
62340 [transami tra] i'm tired of being confused about this and i'm hoping someone can clear this
+ 62343 [drbrain segm] y=20
+ 62346 [paul snake.n] It depends?
| 62375 [transami tra] thanks you very much. i understand now. since i did not know for sure i have
| 62408 [kentda stud.] <plug>
| + 62413 [julian beta4] Ugh, try writing IOWA *in* PHP (with a few Seaside-isms thrown in),
| + 62449 [drbrain segm] The other option is to have a simple mod_ruby handler and passing
+ 62403 [billk cts.co] Sadly, from what I understand so far, it's the "worst of both
  62414 [roberto REMO] [courtesy cc of this posting sent to cited author via email]
  62487 [billk cts.co] My guess is that this would be problematic.  Forked children
  62494 [ahoward fsl.] that approach also makes me queasy... why not simple make a little drb
  + 62505 [drbrain segm] he
  | 62509 [ahoward fsl.] tell me more!  i will be needing that capability soon.  perhaps i could
  + 62515 [transami tra] would one say DRb is production strength? this approach intrigues me as well.
  | + 62516 [ahoward fsl.] i sure hope so, otherwise my 'production' is doomed! ;-)  seriouly though, i
  | | 62649 [transami tra] by the way, this queasy solution works fairly well as long as you have a
  | | 62674 [ahoward fsl.] have you had any issues sharing one connection between many processes?  i mean
  | | + 62685 [transami tra] i get around this by storing the connections in a hash based on connection
  | | + 62792 [roberto REMO] My class implement per-database pools so this can't happen. It also
  | + 62611 [drbrain segm] the
  + 62790 [roberto REMO] Because my Ruby skills are not up to that level... :)

^ Can we attack the 'not enough libraries' thing straight on?
62344 [dblack candl] We've all heard this: "Ruby is great, but it doesn't have the
+ 62348 [joey joeygib] I've been using Ruby since 2000 (I think) and I considered abandoning it
| + 62354 [hal9000 hype] True, but a meta-issue.
| | 62359 [dblack candl] And Haskell's, and whatever.  Yes, I was asking a non-meta question --
| + 62355 [dave pragmat] I was sitting across the table from Bruce last week (while Andy was
| + 62361 [ahoward fsl.] a very good point.  just today i had to write a perl script and was
|   + 62366 [tim bates.id] Debian GNU/Linux gets this just right, IMHO. They have a policy that packages
|   | + 62424 [christl band] I would like to contribute a few thoughts on the topic. When installing
|   | + 62590 [bard prism.l] rpkg was meant to be just that and went as far as handlig dependencies
|   + 62368 [dblack candl] The standard library is a different matter -- at least, that term is
|   | 62396 [ahoward fsl.] look at boost and you'll understand what i meant : the idea is that _very
|   + 62426 [gsinclair so] Good ideas.  It's great to have a repository that anybody can
|     + 62433 [djberge qwes] A few of us here in Denver are working on this issue.  See
|     + 62583 [drbrain segm] =20
+ 62349 [simon simon-] David, I respect you and I agree with you; but on this point I have to
| + 62357 [hal9000 hype] Pardon me while I play David's Advocate. :)
| + 62358 [dblack candl] Would it surprise you to learn that I rather knew I'd hear from you in
| | + 62362 [dcarrera mat] I don't know what Simon thinks, but I really do think that exactly.  It
| | | 62369 [simon simon-] Right. I believe there are decent Ruby modules for handling MIME mails;
| | | 62373 [dblack candl] Any package that doesn't turn up on an RAA search for "mime" doesn't
| | | + 62381 [transami tra] want to here a crazy idea?
| | | | + 62385 [waisun.chia ] Any security guy/gal will freak out here!
| | | | + 62399 [ahoward fsl.] ever use the cpan module?
| | | | + 62419 [nahi keynaut] I find a joy to hear this kind of "crazy" idea that seems
| | | | + 62545 [warren freed] dear devels
| | | |   62549 [gsinclair so] This would be nice.  In the volunteer, every man do his bit, world of
| | | |   + 62550 [simon simon-] That's odd; I wonder how it's possible that it works in the volunteer,
| | | |   | + 62551 [gsinclair so] Fair point, but it's a matter of where the community's at.  I'm sure
| | | |   | | 62552 [roger.sperbe] rubyarchive.org
| | | |   | | 62864 [mike osdn.or] DNS problems.
| | | |   | + 62553 [gsinclair so] Sorry, another reply.
| | | |   |   62555 [simon simon-] Nope. People who are given CPAN access (anyone who asks for it,
| | | |   + 62565 [dcarrera mat] Gavin,
| | | |     + 62568 [djberge qwes] I'm not sure what you mean here.  Are you referring to stuff in the 'etc'
| | | |     | 62573 [daniel zeped] Yes, I guess so. I can't find any documentation on it, but I know it is
| | | |     | 62574 [daniel zeped] Well, for those who know the 'C' equivelants, I suppose no documentation
| | | |     | 62577 [vjoel PATH.B] BTW...
| | | |     | 62579 [djberge qwes] require "resolv" - part of the standard distro (under 'lib').  In fact,
| | | |     | 62592 [daniel zeped] Well, see, there you go. Everything I've ever needed in a Perl module is
| | | |     + 62585 [gsinclair so] Well, it's just that it takes a lot of non-core effort for
| | | |       62623 [warren freed] i dont mind helping u dudes to sort it out
| | | |       62634 [gsinclair so] Well, the first and difficult step is to create a plain text file that
| | | + 62607 [davegaramond] 1) what if i have installed, say, 150 packages from RAA. i forgot which
| | |   62625 [dblack candl] I was talking specifically about searching on RAA, which I thought was
| | |   62639 [davegaramond] well, in the CPAN world, a/b indicates category. no single person
| | |   62643 [dblack candl] I certainly do -- I even started a thread trying to encourage it :-)
| | + 62379 [transami tra] not to get on the name issue, but the easy solution is to have a very-brief
| | | 62386 [waisun.chia ] I agree exactly.
| | + 62645 [mikkelfj-ant] We have seen this with Test::Unit which as I understand is a merger of two
| |   62648 [ahoward fsl.] i think all branches in the naming tree should be 'well accepted' (perhaps
| |   62658 [mwilson13 co] The following is my initial, and not yet complete, proposal on
| |   62696 [spoon dellah] Um, why is Jabber in WWW?
| |   62699 [mwilson13 co] CPAN puts Jabber stuff under WWW.  But if that's silly, it shouldn't be
| |   + 62702 [piers ompa.n] Well - Jabber is out with the IETF, in an attempt to get it to become a
| |   + 62705 [spoon dellah] Ah. I think it's because Net::Jabber can operate via http. Or something.
| |     62725 [dave pragmat] I think there's a hint here. The real world isn't hierarchical. Why are
| |     + 62729 [transami tra] Dave makes a very good point. and it was mentioned before that having multiple
| |     | 62735 [ahoward fsl.] if you mean something like
| |     + 62731 [michael_s_ca] Careful there...  You want the archive to be USABLE, regardless of how
| |     | 62738 [dave pragmat] One word:  Google.
| |     | + 62748 [rich infoeth] Thank you Dave, I was going to bring this up as well.  Google indexes
| |     | + 62750 [dcarrera mat] I certainly think that RAA should have a search feature.
| |     |   62808 [nahi keynaut] There are many articles overnight...
| |     |   + 62814 [gsinclair so] Good to know.
| |     |   | + 62920 [transami tra] and it's not a wooden nickel either! :) nicely put.
| |     |   | + 63046 [nahi keynaut] Sure.  Our test drive are running here.
| |     |   |   63059 [gsinclair so] Yes, the categories would be keywords (that doesn't stop them from
| |     |   |   63078 [mwilson13 co] After this discussion, I now better understand the reasons why the RAA
| |     |   |   63097 [ahoward fsl.] i agree with you here.  however, i think that the _users_ should rank the
| |     |   |   63152 [gsinclair so] Good thinking, but it's important not to get ahead of ourselves.  If
| |     |   |   63158 [hal9000 hype] I agree... first things first.
| |     |   |   63160 [gsinclair so] Yes.  I expect all "official" keywords will be checkboxed, and a free
| |     |   + 62840 [mwilson13 co] Leaving aside broader changes, the following could be implemented
| |     |   | 63047 [nahi keynaut] Definitely.
| |     |   | 63056 [gsinclair so] There can be no reasonable objection to unifying these categories.
| |     |   + 62854 [chad chadfow] Nahi, when do you plan to implement this?  I think this would go a really
| |     |   | 63048 [nahi keynaut] We just installed tcpwrap and WEBrick and setup a prototype
| |     |   | + 63055 [gsinclair so] Hmmmm... I'm a bit confused about this feature.  When you introduced
| |     |   | | 63058 [nahi keynaut] Ahh.  I should not write about vaporware.
| |     |   | + 63067 [chad chadfow] Great, Nahi.  Thanks!  This will be excellent.
| |     |   + 62857 [dcarrera mat] No.  This sentence does not imply that RAA doesn't have a search feature.
| |     |   | 63049 [nahi keynaut] I see.  Teacher, give me "F" at English reading (and composition). :-)
| |     |   | 63071 [hal9000 hype] feature.
| |     |   | 63077 [nakahiro sar] No, no.  I didn't have to excerpt only 1 line.
| |     |   + 63400 [jbritt ruby-] I've been working on a topic map wiki at www.ruby-doc.org/wiki/topicwiki.rb
| |     |     63433 [gsinclair so] Wow, that's interesting!
| |     + 62733 [ahoward fsl.] i think that what's been proposed is categorical and not hierarchical.
| |       62770 [alan digikat] I liked the proposals which separated the functions of searching in the
| |       + 62785 [mwilson13 co] I agree that search functionality is necessary for RAA.  Archive
| |       | 62789 [transami tra] i want to make a distinction here over the word category. these are
| |       | 62791 [dcarrera mat] A complex graph is harder to browse than a tree.
| |       | 62797 [transami tra] it would still be browsed just like a tree, only some packages would appear
| |       | + 62798 [dcarrera mat] Sure.  3 sounds like a good number to me.
| |       | | 62829 [martindemell] It's your parent's bowl, of course :)
| |       | + 62799 [ahoward fsl.] super what?
| |       | + 62800 [vjoel PATH.B] What about mimicking the ruby class/module structure. Every package
| |       + 62826 [simon simon-] I think my thoughts on this at the moment are that all the modules in the
| |         62828 [botp delmont] I agree but is it ok to put search somewhere on top? (like google right?). I
| |         63045 [nahi keynaut] That wiki should allow you to post any RD formatted text.
| + 62367 [waisun.chia ] But then, what the heck is a "mozilla" anyway? Is it some sort of a
|   62370 [matz ruby-la] Or a "Ruby"?  Gem? ;-)
|   62372 [simon simon-] Precisely. It's all covered in
|   62374 [akr m17n.org] Rouge is a program.  Maybe Amrita is a better example?
+ 62352 [dcarrera mat] <disclaimer>These are opinions.  Other people might disagree</disclaimer>
| + 62360 [dossy panopt] I've been thinking (okay, dreaming) of a small snippet of Ruby code that
| | + 62363 [dcarrera mat] I think that's a great idea.  I don't know if it's been done.
| | + 62377 [ruby-talk wh] why@stungun:~/cvs/yaml4r$ irb --simple-prompt
| + 62547 [nahi keynaut] For me as well.
|   + 62554 [gsinclair so] It's logical and compelling.
|   | + 62564 [daniel zeped] Getting back to the original poster's question, "what is not available?",
|   | | 62616 [nahi mwd.big] Do you see
|   | | 62621 [daniel zeped] No, No, you misunderstood, sablot and the interface to UCD-SNMP were
|   | | 62622 [nahi mwd.big] Oops.  I'm very sorry for bothering you with the post.
|   | + 62570 [gemerson eva] This only takes into account the web site for CPAN... the real power is in
|   | + 62615 [nahi mwd.big] We ruby-lang.org admins are talking about its possibility.
|   |   62632 [gsinclair so] No, I saw that RAA had it just recently, and it's better than the CPAN
|   + 62556 [jbritt ruby-] Name                       Short Description
|   | 62617 [nahi mwd.big] As you may know, it's from historical reason.
|   + 62560 [dcarrera mat] Sounds great.  I like it.
+ 62402 [matt lickey.] In fact, I think we are attacking the 'not enough libraries' thing
+ 62407 [piers ompa.n] OK.
+ 62473 [gemerson eva] My only response is a vague one.  I mostly agree with you, re: naming and
| 62481 [matt lickey.] [ruby-talk:20560]
+ 62517 [daniel zeped] libwww-ruby
  62548 [daniel zeped] Oh never mind, there is http-access. I guess I didn't look hard enough.

^ Hash#+ ?
62345 [dcarrera mat] I think that there should be a Hash#+ method, aking to Array#+.
62347 [dblack candl] Have a look at the thread starting at http://www.ruby-talk.org/59777
62350 [transami tra] David, what value can be lost? i don't understand.
+ 62351 [dcarrera mat] hash1 = { "key1" => "foo", "key2" => "bar" }
| 62376 [transami tra] i see what youre saying. indeed, + is not really the right method for this.
| 62378 [matz ruby-la] So you guys are OK for value losing "or" or "|" methods?
| + 62382 [jason persam] Just an idea, can Hash#| check to see if the data types of the conflicting keys already HAVE an
| | 62384 [matz ruby-la] FYI, "update" can resolve conflict using blocks.
| + 62387 [transami tra] yes. a number of times in my experience a non in-place version of update would
|   + 62388 [matz ruby-la] Handiness is not my point.  I know it must be handy.
|   | 62393 [transami tra] tom sawyer, aka transami
|   | 62398 [ahoward fsl.] i second that.  the 'normal' semantics of '|' are preserved, IMHO, iff the
|   | 62401 [transami tra] glad to be in agreement. i only disagree about the 'normal' semantics. where
|   | + 62404 [bruce codedb] I agree- second hash should win.
|   | + 62436 [ahoward fsl.] 0 | 0 -> 0
|   + 63547 [knu iDaemons] What's wrong with 'hash3 = hash1.dup.update(hash2)' ?  And I'd like to
|     63561 [transami tra] well, i don't have any LIVE examples b/c hash#| dosen't exist, now does it!
|     63572 [transami tra] by the way, whats wrong with 'arr3 = arr1.dup.concat(arr2)' ?
|     63577 [knu iDaemons] We have live examples that show that Array#+ is useful.  Try grepping
|     + 63580 [transami tra] well, that's kind of unfair in that i can't do the same grep on Hash#|. if it
|     + 63584 [ms iastate.e] I've argued before that this is a natural thing to want when using
+ 62356 [matz ruby-la] What if two hashes have same keys with different values?

^ Ruby, C, and garbage collection
62364 [taw users.so] VALUE a, b, c;
62371 [matz ruby-la] I don't think so.  Ruby uses conservative GC, which scans C stack
62394 [nobu.nokada ] Or use StringValuePtr() provided for such cases.
62439 [pbrannan atd] I don't understand.  How would using StringValuePtr() help in these
62447 [matz ruby-la] The macro StringValuePtr() uses the variable's address internally, so

^ Amrita & Narf Invitation
62365 [ tom u2i.com] I would like to extend an invitation to anyone who would like to

^ Missing libraries??
62383 [hal9000 hype] I'm starting a new thread to get away from
+ 62390 [waisun.chia ] A single wrapper around OpenSSH client package will do the above three.
+ 62397 [ahoward fsl.] 26. Numerical ruby (solidify NArray ?)
| 62410 [chad chadfow] We have Oracle and RSS (I have an old version that I've recently updated
+ 62432 [gsinclair so] Thanks for the enumeration, Hal.  I've created a Wiki page for people
+ 62448 [drbrain segm] It provides minimal parsing of the .9, .91, and 1.0 formats.  If you
| 62541 [nahi keynaut] Agree.  I created quick-and-dirty rss parser with xmlscan
+ 62450 [peter semant] There is a text to MIDI compiler (mine), what sort of midi tools do
| 62463 [ms iastate.e] We have been using a ruby postscript module extensively here, but it's
| 62520 [peter semant] That was my plan, it would be easier to do a regression test for the
+ 62456 [smythb alleg] The mcrypt library is fairly complete wrt available cryptographic
| 62468 [feldt ce.cha] I disagree if it only contains symmetric ciphers according to
| + 62469 [djberge qwes] In addition, see the openssl package (by Michal Rokos) on the RAA.
| + 62480 [smythb alleg] Agreed, only symmetric ciphers are available in that library. Do you see
|   62519 [feldt ce.cha] Not when it comes to symmetric ciphers.
+ 62670 [tcovert sahu] Something I've been looking for an found only aborted attempts. Ruby
+ 62671 [tcovert sahu] Something I've been looking for an found only aborted attempts. Ruby
threads.html
top