88746-95006

88551-88946 subjects 88968-93974

binary data
88746 [alwinblok@fa] I'm new to ruby. I'm learning it and it seems to be a very nice
+ 88826 [alwinblok@fa] Is my question to hard or to easy to answer? Can someone please
| + 88840 [jgb3@em il b] I'd be interested in an answer to this one, too, from someone who is "in
| + 88841 [davel@ca uc ] I don't know of a more appropriate method, but what about
+ 88856 [me@pr va y. ] very old coding style, may be of interest
  94047 [dooby@d1 .k ] Like Neil said ...
  94934 [alwinblok@fa] I was playing wih the framebuffer device, using pack, I was able to get
  95006 [dooby@d1 .k ] For that specific case, 2 x putc

Property files
88747 [rcoutts@en i] Is there a library class for handling common property files that have
+ 88763 [ng@jo nw on ] ___________________
| 89024 [jrb3@ei og n] I have a simple one accessible through acceptor.tigris.org/.
+ 88862 [bob.news@gm ] "Ron Coutts" <rcoutts@envistatech.com> schrieb im Newsbeitrag
  88864 [andre@di ir ] s.sub!(/=$/, '')
  + 88865 [andre@di ir ] Well, i could also do
  + 89569 [bob.news@gm ] "Andre Nathan" <andre@digirati.com.br> schrieb im Newsbeitrag

ruby 1.8 on MAC OS X
88752 [vanjac12@ya ] Has anyone posted an installer package for ruby 1.8 for MAC OS X (10.2.8
+ 88769 [dave@pr gp o] If you install the developer tools, it builds out of the box.
| + 88790 [jim@fr ez .o] For 10.3.x, does this mean install the xcode CD?
| | 88796 [rich@in oe h] Yes...the xCode CD.  As a bonus, the xCode editor syntax highlights
| + 88797 [rich@in oe h] ...
+ 89130 [digibren@ma ] I will try to update it for 1.8.1 soon.
  90001 [vanjac12@ya ] Brennan;
  90012 [DDouthitt@cu] Fink stores everything in /sw - keeps it clean and out of the way.  You can also install Ruby via Fink, as well as XFree86 I think.  On my iBook I, too, went install-happy: I've all of KDE, including KOffice, on my iBook ;-)
  90064 [vanjac12@ya ] I put /sw/bin  and /supp/bin  in my PATH (before the path that has ruby 1.6)

getaddrinfo :: ?
88765 [chrismo@cl b] I'm tinkering around with Borges on my XP box and one of the first
88767 [chrismo@cl b] I replaced the Borges/WEBrick.rb code with localhost and it gets past
88768 [chrismo@cl b] I'm guessing this is older Borges code with newer WEBrick code. This is
88775 [drbrain@se m] =20
88777 [drbrain@se m] Oh, ha! I lied, I fixed this _after_ alpha3 (about 5 minutes after) :(

amrita question
88772 [carl@yc .b z] I'm having a weird problem with amrita.  I need to have the contents of
+ 88774 [donquach@mu ] You can use attribute expansion by placing an "@" in front of the word
+ 88820 [ahoward@ng c] amrita is very smart, if you do not specify new content it does not delete

Slurping a file like in Perl
88776 [xeno@es im .] I want to slurp up two files and substitute one file in another for a symbol
+ 88779 [contact@ma k] There was a very interesting article about file slurping on perl.com
+ 88782 [gsinclair@so] You can slurp a file with File.read(path), and perform a substitution

Is Ruby FAQ down
88780 [leikind@mo a] The Ruby FAQ http://www.rubygarden.org/iowa/faqtotum seems to be down.
88792 [chad@ch df w] # Hello all,

TkText freezes
88781 [me@pr va y. ] Running On i686 Linux
+ 88783 [decoux@mo lo] Can you run it under gdb and give the backtrace when it crash ?
| 88794 [me@pr va y. ] The program will not accept keystrokes when attached to gdb
| 88795 [decoux@mo lo] Well, here an example (~/b.rb is the example that you have posted)
| 88798 [me@pr va y. ] cut ...
| 88799 [me@pr va y. ] got it running under gdb cannot get it to segfault
| 88800 [decoux@mo lo] Well, under gdb don't run it with -d (it's important because this can slow
| 88808 [me@pr va y. ] Thanks Guy you have been most helpfull, my Penetium II is slow by todays
+ 88807 [matz@ru y- a] Currently I suspect this is caused by LinuxThread bug.  I tried hard
  + 88809 [me@pr va y. ] My glibc is glibc-2.3.2-14mdk on mandrake 9.2 I have a mandrake 9.0
  | 88812 [me@pr va y. ] On Mandrake 9.0  glibc-2.2.5-16mdk seg faults far easier on second key
  + 88829 [decoux@mo lo] I'm probably wrong, but I don't think it's related to pthread.
    88830 [matz@ru y- a] We have two problems, one that crash, and the other that block.  The
    + 88831 [decoux@mo lo] Well, the backtrace when it block (I send it ^C when it don't display
    | 88833 [matz@ru y- a] The backtrace tells me little.  The patched Ruby and tcltklib.so
    | 88834 [decoux@mo lo] Well, the problem is that it was 1.8.1-preview4 : it was really easy to
    + 88832 [decoux@mo lo] I don't know if it's related (I've applied the patch)
    | 88835 [decoux@mo lo] OK, I've found. There were an old strscan in site_ruby
    + 88855 [me@pr va y. ] A patched  ruby 1.8.1 (2003-12-05) [i686-linux] works fine for me on
      88861 [decoux@mo lo] You are lucky :-) your tcl/tk don't use pthread, this can be seen in
      88871 [me@pr va y. ] I'm happy and lucky it is an obscure personal program only of interest

testing rake
88788 [raphael.baud] I'm testing rake. I found it promising, but I've got I problem with defining a rule.
88801 [jweirich@on ] No, the docs are wrong.  There was a typo in the rule.  It should state

Re: Configuration Files
88793 [wmwilson01@h] Doesn't this have some security implications?  I'm not really sure that I
+ 88803 [ng@jo nw on ] code
+ 88863 [bob.news@gm ] "Mike Wilson" <wmwilson01@hotmail.com> schrieb im Newsbeitrag

Is there a way to use "def self.new" to do the job of "def initialize"?
88805 [sross@co ne ] In Ruby, if I want to make an instance of a class C, the syntax is
88806 [jgb3@em il b] Well, keep in mind that in C.new, @a is not accessible.  Thus, unless
88810 [sross@co ne ] Thank you. I agree it does feel "klunky". But it can be done. Very cool.
88824 [aredridel@nb] It has its uses. Look in the net/http code and you'll find some clever

rubynet-announce Digest, Vol 10, Issue 1
88813 [rubynet-anno] Send rubynet-announce mailing list submissions to

[ANN] ruby 1.8.1
88814 [matz@ru y- a] Merry Christmas,
+ 88816 [andrew@wa ro] Excellent! Great work and Merry Christmas!
+ 88817 [tom@in oe he] Thanks, and Merry Christmas!
+ 88818 [armin@xs .d ] Thank you for the great Xmas present!
+ 88821 [jbritt@ru y-] I've mirrored it at ruby-doc.org
+ 88823 [harryo@zi .c] Just downloaded and built it on my Redhat 9 system.  Works like a charm.
+ 88825 [aredridel@nb] Checked in to PLD's builders.  Looks great!  (And I'm happy to see rdoc
+ 88837 [decoux@mo lo] It don't like Solaris
| 88889 [admail@rs eg] I compiled OK under Solaris 2.8 just using ./configure with no
+ 88849 [sdate@ev re ] Wish you all Merry Christmas and a very Happy New Year !
| 88850 [nakahiro@sa ] Hmm.
| 88851 [sdate@ev re ] "NAKAMURA, Hiroshi" <nakahiro@sarion.co.jp>
| 88852 [nakahiro@sa ] Hmm.  mac.csv is broken.  "\r\n" between records must be "\r".
| 88869 [sdate@ev re ] "NAKAMURA, Hiroshi" <nakahiro@sarion.co.jp>
| 88897 [nakahiro@sa ] Eban-san tells me that winzip extracts "\r" in a file as "\r\n"...
+ 88911 [ gm@na el gr] This is an excellent Xmas gift! Thanks a lot!
+ 88938 [kero@ch ll .] $ ./configure --enable-shared --prefix=/usr/local
| 88939 [matz@ru y- a] Did you try ldconfig?
| 88942 [kero@ch ll .] I should have...
+ 89049 [usenet@an re] % cd test
| 89051 [decoux@mo lo] Well, can you run it under gdb and give the backtrace.
| 89052 [usenet@an re] I tried it again, and the problem has disappeared... it's possible that
| 89095 [nakahiro@sa ] It's a stupid bug of the test.  Won't be happened next day.
+ 89108 [djberg96@ho ] Anyone wanna submit a story to slashdot?  I dunno the changelog

Drb session problem
88815 [carl@yc .b z] I'm using DRb for my CGI session store class, as described on the Ruby

[FYI: historic] The desicive moment of the language name Ruby. (Re: [ANN] ruby 1.8.1)
88819 [maili31s@cl ] Thank you matz.

[ANN] soap4r/1.5.2
88827 [nakahiro@sa ] Release Note: http://rrr.jin.gr.jp/doc/soap4r/RELEASE_en.html

Happy Holidays
88836 [jbritt@ru y-] Here's hoping everyone finds peace and happiness in the new year.
88843 [ jupp@gm .d ] 'finds' or 'seeks' that is the question.

[ot] Re: Happy Holidays
88838 [neoneye@ad l] Already found utopia:  Ruby-1.8.1, seen all episodes of LOTR, seen all
88839 [zdennis@mk e] Aye...Merry Christmas!!!
88842 [gsinclair@so] ruby-doc.org of course!
88857 [neoneye@ad l] Simon Strandgaard

Anyone has IniFile?
88847 [andre@di ir ] Today I tried to download IniFile[1] from the RAA, but the available link
88965 [andre@di ir ] interested in my addition below as well.

Potential Outlets- Contact Info.
88866 [Lennie@kw kp] 1) Welcome - 0227133151

When do pragmatic  programmers port for win32 ?
88867 [orlovdn@ra b] For Ruby 1.8.1
88870 [dave@pr gp o] I forwarded this on to Andy, who does these ports. He's been traveling,

analog of the JPOS (Java[tm] based financial transaction library/framework)  on Ruby
88868 [vladare@ya o] Is there someone who working with a ISO financial protocol ?

dbdbd installation help please
88872 [jpaish@fr en] has anyone successfully installed dbdbd?  this program has just the right level of simplicity and
+ 88873 [decoux@mo lo] It's too old your ruby :-)
+ 88874 [cyclists@nc ] 1.6.2? Really? It's possible that such an old version of Ruby didn't
  88890 [redman@ac es] I also have tried installing dbdbd and I am running ruby 1.8.0
  + 88893 [dblack@wo bl] Ugh.  Let me look into it.  It won't be immediately though... but can
  + 88899 [dblack@wo bl] I've now looked at it and, I hope, massaged things back to working

Rinda Notify
88875 [cc1@ce .w st] I am curious to know if there is any english documentation for Rinda,

ruby-mode font-lock trouble on Gnu Emacs 21.3.1
88876 [samuel@al en] I've been using ruby-mode along with a number of different Emacsen over the
88882 [samuel@th ug] Upon closer inspection, the fix I saw was for a really old version of
88883 [matz@ru y- a] Perhaps we forgot to apply the fix.  Where did you find the patch?
88888 [samuel@th ug] I doubt that's the case.  This was from back in 2001.  It was on the ruby-talk
88923 [joey@jo yg b] I have also seen the problem with using #{} messing things up. The 'fix'
88928 [samuel@th ug] Yeah, I've done similar things.  I also, sometimes, simply assign the string to

newbie question on how to subtract two dates.
88877 [ruby4lover@y] ...
+ 88878 [cyclists@nc ] Check out the Date class.
| 88880 [jgb3@em il b] You just need to subtract (or add) the number of seconds you want from a
| 88881 [gsinclair@so] Thanks for the tip.  I'll update the docs soon.
+ 88905 [rocioestrada] require 'date'

array operations
88884 [ferenc@en ar] What comparison (equality) the array operation '-' based on? I tried to
88886 [matz@ru y- a] Close.  It uses "eql?" internally, since comparison is done using
88887 [ferenc@en ar] What does hash comparison mean? I have read the Object#hash and
88903 [samuel@th ug] Hash comparison means that it compares the value of Object#hash for each
88909 [ferenc@en ar] Sorry, I didn't look in the source, yet, but I have made some

Matz' interfview part #3
88892 [surrender_it] Yet another gift for you, rubyists,

equal? vs eql? vs ==
88894 [samuel@al en] I'm working on writing a set of classes that implement weak versions of Hash,
88896 [surrender_it] ri is you friend ;)
88902 [samuel@th ug] You know, I read that.  For some reason I did not register the word "not" in

Curry
88895 [mhm26@dr xe ] I searched google groups and couldn't find a decent currying
+ 88906 [sdate@ev re ] So how do I use it ?
| 88907 [sdate@ev re ] Replying to my own post :-)
+ 88908 [mhm26@dr xe ] After receiving an email, I realized two things.  I didn't explain
  88915 [sdate@ev re ] Yes, that is a great improvement. I like your version better :-)

Closures and Letrec
88898 [cc1@ce .w st] Is there a way to create recursive anonymous closures in ruby?  For instance
+ 88900 [jweirich@on ] Actually, even does know about even because Ruby sees an assignment to
+ 88901 [dagbrown@LA ] Sure, you just have to remember about The Miracle Of Duck Typing, and

The great ri conversion... :)
88904 [dave@pr gp o] ...
+ 88914 [sdate@ev re ] I tried it on Windows ! It worked !! Well, almost (see below ;-)
+ 88916 [uehli@bl ew ] uehli@ueh-t ruby $ rdoc --ri *.c
  88917 [dave@pr gp o] Excellent! Thanks for the report. I'd never tried running with warning
  88931 [uehli@bl ew ] When I try to rdoc --ri the _whole_ ruby source dir (which is probably
  88935 [decoux@mo lo] No, for me the problem is in syck.
  88951 [uehli@bl ew ] You're right, I was just too lazy to check.

New to Ruby
88910 [GGarramuno@a] other scripting languages such as tcl, perl and python.
88912 [decoux@mo lo] There are the methods Module#{,public_,private_,protected_}instance_methods

RubyCocoa and Panther - almost
88913 [aaawww_its_m] the past few days I've been trying to get RubyCocoa working under

Command line parsing module
88918 [GGarramuno@a] Thanks for the answers to my previous questions.
88919 [gsinclair@so] OptionParser (require 'optparse' in the standard library) does a great

forum & binary cgi
88920 [jaap@st ck n] 1. I read and printed a png image from disk and printed it to the
88921 [gsinclair@so] print "Content-type: image/png\n\n"
88922 [jaap@st ck n] Thank you very much. It works if i add STDOUT.binmode

TOP TEN STORIES FOR 2003
88924 [phasis68@ko ] I want to know what is happened in Ruby in 2003.
88925 [jbritt@ru y-] I don't have dates, details, or any special order , but here are some

Bug in session.rb?
88926 [carl@yc .b z] I think I may have found a bug in ruby/1.8/cgi/session.rb.  In the
88929 [matz@ru y- a] flock would be released when you close the port, thus don't forget to

Session question(s)
88927 [carl@yc .b z] Is there a way to tell the session class to store the session ID in a
88932 [matz@ru y- a] I thought cookies would disappear unless you explicitly specify

Defining/Deleting variables
88930 [GGarramuno@a] Okay, I am trying to clarify the use of nil in Ruby.
+ 88933 [matz@ru y- a] No.  Variables live as long as enclosing scope lives.
+ 88947 [austin@ha os] Why?
  + 88948 [sdate@ev re ] @name =  ((defined? name and name) or "unknown")
  | 88953 [bystr@ma .c ] Very true. Some time ago I spent considerable amount of time to finally
  + 88962 [GGarramuno@a] 1) Memory
    88988 [austin@ha os] This is not a reason to worry about this with Ruby. Variables aren't memory

Inconsistent value of uninitialized variable
88936 [gsinclair@so] x         # NameError: undefined local variable or method `x' ...
+ 88937 [matz@ru y- a] It's just application of the simple rule "local variables are defined
+ 88944 [nathaniel@ta] Isn't it this behavior that makes it possible to define a recursive
| + 88952 [gsinclair@so] I don't believe so, because the 'x' in question above is not being
| + 88970 [martindemell] This is not a proper recursive block - for instance
|   88971 [nathaniel@ta] "Not proper" might be strong language, but yes, it could definitely be
|   + 88974 [batsman.geo@] => #<Proc:0x401af0f0@(irb):3>
|   + 88975 [martindemell] Sorry. Actually, you're right - this'll cover nearly every case in which
+ 88945 [ajohnson@cp ] Just recently there was a discussion on using procs that referenced
+ 88949 [holmberg@ia ] I had a similar problem a while ago that also took time to debug.

system()
88940 [Jesper@Je pe] system("ls>out.txt")
88941 [decoux@mo lo] Well, if system return false this is not because $SAFE = 1 but probably
88973 [jolsen@ma l2] Thanks Guy,
+ 88976 [decoux@mo lo] no, no : a P language has something similar.
+ 88986 [ahoward@ng c] </snip>

DearPartner: New personal dating system
88950 [mailman@se v] This is from your DearPartner.

An addition to Array (or Enumerable)?
88954 [harryo@qi so] Yesterday, I wanted to get the output from "ls -l some_file" and pull out just the file size and the file name. As I start writing this, I realise, of course, that I'd have been better off just using the File#size method, but I still think the issue I hit is interesting.
+ 88955 [bystr@ma .c ] listing = `ls -l #{path}`.split
| + 88956 [gfb@to es ft] Oops, just checked that in final Ruby 1.8.1 it should be
| | + 88959 [harryo@qi so] Thanks!
| | | 88961 [gsinclair@so] The "join" method is redundant unless you have modified the output
| | | 88964 [harryo@qi so] Thanks.
| | + 88963 [dave@pr gp o] It changed...  :)
| |   88979 [uehli@bl ew ] The text is ok.
| |   88983 [dave@pr gp o] Thanks! My fault for being lazy when cut'n'pasting from values_at.
| + 88957 [gsinclair@so] [Gennady:]
+ 88958 [cyclists@nc ] irb(main):001:0> x = ['A','B','C','D'] => ["A", "B", "C", "D"]
  88960 [harryo@qi so] Sure, that would work.

RDOC generation broken in 1.8.1
88966 [ xxx@xx .n t] I'm very new to Ruby, but I have successfully built and installed Ruby 1.8.1
+ 88967 [dave@pr gp o] Sorry about this: we're in the middle of a process of transition, and
+ 89038 [dave@pr gp o] This is fixed in the latest CVS: it was a conventional bug (jcode
threads.html
top