131426-132202 subjects 131831-133039

Re: [FR-devel] RE: Ruby on Windows: debugger questions and comments
131659 [laurent@mo d] That's right the threads tab is empty. It is still to be implemented

Re: Syck 0.51: More tests passing, cleaner output
131665 [djberg96@ho ] release.
131671 [ruby-talk@wh] Yeah.  Run: sh bootstrap.

Any update to RubyGems recently? RE: a bug I've got
131666 [centrepins@g] I haven't been able to install RubyGems since 1.8.2 was released as it
131678 [chadfowler@g] getting together in person next weekend to try to plow through some
131721 [centrepins@g] Thanks Chad, it's the one little bug that... er... "bugs" me !  :o)

Regexp help - Negative lookahead before across word boundaries
131673 [gavin@re in ] I want to match all the global identifiers which are not 'this', and I
+ 131694 [bob.news@gm ] "Phrogz" <gavin@refinery.com> schrieb im Newsbeitrag
| 131695 [eero.saynatk] I'm assuming 'global identifier' means any sort of a variable label
+ 131703 [w_a_x_man@ya] s="bar this.position.x = foo.bar.whee * jim.jam - yow / this.jorgle"

Question from newbie
131677 [pkarvou@gm i] ...
+ 131687 [bob.news@gm ] "Panagiotis Karvounis" <pkarvou@gmail.com> schrieb im Newsbeitrag
+ 131693 [agorilla@gm ] a = MyTools::Pdate.new(25,8,1983)
+ 131696 [cyclists@nc ] Pdate is in MyTools's namespace. Try MyTools::Pdate

[ANN] FXIrb 0.14 - a Win32 GUI wrapper around IRB
131685 [martindemell] - What?
+ 131689 [navindra@cs ] I have to admit I'm absolutely astonished at the number of people here
| + 131690 [glenn.parker] Percentage-wise, there probably aren't that many Ruby coders in the
| + 131702 [jamesUNDERBA] I really liked Visual Studio back in my VB days, and like (to the small
| | 131779 [snail@ob me ] <jamesUNDERBARb@neurogami.com> writes
| | 131794 [csaba@ph ny ] Although I tend to migrate to emacs from vim, I say vim is an excellent
| + 131723 [martindemell] The windows port of ruby is actually quite excellent, especially with
| | + 131725 [csaba@ph ny ] That's an interesting POV! Eh, maybe you just bumped into the wrong
| | | 131728 [martindemell] I'm using RedHat FC3 at the moment, but I've been meaning to check out
| | + 131733 [martin.anker] Windows
| |   131747 [Tait@Fi is c] Sometimes the reason the fonts look washy on Windows is that ClearType
| + 131724 [lucsky@ma .c] I have to admit I'm absolutely astonished at the number of people who
+ 131701 [jamesUNDERBA] I confess I am not a frequent user of irb; I prefer to use vim and
| + 131722 [martindemell] Clunky cut/paste is the main one, limited scrollback, occasional
| + 131740 [sdate@ev re ] Does code completion work for you on Windows cmd shell? That is one
|   + 131744 [jamesUNDERBA] Code completion in the cmd shell?  Or in irb in the cmd shell?
|   | 131745 [eero.saynatk] I'm assuming tab completion. _why had brief instructions for this,
|   | + 131749 [jamesUNDERBA] I have general file/directory tab completion working.  It's fairly
|   | | 131752 [sdate@ev re ] Yes, I meant tab completion in irb. Jim Freeze had shown it to me while
|   | + 131769 [csaba@ph ny ] With ruby-mingw on win2k, tab completion worked for me out of the box.
|   |   131812 [rff_rff@re o] interesting, did you ever had the (many times reported) problems that
|   |   131823 [csaba@ph ny ] No, but it doesn't mean much, as I use it very rarely (just for
|   + 131811 [rff_rff@re o] it seem to me that thorugh TweakUI I had both command completion and
+ 131713 [curt@hi bs c] I'm looking forward to it!
+ 131768 [matt.mower@g] This is great.  I am one of those people who seems to get regular

Module nesting and module vs. instance methods
131698 [GGarramuno@a] Having made the commitment to ruby, I am now finding myself building
+ 131706 [halostatue@g] +   include B
+ 131707 [csaba@ph ny ] I've faced this problem too, and I find out a workaround which may be
  131783 [wmorgan-ruby] Use 'append_features' rather than 'useme'. See e.g. [ruby-talk:20021].

www.bidfraud.com "Grand Opening" -- Read Inside for capabilities
131699 [noreply@bi f] www.bidfraud.com "Grand Opening" -- Read Inside for capabilities

English-language Tofu information?
131700 [ljz@as as .c] I'm starting to use Tofu with WEBrick, and I'm looking for documentation
131909 [pit@ca it in] FWIW, I'm also interested in this (being a vegetarian :-). Did you find anything
131914 [rff_rff@re o] you may wish to join the webrick mailing list if you did'nt do it yet.

succint access to constants/class methods?
131708 [csaba@ph ny ] One of the things I deeply like in ruby that succintness is an intrinsic
131711 [jamesUNDERBA] This may not give you quite the answer you are looking for, but it may
131717 [csaba@ph ny ] Yes, I know class methods are just singleton methods of classes, thus
131948 [transfire@gm] of

Yet Another... wait. This is my first Wee Example. :-)
131716 [joaopedrosa@] While studying Wee for the last 5 days, I was joined by a friend
131727 [mneumann@nt ] Thanks for the nice examples! For some reason the DBButtons do not work
131739 [joaopedrosa@] Thanks for the info.
131795 [caiot1@ib st] ;)
131850 [mneumann@nt ] Could you send me a sample DOCTYPE?

Question from newbie
131720 [pkarvou@gm i] Thanks!!!!

IO#seek with SEEK_SET
131726 [martindemell] Does calling IO#seek on a file with the SEEK_SET option internally do
+ 131731 [matz@ru y- a] It uses fseek(3) internally, so it's probably doing "something
+ 131732 [lists@be tr ] That depends on what you operation system's `lseek' call
  131765 [martindemell] Good point.

Force an FX redraw
131734 [ritchie@ip w] I'm playing with FXRuby and want to add/delete text fields on the fly.
131737 [martin.anker] try @parameter_frame.recalc
131742 [ritchie@ip w] That didn;t work, here's what I'mdoing now
+ 131762 [hal9000@hy e] This sounds familiar to me; is it a #create issue?
| 131791 [ritchie@ip w] thank you that worked!! is that a problem with the bindings or fox
+ 131790 [lyle.johnson] Hal is right; you need to be calling create() on each new label and
  131793 [ritchie@ip w] so the problem is not the bindings or fox only that I haven't seen

Ruby Development Tool (RDT) project for Eclipse help
131735 [pwistrand@ho] I've reproduced my posting below to the RDT forum over at sourceforge in
+ 131736 [alex@ve k. n] There are certainly problems in your installation.
+ 131738 [Debitsch@T- ] it seems, that something with the installation is wrong. On my machine
+ 131751 [dcorbin@ma h] As others have said, and you've deduced, you have an installation problem of
  131874 [pwistrand@ho] I tried a manual install and everything came right. I seemed to recall that

[rcr] Array#join non string arguments
131753 [neoneye@gm i] [1, 2, 3, 4, 5, 6].join(0)    #-> [1, 0, 2, 0, 3, 0, 4, 0, 5, 0, 6]
+ 131754 [matz@ru y- a] I think behavior that changes depends on indirect types (i.e. type of
| 131755 [neoneye@gm i] good point. I just needed this behavior and the first thing that came to
| 131756 [neoneye@gm i] [8,6,4,2,0].interleave{|a,b|(a+b)/2}  #-> [8,7,6,5,4,3,2,1,0]
| + 131757 [eero.saynatk] I'm assuming #join would remain in place as is?
| + 131758 [jannis@ha de] (Simon Strandgaard and I decided interpolate fits better)
|   131761 [matz@ru y- a] Shouldn't "sign" be the last parameter?  Just because fragile
|   131764 [jannis@ha de] I fixed that.
+ 131759 [dblack@wo bl] a = [1,2,3]
| + 131763 [agorilla@gm ] Dilimiter?  Separator?
| + 131772 [martindemell] "Interpolate", I was thinking, particularly with the block version.
|   131784 [discordantus] It may be just me, but in a programming context I see 'interpolate' as
|   + 131787 [martindemell] Oops - no, I was thinking of mathematics rather than programming. I'd
|   + 131857 [ruby-lists@l] if i read array_of_numbers.interpolate
+ 131824 [neoneye@gm i] I have posted rcr #294 on rcrchive.

Dynamically loading and executing within a new module?
131767 [ljz@as as .c] I'm not sure what would be the best way to accomplish the following in
131771 [ruby-ml@ma i] If you don't just want to write an actual module and then call its #init,
131777 [ljz@as as .c] Thanks.  This makes sense.
+ 131782 [ljz@as as .c] Actually, I now realize that I don't need a bona fide named module, but
| + 131786 [chr_mail@gm ] You can also use MyNameSpace#const_get
| | 131797 [ljz@as as .c] Yes ... makes sense.  Thanks.
| + 131792 [ruby-ml@ma i] Yes, but I'm not sure if I understand why you're doing this in the first
|   131796 [ljz@as as .c] Because I want to share code (via symbolic links) and associate it with
+ 131785 [chr_mail@gm ] use Module#new   - for example
  131798 [ljz@as as .c] Aha! ... that's a great idea.  I love how ruby (like Smalltalk) makes

131770 [martindemell] It seems a bit of a waste for Array#=== to default to Object#=== - it'd
+ 131773 [discordantus] I've wondered about this too. It seems that the === method loosely
+ 131800 [vjoel@PA H. ] How about using the splat idiom?
| 131825 [martindemell] Very neat - didn't think of that.
+ 131801 [vjoel@PA H. ] points = [

[ANN] Kwartz-ruby 2.0.0-beta2 - a language independed template system
131776 [kwa@ku at -l] I have released Kwartz-ruby 2.0.0-beta2.
131780 [martindemell] Could someone familiar with both post a comparison of Kwartz and
+ 131788 [ruby-lists@l] i'm also very interested in the answer to this
| 131851 [mneumann@nt ] *very* simple answer (I might be wrong): Amrita is Ruby-only, Kwartz is
+ 131789 [kwa@ku at -l] * Amrita and Kwartz doesn't break HTML design at all.
  131855 [martindemell] Very interesting. Looking forward to checking kwartz out.

Re: Array#join non string arguments
131781 [w_a_x_man@ya] [3,6,9].map{|x|[x,0]}.flatten[0..-2]

Can't run freeride
131799 [ronaldc@ju o] I downloaded the one-click installer ruby182-14 for windows. It
131802 [curt@hi bs c] I don't think its ever been tested on windows 95, but here's a few things
132446 [ronaldc@ju o] menu

Why don't I see these module constants?
131804 [ljz@as as .c] Suppose I have a file named 'modtest' which contains the following two
+ 131809 [vjoel@PA H. ] It's not particularly loading that's causing the problem. The same
| 131816 [ljz@as as .c] Thanks.  I get it.  It indeed seems counter-intuitive, but if that's the
+ 131813 [pit@ca it in] In addition to what Joel already said, note that
  131817 [ljz@as as .c] Yes, I see.  Thanks.
  131875 [vjoel@PA H. ] Ruby being ruby, it's easy enough to add a feature like this.

RDT for Eclipse - help
131805 [itsme213@ho ] Just installed Eclipse and then RDT.
131806 [itsme213@ho ] J2SE Version 1.5 (before installing Eclipse; don't know if that did
131822 [dcorbin@ma h] Are you using Eclipse 3.0.x?  You should use the JRE (or JDK) from 1.4.
131860 [itsme213@ho ] It seems RDT needs the full Eclipse SDK, not the runtime binary. Once I
131861 [dcorbin@ma h] That's interesting. I don't know enough to say why it does, but I don't know

Ruby Weekly News 14th - 20th February 2005
131807 [timsuth@ih g] Ruby Weekly News 14th - 20th February 2005
+ 131815 [neoneye@gm i] fantastic job you are doing.. thanks.
+ 131947 [rpardee@gm i] Is it possible to e-mail subscribe to this newsletter?
  131961 [ruby.talk.li] There was, or should be, an RSS feed for the weekly news.

destructive! operations
131808 [navindra@cs ] Is it more efficient to use the destructive versions of functions in
131840 [matz@ru y- a] Although most (not all) of bang methods are more efficient than their
131847 [bob.news@gm ] "Yukihiro Matsumoto" <matz@ruby-lang.org> schrieb im Newsbeitrag
131852 [caiot1@ib st] while ( line = gets.chomp )
+ 131853 [ruby-lists@l] unless ruby cow's the string and
+ 131859 [james@gr yp ] gets() returns a String or nil.  nil does not support chomp().  When
  131880 [navindra@cs ] Often think it would be nice if "" and 0 were treated like nil.  Such
  + 131881 [navindra@cs ] "false" too..
  + 131885 [msparshatt@y] One problem with this suggestion that comes to mind is, what if there
  | 131886 [navindra@cs ] Point.  The chomp would make it not work here.  There are many
  + 131898 [csaba@ph ny ] Now, only false and nil drop you to the "else" branch of a conditional.
  + 131929 [halostatue@g] I'm far happier that they aren't.
    + 131930 [zdennis@mk e] +=1
    + 131931 [bob.news@gm ] "Austin Ziegler" <halostatue@gmail.com> schrieb im Newsbeitrag
    | + 131933 [halostatue@g] Or C++/Java to Ruby (not the "", but definitely the 0). I *have* been
    | + 131951 [rff_rff@re o] or an unfinished transition to smalltalk/python :)
    | | 132050 [gavin@re in ] or an unfinished transition from Javascript
    | + 131954 [navindra@cs ] Or maybe Lisp where '() and nil are the same...
    + 131935 [ruby.brian@g] +1
    + 131937 [chneukirchen] Sometimes, I'd like an "eating nil" that returns itself for each
    | + 131938 [ruby.brian@g] What would the ignore_if_nil call in your example do? Wouldn't the
    | | 131944 [chneukirchen] gets returns nil on EOF.
    | | 131952 [ruby.brian@g] Yes, and you wanted a nil that eats its messages silently. So it would
    | | 131963 [chneukirchen] I want a special eating nil, not the standard nil eat everything
    | + 131939 [billk@ct .c ] class NilClass
    |   + 131943 [chneukirchen] I know that.
    |   | 131958 [pit@ca it in] EATING_NIL = Object.new
    |   | 131964 [chneukirchen] irb(main):021:0> puts "Doesn't work as I want"  if EATING_NIL
    |   | 131969 [pit@ca it in] if EATING_NIL then puts("nil") else puts("not nil") end
    |   | 131973 [chneukirchen] No problem, the idea and implementation is correct.
    |   | 131985 [ruby-ml@ma i] Apologies beforehand, I can't access the NG, just the ML,
    |   | 131988 [pit@ca it in] if (trace_func) {
    |   | + 131990 [navindra@cs ] Hehehe.  Why?  Is Florian known for pushing the frontier as to what it
    |   | | 132087 [pit@ca it in] Regards,
    |   | + 131992 [ruby-ml@ma i] Well, this *would* be overridable. If, however, the test is done at the C
    |   | | 131994 [msparshatt@y] The problem with this solution is the new object won't behave like nil
    |   | | 132002 [ruby-ml@ma i] Ah. Overextending the idiom :) I'd say it works fine as a shortcut.
    |   | + 131993 [chneukirchen] If he could, we wouldn't beg for #to_bool whenever possible...
    |   | | 132516 [matju@sy pa ] It's been a damn long time too...
    |   | + 132001 [caiot1@ib st] It shouldn't be in C. Such things should be in Ruby.
    |   |   + 132051 [pit@ca it in] Where do you draw the line between core functionality implemented in something
    |   |   + 132074 [ruby-lists@l] in the current ruby implementation this
    |   |     132075 [dblack@wo bl] Although this raises the old question of what an "implementation of"
    |   |     132077 [chneukirchen] And that these are not necessarily easier to understand than the C
    |   |     132081 [ruby-lists@l] depends on what part of the re-implementation you mean.
    |   + 132131 [logancapaldo] Ooo, this just gave me an idea!
    |     132140 [dblack@wo bl] Welcome to the club :-)  See my "Ruby Behaviors" package.  as well as
    |     132148 [logancapaldo] Darn, now I don't feel nearly as smart. Oh well, the upside is I don't
    + 131941 [navindra@cs ] irb(main):003:0> list[4..5]
      131950 [halostatue@g] That's not inconsistent; you're just not understanding. Matz posted
      131957 [navindra@cs ] Thanks for the explanation!
      132016 [hal9000@hy e] I have always had the feeling that there were interesting use cases
      + 132020 [navindra@cs ] Ahh, good to know I'm not alone in the world!
      + 132052 [gavin@re in ] ditto - foo.gsub!(...).gsub!(...).gsub!(...).damn.
      + 132277 [ian@ca ib n.] unless url.sub!( %r(^file://), '' )

Getting a method or class within a file
131810 [ay1204@qa i.] lots of Ruby files are in a directory, each containing stuff and a
+ 131814 [pit@ca it in] Not that I would recommend that, but you can do
| 131820 [ay1204@qa i.] It's also thread-unsafe.
| 131830 [halostatue@g] It sounds like you're basically doing a plugin framework.
| 131837 [ay1204@qa i.] I want to be able to load up objects 'on demand', i.e. when they're
| 131882 [ruby-ml@ma i] Kernel#autoload might be of use if you have a discrete set of files?
| 131911 [ay1204@qa i.] Think loading up Actors in Areas of a Game - no discreteness here :-)
+ 131845 [bob.news@gm ] ...
| 131848 [ay1204@qa i.] Not always, just the first time.
+ 131879 [vjoel@PA H. ] You can do this using the "script" lib I just mentioned on another thread.
  131910 [ay1204@qa i.] ahhh..........

[ANN] fxri 0.1.0
131826 [martin.anker] fxri is an interface to Ruby's RI documentation. It has several nice
+ 131832 [rff_rff@re o] mh.. maybe RBBR is still cooler, but this is definitely a nice app :)
| + 131890 [laurent__nos] Definitely so. Actually I'm already working on it as I write this
| + 131913 [martin.anker] Oh! I am glad I did not know RBBR beforehand, otherwise I probably would
+ 131834 [ruby-lists@l] wow looks/sounds nice!!!
+ 131835 [matt.mower@g] first fxirb, now fxri.  Very nice indeed.  Now who'll give us fxr? ;-)
+ 131836 [matt.mower@g] Can you tell me how to get fxri to pickup 3rd party documentation,
| 131839 [martin.anker] fxri uses the same source as ri, so you have to use
| 131900 [jamesUNDERBA] But, be warned: if you are not careful with what you import into ri, you
+ 131846 [martindemell] Wonderful stuff!
+ 131873 [vjoel@PA H. ] The fxri tarball works fine. Nice work!
+ 131923 [zdennis@mk e] Very cool! This will be very useful! Great work Martin!