74038-93484

73842-75081 subjects 74208-74900

Trying to use Net::HTTP sample program from "The Ruby Way"
74038 [aix_tech@ya ] I am trying to learn some of the functions within
74044 [aamine@lo er] What version of ruby are you using?
74089 [aix_tech@ya ] 1.7.2 under MS/Windows.
74094 [aamine@lo er] Ah, I'm sorry.  "ruby 1.8" means "devlopping branch of ruby".
+ 74097 [aix_tech@ya ] Thank you for your help. I will now download ruby 1.8.
+ 74098 [aix_tech@ya ] I upgraded to 1.8.0 and I am still getting the same
  74099 [aamine@lo er] The modification is introduced on 2003-06-06...
  74101 [dooby@d1 .k ] [snip patch]
  74107 [aix_tech@ya ] Thank you guys for your help. I added the to_ary to

WxRuby status?
74039 [ptkwt@sh ll ] Just curious: What is that status of ruby bindings for WxWindows?
74507 [rich@in oe h] Things are progressing great.  Kevin Smith has taken the development
+ 74508 [dcarrera@ma ] Cool!
| 74536 [gour@ma l. n] How would you compare it with Ruby-GNOME?
| 74538 [dcarrera@ma ] Well, I guess I'd have to wait for WxRuby to be finished before I can
| 74541 [brian@co ln ] Yes, wx provides a much greater level of platform independence.  Since it
| + 74545 [gour@ma l. n] Thank you for Your replies.
| | 74549 [rich@in oe h] We will be translating the documentation into a more Rubyesque flavor
| | 74556 [bobx@li ux a] Please do! One of the annoying things about wxPython and wxPerl is the
| + 74562 [mailinglists] It seems that people are getting too lazy. For a non trivial
|   74571 [brian@co ln ] That's okay.  Most of my GUIs are pretty trivial. ;-)  If I were
+ 74540 [brian@co ln ] Fantastic.  I'm glad to hear that things are progressing so quickly, and

anyone get ruby-fltk to work?
74040 [ptkwt@sh ll ] require 'fltk'  -or- requre 'ruby-fltk'

. rnenr
74042 [sqfxiyuiyuyu] yrtyreu56eytytytytryrtyrtyrtyytrytryrtrt

[ANN] RedCloth 0.41 -- Textile for Ruby
74043 [ruby-talk@wh] h1. RedCloth

Re: require xyz:  How to set search path?   URI-like ability?
74045 [cyclists@nc ] export RUBYLIB=/newsearchdir
74103 [cyclists@nc ] Windows has environment variables. For a single DOS session you can use
74122 [B.Candler@po] $ grep irbrc /usr/local/lib/ruby/1.6/irb/*

Ruby on MacOS X Question
74050 [jimbo@ex ap ] Sorry if this is old news or has been covered before.

Ruby on PSION EPOC
74053 [gour@ma l. n] I have found few messages about the port of Ruby to PSION EPOC 5 machines.

ruby-lang.en older than ruby-lang.ja
74059 [botp@de mo t] ruby-lang English page is too far old as compared to its Japanese
+ 74065 [matz@ru y- a] Ah, well, it's mostly due to less number of English editors.  We have
+ 74076 [ jupp@gm .d ] Saluton!

create safe-Tk interpreter (Re: embed Ruby/TK app in a web page)
74060 [nagai@ai ky ] I committed patch for tcltklib.c.
74151 [J.P.Fletcher] Will this be the version of Ruby/Tk with Ruby 1.8 ?  If so I shall need to
74165 [nagai@ai ky ] Yes. It is included Ruby1.8.0-preview3 which was released today. :-)

Re: reading text line
74068 [sdate@ev re ] f = File.open("testfile","r")
74069 [sdate@ev re ] File.open("junk.txt","r") {|f| (puts f.gets; f.gets) while !f.eof}
74073 [0bz63fz3m1qt] file = __FILE__
74075 [0bz63fz3m1qt] Even better.. you can use 'partition' instead
+ 74085 [ahoward@fs .] use %
+ 74114 [sdate@ev re ] "Simon Strandgaard" <0bz63fz3m1qt3001@sneakemail.com>
  74124 [B.Candler@po] A better, more generic solution would not use a[b] to index array elements.
  74127 [sdate@ev re ] Splendid !

[Q] How to test if a file exists?
74070 [dcarrera@ma ] I want to test for the existence of a file.  I'd expect to find a method
+ 74071 [ oct@zo .o g] FileTest.exists?( file )
+ 74072 [dcarrera@ma ] Sorry, stupid question.  It is "File.exists?".
  74074 [dave@pr gp o] Because it's mixed in from FileTest. I don't show things like 'map' for
  + 74078 [michael_s_ca] To take that to its absurd conclusion, if ri reported NO methods, the list would
  | + 74079 [dcarrera@ma ] irb could have a --verbose option to turn this behaviour on.
  | + 74106 [dave@pr gp o] ri reports the methods in a class or module, so I'm not sure I see this
  |   + 74109 [michael_s_ca] 2 suggestions (not of mine) that have come up on the list both indicate a flag
  |   + 74232 [jim@fr ez .o] If the expanded list is displayed by default or by a flag to ri
  |     + 74362 [pit@ca it in] Or even as in Java: (output for Ruby 1.8)
  |     + 74470 [androflux@so] Nice. How about a separator for every class/module? So 'ri File
  + 74084 [jweirich@on ] Eiffel has the concept of "flat" class views, where the class hierarchy

ANN -> Re: =?TIS-620?Q?=C3=D1=BA=CA=C1=D1=A4=C3=A7=D2=B9=BB=C3=D0?= =?TIS-620?Q?=A8=D3_=CB=C3=D7=CD_part_time?=
74077 [offstuff@ao ] hm,....

Re: ANN -> Re:   part time
74080 [qrczak@kn .o] It's Thai and I guess it's spam. I can see the characters in KMail (Linux)

Euruko 2003 (1st European Ruby Conference) news
74081 [batsman.geo@] 1st day over.
+ 74082 [batsman.geo@] * fill in RAA w/ metadata from freshmeat?
+ 74083 [ptkwt@sh ll ] Are any of the presentations available online? (Especially the one on
  74128 [Stephan.Kaem] There will. At least that's what the plans were. If memory serves right,

2 dimentional array in ruby - niewbie
74086 [jacekpodkans] Please help
+ 74087 [0bz63fz3m1qt] rows-first: [[0, 0, 0, 0, 0], [0, 1, 2, 3, 4], [0, 2, 4, 6, 8], [0, 3, 6, 9, 12], [0, 4, 8, 12, 16], [0, 5, 10, 15, 20], [0, 6, 12, 18, 24], [0, 7, 14, 21, 28]]
+ 74088 [gsinclair@so] There's some information here.
+ 74090 [jacekpodkans] I think I worked out how to do it, but still I don't understand why the 2
+ 74150 [bob.news@gm ] class MultTable

I worked it out
74092 [jacekpodkans] This is my way of doing it. It's different from other's suggestions, but it
74100 [dooby@d1 .k ] map (same as collect) returns an array, so you can

TkOptionMenubutton
74093 [richb@ti es ] I'm trying to use TkOptionMenubutton without much success. Anyone know how

Exasperated with ruby/tk - anybody successfully using it?
74096 [richb@ti es ] General question: Is ruby/tk still being maintained in 1.7/1.8 or is it
+ 74102 [ptkwt@sh ll ] For some very small projects , yes, I've had some success.  However, I
+ 74115 [nagai@ai ky ] 'spinbox' is the feature of Tk8.4.
| + 74116 [nagai@ai ky ] The script is written by using new notation of Ruby/Tk on Ruby1.8.x.
| + 74130 [richb@ti es ] for 2) (ArgumentError)
|   74146 [nagai@ai ky ] Sorry. It depends on the fixed bug.
+ 74117 [phlipcpp@ya ] try
+ 74132 [rz@li ux m6 ] I am using it for small things and didn?t find problems.
  74153 [J.P.Fletcher] I like the ruby-tk demos.  Is there any plan to release something
  74166 [nagai@ai ky ] Ruby/Tk on 1.8 accepts both of old and new notation.

String#decorate
74104 [martindemell] When chaining methods, it'd be neat to have something that was passed
+ 74105 [decoux@mo lo] Something like this ?
| + 74112 [martindemell] No, simply
| | 74118 [dooby@d1 .k ] Or ... yes; that's exactly what sprintf is for.
| | + 74119 [dooby@d1 .k ] Which is just about my level of numeracy.
| | + 74121 [martindemell] ...
| | + 74125 [martindemell] Or ... yes; that's exactly what sprintf is for.
| + 74525 [ser@ge ma e-] Guy, I have to ask... why does your prompt say "svg"?
|   + 74526 [decoux@mo lo] moulon% host svg
|   + 74544 [nobu.nokada@] Super Veteran Geek?
+ 74108 [0bz63fz3m1qt] I assume you want 'pp' to contain:  "(1),(2),(3)"  ?
| 74111 [martindemell] No, "[1,2,3]", defining decorate merely as
| 74113 [0bz63fz3m1qt] OK.. My assumption was wrong.. I couldn't see which kind of
| 74120 [martindemell] Doh! Of course, it's per line, not per character. Was thinking of
+ 74152 [tom.hurst@cl] s = ary.join(", ")
  + 74160 [martindemell] Just that I prefer the look of
  + 74167 [aredridel@nb] It's basically the "with(object) do ... end" pattern, isn't it?

UK job working on next-generation Eclipse
74110 [ergnosis@bt ] Apologies for posting here (again).

rubynet-announce Digest, Vol 4, Issue 2
74123 [rubynet-anno] Send rubynet-announce mailing list submissions to

REXML and double, rather than single quotes
74129 [ian@ca ib n.] I have to format output for an application that requires its XML to
74223 [ser@ge ma e-] Soon, young Jedi.  I'm adding some more configurable XML writers to
74224 [ian@ca ib n.] Yes, I know. I couldn't believe it when I finally discovered why my

Hooray!
74131 [ ted@ph .n t] Sanity rulez!  On another note, could you "reverse" the #ifdefs?  Put the

unit testing
74133 [koen.vervloe] I want to make unit tests for my Ruby code. What are the pros and cons
+ 74136 [mwilson13@co] will be included in future Ruby standard distributions. I use
+ 74171 [0bz63fz3m1qt] RubyUnit is included with Ruby-1.8.0-preview3.
  74173 [matz@ru y- a] No.  test/unit is included in 1.8.0; rubyunit is not.
  + 74176 [bob.news@gm ] "Yukihiro Matsumoto" <matz@ruby-lang.org> schrieb im Newsbeitrag
  | + 74182 [matz@ru y- a] test/unit contains rubyunit compatible layer.  So naturally, it's
  | | 74187 [0bz63fz3m1qt] if I understand you correct, that
  | | 74204 [surrender_it] forget runit if you don't have an old test suite written with it.
  | | 74245 [bob.news@gm ] Thanks to all for this clarification!
  | + 74188 [batsman.geo@] This is in Test::Unit's README
  + 74177 [0bz63fz3m1qt] hmmm..  they both seems to be in the 1.8.0-p3 tarball ?
    74178 [kentda@st d.] Look closer. At rubyunit.rb for instance.

TkOptionMenubutton
74134 [richb@ti es ] When I try the attached script, I get the following error. Using recent ruby

I NEED YOUR  HELP
74135 [lrena_kovac@] Sir,

I   NEED  YOUR  HELP
74137 [lrena_kovac@] Sir,

Range (String) Question
74138 [tran55555@ya] ...
+ 74140 [flori@ni e. ] No, I think this is a bug. I've made a patch (-> Attachement) that
+ 74142 [flori@ni e. ] Sorry. Perhaps this patch is better to guard against infinite loops

Euruko 2003 (1st European Ruby Conference) Over
74139 [batsman.geo@] 2nd day and conference over

Any ruby plug-ins for Eclipse?
74141 [aix_tech@ya ] Is there any ruby plug-ins for Eclipse (Unix and Window)?
74143 [news00000004] I have already downloaded the current version, but I did not have time
+ 74144 [djberge@qw s] RDT - Ruby Development Tool, aka rubyeclipse
| 74145 [djberge@qw s] Regards,
+ 74149 [bob.news@gm ] "Marco Lange" <news00000004@marcolange.com> schrieb im Newsbeitrag

Externsion specifications, was Re: Euruko 2003 (1st European Ruby Conference) Over
74148 [mikkelfj-ant] * formal specification of Ruby necessary?
74154 [0bz63fz3m1qt] I hope many more of the common used function will find thier way to these
93479 [rasputnik@he] Better late than never (been migrating my old mail store to IMAP, and
93484 [neoneye@ad l] I have looked at it.. the links looks much nicer now.  Good job.

rubygarden - polls,  alive ?
74155 [0bz63fz3m1qt] How about adding this poll?
74169 [chad@ch df w] True.  It would be nice to start using this to learn more about the Ruby

Marshal bug?
74156 [spam@de k. k] $ irb
74161 [dave@pr gp o] ^^  read-only file
+ 74162 [michael_s_ca] Maybe I misread, but I think he was asking why a.stat instance
| + 74164 [dave@pr gp o] Sorry - posted too soon. You're right.
| + 74175 [spam@de k. k] I have a hard time believing that you cannot dump stats for a readonly
+ 74163 [decoux@mo lo] ???

File upload and mod-ruby
74157 [ gm@na el gr] I am wondering if anyone can help me with implementing a file-upload
74158 [schlegel@cs ] This is a MIME-formatted message.  If you see this text it means that your
+ 74180 [spam@de k. k] You should consider not lowering your safe level as there could be lots
+ 74281 [ gm@na el gr] thanks for the info, i was wondering if libapreq support will be added
+ 74421 [ gm@na el gr] <html>
  74422 [decoux@mo lo] Try it with

European Ruby Conf & slides & piics will be online very soon
74159 [armin@xs .d ] I answer to the list - as several people sent me more or

Newbie dbi install problem
74168 [ddandrea@ma ] I'm just starting out, reading the pickaxe, this forum, and trying to
74201 [B.Candler@po] You need to install the ruby-mysql package, *as well as* the ruby-dbi
+ 74203 [michael_s_ca] Did you mean ruby-dbi is a wrapper around ruby-mysql here?
| 74241 [B.Candler@po] I did. Thank you :-)
+ 74252 [ddandrea@ma ] Appreciate the pointer, pretty ug primitive mistake there.
  74301 [paul@sn ke n] Hmm, that's weird.  Looks like the configuration process (which configures
  74312 [ddandrea@ma ] Thank you for the patch.  It seems to help, make now gets further but
  74334 [paul@sn ke n] Can't help you there.  I use the Ruby that comes with Mac OS X, not
  74456 [david.dandre] Indeed it is.  I installed it under the (apparently mistaken) belief

including modules => installing modules
74181 [0bz63fz3m1qt] I have some modules where I must use 'alias'
74183 [decoux@mo lo] This is just an example
74186 [0bz63fz3m1qt] Wow, this is even nicer. I wasn't aware of 'append_features'.

[bug] Array#unshift() zero arguments
74189 [0bz63fz3m1qt] irb(main):001:0> [].unshift()
+ 74190 [sroberts@un ] This results in an error in 1.6.7, too, though the message is different.
+ 74195 [nobu.nokada@] Also unshifting without arguments clobbers last element.
  75516 [0bz63fz3m1qt] I am curious, are these issues about #unshift being resolved ?
  75546 [matz@ru y- a] Fixed.
  75555 [0bz63fz3m1qt] Great... Thanks Nobu+Matz :-)

Runtime interpretation
74191 [orion2480@ho] I want to know how to interpret something from a string, so as to be used
+ 74192 [sroberts@un ] [ensemble] ~ $ ri eval
+ 74193 [batsman.geo@] You mean this?
  74194 [orion2480@ho] Thanks to the both of you.  I knew it was a simple answer.

parse.y
74196 [werkt@cs .r ] The yylex function in parse.y in some versions of the ruby source bears
74197 [matz@ru y- a] IIRC, I have never released parse.y that contains #line directive.

Parallel Assignment # a,b=c,d=1,2
74198 [tran55555@ya] ...
74199 [tran55555@ya] ...
+ 74200 [matz@ru y- a] Because yacc sucks.
| 74427 [guslist@fr e] Anything better that we could/should/will use?
| 74431 [ahoward@fs .] -a
| 74447 [matz@ru y- a] I'm investigating.  It can be reentrant, thread safe, and free (as in
| 74715 [sroberts@un ] If you are really willing to use a replacement for yacc/bison, what
+ 74217 [ jupp@gm .d ] Saluton!

Block Scope Statement in the Pickaxe
74202 [bob.news@gm ] I stumbled across this quote in chapter 15, "Ruby Tk", which confused me a
+ 74218 [kentda@st d.] Looking at the Tk source code, it appears atleast it uses a Ruby
| 74260 [kentda@st d.] Ok, the rest of my message turns out to be hogwash, since I got confused
| 74264 [bob.news@gm ] "Kent Dahl" <kentda@stud.ntnu.no> schrieb im Newsbeitrag
| 74268 [kentda@st d.] in `instance_eval': wrong argument type Proc (expected String or
| 74274 [bob.news@gm ] "Kent Dahl" <kentda@stud.ntnu.no> schrieb im Newsbeitrag
| 74306 [kentda@st d.] As I went looking into the source, I noticed that
+ 74236 [vjoel@PA H. ] I think this is just the distinction between #instance_eval and calling
  74244 [bob.news@gm ] "Joel VanderWerf" <vjoel@PATH.Berkeley.EDU> schrieb im Newsbeitrag

can't find appropriate regexp
74205 [jonnypichler] spamassassin blocked my previous post :-((((
+ 74210 [tran55555@ya] ...
+ 74211 [tran55555@ya] ...
+ 74212 [0bz63fz3m1qt] I see your previous post, me don't understand ??
| 74215 [ahoward@fs .] (?!pattern) rejects.
| 74216 [0bz63fz3m1qt] Ok.. I think I solved it.. tell me if it works ?
+ 74214 [tran55555@ya] ...
+ 74313 [wkb@ai ma l.] Patrick,

Standard type conversion mechanism
74206 [rpav@nw in .] OK, I'm posting this because a few people on #ruby-lang thought it
74242 [B.Candler@po] - to_int, to_str, to_ary are called implicitly
74293 [john.platte@] Kent Beck's book Smalltalk Best Practice Patterns covers this topic. It
74322 [rpav@nw in .] These are two exact problems this design solves.  Having a separate
74332 [Josh_Neland@] Have you run into this problem before? Maybe an example of 'conversion

ruby-dev summary 20339-20427
74207 [aamine@lo er] This is a summary of ruby-dev ML in these days.
threads.html
top