281428-379106

281224-292125 subjects 281587-285302

[ANN] color 1.4.0 Released
281428 [halostatue@g] color version 1.4.0 has been released!
281429 [ara.t.howard] looks like a great lib austin: thanks.
281446 [jeremy@hi eg] Its good to see a new release of color.  I've always enjoyed it.

Printing throught LPT1
281430 [edgaralfonzo] I thought a library called Etch for printing, but it doesn't have any
281551 [edgaralfonzo] Nobody knows???
281555 [MonkeeSage@g] It depends on your OS for one thing. I'm not aware of a project that
281558 [edgaralfonzo] Well i am in windows, how could i do that?
+ 281564 [MonkeeSage@g] I'm not sure. I assume you could use the win32ole module that ships
+ 281570 [jan.svitok@g] You can open  file 'PRN:' (note the double colon). That should provide

Would ruby be easy to code in using voice recognition?
281431 [azimux@gm il] I was interested in giving ruby a try.  I have been coding for years
+ 281453 [phillipsds@y] Try Netbeans. There's a ruby only package available (which is about as
+ 281843 [richard.conr] <big response snipped>
| 281984 [znmeb@ce ma ] You could get close in Forth. At least the core Forth words have a
+ 281864 [brabuhr@gm i] I have no idea how well they work in general or if they would work

when 1.9.0 will be released?
281432 [sayoyo@ya oo] Posted via http://www.ruby-forum.com/.
281433 [Bil.Kleb@NA ] Traditionally, these sorts of things are xmas presents.
281475 [rick.denatal] And this Christmas we will get not Ruby 2.0, but Ruby 1.9.1 which will
281477 [dblack@ru yp] I'm not sure how stable, though. Matz said at RubyConf that it would
281479 [rick.denatal] That's how I interpret stable.
+ 281556 [dangerwillro] How rough is it ?
+ 281571 [dblack@ru yp] My interpretation was with respect to the running of the thing itself
  281602 [dangerwillro] It's good to know that 1.8.x is not being abandoned outright. I'd be
  281621 [charles.nutt] It's in, and changes many methods of String in breaking ways since they
  281627 [dangerwillro] Excellent news!
  281632 [trollenlord@] ...
  + 281645 [dangerwillro] True.
  + 281707 [patcito@gm i] How about Ruby 2.0 release? I thought 1.9 was suppose to be an
    281742 [ed.odanow@wo] I understood the comments given by Matz, that the development of 2.0
    + 281809 [charles.nutt] It's worth mentioning that with 1.9 stabilizing a bit in 1.9.1, JRuby
    + 281845 [Diego.Viraso] I must say I too am confused between what will go in 1.9 and what will
      281905 [ed.odanow@wo] A good idea may be to go through http://www.ruby-forum.com/topic/126701

Ruby/Tk
281434 [schmode93@ya] I have been looking for a good ruby GUI, and TK seems to be easiest
281440 [m_goldberg@a] AFAIK there isn't anything much more than introductory material
281467 [fox@ns l. su] Tk started off as the graphical tool kit for a scripting language
281637 [schmode93@ya] I'm not sure how to start off translating all this code justt see a bit
281638 [schmode93@ya] sorry hit enter =(! ok, this is the code!.....: #!
282321 [nagai@ai ky ] Follwoings are some of the examples.

Trouble with a while loop
281451 [bishar.duble] Please forgive if this forum is not the right one for this post.
281462 [phillipsds@y] I've had a it of a shot at your code, mainly looking at reducing the
281474 [bishar.duble] Many many thanks for your kind response. As you guessed I'm new to
281539 [phillipsds@y] Everyone says that...
282014 [bishar.duble] I'm sure you don't mind that :)

Re: is pastie dead?
281454 [alex@bl ck e] Looks alive to me...

Delete array element within iterator block?
281461 [jari.william] How do I (in an elegant way) delete an element of an array within a
281466 [phillipsds@y] I assume using delete_if is no good in this situation?
+ 281476 [dblack@ru yp] a => [1,2,3,4]
+ 281481 [jari.william] Thanks, delete_if works just fine!

changing paging created by scaffold
281463 [junkone1@gm ] the scaffolding created a list

job:mysql dba, cambridge
281473 [daniel.jacks] consultant. I also have a background in databases and web development.
281500 [tpo2@so rc p] I'd suggest to stay on topic and post only about Ruby related jobs Mr

[QUIZ] Postfix to Infix (#148)
281478 [james@gr yp ] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 281492 [cvonkleist@g] I had this as an assignment for a class once, in Java, so I'll sit
| 281631 [martin@sn wp] Well, doubtless in java you solved it in a way that demonstrated your
| 281634 [caduceass@gm] Or '1 - 2 - 3 + 4'  (yikes!) :^0
+ 281708 [list.push@gm] # Here is my solution.
+ 281712 [jgabrielygal] Fortunately, this week I had some time to check the Ruby quiz, and
+ 281713 [kbloom@gm il] =-=-=-=-=
| + 281716 [jamesbkoppel] PREC = {:+ => 0,:- => 0,:* => 1,:/ => 1,:% => 1,:^ => 2}
| + 281733 [kbloom@gm il] It appears to be this regex over here. You need to escape the ^ if you
+ 281722 [justin.ethie] ...
+ 281735 [martin@sn wp] #! /usr/bin/env ruby
+ 281740 [adam.shelly@] Here's mine.
| 281741 [adam.shelly@] I should know better than to try to cleanup my code, and then submit
| 281746 [martin@sn wp] s=%q(  Daniel Martin -- martin@snowplow.org
| 281909 [adam.shelly@] I think you only changed 'Token' to Term, and missed the 'tok'=>'term' sub.
| 281920 [jamesbkoppel] PREC = {:+ => 0,:- => 0,:* => 1,:/ => 1,:% => 1,:^ => 2}
+ 281755 [rubify@so to] Finally we got a quiz with 'less than 20 (minutees, loc)' rule satisfied :)
+ 281758 [konrad@ty er] charset="utf-8"
+ 281772 [artem.vorozt] Good day, everybody!
| 281777 [artem.vorozt] So, here is the code just about 'flatten', not the QUIZ issue.
+ 281793 [eric.mahurin] ...
| 281839 [kbloom@gm il] This doesn't look right.
| 281850 [eric.mahurin] ...
| 281870 [cvonkleist@g] Wow, there was a lot of activity on this quiz over the weekend!
| 281871 [cvonkleist@g] terms = []
+ 281805 [kbloom@gm il] Solutions that minimize parentheses must work with the following test
| 281807 [rubify@so to] Hmm.. Please add my solution to the list :)
| 281825 [eric.duminil] As soon as pastie works again, I'll get my script back and ask you to
+ 281888 [artem.vorozt] All solutions you posted are fun. But now it's time for REAL challenge. :)))
| + 281896 [eric.duminil] ###########################################
| | 281899 [cvonkleist@g] OOO = "*/+-"
| + 281900 [artem.vorozt] 2007/12/3, Artem Voroztsov <artem.voroztsov@gmail.com>:>
+ 282009 [phillipsds@y] Didn't have much time for this, so here's a partial solution.

problem with 'self'. behaves different on setting and gettin
281480 [gabru@gm .a ] i have a question according 'self'. I have setup a small simple scenario
281484 [jari.william] Because it now thinks that x is a local variable. This is one of the
+ 281490 [scott.wadden] class User
+ 281628 [martin@sn wp] self.x = ...

Ruby Genetic Algorithm Library
281486 [peterlaurens] I'm looking for a (relatively) mature genetic algorithm library for use
281491 [edder@tk sp ] Some projects that might be of interest (I have no experience with any
281506 [lopx@ga et .] Lots of them and no extensions/wrappers/bindings required. There is also

Re: problem with 'self'. behaves different on setting and ge
281487 [gabru@gm .a ] thanks jari ... i can see clearly now :)
281495 [ccaseiro@gm ] I think this is not correct. Since there are no local variable "x" in
281496 [charles.nutt] You are correct. Both are calls to the "x" method. The only difference

Limitations of ruby's XMLRPC?
281488 [kyleaschmitt] What are the limitations of ruby's XMLRPC?
281493 [james@gr yp ] By default, you can only use the types allowed by the XML-RPC

Re: Scraping
281502 [alex_f_il@ho] You can check SWExplorerAutomation (SWEA) from http://webius.net. SWEA

FileUtils, a useful extension
281504 [chromatophor] i find these come in real handy, and thought they would be good for
+ 281505 [chromatophor] def x? path
+ 281507 [transfire@gm] On Nov 30, 12:07 pm, Christophe Mckeon <chromatoph...@gmail.com>
  + 283186 [dangerwillro] WOW!
  + 283196 [m.fellinger@] Anyone knows what happens with this in 1.9? AFAIK the ?d syntax is

Class method
281509 [nathanv@ro e] Need help to understand how the marked <<< def works. Thanks
+ 281510 [Rob@Ag le on] steve.fname = "Steve"
+ 281512 [caduceass@gm] You are not defining an equals method here (=).  You are defining the
| 281525 [dblack@ru yp] It's actually the other way around (if I'm understanding your point
| 281536 [caduceass@gm] Yeah, after playing around a bit, I see you are right.  It assumes
| 281946 [nathanv@ro e] Found this in
| 281961 [jeff.swope@g] ...
+ 281515 [coder68@ya o] Here is another attempt, look at the following and notice that I had to
+ 281533 [shortcutter@] What does this have to do with the subject?  For all I can see we are

Net::SMTP SSL example
281511 [fwang2@gm il] It seems ruby 1.9 has SSL support for Net::SMTP, can someone please

Google Highly Open Participation Contest
281514 [horacio.lope] is anyone at Ruby Central in contact with Google about this ?
281565 [znmeb@ce ma ] They already picked their ten organizations.
281569 [peter@ru yr ] 2x pyton, 4x php, 0x Ruby.. :-(
281607 [stack.tcpip@] 3x.
281622 [znmeb@ce ma ] And Apache is really a Java front :)
281624 [dangerwillro] Consider the projects chosen, consider Google investing in things it
281629 [horacio.lope] Mono ??
281646 [dangerwillro] I don't know, but they might use it internally, or have goals of
281658 [horacio.lope] the question remains, why is Ruby so under-represented ?
281660 [znmeb@ce ma ] 1. It started in Japan and English-language documentation didn't appear

Progress Indicator. Please Comment
281518 [mikisvaz@ya ] I came to ruby from perl. The first thing I missed was the SmartComments
281520 [al_batuul@ya] ...
281522 [mikisvaz@ya ] Its a library to process Text for Biology. I does document
281528 [al_batuul@ya] ...

Unicode in Regex
281519 [lists@gr gw ] This is mostly a Ruby thing, and partly a Rails thing.
+ 281526 [dale.martens] Tim Bray gave a great talk about I18N, M17N and Unicode at the 2006
| 281537 [lists@gr gw ] That's just beyond sad.
| 281553 [MonkeeSage@g] es
| + 281585 [koflerjim@ma] Posted via http://www.ruby-forum.com/.
| + 281774 [dan-ml@da 42] I enrages me to see this kind of FUD. Through regular expressions, ruby
|   + 281928 [charles.nutt] Regular expressions for all character work would be a *terribly* slow
|   | 281988 [dan-ml@da 42] Ok, I'm not very familiar with the internal working of strings in 1.9,
|   | 282116 [dan-ml@da 42] Sorry to beat a dead horse, but I just did an interesting little
|   | 282145 [charles.nutt] ...but correct. I'd rather have correct than broken.
|   + 282256 [gmane@au bu ] Daniel DeLorme said...
|     282280 [dan-ml@da 42] Not at all. By "fundamentally" I mean the fundamental, lowest level of
|     282295 [MonkeeSage@g] Here is a micro-benchmark on three common string operations (split,
|     282299 [dan-ml@da 42] That's nice, but split and index do not operate using integer indexing
|     282303 [MonkeeSage@g] Heh, if the topic at hand is only that indexing into a string is
|     282313 [dan-ml@da 42] How so? These methods work just as well in ruby1.8 which does *not* have
|     282323 [MonkeeSage@g] }}.real
|     282510 [koflerjim@ma] Just to avoid confusion over the meaning of 'UTF8'  in UTF8REGEX: the n
+ 281744 [lists@gr gw ] So, I've been pounding the web for info on UTF8 in Ruby and Rails the
  + 281780 [dan-ml@da 42] Let me try to explain that in order to redeem myself from my previous
  | + 281886 [lists@gr gw ] OK, I see oniguruma docs refer to \x as encoded byte value and \x{} as a
  | | + 281903 [lists@gr gw ] OK, one thing I'm still confused about -- when I look up é in any table,
  | | | 281906 [phrogz@ma .c] The UTF-16 value is 233 (decimal), but the UTF-8 value is 0xC3 0xA9,
  | | + 281914 [phrogz@ma .c] ...
  | | + 281935 [MonkeeSage@g] Oniguruma is not in ruby 1.8 (though you can install it as a gem). It
  | |   281964 [lists@gr gw ] Oh. I always thought Oniguruma was the engine in Ruby.
  | + 281933 [MonkeeSage@g] via
  |   281991 [dan-ml@da 42] => "u"
  |   282004 [MonkeeSage@g] I guess we were talking about different things then. I never meant to
  |   282115 [dan-ml@da 42] Since regular expressions are embedded in the very syntax of ruby just
  |   282158 [MonkeeSage@g] I think we'll just have to agree to disagree. But there is one
  + 281781 [MonkeeSage@g] via
  + 281782 [dan-ml@da 42] If that actually works, it means you are really using ISO-8859-1

??Conditional validation skipping??
281527 [joe@no sl ep] Hey,
281534 [aledonne.lis] Maybe use a filter in the controller that does registration. Try the

Need to parse a HTML table into an Array/hash
281529 [ernst@ta ak ] I am new to ruby; having a lot of fun, but currently I am stuck with the
+ 281530 [donald.ball@] You probably want to look at mechanize and hpricot, or maybe scrubyt.
| 281532 [dejan.dimic@] On Nov 30, 10:27 pm, "Ball, Donald A Jr (Library)"
+ 281541 [rubyronin@gm] ...
+ 281576 [peter@ru yr ] ...
  281770 [ernst@ta ak ] Thanks for your help.
  282234 [dodecaphonic] ...
  282252 [ernst@ta ak ] Thanks Vitor; But for that solution you need to know the Symbol.
  282266 [dodecaphonic] ...

eval / current binding
281535 [redroofgreen] ...
281554 [MonkeeSage@g] On Nov 30, 3:42 pm, redroofgreentree <redroofgreent...@gmail.com>

Running GzipWriter on same input produces different output
281540 [nappin713@ya] Is it normal that everytime I gzip the same contents, the output is
+ 281547 [nobu@ru y- a] Yes.
+ 379106 [ben@be ub is] I think the reason for this is because gzip saves the original filename

[ANN] GetOptions 0.1 released
281543 [delaneyparke] GetOptions - Yet another command line argument parser for Ruby. Inspired

run system command as user
281545 [treybean@gm ] I'm in need of running a system command as another user than the user
+ 281572 [MonkeeSage@g] Here is a naive version using the built-in pty extension (*nix only,
| 281573 [MonkeeSage@g] Oops...
| 281579 [MonkeeSage@g] Good grief. Third time's a charm (maybe)...
| 281600 [treybean@gm ] Sweet.  It works.  Thanks Jordan
+ 281574 [yermej@gm il] Depending on how much control you have over the system and what's

Finding Duplicate MP3s
281549 [khurrum1@gm ] I'm a RubyNoobie and I am writing a few random scripts to learn the
281937 [nyarly@gm il] ...
281942 [nyarly@gm il] ...
282261 [khurrum1@gm ] Thank you very much. This is incredibly helpful. I'm sure this will be

tag, tag_end in parser
281557 [martin@an le] I have created a buffer class and i was able to read a character, string
+ 281560 [phrogz@ma .c] Check out String#scan method with regexp %r{</?\S>} and StringScanner
+ 281562 [MonkeeSage@g] You sure like doing needless work! First, you re-implemented StringIO

NTLM authentication with httpclient
281559 [diegoslice@g] I have rewritten my net/http script that I had questions on a couple of
+ 281561 [yermej@gm il] There are examples included in the rubyntlm gem. I'm running Windows
| 281577 [diegoslice@g] I'm really trying to do this in httpclient versus getting down into
| 281592 [garbagecat10] ...
| 281691 [diegoslice@g] I admit that I'm a bit stubborn sometimes. If my wife subscribed to this
| 281749 [yermej@gm il] I don't have an NTLM server to test against at this point, but from
| + 281863 [yermej@gm il] I've played with this some and there seem to be a couple problems. Or
| + 358185 [tim@ra do li] I'm sorry to be asking questions on such and old thread. But I am having
+ 281593 [phrogz@ma .c] FWIW, I've worked around this in the past by using a download of curl

Float Question
281563 [mando81@pr d] This is probably the stupidest question ive ever had to ask on any board
281566 [chris@po ta ] What you're looking for is sprintf() though I suspect you know that
281568 [mando81@pr d] Hey Chris thanks for the feedback.  Yea im using that but i was looking
+ 281575 [pergesu@gm i] Or even the current release!
+ 281580 [scott.wadden] You can monkey patch Float to do this, basically.  Whether or not it's
+ 281582 [chris@po ta ] In that case the monkey-patch suggestions made by others would do the
+ 281586 [shortcutter@] Class != stack.
  + 281588 [chris@po ta ] You're right, I didn't know that one at all and it seems quite handy.
  + 281601 [mando81@pr d] If i use sprintf im assuming that the argument is changed to a string
    + 281604 [unbewusst.se] def aprox( eps = 1.0e-10 )
    + 281605 [gwtmp01@ma .] This statement just confused me more.  sprintf doesn't change the
    + 281695 [shortcutter@] But this is *exactly* what you asked for.  Quoting from your original
threads.html
top