100526-109991

100299-101528 subjects 100721-101680

How  to a copy a file ?
100526 [flurePASDESP] I'm searching a portable way of copying a file from one directory to
100529 [neoneye@ad l] require 'fileutils'
100532 [flurePASDESP] Ok, thanks :)
100533 [neoneye@ad l] The pickaxe book is unfortunatly quite old.
+ 100536 [robertm@sp l] the
+ 100538 [ljz@as as .c] This sounds like a great tool.  I downloaded it and I followed the
| 100541 [Austin.Ziegl] ri is included with recent versions of Ruby.
| 100544 [ljz@as as .c] Aha!  And it indeed works.  Thanks.
+ 100557 [gsinclair@so] That particular project is also old.  Downloading it will not inform

Using mkmf.rb / extconf.rb and autoconf/automake together
100551 [Rudi.Cilibra] I'm having trouble understanding how to use the mkmf module properly,
+ 100555 [cyclists@nc ] The RMagick (http://rmagick.rubyforge.org) installation procedure uses a
+ 100568 [nobu.nokada@] Add check: target to ext/depend file.
  100787 [Rudi.Cilibra] I was referred to RMagick as a good example to follow, and it does use

1.8.1 YAML emit bug? (Win32)
100553 [Austin.Ziegl] Apologies if this has been noted before; I am currently using the 1.8.1
100554 [ruby-talk@wh] Yeah, this is healed in the latest.  Ran tests up to (0..8191313) and

Seeking examples of dynamic / parameterized modules
100559 [itsme213@ho ] I am looking for examples of parameterized modules.

PTY and expect tutorial and examples
100562 [unet@re x. o] Is there a tutorial or other simple documentation in English
100619 [ahoward@no a] try this (untested on 1.9.0 but the example didn't work with 1.8.1 either -
100628 [unet@re x. o] <*snip*>

Dir.mkdir
100569 [paul@vu ma k] I'm attempting to make a script that creates directories on a bsd
100570 [discord@ma .] Is your umask causing the problem? I know mine is set by default to
100587 [paul@vu ma k] Mucho, mucho, thanks Mark, using File.umask 0 worked. Now i need to figure out why.

Highlighting for unit testing output (console)
100573 [gsinclair@so] I'll personally award three kudos points to anyone who implements a patch
+ 100596 [neoneye@ad l] I have spend some time this morning.. attempting to replace the $stdout
+ 100607 [dmertz@fr e.] I can have a look at it, it should be easy to do. What output do you
| 100617 [gsinclair@so] In most cases, the stuff I really want to see stand out are error
+ 100622 [dmertz@fr e.] So here is a patch to apply to test/unit
  101048 [jim@fr ez .o] But test/unit ships with 1.8.1. How does one reinstall just test/unit?

CSV bug?
100575 [ser@ge ma e-] I've got a CVS export from Excel that the csv module is barfing on, and
+ 100576 [nahi@ke na t] CSV module (of mine) just does not expect the space just after field
| 100579 [botp@de mo t] I am not SER, but I hope I can comment, too, pls.
| + 100588 [nahi@ke na t] Of course.
| | + 100591 [botp@de mo t] is it possible (in the future perhaps) to join this into
| | | 100594 [nahi@ke na t] above.  So it will be an option if I can write such a (robust?) CSV
| | | 100597 [botp@de mo t] I will happily wait for your new option :-)
| | + 100614 [ser@ge ma e-] BTW, the csv.rb is really nice.  I wanted to thank you for it.  I'm
| |   100838 [nahi@ke na t] Great to hear.  Thank you and all users.
| + 100616 [gsinclair@so] I have news for you, botp: *you* do the documentation :)
|   100678 [botp@de mo t] I think this is the problem  --+
|   100694 [dave@pr gp o] Here's a sneak peak of something I'm working on...
|   + 100700 [botp@de mo t] hmmm.. give us more.. ;-)
|   | 100741 [khaines@en g] Pe?a, have you seen http://phrogz.net/ProgrammingRuby ?
|   + 100800 [ser@ge ma e-] Dang.  That's going to be a pretty book.
|     + 100835 [botp@de mo t] arg, my bad again. I do keep seeing references to phrogz.net and I thought
|     + 100846 [dave@pr gp o] Gosh - thank you.. :)
|       100866 [botp@de mo t] very cool.
|       100881 [nahi@ke na t] I hope that feature, too but I don't think I can do it without dropping
|       100962 [botp@de mo t] no worry, _I_ am more stupid :-)
|       100992 [nahi@ke na t] Thanks!
+ 100580 [ser@ge ma e-] Ignore me.  The bug was in my brain.
  100585 [hal9000@hy e] How funny, I said the same to Shugo Maeda only two hours ago.

Ruby/GSL and Windows
100582 [stevec890@ya] I was wondering whether anyone has gotten Ruby/GSL running under

Namespace and modules
100583 [rohitlodha@h] Using modules to define namespace is good and efficient?
+ 100584 [jim@we ri hh] Yes.
+ 100592 [ptkwt@ar cn ] Sure.
| 100595 [bob.news@gm ] "Phil Tomson" <ptkwt@aracnet.com> schrieb im Newsbeitrag
+ 100784 [kbullock@ri ] It seems to be effective. Semantically, though, there is a bit of
  109991 [transami@ru ] 1. namespaces, for grouping functionality

writable
100589 [paul@vu ma k] Thanks to the help of a kind rubyist i'm able to write a script for
100611 [martins@aa d] The method I've used is to have a file upload directory with permission
100643 [paul@vu ma k] This is making better sense to me - owner apache...
100658 [martins@aa d] I just set up the directory beforehand manually - the chown is just
+ 100675 [martins@aa d] Just found a problem with that file uploading code I posted earlier. It
+ 100685 [paul@vu ma k] No i dont have to but i've been creating a lot of sites and for each

Iowa 0.20 FINALLY released
100590 [khaines@en g] Finally.  I am announcing, with much nervousness (I'm sure that I forgot

FoX: removing widgets
100613 [y.leikind@sa] parent_obj.removeChild(obj_to_remove)
+ 100670 [lyle@kn lo y] Correct. Calling removeChild() deletes the underlying C++ object. The
| 100708 [y.leikind@sa] Perhaps some variable in my application (or in the FXRuby layer...)
| 100712 [tpeters@in a] Also keep in mind that the garbage collector is conservative. You may
| 100727 [lyle@kn lo y] Ack, yes, I thought about this too last night after I sent the previous
+ 100711 [wsdngtmp@on ] For me it often works to make the child invisible instead of removing

Problem using YAML
100621 [calmquist@mu] I am using ruby 1.8.1 and yaml to store data records.  After a few minutes I
+ 100624 [decoux@mo lo] Try a newer version for ruby
| 100627 [calmquist@mu] I tried the stable-snapshot and had the same result.
+ 100641 [ruby-talk@wh] I'll try this out on my Linux box at home later this evening.  It ran
  + 100647 [calmquist@mu] 0.44 - is that the latest?
  + 100706 [decoux@mo lo] 0.44 with ruby-1.8.2 : it don't crash but hang. Sometimes very quickly,

stream filtering
100623 [segphault@sb] I'm looking for a way to filter the stdout/stderr streams in ruby.
+ 100625 [decoux@mo lo] Something like this ?
| 100633 [bob.news@gm ] "ts" <decoux@moulon.inra.fr> schrieb im Newsbeitrag
+ 100626 [mneumann@nt ] a = nil

Newbie installation problem: libraries?
100629 [pemmons@vo c] I have recently installed ruby-1.8.1 on my Mandrake Linux system.
+ 100631 [vjoel@PA H. ] That's what I've got, and installing is always painless, at least when
+ 100632 [cyclists@nc ] Ruby searches a default list of directories. You can see
| 100648 [pemmons@vo c] Yes, that's what I see; but most of these directories are empty.
| + 100650 [vjoel@PA H. ] ./configure
| | + 100656 [pemmons@vo c] ../instruby.rb:138: private method `sub!' called for nil:NilClass
| | + 101066 [pemmons@vo c] It worked this time!
| |   101068 [cyclists@nc ] It's okay to delete them now. You can always get the tarball again from
| |   101161 [pemmons@vo c] Oh, I always keep the tarballs-- if not on the hard disk, then on some
| + 100659 [cyclists@nc ] Sometimes, but since you already have the tarball let's stick with that.
+ 100665 [unet@re x. o] People have already noted how you can find what path is

String: case insensitive comparison
100636 [BCoish@Dy ax] I noticed that use of $= to enable case insensitive string comparison
100639 [flgr@cc n. e] irb(main):001:0> ["aaa" <=> "Aaa", "aaa".casecmp("Aaa")]
100646 [BCoish@Dy ax] Thanks for the quick and informative response!

[Help] Problem with Ruby SOCKET API on OpenVMS
100638 [BCoish@Dy ax] TCP/IP socket routine(s) not functioning properly on OpenVMS.
100669 [matz@ru y- a] It's not OpenVMS specific.  Socket.gethostbyname() gives you packed

Sprites in RUDL
100640 [glenn_m_smit] My attempt at writing PACMAN was going smoothly but now I've stalled.
+ 100642 [linse428@st ] Well, an idea that requires less work is to keep the whole background
| 100738 [cpine@he lo ] This works for small numbers of moving sprites, but for larger numbers it is best to simply blit the whole background.
+ 100644 [flgr@cc n. e] 1) Blit all elements of the background to a background surface. (You
  100760 [glenn_m_smit] So you blit the whole background each time - doesn't that slow things down?
  100769 [flgr@cc n. e] Works like a charm. I'm getting good frame rates. Most games actually
  100859 [glenn_m_smit] Thanks to your help, Pacman is very much now back on track!  He's
  106201 [ruby-lists@l] if your bored...

Windows desktop app w/ simple db; how?
100649 [khaines@en g] Imagine that you had a very simple web based application.  It queries some
+ 100652 [surrender_it] well, you could use sqlite or one of the non sql databse (dbm or
+ 100657 [mneumann@nt ] I'm sure, Hyperlinks shouldn't be that hard to implement (underline the
+ 100663 [ahoward@no a] i'm using PStore to store up to 50,000 job entries for a distrbuted job
+ 100667 [carl@yo ng l] I can think of nothing better than sqlite.  It is amazingly fast,
| 100668 [hal9000@hy e] Someone was suggesting that to me the other day.
| + 100671 [khaines@en g] there was a good one available) and even used it's virtual machine a bit to
| | 100672 [carl@yo ng l] I've compiled and used Jamis Buck's sqlite-ruby module on windows.  It
| + 100673 [carl@yo ng l] Unfortunately I haven't used DBM so I don't know how to compare it.  I
| + 100674 [ahoward@no a] no - not as fast.  i keep looking at this too, but my tests can consistently
|   100704 [khaines@en g] Ara, would you mind sharing what it is that you are doing that is causing
+ 100680 [sdate@ev re ] to

Zero is true ... whoda thunk?
100653 [NoOne@No he ] I can't find anything in Programming Ruby to suggest why zero is treated as
+ 100654 [surrender_it] don't know the page, but you can safely assume that every object is
| 100679 [drbrain@se m] as
+ 100655 [msparshatt@y] The page you want is 223. The relevant passage is
| 100682 [cpine@he lo ] Actually, since 0 is an immediate value (like nil and false), it could be tested just as easily (as I understand it).  I would guess that the reason has more to do with elegance and simplicity.  In any case, aside from the "C does it that way" camp (whom we are obviously not catering to), why should 0 or any number be false?  (Why should "" or any string be false?  Why should [] or any array be false?)  Well, they aren't.
| 100683 [DocBoobenste] I believe the behavior was borrowed from Smalltalk (or was it Scheme?
| 100689 [Mike@De et T] Because in the real world, zero means false.
| + 100690 [david.naseby] if got_milk?  ... end
| | + 100691 [david.naseby] Bugger. I mean !@milk_volume.zero? of course.  So this whole problem could
| | | + 100692 [hal9000@hy e] Haha... well, the got-milk logic would mean that negative numbers
| | | | 100693 [david.naseby] You are just making the foolish mistake of assuming that just because my
| | | | 100697 [DocBoobenste] Well, we're deving into semantics here, and I don't want to start a
| | | | 100702 [bighead@us r] By far the best explanation IMHO.
| | | + 100698 [harryo@qi so] Do you do anything "normally" :-) ??
| | | + 100776 [drbrain@se m] don't
| | |   100831 [nick@ac iv h] nonzero? returned nil instead of false for me. Shouldn't it return false?
| | |   100832 [DocBoobenste] 8< ----- snip -----
| | |   100898 [angus@qu va ] [Claus Spitzer <DocBoobenstein@gmail.com>, 2004-05-20 02.53 CEST]
| | |   + 100901 [DocBoobenste] Well, it's just a matter of grammar. zero? could have been implemented
| | |   + 100949 [burtdav@ho m] I've said this elsewhere in the thread, so just briefly here: true/false can
| | |     100965 [dblack@wo bl] There's no nil/object dichotomy, though; nil is an object.  It's handy
| | |     + 100977 [danj@3s el c] I found this problem thorny when trying to export true/false to a
| | |     | 101098 [bob.news@gm ] "Dan Janowski" <danj@3skel.com> schrieb im Newsbeitrag
| | |     + 100988 [burtdav@ho m] David A. Black> There's no nil/object dichotomy, though; nil is an object.
| | |       101004 [discord@ma .] Nil is the object that stands in at roll call and says "um, he's not
| | + 100725 [tim@ba es id] This "geeky kind of logic" comes from back in the bad old days when
| |   100730 [app1tam@up .] -> -----Original Message-----
| |   100755 [discord@ma .] Ruby does not have booleans; There is true and false, but you will
| + 100709 [surrender_it] Following your logic there should be a to_bool() method for every
| + 100715 [bob.news@gm ] "Michael Geary" <Mike@DeleteThis.Geary.com> schrieb im Newsbeitrag
| + 100719 [dblack@wo bl] The real world is highly overrated as a template for programming
| | 100731 [ahoward@no a] how right you are - see below.
| + 100756 [maryinuet@ya] and
| | + 100758 [discord@ma .] Honestly, I think that the comparison operator is a counter-example for
| | + 100763 [kristof@vl e] Perhaps that's because most libraries, extensions end interfaces are
| | + 100810 [comp.lang.ru] _ I think this issue is a Licorice Test[1] for Ruby. To me it's
| | | 100822 [pit@ca it in] Agreed.
| | | 100827 [dblack@wo bl] I'm not sure about these equivalencies, though.  "if x" is not the
| | | 100836 [pit@ca it in] That's why I made the distinction between testing "normal conditions" (true /
| | | 100892 [app1tam@up .] -> -----Original Message-----
| | + 100834 [furufuru@cc ] I agree that if numbers are always evaluated to true, it's better
| + 100762 [bg-rubytalk@] if (milk_qty > 0)
|   + 100766 [jgb3@em il b] Beautiful and well-thought-out explanation. Thanks!
|   | 100777 [Steven@ru y-] a = SomethingReturningANumber()
|   | + 100783 [jgb3@em il b] Sorry -- I mispoke. My "force" I meant that Ruby requires you to do
|   | | 100789 [msparshatt@y] The problem with this there are a number of methods which return a
|   | + 100829 [nick@ac iv h] If the sematic meaning of if (object) is existence or non-existance
|   + 100774 [drbrain@se m] =20
+ 100707 [burtdav@ho m] The Pickaxe Book reference has been given, but I'd like to point you to

Re: ruby/google troubles
100660 [nahi@ke na t] It's the problem of old soap4r module.

Thanks to both Mark and Gabriele
100661 [NoOne@No he ] Thanks for your responses.  Thanks especially to you,  Mark,  for the

read only instiki
100664 [Ara.T.Howard] */15 * * * * /dmsp/reference/bin/ruby /home/ahoward/shared/instiki-0.8.9/instiki.rb -p 4242 > /dev/null 2>&1
101044 [david@lo dt ] I'm not entirely sure I understand the problem as you describe it. When
101064 [beast@sy te ] *googles on SubEthaEdit* Now that's interesting.. Now I want Emacs to

RMagick jp2 problem
100676 [Ara.T.Howard] ~ > cat tiff2jp2
100681 [cyclists@nc ] Ara, what release of ImageMagick are you using? What release of the jasper
100688 [ahoward@no a] tim-
100722 [cyclists@nc ] Yes, this is almost certainly an IM<->jasper issue. I'll be glad to send
100746 [ahoward@no a] thanks alot tim.
100818 [cyclists@nc ] Ara, I received your email at my home address but my reply to your .gov
+ 100825 [cyclists@nc ] (Yeah, I know I shouldn't follow up my own posts.)
+ 100844 [ahoward@no a] yes - i've done this but can subseqently show a diff of the bands using envi
  100870 [cyclists@nc ] Assuming you want to compare entire images and get a single result, you

RCR: UNIX credentials
100677 [guslist@fr e] ...
+ 100687 [matz@ru y- a] I like the idea.  But I don't want to merge it if it's Linux
| 100713 [guslist@fr e] Two ideas.
| + 100720 [andre@di ir ] According to David Wheeler[1] this is a Linux-only thing.
| + 100723 [decoux@mo lo] obsd% ruby -vrsocket -e 'p Socket::SO_PEERCRED'
|   + 100729 [Austin.Ziegl] There is also a way -- I'm not sure HOW offhand -- to get some/most of
|   + 100734 [decoux@mo lo] I've forgotten to say : look at src/backend/libpq/hba.c in the PostgreSQL
+ 100742 [akr@m1 n. rg] I surveyed the feature sometime ago.
  100780 [guslist@fr e] So, should we implement a UNIXSocket#getpeerid method, using getpeerid()
  100983 [akr@m1 n. rg] Oops.  It's getpeereid, not getpeerid.

runaway memory in extension
100686 [quixoticsyco] require 'mkmf'
100696 [vjoel@PA H. ] free(data);

IronPython: A fast Python implementation for .NET and Mono
100699 [ptkwt@ar cn ] This should be of of interest to those who would like to see a .NET
+ 100703 [bighead@us r] Hey
| 100914 [ser@ge ma e-] ...
| 100960 [careck@ci cl] I think it's always safer to not trust MS in any way. Trust can only
| 100984 [matz@ru y- a] They bought Ruby, and renamed it as Visual Basic.
| 100985 [neoneye@ad l] Simon Strandgaard
+ 100710 [surrender_it] still, python uses less magic than ruby.
  100779 [feldt@ce ch ] I'm not very much into Python but I agree that it seems to have less
threads.html
top