2836-3055 subjects 3207-4066
^ Re: mismatched quotes
3027 [hfulton aust] This is a multi-part message in MIME format.
^ rb_thread_wait_for / rb_thread_schedule
3035 [decoux moulo] I need, for an extension, to use rb_thread_wait_for() and
3043 [matz netlab.] Yes. They are functions which should be moved to ruby.h.
3036 [DDouthitt cu] This is a MIME message. If you are reading this text, you may want to
^ Thread.new vs. Thread.start
3046 [Dave thomase] From a programer's perspective, what is the difference between
+ 3047 [thucdat hotm] Create a new Thread.
+ 3050 [matz netlab.] They are almost identical. Both create and start new thread.
^ eruby security problem?
3048 [Andy Toolshe] Can anyone think of a danger in installing the eruby binary in
3051 [matz netlab.] I believe so.
^ FYI: Python Development Team Moves to BeOpen.com
3052 [schneiker ju] This is another in an occasional series of posts of (*real*) news concerning
3053 [matz netlab.] I was amazed that Guido made this great work for side project.
3065 [schneiker ju] BeOpen.com"
^ Bug in HTTP close
3056 [Andy Toolshe] I think I have found a couple of small problems in the network code.
3066 [aamine dp.u-] I think this as feature. Because it is natural that closing
^ Re: dev.rubycentral.com
3057 [aleksi.nieme] The "online html"-version didn't work.
3069 [aleksi.nieme] Just a random note.
3071 [Dave thomase] Thanks - that's a typographic thing that slipped through the filter -
3082 [rrt persepho] That's very bad TeX; you should use $-$, to get a proper math minus.
3121 [aleksi.nieme] contains few errors.
3130 [Dave thomase] Thanks
3058 [aleksi.nieme] We recommend that predicate methods (those whose name ends with a question
3061 [hfulton aust] This seems like a good idea to me...
3062 [Dave thomase] In an abstract sense it sounds like a good idea -- you could
3063 [quinn envy.u] Well, since failure is a fundamental concept common to almost all methods, we
3064 [Dave thomase] I got the impression that this failure return was supposed to be
+ 3067 [aleksi.nieme] Dave, your proposal is perfectly fine. I hardly dare to announce my Ruby
| 3068 [aleksi.nieme] I like to add that while I think Ruby's current compromise is very good
| 3072 [Dave thomase] In C, non-zero is true, so you'd better be really sure of your
| 3075 [aleksi.nieme] Dang, you're too good :).
| 3078 [Dave thomase] Dave
| 3079 [aleksi.nieme] Yup, my point was that if you don't want to display what is "inherited" from
+ 3077 [quinn mark.u] Sorry, that was just my facetious off-the-cuff reaction :) Obviously,
3085 [matz netlab.] I use `nil's for light failures, and exceptions for heavier failures.
^ Thread priorities
3059 [Dave thomase] c1 = 0
3083 [matz netlab.] No, there was a bug. But when the bug is fixed this program hangs,
3084 [Dave thomase] Thread.current.priority = 2
3088 [matz netlab.] c1 = 0
3089 [Dave thomase] That's great. Thanks.
^ class variable (Re: Re: dev.rubycentral.com)
3060 [matz netlab.] We now have class variables in 1.5, so "pseudo class variable hack" is
3070 [aleksi.nieme] Good to know. Thanks.
3073 [Dave thomase] 6.2 Are there class variables?
3074 [aleksi.nieme] Uh, I don't understand. I loaded and reloaded
3076 [Dave thomase] Sorry, you must of missed the post I made a while back.
3080 [DDouthitt cu] This is a MIME message. If you are reading this text, you may want to
^ Glade/Ruby: some idea for API
3081 [yashi yashi.] I was just thinking about changing API for Glade/ruby last night.
^ mod_ruby segv
3086 [Dave thomase] I've got a stack-backtrace for that mod_ruby segv. Right now its with
^ Exceptions documented where?
3087 [jesse cs.uni] require 'net/http'
^ Bug or feature?
3090 [Dave thomase] [ 1, 2, 1 ] - [ 1 ] # -> 
3092 [Dave thomase] And then I said - heh Dave, why not read this telephone-directory
3093 [hfulton aust] We'll forgive you, as that stuff very hard to remember.
^ Re: mod_ruby problem solved
3091 [Dave thomase] Well, I finally tracked it down. I feel kind of silly not to find it
3094 [decoux moulo] Corrected in mod_ruby-0.18
+ 3095 [Dave thomase] I'll look for it in the CVS tree.
+ 3096 [decoux moulo] No,
+ 3097 [Dave thomase] dave[ruby/mod_ruby 1:01:02] grep VERSION mod_ruby.h
+ 3098 [decoux moulo] aestivum% head -1 Makefile.RB
^ ANNOUNCE : bdb
3099 [decoux moulo] Documentation : http://moulon.inra.fr/ruby/bdb.html
^ Anyone using pack/unpack with uuencoding
3100 [Dave thomase] I've started writing a RubyUnit test suite for the built-in Ruby
3103 [decoux moulo] pigeon% cat b.rb
3101 [shayman unis] Tried twice to compile 1.4.4 under Rhat 6.2 .
+ 3102 [matz netlab.] No message at all? Could you show me EXACT input/output to find out
+ 3104 [shayman unis] Here is the output of " make test >> out.txt "
3105 [matz netlab.] Oh... You have to type 'make' then 'make test'.
3126 [jesse cs.uni] As "test:" depends on "miniruby$(EXEEXT)" and the later is build by
3138 [matz netlab.] Making "test" depend on "all" solved the problem. Thank you for the idea.
^ Re: Compiled
3106 [shayman unis] Okay
3107 [Dave thomase] Currently Dir.foreach returns a (closed) Dir object.
3108 [matz netlab.] Yeah, right.
^ Is divmod dangerous?
3109 [Dave thomase] In (say) Python, the modulus operator (%) is actually a remainder
+ 3111 [aleksi.nieme] I surely do expect something. But not as you suspected. I would guess divmod
+ 3114 [matju CAM.OR] the name "divmod" says it all: the second return value is a modulo. I also
+ 3116 [rrt persepho] Another perspective on this is that of Forth, where we talk about doing
+ 3117 [matz netlab.] Ruby basicly follows R5RS of Scheme. / works as quotient, % works as
3125 [Dave thomase] It seems as if changing division so that 13/-4 -> -4 is a popular
3131 [gotoken math] At first, [a/b, a/%] (== a.divmod) can be considered equivalent to
3133 [Dave thomase] I guess it might just be me that was surprised to find that
3136 [gotoken math] Oh, I misunderstood :-( Even in C, div(x,y) satisfies
3137 [matz netlab.] So, you mean making modulo and reminder be same? Python way?
3139 [Dave thomase] How about a compromise?
+ 3140 [Dave thomase] btw. Andy tells me that this is horrible.
| 3143 [schneik aust] (1) why it was done the way it was done, (2) what the less-obvious
| + 3144 [aleksi.nieme] or
| + 3145 [rpg xs2all.n] I happen to have an opinion about this issue. For a fixed modulus m
| 3151 [andy Toolshe] I do not like the idea of including modules that change basic
+ 3180 [matju CAM.OR] This leads to either inflexible code or the default division operator to
^ my wish list for Ruby
3110 [matju CAM.OR] Ruby seems to me a very promising language, from the vague knowledge I
+ 3112 [matz netlab.] Ian once proposed such event loop before. I haven't get the image of
| 3255 [matju CAM.OR] I will eventually come up with such a thing while fiddling with XLib and
+ 3115 [matz netlab.] * local variable scope by blocks. e.g.
^ Min and max?
3113 [aleksi.nieme] Should we have min and max routines somewhere in the core Ruby (additionally
+ 3118 [matju CAM.OR] I fully agree that Comparable is the right place for that. (I notice I
| 3119 [decoux moulo] Something like apply (in scheme) ?
| + 3120 [schneik us.i] Aleksi writes,
| | + 3123 [Dave thomase] If you're going this route, a more Ruby-ish alternative might be to
| | + 3128 [kjana os.xax] Well, below is not sufficient?
| | 3142 [schneik aust] Sure, that is sufficient, but Perl is sufficient too. :-) Also people tend to
| + 3124 [Dave thomase] 'inject' is documented in the FAQ.
| | + 3127 [aleksi.nieme] I like this. It's easier to write new sorting orders. Could you guess how
| | + 3179 [matju CAM.OR] In what book? btw the FAQ has already "the" general version with a
| + 3177 [matju CAM.OR] well, the first Scheme reference manual i found on the net (MIT's) says
| 3178 [Dave thomase] Although I'm sure this is lacking the subtleties of the Scheme
+ 3135 [gotoken math] What do you think about putting mathfunc.rb including function
^ Newbie question: tk problems
3122 [feldt ce.cha] Recently downloaded Ruby and I'm really impressed so far. Want to try out
3141 [schneik aust] Unfortunately I never got this stuff working correctly either (on either
^ Re: my wish list for Ruby - dRuby
3129 [Dave thomase] We have a some information and examples dRuby in the book. Here's the
3132 [m_seki mva.b] drb-1.2 has just been released.
^ B,U.I,L.D ,Y.O,U.R, .O,W.N, C-A-B-L,E -T-V DE-S-C-R-A-M-B-L-E-R.,.,,,,,,,,.,,,,,,,,,,,,,,,,,,,,,,,,.,.,.,,,,,,,.,.,.,.,.,.,,.,.,..,.,..,,.,.,.,.,.,.,,,.,,, 5942
3134 [lbgjdc asdhf] L.EGAL C.A.B.L.E TV DE-S.C.R.A.M.B.L.E.R
^ RUBY NEWSGROUP FAQ -- Welcome to comp.lang.ruby!
3146 [schneiker ju] RUBY NEWSGROUP FAQ -- Welcome to comp.lang.ruby!
^ Ruby -- A better OO Perl than Perl? Python 3000 features available now?
3147 [schneiker ju] Well, at least _some_ people regard Ruby as a better OO Perl than Perl or as
+ 3150 [schneik us.i] I just realized that for benefit of ruby-talk ML readers, I should have
+ 3196 [embed NOSPAM] Is there a windows-based installer (self extracting EXE) of Ruby? A .tar.gz
3199 [Dave thomase] There's an older version available with a self-installer, look for
^ FYI (comp.lang.python): Re: Clifford Algebra
3148 [schneiker ju] I'm reposting this from comp.lang.python in case any Ruby mathematicians or
^ Retrieving the hostname and port in net/http
3149 [jesse cs.uni] I have an URL I want to access in a ruby program with the addition of
+ 3153 [Dave Thomase] require 'net/http'
| 3155 [jesse cs.uni] Ok, the point to apache's multi views was already made be email. But
+ 3157 [matz netlab.] You can retrieve base url by
3161 [Dave thomase] One of the problems is that HTTP#get throws an exception on a 301, so
+ 3173 [matz netlab.] Oops. I think Ninero Aoki the author of net/http will fix this soon.
+ 3175 [aamine dp.u-] Yes, that's right. I agree that "get" method is OUT OF USE for
3176 [Dave thomase] Either that, or possibly include the header information in the
3217 [Dave Thomase] And, just to show how responsive the Ruby developers are, less than 24
3218 [jesse cs.uni] Is there support for retrieving the current port number from the http
3219 [Dave Thomase] The current port number is available in the Net::Http object
3460 [jesse cs.uni] Not that bad of an idea. ;) But if "head = h.get()" fails and raises
^ about sample "dualstack-fetch.rb"
3152 [dominique.cr] I use ruby-1.4.4 on WinNT and get an error message when executing the sample
3158 [matz netlab.] Could you show me EXACT error message?
3186 [dominique.cr] I have downloaded the package
3191 [matz netlab.] Well, I'm not DOS/Windows guru, but I think rbdj144, which is compiled
^ 3-d arrays?
3154 [hgs dmu.ac.u] Is there an idiom for 3-dimensional arrays in Ruby? I see that
+ 3160 [Dave thomase] a = [
| 3187 [hgs dmu.ac.u] That is what I am going to hit, I think. And I have a possible
| 3194 [Dave thomase] You can overload  (and =, to provide your own array referencing
| 3201 [hgs dmu.ac.u] That does the job very nicely, thank you. Easier to type than [i][j][k]
+ 3249 [matz netlab.] There're extensions to provide n-dimentional array.
^ Network Setup Person Needed
3156 [troychin wha] I'm an intern with eCommunities LLC and we're in need of a tech person who
^ Bug in Time
3159 [Andy Toolshe] While doing the regression tests for class Time (RubyUnit is
+ 3183 [matju CAM.OR] crossforwarded the thing to i don't know how many people saying "hey, this
+ 3246 [matz netlab.] Oops, I forgot to support daylight saving time.
3310 [andy Toolshe] mktime(3) only handles localtime. I'll fix it to calculate time based
^ FixNum => BigNum transition
3162 [feldt ce.cha] Dear Ruby-friends,
+ 3163 [feldt ce.cha] Ok, forget this one. Kind of obvious... ;-) I have to take a break from
+ 3248 [matz netlab.] I'm afraid there's no easy way to work with uint32 directly in Ruby.
^ Doing CGI with Ruby & Apache
3164 [jilanik tin.] I am a new comer to Ruby World and I ask how to write a minimal web
3165 [Dave thomase] Well, an absolutely minimal web application would just involve putting
3166 [jilanik tin.] I have written this simple example:#!/usr/local/bin/ruby
3169 [Dave thomase] I assume that inthe real file your have 'content-type'.
3171 [jilanik tin.] Yes.
3172 [Dave thomase] You'll only run CGIs out of nominated cgi directories (such as
3182 [jilanik tin.] ./simple.rb =>No such file or directory!
3192 [matz netlab.] I guess the problem is in #! line. Check where the path points.
^ ruby.h needed to compile Interbase module
3167 [jilanik tin.] I have tried to compile Interbase Ruby module but I have I received the
3168 [Dave thomase] You'll need to get the Ruby source for this.
+ 3170 [jilanik tin.] Ok. I found it. I have modified Makefile and I run "make". Now I have
| 3174 [matz netlab.] If you've followed proper compilation steps (ruby extconf.rb; make),
+ 3184 [matju CAM.OR] a nice addition would be a separate tarball containing only the header
3247 [matz netlab.] In fact, Ruby installation process copies ruby.h etc. into
^ Ruby and Interbase
3181 [jilanik tin.] could somebody please give me a little example how to access to
^ Problems to connect to InterBase
3185 [jilanik tin.] #!usr/local/bin/ruby
^ Ruby and Interbase
3188 [jilanik tin.] #!usr/local/bin/ruby
^ BUG or something?
3189 [phasis mail.] I tested following code.
3236 [matju CAM.OR] This is called a compromise.
+ 3240 [phasis mail.] I just wanted temporary insensitive string comparison without any side
| 3241 [eban os.rim.] cfg.rehash
| 3252 [matju CAM.OR] Question, how does Hash computes the hash value of a String? or of any
| + 3253 [decoux moulo] See the method hash
| + 3265 [matz netlab.] By invoking `hash' method of key object.
| 3339 [matju CAM.OR] "hash" is called directly on a String, just like "ts" said. If it wasn't a
+ 3271 [wscott ichip] I am new to Ruby and this brings up a question I have had lately. Why
+ 3272 [wscott ichip] [resent because I think the last copy failed...]
+ 3274 [matz netlab.] They are tricks for short programs; usage of these magic variables is
+ 3275 [matju CAM.OR] As a Perl programmer, I'm trained not to use those variables for any large
3277 [aleksi.nieme] I was considering how the magic global variables work too. Immediately I
3281 [Dave thomase] Actually, it's even worse than that. With $;, the person invoking the
+ 3283 [hgs dmu.ac.u] Would it be possible to have a test for "when calling this code, it
| + 3284 [Dave thomase] def local(*syms)
| | 3286 [hgs dmu.ac.u] This looks good to me.
| | 3288 [Dave thomase] The 'eval' in the local method would restore the value of the local
| | 3290 [hgs dmu.ac.u] Hmm. I will have to play with that I think! I'm not sure
| + 3287 [wscott ichip] As I mentioned. In perl it is possible to use dynamic scoping to
| + 3289 [Dave thomase] That freezes the object referenced by the $/ variable. Variables
| + 3291 [decoux moulo] The object is frozen
| + 3294 [Dave thomase] Yes - the default is frozen.
| + 3295 [decoux moulo] rb_str_setter can test if the object is frozen ($ global or not)
| 3301 [Dave thomase] That would be a totally different semantic for freeze,
| 3313 [wscott ichip] Sorry. I was not trying to suggest a syntax. I was just wondering if
| 3316 [Dave thomase] For normal assignments, you could implement read-only globals using
+ 3340 [matz netlab.] Let me think about this idea. It sounds nice.
^ Example of subclassing user-defined Ruby class in C?
3190 [feldt ce.cha] I'm trying to understand how to extend Ruby's functionality. The API seems
3193 [decoux moulo] pigeon% cat sup.c
^ Access to DB2
3195 [dominique.cr] I would like to know how to access DB2 database?
^ Ruby Tutorial? URLS please.
3197 [embed NOSPAM] I was wondering if there were any tutorials anywhere. Don't see them on the
3200 [decoux moulo] Guy Decoux
^ NT build problem, VC 6, ruby 1.4.4
3198 [embed NOSPAM] I ran the batch file in ruby1.4.4\win32 that copied a preconfigured config.h
3204 [erngui acm.o] I've tried the same with both VC++ 5.0 and 6.0 and the problems I saw came
^ Nan and Infinity
3202 [Dave thomase] If the result of a floating point operation is Nan or one of the
+ 3203 [gotoken math] I had written floatinternal.rb to hack floating numbers.
+ 3244 [matz netlab.] I guess so. I will add them to the Float class.
^ How to copiling Ruby as a Apache module?
3205 [jilanik tin.] 1) as subject;
3206 [Dave thomase] It depends on your platform, and whether you built the original Ruby