73238-76230 subjects 73646-74517

Re: ruby_run dies w/Borland Builder 5
73397 [sean@RE OV M] Answering my own question so the group and anyone Googling in the future
73413 [nobu.nokada@] You might need to use SetStdHandle() instead of freopen().
73436 [sean@RE OV M] program

Confused about to_s in Ruby / irb
73403 [itsme213@ho ] I wish to control the default display of my objects, and thought to_s
+ 73406 [gfb@to es ft] Actually, irb uses "inspect" in this case.
+ 73407 [hal9000@hy e] I guess you know about p and puts, right?
| + 73427 [sdate@ev re ] Meaning ?
| | 73428 [hafu@ma ni g] You're not dense. I still find it highly non-obvious.
| + 73441 [itsme213@ho ] about p and puts, right?
|   + 73444 [mwilson13@co] A class is an object. As such it gets a minimum collection of methods.
|   + 73445 [batsman.geo@] That's because
+ 73429 [mwilson13@co] irb just shows what the input expression returns. The things you see

ANN: REXML 2.7.0 (3.0b)
73405 [ser@ge ma e-] Greetings,
+ 73439 [mjais@we .d ] thanks for Rexml. impressive work. I will download 2.7.0 and try
+ 73454 [jbshaldane@h] Excellent.
  73556 [ser@ge ma e-] Can a man ever have *enough* tea cozies?

Re: REXML 2.7.0 (3.0b)
73412 [sean@RE OV M] Far and away my favorite XML library ever; thanks for the updates.

module include and class re-opening
73415 [itsme213@ho ] Can module2 include module2 and add features to a class from module1?
73418 [vjoel@PA H. ] module M2
73438 [batsman.geo@] => nil

[ANN] RMagick 1.2.2
73419 [cyclists@nc ] RMagick 1.2.2 is now available. RMagick is a Ruby binding to the

Interactive Console Program with Tab-Completion
73420 [kapheine@hy ] I am running into a lot of trouble trying to find a good way to
73453 [bob.news@gm ] bash (and I belive tcsh) have programmable completion that does exactly
73458 [batsman.geo@] But bash (and probably tcsh too) uses readline...
+ 73467 [bob.news@gm ] "Mauricio Fern?ndez" <batsman.geo@yahoo.com> schrieb im Newsbeitrag
+ 73468 [roberto@RE O] Nope, tcsh being a BSD licensed program doesn't use the GPL readline. It
  73497 [kapheine@hy ] I'm not having a problem using the features that ruby's readline

Still stuck on gets for stdin under Win2000ProSP3
73423 [RLMuller@co ] Daz helped me with the following code running under SciTE 1.52 & 1.52
73440 [dooby@d1 .k ] Try giving your script an extension of '.rbw' instead of '.rb'

OT: Chess computer programs
73433 [androflux@re] See, that's the problem with chess computers: They're so good at it, it's no

problems with Net::FTP
73443 [John.Jennisk] I want to make a program that transfers a lot of files to another computer
73557 [dooby@d1 .k ] Like ruby itself, many libraries provide classes of exceptions

73456 [jfontan@ce g] toma ya

Hispeed String concat
73463 [dwerder@gm .] What is the fastest way to add many small Strings to a big buffer?
+ 73464 [mneumann@nt ] Use the << method.
+ 73466 [batsman.geo@] AFAIK, if you stay w/ Ruby (and don't write extensions in C), the best
+ 73472 [dave@pr gp o] I don't believe there's a single fastest way.
  + 73483 [feldt@ce ch ] For "Ruby Developer's Guide" I did some measurements on this and join was
  | 73486 [djberge@qw s] I'll add string concatenation to the next benchmarksuite. :)
  | 73488 [feldt@ce ch ] I missed that one. RAA?
  + 73655 [dwerder@gm .] "Pre#{i.to_s}Post" seams to me cheaper than 'Pre'<<i.to_s<<'Post'
    + 73656 [botp@de mo t] these speed quirks are interesting.. do we have something similar on wiki?
    + 73657 [nobu.nokada@] to_s inside #{} isn't needed.
      73714 [ jupp@gm .d ] Saluton!
      + 73747 [feldt@ce ch ] To me Storage is too general a name. StringBuffer?
      | 73794 [ jupp@gm .d ] Saluton!
      + 73809 [batsman.geo@] [some 86 lines of code]

ISP that offers eRuby
73471 [info@at an i] Is there a ISP that offers eRuby on their webservers?
73473 [michael_s_ca] rootr.net.  http://rootr.net/ruby.html

regex interpolation (in ruby from CVS)
73476 [mike@ra do .] I have been experimenting with building regular expressions from
+ 73480 [bob.news@gm ] "Mike Stok" <mike@ratdog.stok.co.uk> schrieb im Newsbeitrag
| 73492 [mike@ra do .] The problem with this is that .source seems to lose information (the /i
+ 73481 [decoux@mo lo] Can you try this (1.6.8)
  + 73489 [mike@ra do .] [mike@ratdog mike]$ irb --simple-prompt
  + 73495 [mike@ra do .] This works well but seems to break (under 1.8.0) if I use a trivial
    + 73496 [michael_s_ca] As an almost completely irrelevant nit...
    + 73549 [decoux@mo lo] Well, this is this case
      73589 [mike@ra do .] [Mike grumbles about constructing regexes:-)]

Blogging Software Created with Ruby
73484 [info@at an i] Is there a blogging software created using the Ruby scripting
+ 73487 [chrismo@cl b] Two I know of - Dave's RubLog[1] and my own Wiki[2] which can be used
| + 73491 [urban@oo s. ] Burger is a blogging tool written in Ruby, as per
| + 73494 [wjl@ic ca er] If want a real simple one to build off of, there is Cherry Bloxsom (I
+ 73537 [ruby@ja es r] I'm in the middle of a rewrite of Blogtari
+ 73554 [leej@ci ym t] And this has WHAT? to do with xml please?
  73559 [ruby@ja es r] Most blogging tools provide a way to serve up an RSS feed.

ignoring invalid options with optparse
73498 [pbrannan@at ] def go!
73606 [nobu.nokada@] other_options = []

Hispeed String concat / Failsafe (RE)ALLOC_N usage?
73501 [ jupp@gm .d ] Saluton!
73513 [mneumann@nt ] It raises a NoMemoryException (see ruby_xmalloc in gc.c). So you don't
+ 73529 [sdate@ev re ] [cool sig snip]
| 73545 [sebastian_ka] "display" probably refers to the ImageMagick package. Haven't tried it
| 73561 [michael_s_ca] ...
+ 73573 [ jupp@gm .d ] Saluton!

RaaInstallInRuby petition
73503 [ptkwt@sh ll ] The RaaInstallInRuby petition now has more signers than the YamlInRuby
+ 73504 [hal9000@hy e] I didn't know it was a race. :)
| + 73505 [ tom@u2 .c m] Windows compatibility is pretty good, I think - though I haven't tested
| | 73512 [hal9000@hy e] Was that recently? I tried it a few months ago
| | + 73514 [ tom@u2 .c m] I don't recall, and he probably didn't test on 98. Worth a try though.=20
| | + 73516 [michael_s_ca] Correct on all counts.  "\r" worked everywhere I tried it.
| + 73507 [joey@jo yg b] I use Windows almost exclusively and Ruby has always worked quite well
| | 73510 [ tom@u2 .c m] That's a good idea. And actually the version in CVS alredy keeps track
| + 73517 [ptkwt@sh ll ] The implication being that since YAML was accepted into 1.8 with less
|   + 73518 [mwilson13@co] I think raa-install is excellent and I use it regularly. I have no
|   | + 73519 [ tom@u2 .c m] Why do you say it's unstable? RAA-Install (+RAA) is essentially a CPAN
|   | + 73526 [ptkwt@sh ll ] Well, it's a chicken-and-egg problem.  We need a package manager available
|   | | 73530 [mwilson13@co] chicken-egg, egg-chicken ... I see your point. Ruby and package
|   | + 73552 [martindemell] It's not the standard *library*, it's the standard *distribution*. I
|   |   73585 [mwilson13@co] Right. Where I said standard library I meant to say standard
|   + 73521 [hal9000@hy e] I knew what you meant. I was just being silly.
+ 73506 [ oct@zo .o g] just a quick question. Does raainstall support installation to
  73509 [ tom@u2 .c m] It doesn't, but could be added - though the underlying installer that

ruby design: keyword arguments
73508 [surrender_it] I just met for the first time a situation where I'd like to have
73511 [djberge@qw s] See http://www.rubygarden.org/ruby?KeywordArguments for a discussion on

Re: Ruby packaging
73534 [aredridel@nb] An educated guess says "Yes, but not easily yet".

un_extend - dynamic mix-out?
73535 [mfp@cs mu OZ] I know that I can do obj.extend(Mod) to dynamically mixin a module.
73550 [decoux@mo lo] Well, see [ruby-talk:39234] to find where is the problem

Testing mail-news gateway...
73541 [hal9000@hy e] This is only a test.

Late night eRuby
73547 [josh@we rd h] I'm trying to get eRuby 1.0.3 running with Apache 1.3.27 on Windows
73551 [josh@we rd h] ScriptAlias /ruby/ e:/ruby/
73568 [calvin8@t- n] The following is a workaround, posted originally on
73619 [josh@we rd h] I tried that, and it worked. That's the way I'm doing it now, but

##$15,500 to over $650,000 in FREE Grant Money<<<<  tvwsdghhpa
73548 [GovtGrants12] ...

Swig and Multiple inheritance
73553 [brailsmt@ya ] I am trying to use swig to embed ruby in an exitsing C++ app which makes
73578 [lyle@us rs s] Starting with SWIG 1.3.20 (not yet released), SWIG provides some limited

I need a code beautifier or formatter
73555 [joaopedrosa@] I have some source code that is terribly formatted. It needs some good
+ 73558 [mneumann@nt ] Vim can format Ruby code (visual select then press '=').
| + 73562 [michael_s_ca] The emacs mode that comes with the distribution does a pretty good job as well.
| + 73569 [ahoward@fs .] for me this simply lines eveything up in a column - could you post the
|   + 73571 [mneumann@nt ] Nothing special in there, except the usual "syn on".
|   | 73575 [ahoward@fs .] i've got all that - which vim version?
|   | 73581 [mneumann@nt ] filetype plugin indent on
|   + 73572 [batsman.geo@] _           _
|     73577 [joaopedrosa@] Nice link.
|     73580 [batsman.geo@] I think I found the bug in indent/ruby.vim responsible for that (assuming
|     73582 [joaopedrosa@] Right on target :-)
+ 73563 [heaney@ca le] I use XEmacs in Ruby mode. It has an indent function, which you can
| 73567 [joaopedrosa@] Vim did format it, but not as expected. It doesn't even indent
| + 73570 [batsman.geo@] Works for me most of the time, but sometimes there's problems w/
| + 73574 [0bz63fz3m1qt] I tried the '=' in VIM and the indent then got screwed up..
| + 73620 [vor_lord@ho ] I use vim for my ruby coding.  I set smartindent on as well--not sure how
| | 73622 [lone-star@ho] if i get my mind of coding my web pages any time soon i'm going to add
| | 73626 [michael_s_ca] foo = "something long" +
| + 73633 [bjst01@st de] I thought about this not long ago, while working on a piece of software along
+ 73587 [han.holl@pr ] complete, and will only handle a subset off all possible ruby programs

73564 [ser@ge ma e-] This is a solicitation for API suggestions.

creating classes dynamically ??
73565 [info@mj is d] I would like to create classes dynamically and also the name of the class
+ 73566 [decoux@mo lo] Eagle = Class.new # the argument to Class::new is the superclass
+ 73576 [ahoward@fs .] ~ > cat bird.rb

73579 [doname@th ma] I need your help,I am DONANA MAKALE the son of a Late minister during the reign of mobutu seseko, I came to know you in the course of my search for a reliable and God fearing partner and I decide to contact you because I believe you are a reputable person and I felt you can help us over this confidential matter. I count on your intergrity and honesty to be able to handle this business. My father was a minister in Democratic Republic of Congo during the reign of Late President Mobutu. Our father was killed during the rebel attack and our house was burnt. We manage to escape to South Africa with my mother and two of my sisters where we are now taking refuge.Before the death of my father he deposited US$20 MILLION, with a security company in Europe.The money is kept in a Metal Crates and was registered as precious substance. Thus there is nobody that knows that it is money that is in the metal crates. All the document with which the money was deposited is with us. I am looking f

problems with regex.h in an extension module
73590 [brailsmt@ya ] I am working on embedding ruby into a C++ application but I cannot get
73594 [0bz63fz3m1qt] You will have to make a wrapper around '/usr/include/regex.h', so
73607 [brailsmt@ya ] It would be much more preferable to rename ruby's regex.h to not clash

Ruby on Linux IA-64?
73591 [hinoue@cs un] I've seen previous messages that imply that Ruby can be built on
73592 [dcarrera@ma ] I didn't know that AIX ran on IA-64.

Good & cheap mp3 player, USB Flash disk, cd/vcd/mp3 player and digital camera etc
73595 [hytechhk@16 ] My dear friend,

How to remove a singleton method from within an instance method?
73596 [hal9000@hy e] Is this possible?
+ 73597 [decoux@mo lo] svg% cat b.rb
+ 73599 [swap@gm .n t] Besides Guys solution I'd probably would do this

Get songtitle from Winamp
73600 [calvin8@t- n] I just got the following to run, maybe someone finds it useful. All it
+ 73601 [dcarrera@ma ] What is an "hWnd"?   That's the weirdest variable name I've seen in a
| 73602 [chadfowler@c] It's a Win32API convention meaning "Window Handle".
| 73603 [dcarrera@ma ] Why don't they call it "WindowHandle" or "window_handle"?
| 73605 [wjl@ic ca er] cBecause sthey vare dextremely pinto aHungarian nnotation.
| 73609 [dcarrera@ma ] I just looked up "hungarian notation" in microsoft.com.  I cam accross a
+ 73604 [nobu.nokada@] The third to GetWindowText() isn't the length of the second
  73608 [calvin8@t- n] Hence my comment... I wasn't very clear on what it should actually be.

Re: Hungarian Notation
73610 [yura@op r. o] You all know this already, but ...
73611 [jj5412@ea th] Sometimes one, sometimes many, ie. lpstrMyMessage.
+ 73612 [dcarrera@ma ] I guess that it might be an indiosyncratic term that a Windows programmer
| + 73704 [fgeiger@da e] There's almost never any point in using any name containing "tmp". Most
| | 73738 [dcarrera@ma ] A tmp variable is one that is so temporary that it's use doesn't span more
| + 73715 [ jupp@gm .d ] Saluton!
+ 73613 [calvin8@t- n] I somehow feel the need to justify myself :) There was no conscious
+ 73705 [fgeiger@da e] HN tends to lead to bad OO design.

[OT] Re: Get songtitle from Winamp
73614 [kent@ze os h] Don't scoff at MS programmers because they're using hn; pity them
+ 73615 [dcarrera@ma ] A better solution would be to avoid global variables, to avoid jumping
| 73618 [M.B.Smillie@] [OT] Re: Get songtitle from Winamp
+ 73666 [rasputin@id ] Yep, it's the FNG again - what threw me more than anything was
  73697 [martindemell] One of my nice little 'aha' moments was when I realised that classnames
  73719 [surrender_it] <msg type="useless">

[OT] Re: Hungarian Notation
73616 [cyclists@nc ] My memory (and my memory goes back a long way :-) is that Hungarian
73625 [wjl@ic ca er] I think this is very true--some (hopefully small) amount of

###<>>><Largest Loan Program mxbcf i
73621 [GovtGrants30] ...

OT: Re: Hungarian Notation
73623 [hal9000@hy e] have
73624 [calvin8@t- n] *g* Thanks, I fully agree.

question on Struct and class_eval
73628 [info@mj is d] country = Struct.new("france".intern, :person)
+ 73631 [batsman.geo@] this doesn't seem right, should be
+ 73644 [dooby@d1 .k ] I thought Mauricio was going to take your head off ;-)
  73647 [batsman.geo@] Didn't mean to be harsh. Sorry if I was, I guess I was too tired to
  73651 [dooby@d1 .k ] Fear not.  I was engaging in playful exaggeration for
  73654 [mjais@we .d ] thanks for your help!

Bridge Ruby and PHP (in a CMS) ?
73634 [itsme213@ho ] I have not found any CMS-like framework in Ruby, and may have to fall
+ 73635 [surrender_it] possibly, this could help?
+ 73669 [tom.hurst@cl] class Meh

[REXML] getting line/file from element
73636 [vjoel@PA H. ] Is it possible to get the line number(s) and file name where an element
73701 [ser@ge ma e-] Not currently, although that's a good idea.  I'll stick it in the

Good guide to writing Ruby extensions in C?
73637 [ jupp@gm .d ] Saluton!
+ 73638 [0bz63fz3m1qt] Agree.. not much documentation.
+ 73650 [batsman.geo@] #define REALLOC_N(var,type,n) (var)=(type*)xrealloc((char*)(var),sizeof(type)*(n))
  74534 [mrand@ni .f ] If I reserve memory with e.g. ALLOC_N, do I need to register it to gc

Web Hosts That Support mod_ruby and eRuby?
73639 [al3x@al x. e] A friend and I are embarking on the development of a "next generation"

Standardizing Installers
73640 [ tom@u2 .c m] I was thinking about some of the issues raised involving ruby libraries
+ 73642 [aredridel@nb] In light of the benefits, I personally say "Yes!"
| + 73643 [ tom@u2 .c m] Please excuse my ignorance, but what's the difference/benefit?
| | 73645 [aredridel@nb] With --prefix, you're telling a package it's final home: /usr,
| | + 73648 [mwilson13@co] One idea would be to add a field to RAA for "raa-install compatible?".
| | | 73720 [surrender_it] I suppose the "Raa-installable flag" was already mentioned.
| | + 73660 [rasputin@id ] One thing I've found in my month or so of using ruby is that most
| | + 73679 [guslist@fr e] Minero Aoki's install.rb/setup.rb supports this option already, doesn't
| + 73671 [lucid@co ne ] IMO, we should initially modify RAA slightly.
+ 73742 [androflux@so] automake/autoconf would be hard to get working on a Windows systems.
  + 73763 [sroberts@un ] Most people don't have cygwin installed, and lots don't have MSDev
  | 73779 [ tom@u2 .c m] I think this is correct. What we need to the RAA-Packages to do is to be
  | 73785 [hal9000@hy e] Personally, I think it's possible... although
  + 73777 [ tom@u2 .c m] So does anything requiring c-code. Including stuff using extconf.rb.
    + 73778 [djberge@qw s] InstallShield.  And no, I don't know how. :/
    | 73784 [hal9000@hy e] Well, I know that djgpp works fine for me
    | 73810 [batsman.geo@] Well, I know that djgpp works fine for me
    + 73828 [aredridel@nb] There's the mingw toolchain: GNU that compiles against msvcrt32.dll,
    + 73830 [androflux@so] But not nearly as hard as getting a UNIX shell script to run on Windows. :-)