67804-69125

67612-68465 subjects 68042-68581

defout vs stdout
67804 [ahoward@fs .] can some definitively explain these?  i've read over many of the old posts and
67808 [nobu.nokada@] STDOUT is stdout of the process, DEFOUT is output for in-place
67818 [ahoward@fs .] <dumb>
67822 [matz@ru y- a] % man ruby
67830 [ahoward@fs .] this is what i *thought* was meant by 'in-place', but many, many, threads have
67832 [matz@ru y- a] No.  $defout is a "default output of print/printf etc." and -i replace
67833 [ahoward@fs .] yes. finally ( ;-) ).

ruby-dev summary 19824-19877
67809 [maki@ru yc l] This is a summary for last week on the ruby-dev mailing list.

[FXRuby] How to capture key events
67811 [fugalh@fa co] I have a simple gui that consists of mostly just a FXText object, and I
67812 [lyle@us rs s] For most widgets, you can intercept the SEL_KEYPRESS and SEL_KEYRELEASE
67815 [fugalh@fa co] Thanks, that did the trick! Now, I can't figure out how to let the

未承諾広告*3億円へ一歩!      
67813 [sb29@or en -]                 未承諾広告* 

Ruby Weekly News
67821 [Dave@Pr gm t] Ruby Weekly News: 03/24/2003

GridFlow 0.7.1
67826 [matju@sy pa ] Here is a new release of GridFlow (a multi-dimensional dataflow processing
67905 [bruce@co ed ] matju,

What kind of book is PickAxe?
67840 [dcarrera@ma ] The recent discussion about PickAxe made me wonder, what kind of book
+ 67845 [muellerix@gm] I'd say that it's a mixture of the first to categories, but it defenitely
+ 67854 [batsman.geo@] [1]  > - Tutorial  (e.g. _Learn_Ruby_in_21_days_)
+ 67895 [gsinclair@so] The three categories you list combine to form perhaps a slim majority
+ 67897 [comp.lang.ru] _ Here's how I divide my books.
  67920 [botp@de mo t] I like all.
  68064 [comp.lang.ru] - - Didn't mention it because I haven't read it.

External iterators all nice and neat (was: Re: Iterate over two lists in parallel)
67849 [vangczung@ya] I don't know about generators, but for traversing a collection, my
+ 67850 [vangczung@ya] catch(:iter_done) {
| 67868 [pbrannan@at ] I think the problem is that you are returning directly from your
+ 67872 [batsman.geo@] batsman@tux-chan:/tmp$ expand -t 2 u.rb
  67886 [vangczung@ya] Not quite. ;)  Array#shift returns nil when the collection is empty, so
  67887 [vangczung@ya] Whoops.  On testing it, you're right.  The first call *does* spit out

Pls lets work together
67856 [patric_manbo] Patric Manbo

Re: West Nile Virus < Anna Kournikova Virus, get protected.
67858 [Venus9613q@d] ...

ruby-fcgi: proposed patch
67859 [B.Candler@po] Here is a patch against Moonwolf's excellent ruby-fcgi-0.8.2, inspired by
+ 67871 [moonwolf@mo ] ruby-fcgi-0.8.3 released
| 67876 [B.Candler@po] Small but important documentation note, the following line
+ 67908 [ahoward@fs .] <snip description of much work>

Change request: return value from 'trap'
67860 [B.Candler@po] I notice that in ruby-1.6.8, the return value from 'trap' is nil if the
67864 [matz@ru y- a] Sounds nice.  Taken.

[FXRuby] FXGLViewer and textures
67867 [debitsch@t- ] Windows 2000
67874 [lyle@us rs s] Yes, you need to make the GL viewer's context the "current" context

Garbage collector problems
67877 [jaen@sa l. e] stack (continuous, grows downwards) as a reference
+ 67878 [decoux@mo lo] plruby (procedure language for PostgreSQL) fix this (for its *particular*
+ 67903 [nobu.nokada@] If a function which holds Ruby objects may be called from
  67935 [decoux@mo lo] The problem is not the name
  67947 [nobu.nokada@] I meant that other (rb_ prefixed) name would be nice to export,
  67969 [pbrannan@at ] I think I agree.  Non-static functions should have names that are
  67971 [decoux@mo lo] No, Init_heap() is called by ruby_init().

file IO slow in Rubyinstaller 1.6.8-8
67879 [greg@br nd .] This might be an old question, but why is file IO so so slow in the
+ 67901 [bobx@li ux a] Because the is a known problem that 1.7.3 fixes. Try the 1.8 series if you
+ 67902 [ruby-talk@wh] Check http://rubygarden.org/ruby?WindowsInstaller.  I see a 1.7.3-7 link

question about include and modules
67880 [mhm26@dr xe ] ruby -v
67931 [decoux@mo lo] Add these lines
67936 [batsman.geo@] Is this because array.c uses rb_include_module instead of
67939 [decoux@mo lo] No, the problem is with the internal of ruby. When you add a module in
67940 [batsman.geo@] [great explanation]
+ 67941 [decoux@mo lo] Well, you can perhaps change this behavior with a judicious use of
+ 67957 [matz@ru y- a] It is implementation issue, but I don't think it would be fixed,
  67959 [batsman.geo@] The fact that this hasn't bitten badly people out there seems to

(none)
67881 [deaconebosel] DEAR IN CHRIST,

Inheriting from WIN32OLE
67882 [ashokiitm@ya] Can anyone tell me why this does not work?
67904 [nobu.nokada@] I got the error, Unknown OLE server : `Micro.SoftManager'.
+ 67921 [sdate@ev re ] Nobu,
| 67925 [nobu.nokada@] Hmm, I tried with WIN32OLE distributed with 1.8, it is very
| 67962 [sdate@ev re ] Which distribution are you refering to ?
| 68104 [nobu.nokada@] CVS head.
+ 67932 [ashokiitm@ya] I run WIN32OLE 0.5.0
  67960 [sdate@ev re ] How did you find it out ?
  69125 [ashokiitm@ya] I looked in the release notes :)

(none)
67883 [deconebosele] DEAR IN CHRIST,

(none)
67885 [deconebosele] DEAR IN CHRIST,

Recursive methods allowed in Ruby?
67888 [kpd@kr sh ad] Does Ruby allow recursive methods? For example, in Java you can have a
+ 67889 [B.Candler@po] Dir.foreach lists "." (current directory" and ".." (parent directory) which
| 67891 [gfb@to es ft] For this particular case, it is much easier to use class Find (require
| 67893 [kpd@kr sh ad] Thanks Gennady, Martin & Brian! I'm back on track now...
+ 67890 [Ephaeton@gm ] I assume you run into an endless loop on '.', the current directory.

[ANN] FXRuby-1.0.21 Now Available
67898 [lyle@kn lo y] All,

[EG] multiton design pattern
67899 [ahoward@fs .] i did this so many times i decided to put it in one place.  i've found
+ 67910 [vjoel@PA H. ] Like a multiton truck? ;)
+ 67934 [batsman.geo@] Is 'multiton' a standard term?

tee in ruby while catching status
67900 [lists@de on ] I'm wondering how I would write a program such as 'tee' in ruby while
67930 [B.Candler@po] Unfortunately for you, no. The exit status is returned to the parent process
67968 [lists@de on ] I need to see the output to the screen while doing it. :/
+ 67976 [bob.news@gm ] def doit(command)
| 67994 [lists@de on ] Thanks for your help so far guys.
| 67997 [lists@de on ] I managed to sort it out :)
| 68001 [lists@de on ] I take it back, I didn't.
| + 68003 [lists@de on ] Guess I'm talking to myself here, but I seem to have solved the problem
| + 68004 [bruce@co ed ] select( readArray [, writeArray [errorArray [timeout]]] ) ->
+ 68009 [B.Candler@po] I usually stick this in the background, then run 'tail -f make.out' when I'm

[Q] changing a stream of 'print' method to a string
67906 [kwa@ku at -l] I have a question.
+ 67907 [dcarrera@ma ] I'm not sure I understand your question, but the code you are trying to
+ 67909 [gsinclair@so] def print_list(list, out=STDOUT)
  + 67929 [B.Candler@po] Or you can just do
  + 67938 [kwa@ku at -l] Thank you, Gavin.

Conditionally make a method private?
67915 [thinker5555@] I've googled this one, as well as looking in Pickaxe and Ruby Way, and I
+ 67916 [jj5412@ea th] Would a Factory pattern work better in this case? I.e. have a base
| 67918 [thinker5555@] It would indeed work, but I was hoping to be able to keep it down to one
| 67922 [jj5412@ea th] You must also consider the maintainability of the code. I'm sure you
| 67924 [thinker5555@] I understand what you mean.  I think I was trying too hard to conserve
| 67948 [dblack@su er] Don't forget that the class variable @@status will be shared by any
| 68012 [thinker5555@] Actually, if I understand what you are saying, this is EXACTLY what I want.
| 68036 [batsman.geo@] But in a way it *is* global, as there's only one class attribute, it is
| 68097 [thinker5555@] True.  And that's pretty much what I need.  One to be shared among all, (as
| 68112 [batsman.geo@] Just that :)
+ 67926 [kentda@st d.] They can, but remember that methods such as private are methods on the
  68011 [thinker5555@] Ah!  I believe I understand.  Thank you for this!
  68038 [batsman.geo@] Now that you know how to do it, are you sure that's what you *really*

I NEED YOUR ASSISTANCE
67923 [hajir.m.abac] Dear Sir,

[ANN] mhttp - simple C based module implmentation for HTTP
67928 [piers@om a. ] Announcing the first release of mhttp for Ruby - version 0.01

how to raise warning?
67937 [drejewic@ws ] how to raise warning? I would like to show up warning as below
67944 [B.Candler@po] Not a direct answer, but you can test $VERBOSE (or $-v or $-w) to see if

[BUG?] Dir.glob and space in folders names
67942 [ oct@zo .o g] oct@baillet:~/temp$ mkdir "foo bar"
67943 [decoux@mo lo] it's corrected in 1.8
67946 [ oct@zo .o g] Guy,
68007 [gsinclair@so] Ruby 1.8 hasn't been finalised yet.  You can download a preview

Ruby Readline extension
67945 [tim@ba es id] I have a few gripes with the Ruby interface to GNU readline.

How can one implement composition of functions in Ruby?
67951 [sdieselil@ya] I'm deliberating about what language to choose: Ruby or Python. One of
+ 67954 [dblack@su er] def compose(f,g)
+ 67963 [jbritt@ru y-] Not to discourage the use of Ruby, but is there a reason you don't just pick
+ 67964 [whitton@at a] Ruby does a fine job at functional programming. You can even do partial
+ 68008 [gsinclair@so] This is probably more a Python idiom than a Ruby idiom, since in

NETRuby?
67956 [revision17@p] I've been looking around for information about NETRuby (Ruby for

What are the differences between Ruby's blocks and Python's lambdas?
67961 [sdieselil@ya] See subject.
+ 67965 [whitton@at a] A lambda is simply an anonymous function. Ruby has lambdas as well, but they're
+ 67966 [nemo@he lo r] As was mentioned, Ruby has lambdas, but they are commonly called "procs".
| 67967 [batsman.geo@] There's one thing Ruby's closures do and Python's cannot, as described in
| 67975 [pbrannan@at ] make_counter = proc { |start|
| 67983 [batsman.geo@] Don't know Python, was just copying something I thought was agreed on :)
| 67986 [pbrannan@at ] I don't know for sure, but I suspect that it's not much slower than
| 68040 [batsman.geo@] I had the feeling Ruby could be faster essentially *because* the work
| + 68049 [B.Candler@po] I think what you want is to add a singleton method to the current object
| | 68050 [decoux@mo lo] class << self; self end
| | 68052 [B.Candler@po] That's fine, but then how do I define the method in the singleton class
| | 68053 [decoux@mo lo] class << self; self end.instance_eval { define_method(m,x) }
| | 68055 [B.Candler@po] I tried 'class <<a; def zzz; end; end' but it doesn't help.
| | 68057 [decoux@mo lo] I don't understand sorry. You have the response in [ruby-talk:68053] (the
| | 68070 [B.Candler@po] I apologise, I missed that because at a glance it seemed to be what I had
| | 68079 [ptkwt@sh ll ] I guess I'm not quite catching this....  but there does seem to be
| | 68677 [B.Candler@po] I have just added
| + 68051 [bob.news@gm ] "Mauricio Fern?ndez" <batsman.geo@yahoo.com> schrieb im Newsbeitrag
+ 68019 [me@pr va y. ] The main one is that a Python lambda can only contain
  + 68029 [hal9000@hy e] lambdas?
  | 68074 [paul@pr sc d] Note that these are limitations of Python's lambda keyword. Lambda is
  + 68032 [aspitz@st de] This discussion is scaring me. There's a big, huge, fundamental
    68033 [botp@de mo t] ?:O
    68034 [botp@de mo t] [snipped lots of good sample code]..

HPUX and ruby 1.8preview2 compile error
67970 [brett_willia] I'm trying to compile ruby 1.8-preview2 for HPUX 11.0.  I get these errors if I
67972 [decoux@mo lo] It's corrected in the CVS version, perhaps you must use this version
67973 [brett_willia] Thanks for the quick response, I will try that immediately.

Programming Ruby in more formats?
67974 [fxn@ha hr f.] Are the LaTeX sources, or a dvi, ps, or pdf version of "Programming Ruby"
67982 [digibren@ma ] as far as I know there is only the HTML or XML versions available
+ 68010 [ jupp@gm .d ] EHLO
+ 68039 [kentda@st d.] cvs -d :pserver:anonymous@rubygarden.org:/usr/local/repository
  68116 [fxn@ha hr f.] Excellent!

Hurd and ruby 1.8preview2
67977 [manfred@to p] i have compiled ruby 1.8preview2 on Hurd.
67978 [nobu.nokada@] What trouble did you have exactly?
67984 [manfred@to p] the ruby-1.8.0/ext/dl/extconf.rb didn't make the makefile.
68102 [nobu.nokada@] This exception should be rescued.
68152 [manfred@to p] here is the output from your example.

When modruby/eruby isn't available
67979 [ptkwt@sh ll ] I'm not a web programming expert, so please bear with me...
+ 67980 [pate@ey er a] I like using PageTemplate and running the script as a CGI.
+ 67981 [ruby-talk@wh] A few templating systems take YAML documents directly.

Need help running RDE on WIN2000
67985 [jim@fr ez .o] Ok, now that I have got the right version. :)
68002 [djberge@qw s] Sounds like a bug to me.  Check the Bugs section of the sourceforge page
68013 [jim@fr ez .o] Could it be particular type of ruby binary that I installed?
68062 [jim@fr ez .o] rde0996e   # brings up gui but crashes when try to run a program

syntax
67987 [offstuff@ao ] in c++ I can write ``i++幹.
+ 67988 [pabs@pa lo r] i +=3D 1
+ 67989 [michael_s_ca] i += 1
+ 67990 [Stephan.Kaem] how about
  67995 [bob.news@gm ] class Fixnum
  + 67999 [rodrigo.berm] irb(main):006:0> class Fixnum
  | 68005 [hal9000@hy e] Rodrigo,
  + 68006 [dcarrera@ma ] That doesn't work, but '1.succ' does.
    68017 [mike@ra do .] But surely the original poster was really trying to get something like

[RFC] PingExternal behavior in net-pingsimple - down hosts
67992 [djberge@qw s] I noticed a fatal flaw in the PingExternal class in net-pingsimple.  If

How do immediate values work?  (implementation question)
67993 [nemo@he lo r] It was always my understanding that immediate values could not have
68015 [matz@ru y- a] Yes, I thought performance matters for most of Ruby users.  If we come

Regular Expresison in Method Problem
67996 [nick.robinso] def calc(inValue)
+ 67998 [dblack@su er] It gives that error message because you've dynamically assigned to a
| 68076 [nick.robinso] ah....doh...thanks for that!
+ 68000 [Ephaeton@gm ] Because in Ruby, constants start with an uppercase letter.

ANN: Ruby-MacX alpha
68014 [digibren@ma ] I've made a static binary of ruby for Macintosh OS X. It's in a disk
68016 [digibren@ma ] sorry forgot to mention this is a binary of 1.8-preview2

What is going on with free ride?
68018 [aleksv@at bi] Does anybody knows when something new will be released?
+ 68041 [batsman.geo@] 2003-03-09 09:56  ljulliar
+ 68056 [rich@in oe h] The whole project team encountered real-world commitments which has

case not calling class' '===' method?
68020 [ptkwt@sh ll ] maybe I'm missing something obvious...
+ 68022 [tim@ba es id] Case uses the === operator the opposite way around to what you might expect.
+ 68023 [matz@ru y- a] In a code like
  68028 [ptkwt@sh ll ] Thanks matz.  Could you explain why it is done this way?
  68030 [nemo@he lo r] Thanks matz.  Could you explain why it is done this way?
  68072 [ptkwt@sh ll ] Makes sense...  Thanks for the explanation.

[Q] pack
68021 [dcarrera@ma ] Could someone tell me where I can find a reference to the 'pack' function?
68024 [tim@ba es id] In the Pickaxe. ;) Try
68025 [dcarrera@ma ] Sigh.
68026 [tim@ba es id] No trouble - by coincidence, it was precisely that method that I was last

Debugging Ruby itself.
68027 [john.carter@] For various reasons I'm using the CVS latest version of Ruby....
68043 [batsman.geo@] Does the bug look like the phantom one I found?
68071 [drbrain@se m] To reduce the likelihood of it being GCC's fault, compile ruby and any
68075 [batsman.geo@] This is what I found in my case...

Anyone ever confused by Array#slice! method?
68031 [hal9000@hy e] I just realized a minute ago why every time I
68035 [matz@ru y- a] All but reverse!, sort!, and exit!
+ 68037 [botp@de mo t] In this regard, can any kind soul post any docs/wikis on all banged methods
+ 68068 [hal9000@hy e] But of course you know all this, Matz. :)
threads.html
top