205898-208705 subjects 206386-209636

Dir.glob finding folders
206120 [samekh@gm il] Hey,
+ 206127 [m_goldberg@a] Shouldn't it be
| + 206130 [m_goldberg@a] Retract. I didn't read this carefully enough. {CFI-} has no # in
| | 206134 [samekh@gm il] I'm not sure actually. I was reading code to figure this out and found
| + 206135 [samekh@gm il] Yep, your right. However I changed that and ran it, but it still comes
|   + 206142 [m_goldberg@a] I'm on an Mac OS X box, and you appear to be on Windows box, so file
|   + 206211 [shortcutter@] You don't close the file properly.  Rather use the block form of File.open.
+ 206195 [skurapat@uc ] $ ri Find
| 206333 [samekh@gm il] Just to follow up, I did try this and it worked. I also want to add
| 206365 [skurapat@uc ] In that case emulate (or better yet, use GNU/Linux! ;) the behavior
+ 206391 [HolgerArndt@] You have to use slashes instead of backslashes, even on windows.

ruby DH openssl warning
206128 [ekolve@gm il] I get the following warning when this code is run (extracted from
206716 [luke@ma st p] The OpenSSL library puts out a lot of warnings, and in most cases

Cute Emacs & Sawfish Hack for the day....
206153 [john.carter@] So I use emacs (latest from CVS) and gnome sawfish as my window manager.

extending ruby with ocaml
206156 [ara.t.howard] this has seen the list before but, seeing all the interest in ocaml recently i
206526 [ilmari.heikk] I remember there being some talk (even some code) about adding ocaml

Ruby stable branch is....1.9?
206157 [djberg96@gm ] I downloaded what I thought was the 1.8.5 stable branch from
206160 [matz@ru y- a] No.  In fact, it not what I want to tell you.  I would lose my play
206162 [djberg96@gm ] cvs -d :pserver:anonymous@cvs.ruby-lang.org:/src login
+ 206163 [logancapaldo] That's not a bug, it's a feature! Ruby 1.9 is on the path to 2.0
| + 206194 [stesch@no sp] I thought it's a 1 Fixnum == 1 character thing? :-)
| | 206203 [matz@ru y- a] We'd like to add encoding information to "characters".
| | 206239 [stesch@no sp] You are to blame either way. With these changes you fuel the
| + 206246 [leslieviljoe] I cannot tell you how annoying it is to work with binary data strings
|   + 206262 [znmeb@ce ma ] Or do what Perl did: have "byte semantics" and "character semantics" and
|   | 206267 [james@gr yp ] What do you do when you need both semantics in the same program?
|   | + 206301 [znmeb@ce ma ] I don't know ... I only needed byte semantics in the broken one, and I never got
|   | + 206323 [flori@ni e. ] use bytes;
|   + 206286 [matz@ru y- a] Yes, Ruby 2.0 will support "binary" encoding as well as Unicode.
|     + 206292 [Daniel.Berge] /opt/test/bin/ruby -v
|     + 206453 [jtaylor@th t] ...
+ 206885 [drbrain@se m] cvs -z4 -d :pserver:anonymous@cvs.ruby-lang.org:/src co -r ruby_1_8 ruby
  206900 [djberg96@gm ] Thanks, though I've never done that in the past that I can recall, and

Re: For performance, don't write it in C++
206169 [jon@ff on ul] C++     0.652s    0.608s  g++ -O3 -Wall
206180 [jon@ff on ul] For Java2 from the site and using Sun's Java 1.5 instead of GIJ 1.4.2

initiate post protocol using ruby
206175 [junkone@ro e] I want to simulate the post protocol like a browser using ruby. I dont
206179 [logancapaldo] Look at the docs for WWW::Mechanize and Net::HTTP

Re: Setting precision in Ruby-GSL calculations ?
206176 [yoshiki9@ma ] This is because GSL can do so.
206177 [znmeb@ce ma ] You shouldn't need more than 64-bit (double) arithmetic for a singular

the hypersonic flow of milwaukee's best - bil kleb and bill wood talk shop on sciruby
206183 [ara.t.howard] what can i say, these guys are out of control - i hear the they have real
+ 206192 [rubytalk@br ] I love it. Thanks for an interesting interview link.
+ 206216 [robert.dober] ...
  206257 [ara.t.howard] i hadn't noticed but, now that you point it out - it is impressive!
  206259 [znmeb@ce ma ] Python? That's a large, dangerous reptile, right? :)
  206268 [ara.t.howard] the irony is that sciruby is running moinmoin but, at the time i set it up, no
  206297 [znmeb@ce ma ] Yeah ... and nothing written in Ruby comes close to the functionality of the

A little regexp help for a newbie.
206184 [shavah@gm il] ...
206185 [danielbaird@] "1a23+4-123".split(/[^\d]/)
206186 [shavah@gm il] ...
206187 [rretzbach@go] What about "1a2+b".scan(/\d+) ?
206188 [danielbaird@] Muuuuch better!
206189 [has.sox@gm i] ...
206190 [danielbaird@] Nope, only plain digits.  if you want other stuff, you need to add it
206271 [rretzbach@go] p "-1.2 56 0.443 4.22E-12 000555".scan(

mechnize redirected url
206200 [akanksha.bai] I am using mechanize to scrape and I know that mechanize goes to the
206225 [alex@bl ck e] agent = WWW::Mechanize.new

Drb / ActiveRecord as Application Server for Qt/Ruby client
206202 [philippe.lan] charset="us-ascii"
206281 [logancapaldo] If you are just gonna marshal the AR objects and send them across the
206337 [philippe.lan] charset="us-ascii"
206484 [adam@th re l] You're already using ActiveRecord..why not throw the rest of the
206535 [pgquiles@el ] The problem with QtRuby and DRb, XML-RPC, EventMachine, etc is each
206585 [philippe.lan] charset="us-ascii"
206586 [philippe.lan] charset="us-ascii"
206673 [scott@bu le ] That general idea will work, and DRb is a good Ruby RPC framework.
206693 [pgquiles@el ] told you in the previous message.

[postgres] Is there a way to avoid having the library slurp-read the whole result-set?
206210 [helge.elvik@] I'm currently implementing a database application in Ruby, and I use
+ 206224 [depesz@de es] declare
| 206232 [helge.elvik@] I've looked for things like that, but it doesn't seem like they've been
| + 206235 [meadow.nnick] Hm, I wonder why would you need special API for that?
| | 206236 [helge.elvik@] Thanks!
| + 206469 [jes@lu et nk] I'm on thin ice here, but a quick browsing of the postgresql_adabter.rb in
|   + 206473 [garbagecat10] I've found that AR exacts such a high price in performance that I
|   + 206479 [ara.t.howard] indeed - i sent a patch in some time ago to address this - but no joy.
+ 206252 [ara.t.howard] it's been a while since i used the ruby postgres bindings but, when i did,
| 206261 [garbagecat10] Not sure that solves his problem, Ara- he wants to keep the library
| + 206265 [helge.elvik@] Yep, that's pretty much what I've found. The suggestion by Depesz to use
| + 206272 [ara.t.howard] yes - that's what it does (used to do).  looking at the source and samples/ it
+ 207780 [strobel@se u] There might be another solution: go back to the DB server, and do your

Possible Tempfile Improvements?
206218 [imacleod@gm ] ...
206221 [hhausman@gm ] (Web::Upload#save(some_path) and Web::Upload#original_filename)

R: Ruby Cookbook
206223 [david.riccit] It should include a 10-slot bookshelf as well.
206230 [sambient@gm ] I just came across this link which is an outline of the entire book.

Distributed Ruby slow startup under Windows XP
206233 [philippe.lan] charset="us-ascii"

Changing dirs and exceptions
206240 [rugowski@nh ] I've been stuck with simple thing - I'm trying to change dir into not
+ 206241 [rugowski@nh ] OK to be clear - execution is not stopped at this point (so resue is
+ 206242 [nobu@ru y- a] Seems like a message displayed when $DEBUG is turned on.
  206245 [rugowski@nh ] That was it ;-)) In #! line I have left -d switch. It time for break ;-)

[QUIZ] Proper Case (#89)
206243 [james@gr yp ] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 206250 [GENIE@pr di ] It would be nice if you could assume two spaces after a end of sentence
| + 206251 [james@gr yp ] Actually, that's an old typographical convention that we can't seem
| | + 206273 [GENIE@pr di ] I stand corrected.
| | + 206284 [fugalh@xm ss] Very interesting. It's also very interesting to me that I spend most of
| |   206287 [james@gr yp ] In short, the "rivers" of whitespace, caused by using two spaces,
| |   206289 [fugalh@xm ss] That sounds like a noble cause. Maybe I'll reconsider...
| |   + 206422 [rick.denatal] Rick DeNatale
| |   + 206424 [rick.denatal] The noble cause being to annoy graphic designers and typographers?
| |     206437 [gdey@ma .c m] I thought you were trying to start on the noble cause, by adding to
| + 206253 [M.B.Smillie@] It's not correct grammar, just a typographical convention; one which
| | 206459 [Pierre.Barbi] I have to add that I never ever read anything about this kind of rule ! And I am
| | 206472 [chneukirchen] That's why the command to disable additional space after sentences in
| + 206254 [tibbettj@ve ] My day job is developing natural language processing apps, and we've had
| + 206256 [pbattley@gm ] There's an old typewriter convention to use two spaces, but I'd be
+ 206258 [pbattley@gm ] perhaps u could also correct rly annoying abbreviations used by ppl
| 206279 [tibbettj@ve ] Joking aside, this kind of tool would have been most welcome when I
+ 207459 [mitchell@ko ] My solution will at the minimum capitalize the starts of sentences
  + 207466 [curi@cu i. s] if EOSPunc.index word[-1].chr then true else false end
  | 207481 [mitchell@ko ] Ah, yeah that's a shorter way to do it.  For some reason I had it
  + 207467 [james@gr yp ] This is quite clever Mitchell.  Thanks so much for sharing it with us!
    207483 [mitchell@ko ] No worries. I shouldn't have put it off to the last minute anyway. :)

SOAP and sending empty elements
206247 [emcconne@gm ] Using the classes provided by wsdl2ruby results in passing either "" or

Re: Proper Case (#89)
206255 [transfire@gm] i say your friend is just being hard headed. we don't need no stinking

Behaviour of Dir.glob("**/b") and Dir.glob("*/b") for symlinks
206260 [matt.denner@] Why is it that Dir.glob("*/b") will follow a symlinked directory but
206308 [nobu@ru y- a] Dir.glob("**/*/**/b") will follow a symlink up to once.

[ANN] rcov 0.7.0 (code coverage for Ruby)
206275 [ mfp@ac .o g] Source code, additional information, screenshots... available at
206710 [robmnl@gm il] ...
+ 206712 [logancapaldo] That plugin takes a lot of the headache out of using rails + rcov.
| 206713 [mtrier@gm il] Mauricio thanks for the excellent tool.  I use it every day.
+ 206714 [assaph@gm il] This was actually discovered on a rails project. In Rails case there
+ 206760 [ mfp@ac .o g] As Assaph said, this can fail in some circumstances, the reason being that
  206956 [robmnl@gm il] ...

[ANN][CORRECTION]RuportDay2006: (Now with more prizes!)
206276 [gregory.t.br] Good news and bad news.  No more gift certificate.  However, assuming

Re: How to capture a SOAP exception w/ ruby?
206283 [breakingsoft] = )

Thanks again.
206285 [breakingsoft] Wow; lots of good stuff here.  Thanks again everyone--much appreciated.

Soap and Http-access problem.
206295 [ola.bini@ki ] I'm working on an application where some of the business logic is
206773 [nakahiro@sa ] Hmm.  Trying to execute TCPSocket.new(nil, 0) here.  Endpoint URL is
206777 [ola.bini@ki ] I'm using Soap4R 1.5.5. Regarding the old_send, that's the result of
206921 [nakahiro@sa ] Agreed.  No suspicious part in old_send.
206945 [ola.bini@ki ] Nope, no proxies anywhere. It's a straight call through https to the
206948 [nakahiro@sa ] Hmmm.  Then the destination site is suspicious but I cannot imagine what

Obtaining source for 1.8.5 and 1.9?
206296 [znmeb@ce ma ] I'm trying to set up my test system so I can get the latest source for both Ruby
206779 [matz@ru y- a] matz.

A little diversion (probability fun in Ruby)
206299 [martin@sn wp] So I can't sleep this morning, and I've got a big interview with
206321 [chiology@gm ] This sounds really cool. I regret not paying more attention in my

seeking convention: project directory for project info
206300 [transfire@gm] I'm querying the Ruby community for a general convention in project
206318 [chiology@gm ] I would think that you could actually separate that data into
206322 [transfire@gm] It can become rather clutterd if everything has it's own particular
206354 [chiology@gm ] I think any kind of script would belong in a ./script/ folder, and if

[ANN] Motiro 0.4.2 released
206305 [thiago.arrai] Motiro is a tool for tracking software projects. It has borrowed its
206313 [james@gr yp ] This looks interesting.  Am I understanding right that this is a Trac-
206314 [thiago.arrai] I actually had Trac in mind when I started the project, so the answer
206316 [chiology@gm ] Yeah, this sounds interesting. Is there a working demo for us to mess
206329 [thiago.arrai] Yeah, Matt. Motiro is currently self-hosting on the address I gave on
206343 [chiology@gm ] What I meant was that I wanted to know if there was one that we could
+ 206345 [thiago.arrai] Oh, sorry. Not yet. :-(
+ 206346 [tdjordan@gm ] Like a guest login and password for your main site.

memory marking problem
206310 [joeb@as vi .] I'm pretty new to Ruby and running into some odd issues with my "mark"
206315 [decoux@mo lo] The mark function take the same argument than the free function, void *ptr
206325 [joeb@as vi .] Thanks - that was it - I don't know how I managed to breeze by that

Automatically finding gaps in unit test coverage ?
206317 [tomasz.wegrz] Is it possible to somehow automatically check which parts of code
+ 206320 [logancapaldo] Check out rcov. This is exactly what rcov was created for. It makes
| 206357 [tomasz.wegrz] Thanks, it was exactly what I needed. :-)
| 206374 [james@gr yp ] Use the standard StringIO library for this.  You can swap out the
+ 206324 [shortcutter@] I don't know of any mechanism built into RubyUnit or a code coverage
  206363 [tomasz.wegrz] Well, one cannot have everything :-). rcov is pretty useful for finding
  206398 [ mfp@ac .o g] You can do that in rcov with the  --test-unit-only option.
  206455 [shortcutter@] Mauricio, thanks for the detailed explanation!  Learn something new

use www mechanize issues
206332 [junkone@ro e] I am trying to download text file from cboe.org site. here is what i
206351 [aaron_patter] It looks like the form requires you to "click" a button.  Try changing

Re: [Rails] Mongril or Lighthttttp? Yes
206335 [joevandyk@gm] Ahahahhaahaa
206338 [chiology@gm ] And when did I miss the Swings!? Damn it!
206340 [hawkman.gelo] ...

[BUG] obj_free() called for broken object?
206341 [zhengyi@an r] I got past this by simply restarting the process, but can anybody here tell me

Bizarre Argument Error
206342 [hreynolds2@y] def dispatch(cgi = nil, session_options = ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS, output = $stdout)
206383 [shortcutter@] I'd double check that the method that is invoked is actually the one you

Include existing C/C++ libraries in Ruby.
206347 [riteshtijori] I want to use my existing C/C++ libraries in Ruby and is there a way to
+ 206348 [aredridel@nb] I hand-wrap libraries. It's not that hard, and I can micromanage the API
| 206350 [riteshtijori] Can you demonstrate with some example. It will help me great in
| 206361 [chiology@gm ] I have an idea, though I'll honestly say that I don't know if it'll
+ 206372 [ara.t.howard] you can use them directly with ruby/dl
  206380 [garbagecat10] I used to use ruby/dl a lot, and it's vastly better than the equivalent

Grouping values of a hash or array.
206349 [fraiha@ch rt] If I've got a hash
+ 206353 [Daniel.Berge] You're from the Elmer Fudd school of Ruby programming apparently. :-P
| 206356 [fraiha@ch rt] Posted via http://www.ruby-forum.com/.
+ 206384 [shortcutter@] irb(main):004:0> require 'set'

Tutorial on wrapping C/C++ libraries for use in Ruby?
206355 [riteshtijori] Is there any tutorial/link/website that explains how to wrap existing
206368 [lyle.johnson] Google for "swig ruby" and you should find some useful links. SWIG
206387 [riteshtijori] I tried swig but is not that clean. I am looking for hand wrapping C/C++
+ 206390 [joevandyk@gm] 1.  http://www.onlamp.com/pub/a/onlamp/2004/11/18/extending_ruby.html
+ 206392 [sastph@sa .c] The Pickaxe (http://www.pragmaticprogrammer.com/titles/ruby/index.html)

Instiki & Alex (& Tickets, oh my)
206358 [chiology@gm ] So I emailed Alex (like the directions guide me to) in order to get an

FXApp.create problem after fresh One-Click win98 install
206359 [bobbyorama@g] just ran ruby184-20.exe on win98 box and rebooted
206367 [lyle.johnson] Do any of the other FXRuby 1.6 example programs work, or do they all
206369 [bobbyorama@g] all of the 1.6 examples crash in the same way
206378 [lyle.johnson] OK. I searched the FOX users mailing list and it looks like there is
206404 [bobbyorama@g] Lyle,

irb (LoadError) after fresh One-Click win98 install
206366 [bobbyorama@g] just used ruby184-20.exe for a win98 ruby install

Learning with exercises
206375 [shavah@gm il] ...
206381 [james@gr yp ] James Edward Gray II
206389 [chiology@gm ] I'm none too biased (save for my admiration of the Ruby language), but
206401 [james@gr yp ] Most quizzes these days are submissions.  If you submit easier
206412 [shavah@gm il] ...

send cookies in SOAP call?
206376 [christopher.] @soap = SOAP::WSDLDriverFactory.new(wsdl_url).create_rpc_driver

glade & ruby-gnome2
206382 [ivanrise@gm ] i'm starting with ruby and ruby-gnome2, im trying to develop a simple
206470 [shugotenshi@] failed" part is trying to say that you set "use default" or something
+ 206471 [shugotenshi@] Sorry about that, I meant "typo"... how ironic :)
+ 206474 [ivanrise@gm ] You where right, it was a widget with the "use default" option set on.
  206497 [ivanrise@gm ] Ok, i fixed the "uninitialized constant WikirubyGlade::GTK" error,  it

Cleanup & requires & so on
206385 [tbray@te tu ] I'm just finishing up my first real chunk of Ruby work, and it's sitting
+ 206400 [chiology@gm ] I'm no expert, and I'm relatively new to the language myself, though a
+ 206403 [ihatespam@ro] I somehow doubt you have to worry about extraneous "requires" anymore