95489-96104

95256-96909 subjects 95664-96238

Glitches in the Ruby 1.8.1 package
95489 [matt@te hn r] Just so you know, I'm the guy who tends to rant about using package
95542 [ian@ca ib n.] I put together those packages. As you have noticed, they were built on a
95558 [tom@in oe he] Ian, when 1.8.2 comes out, just drop me a note and I'll mirror the new

[ANN] Tycho 0.0.0.7
95494 [hal9000@hy e] Tycho continues to evolve with painful slowness and accrue
+ 95496 [msparshatt@y] I've just installed Fox and FXRuby so that I can try this out and what
| 95497 [msparshatt@y] A slight correction. Clicking on new note does create the data file for
+ 95503 [curt@hi bs c] I hope that this is an unintended misstatement -- is this really a PIM for
  95506 [hal9000@hy e] If you perceive Windows support to be important, I can pay
  95609 [curt@hi bs c] [ANN] Tycho 0.0.0.7
  95642 [hal9000@hy e] That's reasonable. It's not my plan to *exclude* Windows, certainly.

[rcr] rename append_features -> include_object
95507 [neoneye@ad l] There is a saying: avoid asymmetry
95535 [matz@ru y- a] But append_features does "append features" to the class/module.  The
+ 95536 [dblack@wo bl] A module gets included in (or by) another module.
+ 95550 [neoneye@ad l] true

semantics of continuations
95513 [me@ib tt .n ] first of all, this is just a request for (participation|comment).

Complete Ruby API?
95514 [ks@cs au .d ] Is there no other API for Ruby than the one on
+ 95515 [neoneye@ad l] 'builtins' is just one chapter of the pickaxe book, there
| 95520 [ks@cs au .d ] I lige m?de :)
| 95522 [ks@cs au .d ] Why didn't I just try ... socket.addr did the trick :)
| 95569 [ks@cs au .d ] ...
| 95570 [sroberts@ce ] IPSocket#peeraddr(), perhaps?
+ 95516 [cyclists@nc ] ...
  95519 [bob.news@gm ] "Tim Hunter" <cyclists@nc.rr.com> schrieb im Newsbeitrag

What to gem?
95517 [feldt@ce ch ] I'm trying to get-up-to-date with Ruby community happenings and jump on
+ 95521 [gsinclair@so] I say put everything in.  Don't worry about duplication, because most
| 95532 [surrender_it] can I say that this is, imo, wrong?
| 95534 [neoneye@ad l] It would be nice if there were a RubyReview team, which tried out newly
| 95537 [mailinglists] Everybody should be able to do this, we don't need  a team. And the
+ 95523 [neoneye@ad l] The same as for tgz/zip, except there is no need
  95527 [feldt@ce ch ] Thanks but I have something similar (also runs tests, cleans dirs,
  95528 [neoneye@ad l] I am curious to see it.. is it online?   any url?
  95530 [feldt@ce ch ] It's not cleaned up / generalized yet but specific to my dir structure
  95571 [neoneye@ad l] Same thing here.. evolving over time, gets refined for every release I do.
  95752 [leon@ug s. a] I do the same thing, except with a simple ruby script instead of rake. I'm

[ann] coverage 0.1
95525 [neoneye@ad l] Ruby - Coverage
95529 [feldt@ce ch ] Just wanted to note that you have some users of this...
95531 [neoneye@ad l] awesome, I have only played with it as an experiment.
+ 95533 [feldt@ce ch ] I would probably test the statement coverage calc independently of the
| 95549 [neoneye@ad l] Good suggestion, I will keep that in mind.
+ 95548 [neoneye@ad l] Its now fixed, I have released a version 0.2, which you may want to try
+ 95624 [neoneye@ad l] Now in version 0.2, a 'coverage' dir is being created in the current dir.
  95651 [feldt@ce ch ] Sounds nice, thx.

std-lib require crosslinking sporiadic
95540 [cc1@ce .w st] I'm assuming this is probably a known issue, but a number of the files
95556 [sroberts@ce ] I think that the tools that come with ruby (the ruby exe itself, ri,

WEBrick (Was: Re: Complete Ruby API?)
95541 [drbrain@se m] Have you looked at WEBrick?  It is part of Ruby 1.8.  See

Rite C API
95543 [ccos@al ha i] on 02/08/01, William Djaja Tjokroaminata <billtj@y.glue.umd.edu>
95555 [mailinglists] Rite is still pure Vapourware. So it may still take years to see the
95557 [dblack@wo bl] Matz describes Rite as "a full rewrite of the interpreter", so

[newbie] from string to operator
95546 [yvon.thorava] case operand
+ 95547 [surrender_it] getMemory.__send__('+',getNumber)
+ 95554 [thomas_adam1] Or use the "===" operator....

copy/paste in FXText
95551 [martindemell] I've been playing around with FXIrb, and I've run into a weird
95584 [lyle@kn lo y] I don't think I've ever used a text editor or word processor that didn't
95594 [martindemell] I experimented with Word and gvim - I think my mistake is in persisting

how to create random numbers with OpenSSL ?
95552 [surrender_it] I wonder what is the procedure to create crypto-strong random numbers

forwardable.rb
95559 [dave@pr gp o] I'm being dense today, but can anyone think of a real-world application
95567 [neoneye@ad l] The only usage I can think of is unittesting. Imagine that the Values
95568 [neoneye@ad l] Here is the opposite example: Trying to reopen a class inside a method

Need some advice on PickAxe II
95560 [dave@pr gp o] It's looking as if we're moving towards agreement with Addison Wesley
+ 95561 [sroberts@ce ] I think the original Pickaxe library section was so useful mostly
| 95563 [kapheine@hy ] I'm not sure I agree with this. Programming Ruby fits very well as an
| 95565 [sroberts@ce ] But Programming Ruby V1 already has chapters such as I suggest!
| 95580 [kapheine@hy ] Oh yes, don't get me wrong, they would definitely be nice to have. But
+ 95562 [ jimm@io co ] The PDF looks great. I like the "cookbook" summary. That, paired with the new
+ 95564 [aredridel@nb] I really like it. It's something that the ruby community lacks: a single
+ 95566 [cc1@ce .w st] I think this is an excellent idea, what the community is particularly
| 95577 [mailinglists] And immediately followed by shaking your head because you can't find
| + 95579 [jamesUNDERBA] Wrox went bankrupt over a year ago.
| | 95581 [hal9000@hy e] Don't tell me that! I was going to buy them as soon as I sold
| | 95582 [jamesUNDERBA] Gee,  thanks.
| | + 95585 [michael_s_ca] OTOH (mine), the couple books I got from Wrox I really like(d).
| | | 95638 [jrb3@ei og n] Hmm, sounds like either self-publishing, shoveling it over to
| | + 95588 [dooby@d1 .k ] As an Englishman trying to get to grips with the North American tongue,
| |   95589 [hal9000@hy e] Yes, James and I had an email exchange this afternoon wherein I assured
| + 95590 [cc1@ce .w st] I'm not saying we don't need the API, it just bothers me when people
|   95641 [jrb3@ei og n] <thePennyDrops>Oh, of course!</thePennyDrops>  Unit-test libraries
|   95650 [sroberts@ce ] In my experience with our test code, good test code makes hideous example
+ 95573 [jamesUNDERBA] Yes.
+ 95574 [gsinclair@so] That's a sensible approach, but I think you should be flexible about
| 95759 [gavin@re in ] A. The dropping of full API documentation in favor of terse cookbook
+ 95597 [charleshixsn] I am remembering how wonderful the first "Java in a Nutshell" book
| 95612 [dave@pr gp o] I see that as the role of books such as The Ruby Way and the Developers
| + 95619 [markusjais@y] I think it is ok to remove the GUI stuff.
| + 95690 [lyle@kn lo y] It's also worth noting that 100% of this publisher's books to date have
+ 95606 [chad@ch df w] Personally, I never pull out the pickaxe as a reference.  I think its
| + 95607 [nathaniel@ta] ...
| + 95608 [nathaniel@ta] I guess I'm just the opposite... the number one thing I've used my
|   + 95610 [curt@hi bs c] I would side with Chad on this one -- I don't use it for an API reference.
|   + 95611 [neoneye@ad l] I _avoid_ libraries which uses camelCase, luckily many of them
|   | + 95614 [surrender_it] well, we should ho the way a language for the OZ platform do (can't
|   | | 95620 [neoneye@ad l] Jikes!   too much flexibility for me, it would take long time to
|   | + 95643 [bg-rubytalk@] Trying to understand your religion here.  If both methods and variables
|   |   + 95645 [neoneye@ad l] In Ruby I don't feel a need to distinguish between methods and variables.
|   |   | + 95655 [aredridel@nb] That's exactly one reason I use ruby: uniform access. I often make
|   |   | + 95665 [ptkwt@ar cn ] Not only that, but the attr_* methods turn variables into methods, so that
|   |   | + 95723 [shasckaw@sk ] For Bertand Meyer, creator of Eiffel, Uniform Access is the best way.
|   |   |   95730 [app1tam@up .] And I PREFER camel case.
|   |   |   95731 [michael_s_ca] Let's
|   |   + 95654 [aredridel@nb] (variable). Perhaps I am used to it from my love of the English
|   |   + 95659 [dagbrown@LA ] read_number <= reads a number
|   |     95661 [bg-rubytalk@] My point is that 'read' is both a verb and a noun.  So is 'hit' and
|   |     + 95666 [dblack@wo bl] read_number  # method
|   |     + 95669 [dagbrown@LA ] You just made my argument for me.  A difference in naming scheme just
|   + 95613 [dave@pr gp o] The new version has an entire chapter on Test::Unit :)
|   + 95647 [ptkwt@ar cn ] I'd just like to second Nathaniel's opinion.  I also carry the Pickaxe in
|     + 95648 [matt@te hn r] Youngsters these days....  In my day, I carried multiple boxes of punch
|     | 95649 [feldt@ce ch ] It might have been mentioned already but I would really like a section
|     + 95658 [gsinclair@so] The problem is that there are lots of libraries that are useful but
|     | + 95667 [ptkwt@ar cn ] Right, the idea was that libraries that people ask questions about the
|     | | 95671 [surrender_it] ehy, I asked about openssl one or two days ago :)
|     | + 95799 [jim_kerr@ag ] I agree with Gavin. erb is a prime example of what he's talking
|     + 95660 [billk@ct .c ] "Third!"  :)  I use Pickaxe as a reference... however I definitely
|       95674 [nathaniel@ta] I'd agree with the sectioning complaint... really, I'd like to see just
|       95679 [dave@pr gp o] Agreed - that's the way the new book looks already.
|       95882 [djberg96@ho ] What about a "complete API reference" on an included CD?  You save a
+ 95703 [bob.news@gm ] "Dave Thomas" <dave@pragprog.com> schrieb im Newsbeitrag
| + 95738 [dave@pr gp o] Could you perhaps contact whoever is responsible for that install and
| + 95740 [jamesUNDERBA] Did you run rdoc?
|   95873 [bob.news@gm ] "James Britt" <jamesUNDERBARb@neurogami.com> schrieb im Newsbeitrag
+ 95756 [nedardstark@] Having one page summaries of each library seems to be a useful way to
+ 95922 [p_bossi_AGAI] My 2 cents (slightly related to libs): what do you think about a new
| 95926 [dave@pr gp o] I'm thinking on having an appendix on packaging with RubyGems - do
| 95935 [ptkwt@ar cn ] That probably is the way to go.  At this point RubyGems seems to be
| 95955 [chad@ch df w] Funny, Phil...I was going to suggest the same thing.   Dave, the sooner
+ 96053 [unet@re x. o] I loved the first Pickaxe, and I agree that with ri available,

Nedit users using Ruby?
95572 [gschoep@di i] Just starting to develop a bunch of scripts in Ruby and was wondering if
95575 [gsinclair@so] Google "nedit ruby" has some promising-looking leads.
95578 [gschoep@di i] Groovy. Thanks now that was simple. One that is complete and nice is
95662 [vjoel@PA H. ] It's a little simple for my tastes. I've cleaned up my nedit stuff on
95798 [jf505@ya oo ] You can find it on
95804 [vjoel@PA H. ] Hm, thanks! Looks like it will require some adaptation, but it's a good
95808 [vjoel@PA H. ] Actually, it was almost perfect. The one thing I didn't like was that it

[ANN] Copland 0.2.0 "Appalachian 'Spring' "
95576 [jgb3@em il b] Copland 0.2.0 "Appalachian 'Spring' " is available for download!
95586 [rich@in oe h] And just a note for those that are using the Alpha of RubyGems, I

[ANN] ZenWeb version 2.17.0 released
95583 [ryand-ruby@z] ZenWeb version 2.17.0 has been released!

Odd DBI Heisenbug with tinyints being retrieved as either Fixnums or Strings
95587 [sera@fh an .] I'm using MySQL tinyints to map to Ruby Boolean values in Lafcadio,

SNMP module for Ruby
95591 [daniel@ni ht] The one system administration-ish module that Ruby is missing is a good a SNMP
95592 [drbrain@se m] SNMP=20
95593 [daniel@ni ht] It seems like this one also hasn't been updated since 2001 and I've yet to try
95639 [drbrain@se m] The version I referenced works fine.

ruby dbi installation issue
95595 [info@ir in h] ...
95596 [info@ir in h] Nevermind, I figured it out myself.
95673 [charleshixsn] I second that request.  And that at least a few drivers for the most

deterministic SIGSEGV using tcltk and ruby 1.8.1
95598 [chris_guenth] I am getting  a SIGSEGV using ruby-tk (ruby 1.8.1 under red-hat linux).
95601 [decoux@mo lo] Try the patch given in [ruby-talk:88830]

Dealing with the clipboard in ruby...
95599 [ggarramuno@a] Is there a platform independent way of dealing with the clipboard to implement

newbie erb question
95600 [_ebuffer_@ho] I'm trying to use some erb templates to generate some code with ruby. It's
95870 [bret@pe ti h] <%  code_lines.each do |line| %>
95915 [david@lo dt ] <%= code_lines.join %>
96104 [_ebuffer_@ho] Thanks, those are good tips that I'll definitely use!

trial version of Ruby/Tk (Re: Bus Error with tk app)
95602 [nagai@ai ky ] I'm very sorry I'm late to release the trial version.

Create a directories list with sub-directories
95603 [dirk.einecke] I've a problem. How can I create a directory list with all
+ 95604 [emmanuel.tou] To get all those files, simply do
+ 95605 [surrender_it] => ["a", "e", "a/b", "a/c", "a/c/d", "e/f"]
+ 95626 [vadimn@re ha] As others pointed out, you can use the Find module.  Its
  + 95629 [dirk.einecke] Wow! Wonderful! Thanks a lot.
  | 95678 [assaph@av ya] On a lot of systems you can use the 'tree' command.
  + 95709 [dirk.einecke] I have one question: With your code the files in a folder will be print
    95761 [vadimn@re ha] #!/usr/bin/ruby
    95838 [dirk.einecke] Well - the script is very good and works like a charm. But at the moment

Ruby style guidance (was: Re: Need some advice on PickAxe II)
95615 [dblack@wo bl] Also the Ruby code in the Ruby distribution itself will give you a
95622 [surrender_it] That page is nice, but It seem somehow "too little".
+ 95628 [mailinglists] Ruby is the successor of Perl, so there are many ways to do it.
| 95635 [dblack@wo bl] I am reminded of my favorite (unfortunately anonymous) quotation from
| 95646 [jim@we ri hh] David, I like that quote too ... but I always thought that it was
| 95657 [dblack@wo bl] my name several times, but it wasn't from me originally.  I even once
+ 95630 [dblack@wo bl] I imagine it's because it's a draft :-)  It's not exhaustive, but I
+ 95631 [jamesUNDERBA] There's a sort-of style guide on the rubygarden wiki, but it conflates

How to pass a given block to a subroutine
95616 [mailinglists] I have a method 'foo' that takes a block, but the yield should
+ 95617 [decoux@mo lo] def foo(*args, &block)
| 95623 [neoneye@ad l] Im too slow.. Decoux you are too fast.. ;-)
+ 95618 [sroberts@ce ] Is this what you want?
+ 95758 [angel@ty ex ] class foo
  96017 [angel@ty ex ] s/yield/block/g

rubygems working with non-gems libs?
95621 [raphael.baud] I wanted to try SDS (http://www.starware.one.pl/software/sds/index.html).
+ 95627 [neoneye@ad l] Place this file within Ruby's path and set the env variable.
| 95634 [neoneye@ad l] Ok.. I have cleaned up the require-hack code a little bit.
| 95644 [neoneye@ad l] I have refined the gem-require hack a bit more.
+ 95656 [childNOSPAM@] New SDS version (to be release in a few weeks) will be probably

[ann] coverage 0.2
95625 [neoneye@ad l] download it from here: tgz, zip, gem.

How to avoid duplicate object creations?
95632 [ssm@fn rd no] I have a program that will create a lot of objects, mainly of type
+ 95633 [thomas_adam1] You might be able to use the "freeze" method from the Object class.
+ 95637 [bob.news@gm ] "Stig Sandbeck Mathisen" <ssm@fnord.no> schrieb im Newsbeitrag
  + 95640 [ssm@fn rd no] Brilliant, thank you.  I think I need to study it for a while, to see
  | + 95652 [sroberts@ce ] Notice that these methods don't modify YouClass.new() to return other
  | | 95705 [bob.news@gm ] "Sam Roberts" <sroberts@certicom.com> schrieb im Newsbeitrag
  | | 95780 [vjoel@PA H. ] For Marshalled objects, you can define a YourClass._load and
  | + 95708 [bob.news@gm ] "Stig Sandbeck Mathisen" <ssm@fnord.no> schrieb im Newsbeitrag
  + 95728 [ahoward@fa t] check out

Tempfile consuming a lot of memory
95636 [thomass@de t] I'm using a lot of Tempfile's and I have been made aware that they
95653 [matz@ru y- a] Tempfile allocates far lot more objects internally than plain File
+ 95663 [nobu.nokada@] lib/tempfile.rb:1.20 looks like a commit miss, doesn't it?
| + 95676 [matz@ru y- a] Fixed, I think.
| | 95680 [nobu.nokada@] Re-opening tempfile fails.  @data should not be nil, I guess.
| + 95712 [thomass@de t] What do you mean? Is the latest CVS version better?
+ 95711 [thomass@de t] No, I need to hang on to them for a while. All in all I may easily
| 95713 [surrender_it] close(unlink_now=false)
+ 95735 [thomas@Fi st] I can understand that, but this fragment uses 320MB of memory, ie. about
  95736 [mailinglists] Have you tried the same under Linux ?
  + 95749 [batsman.geo@] It takes 330MB on my system.
  + 95755 [thomas@Fi st] 58 processes: 57 sleeping, 1 running, 0 zombie, 0 stopped
    + 95757 [thomas@Fi st] TempFile2
    | 95806 [matz@ru y- a] This is a good hint.  Thomas, can you try this patch?
    | 95849 [thomas@Fi st] Yes, it is much better. The footprint of my original application just went
    | 95851 [matz@ru y- a] Good to hear that.
    + 95760 [mailinglists] I also had a quick look at TempFile and couldn't find something in the
threads.html
top