80782-81204

80504-81134 subjects 80953-92543

can't use 'require' with mod_ruby?
80782 [mgarriss@ea ] raise 'postgres' unless require 'postgres'
80784 [rpav@me hl .] 1)  mod_ruby keeps the same interpreter around for each invocation;
80785 [mgarriss@ea ] YES!  I'm a bit slow sometimes, ugh, I need this kind of push every so

encapsulating instance data
80787 [quixoticsyco] Happy Holidays!
80836 [dblack@su er] Looking ahead to your code: you're not actually dealing here with

Theory of Encapsulation (was: Python vs. Ruby)
80791 [easco@ma .c ] Your original interpretation of the idea of encapsulation is one that I
80805 [sean@cS Pl o] Well, now, that's the big catch, isn't it?  =)

Re: Binding server to port < 1024
80794 [markjreed@ma] You can't.  Only root can bind to ports under 1024 on *nix.
+ 80815 [markjreed@ma] The euid is the one that matters for permission checks.  The real uid
+ 80832 [rasputin@id ] Other alternative is to go ahead and bind to a high port and then use

[ANN] Log4r 1.0.3
80798 [leon@ug s. a] Blurb
80799 [leon@ug s. a] Oops, the download info!

Email with attachments?
80801 [sdate@ev re ] I have searched RAA and ruby-talk (esp. [40428]) and I have
80812 [angus@qu va ] ^^^^^^---  should be #{@from}
80817 [sdate@ev re ] Thanks for pointing that out ... I corrected them and some more
80834 [angus@qu va ] Here is the original script, with superfluous linefeeds removed (and
80840 [sdate@ev re ] Great ! I will take your word for it ... until I figure out  how to
80846 [angus@qu va ] Just put the name of the smtp server you normally use to send mail. I guess
80929 [sdate@ev re ] welcome.
+ 80967 [robertm@sp l] gave
| 80981 [sdate@ev re ] No proxy ! But I have a router .... will that make a difference ?
+ 81066 [sdate@ev re ] I tried changing the read timeout variable @read_timeout (line 270 of
  81105 [robertm@sp l] And this is what I am still struggling with. Any ideas are highly
  81116 [sdate@ev re ] Correct ! I am not behind any proxy (this is my Home PC).

Here is your chance
80802 [ceo@ce he p.] ...

rescue AnyUndefined simply hangs
80804 [skywizard@ti] Guys, observe these:-
80807 [nobu.nokada@] Thank you for the report, fixed now.

Problem building quixml on Win32 - possible mkmf bug
80816 [djberg96@ya ] Win2k Pro
80820 [nobu.nokada@] Use --with-quixml-include=c:/expat-1.95.6/source/lib and
80823 [sean@cS Pl o] Thanks for the quick reply Nobu.  I will fold this information into the

postgreSQL array datatype and DBI
80819 [mgarriss@ea ] PostgreSQL has an Array type (other DBs probably do too but I only know

copy-on-write in Ruby
80824 [be9-ml@be .r] I've got a big object that holds references to other objects which,
+ 80826 [idan@id ns .] From your description it's not really clear what the class is doing(does it
| 80830 [gedb01@ya oo] The command pattern.  This is used by Java's Swing to
+ 80887 [austin@ha os] I realise you want to avoid deep-copying, but I don't really see a clean way
+ 80893 [djd15@po cw ] I don't know what your object looks like exactly, but you might want to

warning: toplevel constant XX referenced by YY::XX
80829 [thomass@de t] Is there a way to turn the warning in subj. into an error?
80966 [thomass@de t] I've submitted an RCR on this now.
80980 [matz@ru y- a] I want to tell you that you are not ignored.  I just don't know how to
+ 81026 [dagbrown@LA ] ruby -pedantic ?
+ 81099 [thomass@de t] Since you ask, I don't think it is intuitive that a qualified constant
  81109 [matz@ru y- a] Yes, but I think we need to wait for a while to make a transition.
  81131 [thomas@Fi st] Yes, sure.

suggestion: rb_eval_string_location
80831 [basile-news@] Dear All Ruby implementors,

Change to sprintf function
80839 [msparshatt@y] While testing the Log4r module I've discovered that the sprintf function has
+ 80844 [B.Candler@po] It was discussed on this list a few days ago. See http://ruby-talk.org/
| 80851 [msparshatt@y] Oops, I guess that I missed that discussion.
+ 80845 [decoux@mo lo] Well, it want

BUSINESS PROPOSAL
80841 [gregmakata@n] ...

HELP ME
80842 [freddyumbabe] ...

Running SpecRuby under Cygwin
80843 [ejb@th wo ld] If any of you are experimenting with SpecRuby,

Read/Writing to the same file
80847 [thomas_adam1] I've been lurking on this list for a while, and I have a basic question
80856 [msparshatt@y] I can see two problems with the program
80859 [thomas_adam1] arr = []
80867 [msparshatt@y] Actually this line isn't needed.

Simple question(s)
80849 [michael_s_ca] (I think...)
+ 80850 [thomas_adam1] list = %q(foo bar baz)
| + 80853 [fxn@ha hr f.] That surely was meant to be
| | 80855 [thomas_adam1] LOL, yes quite right -- one of my freudian slips. Sorry about that.
| + 80858 [gsinclair@so] str = "Dec 12"
| | 80868 [michael_s_ca] Ah hah, #captures was what I was searching for.  Thanks Gavin (and
| + 81073 [androflux@so] MatchData has a #captures method as of 1.8,so you could also do
|   + 81092 [thomas_adam1] That's right, Jason -- I couldn't for the life of me remember what it was
|   + 81093 [thomas_adam1] That's right, Jason -- I couldn't for the life of me remember what it was
|   + 81102 [gsinclair@so] Good point.  I'd probably use exception handling.
|     81114 [thomas_adam1] Presumably, one can also use a "try..catch" scenario here too?
|     81120 [gsinclair@so] "try" and "catch" mean nothing in Ruby.
+ 80852 [joey@jo yg b] list = %W{foo bar baz}
+ 80854 [dblack@su er] %w{one two three}   # => ["one","two","three"]
| 80869 [michael_s_ca] 220, 221, whatever it takes.  =)
+ 80906 [surrender_it] this?

LOTTERY WINNING NOTIFICATION
80857 [universallot] ...

good day
80860 [luckman3030@] ...

Re: Problem building quixml on Win32
80862 [djberge@qw s] checking for expat.h... yes

ANN: Guis-1.3 a GTK2 widget server (scriptable in Python & Ruby)
80865 [basile-news@] Dear All,

Re: Are perl-style global variables thread-safe?
80866 [denshimeiru-] They look thread-safe

show me the ruby way
80870 [nordehacedod] This works, but there must be a more natural way to do
+ 80871 [decoux@mo lo] try this (only with ruby-1.8)
| 80916 [aero6dof@ya ] On a related note, with ruby 1.8.0 (2003-08-04) [i386-mswin32],
| + 80918 [wkb@ai ma l.] alan,
| | 80933 [aero6dof@ya ] Hmm, I meant h[k] not h[h] as I originally posted below...
| | + 80934 [nordehacedod] Thanks everyone.
| | | 80969 [decoux@mo lo] You can also write
| | + 80958 [code@jo ch n] Eek.  Consider that in the common case, where the undefined key is being set
| | + 80991 [B.Candler@po] Doesn't really seem to be that useful a test to me. If you want to write
| |   80999 [markjreed@ma] It's not a bug.  The block you pass to Hash.new is not expected to
| |   81036 [aero6dof@ya ] md = Hash.new { |h,k| h[k] = 0; 3 }
| |   81037 [markjreed@ma] No.  The block is ony used for return values WHEN THE KEY DOESN'T
| |   81086 [aero6dof@ya ] .... hash logic snipped
| |   + 81098 [dblack@su er] I think we all constantly depend on the fact that the return value of
| |   + 81126 [markjreed@ma] It already behaves perfectly consistently.  The return value of the
| |   + 81135 [aredridel@nb] hb3 = Hash.new { |h,k|
| |     + 81165 [aero6dof@ya ] Since it's clear that I'm out of sync with everybody else on this
| |     + 81175 [hal9000@hy e] I find this to be very clever. I'd want it to be
| + 81072 [androflux@so] ~$ ri Hash.new
+ 80872 [B.Candler@po] h = Hash.new { |me,k| me[k]={} }
  80908 [nordehacedod] Perfect.
  80914 [markjreed@ma] def new

RDoc: how to turn off automatic linking for a word?
80873 [leikind@mo a] How do I turn off creating a link out of a word that looks like
80962 [wew@wi li mw] Unfortunately, there's no way to do this that I am aware of,
80985 [Dave@Pr gP o] Is the problem here that you want to mention the name of a class but
81022 [hgs@dm .a .u] #--rdoc-no-link: this that the_other
81040 [Dave@Pr gP o] # Class CGI handles requests in a CGI context.
+ 81046 [austin@ha os] # Class CGI handles requests in a CGI<Common Gateway Interface> context.
| + 81056 [Dave@Pr gP o] That might work. Before I get too deep in to this, though, could
| | 81070 [austin@ha os] Note that this doesn't solve every case. On the main page for that one, I
| | 81111 [Dave@Pr gP o] Except it _would_ make sense to link to yourself if it's a ways down
| + 81177 [william@wi l] I vote for this.  However, it does mean that in the situation of a class
|   81204 [Dave@Pr gP o] It's on the list of things to do.
+ 81048 [hgs@dm .a .u] Oh, yes, caffeine underflow error.  What about

what's wrong with REBOL?
80874 [mnhenley@ms ] I first came across rebol a while ago; it seemed interesting but then
+ 80876 [hal9000@hy e] [snippage]
+ 80878 [B.Candler@po] You're not selling it very well :-)
+ 80879 [newsgroups@j] I don't know that there's anything "wrong" with it, other than
+ 80880 [peter@se an ] It has exactly the same faults as php, perl, python, java, ruby or any other
+ 80881 [ben@th ng ag] comp.lang.php,comp.lang.perl,comp.lang.python,comp.lang.java,comp.lang.ruby
| 80885 [hal9000@hy e] Right. I failed to notice it was crossposted.
+ 80882 [feldt@ce ch ] I'm not sure anything is wrong with it. In fact there
+ 80883 [matz@ru y- a] Short answer: nothing.
+ 80886 [tjreedy@ud l] where
+ 80895 [rodrigo.berm] Very Intelligent SPAM ! (at least better than the nigerians =)
+ 80913 [cbbrowne@ac ] ... much omitted ...

Summary: callbacks (called in C embedding or extending Ruby)
80875 [basile-news@] A summary for people embedding Ruby

Dear  Friend
80877 [gabrielgazi2] ...

YAML / Exerb problem
80888 [Meinrad.Rech] ...
80925 [tksano@m3 kc] I'm not sure about this, but isn't it because your script is created

CAN YOU HELP?
80891 [seungchang2@] MR. SEUNG CHANG

ANN: Phoenix eXtreme Programming User Group Meeting - September 8th
80892 [jay.turpin@i] ...
80901 [james_b@ne r] Gee, I hope the meeting runs late ...

AW: EXErb
80894 [Meinrad.Rech] check out exerb from cvs, install, and compile. there are vc-project files.
80923 [tksano@m3 kc] You can get precompiled ruby core files by downloading exerb-cc

DVD  120 ?!!!.......rRztiCJTcr......
80897 [jcode5@in er] ...

Chinese Website Translation Service
80898 [info_s@ch ne] Are you interested at the big Chinese market?

BigDecimal Bugs
80899 [unet@re x. o] I can't get BigDecimal to generate a -Infinity,
+ 80912 [unet@re x. o] Sorry to follow up to myself, but...
+ 80919 [unet@re x. o] Even after correcting bigdecimal.h so that

AW: YAML / Exerb problem
80900 [Meinrad.Rech] ...

OOP flavors - was Re: Python vs. Ruby
80903 [hal9000@hy e] I'm sometimes interested in "varying flavors" of OOP. The one
+ 80907 [sean@cS Pl o] The Image object manages the image buffer.  It should control what goes
| + 80911 [feldt@ce ch ] Sean O'Dell <sean@cSePlsoAfMt.com[REMOVE_THE_SPAM]> skrev den Wed, 3 Sep
| | 80917 [sean@cS Pl o] Object and method delineage will never be clear-cut, especially since
| + 80915 [ben@th ng ag] If you step back and try to think about these things in the real,
|   + 80920 [sean@cS Pl o] I don't think atomic physics is a good paradigm for programming, it's
|   | 80957 [martindemell] money = ATM.get_money(customer.atm_validation)
|   + 80938 [dagbrown@LA ] Yeah, BUT, what the heck is the pen drawing?
|     + 80941 [rpav@me hl .] The fact all of these "feel weird" is a good indication that you're
|     + 80942 [dossy@pa op ] Verb subject object.
|     + 80956 [martindemell] Shorthand for
+ 80935 [james_b@ne r] Note, though, that none of these cases require the receiver to know
+ 80990 [B.Candler@po] But perhaps more importantly: we expect the receiver of a message to modify
  + 81004 [hal9000@hy e] Thank you, that is perceptive.
  | 81016 [gedb01@ya oo] I think you have to recognise that there are different
  | 81038 [sean@cS Pl o] [...snip...]
  + 81027 [sean@cS Pl o] The principle of encapsulation is that only the receiver can actually
  + 81031 [rpav@me hl .] Careful.  This is no more procedural than "stack.push(item)".  Consider

[ANN] ncurses-ruby-0.8
80910 [tpeters@in a] ncurses-ruby makes most ncurses functions accessible from ruby. It can

[PATCH] RE: BigDecimal Bugs
80921 [wkb@ai ma l.] Bret,
+ 80976 [shigeo@ti yf] Yes, these bugs have been fixed in the most recent CVS version.
+ 81029 [unet@re x. o] [bigdecimal patch]

PRIVATE!!!!!
80926 [ekiomor670@h] MRS. EKI OMORODION

Class libpcap
80927 [hackerotaku@] Greetings to All,
+ 80930 [hackerotaku@] disregard
+ 81091 [maillist@be ] found a much better one on raa. Goto raa (raa.ruby-lang.org) and search

Re: OOP flavours - was Python vs. Ruby
80928 [david.naseby] I like this style too, and Ruby allows one to do it well via Mixin Oriented
80931 [rpav@me hl .] Actually this isn't a very good example.  This whole argument about
80932 [gsinclair@so] I'm surprised nobody has mentioned the built-in method Object#display.  It
80936 [rpav@me hl .] In fact, while I usually define #inspect or #to_s for simple debugging,

Segmentation fault when using FXRuby on 1.8.0
80939 [ruby4lover@y] I am trying to run a simple FXRuby sample program from
+ 80950 [sdmitry@lr .] 8-<
| 81032 [ruby4lover@y] Dmitry,
+ 81011 [lyle@us rs s] This looks fine to me. Which version of FXRuby are you using? Do the
  + 81034 [ruby4lover@y] I am using version 1.8.0 built 2003-08-12.
  | 81050 [lyle@us rs s] 1. Which version of FXRuby are you using?
  + 81035 [ruby4lover@y] Sorry, I forgot to tell you that the image appears to
    81047 [lyle@us rs s] Hmmm. If possible, please e-mail me a copy of the image.

How to bail from an iteration but not the program?...
80943 [keuler@po ta] All-
+ 80944 [dcarrera@ma ] dcarrera ~ $ cat control.txt
+ 80946 [anita@ev re ] not leave the program?
  80947 [keuler@po ta] Thanks Daniel, Anita!

Possible to make compound if statements...
80945 [keuler@po ta] All-
+ 80948 [hal9000@hy e] Don't repeat the if. It's like most languages.
| 80949 [keuler@po ta] Thanks Hal. Question: What do you mean by use ||? Could you give an example? (I'm new to Ruby and programming.)
| 80952 [hal9000@hy e] && is essentially the same as and
| + 80955 [keuler@po ta] Say, do you think you'll be updating Ruby Way with info on the later version?!
| | 80992 [hal9000@hy e] I'd like to think so, but the first edition has to sell
| | 80995 [andre@di ir ] Amazon.com says there are only 5 left in stock. Is that a good thing?
| | 81005 [hal9000@hy e] Hmm, I'm not sure what Amazon means by "in stock" -- I
| | 81008 [andre@di ir ] Yes. The only store that has the book on their catalog says it can take
| | 81009 [hal9000@hy e] I think it is available electronically from safari.net
| | + 81010 [robertm@sp l] You can get it off safari.oreilly.com or safari.informit.com, bascailly
| | | 81017 [andre@di ir ] I'll search a bit more, and go for it if i don't find anything.
| | | 81020 [hal9000@hy e] I have heard an unconfirmed rumor that they do.
| | + 81089 [fredde@po ox] It's safari.oreilly.com.
| + 80978 [joey@jo yg b] Also 'and' and 'or' have "extremely low precedence" (according to Ruby in a
|   80982 [nobu.nokada@] foo = false || bar = true	# foo = true, bar = true
|   81001 [hal9000@hy e] In case a newbie gets confused: He does mean = here, not ==.
|   81006 [nobu.nokada@] Maybe.
|   81007 [markjreed@ma] Well, && and || are traceable back to C, no matter what route they took to
|   81052 [batsman.geo@] I don't know if it is this way in Perl too, but I believe matz said once
+ 80951 [austin@ha os] if field[0] == "AIX" or field[2] =~ /ldap/
+ 81071 [androflux@so] Wrong syntax, use 'or'
threads.html
top