129348-131637 subjects 129694-130393

chop problems
129467 [spam@ra sl r] very usfull scripts written with it.
129470 [bob.news@gm ] "BearItAll" <spam@rassler.co.uk> schrieb im Newsbeitrag
129479 [spam@ra sl r] Thankyou, I love you loads.
+ 129482 [bob.news@gm ] "BearItAll" <spam@rassler.co.uk> schrieb im Newsbeitrag
| 129485 [pit@ca it in] robert.chop!
| 129489 [bob.news@gm ] "Pit Capitain" <pit@capitain.de> schrieb im Newsbeitrag
+ 129512 [caiot1@ib st] @x = @x.chop
  129517 [bob.news@gm ] "Caio Tiago Oliveira" <caiot1@ibest.com.br> schrieb im Newsbeitrag

Slightly OT: Re: [EVALUATION] - E01: The Java Failure - May Ruby Helps?
129471 [eule@sp ce c] Welcome to the Ruby language.
129472 [hal9000@hy e] Kaspar,
129476 [eule@sp ce c] (In response to news:4202075B.2080206@hypermetrics.com by Hal Fulton)

Working with strings...
129477 [tom.rathbone] Is there a function that would work over the characters in String in
+ 129480 [drejewic@ws ] result = ''
+ 129481 [flgr@cc n. e] Generally you can do "some string".scan(/./).map { |x| x + "|" }
+ 129483 [    v@vs .r ] "some string".split('').collect {|i| print i, '|'}
+ 129488 [drejewic@ws ] string.gsub!(/./) { |match| match += '|' }
| 129492 [wybo@se va y] string.gsub!(/./,'\&|')
| 129499 [drejewic@ws ] string.gsub! //,'\0|'
| + 129502 [rampant@gm i] Better to rename the var >:)
| + 129504 [hgs@dm .a .u] string.gsub! //,'|'
+ 129510 [kjana@dm la ] require "enumerator"
+ 129515 [djberg96@ho ] s = "some string"

rss and my yahoo
129491 [asdfq213rr23] I have made an rss feed out of my website and it works well in the rss
129537 [gortspec <go] well posting it on wrong newsgroup won't help.

[SUMMARY] To Excel (#17)
129494 [james@gr yp ] Probably the first question to ask when looking at this quiz is, what
+ 129501 [chneukirchen] Now, that's a really nice idea...
+ 129574 [steven.jenki] Bravo, James. I rarely have time to try the quizzes, but your tutorial

Fwd: Please Forward: Ruby Quiz#17 Subumission
129496 [james@gr yp ] ...

problem installing gems on ubuntu amd64
129498 [christoph.st] hey ruby people!
129509 [chadfowler@g] Weird one.  It looks like the problem comes up during an unpack() as
129522 [christoph.st] hey chad!
130142 [chadfowler@g] Any ruby-core types feel like weighing in on troubleshooting
130154 [decoux@mo lo] No problem with

Ruby-muse Summary for Jan.
129518 [transfire@gm] Here's a summary of January topics on the ruby-muse[1] mailing list.

Ruby-muse Summary for Jan.
129519 [transfire@gm] Here's a summary of January topics on the ruby-muse[1] mailing list.

[ANN] LXL (Like Excel) 0.1.0 - A mini-language that mimics Microsoft Excel formulas.
129524 [kh@ne cl ar ] I've just released LXL (Like Excel) 0.1.0, a mini-language that mimics
129573 [sera@fh an .] Kevin,
129579 [kh@ne cl ar ] I developed it to allow customer-defined workflow rules for their web system
129717 [sera@fh an .] Huh. So you've got another example of a domain-specific language, and
129912 [kh@ne cl ar ] A couple of issues with that (in my particular situation)

Cascade n? Inject
129534 [georgesawyer] "georgesawyer" <georgesawyer2@hotmail.ok.nospam.com> Jan 28, 2005 at 12:58

129539 [snowzone5@ho] is there a windows binary for this?
129549 [neoneye@gm i] Im sorry, there is no binary for windows.  Im developing on linux.
129584 [snowzone5@ho] has anybody gotten this to work under windows?
129589 [agorilla@gm ] It's still pure ruby tho', no?
129595 [neoneye@gm i] version 2.3 is no longer pure Ruby, I had to write a ncursesw wrapper.
129620 [snowzone5@ho] i usually try to get my linux/windows setups almost identical (in look
129625 [neoneye@gm i] I am terrible sorry. I want to make aeditor crossplatform.
+ 129641 [Tim.Ferrell@] This link explains how to cross-compile for Windows from Linux...
| 129648 [neoneye@gm i] Ah.. Thanks.
+ 129660 [neoneye@gm i] Just tonight I have gotton initial syntax coloring working..

method_missing question
129543 [joevandyk@gm] Can someone complete the psuedo-code in SomeObject#method_missing for
+ 129544 [ryand-ruby@z] class SomeObject
+ 129545 [joevandyk@gm] Here's what I have so far.  This works, but wondering if something
| 129546 [ryand@ze sp ] That looks fine to me. I, by habit/musclememory, use intern instead of
| 129576 [joevandyk@gm] Thanks for the input.  My previous function failed on code like
+ 129600 [bob.news@gm ] "Joe Van Dyk" <joevandyk@gmail.com> schrieb im Newsbeitrag
+ 129636 [flgr@cc n. e] Perhaps you could do it simpler by changing this logic? I was thinking

lack of reaction to latest ruby implementations
129554 [ruby-lists@l] working on alternatives for the ruby runtime has
+ 129560 [djberg96@ho ] Well, Alex, I kinda feel like a caveman who's just been given a wrench.
| + 129575 [joevandyk@gm] Sums up my thoughts perfectly.  :(
| + 129603 [ruby-lists@l] hehe. oh. ah!. funny comparison :)
|   + 129611 [usenet@an re] Does it support C extensions, file IO, sockets, (native) threads?
|   + 129624 [jfh@ci e. fl] Yes! Keep going, and thanks!
+ 129562 [lyle.johnson] I don't think the (perceived) lack of response indicates a lack of
+ 129563 [navindra@cs ] I'm not sure what you're talking about.
| + 129565 [batkins57@gm] I think you're misunderstanding the idea of YARV and ruby2c.  They
| | 129569 [matz@ru y- a] You have JRuby as well.
| + 129567 [jeffm@gh st ] I prefer to think of it as active experimentation.
| + 129583 [aredridel@nb] I think it's a case of bated excitement. We dare not speak, for fear of
| + 129599 [ruby-lists@l] the yarv announcement was a while ago, but i was just
|   129605 [rff_rff@re o] there is more traffic than on the english one.
+ 129586 [vanweerd@gm ] Maybe it sounded to good to be true, and occupied the same mindspace
| 129604 [ruby-lists@l] i've seen very little from parrot directly with regards
| 129613 [ptkwt@ar cn ] Yeah, Cardinal has been pretty quiet for a while now.  I wish I had more
| 129614 [ruby-lists@l] google pyggy. it includes a ansi c parser.
| 129618 [msparshatt@y] After a quick look at the PyGgy site,
| + 129626 [ruby-lists@l] racc doesn't support glr therefore making the creation
| | 129652 [ptkwt@ar cn ] Possibly...
| + 129630 [rff_rff@re o] the python frontend has had quite a lot of work lately, mostly since Sam
|   129651 [ptkwt@ar cn ] You couldn't make that up...
+ 129597 [yakumo9275@g] Id be way more interested in YARV if it wasnt so convoluted
| 129607 [rff_rff@re o] write yourself a simple script to automate the task, and just have a
+ 129703 [drosihn@gm i] I am fairly interested in ruby2c, but I haven't had time to look
| 129728 [ryand-ruby@z] It turns a method (or bunch of methods) into "plain" C, for some
+ 129753 [neil@ha ub .] Well, people with existing ruby code usually can't afford to drop to a
  + 129758 [rff_rff@re o] I think you have some environment problem, it does build correctly for
  | 129760 [neil@ha ub .] Yeah, and that's why you can't expect users to mess with it yet!
  + 129780 [ryand-ruby@z] NOT TRUE!
    + 129785 [neil@ha ub .] OK, that's interesting, and it's NOT how I've seen ruby2c described and
    | 129788 [drbrain@se m] The former is the reason we made the tool, but the latter is a
    | 129791 [ruby-lists@l] which i'll (as a "competitor") am also hoping to reuse.
    + 129790 [navindra@cs ] This is actually very interesting.  I understand that the code is

Paul Graham mentions Ruby
129555 [klausm0762@y] Maybe that's nothing new, but I just noticed that PG mentions Ruby on his website

Ruby's own resolver (resolv-replace)
129556 [christoph.he] I'm currently struggling with ruby's own resolver. Various runtime
129564 [sroberts@un ] I've been working with the resolver lately, I might be able

"Programming Ruby 2nd ed." at Lehmanns Buchhandlung (Germany)
129558 [ jupp@gm .d ] Amazon sells it at 37.90 EUR, Lehmanns at 38.70 EUR. Advantage of
129606 [    v@vs .r ] $31.4
129638 [r_mueller@im] And if you buy this from Germany (in EURO!), it's cheaper than amazon.de.

Fwd: Mangled submission for Quiz#17
129568 [james@gr yp ] The "Download Solutions" tarball is built automatically when I send in

socket connect blocking on windows
129578 [wmorgan-ruby] RubyTorrent is having some trouble on Windows, because making new TCP

{n00b} Extending Ruby with C++
129592 [asbjoert@if ] %typemap(out) int&{
129621 [lyle.johnson] This one won't generate a compiler error (well, it didn't for me) but
129745 [asbjoert@if ] ...

[ANN] Nitro + Og 0.9.5 (BUGFIX VERSION)
129596 [george.mosch] new versions of Nitro and Og were just released.
129762 [rb@ra hi ou ] I had this problem with Debian unstable too.
129801 [george.mosch] hmm I 'll have a look at this, this seems like a bug.

Webrick problems under Windows (and IE6 ?)
129601 [george.mosch] I am experiencing some problems using Webrick under Windows. I have a
+ 129640 [flgr@cc n. e] I think this is caused by somebody browsing the site and closing the
| 129644 [aero6dof@gm ] I've seen this too and think it has to do with KeepAlive options
| 129664 [ruby.talk.li] I've seen this using both Internet Explorer 6 and wget.
+ 142212 [ykloubakov@f] I am running Webrick application under Windows XP and see the same error
  142284 [Neville.Burn] I also see this error, with Webrick running under Windows 2003 Server

Searching an article about testing C or C++ code with Ruby
129610 [Stephan.Kaem] I seem to recall that I read an article about testing C (or C++) code
+ 129612 [jim@fr ez .o] Was it this?
| 129615 [Stephan.Kaem] Jim thanks from that link - which is interesting in itself. I'm
+ 129617 [ptkwt@ar cn ] I've done it before using swig to wrap C++ classes and writing the unit

129616 [Bil.Kleb@NA ] A recent Damage Control announcement thanked Chad
+ 129622 [sroberts@un ] Could you give a URL for the article?
| 129643 [Bil.Kleb@NA ] It appeared in Damage Control's user mailing list, specifically,
+ 129633 [chadfowler@g] Oh, I didn't see that one!  I didn't write rss/maker.  I did an old

Re: (cardinal) lack of reaction to latest ruby implementations
129619 [ptkwt@ar cn ] we need the ruby core libs implemented in ruby (or in Parrot's
129627 [ruby-lists@l] personally if i were u and had made the outright

[QUIZ] Solving Tactics (#18)
129623 [james@gr yp ] 1.  Please do not post any solutions or spoiler discussion for this quiz until
129926 [    v@vs .r ] I made one guess - count of possible wins of the first and
130249 [james@gr yp ] "direct proportion" means that the numbers should just increase with
130251 [    v@vs .r ] Something like that.
130254 [james@gr yp ] Thanks for clearing it up for me.  I just misunderstood the language.
130377 [rhkramer@fa ] Your understanding of "is bounded" is technically/grammatically correct
130473 [    v@vs .r ] Ah! Thanks for clarifying.
130487 [rhkramer@fa ] Not really per se.  It's just that (in past lives) I have dealt with a
130506 [    v@vs .r ] Me too :) Some years:) ago I have dealt with some native english
130535 [rhkramer@fa ] That's nice to hear--maybe I'm not as dumb as I think I am. ;-)

Re: [ANN] LXL (Like Excel) 0.1.1
129628 [kh@ne cl ar ] Released a small update LXL 0.1.1

CfP: Workshop on Scripting for the Semantic Web
129629 [auer@in or a] CALL FOR PAPERS

cross platform method to obtain disk usage
129645 [Tim.Ferrell@] I am working on something where one of the requirements is to manage
+ 129646 [rasputnik@he] How cross-platform? I'd do it with snmp myself, but you might need to tweak
+ 129647 [bob.news@gm ] "Tim Ferrell" <Tim.Ferrell@mcgeecorp.com> schrieb im Newsbeitrag
| 129649 [caiot1@ib st] The page says: "Tested on Linux and Solaris.".
| 129653 [djberg96@ho ] manage
| 129656 [zdennis@mk e] I'd think their should be a unified API in the ruby library for getting
| 129663 [bob.news@gm ] "Zach Dennis" <zdennis@mktec.com> schrieb im Newsbeitrag
| 129735 [botp@de mo t] //No, it doesn't work on Windows.  I've been mulling over a
+ 129650 [robert.mcgov] Don't know, I do know that there has been an open bug / request for

[OT] A public thank you...
129655 [tom@in oe he] ...to Dennis Oelkers, who recently provided another mirror for some of
+ 129657 [zdennis@mk e] I second this this thanks to Dennis Oelkers, and would like to thank
+ 129659 [rampant@gm i] +1
| 129662 [cameron.mcbr] much appreciated.
+ 129687 [itsme213@ho ] ++1
| 129739 [binary42@gm ] Are you proposing that we change 1 to 2?
+ 129705 [Stephan.Kaem] += 1

[BUG] RubyGems: "No such file to load -- rubygems/builder"
129658 [google@er kv] I added some debug information to the require method as defined
129671 [halostatue@g] This is a bug, and I'm not sure the best way to handle this -- but the
+ 129678 [emschwar@fc ] Progress is being made; people who are interested in affecting the
+ 129681 [google@er kv] I disagree. This example is a result of the strange Ruby
  129695 [halostatue@g] It's not the only one. Any time *anything* catches a LoadError, the

Need to create zip files
129667 [bugmenot@wo ] I'm wanting a programmatic way to create zip files (which I'd like to use in
129707 [nathaniel@ta] Actually, you'll need both rubyzip and zlib, since zlib does the
130048 [bugmenot@wo ] RubyZip's docs do not have a "hey! this is how you use this to make a zip"
+ 130054 [walter@mw ew] The following creates a zip dynamically, but you could traverse the file
+ 130064 [assaph@gm il] zip"
+ 130073 [nathaniel@ta] Sorry, I should have mentioned that there are samples (and tests) in
+ 131310 [thomas@so de] You are right the documentation really needs improvement. I'll see if
  131326 [jamesUNDERBA] ooo4r.rubyforge.org creates OOo docs, which are zip files.
  + 131402 [Stephan.Kaem] file_name: The (base) name of a to-be-zipped file
  + 131532 [thomas@so de] I think I fixed the issue(s) with header corruption.
    131570 [ruby.talk.li] Oh, super cool.  Must go see ...

15 Invites Available
129670 [infinet.busi] Just email me your name and email address and i will glady provide an
+ 129672 [zdennis@mk e] Jason Thompson at jakerlives@yahoo.com would be very appreciative!
| 129673 [zdennis@mk e] Whoops....sorry about the public posting...
+ 129674 [jagenheim@gm] I just noticed that I got 50 of them...
  129693 [rampant@gm i] Same here, they'll be worth nothing on ebay now!
  129713 [bungimail@gm] Invites are already worthless thanks to the gmail spooler.  You have 50 of

FXRuby problems... segmentation fault
129675 [tambooki@jh ] I've been trying to code up a GUI for manipulating rather large CSV files using FXRuby (1.2.2) with FOX version 1.2.13, and ruby 1.8.2. My interface uses MDI documents, each child window of which contains a FXTabBook, with each Tab containing a FXTable that can be 20,000 items or more. The problem is, as I close MDIChild windows, and open new ones, I sometimes get a segfault. As a test, I took the example code distributed with FXRuby, mditest.rb, and modified it to behave somewhat like my code, and I get similar behaviour.  Basically, I modified the createTestWindow method in mditest.rb to be as below. If I run this program, and then repeatedly close and open new windows (while this doesn't seem like "sensible" behaviour, the bug is prevalent enough to happen in normal operation, as well), I get a segfault. This seems to me like a dead memory area issue, but I'm not sure how to ensure that certain objects are destroyed before others with FXRuby. Any suggestions on what the pr
129677 [lyle.johnson] and will try to look into it this weekend.

Too many open files - getcwd (Errno::EMFILE)
129680 [sera@fh an .] So I'm working on my wonky FileSystem library, and right now it makes a
129683 [djberg96@ho ] now
129700 [sera@fh an .] Yeah, attempts to narrow it down were pretty difficult ... Every time I

robust socket reconnect?
129682 [crf@sb x. u-] Imagine 2 servers, exchanging data every minute, so a good idea is
129685 [bob.news@gm ] "Martin Pirker" <crf@sbox.tu-graz.ac.at> schrieb im Newsbeitrag

iteration the ruby way
129686 [navindra@cs ] I have a question about The Ruby Way.  Pickaxe gives the following
+ 129688 [johnwilger@g] a = ["a","b","c"]
| 129691 [navindra@cs ] I guess I over-simplified.  I really want to do computations based on
| + 129692 [dblack@wo bl] bottom_items.each_with_index do |item,i|
| | 129701 [martindemell] irb(main):005:0> b = [1,2,3,4,5]
| | + 129702 [eero.saynatk] Bah, mail client snipped that... should have been
| | | 129719 [w_a_x_man@ya] Shouldn't that be
| | | + 129722 [eero.saynatk] Yes, or indeed, it was actually supposed to be ary[0...-1] :)
| | | | 129755 [dblack@wo bl] (I think that's what William just said :-)
| | | + 129856 [eule@sp ce c] (In response to news:1107566961.943586.81760@g14g2000cwa.googlegroups.com
| | |   129863 [eero.saynatk] by William James)
| | |   129883 [bob.news@gm ] "E S" <eero.saynatkari@kolumbus.fi> schrieb im Newsbeitrag
| | |   129890 [eero.saynatk] I think assuming an Array is valid in the described scenario (which
| | |   129901 [dblack@wo bl] ...
| | |   130055 [bob.news@gm ] "David A. Black" <dblack@wobblini.net> schrieb im Newsbeitrag
| | |   + 130060 [eero.saynatk] class Array
| | |   + 130097 [martindemell] Though I hate doing this, because that 'if', that you know is going to be
| | |     130106 [bob.news@gm ] "Martin DeMello" <martindemello@yahoo.com> schrieb im Newsbeitrag
| | + 129708 [bob.news@gm ] "Martin DeMello" <martindemello@yahoo.com> schrieb im Newsbeitrag
| | | + 129711 [martindemell] Ah, nice. I always forget you can use inject both for the side effect
| | | + 129715 [navindra@cs ] Wow.  It took me several minutes to understand this stuff, but now
| | + 129723 [navindra@cs ] Actually, I prefer yours over Robert's because his leaves the last
| |   129742 [martindemell] True, the lambda was overcomplicating it. Robert's version does work
| |   129775 [navindra@cs ] In my case that means having to repeat code, which I don't want to do,
| |   129784 [drbrain@se m] b.map { |a| do_stuff_with a }.join ' | '
| |   129787 [navindra@cs ] That works, thanks. :)
| + 129696 [sera@fh an .] I'd probably use Enumerable#each_with_index.
| | 129697 [navindra@cs ] Thanks guys!
| | 129699 [eero.saynatk] Since you're not doing the same thing on all elements, these should
| + 129704 [drbrain@se m] items = items.map do |item|
+ 129689 [joevandyk@gm] puts a.join(" -- ")
+ 129690 [sera@fh an .] a = [ "a", "b", "c" ]