49873-50907

49800-51862 subjects 50070-52408

^ using REXML for XML document creation
49873 [ian caliban.] As an REXML beginner, I'm having trouble figuring out how to nest one
49877 [mgushee have] You're probably expecting it to be harder than it is. If you've ever
+ 49895 [ian caliban.] Thanks. It definitely did.
+ 49941 [ian caliban.] Actually, how do I add the next <CONTACT> element? If I just use
  + 49942 [david.naseby] doc = REXML::Document.new
  | 49946 [ian caliban.] Thanks. I'm not finding this module intuitive, which is in no way
  | 50039 [comp.lang.ru] - - XML only LOOKS obvious. I've only dabbled in it, but gets
  + 49943 [mgushee have] Well, it should be obvious that I used a bare minimum of variable names
    49947 [ian caliban.] Actually, I've been having a lot of trouble doing seemingly easy
    + 49951 [mgushee have] Hmm, ok ... could be that it seems more obvious to me than it is. Since
    + 49968 [james jamesb] REXML tutorial.
      50025 [ian caliban.] Thanks everyone for your help. I'll check out the tutorial.

^ DOS 16bit Ruby
49878 [rack1 myreal] Unfortunately, I started a thread which got itself attached to another
49957 [the-racksash] Hey cool.. i didn't realise that this mailing list-originated post would

^ Proxy Server
49886 [alan digikat] I've been playing around with a project that's a proxy and cache
+ 49892 [transami tra] read file only in chunks, pass off each chuck to another thread (don't
| 49897 [alan digikat] Sorry if I was unclear, you've caught onto the general idea, but what
+ 49950 [gotoken notw] A difficulty come from Net::HTTP#get, which is used by WEBrick::HTTPProxy
  50031 [alan digikat] I've been peeking at libcurl which implements an optional callback

^ Ruby C API for beginners, was: Re: RubyInline 1.0.4 Released! (fwd)
49893 [tsondergaard] * get self and use it to

^ Re: UDPSocket bug?
49898 [danny frouke] -:11:in `recvfrom': Unknown Error - "recvfrom(2)" (Errno::E10040)
49905 [pbrannan atd] According to http://www.sockets.com/a_c2.htm (and a few other sources),
+ 49909 [danny frouke] The other message I sent had a reasonable winsock error for some
+ 49971 [nobu.nokada ] errno should be set in win32/win32.c:rb_w32_recvfrom().
  50009 [pbrannan atd] If it should be set, then why was an "errno == 0" error generated?
  50014 [nobu.nokada ] It's the question.
  50017 [pbrannan atd] Both the error in [ruby-talk:49768] and the error in [ruby-talk:49898]

^ Terminal program help on cygwin
49899 [STUCKNER MUL] This is a multi-part message in MIME format.
49903 [STUCKNER MUL] This is a multi-part message in MIME format.

^ if and unless
49921 [hal9000 hype] Well, the reason I like having both these
49953 [jim freeze.o] Hmm. I would have chosen the latter for this case.
50004 [    s xss.de] I agree with Jim.
50038 [billtj z.glu] I also agree.  I use "unless" simply to avoid ! or not.

^ Problems with SMTP / Socket code in Ruby 1.7.2
49928 [Patrick.Benn] This is a multi-part message in MIME format.

^ Education, Ruby, and SIF
49930 [gemerson eva] I work for a company that mainly assembles and interprets educational

^ Missing includes with 1.6 install on win32?
49931 [paul floorba] Just noticed that when you compile and then 'nmake install' ruby 1.6.7 on
49948 [lyle users.s] %DESTDIR%\lib\ruby\1.6\i586-mswin32
49977 [paul floorba] on
+ 49983 [nobu.nokada ] config.h depends on platform, so in order to avoid spattering
| 50026 [paul floorba] Well, if only config.h is platform-dependent, then I would put the rest in a
| 50101 [nobu.nokada ] Maybe include/ruby-$(version) directory, and config.h also
+ 50023 [alan digikat] So you can have a ruby installation sitting on a network drive with

^ Emacs Code Browser for Ruby?
49932 [horst hduche] I recently discovered the "Emacs Code Browser" which comes with buildin support for C/C++, Java,
+ 50122 [ryand zenspi] Dunno, but you might also want to look at speedbar...
+ 50159 [brett_willia] I believe that the support for ruby would need to be added to the semantic
  50178 [brett_willia] Currently, the process for adding a new language to the semantic bovinator

^ instance_eval with a block
49934 [bhilton vpop] Can someone please explain why the following code doesn't work?
49936 [vjoel PATH.B] instance_eval &block  # Fixes it. This changes the "self"

^ Re: Bug in Ruby Ext to C or it is me ?
49937 [loriend bigp] I bet you have compiled with stack-frame-pointer ommision turned on. This is done with -fomit-frame-pointer in gcc, and is the default with MSVC when you choose the "Maximise Speed" optimisation. Frame-pointer ommision does not work with ruby exceptions or threads.
49956 [nobu.nokada ] I usually use gcc with that option, rather it may be concerned
49989 [weilljc club] Platform      Solaris   Compiler  cc (natif Sun Compiler)

^ cookie support in Net::HTML?
49945 [cerenkov7 ho] Does anyone know of way to read pages
49963 [barry_shultz] require 'net/http'

^ Windows XP : RubyInline 1.0.4 Released! (fwd)
49952 [ADATE kc.rr.] Ryan,
+ 49954 [nobu.nokada ] Libraries are missing.  GNU ld ignores undefined symbols in
+ 49965 [phasis korne] correct
  50003 [ADATE kc.rr.] Experts,

^ RubyInline 1.0.5 Released!
49955 [ryand-ruby z] RubyInline 1.0.5 has been released!

^ Re: Test::Unit: how to test tcp or SOAP
49975 [dsafari para] I'd suggest looking at "mocking" those things. Get Test::Mock which works with

^ Upper/lowercase shared lib name problem.
49978 [flifson cs.u] I'm venturing out into writing C extensions for the first time and have
49979 [decoux moulo] When you write this, your init function must have the name
49980 [flifson cs.u] Thanks! That was exactly the problem. Silly oversight on my part.

^ New newbies Qs on Ruby
49981 [NOSPAM_jazz_] As I explore Ruby, I like it more and more, but of course more and more
+ 49982 [transami tra] your third is right. you can use def self.m1 instead from what i
| + 50067 [NOSPAM_jazz_] says...
| + 50907 [qrczak knm.o] Let me say that I deliberately avoided reading again the details
+ 49986 [dblack candl] [object.extend approach]
+ 49987 [gotoken notw] class Module
  50068 [NOSPAM_jazz_] Yes, it works, but your answer and answers from other members (thanks to

^ not grasping the method overloading/multi-dispatch thing
49988 [dblack candl] (Starting a new thread, to make it easier to ignore :-)
+ 49990 [frido q-soft] Yes it does. Therefor it won't happen.
| 49992 [dblack candl] def meth(Integer n, String s)
| + 49995 [hal9000 hype] My opinion: It just doesn't.
| | + 49998 [meier meiste] As long as not declaring an argument type would mean "Object" (or any
| | | + 50006 [dblack candl] Except the existence of a programming language that makes you think
| | | + 50085 [patrick-may ] class Foo
| | |   50141 [meier meiste] 50.GA25625@o-matic.net>...
| | + 50000 [rich infoeth] def meth(n<Integer>, s)
| + 49997 [pit capitain] David, as I understand it, of course you would still be able to do
| | + 50002 [dblack candl] True, it wouldn't break code, but it would (for me) completely change
| | | 50062 [pit capitain] That's a good point I haven't thought of.
| | + 50040 [ptkwt shell1] I'm kind of torn between the two sides on this one...
| |   + 50043 [pbrannan atd] This isn't necessary; see Hal's example of another alternative (declare
| |   | 50056 [ptkwt shell1] Good point.
| |   | + 50061 [paul NoSpAmP] What happens when two programmers, working on different pieces of a
| |   | | 50113 [patrick-may ] they look at the cvs logs, contact each other, and figure out a
| |   | + 50074 [pbrannan atd] But should it be?  If I write a class, and someone modifies it, he had
| |   |   + 50080 [alan digikat] So now, I might have a darn good reason to modify your class and
| |   |   + 50114 [patrick-may ] Most changes to behavior are additions, not subtractions.  I consider
| |   |     50164 [pbrannan atd] Assert.assert_includes(anArray, anotherArray)
| |   |     50234 [patrick-may ] anArray.assert_includes( anotherArray ) was an array specific assert
| |   + 50044 [transami tra] yes it would be nice.
| |   | 50048 [dblack candl] Namely... ?
| |   | 50052 [dmartenson m] This message is in MIME format. Since your mail reader does not understand
| |   + 50047 [dblack candl] I guess what I'm wondering is why the idea of Ruby as a language which
| |   | 50075 [pbrannan atd] One possibility would be to make it hard to make a method that takes
| |   | 50118 [patrick-may ] Well, that's the situation we're in now -- you can write methods that
| |   | + 50120 [patrick-may ] You can already write ruby code to do everything proposed.  The issue
| |   | | 50145 [meier meiste] 20F6D411A199009005DC0102016D1830@exchange serve.multitech.prv>...
| |   | | 50218 [patrick-may ] Code should execute in the namespace close to its data.  That said,
| |   | | 50349 [meier meiste] 10.GC17997@o-matic.net>...
| |   | | + 50352 [dblack candl] You're right that you can't do that, because the Baz object sees only
| |   | | + 50373 [jim freeze.o] We prevent this at our corporation by having a top level
| |   | | + 50415 [patrick-may ] Pushing methods into the same namespace by default definately leads
| |   | + 50165 [pbrannan atd] The goal wasn't to add type checking; it was to add dispatching based on
| |   + 50054 [alwagner tca] My 2 cents:  When I find that I am testing type, as above, then it usually
| |   | 50058 [rich infoeth] About a year ago there was a thread on method overloading based on
| |   | 50076 [pbrannan atd] With this mechanism, how can I add a new signature to the list?  What if
| |   | + 50095 [austin halos] You could, of course, subclass the class that owns fred and then
| |   | + 50138 [pit capitain] Paul, in the former thread Robert Feldt showed another
| |   |   + 50140 [tsiivola cc.] Usually I don't go for "me too!", or "brilliant!" -kind of comments, but I
| |   |   | 50147 [feldt ce.cha] Thanks for the credit Pit; your solution is nice. I'm still not sure
| |   |   + 50169 [pbrannan atd] Definitely looks cool!
| |   + 50057 [Tim.Hunter s] In Phil's example, it seems like "meth" is testing the argument's
| |     + 50079 [alwagner tca] I haven't read _Design Patterns_, but I like this definition.  The set of
| |     | 50084 [transami tra] that's an interesting question. so rather then meth(Integer i) meaning i
| |     | 50091 [alwagner tca] LOL. Yep.  The info needed is implicit in the method.  The "TypeMaps" could be
| |     + 50129 [gsinclair so] This is a bit idealised.  If two objects implement the same methods (rather,
| |     | 50156 [Tim.Hunter s] Well, if you passed the wrong object to a method expecting the other
| |     + 50131 [ptkwt shell1] Yes, I tend to agree...
| |       + 50142 [meier meiste] =20
| |       | 50219 [cyclists nc.] Other folks have already answered the general version of this question much more
| |       | 50227 [ptkwt shell1] Oh, I definately understand what you're saying and under a different set
| |       | 50236 [dblack candl] Will this supersede the other Ruby? :-)
| |       | 50249 [ptkwt shell1] The Ruby we all know and love or the other Ruby from the late '80s early
| |       | 50250 [dblack candl] Perish the (first of these) thought(s)!  :-)
| |       + 50230 [patrick-may ] class Object
| |       + 50232 [patrick-may ] class Signal
| |         + 50248 [ptkwt shell1] Well, you're only checking if nextValue responds to call which is a lot
| |         + 50251 [ptkwt shell1] Patrick,
| + 50077 [patrick-may ] A friend pointed out one major plus to static typing: documentation of
| + 50093 [matz ruby-la] That's not what I meant.  I meant that I don't see any problem of
|   50139 [decoux moulo] Well, I can't say more than what I've said in [ruby-talk:26914] (sorry I
+ 49991 [dan sidhe.or] Dunno. That's Matz' call, of course. I can tell you how they work.
+ 50499 [rgiar yahoo.] (warning: long)

^ Frame-pointer omission and ruby (was Bug in Ruby Ext to C or it is me ?)
49999 [loriend bigp] Everytime i've tried to build ruby with "-O3 -mcpu=i586 -march=k6 -ffast-math -fomit-frame-pointer" with gcc-2.95.2, gcc-2.95.3, gcc-3.01, and gcc-3.1, miniruby has crashed during the building of the default extensions. All I have to do to make it work is take out the "-fomit-frame-pointer". This has happened on windoze with mingw32 and cygwin, mandrake 6.2, 7.2, and 8.2, vector linux 2.0 (a slackware based mini-distro), and gentoo-linux 1.2. I have set the compiler flags via the $CFLAGS environment variable.
+ 50007 [loriend bigp] Opps,
| 50016 [lyle users.s] You'll need to check out the ruby_1_6 branch from CVS. See the CVS
+ 50022 [chr_news gmx] Ruby itself is compiled (under mswin32 with VC) with framepointer
+ 50099 [nobu.nokada ] Some versions of gcc have a bug that wrong code is emitted for
+ 50102 [loriend bigp] My mistake,

^ 50000!!!
50008 [dblack candl] Congrats to Rich Kilmer for posting [ruby-talk:50000]!
+ 50013 [rich infoeth] Gosh...I am not worthy :-)
+ 50128 [billk cts.co] . . . I notice Guy has 16384. . . . . Somehow it seems strangely

^ Re: Multi-level sort idiom?
50011 [flori nixe.p] In this case
50083 [cjh_nospam m] This won't work, as it doesn't return 1, 0 or -1 for a[0]<=>b[0]
50086 [cjh_nospam m] I was wrong. Interesting behaviour - nice but confusing - I would have
+ 50088 [alwagner tca] y = x.sort{|a,b|
+ 50092 [mike stok.co] The result of nonzero? does get returned, effectively nonzero?
  50094 [gotoken notw] is the correct name?).  But Array#<=> was introduced in no time after

^ Problem with Net::FTP.getbinaryfile
50018 [youngb norcm] I am trying to write a simple script to retrieve all files that match a
50029 [decoux moulo] The problem is here : you can't mix 2 FTP commands. You must first execute
50032 [youngb norcm] Aha!  Thanks much.  That never would have occurred to me...

^ [Adv] From BIZatSEOUL [without permmision]
50024 [BIZ SEOUL.CO] <html>

^ interesting Perl Journal move
50027 [pate eylerfa] The Perl Journal is being reborn yet again.  This time, it will be an
+ 50030 [james jamesb] I used to subscribe to TPJ, and was sad to see it subsumed by Sys Admin
+ 50041 [jim freeze.o] I think we should start our own Ruby Developers Journal (RDP).
| + 50045 [transami tra] agreed! unless perl journal is willing to alter it name to Script
| | 50065 [james jamesb] If we push to get a noticeable share of TPJ (or whatever it ends up being
| | 50078 [jim freeze.o] I'm not sure I understand what you mean here. I don't think that
| | 50081 [james jamesb] If you do not already use Linux or C++ it is unlikely you will be reading
| | 50087 [jim freeze.o] Ok, I see. My original intent for a Ruby journal would be as a resource
| | 50116 [x ichimunki.] What I'd like to see is a journal like Dr. Dobbs without so much Microsoft
| | 50127 [jan.keiser a] I like this idea. It fits in with 'Language of the Year', best tool for the
| | 50151 [list NOSPAMc] It needs not be either/or.  If RDP can catalyze 5/6 articles every two
| + 50046 [Dave Pragmat] Are you volunteering to edit it?
|   + 50049 [alan digikat] Or a related question, would enough people subscribe so that we could pay enough
|   + 50051 [jim freeze.o] 8-o
|     + 50053 [pate red-bea] If you're thinking about a ruby magazine, it might be worth looking at The
|     | + 50055 [michael.d.he] BoF?
|     | | + 50059 [pate red-bea] sorry, old usenixism --- Birds of a Feather session ... an informal
|     | | + 50060 [nigel foreve] Bird of Feather...I think.
|     | + 50195 [dblack candl] You could plan on setting up an Open Space event on this topic.
|     + 50063 [transami tra] perhaps it be sort of a specialized wiki?
|     | 50064 [nigel foreve] Before giving up on this, why not get some people to commit through the
|     + 50066 [mike stok.co] You might want to see how brian d foy is doing at the Perl Review -
|       50082 [mike stok.co] * Perl & Ruby
+ 50089 [bobx linuxma] I would gladly be "A" reviewer. But I insist on a Newbie section!!! :-)

^ Mysql/Ruby on win32, configuration problem
50028 [paul floorba] When trying to build Mysql/Ruby 2.4.2a on win32 using MSVC++, ruby

^ General ?s about a couple of Ruby features
50033 [mgushee have] I am preparing a presentation on Ruby for a local Linux Users' Group.
+ 50037 [noname123 sh] I'm relatively new to the language as well, but doesn't this feature make it
| 50042 [meier meiste] it
+ 50050 [pbrannan atd] Let's say we have a class A and a class B, and we want to know why we
| + 50125 [alan digikat] Note that perl has foreach which does a very similiar thing as ruby.
| + 50190 [chrismo clab] It's also handy because it allows you to break out your class and module
|   50196 [STUCKNER MUL] The biggest reason I can think of for modifying existing classes is to
+ 50135 [szegedy nosp] You can mix Ruby methods and methods defined by a C-extension.

^ RubyInline and CrossPlatform concerns (was: Windows XP : RubyInline 1.0.4 Released!)
50034 [ryand-ruby z] I've left /tmp in favor of the home directory. Is there something like
+ 50100 [nobu.nokada ] As to NT series, HOMEDRIVE and HOMEPATH are set.  It may be
| 50163 [patrick-may ] %USERPROFILE% sounds like the most sensible one to me.
| 50233 [ryand zenspi] Thank you. I'll use this one.
+ 50104 [phasis korne] Here is another version using mkmf.
| + 50108 [ADATE kc.rr.] Park,
| + 50109 [ADATE kc.rr.] Park,
| | 50111 [phasis korne] RubyInline
| + 50110 [ryand-ruby z] I don't mean to be a total bother, but does windoze have diff? diff
|   50115 [phasis korne] OK, Here is diff of original and my first version.
+ 50137 [bilotta78 ho] NT/2K/XP has HOMEPATH and HOMEDIR. Some users (me, for example :))

^ Re: Iowa documentation
50035 [khaines enig] Not yet.  :(  I'm working on this.  We've been moving the last couple of

^ what is T_DATA ?
50069 [info mjais.d] I am currently trying to understand the C source of mysql-ruby.
50072 [vjoel PATH.B] It's for user defined data types, which are instantiated by calling the
threads.html
top