13820-14847

13633-14734 subjects 14006-14846

A possible Ruby IDE. Help needed.
13820 [Dave@Pr gm t] I've got some interesting news.
13823 [sma@3p us .d] While this is great news, it seems that it's available for Linux only.
13836 [gsemones@tr ] ...
13843 [Dave@Pr gm t] That's my understanding.
13844 [wys@he bl ng] I would volunteer for "phase 1" being the provision of the Ruby Scintilla
+ 13868 [gsemones@mi ] There are other types of scintilla information at the site.
| 13875 [avi@be a4 co] On the topic of scintilla - I hacked out a quick bindings generator to let
+ 13874 [nobody.home@] Clemens,
  13876 [gsemones@tr ] ...
  + 13877 [gsemones@tr ] ...
  | 13894 [wys@he bl ng] ...see python.properties which also does the Ruby mapping.
  + 13899 [nhodgson@bi ] The best starting point for a Ruby lexer is the C/C++/Java/... lexer

Ruby DBI forum
13825 [murphyv@st d] a handful of people have expressed an interest in working on a database

All In A Row?
13834 [jkaurin@ho e] I made some modifications to the code supplied by
13837 [dblack@ca dl] You might want to refactor a little so that you don't have (almost)
13910 [jkaurin@ho e] I originally sent this to David offline, but he suggested

EBADF on Windows
13835 [vjoel@pa h. ] But if I put it in a file...
13878 [nobody.home@] Joel,
13891 [vjoel@pa h. ] Thanks, Bernard!
13892 [nobody.home@] Not on Win9x, I'm afraid (I think it's an NT/2000 extension)

xmlscan (Re: Problems with racc rule definitions)
13842 [maki@in c. o] I tried to translate README into English.
13855 [neumann@s- i] Wow, that's great!  XPath works perfectly!
+ 13861 [Dave@Pr gm t] There's an extension that interfaces to sablot in the raa
| 13869 [neumann@s- i] Yes, I know of that.
+ 13919 [maki@in c. o] Not me, but UENO-san, as described in README.
  13945 [dcorbin@im e] Coolness.  I was just contemplating doing this one as my first Ruby

number to string to number
13845 [rnajlis@cs i] Am I doing something wrong (maybe - I am pretty new to Ruby)?  it seems
+ 13846 [matju@sy pa ] if count.class == String, then you don't need to do "#{count}", you
+ 13847 [wys@he bl ng] Are you sure "count" is a Number? I would claim it is (many times) a
+ 13851 [tjabo@un x- ] try "puts count.type" to see the type of count.
| 13898 [rnajlis@cs i] Thank you all for your help
+ 13900 [rnajlis@cs i] Thank you all for your help
| 13904 [dblack@ca dl] [later:]
| 13937 [ben_tilly@op] (and this is about having to use .to_i...)
+ 13942 [rnajlis@cs i] Sorry for being absent from this discussion.
  + 13943 [huber@al m. ] OK...so far...
  | 13949 [rnajlis@cs i] Right that's what I wanted to do.  I tried it but it did not work.  I
  + 13948 [billk@ct .c ] The beautiful thing about languages like ruby, (or Smalltalk, or Perl, etc.)

Sockets-- using readlines versus gets
13848 [makoto@uc in] I've just started using ruby.  I'm currently using sockets but I've run into
13850 [matz@ze ab t] readlines read everything until the end of file.  In this case, client
13906 [makoto@uc in] Thanks for the quick reply.
13908 [matz@ze ab t] closing (or shutting down) a file descriptor.

BlackAdder for Ruby (scintilla rules)
13849 [WYS@he bl ng] Shawn,
+ 13867 [shawn@th ko ] ...
+ 13870 [akuchlin@me ] ...
+ 13879 [paulp@Ac iv ] Just to be clear: Scintilla does not use rules files. It uses lexers
  13893 [wys@he bl ng] Paul,
  13903 [paulp@Ac iv ] I think Ruby's a pretty nice language. If there ever comes a day where

modruby ML
13853 [shugo@ru y- ] modruby ML is available now.

'use strict', nested data structures ... ??
13859 [Tarael200@ao] I've recently wandered over from the Perl side of the programming world,

use strict + nested data structures in Ruby
13860 [tarael200@ao] I've recently come over from the Perl side of the programming world, and am
+ 13862 [decoux@mo lo] Look at the thread "Multidimensional arrays and hashes?"
+ 13863 [Dave@Pr gm t] Welcome!
  + 13864 [in6x059@pu l] Are there reasons making this impossible or did nobody really
  + 13865 [decoux@mo lo] You can't do this. Just an example, for bdb you have 2 classes
    13927 [in6x059@pu l] This explains why it cannot be done to vivify BDB::Recnos, those still

ANN: FXRuby-0.99.167 Now Available
13880 [ljohnson@re ] I am pleased to announce the latest release of FXRuby, the Ruby

ruby on windows
13881 [gpalmer-remo] Saw the discussion on slashdot the other day about Ruby so I thought I'd try
13882 [Dave@Pr gm t] For now, install it into a path that doesn't have a space in the name.
13941 [gpalmer-remo] Thanks!  It's working fine...  I'm planning on going through the tutorials

File exist?
13884 [jim@fr ez .o] How do I check for a file's existense via ruby without using exceptions?
+ 13885 [brucedickey@] include FileTest
| 13887 [jim@fr ez .o] My version of ri gives me garbage for FileTest. I guess I should upgrade
+ 13886 [gnhurst@hu s] FileTest.exist? ( aString ) -> true or false
| 13888 [jim@fr ez .o] Thanks much. You would think I would have been able to find that one
+ 13889 [Dave@Pr gm t] Would you believe

IRC channel #ruby-lang at irc.openprojects.net
13890 [gnhurst@hu s] For those of you who do not yet know, you can

Net::HTTP basic authentication
13897 [dsharp2@nc r] I'm having trouble making basic authentication work.
+ 13911 [decoux@mo lo] You have forgotten ' ' after Basic
| + 13970 [dsharp2@nc r] #!/usr/local/bin/ruby
| + 13971 [decoux@mo lo] RFC 2617
|   13972 [dsharp2@nc r] Thanks!!!
|   13978 [erne@po er a] Try this for doing basic auth.
+ 13912 [kjana@os xa ] Here, enc is assigned to `BASICencodedword' but what's needed is

Ruby/GUI option: Ruby/Apollo (Delphi VCL)
13902 [schneik@us i] I'm not familiar with it, but for those of you who are interested, I am
13907 [gnhurst@hu s] I don't know why I didn't check this out back then.  I must say I agree
13918 [mzh@po tn t.] "bin\apollo.rb" may be "bin\apollo.exe".

Accesing attributes/methods from nested blocks
13913 [karl_lopes@y] attributes & methods of an outer class?

Ruby/GUI option: Ruby/Apollo (Delphi VCL)
13914 [jilanik@ti .] Well, but I can't find the source code of Phi (phi.pas), so I can't
+ 13915 [hal9000@hy e] Suggest you email the author: mailto:moriq@moriq.com
+ 13917 [moriq.kazuhi] The source code of Phi.dll is Phi.dpr.

Ruby/GUI option: Ruby/Apollo (Delphi VCL)
13920 [jilanik@ti .] You are right. It is there and everything works almost fine.
+ 13939 [gnhurst@hu s] I agree with this.  I downloaded the current mailing list
+ 13959 [moriq.kazuhi] If you know easy-to-use free service, I want you to prepare it in that.

File permissions
13921 [flifson@cs u] When I call
+ 13923 [Dave@Pr gm t] Are you on a Unix box? If no, what is your umask set to? I'd guess
| 13929 [flifson@cs u] I am on a FreeBSD box. I just ran umask and there it is "022". Oh well. Time to pay the sysadmin a visit...
| 13932 [in6x059@pu l] Why? You can set it yourself.
+ 13930 [matz@ze ab t] I think you're working on UNIX.  see "man umask".  From Ruby, you can

SOAP4R with NQXML (was Re: xmlscan)
13922 [nahi@ke na t] I tested SOAP4R(client/server) <-> Apache-SOAP/2.1(client/server)

Austin, TX gathering 25 Apr 2001
13924 [mike@st k. o] There will be an informal social meeting of the Austin Group in Austin, TX

FW: Ruby DBI forum
13925 [SAT@MU TI EC] Oops, didn't mean to post this to the ML.

Re: CONFIG["prefix"] ?
13926 [rashworth@ma] Can you send me the Ruby code to make a small icon?

Re: Question on gsub with a block
13928 [rashworth@ma] Dear Mr. Zagorodnikov,              Friday, AM
+ 13933 [rashworth@ma] Thank you for your reply.   ERA
+ 13977 [   xm@w3 .r ] There is no problem, given russian text is in KOI-8, ISO-8859-4 or Win-1251 (most common case) encoding.

PTY question [long]
13931 [henryso@ea t] I'm trying to use the PTY extension to run ssh to communicate with a program

[ANN] xmlrpc4r 1.6.1
13934 [neumann@s- i] I have just release XML-RPC for Ruby, version 1.6.1.

Is it possible to unread a line?
13935 [jim@fr ez .o] Is it possible to 'un'readline?
+ 13938 [dgjs@ac .o g] It would be easier to just read the whole file into core with
+ 13951 [raja@cs in i] You could subclass (or extend) File with a buffer, extend #readline and

From Guido, with love...
13940 [Dave@Pr gm t] This was the first question in the Slashdot interview of Guido van
13946 [snowzone5@ho] first off he's the leader of pythonology
+ 13947 [chris@at es ] I had been using ruby for exactly 2 days for simple scripting jobs,
+ 13968 [decoux@mo lo] You don't need comment when  the code is very well written.
| + 13995 [dgjs@ac .o g] 'A lot has been said about the benefits of comments, and little
| | 13997 [mitch@ve ux ] I don't think that could be further from the truth... Code that is well
| | + 14001 [Dave@Pr gm t] Possibly this might be cause for concern...
| | | 14145 [harryo@zi wo] I don't really want to enter into this debate ... partly because I
| | | 14194 [marcbutler1@] I don't believe this is true.  Even code of the highest clarity cannot
| | + 14018 [ronjeffries@] There may be cases where well-written code is "extremely complex and
| | | + 14021 [chadfowler@y] This would be fun.  The challenge is in finding some
| | | + 14024 [rcalco@co te] # >> >  You don't need comment when  the code is very well written.
| | | + 14082 [ljohnson@re ] Please, oh please, start with the threads-related code in "eval.c" ;)
| | |   14088 [ben_tilly@op] What problem space are you working in, and what problem space
| | + 14020 [chadfowler@y] So, by this definitions, one could write a totally
| + 14051 [chris@at es ] Individual functions are indeed easy to read.  However, to assemble a
+ 13979 [matz@ze ab t] Although Python and Ruby share similar target domain, each has totally
  + 13988 [Tarael200@ao] In a message dated 4/20/2001 6:41:45 PM Eastern Daylight Time,
  + 14011 [snowzone5@ho] it's not just ruby they hate, they're equal opportunity language haters :/
  | + 14012 [johannh@uc i] I am bit surpised at this.  I've been using Python for years now, and
  | | + 14013 [spwhite@ch r] OK, let's wrap up on this note.
  | | + 14023 [rcalco@co te] # > it's not just ruby they hate, they're equal opportunity
  | | + 14075 [rtexier@el k] I'm in the same case. I'm a python user who discovered Ryby _through_ the
  | + 14039 [mtr@ot aw .c] Summerfelt, you're a fucking idiot.  There's no other way to put that, I'm
  |   14054 [green@Fr eB ] Keep this off the lists.  If you want to attack someone, do it privately.
  + 14037 [mtr@ot aw .c] And then we have Python people (like me, say) who would like to pick up

Ruby book to be published by Orielly Associates
13950 [niyer@ta pa ] Week back I had requested Orielly Associates to publish a book on Ruby.

xml2rb (Re: xmlscan)
13952 [maki@op n- e] OK. Here is a translation of README.rd.ja.

regexp
13953 [james@sq is ] was hoping to use the perlisms in ruby when it came to regexps.
+ 13954 [phasis@ha an] without
| 13955 [gnhurst@hu s] if there is no match...
| + 13961 [phasis@ha an] Another try using nil.to_a = []
| + 13962 [phasis@ha an] Another try using nil.to_a = []
| + 13963 [phasis@ha an] Another try using nil.to_a = []
+ 13956 [gnhurst@hu s] Something like this came up before (see [ruby-talk:01871] and 01873)
+ 13967 [zippel@li ux] var.scan(/^(.+)=(.+)$/) do |key, val|
  + 13975 [james@sq is ] Ooh, I like this one the best.
  + 13976 [decoux@mo lo] Invalid syntax actually.
    + 13980 [james@sq is ] You think it would be too horrible if ruby allowed that syntax and called
    | 14019 [fvdelius@gm ] What side effects on the existing syntax would came up it have if a regular
    + 13981 [decoux@mo lo] Too perlish for me (this is you that have said horrible :-))

Bug? retry not working properly in 1.6.3
13957 [trulsat@hi u] From the example in "Ruby User's Guide", section 9, "Iterators", there is an
+ 13958 [Dave@Pr gm t] This seems to work on 1.6.1, but not on 1.6.3 or 1.7.
+ 13969 [decoux@mo lo] Probably a problem in rb_call0, wait for confirmation from matz
  13983 [matz@ze ab t] You're right (as always).  I'll incorporate your patch.

FXRuby and registering callbacks
13960 [barry_shultz] Could someone tell me the right way to register
+ 13982 [barry_shultz] Answering my own post. I found lots of examples
+ 14083 [ljohnson@re ] Barry and I have already discussed this a bit in private e-mails, but I
  14095 [elderburn@mi] FYI, wxWindows has what IMO is a good way to do his. The wxGTK distro is

Re: From Guido, with love... [+ Jython & JRuby]
13964 [schneiker@ju] Well, IMNSHO, it also seems like a very *minor* sort of "deliberate insult",
+ 13966 [paulp@Ac iv ] I was also going to say that it would be helpful to interpret his
| + 13973 [Dave@Pr gm t] Yes. I wasn't particularly referring to the Parrot crack. But the idea
| | 14010 [snowzone5@ho] it's 'cause the designer just didn't end up designin a python lookalike, or
| + 14008 [snowzone5@ho] he's not a political person but comments like comparing ruby to 'parrot' or
|   14042 [mtr@ot aw .c] Yes.  I can see how that would stick in the craw of an asshole who gets cut
|   + 14096 [ben_tilly@op] I normally reply (in classic Usenet tradition, and following
|   | + 14097 [gnhurst@hu s] I'd have to agree with Mr. Tilly here.
|   | + 14185 [snowzone5@ho] gvr effectively calls 'ruby' a 'parrot' like language. i just said it pretty
|   + 14186 [snowzone5@ho] well, i rest my case about the python community <snrk>
+ 14009 [snowzone5@ho] i suppose it was minor...except it was posted on slashdot...anybody using
+ 14116 [schneik@au t] So far none of the previous replies to my earlier post addressed what I
  14847 [matju@sy pa ] First of all, it's possible to do anything computable with any computer,

Re: Write testsuite in Ryby
13965 [max@ma va co] I'm thinking about writing testsuite for my C++/Lua application.
13974 [Dave@Pr gm t] In order to access your C/C++ from Ruby, you may be able to generate

RCR, strange things in $:
13984 [ben_tilly@op] I decided to catch up on old summaries of p5p, and I ran
13985 [decoux@mo lo] It's finally documented ? It's in perl since 5.6.0 and voluntary not
14014 [rashworth@ma] Given a plain text file with lines 1, 3, 5, .... Roman Font
14100 [ben_tilly@op] Never blame on malice when you don't have to.  It is Simon
14102 [Dave@Pr gm t] Add to the wish the ability to have versioning at that interface.
14157 [matz@ze ab t] Hmm, both loading from zip archive and versioning are intersting.
14164 [Dave@Pr gm t] OK, just to get the ball rolling.
+ 14173 [rise@kn ve y] Did you intend that this would apply to .so libraries as well?
| 14174 [Dave@Pr gm t] Yes, but using the filename instead of some variable. That's one of
| 14177 [ben_tilly@op] As both versioning and loading from a zip archive are
| 14178 [Dave@Pr gm t] I wonder, though, how useful this will be if there are many different
+ 14207 [hipster@xs a] I'd propose to create a top-level Ruby module for this, so we have

'A new ruby enthousiast' => 'Question'
13986 [wbsoft@xs al] I am new to ruby, I really like the language and I want to write a program
13999 [wbsoft@xs al] Of course, I mean: Can I use an ARGF-like class to have my own multifile

Weird problem with Ruby, Shared Libraries and Apache
13987 [bryan_zarnet] I'm having a strange problem with Apache and some Ruby
+ 13992 [decoux@mo lo] Probably the apache server don't have the same environment than you and
+ 14084 [ljohnson@re ] It appears that the shared library that provides the xmlparser extension
  14108 [bryan_zarnet] Ya, I noticed last night that Apache was not picking

FTP vs Telnet Connection Times
13989 [jkaurin@ho e] I need to open both FTP and Telnet sessions into a
+ 14000 [Dave@Pr gm t] Is there a problem with reverse DNS lookups of your own address?
+ 14017 [decoux@mo lo] Probably a problem with SYS$MANAGER:SYLOGIN.COM or LOGIN.COM
  + 14122 [jkaurin@ho e] This is some (most) of the problem. SYS$MANAGER:SYLOGIN.COM and
  + 14123 [jkaurin@ho e] Trying to tackle this from a different angle using rsh,

Stripped-down Ruby?
13990 [cmessengerat] I need to embed a scripting language in an app I'm creating (a gaming app).
+ 13994 [brucedickey@] You might also consider Simkin at http://www.simkin.co.uk/.
| 13998 [cmessengerat] Yeah, I saw that during my investigations.  It looks very good.
+ 14104 [cmessengerat] Just for reference (for any Deja News hunters out there), I found pretty
  14158 [matz@ze ab t] Lua has far better embedding API, despite it has far less features
  + 14160 [SAT@MU TI EC] I would like to embedd Ruby inside of a C++ program that is multi-threaded
  | 14585 [olivier@vi e] I totally agree, Ruby just need this feature to make it the perfect
  + 14166 [cmessengerat] That would be excellent!  If I were able to choose between Ruby and Lua for

regexp problem ...
13991 [jens@ir -n t] I want to rip the percent values
13993 [decoux@mo lo] First I need to redirect stderr on stdout, i.e.
13996 [jens@ir -n t] I want to read from @io while the created thread is

Visual SlickEdit
14002 [jkaurin@ho e] I have been using Visual SlickEdit (VSE) with Ruby since I began programming in Ruby
+ 14003 [jkaurin@ho e] Forgot to add, Visual SlickEdit supports many emulation modes including
+ 14004 [jkaurin@ho e] Sorry I had these in at work but not at home. Use this section rather
+ 14005 [joe@vp p. et] Question on slickedit:  One feature of emacs that I find invaluable
+ 14007 [jkaurin@ho e] This one should be right, except Visual SlickEdit will not take $" as a
threads.html
top