75967-78143

75670-76405 subjects 76148-76624

^ help - calling methods in a hash with parameters
75967 [tuanbui cray] If I want to create a hash table with the values containing methods to
+ 75969 [john.platte ] eval myhash["bar"] + '("Thing to say")'
| 75970 [B.Candler po] No, don't do that! Calling the compiler should be a last resort.
+ 75971 [lyle users.s] myhash = { 'foo' => method('methodone'),
+ 75974 [tuanbui cray] In case anyone wants to know of a solution, Lyle was kind enough to
+ 76024 [flori nixe.p] An alternative to the possibilities already mentioned would be to just

^ Booleans
75975 [markjreed ma] Okay, as a convert from Perl to Ruby, I have to say that I love
+ 75976 [kgergely mla] What about not automagically converting everything to boolean?
| 75978 [gfb tonesoft] constantly
+ 75980 [austin halos] If you *know* that you will be getting a Fixnum in response, you can use Fixnum#nonzero? and Fixnum#zero? to get the tests that you're after.
  + 75983 [markjreed ma] Sure.  Or just plain old != 0.  But I always forget that I need to do
  | + 76006 [djberg96 hot] That was part of the reason I submitted RCR #143 (on RubyGarden)
  | + 76008 [rehteshamzad] How about this :  all non-nil objects are true, with the exception of
  |   76037 [markjreed ma] Ok, see, I have absolutely no problem understanding the concept.
  |   + 76039 [decoux moulo] pigeon% perldoc perlfunc
  |   | 76042 [B.Candler po] Good point. Certain perl functions return "0E" when they mean "0", so that
  |   + 76049 [hal9000 hype] Don't forget to wash your hands... ;)
  + 75988 [ben thingmag] I don't think the issue is that it is difficult to come up with a test to
    76032 [george.marro] You can already override parts of Ruby to cause plenty of odd
    76036 [bob.news gmx] "George Marrows" <george.marrows@ps.ge.com> schrieb im Newsbeitrag

^ Re: multi-platform, and on Win no configure
75977 [ruby-talk wh] I believe you'll need to use YAML.rb 0.49.2, which is the last version which

^ Ruby CGI questions
75979 [kdresner cs.] I'm trying to make a game (or at least something, so I can learn) with
+ 75982 [B.Candler po] I haven't used the CGI::Session module, but you may or may not be aware of
+ 75984 [markjreed ma] they get stored is in browser cookies.  So if you need to save and
+ 75990 [rasputin ido] Try cgi-session-PStore in RAA. Found it this afternoon..

^ CGI and checkboxes
75985 [kdresner cs.] How do I get the value from a checkbox made with cgi.checkbox ?
+ 75986 [kdresner cs.] Okay, nevermind - I figured it out, I think.
+ 75987 [rpav nwlink.] Checkboxes suck.  You'll get the parameter if it was checked; otherwise
+ 75989 [markjreed ma] You might want to invest in an introductory book on CGI programming.

^ ruby-specific CGI question (I think)
75991 [kdresner cs.] I'm using sessions and forms in my cgi script.
75994 [tim vegeta.a] Session management.  Session information has to be passed somehow
+ 75995 [kdresner cs.] The problem is not that it is using session management.  The problem is
| 75996 [hal9000 hype] Well... doesn't fieldset draw a box?? I've never
| 75998 [markjreed ma] Yes, the fieldset is the problem, but I get the impression that Kurt
| + 75999 [hal9000 hype] is
| | 76001 [rasputin ido] formString =   cgi.form(method="get") {
| | 76002 [hal9000 hype] Oh, certainly. I'd have seen that if I had
| | 76031 [rasputin ido] I'd never have seen it in a million years if cgi/session.rb didn't
| + 76000 [kdresner cs.] Here's my code folks.  Again, I don't profess to have anything that is
|   76003 [markjreed ma] Okay, here's what's going on.   When you create a CGI::Session,
|   + 76004 [markjreed ma] Note, however, that this will remove *all* <fieldset> tags in the
|   | 76005 [markjreed ma] Left off the final >, which is no good. :)
|   + 76013 [kdresner cs.] So now the question is, "How do we get this fixed in the real thing?"
+ 75997 [rasputin ido] Bless you, you have saved my sanity. I *knew* it had to be sending it

^ ncurses
75993 [maillist bes] Were can I find the ruby ncurses documentation.
76009 [maillist bes] Found it, the site was down last night.

^ Issues in pluggable user interfaces
76007 [hal9000 hype] I've been toying with this idea, and I'm
76040 [slewis parad] (advance warning, I ramble on at great length - sorry :)
76060 [hal9000 hype] Stephen...
76100 [slewis parad] Hmm, this is a very good point.  Yes, at this stage everything that you

^ General Delimited String Syntax Question
76010 [mailinglists] The "Programming Ruby" books says in the section "General Delimited
76011 [dave pragpro] It changed... %-style literals no longer allow alphanumerics or
76045 [michael_s_ca] Why?  That seemed useful (though to be fair, I have never needed it; the

^ Seattle.rbbq 2003-07-26!!
76015 [ryand-ruby z] Announcing the Second Seattle.rbbq!

^ Ruby Character Encoding
76016 [mwilson13 co] I'm interested in any (i.e., arbitrary) extensions of Ruby's character
76021 [matz ruby-la] You need to wait for 1.9, it's in ToDo, among others, such as
76038 [markjreed ma] Meanwhile, there are modules in RAA to handle processing of Unicode,

^ how to insert a carriage return in a string
76017 [emmanuel.tou] definitely a very newbie question... i have strings, possibly with
+ 76020 [edwin poskan] myString.gsub(/\\n/, "\n")
+ 76098 [rodrigo.berm] You should use  doublequotes to build  your strings

^ Ruby9i documentation and SourceForge project site now available
76018 [list jimcain] All,

^ "Powered by Ruby" website
76019 [sdate everes] Rubyzens,
76050 [flifson cs.u] The most obvbious choices for me would be the mod_ruby plugin for Apache
76107 [sdate everes] I will get mod_ruby plugin for Apache as well as eRuby installed.

^ Seattle.rbbq 2003-07-26!! (corrected)
76026 [ryand-ruby z] [got the date below wrong--copy&paste bug]

^ problem with wwwd
76027 [edwin poskan] Is there somebody here with expericence using Kengo Nakajima's wwwd?

^ system, `` or exec on Windows?
76028 [  rhp dse.nl] What is the easiest (or any) way to do the following with Ruby on
+ 76043 [chrismo clab] Can't answer all your questions, but I'll share what I got.
+ 76086 [nobu.nokada ] If you run on NT,
  76222 [  rhp dse.nl] Thanks! This was just what I was looking for. I wonder why I missed

^ file locking
76030 [bsanyi sunse] flock
+ 76073 [ jupp gmx.de] Saluton!
+ 76080 [rodrigo.berm] have you checked it  'http://raa.ruby-lang.org/list.rhtml?name=filelock'

^ Adding Information to Exceptions
76044 [cyclists nc.] What am I doing wrong here? This little test program is based on the
+ 76046 [decoux moulo] Well, for 1.6.8 see [ruby_talk:36408]
+ 76048 [dave pragpro] Interestingly, this works on 1.8, but not on 1.6.8. An approach that
+ 76089 [nobu.nokada ] Kernel#raise calls #exception method of the first argument with

^ install.rb and --prefix
76053 [fugalh falco] File.open("$prefix/share/alamo.jpg", "rb") do |f|

^ Determining if a String is marshalled
76055 [djberge qwes] I was just wondering if there's a way to determine if a string has been
+ 76056 [matz ruby-la] Marshal string have its format version embedded at the top 2 bytes (no
+ 76057 [B.Candler po] Check for the first two bytes, which are the major/minor version number.
  76061 [djberge qwes] Thanks Brian and Matz for the info.  My only concern might be that a
  76070 [hal9000 hype] are

^ How to reduce Ruby runtime error?
76058 [xrfang hotma] I am thinking of how can I reduce Ruby runtime error. Not like
+ 76059 [hal9000 hype] You can always check types explicitly if you
| + 76062 [ng johnwlong] Actually I consider it better not to check the type. You should get used to
| | 76066 [xrfang hotma] My last post seems not appear yet -- usually it appears very fast. So I
| | + 76069 [fxn hashref.] This happens in Java as well. Let me use its jargon.
| | + 76075 [james_b neur] As has been mentioned before, unit testing is highly reccomended.
| | + 76097 [tcfelker mtc] class Object
| + 76063 [xrfang hotma] Thank you for the suggestions. The last thing I want to do is to raise
| | + 76067 [ben thingmag] Then maybe you should say "if a[1].kind_of?(String) and "GOOD" == a[1].upcase"
| | | 76072 [xrfang hotma] I already realized that I am suiciding, that's why I asked you people
| | | + 76078 [james_b neur] Ruby is not typeless.  It is dynamically typed.  Big difference.
| | | + 76079 [hal9000 hype] Well, remember that if an invalid value is being
| | | + 76193 [wsdng online] You won't lose your productivity.
| | + 76071 [B.Candler po] If you know in advance that a[1] might not exist, then you can write your
| | + 76110 [dooby d10.ka] I'd use
| + 76064 [0bz63fz3m1qt] Unittesting can help you early-catching such situations.
+ 76095 [surrender_it] lots of people already gave you thery ideas, I'll add my 2c even if

^ += vs << when appending arrays to an array
76074 [doug beaver.] i'm looking for a nice idiomatic way to append to an array.  i'm porting
+ 76081 [djberge qwes] First, use unpack().  It's faster.
| 76090 [aredridel nb] I was just thinking that that was a smart way to do it... I'd expect it
+ 76122 [bob.news gmx] "Doug Beaver" <doug@beaver.net> schrieb im Newsbeitrag

^ Cross-compiling ruby
76082 [ben thingmag] Hey all,
+ 76084 [rpav nwlink.] I tried cross-compiling it for the Zaurus... there are issues.
+ 76085 [pierre_b epi] =09
+ 76102 [eban os.rim.] ac_cv_func_getpgrp_void=yes
  76103 [nobu.nokada ] What about to collect these settings anywhere?

^ Using threads to obtain a value
76083 [kapheine hyp] I have a few classes that all try to obtain the same data as each
76123 [bob.news gmx] My first approach would be this:  Create a condition variable and a mutex,
76173 [kdresner cs.] If the computation is just raw computation, I don't think you're going
76208 [kapheine hyp] Yeah, it is fetching the information from webpages. Most of the code

^ FAQ for comp.lang.ruby
76087 [hal9000 merc] RUBY NEWSGROUP FAQ -- Welcome to comp.lang.ruby!  (Revised 2003-1-7)

^ how to temporaly change enviroment variable
76088 [roman_dolgov] Is there any way to change enviroment variable during
+ 76091 [michael_s_ca] ENV['PATH'] = "<new path>"   #?
| 76092 [roman_dolgov] thanks Michael.
| 76093 [michael_s_ca] I use the following quite a lot
+ 76108 [androflux so] ENV["PATH"] = "/new/path"
| 76111 [rehteshamzad] When you run a ruby script, ruby is a child process of your shell.
+ 76114 [mwilson13 co] I recommend that you take a look at 'shell.rb', which is part of the

^ Ruby developers
76104 [maillist bes] Does ruby have active developers or does matz do basically everything? I

^ ldap with ruby confusion
76109 [cere u.washi] I have this piece of code that I modified based on search.rb in the ldap
+ 76118 [B.Candler po] Yes, but what server are you sending that query to? (It will be whatever is
+ 76119 [ian caliban.] #!/usr/bin/ruby -w

^ DDD (Data Display Debugger) with Ruby
76112 [rehteshamzad] has anyone been able to use this with the Ruby debugger?

^ Matt told me about this last weeked nzvdgaraoswwwvd
76113 [ntqeljp xmsg] <html>

^ soap4r 1.4.8.1 with REXML 2.7.1 - no REXML::VERSION_MAJOR
76117 [damphyr free] I grabbed the latest soap4r and had a go with the wsdl driver, only to
76120 [ian caliban.] I had similar problems.

^ Keyword "with"
76121 [bob.news gmx] did anybody think of this?
+ 76124 [B.Candler po] Yes :-) Unfortunately ruby-talk.org is down at the moment, but I've seen
+ 76127 [batsman.geo ] Me too :-)
  + 76132 [markjreed ma] This has apparently been proposed before.  The resistance to
  | 76136 [B.Candler po] Possibly. Also, doing
  | 76140 [hal9000 hype] As regards the encapsulation issue -- it depends on
  | + 76141 [decoux moulo] Euh, what version of ruby are you using ?
  | | 76150 [hal9000 hype] No version from this universe.
  | + 76171 [john.platte ] File.read {
  | + 76241 [bob.news gmx] "Hal E. Fulton" <hal9000@hypermetrics.com> schrieb im Newsbeitrag
  |   76266 [hal9000 hype] when I learned it after coming from BASIC and FORTRAN.
  + 76134 [bob.news gmx] "Mauricio FernŠŌdez" <batsman.geo@yahoo.com> schrieb im Newsbeitrag
    76143 [peter semant] Not really, when someone new comes to ruby they always ask for features
    + 76149 [markjreed ma] Given that one of Ruby's main inspirations is Perl (another
    | + 76151 [peter semant] This I understand, but I like Ruby, it is very good. However I dislike
    | | + 76155 [hal9000 hype] Now there's a quotable quote!
    | | | + 76162 [peter semant] At least this time my name is on it!
    | | | + 76190 [tim vegeta.a] Agreed and agreed.  I just think it might be worth noting that
    | | + 76157 [jj5412 earth] A little sugar isn't so bad, after all, this isn't RubyAtkins :-)
    | | | 76158 [hal9000 hype] Hmm, is that sugar? I thought it was because the
    | | | 76161 [jj5412 earth] Yes, you covered the /how/, and the /why/ would seem to be
    | | + 76159 [markjreed ma] Well, then you should *like* Common Lisp and Ada.  They have lots of
    | + 76153 [martindemell] Actually, VB complements the 'with' block with a unary . operator, which
    | | 76156 [hal9000 hype] Now there's a thought. The unary . is not so
    | | 76176 [batsman.geo ] both 'with' and the unary '.' imply the existence of a default variable.
    | + 76181 [mwilson13 co] The x++ operator has been discussed extensively on this list on a
    |   76184 [michael_s_ca] Yes.
    |   76232 [spam deck.dk] I couldn't help myself any longer, I *had* to implement the ++ operator
    |   76233 [B.Candler po] It might be better to replace foo++ with (foo=foo.succ) because it will work
    |   76234 [spam deck.dk] true... I wouldn't be able to implement that in as few lines, since
    |   76235 [spam deck.dk] actually I was wrong... gsub solves this quite nicely...
    |   + 76243 [bob.news gmx] "Anders Borch" <spam@deck.dk> schrieb im Newsbeitrag
    |   + 76267 [hal9000 hype] I haven't played with this at all... but let me
    |     76284 [spam deck.dk] I was merely showing a proof of concept (implementing pre-increment
    |     + 76292 [batsman.geo ] Is there any better way than
    |     | 76391 [chris m-audi] x++ = i[x];
    |     + 76293 [hal9000 hype] Don't consider it a challenge. I'm sure it's doable.
    |       76403 [gsinclair so] It won't help readability, as the construct x+=1 is rarely, if ever,
    |       76547 [michael_s_ca] Out of curiosity, do you have any numbers to back this up?  Or is your
    |       76675 [gsinclair so] Neither, and certainly not the latter.  It's just that I rarely see
    + 76304 [rz linux-m68] this would be also good for another reason, people will no
      76340 [bob.news gmx] "Richard Zidlicky" <rz@linux-m68k.org> schrieb im Newsbeitrag
      76684 [pbrannan atd] class Object

^ Passing ruby objects to other applications
76126 [ekarttun cs.] I am wondering what is the most elegant way of passing ruby objects to a

^ Re: soap4r 1.4.8.1 unknown attribute
76129 [damphyr free] This is a multi-part message in MIME format.
76189 [ian caliban.] Yes, you'll need SOAP4R from CVS. That's the only way I could get it to

^ basic doubts on "\n"
76130 [fxn hashref.] I am trying to get the picture about how "\n" works in Ruby.
76133 [bob.news gmx] "Xavier Noria" <fxn@hashref.com> schrieb im Newsbeitrag
76146 [markjreed ma] XN = "Xavier Noria" <fxn@hashref.com>

^ Passing arguments to 'env ruby' on OS X
76135 [jim freeze.o] When using env on the shebang line,
+ 76137 [hramrach_l c] You probably don't
+ 76138 [nobu.nokada ] #! /usr/bin/env ruby
  + 76139 [nobu.nokada ] #!/usr/bin/ruby
  + 76144 [pbrannan atd] Will this work if I run "ruby myscript.rb" on a Windows box?
    76169 [nobu.nokada ] Do you mean whether it works as a script directly?

^ Advocacy: Ruby on/with .net
76145 [thomass delt] I'd like a minute or two of your time as I try to sell you the idea of ruby
+ 76152 [lyle users.s] I know jack about .NET, but for what it's worth you might want to see
| 76166 [0bz63fz3m1qt] The modification-date for netruby seems to be more than a year old ?
+ 76209 [maillist bes] Thomas, are you actually going to be programming this project?
| 76239 [thomass delt] Yes, that is my intention. I'm currently probing the community to see
| 76246 [matz ruby-la] Rich Kilmer (the FreeRide guy) told me at the OSCON, that he was going
+ 76384 [matt diephou] You may be better off contributing to the parrot project
| 76420 [mailinglists] Maybe i'm completely uninformed but what is the real benefit of .NET.
| 76541 [bjsp123 imap] No, it supports real threads.
| + 76542 [batsman.geo ] How do you mix the lack of thread safety of Ruby's interpreter with .NET
| | + 76553 [xlucid users] Given that over 90% of the installed desktop base uses Windows, and
| | | 76604 [ jupp gmx.de] Saluton!
| | | + 76608 [matz ruby-la] I think some still use Ruby, as some of us still code COBOL or FORTRAN
| | | | + 76628 [aredridel nb] Matz, you make me laugh in the best ways.
| | | | + 76720 [ jupp gmx.de] Saluton!
| | | |   + 76729 [batsman.geo ] matz is in a somewhat unique position to foresee whether Ruby will
| | | |   + 76931 [scherzkeks16] There was an anecdote when FORTRAN 90 was being developped. An insider
| | | |     76976 [ jupp gmx.de] Saluton!
| | | + 76692 [xlucid users] Hmmm.  For a 30 year timespan, perhaps.
| | + 76581 [ jupp gmx.de] Saluton!
| | + 76690 [bjsp123 imap] It is just barely possible (but very unusual and perverse) to use
| |   77200 [rodrigob int] I'd definitely join such an effort!
| |   77353 [thomass delt] concerning the effort to make an interop solution using the existing
| + 76558 [patrick.benn] The other advantage is that a native CLR implementation of Ruby would
| | 76561 [rich infoeth] You should be able to bridge .NET and Ruby in such a way that Ruby can
| + 76637 [dooby d10.ka] That's your choice.
+ 77198 [rodrigob int] I feel exactly the same way. When do we start coding? :-)
  77347 [timsuth ihug] There is a mailing list
  77436 [batsman.geo ] This is *very* similar in spirit to what I'm doing w/ Java (through
  77540 [timsuth ihug] Yes, that is how I am doing it. NB: I'm planning to make the first
  + 77545 [batsman.geo ] Yes, there's no easy way to work around the latter until we get Rite.
  + 78042 [timsuth ihug] Monday has passed and I haven't released...I've been battling one bug
    78059 [mascarenhas ] Check calling conventions. Windows .NET uses STDCALL while the default for
    78143 [timsuth ihug] Wow! Thank you thank you thank you! That was the problem. I haven't done
threads.html
top