92844-93705

92649-93868 subjects 93053-93724

[ANN] MutableTime class
92844 [gavin@re in ] I've just finished my first general-purpose Ruby class, MutableTime.
92881 [cyclists@nc ] RubyForge

Sean Chittenden and REXML
92851 [ser@ge ma e-] Hey Sean,
92921 [jamesUNDERBA] This wouldn't be the same James who runs rubyxml.com, would it?
92978 [ser@ge ma e-] Shame, shmame.  I think its funny.

[ANN] win32-pipe 0.1.0
92853 [djberg96@ho ] All,

ANN: REXML 2.7.4
92854 [ser@ge ma e-] I've had a busy few months, which is why I've been quiet.  REXML 2.7.4
92867 [nobu.nokada@] What about [ruby-core:01960]?
92998 [ser@ge ma e-] Well... the patch in 01960 undoes a bunch of work that was done
+ 93100 [nobu.nokada@] Could you elaborate it?
| 93246 [ser@ge ma e-] Sure.
| 93340 [nobu.nokada@] I don't think UConv is obsolete, and as for IConv, which is a
+ 93101 [nobu.nokada@] Is XHTML OK?  If so, glance at <http://www.dm4lab.to/~usa/ruby/>.

buffering question: interleaved output from child processes
92863 [vjoel@PA H. ] The following code, when connected to the terminal's stdio, interleaves
+ 92865 [nobu.nokada@] $stdout.sync = true
+ 92866 [dooby@d1 .k ] That's a no-op :-)
  92868 [vjoel@PA H. ] Ok. No more posting after midnight for me! :)

Re: webrick-fcgi 0.1.0
92870 [mikkel-remov] "Aredridel" <aredridel@nbtsc.org> skrev i en meddelelse
92891 [aredridel@nb] Absolutely. In my testing, it has been the most stable and flexible for

Methods outside classes
92875 [imodev@so th] I've got a little curiosity about defining methods. As far as I know (and
+ 92879 [msparshatt@y] That's right
+ 92933 [sera@fh an .] Some languages draw hard distinctions between "methods", "functions",
  + 92934 [dblack@wo bl] I think the difference is mainly cosmetic, though.  At the top level
  + 92943 [cc1@ce .w st] What is the technical definition right now?  And which part is

noobie question - module/class vs obj
92878 [paul@vu ma k] Couple questions
92894 [gavin@re in ] Well, in JS that's creating an Object literal, rather than creating a
92895 [gavin@re in ] Oops...I thought that would work. Frankly...I'm a beginner to, and

Simple litle style question
92884 [khaines@en g] This is just a simple little stylistic query that I became curious about
+ 92886 [dblack@wo bl] I prefer "simple_example" :-)
| 92892 [jim@we ri hh] Amen!
+ 92890 [grzegorz@pi ] I would do the following, which is more in the spirit of an expression-based

Closing FXDialogBox without user input?
92889 [bluesky@st e] I would like to display a DialogBox as long as an external command is
92931 [vjoel@PA H. ] It might be simpler than that. In examples/dialog.rb, change one method

Hash like JS Hash (code)
92897 [gavin@re in ] Although I may never use it, I thought I'd share the following
+ 92898 [sdate@ev re ] ...
+ 92899 [austin@ha os] require 'ostruct'
+ 92902 [timsuth@ih g] Are you familiar with the `Struct` class?
| + 92904 [cyclists@nc ] Also the OpenStruct class. Check out ostruct.rb.
| | 92948 [claude@re eg] How would you achieve the same accesses with rexml elements, to access
| | 93029 [gavin@re in ] Use the exact same code as I gave for the Hash object, but use the class
| + 93031 [gavin@re in ] Of course I'm not familiar with it, otherwise why would I have made such
+ 93017 [claude@re eg] (second time I try to post... I did not see my post appear on the
  93030 [gavin@re in ] Use the exact same code as I gave for the Hash object, but use the

[ANN] win32-sound 0.1.0
92900 [djberg96@ho ] I'm pleased to announce the release of win32-sound 0.1.0
92903 [cc1@ce .w st] Sounds good, speaking of sound I know linux sound has always been a bit
92911 [surrender_it] ruby/sdl works fine for this

passing RUBYLIB to fcgi processes
92905 [mmead@go f. ] I have a package I'd like to include in the Ruby require search

method to WRAP text at _ # of characters?
92906 [ruby@hi me i] Made myself a li'l Ruby class for sending email.
+ 92907 [kapheine@hy ] Try searching for "gsub \1 \n" in the comp.lang.ruby search bar at
+ 92908 [ruby-talk@wh] # Wrapping strings for display
+ 92914 [gsinclair@so] There's a wrap implementation in 'rough' (a CVS repository of

hyperlinking URLs (and emails?) in text
92910 [ruby@hi me i] class String
+ 92915 [discord@ma .] This is a little bit more readable, while still being somewhat compact.
+ 92918 [kjana@dm la ] Do you like the following?  uri.rb is bundled with current stable releases.
+ 92926 [aamine@lo er] require 'uri'

YAML and quoted strings
92916 [childNOSPAM@] How can I store/load a quoted string using YAML? The problem is, YAML
+ 92922 [mike@st k. o] It depends what you mean by a quoted string.  If you mean a string
| 92925 [childNOSPAM@] Yes, I know YAML can handle string containing quotes. But my YAML files
| 92927 [mike@st k. o] Well, YAML is constrained to have some structure, and you could use a
+ 92928 [ruby-talk@wh] Next release of Syck will distinguish between plain and quoted strings.
  92932 [childNOSPAM@] Glad to hear that.
  93705 [charleshixsn] It sounds a bit like a special case.  Perhaps the best approach would be

Ruby in Las Vegas?
92919 [dblack@wo bl] I'm going to be in Las Vegas March 8-11 and, knowing that it's a

Ruby User-Group: England -- Southampton
92920 [thomas_adam1] Under "United Kingdom", that there was listed 'Southampton' as being an

ANN: RMagick 1.4.0 released
92923 [cyclists@nc ] This is the first major upgrade to RMagick since last August. The big

rubyunit#assert_set_equal, any testunit replacement?
92929 [neoneye@ad l] I am in the process of converting a testsuite from using Rubyunit, to now
92935 [neoneye@ad l] Bommer... its defined in rubicon.

Matrix element assignment?
92930 [stuart.191@n] I have just completed a little first ruby job (oo wrapper lib for

problem with variables
92936 [dirk.einecke] I've a problem with variables.
+ 92938 [dblack@wo bl] The variable name you want is $temp, not temp.  (Assuming you *really*
+ 92941 [sross@co ne ] test = "#{$temp} World"
| 92959 [dirk.einecke] Thanks to all (Sean Ross, Osuka Adartse, John Andrews).
+ 92942 [rocioestrada] You're using a global var but here you're asignining a local var that is
+ 92951 [john_b_andre] test = "#{temp} World"

Re: Closing FXDialogBox without user input? - Thanks!
92937 [bluesky@st e] Thank You! It is exactly what I wished for.  =o))
92939 [vjoel@PA H. ] You're welcome!

ANN: EZExerb 0.9.0
92945 [rich@li hi o] Project name:  ezexerb

Using RACC with 1.8.1
92947 [cc1@ce .w st] Does anyone have a nice description of how to use Racc with the latest
92950 [aamine@lo er] You must get Racc 1.4.4 full package to generate a parser.
92952 [cc1@ce .w st] Ah that explains it, huh.  It would be nice if it mentioned that in the

Making Ruby Stricter
92949 [john_b_andre] To sell a Perl->Ruby transition in my company, I'd like to make

Hash#values_at
92953 [Ara.T.Howard] what is the rational behind this?
92954 [matz@ru y- a] def values_at(*args)
92983 [ahoward@fa t] ah.  also

Math.sqrt(-1) doesn't raise ArgumentError
92957 [neoneye@ad l] irb(main):001:0> Math.sqrt(-1)
+ 92960 [matz@ru y- a] Because sqrt is a float operation.
| 92962 [neoneye@ad l] I want to do an assert_equal in rubicon, like this
| 92965 [neoneye@ad l] Wrong thinking.. don't create an instance.
+ 93004 [ jupp@gm .d ] Math.sqrt(-1) is Math.sqrt(-1.to_f) is Math.sqr(-1.0)

ri File
92958 [vjoel@PA H. ] $ ri -T File
+ 92974 [Bil.Kleb@NA ] FWIW, ruby 1.9.0 (2004-02-11) [i686-linux] works for me.
+ 93056 [vjoel@PA H. ] Yeah, it was because I had duplicate ri files in

sprintf bug in 1.9.0?
92961 [discord@ma .] I just compiled the latest release of Ruby 1.9.0, and I'm getting
92964 [nobu.nokada@] What's your platform?
+ 92966 [decoux@mo lo] moulon% ruby -ve 'puts sprintf("%08b",0),RUBY_VERSION'
| + 92973 [discord@ma .] Hmmmm... I hadn't thought to check 1.8, but I had it hanging around,
| + 92975 [decoux@mo lo] Not really sure (the problem is on line 566 in sprintf.c)
+ 92972 [discord@ma .] Guess I should have mentioned that :) Again, but with full

Building a unit test framework ==> from lisp to ruby
92963 [p_bossi_AGAI] ...

Gateway again [was Re: OT: Traits]
92967 [bob.news@gm ] "Daniel Berger" <djberg96@hotmail.com> schrieb im Newsbeitrag
92968 [dblack@wo bl] Yeah, according to Google I've posted 4 msgs in the past month.  In

`close': Bad file descriptor - filename (Errno::EBADF)
92971 [neoneye@ad l] While upgrading rubicon from 1.6 to 1.8, I bumped into
92980 [matz@ru y- a] It's a bug in rubicon.  Try test suites bundled with 1.8.1 or later.
92985 [neoneye@ad l] [snip code]
92989 [neoneye@ad l] Ok I have one last problem with Bad File Descriptor.
92999 [neoneye@ad l] Solved.. It was a typo I had made, writing 'clone' where I meant 'close'.

"General Protection Fault " after third run of an external program
92976 [bluesky@st e] execThis = "c:/WINNT/tar_dos.exe -cf " + $tarFileName + " " + $nameList

Re: Windows Logfile Archival Script
92979 [MoranCM@na a] There's a zlib extension to Ruby?  I am unfamiliar with it.
92981 [MoranCM@na a] I didn't use a batch file because I like Ruby more.  ;-)  Also, this is just
92982 [nobu.nokada@] At least, you wouldn't need to iterate for each files in ruby,
92993 [MoranCM@na a] Oh, now this is good!  This is the kind of input for which I was looking.

A good way to do a book?
92986 [bobx@li ux a] It would be great to get a "Ruby Live" book going. I like the idea of
+ 92988 [bob.news@gm ] "Bob" <bobx@linuxmail.org> schrieb im Newsbeitrag
+ 92992 [Stephan.Kaem] As far as I read on that site, it's about $30 per book per year. If I
| 92995 [bobx@li ux a] They are working out subscriptions. The initial $30 is for a first purchase.
+ 93003 [ jupp@gm .d ] I don't know of an affordable PDF editor. Minimalistic HTML plus CSS?
  + 93007 [gavin@re in ] That would make good sense to me.
  | 93009 [guslist@fr e] So does KDE directly from the print dialog.Or any un*x box with the
  + 93010 [shu@ru ur n.] So use TeX, who can really afford, or want to buy, stuff like InDesign
  | 93011 [harryo@qi so] Or, if you prefer to work at a slightly higher level, LaTeX.
  | 93077 [ jupp@gm .d ] I don't think that the actual format is very important. What is
  + 93013 [jamesUNDERBA] OpenOffice will export to PDF.
  | 93016 [gsinclair@so] IMHO the most sensible technology to use for a new collaborative Ruby book
  + 93103 [invalid@se -] AFAIK, OpenOffice can export PDF.
  + 93177 [austin@ha os] OpenOffice.
    93179 [mccallister@] docbook is an option. Is *cough*xml*cough* but goes to pdf, html, or

German edition of comp.lang.ruby FAQ updated
92987 [ jupp@gm .d ] Another update of the German edition of the FAQ for comp.lang.ruby.
92991 [ jupp@gm .d ] Sorry for that dup. I was not sure wether the gateway is still

German edition of comp.lang.ruby FAQ updated
92990 [ jupp@gm .d ] Another update of the German edition of the FAQ for comp.lang.ruby.

controlling external process' stdin/stdout AND getting its return value
92994 [ferenc@en ar] I want total control over an external process, i.e. handle its
92997 [ahoward@fa t] it's tricky to manage stdout, stderr, _and_ exit status since with popen you
93008 [nobu.nokada@] $? will be set when the pipe is closed.

has /foo/../bah/ changed?
92996 [ronjeffries@] So on my old machine, this code seems to work differently from on the
93001 [guslist@fr e] def procfile (input, output)
93014 [ronjeffries@] Thanks!
93025 [bob.news@gm ] "Ronald E Jeffries" <ronjeffries@acm.org> schrieb im Newsbeitrag

Class::name
93005 [Ara.T.Howard] what is the history/future of this method?  is it a bad idea to override it?

tar of Phrogz Pickaxe (aka YAPV)
93006 [gavin@re in ] I haven't gotten to clean up the Index like I had wanted to, but I
+ 93045 [doodpants@ma] (Sorry, couldn't resist) :-)
| + 93046 [gavin@re in ] Yeah, I probably should change that. Next release :)
| + 93076 [ jupp@gm .d ] At about the same James Tiberius Kirk and his crew boldly went where
+ 93058 [news@st d. t] Great work.
| 93075 [gavin@re in ] For 1.5 weeks I was a converting machine, full of find/replace goodness.
+ 93085 [ser@ge ma e-] Suh-weet!

Snapshot Graphics Rendering
93012 [Killian2422@] I would like to use Ruby to render a screenshot of a 3D environment.
93022 [  eg@jn .j k] What about using OpenGL?
93051 [dhtapp@co .n] I've been fiddling with some of the same concerns as Killian.  At this
93098 [  eg@jn .j k] "easy" is a always a matter of opinion, so I have a hard time answering
93154 [Killian2422@] Thanks for your feedback. Which Ruby to OpenGL bindings would you

FXR-uby - SEL_CLOSE event
93015 [colotechpro@] When you click the kill button on the main window, it (the

Blocking Calls on Win32 Ruby
93018 [bret@pe ti h] I am running into several problems with some Ruby code. It was written on a
+ 93050 [paul.rogers@] Bret - I had the same issues on Windows. I was trying to use the
+ 93081 [sdate@ev re ] their
  93267 [bret@pe ti h] Well, i am porting 18,000 lines of ruby originally written on the Mac so
  93409 [sdate@ev re ] Whoa ! That is a lot of code ...not  sure if I can handle it ;-)
  93422 [bret@pe ti h] I got the two kinds of ruby to run in parallel using drb to allow one to
  93428 [sdate@ev re ] I bet it does ! And now it is instantly distributed too !

Frozen string problem, but I haven't frozen anything?
93020 [lcgeldenhuys] I am new to Ruby. I'm trying to get some Ruby scripts going to manage
93021 [emmanuel.tou] you can't modify values in ARGV. you have to copy the values.
93028 [lcgeldenhuys] Thanks, the following now seems to work.
93033 [bob.news@gm ] "LC Geldenhuys" <lcgeldenhuys@hotmail.com> schrieb im Newsbeitrag
93054 [discord@ma .] $cvsroot = $cvsroot_in.tr_s('/', '/')
93096 [bob.news@gm ] "Mark Hubbart" <discord@mac.com> schrieb im Newsbeitrag

ruby-dev summary: 22828-22876
93023 [ttate@tt ky ] Here is a summary of ruby-dev.

comp.lang.ruby <-> ruby-talk gateway still broken
93024 [dblack@wo bl] Since messages on ruby-talk aren't getting through to comp.lang.ruby,
93084 [cc1@ce .w st] Huh that's ood, cause when I look there instead I don't see many

More socket problems (ftp) with Ruby and OS X 10.3
93026 [david@lo dt ] It seems that the need to turn on "Socket.do_not_reverse_lookup = true"

How to suppress World Writable message
93027 [jim@fr ez .o] Matz mentioned that to supress the world writable message
93032 [fmccor@in or] $-w = nil
93034 [jim@fr ez .o] ruby -W0 -e 'p $-w'
93036 [eban@os ri .] % ruby -W0 -e 'p $VERBOSE'

First meeting of Ruby-NYC
93035 [sera@fh an .] If you are a Rubyist (or aspiring Rubyist) in the New York City area,

compiling problems on cygwin
93037 [sdate@ev re ] Rubyists,
93038 [gsinclair@so] Looks like it's the space in the path that's doing it.  Eliminate that
+ 93043 [bob.news@gm ] "Gavin Sinclair" <gsinclair@soyabean.com.au> schrieb im Newsbeitrag
+ 93080 [sdate@ev re ] But of course ! Spotted that a few minutes after posting ... sorry for the

Builtins RDoc tarball?
93039 [gavin@re in ] Is there a tar.gz that corresponds to
+ 93041 [gsinclair@so] I don't know about a tarball, but you can generate it yourself.
| 93044 [gavin@re in ] Oh, excellent :)
| 93049 [gavin@re in ] Nooooooooooooooooooooooooo!
| 93062 [gsinclair@so] I guess it's generally safest to just plonk it in './rdoc', which you
+ 93042 [jamesUNDERBA] under "The 1.8 Standard Library RDoc HTML"
  93048 [gavin@re in ] Er, while that's certainly good stuff, the particular docs I'm looking
  93074 [jamesUNDERBA] Um, er, duh.
  93078 [jamesUNDERBA] But, note one and all, that the preferred way to get these files is to
  + 93091 [gsinclair@so] And then to go to http://www.rubygarden.org/ruby?OnlineDocumentationIssues
  + 93113 [gavin@re in ] Am I missing somewhere in there which has the builtin (aka Core API)
    93118 [dave@pr gp o] Look in the source file for time.c: can you see comments containing the
    93123 [gavin@re in ] That was the case, where 'old' is 1.8.1, and not a 1.9 snapshot.
    + 93128 [gavin@re in ] Amazingly, I'm still fighting this. Here's the latest output (using rdoc
    | + 93131 [gsinclair@so] Hmmmm, ugly.  I'll let Dave read the entrails, but I'll just suggest
    | + 93149 [gavin@re in ] For the record, I'm happy to report that getting the latest stable
    |   93150 [gsinclair@so] Thanks again, Gavin.  That's great news.
    + 93129 [gsinclair@so] Yes, unfortunately 1.8.1 just missed the boat on the core API documentation
    + 93134 [dave@pr gp o] The 1.8 branch in CVS has them too.
      93138 [gavin@re in ] Hrm. Not the .gz returned by
      93145 [batsman.geo@] This is commonly solved with several 'constructors'

Re: Ruby 1.8.1 segfault (debian testing)
93047 [decoux@mo lo] Try to compile 1.8.1 with --enable-pthread
93397 [decoux@mo lo] The following message is a courtesy copy of an article

module_eval, scope,  __FILE__ and __LINE__
93052 [fgp@ph o. rg] In my application and I need some variation of "attr_accessor" and the like,
threads.html
top