141824-144425

141616-142669 subjects 142037-143600

Regexp question
141824 [lyndon.samso] I have a HTML document containing many table cells of which I wish to
+ 141825 [demerzel@gm ] ...
+ 141827 [bob.news@gm ] Use String#scan.
+ 141828 [mailing-list] Using String#scan, as previously suggested, is the easiest method.

Re: - Sterile Classes / Sterile Meta Classes
141826 [george.marro] word
+ 141829 [matt.mower@g] This, in itself, might be no bad thing if it motivated you to discover more!
+ 141832 [hal9000@hy e] Truthfully, I'm a fan of it, too, from my physics background rather
+ 141835 [steven.jenki] French people. I mean, they think well don't they? I mean, be fair - Pascal.
  141878 [dblack@wo bl] Actually the singleton class embodies more the non-inherent -- i.e.,
  141886 [steven.jenki] Well, sure, but no word means precisely that. As in all jargon, we need
  141898 [karlin.fox@g] I think 'idioclass' is the best suggestion so far.  'eigenclass' is too
  + 141924 [chr_mail@gm ] Whats wrong with formal sounding names? - besides, idioclass
  + 141933 [rhkramer@gm ] I don't really know what I'm talking about (I'm a newbie) but why not call it

An idiom I like... modifiable defaults
141843 [hal9000@hy e] Just thought I'd share a little concept that I find
+ 141851 [bob.news@gm ] def hash_replace(hash, replacement)
+ 141854 [kig@mi fi in] I quite like this, but wonder if it works with inheritance?
| 141948 [martindemell] This is actually my primary use case for class variables (@@var) -
| 141951 [kig@mi fi in] The problem with class vars is that changing them in the subclass
| 141953 [martindemell] Yes, but you're the programmer - simply don't change them in the
+ 141868 [Ara.T.Howard] i do this so much i built it in to my new traits lib (currently being
| 141870 [Daniel.Berge] I smell an "Advanced Ruby Programming" book in the works. ;)
| 141880 [briankbuckle] ...
+ 141873 [glenn.parker] Not very thread-safe, at least not in your example's implementation.
  + 141889 [Ara.T.Howard] class C
  | 141895 [glenn.parker] Yes, if instances of class C are to be accessed from multiple threads,
  + 141911 [hal9000@hy e] No. I suppose if I were using this with threads I would

RCR 304: reference/pointer concept
141844 [eric_mahurin] I just submitted RCR 304 with the rubyforge 'reference'
141845 [batkins57@gm] What would this accomplish?
141850 [halostatue@g] God-type stuff. Fire and brimstone coming down from the skies.
141869 [eric_mahurin] Here are a couple of things this might be useful for (I just
141871 [halostatue@g] Premature optimization is the root of all evil, as they say. As
141992 [pbrannan@at ] Hash lookups using a hash value are O(1).  However, calculating the hash

[debian] setting ruby as installed with equivs
141865 [g.castaldi@g] On my pc there is debian-unsable and I've manually installed the

How to extract texts from html source?
141875 [sam.s.kong@g] Quite often, when I need to read a list of web pages, I download the
+ 141877 [james_b@ne r] Take a a look at  Michael Neumann's  WWW::Mechanize
| + 141881 [ruby.brian@g] $ apt-cache show w3m
| | 141887 [sam.s.kong@g] the
| | + 141932 [w3gat@nw ag ] Several years ago, one of the members of the group offered me this
| | | + 142009 [sam.s.kong@g] Thank you for sharing the code.
| | | + 144049 [usenet@pl nz] I'd rather recommend to use
| | + 141977 [dooby@d1 .k ] Save As ... [text file].txt
| |   142008 [sam.s.kong@g] Yes, that's right...:)
| + 141885 [sam.s.kong@g] the
|   + 141936 [james_b@ne r] No, it is a library for the (fairly) easy creation of HTML munging code.
|   + 144425 [opengeometry] I guess you run it through XML parser, like Expat which is everywhere
+ 142025 [bg-rubytalk@] You may find my HTMLTokenizer library convenient for this.  To do what you
  142029 [james_b@ne r] what to do for elected elements and such.

Ruby Newbie !!!
141879 [TechAlerts@g] I am Windows Systems Administrator with little or no knowledge of
+ 141882 [glyconis@gm ] Then have I got the tutorial for you!  :)
+ 141883 [ruby.brian@g] start reading the (pickaxe 2nd edition)[1] as an introduction. And If
+ 141884 [bob.news@gm ] "Kanthi Kiran Narisetti" <TechAlerts@gmail.com> schrieb im Newsbeitrag
  141893 [glyconis@gm ] - These are the references that most of us use; they are not so much
  + 141968 [TechAlerts@g] Thank You all for your Motivating reply's ...... :-) . I have started
  | 141979 [james@gr yp ] Then let me add one more tip:  The name of the language is Ruby, not
  | 141980 [shalofin@gm ] "RUBY".capitalize!
  | 141998 [Gary@Lo de .] LOL, at first I thought that was a joke, till I tried it in irb.
  + 142006 [bob.news@gm ] Unfortunately the area of first time programming introductions is not
    142128 [TechAlerts@g] Programming Ruby  " second edition ??
    142131 [cyclists@nc ] ...

fastcgi + lighttpd ?
141896 [ no@sp m. rg] How I can use fastcgi with lighttpd for ruby script ?
141899 [aredridel@gm] What sort of script is it? Is it using FastCGI protocol?
+ 141903 [ no@sp m. rg] Hum ?
| 141909 [schlu-do@gm ] Well, that looks like 'mod_ruby' or ERB - and that's not something
+ 141905 [ruby-ml@ma i] If your answer here is yes, do scripts in other languages work?

Still umlauts
141900 [lists@be tr ] does this no longer work?
+ 141906 [Nuralanur@ao] ...
+ 141910 [threeve.org@] That didn't work for me under Windows.
| 141950 [lists@be tr ] (Outputs "None" and "šŲŁń÷‹?".)
+ 142448 [ jupp@gm .d ] - What precisely do you mean by 'it works'?
  142507 [lists@be tr ] Sorry, that was not actually elaborate. Now I think it
  142514 [Mail@Jo as H] Is this the only way to handle strings UTF-8 in ruby?
  + 142527 [ruby.brian@g] No, it is perfectly possible to use utf-8 encoded source-files. (Butyou should use ruby -Ku then).
  + 142601 [lists@be tr ] You never know what happens to your mail in a thousand

include path for 'load' or 'require'
141902 [noSpam@no pa] to load a script called "loadme.rb" because it provides a common
141907 [vjoel@PA H. ] You can add an entry to $LOAD_PATH, or $: (same thing), and it will

[ANN] traits-0.1.0
141912 [Ara.T.Howard] URLS
141928 [listen@ma cr] that looks great!!
141935 [botp@de mo t] #Subject: [ANN] traits-0.1.0

[ANN] HighLine 0.5.0
141921 [james@gr yp ] =======================
+ 141922 [james@gr yp ] Darn it, forgot credit where credit is due!
+ 141938 [ezra@ya im -] Hey James & friends-
+ 141945 [martindemell] More flexible might be
  141985 [james@gr yp ] Great idea.  Added it to the TODO.  Thanks.

Re: HighLine 0.5.0
141947 [vfoley@gm il] I would really be interested in contributing some code.  I'm not
+ 141956 [greg7224@gm ] Well, when I asked James, he told me to hop onto the CVS, read the TODO
+ 141991 [james@gr yp ] Greg explained the process pretty well in his response.  As he said,

Testing a user application
141954 [vfoley@gm il] the next release I would love to have much more unit tests than I
+ 141957 [spoooq@gm il] Depending on how your method actually posts messages, you could write
+ 141997 [james@gr yp ] Basically the idea here is that you would make a MockClient object
| 142002 [vfoley@gm il] Yeah, that's what I'm using right now, I have a blog called
+ 142100 [mrcode@ne ro] I'm back with your example. To use this, change the initialize for

[ANN] Redesign 2005, Round Two
141958 [ruby-talk@wh] I'm happy to say that our little redesign team has come to accord on a
+ 142020 [surrender_it] I responde here and not on the blog since this message is not really
| + 142022 [pat.eyler@gm] I think that's a great idea.  I'd also like to see a logo usable by Ruby
| + 142027 [james_b@ne r] How do you know that?
| | + 142036 [threeve.org@] Yea, I am not a fan of that logo either.  I personally like Michel
| | + 142042 [surrender_it] I don't I just noticed this was the one that was chosen for the second
| | | 142058 [james_b@ne r] Sorry, then, I perhaps misunderstood who you thought was in agreement.
| | | 142064 [blaumag@gm i] We kind of made our work based on our ideas and the feedback we've got
| | | 142090 [james_b@ne r] Oh I don't mean to suggest there is some sort of secret society planning
| | + 142053 [jim@we ri hh] The icon is striking and eyecatching, I tend to like it (at least how its
| | | + 142055 [agorilla@gm ] googled "ruby diamond cut".  that first link looks like the "Lucky
| | | + 142211 [ng@jo nw on ] Although what we are using is a simplified version of it.
| | | + 142566 [halostatue@g] I have a friend who is a jeweller. She has told me that the diamond
| | |   142571 [ruby-talk@wh] One more question for your jeweller friend, as I don't have one of my
| | + 142564 [tobias.luetk] You are covered in by the word mostly.
| + 142068 [florgro@gm i] This one has graphical problems and I know of them, but perhaps somebody
| | + 142077 [dblack@wo bl] ...
| | | 142092 [ruby-ml@ma i] Woo hoo! I will experiment a bit and put out a couple t-shirt
| | + 142204 [chneukirchen] That was not referring to "Ruby Hacker", but to "Ruby Core
| |   142262 [surrender_it] my exact thought, thanks for making it clear :)
| + 142474 [listen@ma cr] Since we are alluding to songs ("best friend") how about
+ 142033 [ilias@la ar ] The design looks much better than the existing one, and should replace
| + 142041 [discordantus] I wholeheartedly agree to that. I can't wait till this rolls out. It's
| | + 142044 [ilias@la ar ] ok
| | + 142057 [mailing-list] Then how about making the comment read °»Ruby: Makes Programming Fun!°…?,
| |   + 142082 [ilias@la ar ] Simply open an new thread, [SLOGAN] ..., and ask the community to post a
| |   | 142099 [mailing-list] The new [slogan] will not [be] selected by democracy (vote).
| |   | + 142208 [jlsysinc@al ] After a lot of the above and a few pints I came up with...
| |   | | 142222 [bsd.SANSPAM@] Hope that helps ;)
| |   | | 142223 [Gavin.Kistne] ...
| |   | + 142311 [ilias@la ar ] yes.
| |   + 142101 [rob.02004@gm] +1 for "Makes Programming Fun"
| |   + 142102 [surrender_it] IMVVHO "Ruby: Fun Oriented Programming" is still the best :)
| |     142106 [mailing-list] That°«d be °»Ruby: Fun-Oriented Programming°… actually.  Perhaps this
| |     142177 [surrender_it] then should'nt our become "putting the 'proc' in .." ? :)
| |     142187 [mailing-list] Heh, I guess so :-),
| + 142075 [ilias@la ar ] ...
+ 142056 [jeff.barczew] I like this redesign alot. Very beautiful... like Ruby!
| 142111 [ng@jo nw on ] Thanks Jeff, I wholeheartedly agree with your comments. I lot of what I
| 142150 [pbattley@gm ] Personally, I rather like the "best friend" slogan on the current
| + 142151 [dblack@wo bl] I agree.  I actually think that while programming Ruby is indeed fun,
| | 142156 [pbattley@gm ] Exactly.  If you need to say that something is fun, experience says
| + 142152 [pbattley@gm ] Oops.  Before anyone gets confused and/or upset about the placement of
| + 142160 [mailing-list] No, no.  The indefinite is definitely the way to go,
|   142330 [pbattley@gm ] On 11/05/05, Nikolai Weibull
|   142332 [flaig@sa ct ] Oh no, please don't. That gives the impression of a bunch of happy losers, wobbling their ecstasied-up heads to the tune of techno music, pulling their puddings beneath the desk and never getting any decent work done.
+ 142087 [pabs@pa lo r] I've responded on the blog as well, but I thought I'd say (again) that

sumbit form in rails
141959 [ianic@4d a. ] Is there a way in rails to choose controller action to which form will
141963 [premshree.pi] Um, you can have the various actions as functions within the
141970 [ianic@4d a. ] Think about that as a web album.
141971 [rampant@gm i] <inut type="hidden" name="foo" value="bar" />
141973 [ianic@4d a. ] Thanks Douglas,

Case statements and ERB
141961 [farrel.lifso] While writing a template with ERB I found that case statements do not
142046 [jamis@37 ig ] The problem is the way ERB compiles the strings. It basically tries to

Ruby GDChart on Windows
141965 [george.mosch] I have used Ruby-GDChart for an old project. And now I need to run this

[ANN] NegaPosi Compiler
141967 [ko1@at ot ne] I release NegaPosi Compiler 0.0.0+- on my diary page.
+ 142104 [mrcode@ne ro] darn it, you beat me to it :)
| 142121 [mrcode@ne ro] def generate_np(str, width=64)
| 142134 [pbattley@gm ] Here's a (long) one-liner to do the same, taking advantage of
| 142135 [pbattley@gm ] str.scan(/.{1,8}/m).map{ |s| s.reverse }.
+ 142178 [surrender_it] I was somewhat scared that it would compile to yarv bytecode :)
  142321 [dave@bu t. d] "gabriele renzi" <surrender_it@remove-yahoo.it> admitted...

eigenclass
141969 [flaig@sa ct ] Essentially the former.

help with reading part of textfile into matrix
141972 [rgilaard@fe ] Dear all,
141986 [ruby.brian@g] Confused? ;-)
142001 [rgilaard@fe ] Oof course I am confused a s a ruby newbie!!
142016 [ruby-ml@ma i] Here you would want 'puts matrix[2][2]'.

[PATCH] for persistent 'irb' history
141976 [bsd.SANSPAM@] ...
141982 [dblack@wo bl] I submitted such a patch a little while ago, and learned that you can

Ruby/DL 2 for Ruby 1.8.2 Windows
141981 [news.home.nl] Does anybody have a binary version available of Ruby/DL 2 for Ruby 1.8.2

Re: [QUIZ] [Solution] Knight's Travails (#27)
141984 [ruby.brian@g] It's just the standard dijkstra.

Another possible irb enhancement
141987 [mailing-list] It would be sweet if the location of the .irbrc file was configurable

Relocation of Newsgroup<->Mailing list Gateway
141994 [dennis@la sc] due to the problems with SpamCop and my inability to solve them, I was

When to use sysread
141996 [jim@fr ez .o] Uhm, what is the purpose of #sysread.
142004 [akr@m1 n. rg] When you know neither a length nor a terminator of data available.

Fwd: Enumerating only months in a Date range?
142000 [drjflam@gm i] Is there a straight-forward way to list all of the months in a Date

Re: Enumerating only months in a Date range?
142003 [discordantus] There isn't a built-in way (that I know of), but it's pretty simple to
142047 [drjflam@gm i] Thanks, Mark!
+ 142062 [guslist@fr e] $ ri 'Date#>>'
| 142067 [drjflam@gm i] Doh! Thanks Guillaume.
+ 142069 [discordantus] That's the bitshift operator, which is often used in classes for other
  142070 [drjflam@gm i] The use of the bitshift operator surprised me. Crazy me, I was looking

In need of a simple, powerful markup language
142007 [csaba-ml@be ] Could you suggest an easy-to-use+write+read markup language which can be
+ 142015 [kennethkunz@] Two options you might consider are Textile and Markdown.  Not sure
+ 142120 [steven.jenki] Have you looked at any XML editors (e.g.,

a class that looks like (kind_of?) several classes
142012 [eric_mahurin] Is there a way to make a class that looks like several classes?
142017 [bob.news@gm ] class IOArray < IO
142028 [eric_mahurin] Yep, that is pretty obvious.  I think that is all I need, but I
+ 142030 [halostatue@g] There is a StringIO, you know.
+ 142031 [discordantus] This is generally unneeded in Ruby; If duck typing is used properly,
  142035 [eric_mahurin] I was aware of that.  This is making a string object look like
  142038 [eric_mahurin] Thanks.  I assumed that the StringIO class inherited from the
  + 142043 [discordantus] - If you are accepting different kinds of objects in the same method,
  + 142050 [jim@we ri hh] The common Ruby style is to not check at all, but just send the messages
    142051 [eric_mahurin] I was referring to the case when a method does different things
    143059 [dblack@wo bl] I think Jim was referring to that case too :-)
    143064 [eric_mahurin] Yep.  That's the same priority I have - no checking

Problems with rubytalk.com
142013 [wildwildwes@] I was searching for some ruby info via google, and clicked a link to
142014 [halostatue@g] You want ruby-talk.org instead.
142019 [wildwildwes@] Ok, that works. But rubytalk.com must have been in use at some point.
142125 [marcel@ve ni] rubytalk.com used to point to rubytalk.org. It expired and was not renewed,

[RFC] traits-0.1.0
142018 [Ara.T.Howard] i'm having quite a time deciding what to do with traits.  i first released as
+ 142021 [Daniel.Berge] That seems reasonable.
| 142048 [Ara.T.Howard] my thoughts exactly.
+ 142079 [ilias@la ar ] and used within C++
  142093 [Ara.T.Howard] hmm.
  142307 [ilias@la ar ] I mean: no mean to use (and search) a synonym

http-proxy in Ruby?
142023 [michael@sc u] I'm thinking of implementing a http-proxy in Ruby that processes the
+ 142024 [djberge@qw s] There's an httpproxy.rb as part of the webrick library.  Will that work
| 142071 [michael@sc u] Thanks for pointing this out. It might do what I need, I'll have a
+ 142034 [tanner.burso] I've attempted the same thing and found there is very little base to
  142072 [pbattley@gm ] Hmm... I actually did this last week, and I found some example code on
  + 142089 [james_b@ne r] Thanks; this is super handy.
  + 142105 [michael@sc u] Thanks, that's great. My Japanese is severely lacking unfortunately.
threads.html
top