44946-45753

44739-45058 subjects 45144-46114

Character Code
44946 [grrr@wi d. e] My apologies if this is a ridiculously simple question...
+ 44948 [gotoken@no w] line[0] == ?;
| + 44949 [hal9000@hy e] Hal
| + 44961 [dossy@pa op ] ?x being a shortcut for Fixnum literal is cool, but what an
|   44982 [matz@ru y- a] Yeah, I had to leave place for code obfuscation opportunities for the
+ 44950 [transami@tr ] line[0,1]
  44962 [dossy@pa op ] Working in the other direction from everyone's suggestions, I
  + 44965 [grrr@wi d. e] This has got to be the friendliest programming newsgroup in existence.
  | 45107 [todd@du kl n] yeah...we're not jaded :)
  + 44967 [transami@tr ] Dossy, that's probably the best one --LNO, least number of objects.

Thanks.Re: Is there any English version of Ruby/tk class documentation like this ?
44953 [mxiao@ee ua ] Thanks everyone who give me the information about it.They are really

Ruby Newbie (pun not intended)
44964 [noreply@ne s] I am a newbie to the Ruby language. I saw the Pragmatic Programmer Ruby

Another bit of Ruby artwork
44968 [hal9000@hy e] See http://rubyhacker.com/rubysuper.jpg
+ 44969 [brailsmt@ya ] Apology accepted.  :)
+ 44986 [tokikenshi@a] Heh, great pic. :)

本月特惠推荐智强型主机租用,购完即止!
44974 [sanry@21 n. ] 本月特惠推荐智强型主机租用,购完即止!

GUI's and the Rouge, Part 1
44976 [transami@tr ] i just discovered Rouge. a very ambitious project to say the least.
44978 [ned@bi e- om] Can you share a link with us so we can look at it?
+ 44979 [decoux@mo lo] Guy Decoux
+ 44980 [transami@tr ] ~transami

valid hash keys
44983 [davegaramond] $ irb
+ 44984 [ned@bi e- om] * Perl will happily change numbers to strings (and back), sometimes
+ 44989 [lyle@kn lo y] As Ned Konz has already replied, you can use any object as a hash key since

GUI's and the Rouge, Part II
44985 [transami@tr ] in part one of this message i mention the problem of non-POLS and
+ 44992 [ned@bi e- om] The main problem with this is that the data shouldn't have to know
| + 44995 [transami@tr ] thanks Ned,
| + 45026 [transami@tr ] hey Ned! your concept of an intervening "object" turned out to be right
| + 45161 [patrick-may@] This ties into a discussion I was having about coding and testing html
+ 44993 [alwagner@tc ] I'm sorry, Tom, but I don't see a really new direction in your comments.  It
| 44998 [transami@tr ] quite right! it can't be. but we certainly can make the tools for its
+ 44996 [rich@in oe h] Apologize in advance...this is a LONG response...
| 44999 [transami@tr ] no no that's great!
| 45002 [rich@in oe h] as
+ 44997 [list@NO PA c] Thread.new { Gtk.main }
| 45025 [transami@tr ] and a damn good $.02 it is!
| 45077 [list@NO PA c] I see from your posts about module_eval and define_method that you've
| 45078 [transami@tr ] yes, thanks. i managed to hack it out. :-)
+ 45030 [curt@hi bs c] [snipped lots and lots of interesting stuff]

[ANN] Ruby/MaxL 1.5.0
44988 [jai89@at bi ] Ruby/MaxL is an extension that allows Ruby programs to interact with

[OT] Learning Japanese
44994 [nojgoalbyspa] Inspired to learn to read Japanese due to a lot of information on Ruby being
+ 45016 [tim@ve et .a] It doesn't gloss over the kana scripts, and discusses the grammar and
| 45028 [leon@ug s. a] On a similar note, does anyone have a reference to getting X terminals to
| + 45031 [gotoken@no w] Almost all basic tools to read/write Japanese are included in
| + 45033 [ned@bi e- om] Hmm... my machine routinely displays Japanese characters in the
| + 45048 [tim@ve et .a] [ snip ]
+ 45020 [noreply@ne s] being
+ 45029 [erik@so id o] You can learn a lot by reading existing (Ruby related) websites with pop up
| 45059 [huber@al m. ] This is _really_ cool.  I started to learn Japanese a couple years
| 45062 [erik@so id o] You're welcome, sometimes I wonder why it isn't more well known, the
+ 45032 [akimichi@mb ] I hope the following pointer will help.
+ 45037 [nojgoalbyspa] being

How to use "new" method of TkImage
45004 [mxiao@ee ua ] Anyone can tell me how to use the TkImage class method? Seems it is much
45027 [decoux@mo lo] Apparently you want a PhotoImage, try
45034 [mxiao@ee ua ] Image.new;can it create a new image?According to the Rdoc, should be
45035 [decoux@mo lo] The best is to do like ruby, i.e. to create a subclass of TkImage to
45094 [mxiao@ee ua ] Thank you very much.Now I know why I cannot find any example of how to use

ncurses and ruby
45006 [cmatheson3@h] The curses lib for ruby lacks documentation completely.  The examples
+ 45011 [charlesb@su ] I have written a a yahoo chat client that uses the curses lib.. it's not a very good example, but it may help you
+ 45022 [djkea2@mu ca] You might like to have a look at the ncurses library written by Tobias
  45167 [tpeters@un -] Thanks for pointing there ;). The only enhancement that this binding

Converting from Runit to TestUnit
45019 [zak_mail@te ] Yesterday I just convert my application to the new Test::Unit.

attr_accessor, attr_reader question
45023 [brailsmt@ya ] Is there a way that I can use attr_accessor or attr_reader so that I
45024 [nobu.nokada@] alias bit? bit

ruby-mode.el dies when breaking ternary exp.
45036 [airboss@no e] ruby-mode.el causes Emacs to consume all available CPU when using the
45039 [nobu.nokada@] Does the patch fix it?
45040 [airboss@no e] Yes, that it does. Thanks!
45041 [nobu.nokada@] Although irrelevant to it, incidentally I made another patch

module_eval: adding a method to a class with a proc
45042 [transami@tr ] i'm having a little problem that i'm not sure how to solve. i'm trying
45043 [ned@bi e- om] You've got a scoping problem, and x isn't visible inside "def ten".
45047 [nobu.nokada@] Alternative.
45065 [transami@tr ] thanks a million! that worked like a charm.

Install troubles
45044 [jfreeze@fr e] I have installed ruby on maxosx, but am having trouble with
45051 [gehlker@fa t] Jim, I don't know why Fink didn't put readline where Fink is looking for it
45052 [jfreeze@fr e] make distclean
45053 [jfreeze@fr e] Well, since that did not work, tried to install again via fink and
45055 [gehlker@fa t] Well this sucks. I was thinking that maybe it was a flat-namespace issue so
45057 [gehlker@fa t] I erased ruby from /usr/local and re-installed it with Fink. Then I tried
45060 [jfreeze@fr e] Hmm, re-installing fink seems kind of drastic. I just upgraded it yesterday
45086 [gehlker@fa t] It sure is drastic if an install takes 5 hours. Sometimes I forget that not
45089 [jfreeze@fr e] Actually I have a fast connection, tetex is just a monstor to build.
45102 [gehlker@fa t] I'm sorry you had to loose all that work.
45110 [jfreeze@fr e] Hmm, I haven't tried complete = enhance. What functionality does it provide over

instant messaging and babelfish
45045 [banspamlambb] 1) has anyone developed ruby libraries for an instant messaging client
45046 [rich@in oe h] Yes I have (a Jabber library).

RE: [ANN] amrita 0.8.1 (win32 strscan build help)
45050 [rich@in oe h] What Ruby version to you have 1.6 or 1.7?
45064 [pierre.baill] Unfortunately, I'm on 1.6.7 win32. But i'll be interested in 1.7

what version of GTK?
45054 [cmatheson3@h] I just got all the stuff from ruby-gnome.sf.net, but I'm wondering...

FXRuby-1.0.11 install make failed
45056 [jfreeze@fr e] I just installed fox-1.0.11 via ports on FreeBSD and
45070 [curt@hi bs c] The problem is in the Ruby header files. The FXRuby build instructions (I
45074 [jfreeze@fr e] Hmmm, maybe you can explain. I did not change the ruby header files
45123 [jlj@cf rc co] Good grief, I thought that this was covered in adequate detail in the build
45146 [nobu.nokada@] intern.h in recent 1.6 branch also has those prototypes.
45189 [lyle@us rs s] OK, this is good to hear. I was just considering the (released) Ruby

ruby-mode.el again; imenu this time
45061 [airboss@no e] More ruby-mode.el fun today. The following bit of code, when run
45073 [nobu.nokada@] ruby-imenu-create-index didn't work for nested classes.  I'm
45100 [airboss@no e] This is better, but still doesn't do what I expect. The code fragment
45155 [nobu.nokada@] Exactly.  ruby-move-to-block was needed to modify to skip RD
45205 [airboss@no e] Works perfectly. Many thanks for your work.
45222 [nobu.nokada@] ...
+ 45230 [airboss@no e] class Foo
+ 45247 [matz@ru y- a] Commit them, please.
  45296 [nobu.nokada@] ...
  45325 [matz@ru y- a] Hmm, then go ahead.

Test::Unit with RubyUnit compatibility layer bug?
45063 [tsondergaard] Is it well-known that Test::Unit asserts display the wrong file and linenumber if you use the RubyUnit compatibility layer? Here's how a failure looks with Andy's latest windows installer with Test::Unit 0.1.4.
45088 [tsondergaard] Here's a 3 character fix for it

adding an argument to a proc
45066 [transami@tr ] is there a way to add an argument to a proc after its creation?
45069 [kentda@st d.] Don't think so. Sounds like it would wreak a havoc of ambiguity on
+ 45071 [transami@tr ] Kent,
+ 45072 [kentda@st d.] Ops. You don't have to go nuts on the y like this. I was trying

Ruby Weekly News
45067 [Dave@Pr gm t] Ruby Weekly News: 07/22/2002

define_method with super in the proc
45068 [transami@tr ] ran into a serious problemo! i'm trying to create a subclass with
45172 [kentda@st d.] Even worse, it seems to define @y = 10 for the class object B. In fact,
45174 [decoux@mo lo] * eval.c (rb_call0): self in a block given to define_method now be
+ 45176 [transami@tr ] thank goodness. after reading kents post i was about to cry. guess its
| 45195 [g_ogata@op u] Is this feasible?
| 45197 [transami@tr ] Mr. Ogata,
| 45200 [dblack@ca dl] I'm losing sight of the goal here.  What's the advantage of this kind
| 45203 [transami@tr ] well here's my code (slight out of date now). you'll notice i have super
+ 45177 [kentda@st d.] Thank you. Since this is on the main branch, I take it the best bet
  45184 [transami@tr ] thanks kent,
  45190 [dblack@ca dl] One thing that may be involved is the fact that super is actually a

Using Ruby as a scripting engine for C programs
45079 [snegri-@-f e] I m real new to ruby and I m evaluating some language to extend a C program

SSH implementationin Ruby
45080 [Shashibhusha] Where can I get SSH implementation in Ruby ? Can anyone help on this issue
45242 [bobx@li ux a] ...
45341 [W.L.Kleb@la ] Where exactly?  (I'm a bit slow, a case insensitive search on 'ssh'
45359 [bobx@li ux a] Yikes..you are not slow...I am dumb. I was either thinking of another

ruby17 eventually puzzled with ile
45081 [fritz.heinri] I downloaded ile and tried with ruby17 fresh compiled from freebsd
45082 [nobu.nokada@] At line 92, #{ isn't closed.
45084 [bcox@vi tu l] Nice catch, Nobu! Its fixed on my dev box. Will upload to

ruby-dev summary 17696-17713
45085 [aamine@mx ed] This is a summary of ruby-dev ML in these days.

(none)
45087 [zack@so td s] matome 27u

rdtool and rdoc
45090 [Dave@Pr gm t] At this risk of sounding biased... :)
+ 45091 [decoux@mo lo] Not a good idea, for me.
| + 45095 [Dave@Pr gm t] Could you elaborate?
| | 45098 [decoux@mo lo] This is just useless and can just add confusion.
| | 45127 [jlj@cf rc co] Guy, are you against using RDoc to document the libraries and the
| | + 45128 [Dave@Pr gm t] One reason you might want to consider it is simply the ease of keeping
| | + 45159 [decoux@mo lo] Like said
| |   45162 [tsondergaard] Can I use that too?
| + 45099 [tsondergaard] Why not?
+ 45092 [pbrannan@at ] I think this is an intriguing idea.
| + 45097 [Dave@Pr gm t] True enough. There's been some talk about having a --lang switch that
| | 45104 [bcox@vi tu l] In the for what its worth department....
| | 45106 [Dave@Pr gm t] Interesting points.
| | + 45114 [bcox@vi tu l] I know... http://virtualschool.edu/ile uses RDOC
| | | 45116 [bcox@vi tu l] Sorry, broken link... this should read...
| | | 45118 [DDouthitt@cu] ...
| | | + 45119 [dossy@pa op ] No, programmers SHOULD write programs, by the very definition of the
| | | + 45120 [dblack@ca dl] RDoc is pluggable; there are different backends, and more can be
| | | + 45121 [list@NO PA c] If I remember correctly, RDoc is designed around plugins, so what
| | | + 45124 [Dave@Pr gm t] That's just the default. RDoc also generates Windows .chm files
| | | | 45129 [W.L.Kleb@la ] David, where do I find out how to do this?  I.e., is there
| | | | 45130 [dblack@ca dl] There's a README in the contrib/xslfo directory, and also there's a
| | | | 45131 [DDouthitt@cu] ...
| | | + 45169 [tom@li ux ri] RDtool doco is a pain to maintain and keep up to date, and it doesn't
| | | | 45641 [pabs@pa lo r] Agreed.
| | | | 45670 [tobiasreif@p] XSLFO *is* an output format. XSLT is the one that can be used to
| | | | 45727 [pabs@pa lo r] I'm aware of that.  What I was trying to say is that I wish the output
| | | | 45753 [Dave@Pr gm t] To do that I'd have to know all about your XML/XSLT/LaTeX (or whatever)
| | | + 45238 [charleshixsn] Frames is a bad way to go if you intend to print it, but if you intend
| | |   + 45239 [dblack@ca dl] I just want to re-emphasize that RDoc is pluggable.  Not that that
| | |   + 45243 [Dave@Pr gm t] Some things (such as comments) are on the ToDo list. Having the method
| | |     45262 [ngawor@lu en] to browse (not search) a database.
| | + 45163 [tnakajima@br] See http://kari.to/amrita/rdocs/files/docs/Tour.html
| + 45101 [aamine@mx ed] Matz is requiring standard library must contains English document,
| + 45194 [hgs@dm .a .u] I'd like to see a solution to this.  Given the collaboration between
+ 45093 [jfreeze@fr e] If it helps, I think that rdoc should be part of the standard distribution.
+ 45096 [list@NO PA c] As we say over here, `I'm falling off from clouds'.  I thought RDoc
| 45105 [ jimm@io co ] Mine, as well.
+ 45122 [transami@tr ] my votes for RDoc as well. i started by using RDTool, but was floored
| + 45125 [W.L.Kleb@la ] Try,
| + 45126 [Dave@Pr gm t] Try
+ 45142 [matz@ru y- a] While it is not clearly defined how to bundle non-interpreter tools
| 45147 [Dave@Pr gm t] Yes - I'll do it, although I have to clear a few things off my plate
+ 45170 [dsafari@pa a] While I don't comment my code too extensively, I do find RDoc is a nice
+ 45236 [charleshixsn] rdoc looks nice, and it works well for small pieces of code.  But when
  45237 [Dave@Pr gm t] If you click on the class name in the center pane you get a list of

Re: zsh [was: Install troubles]
45103 [michael_s_ca] Getting a bit OT here, but yes, zsh's programmability with respect to

piping into ruby at command line
45108 [ADATE@kc rr ] How do I make something like this work ?
+ 45109 [dossy@pa op ] $ cat >junk.txt <<EOT
| 45113 [dblack@ca dl] OK, after some mystification, I figured out what's happening.
| + 45115 [dossy@pa op ] I was smoking my cigarette before my 2:00 PM meeting.  I would
| + 45152 [ADATE@kc rr ] Thanks a lot, David ! You nailed it ...
+ 45111 [mghall@en er] cat file | ruby -n -e 'puts $_'

Q: threads and sleeping system calls
45112 [mghall@en er] I've been playing around, adding a Dir::notify method
45204 [gotoken@no w] Though I'm not sure of what you'd like to do, the following sketchs

Tcsh was:Re: Install troubles
45117 [gehlker@fa t] My favorites are that it silently fixes case errors and encourages

Time Conversion
45132 [DDouthitt@cu] ...
45133 [harryo@zi .c] Look at Time.at().  In your case, I think this should work ...
45134 [dblack@ca dl] puts Time.at(t)

TCPServer bug or and interface change ?
45135 [domingo@da -] Looking in a way to use ruby to make some servers (like
+ 45164 [nobu.nokada@] Is it late setting after TCPServer.new?
| 45323 [domingo@da -] You are right about the formal parameter, although a VALUE is equal an
| 45397 [nobu.nokada@] ...
+ 45348 [b.j.willis@s] a = [Socket::AF_INET, 80, 127,0,0,1,""].pack('snCCCCa8')

Strings and member-operators
45136 [grrr@wi d. e] I'm looking for a way to strip the quotes (and whitespace) off of a
+ 45137 [dblack@ca dl] Here are a couple of possible ways to do this (untested for speed (and
+ 45138 [hal9000@hy e] [snip - I think David addressed this?]
| 45151 [grrr@wi d. e] 'self' is exactly what I wanted, as were all (or any) of the solutions
+ 45139 [transami@tr ] class String
+ 45140 [dossy@pa op ] class StripQuotesTest < Test::Unit::TestCase
  45148 [dblack@ca dl] To atone for the fact that my earlier suggestions didn't do what the
  45173 [dossy@pa op ] Very cool.  I wonder why you had to wrap \1 in parens, though.
  45175 [dblack@ca dl] Good question.  I think it was left over from some intermediate
  45198 [g_ogata@op u] Is there an advantage to using .*? there instead of .*?  (That second '?'
  45201 [dblack@ca dl] Hmmmm...  Like the other thing Dossy pointed out (putting () around
  45206 [transami@tr ] let me get this straight? is the original question how to strip a string
  + 45207 [dossy@pa op ] It's faster using regexp.  Fewer intermediate temporary objects created.
  | 45208 [dossy@pa op ] Oh, and your code doesn't work, either.  It doesn't make all the
  | 45209 [transami@tr ] really? what did it fail on?
  | 45210 [1027874567.3] ttyl,
  | 45212 [transami@tr ] uh, not without the test suite...but i still had the old message so i
  | 45214 [dossy@pa op ] Loaded suite tc_ts_strip_quotes
  | + 45215 [transami@tr ] okay, thanks dossy. so its also suppose to strip the whitspace even when
  | + 45221 [michael_s_ca] ?  It would be a surprise to me that a method like stripQuotes would
  + 45211 [dblack@ca dl] Well, I find the regex version simpler :-)  To take care of single
    45213 [transami@tr ] (namely, it would see that
threads.html
top