61436-65714 subjects 61901-68478

Mac OSX, X Ruby and Tk
61691 [peter@se an ] Whilst hunting down what I thought was a bug in my code I found a
61692 [jim@fr ez .o] Best I can tell is that your stack is too small. There have
61703 [peter@se an ] Thanks I will give that a try.

ANN: saprfc - Ruby extension for RFC calls to an SAP R/3 System
61699 [piers@om a. ] Announcing the release of saprfc - Ruby extension for RFC calls to an

[ANN] Ruby SunOS Packages
61713 [mxvera@qw st] Greetings,
61715 [mxvera@qw st] FYI - This was built with gcc 3.2, not Suns cc...

newbie question about solaris and ruby/tk
61716 [jean-francoi] Ihave installed the SUN's package of ruby under solaris 8.
61717 [decoux@mo lo] tcl/tk is not installed on your system, ruby can't find libtk8.3.so

determine if a certain process is running on win32?
61719 [jonnypichler] is it possible to determine if a certain process is running on win32?

Unit Testing in dynamic environments
61720 [whitton@at a] I'm just starting to get into unit testing, and I can already see how powerful
+ 61721 [hgs@dm .a .u] There is an idea called Mock Objects, where your object pretends to
| + 61724 [whitton@at a] Fantastic! This is just what I've been looking for.
| + 61778 [jweirich@on ] The comments on http://www.b13media.com/dev/ruby/mock.html indicate that
+ 61723 [gsinclair@so] Several times in the past, I've created test data in test tables (or
+ 61794 [bulatz@in eg] you can test invariants (predicates) instead of concrete values
+ 61799 [jweirich@on ] The key is to provide predictable results for the unit test

Reading the code passed inside a block?
61726 [sera@fh an .] Is it possible to read the code passed in a block, as, say, a String?
+ 61729 [kentda@st d.] Not really, AFAIK.
+ 61730 [ptkwt@sh ll ] Also check out the link on that page to Guy Decoux's ii.

Mac OSX stacksize - was Re: [ANN] YAML.rb 0.49.1 -- Perfecting the parser, new merge indicator, base60
61727 [jim@fr ez .o] Setting it from the terminal only works for that terminal IIRC.

Re: Mac OSX stacksize
61728 [jim@fr ez .o] This is all I know so far.

FXRuby always on top
61732 [erne@po er a] Does anyone know how to keep an FXRuby main window the topmost window in the

ANN: FXRuby API Documentation - Preview
61734 [lyle@us rs s] All,
61743 [vjoel@PA H. ] Looks great! This will be be big help.
61748 [lyle@us rs s] I'm not sure I follow; are you talking about setXXX() methods that are
61755 [vjoel@pa h. ] Sorry...  writing too much code and not enough English lately...

61741 [lists@de on ] Using ruby 1.6.8 what's the cleanest way of accessing a specific option
61761 [lists@de on ] Ack! no replies, well, to save one who would replied, I ended up doing

[ANN] dbi-dbrc 0.2.0
61742 [djberge@qw s] I'm happy to announce dbi-dbrc 0.2.0
61788 [botp@de mo t] Is the password hashed in file?
61856 [djberge@qw s] No, it's plain text, but see the four rules for the .dbrc file before your
61885 [vjoel@PA H. ] Just to be malicious... what about someone using a linux boot floppy to
61887 [djberge@qw s] Heh.  Of course, if someone with physical access to your machine is willing
61888 [vjoel@PA H. ] But the data stored in the database might be much more valuable than
+ 61897 [probertm@no ] Will this help.
+ 61905 [eric.schwart] The general rule of thumb for security is that if they can touch the box,

Anonymizer and analyzer for IRC logs.
61747 [kentda@st d.] This is a long shot in the dark, blindfolded and walking backwards, but

Linux Editor
61749 [dwerder@gm .] What's your favorite ruby editor on linux?
+ 61752 [vjoel@PA H. ] I like nedit. I've slowly built up a small but comfortable set of macros
| + 61758 [transami@tr ] nedit eh? well, i like vim, but can't stand it. know what i mean? emacs? no
| + 61760 [fugalh@fa co] Is there anything other than vim? ;-)
| + 63197 [tihen.willia] Could you send them to me (or are they available somewhere).  On the
|   63257 [vjoel@PA H. ] I'm updating it now with some recent changes.
+ 61763 [Ephaeton@gm ] I'm using nvi, for vim is to vi what emacs is to .. uhm ... cat ?
| 61766 [Ephaeton@gm ] Uhm, pardon my bad english. Maybe this will make it clear...
| 61787 [ ted@ph .n t] This group never ceases to amaze and delight!
+ 61813 [ruby@jo lh d] I use vim and somtimes anjuta http://anjuta.sourceforge.net it is a C++-IDE
+ 61818 [angus@qu va ] joe.
| 61824 [wbn@lo al os] emacs is better since it has the syntax highlite feature
+ 61834 [scobianchi@r] Eclipse (www.eclipse.org), with the Coloring Editor Plugin for editing
| 61857 [michael_s_ca] If I may ask, what is it about eclipse with ruby that you like?  For
| + 61858 [djberge@qw s] I like the visual CVS interface and tools.  Very handy.  It *does* have
| | 62033 [transami@tr ] does any editor do effective eruby highlighting?
| | 62034 [tim@ba es id] There is an eruby.vim syntax highlighting script for vim which does a good
| + 61867 [scobianchi@r] Well...
+ 61837 [joey@jo yg b] I"m using ActiveState Komodo. It's $29 but pretty nice. It is really
+ 61861 [bub@sq ee k.] jed
  61862 [wmoxam@kl ck] nano (clone of pico)    :)

quick: it responds, it evaluates, and is not empty
61757 [transami@tr ] if self.respond_to?(:ameth)
+ 61768 [ahoward@fs .] i'm assuming :ameth and ameth are meant to be a Symbol and String
| 61772 [dblack@ca dl] Because if you just have respond_to?(ameth), then ameth will
+ 61774 [dblack@ca dl] I think it's probably worth having a temp variable here to avoid
| 61783 [gsinclair@so] begin
| + 61785 [dblack@ca dl] I do actually like that construct -- it's just kind of (comparatively)
| | + 61839 [transami@tr ] now that is a very interesting idea. NACK as in Not ACKnowledged, yes? reminds
| | + 61853 [martindemell] A quick hack would be to have a NackClass, mix in Singleton, and have a
| + 61801 [bulatz@in eg] try
+ 61797 [bulatz@in eg] ((not ameth.to_s.empty?) and ...) rescue 0
  61842 [transami@tr ] thanks, this seems the most concise answer, although i hesitate to use rescue.
  + 61846 [bulatz@in eg] i dont know. on the my side, i like 'when NACK' idea - may be because
  | 61848 [transami@tr ] i agree, nack would be good. i suppose returning nil if the method doesn't
  | + 61854 [gsinclair@so] Not at all!
  | | 61855 [dblack@ca dl] It can be done, but it's not a general solution, because there might
  | | 61864 [ahoward@fs .] why not add a new return value to Object::respond_to? ?
  | | + 61866 [transami@tr ] but this does not free one from using respond_to? i.e. instead of: if
  | | | 61900 [ahoward@fs .] i see your point, but see my post to david.  in general i love syntax
  | | | 61904 [martindemell] The point, though, is to return a nack *instead of* throwing an
  | | | 61917 [transami@tr ] i like it too, expcept too...
  | | | 61919 [martindemell] Last, I'd say - by the semantics of 'method_missing', you'd want your
  | | + 61872 [dblack@ca dl] This is different, though, from having the (attempted) call to the
  | |   61896 [ahoward@fs .] yes.  but the same thing can be accompished.
  | |   61899 [dblack@ca dl] But then it's unnecessary.  respond_to? returning false is already the
  | |   + 61903 [ahoward@fs .] i finally got this.  too much of the coffee-beer-coffee-beer cycle...
  | |   | 61908 [dblack@ca dl] See <http://www.rubygarden.com/article.php?sid=110> -- there was a
  | |   + 61934 [gsinclair@so] I don't entirely disagree, but "welcome to the world of exception
  | |     + 61935 [transami@tr ] class Object
  | |     | 61939 [martindemell] This would be more extensible if you called v.empty? and provided an
  | |     + 61942 [dblack@ca dl] Well, "random" is a bit extreme... :-)  My main focus in all of this
  | |       61946 [ahoward@fs .] it seems like what you are after then are dynamic interfaces, after all
  | |       61955 [dblack@ca dl] I guess, though to me conceptually and practically a NACK
  | + 62140 [bulatz@in eg] EXPRESSION except DEFAULT VALUE
  + 61849 [dblack@ca dl] However, it doesn't do what you originally were doing.  false.to_s is
    61850 [dblack@ca dl] I should add: it also doesn't duplicate the respond_to? functionality,
    61863 [transami@tr ] David, the subtilties you pervade.

most popular unix scripting language
61759 [dorli@ho ma ] does anyone know which is the most popular unix scripting language?
+ 61762 [dan@si he or] I think you'll likely find that sh is the winner by rather a long way...
| 61775 [john.carter@] sh is sort of like bad breath. A lot of people have it, but it's not very
+ 61764 [Ephaeton@gm ] Depends how you look at it, either C or sh :>
+ 61765 [claird@la rd] Yes.  Several hundreds of thousands of people know, and,
| + 61771 [tony@sv ns r] sh
| | + 61789 [goldbb2@ea t] Do you count perl as a derivative of sh? <gg>
| | | + 61802 [bulatz@in eg] we count all languages which prints current directory when running script
| | | + 61807 [tokikenshi@f] ksh, zsh, bash...
| | + 61791 [roberson@ib ] A) number of scripts written,
| |   61792 [hal9000@hy e] Thread.kill
| + 61841 [genericax@ho] Accordind to DICE/monster, Perl IS the hands-down winner. Larry gets
|   61873 [lvirden@ya o] All you are identifying is the list of languages which appear on resumes.
+ 61779 [matt@li ke .] /bin/sh
+ 61781 [tuxfordNOSPA] If it looks like a troll and walks like a troll...
| + 61784 [dug@pl st re] A number of people have replied "sh".  I think they meant "Shhhhh!".
| + 62197 [spamtrap@li ] at 02:04 AM, tuxfordNOSPAM@NORETURNearthlink.net (Mike Tuxford)
|   62276 [glennh@no pa] I do like emacs (xemacs) and I'm sure it can do everything I would ever
+ 61798 [bulatz@in eg] bash :)
+ 61833 [nospam@dv ro] perl
| 61836 [marty@su in ] $author = "Herbert Rosenau <nospam@dv-rosenau.de>" ;
| 61877 [nospam@dv ro] No.
+ 61879 [dp_bozarth@s] No, it's an indeterminate (at least in any practical sense)....
+ 62076 [donal.k.fell] Is this defining "popular" to mean "cheap-n-cheerful" the way Ford used to do
+ 62196 [spamtrap@li ] I'd guess either Perl or Python, although there are a lot of
  62239 [gsinclair@so] Who cares!?!?!?!?!?  Haven't you read the millions of existing replies

Re: saprfc - Ruby extension for RFC calls to an SAP R/3 System
61769 [botp@de mo t] cool Ruby-SAP hacker :-)
+ 61773 [botp@de mo t] btw, sir Piers, I also looked at your site http://www.piersharding.com/. It
+ 61804 [piers@om a. ] Thanks.
  61805 [botp@de mo t] Thanks. We hope you the best.

61790 [johnston@ca ] Appended to this message, you will find my script (currently only partly
+ 61922 [johnston@ca ] I havn't got any response. Does anyone have suggestions as to how to
| 61938 [decoux@mo lo] Well, I think that it exist a problem, not really sure if it's in pcap
| 62010 [johnston@ca ] Well, I may be able to, but it's difficult to reproduce the problem. The
| 62437 [decoux@mo lo] Well, I've had some free time to look at it. There is, at least, one
+ 61931 [nobu.nokada@] According to http://capsaicin.ca/rubydebug/prioriline.strace_crop,

new idea on unit testing
61803 [bulatz@in eg] Tarantula is a visualization system that displays the results of running
61808 [botp@de mo t] it's not available for download?? :-(
61809 [bulatz@in eg] yes :(

Automating Perl -> Ruby translation?
61810 [hal9000@hy e] Has anyone given any thought to this
+ 61816 [gsinclair@so] I don't think you'd get very far.  Syntax may not be too difficult,
| 61823 [martindemell] So do it bottom-up :) Seriously, it'd help get smoe of the more useful
| 61828 [gsinclair@so] I thought we were benefiting from a lot of porting already.  What are
| 61890 [martindemell] We are, but we could always do with more :) Personally, I'd like to see
+ 61826 [simon@si on ] The way to do this is to start with Perl's B::Deparse library, which
| 61876 [ptkwt@sh ll ] Ahhh, so such a beast exists...  Well that would certainly help.
| 61878 [simon@si on ] Nothing special; just instantiate an object of the appropriate class,
| 61907 [ptkwt@sh ll ] A short example?
+ 61875 [ptkwt@sh ll ] Parsing Perl is not easy...
  + 61881 [dcarrera@ma ] "Only Perl can parse Perl"   :-)
  | + 61886 [dblack@ca dl] I thought it was "Only perl can parse Perl" :-)
  | + 61891 [martindemell] Pedantically, "only perl can parse Perl" (highlighting the distinction
  | + 61914 [hal9000@hy e] Well, I'd settle for a very crude tool.
  |   + 61915 [dcarrera@ma ] I wonder how hard it'd be to make a "very crude" tool.  That might be
  |   | 61928 [eric.schwart] Ack, you've just broken hashes-- fix those first!
  |   + 62497 [comp.lang.ru] - - Huh? SWIG is a way to hide XS from yourself.
  |     62498 [dan@si he or] At 9:25 AM +0900 1/24/03,
  |     62524 [bulatz@in eg] ... in six days? :)
  |     62558 [dan@si he or] Well, mercury day, perhaps...
  + 62141 [bulatz@in eg] of course, perl interpreter. or i am wrong?
    62149 [ptkwt@sh ll ] Cardinal being a project to create a Ruby frontend for Parrot (the Perl6

How to make TkLabel update immediately?
61811 [lausianne@gm] I'm putting out some text in a window using a TkLabel. The problem is
+ 61815 [lausianne@gm] I found the archive.
+ 61847 [nagai@ai ky ] Tk re-draws widgets on a idle-task.

How to make TkLabel update immediately?
61814 [lausianne@gm] I'm putting out some text in a window using a TkLabel. The problem is

Feature request: Array.to_h
61820 [google@to pa] I use the following snippet a lot, and think it's worth including in
61831 [dblack@ca dl] %w{a b c d} => {"a"=>"b", "c"=>"d"}
+ 61832 [bulatz@in eg] p Hash[*  %w{a b c d} ]   # => {"a"=>"b", "c"=>"d"}
+ 61947 [google@to pa] irb(main):014:0> h = [:a, :b, :c].to_h
  61956 [dblack@ca dl] Whoops, sorry, I inverted your inversion.
  62064 [google@to pa] I think of Arrays as mapping integers >= 0 to values, and of Hashes of
  62080 [dblack@ca dl] (s/PERL/Perl/ :-)  Yes, there's something like that in Perl, but I'm

Feature request: Array.to_h (2nd part!)
61822 [google@to pa] header_row = "year,month,day,price\n"
61827 [gsinclair@so] # =>> {"month"=>1, "price"=>3, "day"=>2, "year"=>0}
62416 [nahi@ke na t] But it doesn't do anything special treatment about
62423 [nobu.nokada@] If it is possible to override Row definition in particular
62540 [nahi@ke na t] Kon'nichiwa, nakada-san,

[OT] Re: Linux Editor
61825 [decoux@mo lo] You mean this stupid thing which add colors on the screen ? I've never
+ 61830 [aurelien.deh] Warning, Emacs troll in progress...
+ 61845 [billtj@z. lu] .... don't start the war, Guy...
  61913 [    s@xs .d ] Ladies and Gentlemen,

Bug in CGI::Session ?
61835 [fg@si me om ] require 'cgi'
61838 [matz@ru y- a] Thank you for pointing out.  I will fix this soon.
61859 [ahoward@fs .] there is also still the issue that in lib/cgi/session.rb:77-85 the []= method
61868 [matz@ru y- a] This is fixed in 1.8.0pre1.

Accessing Infinity
61840 [bob.news@gm ] is there another way of accessing Infinity or -Infinity other than doing
61882 [vjoel@PA H. ] class Float
61893 [mike@st k. o] Is it reasonable to compare infinities?  I would tend to use
61895 [vjoel@PA H. ] Well, Ruby's floating point number system does include two infinities,
61898 [kentda@st d.] Ruby doesn't provide the two infinitive numbers. The underlying floating
+ 61906 [vjoel@PA H. ] But...
| 61909 [kentda@st d.] Maybe, I'm no math buff, but I was thinking more about the fact that
+ 62055 [bob.news@gm ] thank you all for your remarks!  However, comparison was not my point but
  62417 [nahi@ke na t] I used kind of "1.0/0.0" workarounds in soap4r.  It's for mapping

Ruby and no auto-increment (i.e. i++)?
61843 [christopher.] Someone recently posted a pointer to an explanation by Matz of why Ruby didn't
61851 [gsinclair@so] It's in the FAQ.

Seattle.rb January meeting
61865 [pate@ey er a] Let's make this official!  We'll be meeting on 28 Jan, 7PM @ omnigroup.

BlackAdder - Visual Development with Python and Ruby
61869 [_soso@so th ] Check this out: http://www.thekompany.com/products/blackadder/
+ 61870 [djberge@qw s] Hmm..the last time I looked at this, it didn't have much Ruby support.  That
| 61871 [djberge@qw s] Regards,
+ 61984 [llothar@we .] If you call simple syntax highlighting and the ability to start a script

[ANN] SOAP4R/1.4.8 with WSDL4R/0.0.2
61874 [nahi@mw .b g] SOAP4R/1.4.8 with WSDL4R/0.0.2 is out.
61925 [nahi@mw .b g] Sorry for bothering you again.

Multiple constructors ...
61883 [lars-m@gm .n] ...
+ 61884 [vjoel@PA H. ] class Foo
+ 61889 [gfb@to es ft] ...
+ 61892 [martindemell] (plaintext please!)
  61894 [djberge@qw s] Multiple constructors are a plague that needs to be wiped from the Good Land