30743-32576

30512-131829 subjects 30922-33253

Severe issue with two Threads and load and eval
30743 [frodo.hobbit] I have trouble with executing load and eval in two concurrent Ruby Threads.
+ 30744 [erik@ba fo s] Hmm.. It works here on a linux-box...
| 30749 [pit@ca it in] On my Windows NT with ruby 1.6.4 (2001-06-04) [i386-cygwin] it
| 30754 [frodo.hobbit] "Pit Capitain" <pit@capitain.de> schrieb im Newsbeitrag
| 30755 [decoux@mo lo] This is a well known problem, use a Mutex
+ 30763 [frodo.hobbit] The keyword for this is "autoload and Thread" - refer

New to Ruby - doing Web project
30746 [dcorbin@im e] I'm starting to learn Ruby, and I've decided on a small web/integration
+ 30747 [jfontan@ce g] I don't know if there's a "direct" way to do it, but mount and umount can be
+ 30748 [armin@ap ro ] There are several different ones at http://www.ruby-lang.org/en/raa.html
+ 30797 [chadfowler@c] It's been a long time since it's been touched, and was written early in my
  30807 [james@ru yx ] On a side note, I'm trying to track all XML-related ruby projects at rubyxml.com

Fixing RUDL C extension and Ruby for Visual C
30750 [danny@fr uk ] A few days ago I've tried to get my extension library to work with Visual
+ 30751 [martin@op us] I built RUDL a couple of months ago with Ruby1.6.5 on win2k with vc6.0. It
+ 30762 [nobu.nokada@] How did you edit?
  30778 [danny@fr uk ] win32\makefile looks like this (rubyw_install_name was added manually)
  30781 [nobu.nokada@] It's not needed (OK to be), append this line at last instead.

DBI::InterfaceError: Unsupported Type (typeid=1034)
30752 [mmaciaszek@g] While experimenting with DBI and my PostgreSQL database I
+ 30775 [alan@di ik t] I don't know if this matters, but you're missing a ';' at the end
+ 30799 [jweirich@on ] The column named relacl in the pg_class has a type ID of 1034.
  30838 [mmaciaszek@g] I don't really need the relacl column. I was just experimenting

Ruby books
30753 [Stephan.Kaem] Seems that Dave & Andy's "Programming Ruby" is translated to German
+ 30756 [james@ru yx ] idioms and colloquial use. Basically, an author's style.
| 30828 [rcena@ep or ] Speaking of translations, Matz original Ruby manual, which someone
+ 30757 [Dave@Pr gm t] It was of interest to me too! I had no idea this was in the
| 30758 [mjais@we .d ] this is sort of strange, I think. why do the publisher not inform
| 30806 [james@ru yx ] Wouldn't they need to tell you that you were getting additional royalties?
| 30813 [Dave@Pr gm t] International sales take forever to appear on royalty
| 30814 [sergei@do ma] Wow! Could you tell more about russian version?..
| 30815 [Dave@Pr gm t] Sorry - all I know is I was chatting with our editor and he mentioned
+ 30759 [mjais@we .d ] do you know, if there will also be a free online version of the german
  30764 [Stephan.Kaem] Check
  30766 [tobiasreif@p] got mine today :)

regexen for strings that can be converted to numbers
30760 [tobiasreif@p] what are the regexen for strings that can be converted to various types
30767 [nobu.nokada@] class String
30770 [tobiasreif@p] Elegance lies in the beauty of condensed truth :)

Hexadecimal float (Re: regexen for strings that can be converted to numbers)
30772 [nobu.nokada@] I found;
+ 30787 [paul@at es .] 3 The expected form of the subject sequence is an optional plus or
+ 30853 [Stephan.Kaem] At least it doesn't work that way on my Win2K box running the Pragmatic Ruby
  30880 [paul@at es .] Perhaps the C89 standard did not allow this to occur?  If so, then this

Question about RubyCocoa and GnuStep
30782 [ptkwt@sh ll ] that says that basically Cocoa is the name for the OpenStep API and that
30784 [gehlker@fa t] I'm poking around in the RubyCocoa source right now trying to see why this
30786 [cjack@cj ck ] In theory, it's possible to do this, but it would be a significant amount of
+ 30817 [gehlker@fa t] I think this overstates. Foundation pretty much works. At least my code
+ 30842 [Laurent.Jull] As the author of RIGS (Ruby Interface to GNUStep) I think Chris
  30855 [hisa@im sy o] "Cocoa or GNUStep application (.app) written by Ruby has compatibility
  30909 [laurent@mo d] Yes this is the long term objective.
  30933 [hisa@im sy o] Feel free to ask me, too. And the following URL may be helpful for

Embedding in multithreaded win32 app?
30783 [melis@cs ut ] What I have is a research tool that runs a physical simulation while using a

Something ODD with UDPSocket - Five second wait?
30788 [ralph.mason@] Here is an odd thing, so odd that I am sure it must be something I am doing
30844 [daniel@ze ed] I don't know enough about Ruby's UDPSocket internals, but "I get an X second wait"

Build question: confused about ext/Setup and static linking
30789 [ptkwt@sh ll ] I was under the impression that if you want a module that is named in
30798 [nobu.nokada@] That's right.
30802 [ptkwt@sh ll ] Because it looks like if I uncomment the line that library is dynamically
30831 [nobu.nokada@] I see.  You confuse WHAT would be linked statically.  It does
30836 [ptkwt@sh ll ] I think so... so it means that there is a curses.so created under ext, but

dup, clone, and "deep copy"
30790 [200201151515] I see that Object#dup creates a new object and copies its instance

When trying to pack Ruby scripts in one .exe file under Windows.
30792 [abrantes.car] I am trying to pack into a single .exe file (i use Ruby 1.6.5 cygwin distrib
30793 [ps@ra ia .m ] I have looked into this a bit. Me and Robert Feldt discussed this on the list
30800 [abrantes.car] Thank you for your answer,
30808 [ps@ra ia .m ] I guess not, I haven't got a windows box so a windows solution isn't something

Re: [ANN] rpkg 0.1 (long!)
30803 [kero@a2 07 .] Cool. What's wrong with dpkg? Don't tell me RH ppl do not have
+ 30805 [elanthis@aw ] dpkg == overkill
+ 30832 [list@ch om t] I suppose nothing is wrong with dpkg, provided that it runs on
  30972 [kero@ch ee .] OK, I never tried compiling dpkg for Windows (heck, I don't use Windows
  30976 [list@ch om t] They are, in fact.  I just wonder whether a few hundred lines of Ruby
  30980 [kero@a2 07 .] Hehe :)  As said, I do not use Windows, so I 1) do not know what is
  31003 [list@ch om t] Can't blame you for that. ;-)
  31086 [ser@ge ma e-] Massimiliano,
  31097 [list@ch om t] LOL, you're absolute right, a hard installation for a program that
  31328 [ser@ge ma e-] Thanks.

Where do I find RubyWrap
30811 [spanton7@at ] Where do I find the programRubyWrap for packaging a set of ruby codes for
30946 [ptkwt@sh ll ] Phil

ANN: REXML 1.2.5
30818 [ser@ge ma e-] Guten Abend,

REXML ANN URL fix
30819 [ser@ge ma e-] <sigh>  Even my announcements have bugs.

(DBI || RUnit || Ruby || My_Understanding).bug?
30824 [z4k4ri4@bi f] Is it a bug or not?
30837 [200201152332] Try overriding eql? as well as ==.

When it comes to packing Ruby script files in one .exe under Windows.
30825 [alexandre.ab] I am trying to pack into a single .exe file (i use Ruby 1.6.5 cygwin distrib

SysV::IPC
30826 [ahoward@fs .] has anyone written an interface to SysV::IPC?  if not, are any others
31165 [j.travnik@sh] see

Extension with C++
30827 [mahinakhon@h] I'm a beginner in programming Ruby.
+ 30858 [tony@pe fo c] Marrying Ruby and C++ can be a little awkward as Dave and Andy mention in the
+ 30863 [elanthis@aw ] It's actually not all that difficult; you just need to make C wrappers

Question on rbconfig.rb
30833 [info@ch om t] What is the purpose of CONFIG['datadir']?

What is the best way to learn Ruby?
30839 [moontoeki@ao] What is the best way to learn Ruby?
+ 30840 [dempsejn@ge ] code.
+ 30865 [comp.lang.ru] - - Don't study to much. Just start writing... If you've
+ 30900 [mkelly2002NO] If you want to learn the Smalltalk type features
| 30901 [armin@ap ro ] I suggest you try to find a tiny project and try to code it
+ 32564 [quadzero@us ] <snip, for brevity>
  32576 [info@mj is d] I think one way is to read existing code. go to the Ruby application archiv

The * operator...
30841 [sean@ch tt n] What's the * operator called when used in a method's arguments?
+ 30843 [matz@ru y- a] Unary * in actual argument list is a syntax, not a method.  It expands
| 30846 [hal9000@hy e] Hmm. I wonder if Sean is one of those people (like me)
| 30852 [matz@ru y- a] I think it's still not an operator.  I'd name it the "array expansion
+ 30879 [matju@sy pa ] I would say that this unary * is not an "operator", or at least, not at
  30887 [tobiasreif@p] that sounds interesting.

Plz Help: Ruby and IIS
30847 [       A@A. ] I have been searching for days for a way to get eRuby to pass its
+ 30850 [anany@ec .v ] I sense much NT in you.
| 30926 [       A@A. ] I got this installed and working, however im still left with the
| 30932 [james@ru yx ] Do your files have the .asp extension?
+ 30862 [james@ru yx ] I had problems running ActiveScriptRuby, where Ruby libs/classes could not be found.

Interspersed quotes (was Re: The Ruby Way)
30851 [hal9000@hy e] I hope you are right, and I hope that includes Outlook Express and

respond_to? and public/private
30857 [holmberg@ia ] The Object#respond_to? method has a second boolean flag that tells
+ 30886 [paul@at es .] This definitely seems like a problem.  Your solution makes sense,
+ 30985 [matz@ru y- a] Do you mean
  31133 [holmberg@ia ] I was rather "naive" and looked for some way to decide if a method
  31155 [matz@ru y- a] A bug.

Question: How to wrap pipes to struct in c-extensions
30859 [mulperi@ik .] I'm wrapping a c library to ruby class. There is one sturct like
30861 [decoux@mo lo] Well, you really want to have a Struct object ?
30864 [mulperi@ik .] I just happended to look ext/etc module, but yes I could use Data

rpkg directories fix
30860 [list@ch om t] Dave and others: I've just uploaded a fixed rpkg that uses rbconfig to

Dir.entries have no home
30866 [ronjeffries@] def filesUnderManagement
+ 30870 [dblack@ca dl] It would be mildly out of character for me to post what turns out to
+ 30874 [list@ch om t] Stumbled over this in rpkg just a couple of days ago and did about the
| 30875 [dblack@ca dl] Which reminds me...  In Ruby 1.7.x you have the block form of Dir.chdir,
+ 30903 [ronjeffries@] Thanks David and Massimilano for your interesting and helpful replies.
| + 30905 [STUCKNER@MU ] This is a very legitimate concern. I have wanted to know which files have
| | 30911 [ronjeffries@] Problem with a File object, if I understand it, is that it's open. I
| + 30917 [Dave@Pr gm t] and/or...
| | + 30918 [dblack@ca dl] There's a rejected RCR (from me :-) that proposed a second argument to
| | + 30992 [ronjeffries@] Yes. Or maybe Dir itself is the wrong model. Some files are
| | | + 30995 [tobiasreif@p] Tobi
| | | + 31012 [Gareth.McCau] Some. It's true in Unix (in all its many varieties), although
| | |   31158 [nobu.nokada@] Under MacOS, : for current, :: for parent, ::: for parent of
| | + 30999 [matz@ru y- a] <snip method names>
| |   + 31006 [dblack@ca dl] I certainly think we should be thinking mainly about adding things,
| |   | 31011 [ptkwt@sh ll ] Or some already existing code could be broken...
| |   + 31018 [list@ch om t] Or maybe there is good reason to the addiction.  :-)
| + 30928 [list@ch om t] I don't know, but the snippet I reported works under 1.6.6, and the
| | 30993 [ronjeffries@] Yes a FileDescription is just what I'm talking about. I think I recall
| + 31004 [list@ch om t] Does this help you?  Should be pretty portable, too.
|   31038 [list@ch om t] Some afterthoughts...
|   31043 [ronjeffries@] I'm not seeing what you envision as the difference in responsibilities
|   31067 [list@ch om t] FileHandle would fulfill FileDescription's role, too.
+ 30919 [dsafari@xt a] I too have found file operations to cumbersome. It seems to me like my mind

SMB client library
30867 [ps@ra ia .m ] has anyone been working on a smb client library for ruby? i can't seem to find
30889 [hefa@us rs s] Quite funny you'd ask. I was planning on releasing it tomorrow... =)
30914 [ps@ra ia .m ] sometime the world just smiles at me - this now and this morning i got a 6gb

"each" in iterator: confusion
30869 [alwagner@ua ] I do not understand why this code runs forever.  Is it because
+ 30877 [dblack@ca dl] The problem is right there.  When you say 'super', you're calling
+ 30878 [Dave@Pr gm t] 'super' is not a pointer to the superclass's vtable, but the name of
+ 30881 [alwagner@ua ] Ah, hah!  Thank you both.  It seems so obvious when you point it

File management routines?
30872 [list@ch om t] Is there any collection of file management routines, such as recursive
+ 30899 [chris.morris] I don't know of such a collection, but I've got a delTree method I can
| 30930 [list@ch om t] Thanks a lot. :-)
+ 30941 [ptkwt@sh ll ] Check http://www.rubycookbook.com
| 30950 [kjana@dm la ] ....And there's a candidate, fileutils.rb, available from CVS, which is
+ 31127 [mulperi@ik .] I've been using amstd/fileutils.rb for a long time.

eruby does not output error message
30883 [fujita@un -m] I've just compiled ruby 1.6.6, eruby 0.9.7 and mod_ruby 0.9.5.
30884 [jfontan@ce g] I don't know much about eruby, but, have you tryed reading error_log from
30888 [fujita@un -m] This is what the error_log says. It is the same what eruby says when
30891 [alan@di ik t] This is how eruby/mod_ruby has always worked for me.  If you find a
+ 30896 [fujita@un -m] Just try to invoke eruby using the option -Mc for CGI mode.
| 30898 [alan@di ik t] How would you get mod_ruby to add -Mc when invoking eruby?
| 30904 [fujita@un -m] That's an interesting question. In fact I don't know how to do this. I
+ 31369 [shugo@ru y- ] (1) Please put the following script to docroot/ruby/server_error.rb.
  + 31464 [alan@di ik t] Is this a feature of mod_ruby-0.9.7?  Right now, I'm using
  + 31465 [alan@di ik t] Whooops, I'm getting ahead of myself here,
    31509 [shugo@ne la ] It's a feature of mod_ruby-0.9.4 or later.

gsub: arrays as parameters
30890 [dempsejn@ge ] ...
30892 [dblack@ca dl] It looks more like a new, different method (where the first argument
30893 [dempsejn@ge ] Thanks for the advice! I believe the idea is a good one (pretty much
+ 30897 [dblack@ca dl] I *knew* I wasn't looking at it closely enough :-)  I missed the point
| 30916 [dempsejn@ge ] Ok, while I do think it is useful to have a built-in regex function that
+ 30929 [list@ch om t] of it would be enough to make my point, but somebody might find it
  + 30948 [dempsejn@ge ] thanks Massimiliano...if you don't mind, I'll hang onto this for the
  + 30951 [dblack@ca dl] The three-dot ellipsis is correct in cases where something inside a
    + 30952 [dblack@ca dl] Whoops, I meant to put that the other way around: the four-dot ellipsis
    + 30977 [list@ch om t] Never seen that case.  Oh, to be fair I should have added that the
      30978 [dblack@ca dl] Right, my example was wrong.  Hmmm... I'm convinced there's one out

problem with CGI-mode in eruby 0.9.7?
30894 [fujita@un -m] In the posting named "eruby does not output error message" I described
31368 [shugo@ru y- ] This is not a bug.

[ANN] Ruby/SMB - ruby interface to the libsmbclient library
30902 [hefa@us rs s] After a long time of lurking in the Ruby community I have finally
30915 [ps@ra ia .m ] thanks mate! just what i almost have been producing myself, only I haven't

New Windows binary?
30912 [bobx@li ux a] I know that Andy (I think) is busy preparing the 1.6.6+ version of the

MetaRuby : RubySchema.rb howto?
30920 [tobiasreif@p] in a program that generates Ruby programs, I'd like to use MetaRuby's
30953 [matju@sy pa ] There is no RubyProgram class, because any Expr can qualify as a Ruby
30969 [tobiasreif@p] sounds good!
31079 [matju@sy pa ] #to_s already has a meaning; it will be named differently. #inspect
31089 [tobiasreif@p] looking good :)
+ 31131 [feldt@ce ch ] FYI, I've played with the following way of specifying pretty-printers for
| + 31134 [tobiasreif@p] Looks good. Would the above be the actual usage? Or could I pass
| | 31136 [feldt@ce ch ] No there is no connection between PPDoc's and RubySchema yet. I just
| + 31137 [akr@m1 n. rg] prettyprint.rb (and pp.rb) is written by me.
|   31138 [feldt@ce ch ] I'll take a better look at your code. I'd like to merge my PPDoc stuff
|   + 31139 [feldt@ce ch ] I forgot the link to this paper. It can be found a bit down on the page
|   + 31140 [akr@m1 n. rg] Since Wadler's pretty printing is very simple, I think it is possible.
|     31142 [feldt@ce ch ] require 'pp'
|     31213 [akr@m1 n. rg] Agreed.  FillGroup should be there at least.
+ 31367 [matju@sy pa ] I'm really lousy at pretty-printing (witness the smelly stuff in the cvs
  31371 [tobiasreif@p] If I generate 10 classes, I'd like to be able to specify if they all go
  31402 [matju@sy pa ] Well, that's something you can specify when you eval() the result.
  31413 [tobiasreif@p] I'm confused. I thought I specify that when I do .to_string, or to_pp,
  31421 [matju@sy pa ] Sorry, *I* am confused. To answer your question, you can split a tree
  31428 [tobiasreif@p] Exactly. (What made you think I doubt that?)
  31582 [matju@sy pa ] oops. goof. never mind.

Newbie Q's...
30921 [wildbill@sp ] I have just installed Ruby 1.6.6 under Linux.  I have d/l'd the FAQ
30943 [ptkwt@sh ll ] Welcome...
+ 30944 [ptkwt@sh ll ] I dug around in the RAA and found rbwrap by Robert Feldt.  It might be
| 30964 [wildbill@sp ] and
+ 30965 [wildbill@sp ] Thanks...glad to be here...
threads.html
top