12287-12879 subjects 12784-13257
^ Strange segmentation fault problem with C++ extension
12540 [paul_c passt] I have been beating my head against the monitor for a couple of days with a
+ 12542 [paul_c passt] I know it is probably bad form to reply to oneself however I just wanted to
+ 12547 [matz zetabit] Could you provide us the stacktrace of segfault, probably using where
12549 [decoux moulo] What is missing is the source of ZipLocalEntry_new, to see how you create
^ Accessing caller of include or extend...
12557 [pascal pasca] I'm fairly new to Ruby and OO in general, but have read the pickaxe
+ 12559 [decoux moulo] ruby call append_features in this case
+ 12561 [pascal pasca] My apologies, I seem to have slaughtered the case..when...end
+ 12717 [pascal pasca] Using the info that Guy Decoux sent me about Module.append_features
12558 [matju sympat] interrupting your hair-pulling session with the most wasteful use of
+ 12577 [crippel prim] Nice ...
+ 12596 [hal9000 hype] Merci, matju... and mercy!
^ Re:Strange segmentation fault problem with C++ extension [stacktrace]
12565 [paul_c passt] Matz,
12602 [matz zetabit] Thank you. Normally I find a bug from this information, but this time
12631 [paul_c passt] Matz,
^ bug in String#hex and String#oct
12572 [tammo.freese] by scanning through the reference in the pickaxe book and
^ ruby.properties for SciTE?
12573 [Ssmoller nor] Has anybody already seen the ruby-lexer and the ruby.properties-file for the
12953 [Roberto lupi] Ssmoller@norcom.de says...
^ Re: Strange segmentation fault problem with C++ extension - the plot thickens
12580 [paul_c passt] Having played around a but more it looks like the behaviour of the module
12581 [Dave Pragmat] Does it ever fail if you disable garbage collection?
12585 [paul_c passt] Dave,
^ irb and CPU usage
12584 [johann physi] I'm finding that on Solaris irb maxes out the CPU. It's clearly a
12644 [masa stars.g] I find that the CPU idles in the irb session,
12658 [johann physi] Ah, that fixed it. Thanks.
^ Who's minister of propaganda this week?
12586 [claird starb] Sure; Bruce "Mr. Java" Eckel says Python's his favorite language.
12625 [phlip_cpp my] Robert C. Martin meant two things. A> If you write wall-to-wall unit tests
12667 [schneik us.i] out in *.ruby but continues on in *.python) had/has some interesting stuff
12767 [claird starb] ... as did the interview
^ Re: Strange segmentation fault problem with C++ extension [source] LONG
12587 [paul_c passt] For some reason my news account doesnt seem to like me posting attachments
12588 [schneik us.i] # For some reason my news account doesnt seem to like me posting
12616 [decoux moulo] It was not possible, for me, to reproduce this problem
^ Good book for learning Tk (w/ Ruby)?
12590 [jdonner sche] From Andy & Dave's book I understand it's easy to translate
12749 [nnakamur mxq] I translated some Tcl/Tk and Perl/Tk scripts to Ruby/Tk.
^ FXRuby question
12593 [jjthrash pob] I'm having trouble getting the following to work. For some
12632 [ljohnson res] This is a bug that has been fixed for the next release of FXRuby, which I
^ Thread bug
12600 [hal9000 hype] I noticed something the other day.
12603 [matz zetabit] Yes. Thank you for finding another bug.
^ http page download question
12601 [imarsman web] I am writing a script to download webpages from a favourite radio program
12645 [aamine dp.u-] In this case what ruby is saying is all. connection is reset by
12748 [imarsman yah] Your explanation and help are very nice. However, the page in question is
^ Order, chaos, and change requests :)
12606 [Dave Pragmat] I've been following the 'my' variable thread with a lot of interest
+ 12608 [matz zetabit] <snip all great explanation>
| 12609 [hal9000 hype] As another great Eastern philosopher (Lao Tzu) once said,
| 12626 [ ddj kmd.dk] who
+ 12615 [see_signatur] As the one who started the "'my' variable thread" let me throw in my 2 cents:-)
| + 12623 [dblack candl] What I find particularly compelling about Dave's analysis is that it's
| | 12633 [hgs dmu.ac.u] sub("sandbox", "quarantine")?
| | 12634 [andy toolshe] Well, I can't speak for Dave, but I rather liked
| | 12636 [hgs dmu.ac.u] Any more specific refs for this -- there is an Edgeware Road
| | 12641 [andy toolshe] Brenda Zimmerman, Ph.D., Curt Lindberg and Paul Plesk
| | + 12656 [schneik us.i] # And as another poster mentioned, Gabriel's
| | | 12657 [schneik us.i] #
| | | 12680 [hgs dmu.ac.u] Maybe they just don't have it in the UK then; I used amazon.co.uk, but
| | | 12682 [andy toolshe] Anytime... although the PDF isn't the same without
| | + 12674 [feldt ce.cha] Thanks for the pointers.
| + 12627 [ ddj kmd.dk] the same name
| + 12660 [matz zetabit] I like this except that I feel name duplication like the following is
| + 12661 [huber alum.w] I'd really like to put my vote in for something like
| + 12664 [gnhurst hurs] hmm..
| | 12668 [matz zetabit] Hmm.
| | 12684 [gnhurst hurs] That surprises me, based on your comments in ruby-talk:12599
| | 12714 [matz zetabit] What I want is not exporting, but flat scope by default.
| + 12711 [see_signatur] I think this is not a duplication of names because the semantics and
| 12713 [matz zetabit] I know what you meant. But it's still messy.
+ 12617 [feldt ce.cha] Wow, Dave, a breath-taking post. May I ask what books you've been reading
^ RUBY NEWSGROUP FAQ -- Welcome to comp.lang.ruby! (Revised 2001-02-17)
12618 [schneiker ju] RUBY NEWSGROUP FAQ -- Welcome to comp.lang.ruby! (Revised 2001-02-17)
^ O'Reilly book
12619 [pate gnu.org] I'm new to Ruby (and ejoying every moment of it). I just wanted to pass
+ 12622 [mjais web.de] this is very cool.
+ 12649 [snowzone hom] i never did get a response back when i emailed them, but that's good news.
^ The Ruby Way
12620 [schneiker ju] Thanks for your last post.
12629 [jfn enteract] Your sarcasm really isn't neccesary. If you give it just a little bit
12648 [snowzone hom] it was also the fidonet way of quoting.
12650 [schneik us.i] # >Thanks for your last post.
^ Strangs warning
12630 [ppladijs cag] The following code takes a fixnum and transforms it to a string.
12637 [matju sympat] if str.size==1 then str[0, 0] = "0" else str end
^ email address regexp
12635 [dfung multia] i would like to locate probable email addresses in a bunch of text files,
12639 [jjthrash pob] /\w+@\w+(\.\w+)+/
+ 12652 [rise knavery] Short version: Take a look at the last example in "Mastering Regular
+ 12653 [pete vilya.d] +> i would like to locate probable email addresses in a bunch of text files,
| 12663 [sent quality] I'm not a regex expert, but that appears to
| 12665 [hal9000 hype] files,
+ 12675 [luigi.ballab] Hmm. It matches "firstname.lastname@example.org" and "email@example.com", but crops
+ 12678 [kentda stud.] ?@domain.no
+ 12753 [merlyn stone] Nope. Totally your hallucination.
12779 [claird starb] [109 lines of
12780 [matju sympat] If you look at Merlyn's post, you'll notice that the big regexp validates
12815 [merlyn stone] Oh, how embarassing! I posted the URL matcher, not the Email matcher.
12958 [matju sympat] Ok. And somehow, the URL matcher's email matcher is more simple than the
12969 [merlyn stone] Yes, it's just the syntax to get the RFC822 payload into the URL. It
13066 [ppladijs cag] files,
13149 [merlyn stone] You're wrong. :)
13205 [ppladijs cag] I'm sorry. Although I had been reading the rest of the
^ How to access Ruby file pointers from C code?
12642 [ljohnson res] For my Ruby extension module (written in C/C++) I need to be able to get to
^ Stepping off, be back later
12643 [john_van_v y] I had expected to be able to start Ruby programming with a lot of energy a
^ police warns you -- Perl is dangerous!!
12646 [see_signatur] I just read this story on Slashdot
12651 [pete vilya.d] +I just read this story on Slashdot
12691 [elderburn mi] The tie-in of an error caused by mis-stating a perl expression to "police
^ Re: Strange segmentation fault problem with C++ extension
12669 [paulch megap] I didn't consider that the problem might be OS dependent, however on testing
12671 [decoux moulo] Try in your source to don't mix C++-try with rb_raise()
^ How can I draw class hierarchy
12670 [max malva.co] Is there a tool which can read Ruby code and visually (as GIF, PS, etc.)
12673 [max malva.co] #!/usr/bin/env ruby
^ On-line CodeFest: Seeking subjects for small Ruby research experiment
12672 [feldt ce.cha] I'm finishing a report on a Ruby tool I've developed. As one part of
12676 [Dave Pragmat] I'd be interested in playing :)
12677 [Dave Pragmat] And I also meant to send that privately.
12692 [wconrad yagn] I'd like to do this, please.
12693 [wconrad yagn] Did I really send that to the entire list? Groan. A thousand apologies to everyone. I'll go generate some Rational Rose documents as penitence.
^ Ruby regex lexing
12679 [hvrosen worl] This is from comp.lang.python; Raymond Hettinger asks about regex lexing,
12686 [adam_thorsen] subscribe
^ DBC problem
12687 [ppladijs cag] First, thanks to the Andy for developing the Design By Contract
12741 [andy toolshe] Paul,
^ Re: Strange segmentation fault problem with C++ extension [fixed]
12688 [paulch megap] It worked !
^ refactoring ruby code
12689 [pate gnu.org] To help myself learn more about Ruby, I'm starting to translate
^ literal array syntax
12694 [matju sympat] 42,
12695 [hgs dmu.ac.u] Yes, it is part of the algorithm for "not needing semicolons to terminate
^ Keyword arguments?
12696 [johann physi] What's the status of the discussion of keyword arguments? I found
12697 [neumann s-di] I am not aware of that being in the todo list, I think matz will tell you soon.
12699 [johann physi] Why does that work? I must have missed that in the specs. That's
12701 [Dave Pragmat] I don't know about specs, be it's documented in our Language Reference
+ 12703 [johann physi] Again, kudos to you for that resource. But, well, seeing as this is a
+ 12719 [decoux moulo] It's documented, see "Pseudo BNF Syntax of Ruby"
^ Application Facade Example in ruby (was: refactoring ruby code)
12698 [dennisdecker] Also with the purpose of learning, I'm working on Martin Fowler's
12700 [hvrosen worl] I would like to take a look!
^ RCR: Public C APIs for accessing File objects
12702 [ljohnson res] Since there was no response to my question a few days back I'm assuming that
12707 [matz zetabit] It's OK for you to use the stuffs from <rubyio.h>.
^ So is Ruby's source always visible?
12705 [cl nospam.co] I am looking at Ruby for the first time and was wondering if I made an app
12728 [feldt ce.cha] For windows with cygwin you might want to check out rbwrap. Its in RAA and
^ Library packaging
12706 [ntalbott rol] I have a project that I'm working on that needs to live two different lives,
+ 12708 [Dave Pragmat] What happens if you organize your source files into directories that
| 12743 [ntalbott rol] Hmmm... that'll work. I already have my directories structured like that, I
+ 12729 [feldt ce.cha] install script changes "require 'my1'" to "require 'myproject/my1'" etc.
| 12750 [neumann s-di] I have done it just another way.
+ 12759 [ianm actives] Would it be possible to use some sort of jar style packaging - ie distribute
12769 [matz zetabit] Intresting. Let me add it to the ToDo list.
+ 12772 [Dave Pragmat] Before you do, let's discuss this a bit.
| + 12774 [cas exis.com] This is probably not the place to go into a big discussion of Java, but
| | 12775 [Dave Pragmat] All true, but... with a typical application, I'm bringing in classes
| | + 12777 [chadfowler y] Actually, I believe you can throw jar files in
| | + 12809 [cas exis.com] So this is more about how classes are found and loaded, than about packaging
| + 12776 [matz zetabit] Of course. I'm not in a hurry in any sense.
| 12786 [Dave Pragmat] ruby <path_to_rb> <options>
| + 12791 [rashworth ma] What is the correct procedure to run this example?
| + 12845 [matz zetabit] There's the third case.
| 12848 [Dave Pragmat] Oh, but I wasn't suggesting using argv to pick up the name. Using
| 12849 [matz zetabit] Hmm.
+ 12778 [matju sympat] I'll make a more general request.
+ 12781 [matz zetabit] Since both "load" and "require" are methods, not syntax constructs,
| 12974 [matju sympat] Hmmm, maybe it's entirely reproducible from inside ruby, but I really
+ 12979 [kom mail1.ac] If we can design new package format rather than adopting
12983 [Dave Pragmat] OK, I'll confess.
+ 12996 [elderburn mi] Ok, that explains your posts re compression :-)
+ 12998 [ntalbott rol] Sounds cool... just a quick warning before everybody starts using rar to
13003 [Dave Pragmat] It's now called Scarf: Self Contained Archive of Ruby Files
^ [OFFTOPIC] Re: police warns you -- Perl is dangerous!!
12709 [spwhite char] Without getting into an extended off-topic discussion, I'm from another
12712 [none nowhere] Police are not allowed to interrogate a suspect once he asserts his right to
12716 [hal9000 hype] dangerous!!
12744 [lists.ruby-t] What a wonderful programming language we have that is able to settle
12799 [samantha obj] Huh? Since when is the book open source? As far as I known it is only
+ 12800 [rise knavery] BTW, thanks guys! It's nice to not have to carry my copy of the Pickaxe
| 12808 [Dave Pragmat] And Clemen's Windows Help version is great too: it has all the
| 12818 [nobody.home ] Well, Clemmens' site (www.ruby.ch) sure is a useful resource, but it doesn't
| 12820 [Dave Pragmat] My apologies: wrong attribution.
+ 12801 [hal9000 hype] dangerous!!
^ Status of (un)freeze?
12730 [crippel prim] I am currently in desperate need for a freeze/unfreeze facility for untangle
12736 [matz zetabit] Uh, do you need it to be an extension?
12762 [crippel prim] Well,
12773 [matz zetabit] If you are going to make recursion error, I don't think it's worthy to
12826 [crippel prim] I whole heartedly agree with your comment about the stack-level check ...
^ Fw: (My) Thread bug - sync != lock/unlock
12731 [hal9000 hype] While my ISP had major mail server problems (statewide)
12733 [feldt ce.cha] october or november showing a bug in Queue; I don't know if it has been
^ ModuleModifier.rb - An interesting idea...
12732 [pascal pasca] This is a multi-part message in MIME format.
^ Re: Nonblocking Read]
12737 [Milan.Gardia] This message is in MIME format. Since your mail reader does not understand
12738 [hgs dmu.ac.u] Has anyone written a parser for Ruby in Ruby?
12739 [feldt ce.cha] I have one coming up but I need to work on it some more. It'll be at
12742 [jjthrash pob] If I may ask, what does your parser allow/do?
^ Re: Parser? (a bit long)
12745 [feldt ce.cha] Short answer: Parses Ruby code in a string to an abstract syntax tree
13627 [ekliao pacbe] Robert,
13631 [feldt ce.cha] Eric,
13642 [deveiant Fae] [...snip...]
^ Where to put extensions for public access
12746 [jim freeze.o] I have written several ruby libs (classes) and would like for other ruby
+ 12747 [Dave Pragmat] Can you set RUBYLIB in your /etc/profile?
| 13012 [gnhurst hurs] [ruby-talk:02133]
+ 12751 [dgjs acm.org] Isn't that what '<installation prefix>/lib/ruby/site_ruby' is for?
^ Undo for Arrays
12752 [matju sympat] load "../samples/UndoableArray.rb"
^ assert_exception question
12754 [pate gnu.org] Okay, I'm reading along between several docs and now I'm confused ...
+ 12758 [kom mail1.ac] The message argument is the message displayed when the assertion
| 12763 [pate gnu.org] Thanks for the answer, but things still don't seem to work the way I would
| 12764 [avi beta4.co] I think you want assert_exception(RuntimeError, "test failed")
| 12782 [pate gnu.org] I tried it both ways and got the same error.
| 12802 [masaki.suket] I guess it should be RaiseException.
+ 12765 [masaki.suket] assert_exception does not check message of exception.
^ ANN: FXRuby 0.99.166 Now Available
12756 [ljohnson res] I am pleased to announce the latest "alpha" release of FXRuby, the Ruby
^ Tk Demo in Windows
12766 [ronjeffries ] I've been through the newsgroup and the web sites and could use some
+ 12768 [decoux moulo] See the message
| 12787 [ronjeffries ] Thanks ... this edit makes the demo at least try to run. However ...
| 12788 [Dave Pragmat] I believe that 'type' is built in to the windows command processor, so
| + 12797 [rashworth ma] What is the correct procedure to run the Ruby example on page
| + 12804 [ronjeffries ] Using cmd /c makes it type OK but it still doesn't DO anything. Am I
| | 12823 [elderburn mi] In the Unix world, things like ls (win=dir) and cat (win=type) are separate
| | 12889 [schneik us.i] # I've been through the newsgroup and the web sites and could use some
| | 12917 [schneik us.i] # Is there anyone out there who would like to assume 'ownership' of
| + 12805 [ronjeffries ] OK, I did
| | 12807 [Dave Pragmat] Ron,
| | 12812 [ronjeffries ] Then what's all that weird eval stuff in the widget demo about?
| | 12813 [Dave Pragmat] translation from the original Tk tests). I recoded the eval line as
| | 12817 [ronjeffries ] The join trick doesn't work on Windows (at least on my setup) because
| + 12806 [ronjeffries ] OK, I took one of the short demos, label.rb, inserted require 'tk'at
+ 12785 [hal9000 hype] Ron,
+ 12814 [jkaurin home] Hope this is what you are looking for, I translated the python example for