72063-72800

71836-72315 subjects 72196-73005

^ Embedded Ruby
72063 [REMOVE_THISu] Continuing my quest with Ruby, is it possible that Ruby interpreter be
72074 [mikkelfj-ant] It is possible, but the only widely used embedding of Ruby is a) inside

^ Test::Unit assert_raises issues 1.6.8 => 1.8
72064 [wkb airmail.] class Foo; end
72067 [dblack super] require 'test/unit'
72076 [nobu.nokada ] I don't like to use that magic "number".

^ [Q] Change in 1.8 String#=~ intentional?
72065 [wkb airmail.] In converting some code from Ruby version 1.6.8 to 1.8, I found that the
+ 72077 [nobu.nokada ] Yes.  But I think it should be warned now.
+ 72108 [matz ruby-la] This is now under discussion in ruby-list.  The behavior will be

^ Strange Observable behavour
72070 [childNOSPAM ] I use Observable module in one of my projects. I noticed something
72081 [vjoel PATH.B] <plug>
72085 [childNOSPAM ] Very nice - but in this particular case I need something working more

^ Namespaces and modules
72072 [childNOSPAM ] Is there any way to include a "top level" module in a nested module of
72073 [flgr ccan.de] Moin!
72086 [childNOSPAM ] Works for me too - thanks!

^ Arbitrary DNS queries?
72088 [spamblock da] how can someone do arbitrary DNS queries (like c library function
72096 [androflux RE] require 'socket'
72104 [spamblock da] Nope, this is good for A RR only. But there are much
+ 72189 [androflux RE] Sorry, I'm not a C coder: I should have looked at the manpage for res_query
+ 72361 [sroberts uni] Use resolv.rb from the ruby 1.8 source.
| 72384 [sroberts uni] Actually, it's in ruby 1.6 as well.
+ 72362 [sroberts uni] Use resolv.rb from the ruby 1.8 source.

^ (none)
72089 [markmar.it f] remove markmar.it@inwind.it

^ HELLO MY FRIEND
72092 [cooker nzoom] Mallam Cooker
72093 [kingsley ice] Very interesting

^ file copy blues
72094 [kingsley ice] How do I copy an entire directory from one place to another?
+ 72095 [decoux moulo] Well 1.8 has a module fileutils
+ 72098 [B.Candler po] For copying to the remote machine, I'd say 'rsync' is the best tool. It's
| 72102 [mikkelfj-ant] course.
+ 72155 [bob.news gmx] <kingsley@icecode.org> schrieb im Newsbeitrag

^ [ANN] Ruby-GOME2-0.5.0, Ruby/GtkSourceView-0.1.0
72100 [mutoh highwa] Ruby-GNOME2-0.5.0, Ruby/GtkSourceView-0.1.0 are now available.

^ [OT] Was: Re: Naive CGI question
72107 [kent zerosph] That's not very PC (politically correct).  ;-)
72110 [hal9000 hype] makes

^ Provide Mobile Phone Battery And Other Battery
72109 [& <& ruby-la] This is a multi-part message in MIME format

^ How do I  report line no. on errors with racc?
72111 [jim freeze.o] I am using racc to parse a file. I need to be able to
72116 [aamine lover] I don't think the parser can know the line number.  If the
72125 [jim freeze.o] Thanks. I'll take a look. BTW, can you add an example of

^ Getting '\' to be used as the separator in Dir.getwd -- how to?
72112 [RLMuller com] I'm running Ruby 1.6.8 over Win2000SP3.  Dir.getwd returns the current
+ 72118 [dooby d10.ka] Looking at the code, the file separator is wired as '/'.  Ruby takes
| 72132 [RLMuller com] sCurDir = Dir.getwd.gsub(/\//, '\\')
| 72145 [dooby d10.ka] As a 1st-year Rubyist, I yield to the hackers.
+ 72126 [mwilson13 co] I don't have Windows, so I can't test this, but I think this can be
  72137 [RLMuller com] That worked great.  Many thanks. That's the simplest approach I've
  72139 [mwilson13 co] I'm a relative newbie too so I learned from your analysis. I simply
  72148 [dooby d10.ka] attr :cwd
  72149 [RLMuller com] Thanks, daz.  I'm going to have to cogitate this for a while.

^ c:/ruby/lib/ruby/1.7/tk.rb:196: warning: default `to_a' will be obsolete
72113 [phlipcpp yah] def list(val)
72115 [dooby d10.ka] ruby 1.8.0 (2003-05-15) [i386-mswin32]

^ cgi/session.rb help: How does it work ?
72117 [surrender_it] I'm just trying to write my first cgi app,

^ Template system
72119 [usenet andre] I need a template system for Plain text (Email), HTML (Web shop) and
+ 72127 [jack_d_herri] ERB is a good choice: http://raa.ruby-lang.org/list.rhtml?name=erb
+ 72128 [dave pragpro] I use the Template.rb class from RDoc for all these (and other uses
+ 72284 [spam deck.dk] how about eruby? I know it mostly aims at sgml documents, but it *would*
| 72370 [usenet andre] Yes, I already thought about it and it seems to be the best solution.
+ 72308 [shirai korin] Do you know amrita - template system for HTML/XML?
  72369 [usenet andre] Hmmm, I think that's a bit oversized and not flexible enough. For

^ Where is initialize originally defined?
72120 [spam2003 m2w] could you please tell me where the initialize method is originally defined?
72121 [decoux moulo] private method of Object
72122 [spam2003 m2w] Thanks!
72123 [decoux moulo] Object#initialize is a private method defined in Object
72124 [dave pragpro] I'll probably add it in for 1.8; I hadn't done it before because it

^ mod_ruby under Windows 98
72129 [n.vasiliev a] I need to install mod_ruby under Windows 98. I have Ruby 1.7.2, Apache 2

^ Module for showRE and other modules, generally?
72130 [RLMuller com] Programming Ruby online says "showRE('kangaroo', /angar/)"  yields
72131 [usenet andre] And what does Programming Ruby say 20 lines above? :-)
72147 [RLMuller com] Was it really 20? :-)

^ Range#size, Range#length
72133 [hal9000 hype] Apparently size and length are missing from
+ 72135 [mwilson13 co] There was a lengthy discussion on the list about this a few months ago.
+ 72136 [batsman.geo ] You're right about the Float range part...

^ Problem compiling extension on Solaris
72134 [cyclists nc.] I have an user who is trying to build RMagick on Solaris with Ruby 1.6.8.
72158 [matz ruby-la] Sorry, I have no clue.  We don't use -P nor -dn, at least
72174 [cyclists nc.] Thanks, Matz. Sadly, this was reported to me by a Solaris guru. He
72200 [matz ruby-la] How can I stop -dn option?  I want to make shared library, no static
72219 [nobu.nokada ] Seems to need -shared option, according to [ruby-talk:72134].
72232 [matz ruby-la] Hmm, I don't know how to fix this.  According to configure.in,
72262 [djberge qwes] FWIW, the --with-gnu-ld option fails for me on my Solaris box no matter
+ 72264 [jim freeze.o] Hmmm, interesting. On my solaris system, I can't turn of gnu ld.
| 72613 [jim freeze.o] BTW, I got the latest from cvs yesterday and ruby built
| 72697 [Tim.Hunter s] To clarify, the problem I reported was not that Ruby itself wouldn't
| 72800 [cyclists nc.] I am both relieved and sorry to say that I cannot reproduce this problem
+ 72583 [matz ruby-la] Would somebody check whether it works or not, if we change

^ Array# method like shape in Python?
72138 [phlipcpp yah] In the (sadly inferior) language Python, if you have an array like this...
72140 [0bz63fz3m1qt] How about ???
+ 72141 [phlipcpp yah] Stunning. Thanks.
+ 72142 [dblack super] That modifies the original array, though, which probably isn't what's

^ Binary Tree vs. Hash
72150 [xrfang hotma] I have a question about algorithm efficiency.
+ 72156 [bob.news gmx] "Xiangrong Fang" <xrfang@hotmail.com> schrieb im Newsbeitrag
| + 72162 [xrfang hotma] I have no good way to measure this. What I did is to watch the *total*
| | + 72164 [mneumann nte] I am not sure what your program is doing, but if it's something similar to
| | + 72166 [flori nixe.p] No, it can't because arrays don't have to be sorted. "include?" is mixed
| | + 72173 [B.Candler po] You are probably creating a lot of temporary garbage objects, so you're
| |   + 72176 [batsman.geo ] It does free() the space. Whether or not it's returned to the OS depends
| |   | 72178 [xrfang hotma] I did tried GC.start, but it had ABSOLUTELY no effect. if I put the
| |   + 72255 [ahoward fsl.] it does not - but it certainly can be.  i've often wondered why Array does not
| |     72258 [bob.news gmx] "ahoward" <ahoward@fsl.noaa.gov> schrieb im Newsbeitrag
| |     72263 [ahoward fsl.] [ ] new & * + -- << <=> == === [ ] [ ]= | assoc at clear
| |     72271 [bob.news gmx] "ahoward" <ahoward@fsl.noaa.gov> schrieb im Newsbeitrag
| |     + 72275 [hal9000 hype] [snip discussion of "sorted" flag for arrays]
| |     | + 72305 [jweirich one] I'm not sure that a SortableArray is substitutable for a normal array.
| |     | + 72325 [bob.news gmx] "Hal E. Fulton" <hal9000@hypermetrics.com> schrieb im Newsbeitrag
| |     |   72329 [batsman.geo ] batsman@tux-chan:/tmp$ expand -t2 ap.rb
| |     |   72330 [bob.news gmx] "Mauricio FernŠŌdez" <batsman.geo@yahoo.com> schrieb im Newsbeitrag
| |     + 72288 [B.Candler po] And presumably if you *insert* into a SortedArray then it needs to put the
| |     + 72321 [batsman.geo ] We cannot optimize w/ the @sorted flag because Array is used for two
| |       + 72327 [bob.news gmx] "Mauricio FernŠŌdez" <batsman.geo@yahoo.com> schrieb im Newsbeitrag
| |       + 72373 [mwilson13 co] Ruby 1.8p2 has a Set class. There is a 'sort' instance method. Some
| + 72163 [0bz63fz3m1qt] How about 'skip-list's ???
+ 72177 [dave pragpro] If you're looking for memory efficiency are are simply doing lookups,
| + 72185 [batsman.geo ] IIRC you were using that for a spam filter or something like that  ?
| | 72191 [dave pragpro] Hmm - you're right, but I now I'm seriously worried. I've carried those
| + 72186 [mikkelfj-ant] I also recently found some articly on non-loss storage for lookup only. I.e.
| | + 72188 [batsman.geo ] In fact Dave sort of solved the Kata already :)
| | + 72190 [mikkelfj-ant] representation
| | + 72192 [dave pragpro] Or for the original one... :)
| |   72193 [mikkelfj-ant] This is why you should hang out in comp.lang.ruby, never mind the language,
| |   72280 [mikkelfj-ant] bits.
| |   72286 [dave pragpro] Um, yes - I reference and use them in the article...
| |   72300 [mikkelfj-ant] Damn ... must read more carefully ...  I must have skipped way down or
| + 72224 [cjh_nospam m] As long as you don't mind missing 1 in 64-ish spelling errors.
|   72230 [dave pragpro] Actually, it's worse that that. According to
|   + 72231 [cjh_nospam m] You're right, I forgot to divide by two (for half the bits set).
|   + 72242 [B.Candler po] That's not very good though; I mean, just encoding each letter using 5 bits,
+ 72183 [mikkelfj-ant] OK
  72226 [xrfang hotma] Thanks for the detailed explanations. I have some qusestions regarding
  72282 [mikkelfj-ant] In principle they are identical, but differ vastly in implementation.

^ Modified "showRE" anomalies
72151 [RLMuller com] I modified "showRE" demonstrated in the online version of Programming
72154 [batsman.geo ] batsman@tux-chan:/tmp$ expand -t2 al.rb
72306 [RLMuller com] Mauricio,

^ exiting of a block
72152 [emmanuel.tou] it's a newbie question...
+ 72153 [matz ruby-la] result = [1, 2, 3].find { |e|
+ 72157 [bob.news gmx] "Emmanuel Touzery" <emmanuel.touzery@wanadoo.fr> schrieb im Newsbeitrag
| 72160 [emmanuel.tou] the code you give returns returns true or false, i want the item that is
| + 72175 [bob.news gmx] "Emmanuel Touzery" <emmanuel.touzery@wanadoo.fr> schrieb im Newsbeitrag
| + 72199 [flgr ccan.de] Moin!
+ 72167 [nobu.nokada ] programsForChannel.find { |program|
+ 72363 [angus quovad] result1 = [1,2,3].find { |e|
+ 72568 [tored stud.n] [1, 2, 3].find{|e|
  72599 [bob.news gmx] "Tore Darell" <tored@stud.ntnu.no> schrieb im Newsbeitrag

^ Closures, capturing variables and evilness
72159 [batsman.geo ] In Ruby, a closure encapsulates the whole environment (aka. binding or
72168 [decoux moulo] local variable
72171 [batsman.geo ] OK, this explains (2), but do we really want eval("someval") to work?
72172 [decoux moulo] me, yes :-)))

^ closing windows with Tk
72161 [tram5 carama] must be closed after push on the button "validate". But I must not

^ FXRuby: Changing the options of FXTextField
72165 [usenet andre] I want to change the options of a FXTextField to make it read only
+ 72194 [vjoel PATH.B] You can use
| 72204 [usenet andre] undefined method `enabled=' for :Fox::FXTextField (NameError)
| 72207 [vjoel PATH.B] class FXWindow
+ 72266 [lyle users.s] textField.editable = false

^ From Mr Alex Kargbo Alie
72170 [kargbo90 go.] From Mr Alex Kargbo Alie

^ OPEN SOURCE LITERACY
72179 [mnhenley msn] [i, deliberately in smallcaps,  might, heh, as a lay person developing
72215 [0bz63fz3m1qt] Sorry. I don't think I understand your question !

^ FxRuby: Popup menu
72181 [usenet andre] does anyone know how to create popup menus with FXRuby? An example would
72195 [vjoel PATH.B] See http://ruby-talk.org/67023
72205 [usenet andre] Thanks, I'll try it.
+ 72209 [vjoel PATH.B] ...
+ 72267 [lyle users.s] As Joel has already pointed out, the class you're looking for is

^ Project Directory Structure
72184 [jim freeze.o] I am attempting to formalize a directory structure for my
+ 72197 [vjoel PATH.B] That's very close to what I use, but I've never used a src/ dir for a
| 72211 [jim freeze.o] CHANGELOG
| 72216 [mikkelfj-ant] It's widely used for C source code. There isn't really a convention for
+ 72202 [mikkelfj-ant] It actually annoys me that rdoc uses the 'doc' directory by default.
| + 72203 [dave pragpro] There's always the -op <otherdir> option...
| | 72210 [jim freeze.o] Thats good to know. What will it do, complain?
| | 72213 [dave pragpro] No, it reformats the disk partition containing the directory, so that
| + 72212 [jim freeze.o] Are your doc directories browsable or do they just
|   + 72217 [0bz63fz3m1qt] 'sample' sounds like test-data suitable for input. This could be
|   + 72218 [mikkelfj-ant] They contain document source, but are human readable. They are intended to
|     72222 [jim freeze.o] Thanks everyone for your input so far.
|     + 72227 [dblack super] contrib/
|     | 72228 [jim freeze.o] I suppose that the contents under contrib vary wildly
|     + 72234 [0bz63fz3m1qt] abbreviated names is NOT userfriendly to newbies.
|     | + 72241 [B.Candler po] What does "recipy" mean? It's not an English word.
|     | | 72246 [0bz63fz3m1qt] = recipe..   (im not a native english speaker)
|     | | 72248 [tim bates.id] I beg to differ.
|     | | 72254 [james_b neur] There may be some marginal de facto naming standards, but, given that
|     | | 72256 [michael_s_ca] Conversely, would anyone be baffled *really* by "doc" or "bin"?
|     | + 72261 [jim freeze.o] TODO
|     |   72278 [ptkwt shell1] Yeah, I'm with you.  I guess I'm thinking what's the problem with bin and
|     + 72237 [schlegel cs.] This is a MIME-formatted message.  If you see this text it means that your
|     | 72259 [jim freeze.o] Good question. I have this scenario all the time.
|     + 72244 [feldt ce.cha] I sometimes/often use a TODO file at top-level.
|       72260 [jim freeze.o] Thanks. I'll add TODO to the list. (I think it is optional, unlike
|       72265 [jim freeze.o] Thanks for all the input. A description of the Project
|       72269 [feldt ce.cha] If you have scripts that help pack the tarball etc, ie. scripts that
|       + 72294 [jim freeze.o] Good question. My intended use of bin is for what gets installed into
|       | + 72301 [feldt ce.cha] Sure. I'm not sure its very meaningful but I tend to call tests with
|       | + 72303 [lyle users.s] * acceptance tests are generally specified or written by
|       |   72322 [batsman.geo ] This means in practice that acceptance tests "imply" integration tests,
|       |   72351 [lyle users.s] I hadn't thought about it that way, but I guess that's true: an
|       |   72357 [batsman.geo ] So, summing up
|       + 72319 [james_b neur] Well, "test" can be a  verb, too, though  suspect the use here is
|         72335 [jim freeze.o] Yes, I think of it as the 'test' directory where 'tests' go. :)
|         + 72336 [B.Candler po] Bins are garbage receptacles :-)
|         | 72337 [jim freeze.o] in cheek remarks were as obvious.
|         | 72339 [batsman.geo ] However
|         + 72348 [james_b neur] It's mixing apples and orange; keeping needless brevity while trying to
|         + 72350 [dblack super] that there will be consensus and uniformity in practice.  So ignore me
|         | 72354 [jim freeze.o] To bring things back on track, I am not proposing that
|         | 72358 [hal9000 hype] Right. :)
|         | 72383 [jim freeze.o] Yes
|         + 72353 [ jupp gmx.de] Saluton!
+ 72223 [james_b neur] I'm a little unhappy with having 'docs' and 'doc', since it looks like
  72225 [vjoel PATH.B] Very nice. I had been putting "rdoc-output" (using rdoc's -o switch) at
threads.html
top