58962-60793 subjects 59454-62214

Ruby Weekly News
59197 [Dave@Pr gm t] Ruby Weekly News: 12/16/2002

Ruby Hacking Guide
59219 [waisun.chia@] Wow! A first book on Ruby internals..
59224 [mjais@we .d ] me too, but I too do not speak Japanase.

[OT] RE: help -- persuade my boss to adopt ruby
59222 [russ@fr es f] requires
59225 [austin@ha os] This isn't efficient with XML, unfortunately, because the data is
59231 [russ@fr es f] problem. A
59288 [austin@ha os] Well, yes. But I do see the object model and the data model as
+ 59289 [gsinclair@so] We have a "Corporate Data Architect" who has never seen a database.  Beat that!
+ 59311 [tsiivola@cc ] Ok, I confess: I know nothing about data modelling -- and I assume you
  59387 [mikkelfj-ant] be
  59392 [austin@ha os] It is a confusing term, so I'll do my best
  + 59408 [russ@fr es f] ...
  + 59416 [sdate@kc rr ] art as anything else.
    59425 [austin@ha os] DBDebunk is a good thing. Denormalization is definitely an art --

any japanese books being translated to english ??
59223 [mjais@we .d ] maybe this was discussed before.
+ 59240 [matz@ru y- a] As far as I know, none.
| 59249 [ahoward@fs .] if the publishers would be willing to put the book online, like the Pickaxe,
| 59250 [mikkelfj-ant] Pickaxe,
+ 59265 [surrender_it] can I ask italian ?

ruby-dev summary 19033-19068
59232 [ttate@kt ja ] Here is a ruby-dev summary in these days.

TDiary on IIS?
59233 [Ot.Ratsaphon] English documents are included in the package.  Try downlod it.
59241 [mikkelfj-ant] jap
59243 [mutoh@hi hw ] What version did you try?
+ 59245 [mikkelfj-ant] in
+ 59322 [Ot.Ratsaphon] I downloaded tdiary-1.5.1 and installed it but I need some information on

Re: irb auto completion
59237 [Michael.Garr] I'm just a newbie trying that's also trying to get auto-completion to work
59268 [jd204NoSpam@] Thanks for writing.  I've tried both
59394 [520079130762] Auto-completion ('irb -r irb/completion') works fine with the Ruby-165-2

Deep copy in Rub?
59257 [christopher.] I remember when using C++ for the first time and running into the shallow/deep
+ 59259 [mikkelfj-ant] shallow/deep
| 59269 [ysantoso@je ] It doesn't make sense to say a value is flat or deep.
+ 59270 [matt@li ke .] In addition to the other answers, there are two methods to copy an
  59296 [kentda@st d.] [kentda@v052a kentda]$ irb
  59299 [bulatz@in eg] anyone can tell why ruby don't have deep copy routine in standard distribution?
  59353 [ysantoso@je ] But it has. Didn't you read my post?
  59357 [flori@ni e. ] [flori@lambda flori](0)$ irb --prompt xmp
  59358 [jim@fr ez .o] I just did a CVS get this morning...
  59369 [flori@ni e. ] OK. The only problem is that I can't commit my patches there. ;)
  59390 [chr_news@gm ] marshal doesn't copy the frozen flags for the

How to read a single character from DOS prompt in windows (without <Enter>)?
59258 [usano@ea th ] Can anyone tell me how to get a single character from the command line
59261 [sturmpanzer@] This (or something like it) was posted a while ago by some helpfull
59524 [usano@no pa ] Thanks AW.  I have used the following...
+ 59582 [usano@no pa ] Hmmmm.  This worked ok in my little test file, but the character is
| 59800 [jojo_dfb@ya ] Im not understanding what the problem is? I tried the script and seems
+ 59799 [jojo_dfb@ya ] I used the sleep command simply because the script would unduce the CPU

ruby for pocket pc
59260 [simoncedruby] Did someone managed to run ruby app on pocket pc ?

More FXRuby oddness : subclassed FXTreeItem
59272 [jason@pe sa ] I have subclassed FXTreeItem (MyTreeItem) and built a
59281 [lyle@us rs s] No, you should get a reference to the original MyTreeItem object(s).
59282 [jason@pe sa ] Ahhh... always one step ahead of me, aren't ya?
59283 [jason@pe sa ] not to mention.... when you run this sample with Ruby
59355 [lyle@us rs s] Yes, all of these problems (well, they're all symptoms of the same
59519 [jason@pe sa ] Hmmm... these problems don't seem to go away with the
59535 [lyle@us rs s] FXRuby is using. It doesn't give any indication of which FXRuby release

cross platform gui plotting packages
59273 [ahoward@fs .] rubyists-
59274 [rich@li hi o] Interface Ruby with Flash.

How to return value from middle of a block?
59276 [jim@fr ez .o] I am trying to return a value from a middle of a block,
+ 59278 [jim@fr ez .o] should be
+ 59279 [ysantoso@je ] Is this what you're looking for?
+ 59280 [matz@ru y- a] break <value>
  59285 [jim@fr ez .o] Hmm, I tried that, but it didn't work.
  59287 [nobu.nokada@] `break' exits closest *lexical* block, try with `next'.

Multirow slicing
59277 [rrytov@en op] Here is a multirow string
59370 [mike@st k. o] Have you looked at the m modifier for Regexps?

dialup connection
59297 [gaga6@gm .d ] is there any possibility to close a dialup connection with ruby
59298 [matz@ru y- a] system "poff"
+ 59300 [gaga6@gm .d ] Thanks for the answer, but I'm using a Windows 2000 system.
| 59301 [eban@os ri .] system "rasdial /disconnect"
+ 59411 [sdate@kc rr ] Just out of curiosity, what Linux do you use Matz ?
  59427 [matz@ru y- a] Debian GNU/Linux on Panasonic CF-B5ER notebook with a trackball.
  59435 [gsinclair@so] Wow!  Imagine a Beowulf cluster of those...!  ;-)
  59461 [batsman.geo@] NOOOOOOO! I just quit Slashdot cause it was destroying my productivity

standard accessor for List attribute
59302 [ ddet@gm .d ] the shortcuts  attr_<reader|writer|accessor> for
+ 59303 [tim@ba es id] Make it more general, put it in a library, upload it to the RAA, convince
+ 59305 [nakahiro@sa ] 'assoc' in RAA is for association.  It might
+ 59306 [bulatz@in eg] attributes is just methods, automatically defined by attr_reader/...
+ 59312 [flori@ni e. ] class Class
+ 59323 [Eugene.Scrip] If you use only one instance variable you wish to access, you can

[OT] Static typing & compilation of Ruby
59307 [batsman.geo@] They're not.

viewing output
59321 [lausianne@gm] I just started with Ruby. At home (WinXP) there are no problems so far,
+ 59385 [mikkelfj-ant] It has nothing to do with OS.
+ 59455 [lausianne@gm] Thanks for the reply! It is in both cases (home and work) 1.67-4. I
| 59531 [mikkelfj-ant] I may work in the 1.6.x range - it just appears to have been introduced as a
+ 59456 [lausianne@gm] Thanks for the reply! It is in both cases (home and work) 1.67-4. I
+ 59457 [lausianne@gm] Thanks for the reply! It is in both cases (home and work) 1.67-4. I

code review
59324 [D.Varvello@q] We are trying to review some OO applicative code written in ruby. We explored Rdoc but it seems to us a little bit complex, digging in the YARRA we found a lot of interesting stuff, but it is either too much simple, or too much complicated. Can you suggest something object oriented and with a dimension of about 10-15 classes?
+ 59327 [austin@ha os] I'm not sure what you find difficult about RDoc; it's a simple
| 59448 [dsafari@pa a] Just a hunch, I think the Davide is after a Ruby package of about 10-15
| 59480 [D.Varvello@q] Right, I'll thank you all for the suggestions in the previous mails.
+ 59328 [gsinclair@so] explored Rdoc but it seems to us a little bit complex, digging in the YARRA we
| 59329 [D.Varvello@q] I was not so clear. We want to explore source code, so we started to look at Rdoc sources, but they are too difficult to understand, so we are looking for something simpler.
| 59334 [probertm@no ] One utility that may fit your exploration need is log4r
+ 59338 [ahoward@fs .] CGIKit

Does rdoc generate line numbers?
59330 [jim@fr ez .o] I am using rdoc with the -S (--inline-source) and was wondering if it
59331 [dave@pr gp o] There is now... :)
59335 [jim@fr ez .o] Rockin' :). Where do I get the latest CVS from?
59337 [dave@pr gp o] ...
59340 [jim@fr ez .o] Dave, the code works great, but is one line number off.
59345 [dave@pr gp o] Doh!

Need Test::Unit for 1.7.3
59336 [jim@fr ez .o] I tried to install the latest test unit 0.1.4 with 1.7.3 and the install
+ 59344 [jim@fr ez .o] Never mind. If found it.
+ 59373 [mike@st k. o] Have you tried getting the latest from CVS - it's in rough/lib/testunit

Speedy Ruby (was: Re: help -- persuade my boss to adopt ruby)
59339 [probertm@no ] This is a really interesting statement to me, mostly cause I don't think
+ 59346 [waisun.chia@] Well, I've managed to get 80%-200% speedup by just simply running my
| 59352 [dan@si he or] Unless you got ruby to generate the C code automatically from your
| 59354 [waisun.chia@] Nope. Mine was hand-coded.
| + 59361 [dan@si he or] Sure, but this thread's all dealing with speeding up ruby generally,
| + 59365 [hal9000@hy e] It is worth mentioning that the 20% can be
+ 59350 [dan@si he or] None of those, actually. If I was going to look for the speedups I
  59371 [probertm@no ] And with dynamic typing and late binding it gets very non-trivial.
  + 59388 [dan@si he or] When I realize that I can't afford to replace everyone's hardware
  + 59468 [simon@si on ] Of course, if there was some kind of highly optimised VM that could cope

Confessions of a Ruby programmer
59341 [waisun.chia@] Fellow Ruby Miners,
+ 59342 [gsinclair@so] I started even smaller, but not too small.  I used Ruby to build a prototype of
+ 59381 [ptkwt@sh ll ] Could you put some info about this project on the RealWorldRuby page of
  59382 [xrfang@ho ma] It is surely inspiring to hear this. I am now actively "alluring" friends to
  + 59395 [ptkwt@sh ll ] I don't know how many companies are using Ruby, but as I mentioned in a
  + 59430 [waisun.chia@] Don't give up.
    59503 [djberge@qw s] You can absolutely contribute.  Port a Perl module, if nothing else.  Here's
    + 59517 [xrfang@ho ma] I don't think I can port any Perl module, because I don't do perl at all. My
    + 59651 [comp.lang.ru] - - Not sure about these.
      + 59652 [djberge@qw s] If it does, then refer back to that part where I mention "documentation needed".
      | 59661 [bruce@co ed ] For HTML::Table, I'd suggest using something like Amrita-- its ability to
      + 59705 [matt@li ke .] Try resolv.rb

OT: Functional Language Recommendation
59343 [waisun.chia@] Sorry for the OT post, but I need some advise from some like-minded
+ 59347 [Ephaeton@gm ] ^^^ you won't need that in a FP language :)
| + 59383 [ser@ge ma e-] I've no experience with Ocaml, little with Haskell, and a moderate
| | + 59384 [Ephaeton@gm ] Or he just hits '%' in vi or the moral equivalent in his editor. Editors
| | | 59446 [maksa@se am ] after || ?)
| | | 59453 [Ephaeton@gm ] So seeing this mnemonic can give you an impression how easy lisp syntax is.
| | + 59399 [matt@li ke .] With the exception of emacs users, where the editor helps out quite a
| + 59507 [probertm@no ] I like the HUGS system, which is a nice way to learn Haskell.  I agree
+ 59364 [dfan@df n. r] If you are studying a language in order to actually do something
| + 59368 [ysantoso@je ] Has LISP really been relegated for language archival? :(
| | 59443 [bulatz@in eg] languages like womens - small is beatiful :)
| | 59444 [ysantoso@je ] I find your antirubenesque attitude insulting to me.
| + 59414 [sdate@kc rr ] For this reason alone (takes more effort to write) , I have always wondered
|   + 59440 [dblack@ca dl] It's not exactly an endorsement; "Language of the Year" isn't an award
|   | 59445 [sdate@kc rr ] Ok, may be "endorse"  is not the right term to use. I meant to say
|   | + 59462 [batsman.geo@] Japanese is always a very strong candidate.
|   | + 59483 [dblack@ca dl] We've gotten way off-topic for the Ruby list.  You can get more info
|   + 59465 [schuerig@ac ] If I'm not mistaken, the point of choosing Haskell as the LotY was
|     + 59471 [bulatz@in eg] but winner will be Visual Basic :)  one time i compared popularity
|     + 59493 [sdate@kc rr ] Oh, absolutely !
+ 59442 [bulatz@in eg] afaik, ocaml is interesting as strong-typed and fast FP language,

simple parse error, but i can't find  him
59359 [ruby@jo lh d] my code ist this
+ 59363 [lyle@us rs s] f = File::open(dateiname,mode="w")
+ 59367 [flori@ni e. ] Finish this method or delete this line.
  59372 [ruby@jo lh d] -i will.

Re: Ruby instead of PHP?
59366 [jim@fr ez .o] This should probably go to ruby-talk or modruby.net.

Ruby instead of PHP?
59374 [d.werder@pl ] I?m new to Ruby and I?d like to know if anybody tried to use Ruby as a replacement to PHP?
+ 59375 [jason@ju ct ] Ooooh, this gives me visions of squirrellmail becoming rubymail....
+ 59412 [nemo@he lo r] Yep, I switched from PHP to Ruby, and I'm SOOO glad I did.
  59501 [usenets@ny .] ruby, mod_ruby, eruby, and apache 2.0.43?
  59514 [nemo@he lo r] ruby, mod_ruby, eruby, and apache 2.0.43?
  59522 [russ@fr es f] Blimey, where do you find a wife who has a Linux installation!?
  59523 [jason@ju ct ] In my house too :)

Re: Functional Language Recommendation
59379 [jsuntheimer@] I second the notion of scheme.  MzScheme / DrScheme are clean, beautiful,
59386 [mikkelfj-ant] If you are interested in the language as such, there are many choices. If

quit mailing list
59389 [stefanocheri] How do i quit the mailing list?
59393 [lyle@us rs s] you should send a mail message with the body "unsubscribe" to the
59426 [botp@de mo t] fyi, It's in the mail header.

forking with block leaves zombie procs
59398 [eric.schwart] I'm still in the process of reducing this to a simple test case, but
+ 59401 [walker@de fc] Zombies need you to Process.wait for them to decompose.
+ 59429 [nobu.nokada@] If you don't need the exit status, prepend this line.
  59588 [eric.schwart] But, AIUI, that wouldn't kick in if the parent process has exited before
  59591 [nobu.nokada@] If there were zombies, the parent process IS alive.  Otherwise

named parameters
59400 [dcarrera@ma ] Is there a way to write a function with named parameters?
+ 59404 [walker@de fc] Thi sis the way given in the Pickaxe.
| 59422 [vjoel@PA H. ] def foo(params)
+ 59405 [gsinclair@so] Check out
  59406 [lyle@us rs s] Dan Berger also did a really good presentation on this topic at the Ruby
  59502 [djberge@qw s] Thanks Lyle. :)

Regular Expressions
59409 [Graeme.Matth] ...
59410 [jason@pe sa ] Try using

iCal in Ruby?
59413 [Trevor.Jenki] Back in September 2002 there was some discussion here about the

ruby-talk traffic doubles in last two weeks
59415 [ptkwt@sh ll ] it shows weekly volume going from an average of around 700 to about 3500.
+ 59417 [brian@co ln ] 3500.
| 59418 [rich@li hi o] Nah. More people argued longer...
+ 59421 [mikkelfj-ant] Yeah, more OT threads like these, and since no-one seems to care, more posts
+ 59424 [austin@ha os] Yeah. Data error. I have only 2,235 messages in my ruby-talk inbox

Nature of ruby
59423 [tsiivola@cc ] "Eval is just another function".
+ 59428 [mikkelfj-ant] The essential features are GC, scoping rules, runtime (re)definitions,
| 59434 [gsinclair@so] Without eval, hardly any existing code would work: it underlies attr_*.
| 59530 [mikkelfj-ant] Well, I'm free to implement attr, attr_reader as I please :-)
+ 59436 [gsinclair@so] So let me get this straight.  A *compiled* Ruby program executes eval by
  + 59450 [bob.news@gm ] "Gavin Sinclair" <gsinclair@soyabean.com.au> schrieb im Newsbeitrag
  + 59479 [tsiivola@cc ] A rhyming rypo.
  | 59511 [hal9000@hy e] Tuby or not tuby... that is the question.
  + 59526 [dan@si he or] Nope. A compiled Ruby program executes eval by running the embedded
    + 59529 [tsiivola@cc ] Eval is eval as in evaluation: a function that *evaluates* the
    | 59533 [dan@si he or] Nah. If you're compiling, you might as well go all the way, as it's
    + 59538 [probertm@no ] In fact this is the heart of Forth, where you create new words
      59542 [dan@si he or] Just a little, though that's a good place to start.

How to 'touch' a file to a time other than now?
59432 [phlipcpp@ya ] fn = '/usr/aDirectory/aFile'
+ 59433 [eban@os ri .] % ri File.utime
| 59438 [phlipcpp@ya ] Ah, I get it. In the original example someone was using 'touch' to make a
+ 59437 [dossy@pa op ] # touch foo

Regex#=== with non-string argument
59449 [vjoel@PA H. ] x = 1
+ 59451 [walker@de fc] x = 1
| 59452 [vjoel@PA H. ] Thanks, but no. I happily discovered that fact a few days ago, but my
+ 59463 [matz@ru y- a] No.  I will fix this in the development version.  And I confirmed no
  59464 [vjoel@PA H. ] Great. By "other", I assume you mean besides Regex and Range...