84412-84946 subjects 84801-86097

Trying to figure out thread safety
84605 [agemoagemo@y] (Having been told of a solution to one problem
84615 [billk@ct .c ] A mutex sounds to me - if I understand correctly what

1.8.1 preview2 (was: Re: 1.8.1 failure)
84606 [matz@ru y- a] Thank you for the report.  I just put preview2 at
84612 [tom@in oe he] Yours,

64-bit Ruby on Solaris?
84611 [djberge@qw s] Solaris 9
84616 [matz@ru y- a] Seems like configure failed to detect platform stdio information.  I
84618 [djberge@qw s] Ok - below is the stdio.h file.  Please let me know what else you need.
84619 [decoux@mo lo] It's best if you give also stdio_impl.h (if it exist)
84620 [djberge@qw s] Ok - I've attached 3 stdio files, including stdio_impl.h, in case it's
84621 [decoux@mo lo] Here the reason, why it don't find _cnt and _ptr
+ 84633 [djberge@qw s] As an experiment, I commented out the offending lines in config.h and
+ 84635 [djberge@qw s] Sorry if the attachment on that last post didn't come through properly -
  84643 [decoux@mo lo] What say  file bigdecimal.o and what loader do you use (/usr/ccs/bin/ld
  84644 [djberge@qw s] /usr/ccs/bin/ld (Sun's).  Attempting to use GNU's ld resulted in a
  84645 [decoux@mo lo] The result of the command file
  84646 [djberge@qw s] Ah, ok
  84647 [decoux@mo lo] The object files in /usr/ccs/lib/sparcv9 has only the type
  84648 [djberge@qw s] root@sp5wd-b1-/usr/ccs/lib/sparcv9-548>file *
  84658 [decoux@mo lo] I really don't understand. With this
  84662 [djberge@qw s] Apparently I'm cursed.  I'm nearing the point of re-installing the OS
  84663 [decoux@mo lo] For the environment I've just made

84613 [dcarrera@ma ] Though it's not common to post Tcl projects in a Ruby list, I would like

Ruby 1.8.0 failure on AIX 4.3.3 with GCC
84617 [philippe.luc] -1) ext/cursor.c lines 512 et 1201 : The lines et columns parameters are
84642 [matz@ru y- a] I want to see exact error messages.
84677 [philippe.luc] ...

Since today is October 31...
84626 [hal9000@hy e] srand 0
+ 84627 [jamesUNDERBA] Neat.
+ 84629 [rubytalk@bo ] hmm, it doesn't work for me :-(
| 84630 [hal9000@hy e] No, that's because the PRNG changed with 1.7.x
| 84631 [rubytalk@bo ] yeah, I know ... :-/ But I'm just too lazy to reinstall Ruby on all
| 84632 [hal9000@hy e] Hmm, not that I know of.
+ 84634 [ruby-talk@wh] (0..67).inject(3709168338536711372250064398972826945394701253532720163819002017081215416156693026){|i,x|print
  84636 [dcarrera@ma ] Now THAT was cool!
  84637 [hal9000@hy e] I'm sure it is... but it doesn't work for me. (self.wtf?)
  84638 [rubytalk@bo ] ran into same problem ... after removing the newline after print
  84639 [hal9000@hy e] Oh, of course, of course.

rexml 2.5.8  warning
84640 [khindenburg@] Runing rexml 2.5.8 with Ruby 1.8.0, just with a 'require rexml/
84641 [dblack@su er] See thread starting at <http://www.ruby-talk.org/84500>.

Re: [ba-rb] BA-rb ( Bay Area Ruby Users Group ) - 'Generating Code in Ruby' by Jack Herrington.
84649 [jos@ca no k.] Count me in again, too.

Another fun but useless program
84650 [hal9000@hy e] I intended to make this one shorter/stranger/etc., but I ultimately
84653 [ng@jo nw on ] Hal, you are *really* making ruby an art.

The new allocation scheme and extensions
84651 [shu@ar a. uf] In 1.6, when writing an extension which required Data_Wrap_Struct, the
+ 84652 [matz@ru y- a] If you have chance to update the extension, use new allocation scheme
+ 84790 [pbrannan@at ] inline VALUE ruby_16_new(int argc, VALUE * argv, VALUE klass)
  84819 [kubo@ji ba .] static VALUE foo_s_allocate(VALUE klass)

How can I marshall File::Stat, and do file tests?
84654 [sroberts@un ] Basically, I'm building a Hash of paths to their File::Stat, and
84666 [sroberts@un ] Seems to be a long-standing oddity, discussed in ruby-talk #74175 and

Ruby language reference
84655 [afan_shah@ya] I have just started using Ruby but I am still unfamiliar with the internals or core language designs of Ruby. It would be better if you can provids me an updated Ruby language reference (or specification) in english.
+ 84656 [dcarrera@ma ] Afan,
| 84657 [bruce@co ed ] A little more friendly in terms of everyday use.
| 84659 [david.dandre] dv
| 84660 [jbritt@ru y-] James Britt
| 84670 [imobachgs@so] I'm trying to locate so much documentation about ruby as possible, and I wish
| + 84671 [bruce@co ed ] Bruce Williams - bruce@codedbliss.com - http://codedbliss.com
| | 84672 [jbritt@ru y-] And http://stdlib-doc.rubyforge.org/
| + 84675 [dave@pr gp o] OI'm trying to locate so much documentation about ruby as possible, and
|   84683 [kgergely@ml ] Who knows about the pixaxe book?
+ 84669 [ng@jo nw on ] ___________________

[ANN] soap4r/1.5.1 with wsdl4r/0.0.4
84661 [nakahiro@sa ] Soap4r/1.5.1 is out.

CGI uses file size to distinguish between regular values and files
84664 [david@lo dt ] I've been having a ton of problems handling file uploads with CGI.rb
84674 [simon@ec et ] I haven't used Ruby's file upload facility, but since no-one else has
84676 [d.borodaenko] Why, you can always check if the parameter you've got _is_ a Tempfile,
84678 [austin@ha os] Why should I have to make that distinction in *my* code? I've got a Perl app
+ 84681 [Jesper@Je pe] I'm using the CGI module for file upload - I think it works,
| 84685 [austin@ha os] This is what I *don't* want. I shouldn't *have* to handle it
| 84693 [d.borodaenko] def params(keys)
| 84699 [austin@ha os] Sort of. I want it to work that way in the default CGI library. There should
| 84702 [john@wi hd v] The original response from Simon Kitching was the best on this topic.
| 84704 [austin@ha os] Actually, my complaint is subtly different than the OP's complaint. cgi.rb
+ 84692 [d.borodaenko] For starters, how would one move a small file, treated as StringIO,
  84700 [austin@ha os] I didn't miss that. What's wrong, though, is that the CGI library is
  84701 [simon@ec et ] Is it really returning "different values for parameters"?
  84703 [austin@ha os] As I'm understanding it -- I haven't yet put together tests for this
  84708 [matz@ru y- a] I understand the problem, but not yet think of the best solution.  Any
  + 84711 [austin@ha os] I think that it might be worth considering a variation on what
  + 84712 [austin@ha os] I was thinking about doing some code for this, but I really don't think I'll
  | 84730 [david@lo dt ] I'm thinking this shouldn't be a too hard issue to address, though.
  + 84713 [akr@m1 n. rg] I think
  | 84727 [matz@ru y- a] How about
  | + 84729 [david@lo dt ] I think this will best serve my needs within the current constraints of
  | + 84731 [akr@m1 n. rg] I see.  It is a solution but I found that I misunderstand the problem.
  | | 84732 [david@lo dt ] I like the last solution better by far. You'd be able to keep most
  | + 84756 [d.borodaenko] That is better than my ftools-based solution, since it solves the
  + 84764 [matz@ru y- a] How about moving to another CGI library, for example Narf?
    84771 [austin@ha os] I will look at narf to give my opinion on it. I would like to see something

Firebird database and DBI?
84665 [khaines@en g] Does anyone know if there is a DBI driver for the Firebird database, or
84667 [dali@in ul .] IMHO the driver for interbase should work with Firebird although I have not
84668 [khaines@en g] Thanks.  I should have thought of that.  I'll give it a whirl.

[ANN] cerise 0.4
84673 [will@ce ma l] cerise is a web application server, somewhat similar to J2EE servers

64-bit Ruby on Solaris - solved
84679 [djberge@qw s] All,
84680 [hgs@dm .a .u] I'm fairly sure I didn't mention that!  I did ask which version of

Ruby bindings
84686 [elathan@ph s] Consider I have a collection of some C++ libs, in which I have
+ 84688 [dcarrera@ma ] Daniel Carrera |   Aleph-0 bottles of beer on the wall, Aleph-0 bottles
| 84689 [elathan@ph s] Wow! Are you the king of the fastest reply? Thanks!
+ 84690 [vjoel@PA H. ] ...
+ 84714 [a.neundorf-w] Maybe Ruby/DL already helps ?

ruby dbi documentation
84691 [lists@de on ] I have a problem locating any good documentation for ruby DBI.
84725 [mneumann@nt ] I fear there's nothing else available, except chapter 3 of Ruby
84777 [lists@de on ] but it doesn't really go over the functions and what they do either,

Test/Unit question
84694 [STUCKNER@MU ] ...
84696 [nathaniel@NO] of the
+ 84697 [James.Weiric] Dang ... Now I have an excuse to upgrade.
+ 84698 [STUCKNER@MU ] Thanks, I will give that a try!

Opening Net::HTTP from mod_ruby script
84695 [d.borodaenko] Did anyone try that? While implementing Pingback client[1], I've stuck
84716 [aamine@lo er] I could not reproduce the error.
84751 [d.borodaenko] /usr/lib/ruby/1.8/net/protocol.rb:83:in `initialize': Insecure operation - initialize (SecurityError)
84752 [aamine@lo er] It is an error raised on $SAFE=3 or higher.
84758 [d.borodaenko] This parameter is not set in Apache configs, `$stderr << $SAFE` prints 1.

84705 [simon@ec et ] I'm puzzled about how to associate custom information with an Exception
+ 84706 [rpav@me hl .] Yes, just subclass Exception and treat it like a normal class (since
+ 84707 [vjoel@PA H. ] class MyException < Exception
  + 84709 [dblack@su er] I'm not sure what Exception's initialize does, but it might be good
  + 84710 [simon@ec et ] Hah! the raise operator (presumably a method in Kernel?) can take an
    84722 [ruby-talk@pc] yes it is,

RUBY Project in West Bengal (India)
84715 [sabymus@re i] ...
84717 [nvivek@nc t.] There aren't too many ruby programmers in India. Infact, the only one I
84718 [k-zimir@gm .] is it kind of rude to ask or could i have a copy as well??
84719 [sabymus@re i] ...
84723 [dali@in ul .] Please note that the book in the Windows help format is a part of the Windows
84733 [david.naseby] For Windows printing, see http://www.ruby-talk.org/32861
84748 [sabymus@re i] ...

Problem in Ruby with Mysql
84720 [sabymus@re i] ...
84721 [m_libby@an s] Is Mysql.rb your own code? I couldn't find any file like that in the RAA
84724 [dali@in ul .] - mysql-ruby which uses the native client library
84728 [m_libby@an s] I guess I missed that! Thanks for the information. :)

optparse behaviour
84726 [christian.mu] I have some problems mit optparse (ruby-1.8.0).
84763 [nobu.nokada@] Right, fixed now.  Thank you.

Prolog like facilities.
84734 [john.carter@] Somebody asked me to do something that was partially solved by tsort,

Managing metadata about attribute types
84735 [simon@ec et ] I'm porting the Apache Jakarta Commons Digester (written in Java) to
+ 84736 [james@ru yx ] Are you familiar with the XMLDigester project listed in the RAA?
+ 84737 [rpav@me hl .] Yep.  I'll take this opportunity to shamelessly plug some modules.  I
| 84743 [simon@ec et ] Thanks for your reply.
| 84746 [rpav@me hl .] Hope you find it useful.  You may still want to couple it with
+ 84739 [chad@ch df w] # Hi,
| 84742 [simon@ec et ] Yes. I'm not strictly looking for "the type of the target attribute". As
| 84757 [drbrain@se m] Looking at a programming language to solve this is not the right way to
+ 84740 [austin@ha os] You may want to note xml-configfile in addition to XMLDigester that
| 84741 [simon@ec et ] Thanks for your reply.
| 84744 [austin@ha os] ...
| 84745 [rpav@me hl .] <big snip>
| + 84750 [rich@in oe h] I as well have tried to stay out of this but...
| | + 84753 [chad@ch df w] #
| | | 84754 [rich@in oe h] Right.  The big reason for testing the namespace for an object that you
| | + 84759 [rpav@me hl .] Right, but each string in XML is representative of a general desired
| |   84760 [dblack@wo bl] Cutesy, perhaps, but not the same as type casting.  For one thing, a
| |   84761 [chr_mail@gm ] H'm you are closet type-ist after all:-)
| + 84768 [austin@ha os] Actually, it's demonstrably correct. It's exactly to the point and
|   + 84775 [simon@ec et ] I don't think that the concept of strict typechecking deserves quite
|   | 84779 [rpav@me hl .] Yeah same, I'm not sure why it's a big deal... it's been pretty
|   + 84776 [rpav@me hl .] This is a specific case that does not generalize.
|     84778 [david.naseby] <snip lots>
|     84781 [rpav@me hl .] A platypus is most certainly not a duck---it neither walks like a duck
+ 84762 [simon@ec et ] What a vigorous discussion I seem to have triggered :-)
  + 84769 [austin@ha os] It's not simply a matter of conversion from a String, as I'll
  | 84773 [simon@ec et ] I hope you realise that the StockItem was just an example I made up out
  | + 84774 [david.naseby] Just weighing in with a small point, but
  | + 84782 [austin@ha os] class Weight
  + 84770 [dblack@wo bl] I believe that's by design; as I understand it, the StrongTyping
  + 84780 [rpav@me hl .] This is the fundamental philosophical disagreement, or
    + 84786 [dblack@wo bl] At this point you're waging a battle directly against the design of
    + 84797 [rpav@me hl .] Not at all.  The fact you _can_ do something doesn't mean you must do
      + 84806 [dblack@wo bl] My point was that it was not, ipso facto, a program design error to
      + 84858 [ng@jo nw on ] Ryan,
        + 84859 [rpav@me hl .] Well, the main advantage I have gained, aside from debugging bonuses,
        | 84878 [jamesUNDERBA] <snip />
        | + 84879 [rpav@me hl .] The error is that somewhere I inserted an Object when I should have
        | | + 84881 [dblack@wo bl] You must not be a big fan of class methods :-)
        | | + 84884 [rpav@me hl .] I'm not sure what your point is here.  The only conceivable point I
        | |   + 84886 [dblack@wo bl] The point is that objects which have methods defined in their
        | |   + 84888 [chr_mail@gm ] On a related note instead of
        | + 84882 [chad@ch df w] #
        |   84885 [jamesUNDERBA] No, thank you.
        |   84887 [chad@ch df w] #
        + 84866 [austin@ha os] I don't think most Ruby programmers use it, much less most
        + 84870 [dblack@wo bl] There's no improvement in error messages that I can see with the
          84873 [jamesUNDERBA] In some ways this discussion reminds me of issues in teaching OO

A question about SMS
84747 [sabymus@re i] ...
84749 [dali@in ul .] The answer is yes but as far as I know there is no straithforward way (I mean
84755 [terje@el e. ] There's a third way.  You can use one of the many online sms providers.  It's

how to create path subdirectories
84765 [kean@pc om o] looking for a way to create /test1/test2/test3/test4 subdirectories all
84766 [vjoel@PA H. ] No loop needed :)
84767 [kean@pc om o] thanks it's work like a charm:)

Updating path in windows
84772 [harryo@qi so] I'm writing a simple install script for some software.  The final thing I need to do is to add into the path the directory where the software has been written.
84788 [djberge@qw s] To programmatically add or modify system environment variables, add them

84783 [Robert.Koepf] Let me say good-bye to the list:  "Bye, I'll leave you in two days."
+ 84785 [uu9r@st d. n] Concurrent Clean, pure functional like Haskell, but without monads (they use
+ 84796 [cpine@he lo ] Have you looked at Joy or Icon?  Both cool languages.
+ 84798 [rpav@me hl .] <languages snipped>
| 85253 [invalid@se -] OCaml - functional
+ 84799 [dan@si he or] Forth is very nice, as is Postscript. And you might want to try either

ruby-dev summary 21730-21822
84784 [aamine@lo er] This is a summary of ruby-dev ML in these days.

Inheritence Diagram of Ruby classes...
84791 [thomas_adam1] Has anyone got, or know of a diagram that shows how the ruby classes are
84800 [drbrain@se m] Using ObjectSpace.each_object(Class) and a bit of code (like in the
84802 [thomas_adam1] Eric,
+ 84803 [austin@ha os] It will generate an arbitrary hierachy.
| 84823 [zdennis@mk e] Since this thread has came up I've been doing some digging, thanks to Eric
| 84828 [dali@in ul .] I made a few graphical charts some time ago. It is not updated for Ruby 1.8 but
+ 84804 [drbrain@se m] Dang, oops!

Using blocks in C (with File.open)
84793 [jim@fr ez .o] I have written some code in Ruby to parse a file and yield
84795 [decoux@mo lo] static VALUE