68042-68581 subjects 68436-69390

^ FXruby on osx
68249 [aakhter cisc] I'm trying to get Fxruby to work on OSX (10.2.4). I do have fink installed.

^ Problem with ri and sqlsh.rb
68252 [starflow7 at] ir.rb is not in the ruby\bin directory (as the README file suggests).

^ Saving code written during an irb session
68254 [W.L.Kleb lar] OK, so I admit: I'm stupid.  How do I save the code I've generated
+ 68255 [gsinclair so] You're not (necessarily) stupid.  irb has no obvious code export
| 68258 [chadfowler c] ...
+ 68256 [bobx linuxma] ...
+ 68257 [ms iastate.e] Quoth Bil Kleb <W.L.Kleb@larc.nasa.gov>
+ 68259 [gsinclair so] Done it.  Put this in your ~/.irbrc
| + 68262 [gsinclair so] Array.  But it doesn't #to_s like an array of strings, nor does it
| + 68269 [jim freeze.o] Wow. Thanks Gavin. If I may, I have modified your code just
|   + 68293 [botp delmont] dummier question: Now, how do I load a (script) file to irb (history)?
|   | 68300 [jim freeze.o] Hmm, I've seen posts on how to run a script and then have
|   | 68315 [gsinclair so] def loadhist(path)
|   + 68327 [chrismo clab] Is Readline a 1.8 thing?
|     68335 [gsinclair so] No, more likely a platform thing.  What are you using?  All the same,
|     68338 [chrismo clab] win2k. It can't find 'readline' which I suspect is expected on Windows, IIRC
+ 68321 [bob.news gmx] I do it the other way round: Typically I write the code in an editor and
  68322 [jim freeze.o] I have not had the best of luck with that. I have not pinned down
  + 68332 [gsinclair so] I sometimes just 'require' the file I'm working on.
  + 68333 [bob.news gmx] "Jim Freeze" <jim@freeze.org> schrieb im Newsbeitrag

^ RubyCocoa and sheets
68261 [ jimm io.com] I'm using RubyCocoa, translating an Objective-C checkbook application to
68287 [shirai korin] Does this article help you?

^ writing a 4 byte Integer to socket
68264 [surrender_it] I need to write a value (it should be a Fixnum, but I'm not sure) over
68266 [billk cts.co] Array#pack is probably what you're looking for...
68275 [B.Candler po] For an example of this in real code, install druby and look at drb/drb.rb
68280 [surrender_it] thanks Brian and Bill !

^ [ANN] xml-simple 0.6.0
68267 [contact maik] Yo!
+ 68291 [botp delmont] Yikes! this is too simple (indeed) to be true.
+ 68319 [ jupp gmx.de] Josef 'Jupp' Schugt       http://jupp.tux.nu       jupp(AT)gmx(DOT)de
| 68339 [batsman.geo ] The author must find this really flattering :)
+ 68355 [han.holl pob] I downloaded the zip file (twice) and get, on
  68359 [contact maik] I'm sorry! For a reason that is still a mystery to me, my FTP

^ inspect question/request
68268 [nemo hellotr] When Ruby stumbles upon an object with a missing method, it says something
68289 [matz ruby-la] Yeah, right.  It's been like that from the beginning, but I don't
68290 [nobu.nokada ] If the object doesn't have "inspect", it will cause infinite
68292 [matz ruby-la] I don't think so.  There's Object#inspect defined, so that it would
68296 [nobu.nokada ] But it were happen, it might be hard to detect, I guess.  Or
68299 [matz ruby-la] Who wants to undef "inspect"?
+ 68302 [vangczung ya] If something, no matter how stupid, is possible, then someone, somewhere
| + 68305 [nobu.nokada ] Yes, it will be possible and parhaps reasonable.  I just tried
| + 68306 [matz ruby-la] I know.  I did it once, and asked myself how often it occurs, and how
|   68308 [vangczung ya] I doubt that the test would affect the performance of correct code if
+ 68313 [gsinclair so] A thread some time ago discussed the creation of absolutely plain
  68314 [matz ruby-la] Sounds reasonable.  You succeeded to persuade me.

^ Hard coded newline characters
68271 [dave landrit] There are a surprising number of ruby source files that have newline
68286 [nobu.nokada ] Interesting but I doubt its necessarity and worthfulness.
68328 [dave landrit] Likewise with your reply.
68334 [vangczung ya] Ouch.
+ 68337 [decoux moulo] ...
+ 68340 [tkynerd spam] I'm afraid I'm on David's side with this one. If I post here saying, "I
| 68344 [vangczung ya] I can agree with that.  The difference is that this was a request for
| 68350 [tkynerd spam] -snip-
| 68351 [vangczung ya] Hmm.. must've missed that one...
| 68353 [tkynerd spam] I guess so. I found it very rude and felt a rude response was entirely in
| 68357 [billk cts.co] To be fair, Nobu answered the question in two parts.  I didn't
| 68378 [nobu.nokada ] Thank you for better explanation of my intention than me, and
+ 68342 [dave landrit] This is exactly the type of elegant solution that I'm looking for.
  + 68343 [decoux moulo] ...
  + 68345 [decoux moulo] ...
  | 68349 [dave landrit] Works perfectly!  Thanks.
  + 68346 [james_b neur] Wow.  I have to disagree.  Time no longer allows me to read every message on
  + 68347 [vangczung ya] Always a temptation; rarely worth it in practice... ;-)
  + 68352 [austin halos] David,

^ Regexp parse error
68272 [paul floorba] ...
68273 [paul floorba] ...
68277 [behrends cse] ...

^ suggestions
68274 [meinrad.rech] i find it somewhat strange, that the "name"-attribute is a hash
68281 [contact maik] ...

^ [OT] Re: Article on secure code
68278 [slewis parad] ...

^ how to catch any exception "eval" throws
68279 [meinrad.rech] i tried
+ 68282 [surrender_it] everything beetween sqaure brackets means "optional".
+ 68283 [hal9000 hype] I can never remember exactly how this works,
+ 68307 [ahoward fsl.] ~ > cat foo.rb
  68317 [batsman.geo ] Exception should be enough unless somebody is knowingly raising other

^ Obtaining the Archive Attribute of a File on Windows Systems
68285 [delynnb mac.] Is it possible to check the archive attribute of Windows files using
68298 [nobu.nokada ] ...
68304 [maksa sezamp] require 'find'
+ 68312 [gsinclair so] The command works in a Cygwin window.
| 68373 [botp delmont] and also on builds _without_ cygwin :-)
| 68385 [maksa sezamp] The attrib command will work anywhere, it's just that under the default W2K
+ 68462 [delynnb mac.] Milan,

^ How to allow iteration over a collection that can be enumerated in multiple ways?
68297 [sroberts uni] Kind of a general question.
68301 [sroberts uni] I thought of a 3rd way, but I don't know if its too clever.
68303 [austin halos] I personally would look at it from an SQL-like perspective.

^ [BUG] TkVariable
68309 [ oct zoy.org] in current ruby distribution (Debian and PragProg win32), there is a

^ ruby-dev summary 19878-19943
68310 [aamine lover] This is a summary of ruby-dev ML in these days.

^ Debugger Problems
68311 [seth cql.com] A few problems with the debugger using the 1.8 preview2.

^ syntax highlighting problem in vim
68318 [ jupp gmx.de] header = [ /^Date: /,
+ 68325 [kgergely mla] Negative. It is correct for me. How is it displayed at you?
| + 68329 [austin halos] header = [ %r{^Date: },
| | 68400 [hgs dmu.ac.u] As is probably apparent from his posting, Gavin Sinclair is looking
| | 68483 [gsinclair so] Hmmm... I hope not.  Doug Kearns is the maintainer of that beast.  I
| | 68485 [hgs dmu.ac.u] Sorry for this.  I should have checked on RubyGarden
| + 68341 [batsman.geo ] Wrong colors and incorrect indentation when I make it reindent.
|   68397 [gsinclair so] ...
|   + 68398 [batsman.geo ] I underlined it cause *I* did miss it. Just as I was about to reply "works
|   | 68401 [hgs dmu.ac.u] Vim's manual was all I could find when looking online, plus reading
|   + 68405 [pbrannan atd] When does ruby.vim get released?  Is it with vim itself?  What's the
|     + 68433 [n1k0 rogers.] ...
|     | 68496 [pit capitain] I think Paul was looking for a way to automatically prove that new
|     | 68545 [fugalh falco] ...
|     + 68482 [gsinclair so] It's extremely ad hoc.  I have very little ability with Vim scripting,
+ 68388 [djkea2 mugca] Thanks. I'll fix it.

^ draft: ruby embedded into c++
68320 [0bz63fz3m1qt] I am working on a tutorial on how to embed ruby into c++.
68394 [botp delmont] I do not have ideas but comments only :-) I like your work, keep it up. Your
68396 [0bz63fz3m1qt] Thanks alot :-)

^ Change to /.../.match("foo") behaviour in 1.6.8?
68323 [austin halos] l, m1, m2 = /((?:\S+\s+){11})(.+)/.match(line)
+ 68324 [dblack super] I don't think that's changed.  Can you give a whole demo of the
| 68326 [decoux moulo] ...
| 68330 [dblack super] ruby 1.6.7 (2002-03-01) [i686-linux]
| 68331 [decoux moulo] ...
+ 68377 [matz ruby-la] Put "*" before the expression, e.g.
  68379 [dblack super] I'm getting confused....  It looks like 1.8 goes back to the 1.4
  + 68383 [austin halos] I must correct myself -- I was originally using the 1.7 release by
  + 68386 [matz ruby-la] It was a bug to be fixed.

^ [ANN] Text::Format 0.62
68336 [austin halos] == Text::Format 0.62

^ PP, PET, PMMA scrap
68348 [plastic_hans] To whom it may concern,

^ [Q] CGI::Session
68354 [rodrigo.berm] Have nice & productive  week everyone.
+ 68358 [ahoward fsl.] rodrigo-
| 68362 [B.Candler po] Actually it does cache the query it found first time (by defining some
+ 68360 [kentda stud.] I recently scratched a similar headache in mod_ruby w/ eruby. The CGI

^ Ruby Weekly News
68366 [Dave Pragmat] ...

^ GUI development under Ruby
68367 [jennyw dange] I was wondering what people were using for GUI development. I've seen a
+ 68368 [dcarrera mat] The other big one is 'FXRuby' (http://fxruby.sourceforge.net/)
+ 68369 [surrender_it] You should not miss
| 68370 [jennyw dange] Seems to! I looked at the Fox page, though, and it doesn't list Mac OS X
| + 68371 [dcarrera mat] I don't think that exists yet.  There is a project to port Gtk1 to Aqua.
| + 68375 [jim freeze.o] Yes
+ 68409 [szegedy nosp] Mu favourity is Qt. It is a pity that QT extension project does not
| 68411 [0bz63fz3m1qt] I tried unsuccesfully to install/use  QT-swig..
+ 68606 [tomas_brixi ] BTW

^ ASN.1 basic/distinguished encoding rules for Ruby?
68372 [cjh_nospam m] Has anyone built a library for ASN.1's BER or DER for Ruby?
68459 [mikkelfj-ant] ...

^ RubyCocoa and addresses of pointers
68374 [ jimm io.com] Some methods in Objective-C require the address of a pointer, so the method
68420 [ jimm io.com] I think I've answered my own question. You need to initialize the variable

^ FOX GUI  /  FXRuby tutorials
68376 [xlucid users] Are there any tutorial web-sites for making some introductory FOX
68380 [LeiWENG moto] Are there any tutorial web-sites for making some introductory FOX

^ Ruby code for reading unformatted Fortran files
68381 [W.L.Kleb lar] Does anyone have a code snippet to read Fortran unformatted files
68389 [B.Candler po] If it helps, druby sends binary objects (Marshal strings) preceded by a
68395 [W.L.Kleb lar] Thanks for the lead.  I'll take a look.

^ [RCR] Expose iv_get/iv_set to Ruby
68382 [austin halos] I have a potential need to deal with all of the instance variables in
68384 [nobu.nokada ] Kernel#instance_variable_get and #instance_variable_set are

^ unpack("V") returns Integer and not Fixnum
68387 [coma_killen ] This has probably been reported before but if not I thought I might

^ Re: Announce: RHDL-0.4.2 (UsersGuide updated)
68391 [ptkwt shell1] ...

^ J->E translation of Matz's interview on Slashdot Japan
68392 [news sfc.kei] Some of you might know that matz's interview has posted on
68407 [pate eylerfa] This is great stuff.  I look forward to reading and helping.  I just have
68413 [news sfc.kei] OK, I fixed it. Only-English-written page is provided now (except some
68476 [Steven.Grady] ...
+ 68479 [maki rubycol] Fixed.  Clean up other sections, please :-)
+ 68480 [t00156to sfc] I don't know what type of "mess up" you encountered exactly...
| 68487 [maki rubycol] Oh, sorry.
+ 68495 [jim freeze.o] Yes, I must agree. A very good interview. Matz is quite the

68393 [adewilliamsl] Barrister Adewale Williams (LLB).

^ Amrita substitution question
68399 [B.Candler po] Any Amrita experts out there...
68408 [ahoward fsl.] # (1) replace 'REPLACE ME ' with some text

^ segfault in net/protocol.rb with xmlrpc4r
68403 [ps solution-] ...
68470 [nobu.nokada ] Can't you try with newer release of ruby?  Some bugs had been

^ Re: Opera bookmark cleaner.
68404 [B.Candler po] Welcome, and good start!
68406 [jason jvoege] The only problem with this is that the file does not get closed until
68486 [B.Candler po] It's a good point about the file remaining open. You might want to note that

^ SIGSEGV and crash in $std***.print
68410 [abuse durchn] The following program creates a segfault or interpreter crash extremly
68475 [nobu.nokada ] It seems GC bug, although I couldn't reproduce the issue with
68508 [abuse durchn] GC == Garbage Collector or do you mean GCC?
68531 [nobu.nokada ] I meant the former, but yes, gcc-3's optimization seems wicked
68549 [pbrannan atd] In what way is gcc-3's optimization wicked?  What workarounds are there

^ JRuby still alive?
68412 [Mark.Volkman] ...
68435 [ndrsbngtssn ] We've done some work since then that's in the CVS only. But none of us
68838 [arthur8 boar] That's too bad...I was hoping to see JRuby 1.0 released, so that the
68888 [ndrsbngtssn ] I think the basic JRuby interpreter was developed pretty quickly too.

^ Re: OO vs. procedural programming
68414 [bob.news gmx] "Peter Ensch" <nobody@bogus.com> schrieb im Newsbeitrag
+ 68416 [mike osdn.or] Hey it didn't _force_ me into that! :)
| 68450 [mikkelfj-ant] ...
+ 68484 [gsinclair so] I tend to create classes even for really simple apps, because Ruby
  + 68492 [bob.news gmx] "Gavin Sinclair" <gsinclair@soyabean.com.au> schrieb im Newsbeitrag
  | + 68494 [michael_s_ca] I do believe there was a precedent to Java's "main()"....   =D
  | | 68503 [bob.news gmx] "Mike Campbell" <michael_s_campbell@yahoo.com> schrieb im Newsbeitrag
  | | 68504 [michael_s_ca] Since C doesn't HAVE classes...  =)
  | + 68535 [gsinclair so] Yeah, Java was perhaps my most-practiced language before Ruby,
  + 68493 [dblack super] def main

^ eval'ing a config file
68415 [ian caliban.] I have a number of LDAP-related programs that I want to share a common
+ 68418 [pbrannan atd] LDAP_HOST = 'foo.bar.com'
| 68530 [schatten nos] ...
+ 68506 [batsman.geo ] Just for the eval part (IMHO the whole problem would be handled better
| + 68512 [ian caliban.] Thanks, I didn't know about that method.
| + 68529 [bruce codedb] Personally, I'd sacrifice the equals sign, make it a colon, and call it a yaml
+ 68533 [warren freed] dear ian,

^ Getting readline support on solaris
68417 [jim freeze.o] I have readline on my system (sparc 5.8), but I can't seem to get
68419 [djberge qwes] You should be able to cd into the Ruby source, under the 'ext'
68422 [jim freeze.o] Well duh, don't I feel stupid.
68423 [djberge qwes] Yeah, if it wasn't installed you would get a LoadError.  I have to admit
68430 [ahoward fsl.] ~ > ruby -e 'p require "readline"'
68432 [jim freeze.o] ruby -e 'p require("readline")'
68434 [djberge qwes] Well, duh - I forgot irb automatically loads readline, so that's why I

^ sharing objects between tests (revisited?)
68421 [pbrannan atd] I don't know if I've asked this on this list before or only on irc (I
+ 68424 [gfb tonesoft] How about
| 68429 [pbrannan atd] This doesn't work, since there is a different instance of MyTest for
+ 68425 [gfb tonesoft] How about
+ 68426 [gfb tonesoft] How about
+ 68427 [gfb tonesoft] How about
| 68428 [bystr mac.co] Sorry for multiple posts, it is my company's mail server fault :-(.
+ 68431 [ptkwt shell1] ...
| 68499 [pbrannan atd] Then if I require the file with MyTest but I never run MyTest, I still
| 68501 [austin halos] require 'test/unit'
| 68519 [B.Candler po] Or shorter:  "unless defined? @@f"
+ 68490 [sera fhwang.] Paul,
  68498 [pbrannan atd] Your statements are correct for unit tests.