84184-84419 subjects 84605-85253

ruby-dev summary 21608-21636
84412 [maki@ru yc l] This is a summary of ruby-dev mailing list last week.

[ANN] sys-proctable 0.6.0
84415 [djberge@qw s] I'm happy to announce the release of sys-proctable 0.6.0.  This is an

Struggling with variable arguments to block
84420 [gsinclair@so] I'm having trouble dealing with a block that yields one parameter but
+ 84421 [djd15@po cw ] Which version of ruby are you using?
| + 84423 [gsinclair@so] Ah, good question.
| + 84424 [chr_mail@gm ] Weird,
+ 84426 [chr_mail@gm ] Actually it is the other way around - the second ``sum''
+ 84428 [matz@ru y- a] I smell something wrong.  Hmm...<thinking it a while>
  84430 [chr_mail@gm ] You mean Hash#each and Hash::each_pair will behave
  84431 [matz@ru y- a] Yes.
  84432 [austin@ha os] What will Hash#each behave like?
  84433 [matz@ru y- a] The only notable change will be that hash.each{|*a| p a} will produce
  84434 [dblack@su er] irb(main):005:0> *a = 1,2
  84435 [decoux@mo lo] svg% ./ruby -ve '*a = 1,2; p a; *a = [1,2]; p a; *a = [[1,2]]; p a'
  84438 [dblack@su er] OK... that's a start :-)  Just so you know I wasn't being
  84439 [matz@ru y- a] This is what I get
  84440 [bg-rubytalk@] irb(main):001:0> *a = 1,2
  84441 [michael_s_ca] I get the same result as ben with a windows cygwin compiled version,
  84442 [chr_mail@gm ] Me too - but I start seeing some light:-) Here is what
  84445 [gsinclair@so] *throws hands up in air*
  84448 [chr_mail@gm ] /Christoph

[ANN] Rubyx - A first look
84422 [andrew@wa ro] Rubyx is a ruby based linux distro. It is also the name of the script which
84436 [andrew@wa ro] I have been asked some questions off-list which might be generally useful, so

RubyConf Registration Extension
84425 [chad@ch df w] Due to yesterday's http://rubyconf.org outage, we will be extending

RubyConf: alternative registration method if site isn't responding
84427 [dblack@su er] Just our luck -- right at the end of conference registration
84429 [chad@ch df w] # Hi --

[ANN] win32-etc 0.1.0
84437 [djberg96@ya ] I'm happy to announce the release of win32-etc.  This

ruby dbi error
84443 [lists@de on ] Does anyone know what causes this error?
84446 [mneumann@nt ] This warning is fixed in CVS -current.

Re: Subscribe confirmation request (ruby-talk ML)
84444 [racoon@kb .s] ...

[ANN] yip v0.8
84447 [bruce@co ed ] All,

Question for http experts
84449 [andrew@wa ro] I have to type
84450 [billk@ct .c ] There's - I suspect - a more elegant way to do this, but here's
84451 [andrew@wa ro] It certainly did; works perfectly!

Re: Overloading to_s in a class of my own
84452 [flgr@cc n. e] Moin!
84456 [flgr@cc n. e] Moin!

News->Mailing list still broken
84453 [andrew@wa ro] I am still seeing messages on comp.lang.ruby that don't appear on the mailing
84463 [dave@pr gp o] Yes - I've passed over the code to the gateway to a kind volunteer who

Rubyx init system
84454 [andrew@wa ro] With bitkeeper, just do

[ANN] Ruby/GNOME2 music player (initial release)
84455 [galt@go hp o] I'm making a first public release of a music player I've been working

You need a good webhost!
84457 [help@uz pp c] You need a good webhost!

You need a good webhost!
84458 [help@uz pp c] You need a good webhost!

You need a good webhost!
84459 [help@uz pp c] You need a good webhost!

You need a good webhost!
84460 [help@uz pp c] You need a good webhost!

You need a good webhost!
84461 [help@uz pp c] You need a good webhost!

Suggestion for an XML and ZLIB library?
84462 [dcarrera@ma ] Greetings all,
84464 [jamesUNDERBA] Welcome back.
84465 [dcarrera@ma ] =)
84466 [nobu.nokada@] Why don't you use zlib of 1.8.0 standard libraries?

Rubyx logo idea
84467 [andrew@wa ro] I've been thinking about a logo for Rubyx, my ruby based linux distro.
+ 84470 [mailij31s-ja] Is this? (14x14 bitmap mimic.)
| 84472 [andrew@wa ro] Yes - thats it.
| 84484 [hal9000@hy e] I understand where you're coming from. :) I've read some very amusing
+ 84473 [nobu.nokada@] I don't know what you like and imagine, but challenged a bogus
+ 84489 [kingsley@ic ] I'm quite interested in your ruby OS. Perhaps I can help out somewhere
  84494 [andrew@wa ro] Cool! Lots of jobs need doing; Keeping track of package releases springs to
  84495 [kingsley@ic ] Thanks for answering all my questions - reading that back - it was a bit of a

How to delete a directory?
84468 [dcarrera@ma ] I've read through the Pickaxe documentation, and the output from 'ri'.  I
84469 [emiel@il fo ] emiel@marvin:/usr/lib/ruby/1.8> ri Dir.delete

Problems mixing regular form fields with file uploads
84471 [david@lo dt ] I'm trying to build a form that includes both regular form fields, such
84516 [david@lo dt ] I've narrowed the problem down even further. It appears to be a problem

Building Ruby 1.8.1 on Panther
84474 [rich@in oe h] I just posted a entry to my (new) weblog on building the latest CVS of
84517 [chris@m- ud ] Cool, thanks! I've been meaning to install 1.8 myself.

[ANN] dbi-dbrc 0.3.0
84475 [djberg96@ya ] I'm happy to announce dbi-dbrc 0.3.0
84476 [botp@de mo t] Is the password encrypted?
84478 [djberge@qw s] It doesn't require that your password be encrypted, if that's what you're asking.  You're certainly free to use an encrypted password, but it's up to you to then decrypt it as needed.

[Q] Legal for separate threads to do I/O on same socket?
84477 [billk@ct .c ] I'd like to have one thread doing, essentially, gets() from

matz: Which programming languages are you capable of?
84479 [Robert.Koepf] It's just, I'm rather interested in different kinds of p-languages and
84510 [matz@ru y- a] I'm a fluent C, Ruby speaker.  I know much of Lisp (CommonLisp,

How to include zip in a program.
84480 [dcarrera@ma ] Yay! I'm now subscribed to this list. =)
+ 84488 [rodrigo.berm] Daniel,
+ 84490 [dcarrera@ma ] Recent ruby distributions come with ruby/zlib?
  + 84491 [chad@ch df w] # >
  + 84492 [dcarrera@ma ] I think that my Ruby is broken.  I did compile it from source, but I'm
    + 84499 [dali@in ul .] Maybe the zlib library on your machine is in a non-standard directory. Ruby
    + 84524 [ian@ca ib n.] Look at the date of your version: 2002-12-24. It's an ancient copy, not
      84525 [dcarrera@ma ] Yeah, that must have been it.  This explains why downloading it and compiling again

problem with \s in unicoded regular expressions
84481 [olonichev@sc] I have found a problem with character classes definition in unicoded
84513 [olonichev@sc] I have forgotten "!" after "gsub" here in this letter but not when I

test, ignore
84482 [hfulton@au t] Still more email problems.

how to handle 64 bit variables on 32 bit machines ?
84483 [a.neundorf-w] I'd like to use the ruby/dl library to access function in a C library from
84511 [ljlane@de ia] Array#pack, String#unpack

Win32OLE issue in 1.8.0
84485 [STUCKNER@MU ] I am having a problem using Win32OLE events with 1.8.0. I have tried it
84486 [austin@ha os] It seems to me that WIN32OLE in 1.8.0 is much *less* stable than that in
84487 [STUCKNER@MU ] Well those frees of objects allocated by ole_wc2mb (which calls ALLOC_N) are
84496 [STUCKNER@MU ] More information..

Whoohoo! I got Zip
84498 [dcarrera@ma ] Thanks all for the help.

Error in REXML
84500 [dcarrera@ma ] $ ruby -v
+ 84506 [dcarrera@ma ] I moved my ~/lib/ruby directory some place else and reinstalled ruby.
+ 84507 [dblack@su er] The line looks OK to me; my guess is that it's matching part of
+ 84509 [dcarrera@ma ] Oh.  Thanks.  That also explains why that regex is not there anymore in

File class doesn't work!
84501 [dcarrera@ma ] $ ls *.xml
+ 84502 [hal9000@hy e] Isn't it "exist?" rather than "exists?"?
| 84503 [dcarrera@ma ] They both exist =)
| 84504 [hal9000@hy e] Ahhh.
| 84505 [dcarrera@ma ] Okay, I am oficially dyslexic.  This isn't the first time I confuse two
+ 84508 [dblack@su er] "context" != "content" :-)

BA-rb ( Bay Area Ruby Users Group ) - 'Generating Code in Ruby' by Jack Herrington.
84512 [grant@ag nt ] BA-rb (Bay Area Ruby language Users Group) is pleased to announce that it
84556 [grant@ag nt ] BA-rb ( Bay Area Ruby Users Group ) - 'Generating Code in Ruby' by Jack Herrington.

Formatting (ANSI) highlighted strings
84514 [gsinclair@so] Using the 'text/highlight' package on RubyForge, you can emit coloured
+ 84515 [austin@ha os] s = "string".ljust(10).bold.red.on_white
| 84519 [gsinclair@so] Hmmm... might get a bit hairy with some more complex formats, but I
+ 84682 [andrew@wa ro] I would like to use this package in my rubyx linux distro to replace my own
  84684 [jpace@in av ] Thanks for the suggestion. This has been released as version 1.0.2.
  84687 [andrew@wa ro] Excellent! I'll add the package to rubyx now.

XOR operator?
84518 [dcarrera@ma ] I'm trying to figure out what the boolean "xor" operator is in Ruby.  I
+ 84520 [jim@fr ez .o] irb(main):001:0> 1 ^ 0
+ 84521 [dali@in ul .] Neither Ruby in a Nutshell mentions one. However I made a quick tests and it
+ 84522 [dcarrera@ma ] Thanks everyone.  Yeah, ^ seems to work.
+ 84526 [dave@pr gp o] etc

Ruby Download options
84523 [dcarrera@ma ] I have finished the first draft of "ooo_extract".  A program to extract/search data
84527 [dcarrera@ma ] Alright, good to know.  I have mentioned that on the website.  This brings up another
84528 [achou@te le ] OS X will only have a compiler if either the Apple Developer Tools have
84535 [david.dandre] I haven't installed this myself (I compiled mine) so I can't tell you

Win32OLE again
84529 [STUCKNER@MU ] I am having trouble trying to figure out what is wrong with the Win32ole
84546 [decoux@mo lo] Well there is nothing wrong with calling free with ALLOC_N because like
84548 [STUCKNER@MU ] Ok here are some bizarre results.
+ 84550 [chr_mail@gm ] I haven't had any problems with the value = 100035 for ruby -v
+ 84552 [chr_mail@gm ] Hm, maybe that's the problem - try the makefile generate by

Crash in ruby 1.8.0
84530 [brett_willia] This doesn't look right...
+ 84532 [rpav@me hl .] rpav@central:~% ruby -e 'next()'
| 84536 [kapheine@hy ] It crashes on break() and return() too.
| 84539 [akr@m1 n. rg] % ./ruby -e '() and 1'
+ 84541 [matz@ru y- a] This patch should work.  Thank you.

[ANN] OOoExtract v0.1
84531 [dcarrera@ma ] Greetings,
84533 [harryo@qi so] What's all that embedded "binary" at the end of the script?
84537 [dcarrera@ma ] It's a tar archive.  The script is a self-extracting archive.  I made it with
84540 [harryo@qi so] Brilliant!

[BUG] Fatal recycling of SystemStackErrors
84534 [flgr@cc n. e] Moin!
84542 [matz@ru y- a] Thank you for the report.  I will fix this soon, but the
84628 [flgr@cc n. e] Moin!

Reading in MP3 files in Ruby
84538 [atribole@co ] I'm pretty new to Ruby, and I came across the Ruby bindings

[Q] Ruby and XUL?
84543 [dcarrera@ma ] It's about writing GUIs with Mozilla's XUL.  I must say I'm very
+ 84544 [spectra@de i] Hm... implementing XUL in Ruby would be very easy. The problem have,
| + 84545 [dcarrera@ma ] That's a very interesting idea.  I hadn't thought of that.  I could write
| | 84567 [spectra@de i] Exactly. Something like (sorry about the metaphor) DBI/DBDs. Could we
| + 84622 [m_libby@an s] Fascinating discussion. Sorry I'm joining a little late, but I've actually
|   84623 [kapheine@hy ] =20
+ 84547 [drbrain@se m] =2E..
| 84549 [ oct@zo .o g] sorry to sound like a bad boy, but XPCOM bindings only allows you to
+ 84551 [feldt@ce ch ] I've also looked at XUL and think its promising (especially since I
+ 84614 [jamesUNDERBA] <snip/>
  84624 [drbrain@se m] =20
  84625 [jamesUNDERBA] I'm not so familiar with either to say which would be the better choice

Installing .h files from extconf.rb?
84553 [rpav@me hl .] Hey, anyone have an elegant way they use to make extconf (with the
84738 [nobu.nokada@] $INSTALLFILES = [["include/*.h", "$(RUBYLIBDIR)/foo", "include"]]

getoption long question
84554 [lists@de on ] opts = GetoptLong.new(_
+ 84560 [dcarrera@ma ] opts = GetoptLong.new(
| + 84561 [achou@te le ] On a tangent, for even more flexibility I modified GetoptLong to be able
| + 84565 [lists@de on ] Thank you. I swear I tried this before asking, and I got errors. Once
+ 84566 [mwilson13@co] I recommend using optparse rather than GetoptLong, but you may decide

[BUG] system() isn't safe on win32
84555 [flgr@cc n. e] Moin!
84569 [matz@ru y- a] It shouldn't happen.  Does anyone confirm this?
+ 84570 [usa@os .a t.] It's bug of mswin32 (and mingw32, bccwin32). Sorry.
+ 84571 [chr_mail@gm ] Cygwin seems to be save but mswin32 and mingw32
+ 84575 [lists@za a. ] Yes, same output here. Ruby 1.8.0 (mswin32), CMD.EXE, Win2k+SP2. Also

Re: Win32OLE again - solved
84557 [STUCKNER@MU ] You were right! Thank you Thank you Thank you :-) (I am smiling widely).
84562 [chr_mail@gm ] It was just only wild guess,  but I am happy that this worked out.
84568 [STUCKNER@MU ] Note that the win32ole in the Prag Programmers distribution for 1.8.0 is

Re: [RCR] #inject, #partition expand array if arity > 2
84558 [flgr@cc n. e] Moin!
84563 [harryo@qi so] I've not seen that syntax/semantics before. Is the |(k,v)| syntax documented somewhere?
84564 [djd15@po cw ] I believe it's just assignment semantics.

Re: database row in a hash
84559 [flgr@cc n. e] Moin!

[ANN] win32-file 0.1.0
84572 [djberg96@ya ] I am happy to announce the release of win32-file
+ 84573 [gsinclair@so] Good work.
+ 84579 [chad@ch df w] # Hi all,
  84585 [djberge@qw s] Thanks :)
  84589 [chad@ch df w] #
  84594 [chr_mail@gm ] Just throwing in a curve ball on this frivolous matter, but
  + 84598 [chad@ch df w] # Just throwing in a curve ball on this frivolous matter, but
  + 84601 [sean@ce so t] Actually, shouldn't these be constants of the File class?
    84602 [djberge@qw s] For this particular method I don't think it's necessary.  It's certainly

Problem with seeking in existing files.
84574 [agemoagemo@y] I'm trying to write a program that will be writing
84576 [matz@ru y- a] I don't know what platform you are working on.  But in general, stdio
84582 [agemoagemo@y] Win32.
+ 84583 [wkb@ai ma l.] Morgan,
| 84593 [agemoagemo@y] Well, I don't know about technical incorrectness, but
| + 84595 [Ephaeton@gm ] File.new/open(filename, File::CREAT|File::RDWR) ...
| + 84597 [austin@ha os] begin
+ 84584 [Ephaeton@gm ] Dunno about win32 in general, but why not simply use File.open/new ?

ruby 1.8.1 preview1
84577 [matz@ru y- a] It's out.
+ 84578 [joey@jo yg b] cl -nologo -MD -Zi -O2b2xg- -G6 -I.
| 84590 [gour@ma l. n] make[1]: Entering directory `/home/gour/ruby-1.8.1/ext/syck'
+ 84580 [tom@in oe he] Yours,

[ANN] Standard library documentation available
84581 [gsinclair@so] Folks,

Rublog Problems
84586 [mccallister@] As Dave doesn't have a -users list for Rublog I am asking here, sorry
+ 84588 [tom@in oe he] Although I admit that probably a posting here is more likely to be seen
+ 84591 [dave@pr gp o] Hmm.. I'm running it every day under 1.8.0 and 1.8.1.
+ 84592 [chad@ch df w] # As Dave doesn't have a -users list for Rublog I am asking here, sorry
  84596 [mccallister@] I have mod_ruby installed but am running it under cgi at the moment --
  84599 [mccallister@] Entertainingly enough, the frozen string was it, the following patch
  84600 [mccallister@] @@ -147,9 +147,8 @@

Disregarding cookies in 302 requests with CGI.rb under mod_ruby
84587 [david@lo dt ] It seems that cookies set with CGI#header are thrown away when using

1.8.1 failure
84603 [djberge@qw s] Solaris 9
84607 [ruby-talk@wh] Sorry about that (Matz and others).  I was warned of these errors, but the
84608 [matz@ru y- a] It's the purpose of previews, but I still should have told you the
84609 [djberge@qw s] There are some more RCR's since the 1.8.0 release (on RubyGarden).  Can
84610 [matz@ru y- a] Yes, but they will be considered for 1.8.2 or 1.9.0 anyway.

ruby-dev summary 21637-21729
84604 [ttate@tt ky ] I present you a summary of the ruby-dev mailing list.
84787 [pbrannan@at ] So what will the result of the above two lines of code be?
84789 [matz@ru y- a] Plain syntax error in 1.9.x.
84792 [pbrannan@at ] Is the syntax error because of the first line or because of the second?
+ 84794 [matz@ru y- a] Both.  Sequence of strings will no longer be valid.
| + 84808 [pbrannan@at ] This works, but the concatenation is done at run-time instead of at
| | + 84809 [ rc@pg n. rg] Or so you assume. I don't know how Matz will handle this, but there's
| | | 84810 [drbrain@se m] You can redefine String#+, so no such optimization must be made at
| | + 84814 [nobu.nokada@] In 1.8, this is concatenated at compile-time. :)
| | | 84816 [vjoel@PA H. ] Very cool! It doesn't need the "", though, does it?
| | | 84818 [nobu.nokada@] It needs for compile-time concatenation, because nil.to_s might
| | + 84826 [matz@ru y- a] Don't worry.  It's done at run-time anyway.
| + 84812 [sean@ce so t] My 1 cent: I really wish "" \ style concatenation wouldn't go away.
| | 84827 [matz@ru y- a] Why?
| | 84844 [sean@ce so t] Well, isn't "" \ load/compile-time concatenation and "" + run-time
| + 84829 [laurent@da a] s = "this is a string "
|   + 84830 [tim@ba es id] Because of Ruby's line-based syntax, Ruby guesses that if you have hit
|   + 84831 [matz@ru y- a] There's always trade-off.  Newline sensitive syntax do not allow
|     + 84833 [transami@ru ] shades of %L and kin
|     | 84834 [transami@ru ] how will this 'fect HERE docs?
|     | 84840 [michael_s_ca] (code
|     + 84842 [laurent@da a] Because the String class does not provide the `+@' method?
|       84852 [wkb@ai ma l.] Laurent,
+ 84946 [gsinclair@so] require 'extensions/all'    # http://extensions.rubyforge.org