34467-39402 subjects 34875-35483

34632 [manfred@to p] i try to print out the text from QLineEdit
34694 [manfred@to p] the connect is wrong, here is the right one.

Problem with IRB when using Windows Installer Ruby 166-0
34635 [roktas@om .e] I've just downloaded and installed the MSVC version. IMHO, this one is

Digest classes performance
34638 [tomas_brixi@] I have have done some test (especially) with Digest classes on MS Windows.

Changing program name on Win32
34646 [mike@le to .] I would like my programs running through rubyw.exe not be called Rubyw in the task manager (ctrl-alt-del...). These programs run in background and they all have the same name.
+ 34650 [mkelly2002NO] See RegisterClassEx API.
+ 34758 [martin.zsdfh] Its been a while since I did anything on windows, but can you do something

Newbie question
34647 [roktas@om .e] How can I create an array of array with some funny (!) properties? To
+ 34651 [alan@di ik t] row3 = db[3]      # row3 I presume is now your Record Class, this calls DB::[] for the db instance
+ 34653 [dblack@ca dl] What you want, I think, is an array of hashes.  Each hash would
  34661 [roktas@om .e] David and Alan (Chen), thanks for your quick replies. Let me first
  34669 [dblack@ca dl] I'm not sure about (2).  Somehow the Record has to know about the
  + 34670 [dblack@ca dl] Whoops, that second line isn't needed in this version of this
  + 34690 [roktas@om .e] This seems pretty good. I haven't even know of the nested class
  + 34693 [per.mikael.l] This is a even a more newbie*newbie question.
    34717 [alan@di ik t] p calls an object's inspect method. It's meant for debugging/diagnostic use.
    + 34764 [decoux@mo lo] What do you want to say with this ?
    | 34839 [alan@di ik t] Actually, that wasn't my writing, that was quoted from the appendix
    | 34847 [Dave@Pr gm t] I have no idea why we said that :)
    + 34808 [per.mikael.l] Thanks for your answer, that help me.

loveruby.net down?
34652 [sean@ch tt n] Anyone have any ideas where loveruby.net went?  The domain hasn't
34761 [aamine@mx ed] Sorry for inconvenience. I'm changing server's IP address.

NB: calling external programs in windows
34655 [rafemonkey@y] This isn't ruby specific, but it might be of interest to people who a

Help with using Ri() and VIM
34673 [icculus@gm s] I have installed Ri and am finding it very helpful... I found out about it
+ 34688 [    s@xs .d ] it works here with Vim 6.0.
+ 34716 [icculus@gm s] Please disregard my post, I found and fixed the problem. I had an older

arr.delete bug?
34676 [kinfe0@ne sc] I am using cygwin version of Ruby (belive it 1.65)
34678 [dblack@ca dl] arr.delete( anObject ) -> anObject or nil

[ANN] TestUnit 0.1.0
34679 [nathaniel@ta] Unit testing is making waves all over the place, largely due to the

duplicate method name
34682 [ronjeffries@] I just found a case in a test file where i had two tests of the same
+ 34684 [dblack@ca dl] If you run with '-w' you should get warned about this.
+ 34687 [    s@xs .d ] this is not a defect, it is a feature.
  + 34695 [dblack@ca dl] $ ruby -we 'class X; def x;end; def x;end; end'
  | 34699 [ronjeffries@] This is nearly good except that runit doesn't compile clean and -w
  | + 34703 [decoux@mo lo] .meth at this point is interpreted as a method call, this is why ruby
  | | 34706 [ronjeffries@] I must be missing something, because I don't get it. What could .meth
  | | + 34708 [decoux@mo lo] This is the inverse.
  | | + 34710 [Dave@Pr gm t] It could be the start of an expression...
  | + 34707 [Dave@Pr gm t] On my box, runit has a single warning (which really should be
  |   34718 [ronjeffries@] I'll either fix it or switch. Is testunit in the distribution, or do I
  |   34733 [ntalbott@ro ] Just announced the first packaged version; check out
  |   34738 [ronjeffries@] I see that I have it, since I have the Windows 1.6.6.  And it looks like
  |   34743 [Dave@Pr gm t] The following patch adds tat capability to Nathaniel's. It allows you to
  + 34698 [ronjeffries@] Inside one file, it's not much of a feature in my opinion.

Pre-pre-registration for Ruby Conference 2002
34683 [dblack@ca dl] For planning purposes, I've set up a pre-pre-registration site --

Object/Memory Management (Windows)
34697 [tobiasreif@p] One program deals with hundreds of megabyte sized files, videos, images,

rubymagick problem
34700 [tom.robinson] $ ruby demo.rb
34730 [tam@ka s. yo] Thank you for your report. It's a bug. I have corrected it, and

[ANN] Ruby dataquery shell (RDQS) 0.3.2
34711 [cochi@un -p ] I'd like to announce a new release of my project "Ruby DataQuery
34729 [Dave@Pr gm t] Wonderful idea - I'll be playing with this during the week, as I seem
34771 [cochi@un -p ] I hope you'll be satisfied ;)

Ruby+embedded systems anyone?
34727 [     nos@pa ] What is the smallest Ruby interpreter build around there?

[ANN] Ruby-Wise
34728 [kero@a2 07 .] Ruby-Wise is a WIdget SEt for Ruby.

irb (show ruby version)
34731 [ruby@fo rt c] Because I have more than one version of ruby lying around, I want to know which version is being used when I start irb.

Hash.each block parameters
34732 [sean@ce so t] I ran into a problem where I should have called .each_key for a hash, but I
+ 34734 [dblack@ca dl] Ruby isn't doing anything it shouldn't :-)
| 34747 [sean@ce so t] Hash.each
+ 34746 [vjoel@PA H. ] You could freeze all your keys, and subclass Hash to raise on non-frozen

[ANN] TestUnit 0.1.1
34735 [nathaniel@ta] Unit testing is making waves all over the place, largely due to the fact
34740 [Dave@Pr gm t] A minor incompatibility: the original toplevel 'rubyunit' aliased the
+ 34742 [nathaniel@ta] Good point; didn't know about this. Will fix ASAP.
+ 34766 [tobiasreif@p] That looks strange to me.
  34772 [Dave@Pr gm t] Both!
  34783 [tobiasreif@p] Dave, it would be nice if you could explain what I'm missing.
  34784 [Dave@Pr gm t] OK
  + 34785 [Dave@Pr gm t] UmVjZWl2ZWQ6IGZyb20gbGV0aGUuY2FyZGhlYWx0aC5jb20gKFsxNDMuOTguMTAuNjhdKSBieSBj
  | 34787 [Dave@Pr gm t] UmVjZWl2ZWQ6IGZyb20gbGV0aGUuY2FyZGhlYWx0aC5jb20gKFsxNDMuOTguMTAuNjhdKSBieSBj
  + 34810 [tobiasreif@p] Thanks :)
    34811 [Dave@Pr gm t] Class names, like 'String' are simply constants that reference the

Ruby in Windows Scripting Host?
34737 [cjh_nospam@m] I'm just getting familiar with Ruby, and because I'm a Linux nut
34739 [james@ru yx ] Take a look at  ActiveScriptRuby

RE: Test::Unit info (was: duplicate method name)
34741 [ntalbott@ro ] Well, basically unconditional; it will not run at all if a TestRunner

[ANN] TestUnit 0.1.2
34744 [nathaniel@ta] Unit testing is making waves all over the place, largely due to the fact

Assignment Rules
34748 [sean@ce so t] I'm trying to get in my head what the rules about assignment are.  So far
34763 [520079130762] Wrong. Only Fixnum (small integers) objects are copied, but not Bignum's
34828 [sean@ce so t] far
+ 34830 [tom.hurst@cl] No, you're thinking along the wrong lines: var2 does not point to var1,
| 34833 [sean@ce so t] var1 = "qweqwe" I must have been creating a new string object, right?
| + 34843 [maz@cb ou e.] Yes, you understand it well. Wrinting
| | 34849 [sean@ce so t] Okay, I understand it now I think.  I'm used to objects staying where they
| + 34845 [Dave@Pr gm t] Assignment assigns a reference to an object to a variable.
+ 34893 [maz@cb ou e.] when you write
  34897 [maz@na ak on] Sorry for the double post, but my mail provider has a lot of problems

inconsistence in class complex
34750 [juergen.kati] While translating the book "Programming Ruby" by Dave Thomas and
+ 34752 [matz@ru y- a] I forwarded your opinion to the author of complex.rb
+ 34757 [Stephan.Kaem] That depends: Comparing to complex numbers 'by absolute value' make perfect
  + 34759 [chr_news@gm ] Hm,  it's probably more like least unfavorite complex  ...;-)
  + 34760 [gotoken@no w] -2 == Complex(-2,0)  #=> true
    + 34765 [chr_news@gm ] Actually this is not true - Module inclusion is not transitive,  but Module
    + 34769 [Stephan.Kaem] Ooops, you're right. I didn't go deep enough into the the documentation.

Ruby Weekly News
34751 [Dave@Pr gm t] Ruby Weekly News: 02/25/2002

9 years with Ruby
34753 [matz@ru y- a] I just remembered I started the development of Ruby on February 24th
34755 [dsafari@xt a] Happy 9th birthday then Ruby!
34756 [matz@ru y- a] I'm glad Ruby is now loved by many.
+ 34815 [sean@ce so t] Matz, the "Creator."  =)
+ 34821 [mmcdanie@fa ] Congratulations and thank you for Ruby.  Happy Birthday to both your daughter and Ruby.
  34900 [cbroult@sa i] ...

[Q] Directory copy recursively
34762 [kwatch@ly os] If you know how to copy a directory recursively with ruby,
34767 [roktas@om .e] How about this one? (`recursive file copy routine` from rubycook)
34964 [kwatch@ly os] Thanks roktas,
34965 [roktas@om .e] As far as I know: Yes, there is no dir-copy routines in the built-in lib.
+ 34970 [maz@na ak on] You should try module FileUtils. I'm not sure it is in the base
+ 34984 [list@ch om t] I'm not a guru, but I hope the following will help.  I whipped it

Re: Windows Installer Ruby 166-0 available
34775 [andy@to ls e] In response to an earlier poster: things like popen and fork, specifically.
34776 [andy@to ls e] Thanks!
34778 [andy@to ls e] Since it provides Ruby-specific font highlighting and the ability to run
34812 [bobx@li ux a] Considering SciTE is only 840+K or so...definately worth it.
+ 34813 [dsafari@xt a] I believe SciTE. Whenever you install scite it will install default property
| 34819 [andy@to ls e] What's a meg these days...
| + 34855 [nhodgson@bi ] I'd be happy to change the ruby.properties file distributed with SciTE to
| + 34856 [bobx@li ux a] Well since I already had 1.44 in anticipation of installing 166-0 it
|   34869 [andy@to ls e] Sheer ignorance and haste on my part :-)
|   + 34874 [Dave@Pr gm t] Is it possible to arrange for the console window not to disappear at
|   + 34938 [nhodgson@bi ] Yes.
+ 34825 [theschof@cs ] Are you sure that SciTE can see your ruby.exe?  Try running it from a

CONFIG['(site|ruby)libdir'] policies?
34777 [list@ch om t] On my system (Debian Linux), Config::CONFIG['sitelibdir'] and
34792 [matt@li ke .] ruby 1.7 looks only in the 1.7 directories, ruby 1.6 looks only in the
34802 [list@ch om t] This is a little worrying.  It means that if you install a development
34806 [paul@at es .] I would rather not have 1.7 use 1.6 modules, because an installer might

Ruby for EPOC / Psion?
34779 [T.Clausen@co] I'm sorry if this question has been asked a million times before,

RCR 65: IO orthogonalization, improved reusability
34780 [tsondergaard] I hope I'm not violating the rubiqette by cross-posting this from
34954 [matt@li ke .] Has this discussion stalled?  Matz asked for a concrete proposal about
34958 [list@ch om t] This sounds a lot like implementing a <=>(other) method, then
34959 [matt@li ke .] Sure does.
34961 [tsondergaard] ...
34962 [sean@ce so t] the challenge of
34967 [jweirich@on ] [... Sean's example elided ...]
+ 35035 [matz@ru y- a] The point is how many IO (or Stream) operations can be defined using a
+ 35192 [cjh_nospam@m] I've only been using Ruby for a few weeks, but I have designed and
+ 35213 [list@ch om t] I had to put together an input stream on astring in an hour.  Your
  35242 [tsondergaard] Yes InputShell probably works fine, if you write your client-code with it in mind, but I sincerely doubt (as a matter of fact I know it wont) that it will work as a drop-in replacement for an instance of IO in existing code that reads from a stream, and that should be a goal. The code might call kind_of?(IO), it might use $_. It might rely on some specific behaviour regarding EOF. Bottom line, the implementation should be part of ruby, and it might make sense to break IO apart, so programmers wont inadvertently use kind_of?(IO), when they should (at most!) use kind_of?(InputStream).

Report to Recipient(s)
34786 [HARCOURT@ha ] Incident Information:-

Report to Recipient(s)
34788 [HARCOURT@ha ] Incident Information:-

Ruby Developer's Guide (PDF)
34789 [ljohnson@re ] I'm not sure when this was changed, but registered owners of the Ruby

Style Question
34791 [ronjeffries@] So I'm building this set theory library. The "only" object is supposed
+ 34794 [Dave@Pr gm t] How about having the concrete classes extend set to add their own
| + 34799 [Dave@Pr gm t] Oops - that should be ArraySet.new
| + 34803 [ronjeffries@] I don't understand the notation above with class << etc. What's up with
|   34807 [Dave@Pr gm t] 'new' isn't an instance method of class Set, so the line above
|   34817 [ronjeffries@] Check. Weird but I get it. Thanks!
+ 34796 [paul@at es .] How does an abstract class differ from a module (or mixin)?
| 34805 [ronjeffries@] Very good question. I'll have to think on it, and would welcome advice
+ 34798 [pcs3@ma lh s] Well, I've heard criticism of this before, and it might have been
| + 34804 [ronjeffries@] No reason not to give style advice to me. I promise to listen, and I
| + 34827 [chr_news@gm ] The Rubycollection implementation of Set(s) makes an interesting
+ 34809 [avi@be a4 co] What about using double dispatch?  For example,
  34816 [ronjeffries@] That would work for some types, but not for others where I need more

Request to ban a domain
34797 [Dave@Pr gm t] Today a virus was posted to the list under my name. On February 14th,

subclass issue
34822 [mengx@ni ls ] A while ago I found out that some classes created by C extensions
+ 34826 [msassak@sp a] According to that thread, you can subclass TCPServer by overriding #new
+ 34850 [rawlins@cs u] Are you sure about this?
  34870 [mengx@ni ls ] add a line to your program

Can't get stderr to flush
34823 [gehlker@fa t] I've been messing around trying to run biorhythm.rb from the sample programs
34824 [paul@at es .] Odd.  What platform are you using?
34867 [kjana@dm la ] I think that's very common and normal behavior of interactive

tk troubles
34829 [Jean-Francoi] when trying to put several windows into a text widget, it seems that
34863 [nagai@ai ky ] Where is an example?

Re: Can't get stderr to flush (My Bad)
34831 [gehlker@fa t] Mac

Weekly RCR Summary
34832 [RubyGarden@t] This is an automatically generated list of Ruby Change Requests.

Rescue clause syntax weirdness....
34834 [melis@cs ut ] Why, oh why, does the following make a difference? The first definition of
+ 34840 [Dave@Pr gm t] this rescue clause is a statement modifer, handling exceptions in the
+ 34852 [matz@ru y- a] Because newlines are significant in Ruby.  While
  34899 [melis@cs ut ] And this isn't in the Pickaxe book, so that's why I didn't get it... It's
  34902 [Dave@Pr gm t] No - we missed that one (and also the

Standard preambles and prompting on standard error?
34835 [gehlker@fa t] I've been testing RubyStudio against the sample programs that come with
34841 [Dave@Pr gm t] Mine :)
34854 [gehlker@fa t] OK Dave! Programs produced by Ruby Studio should now run unmodified on your

How to convert "1110" to 14, "0111" to 7, etc.
34836 [andrew_queis] How can I convert a string of binary digits to a number?
+ 34842 [maz@cb ou e.] You are looking for the oct method.
| 34844 [mike@st k. o] irb(main):012:0> binstr = '1110'
+ 34846 [Dave@Pr gm t] If you have a leading '0b', you can use the Integer method
+ 34851 [matz@ru y- a] If you're using 1.7.2, "1110".to_i(2) works.  Otherwise, try

Kernel.system incongurity - Windows98
34838 [anthony@ve t] Pardon me for sending this twice, for some reason the subject was wrong the
34859 [WYS@he bl ng] system("rundll32 url.dll,FileProtocolHandler
34919 [anthony@19 .] Clemens,
34920 [chris.morris] Not sure if this will help, but you might try replacing the system call as
+ 34923 [STUCKNER@MU ] Andy,
| 34925 [Dave@pr gm t] This isn't really an Andy thing - it needs to be in the core so that
+ 34955 [anthony@19 .] Thanks Chris, this worked!
  34956 [chris.morris] Should we create an RCR then? Or is this something the Windows compiling

[ANN] TestUnit 0.1.3
34857 [nathaniel@ta] Unit testing is making waves all over the place, largely due to the fact
34866 [dcorbin@im e] Can you elaborate on the features that TestUnit offers that rubyunit
34937 [nathaniel@ta] First of all let me say, this reply is not intended to be a critique of
35097 [masaki.suket] RubyUnit has frozen at 0.5.4 except the bug fix.

Is this possible?
34858 [bobx@li ux a] I want a Ruby program to run in the background (hidden)...have it
34868 [pcs3@ma lh s] Since you're in windows, just name give your program a .rbw extension,

Question with for loop
34860 [shreeve@s2 .] I've got a quick question. Sort of a minor issue, but I was wondering about
+ 34861 [matz@ru y- a] Yes.  Ruby's local variables should be "declared" before their access.
+ 34862 [gnhurst@hu s] b.rpc("ORWORDG IEN",[val||=nil]) while val=(tmp||=['O RX', 'I RX', 'UD RX', 'IV
+ 34865 [ronjeffries@] For another angle on this question, what we have here is a "code smell", where
  + 34877 [ysantoso@je ] I often face similar situation. To factorise or not. In cases where
  + 34946 [shreeve@s2 .] Wow! Thank you all for such impressive responses to my question. The Ruby

Using listen/notify with ruby-postgres
34864 [martin.zsdfh] I notice that the PGconn class has a get_notify method that returns the list

34871 [paulo@be ne ] What is the procedure to get some module/extension to the ruby archive?
34888 [ljohnson@re ] and click the "add new entry" link that appears on the right-hand side of

Nested paired brackets in regexp
34872 [y_saito@mx 0] Ruby's regular expression is very powerful.
+ 34878 [Stephan.Kaem] If I remember corretly what I've read in Friedl's "Mastering Regular
+ 34880 [elanthis@aw ] Assuming that all your're doing is looking for data inside of brackets,
+ 34884 [ttate@kt ja ] What you want to do seems to be impossible in regular expressions.
+ 34886 [Dave@Pr gm t] No - I don't think that's possible. But with a big a munging you can
+ 34892 [pcs3@ma lh s] Check RAA, I saw a Ruby version of Lex, or Rockit might be what you
+ 34895 [billk@ct .c ] Just incidentally, although Ruby's regexp engine doesn't support
+ 34928 [y_saito@mx 0] Thank you all.
  34949 [decoux@mo lo] With my old version of perl-5.7.1 postponed re use a node EVAL