281224-292125 subjects 281563-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 hineg] 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 gmail] 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 cesmai] You could get close in Forth. At least the core Forth words have a
+ 281864 [brabuhr gmai] I have no idea how well they work in general or if they would work

^ when 1.9.0 will be released?
281432 [sayoyo yahoo] Posted via http://www.ruby-forum.com/.
281433 [Bil.Kleb NAS] 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 rubyp] 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 rubyp] 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 ] Where is Unicode not convenient really? Seriously, it was conceived in '91
  + 281645 [dangerwillro] True.
  + 281707 [patcito gmai] 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 nscl.msu] 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.kyu] 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 blackke] Looks alive to me...

^ Re: Convert HEX to RGB
281456 [dorfman est.] Ummm... This is a really clever solution, except if you have a hex value
+ 281457 [dorfman est.] Ok, answered my own question. Figured I'd post incase anyone else is
+ 281458 [eustaquioran] => [16, 26, 255]
  + 281459 [dorfman est.] Sweet. That is *so* much more readable. Thank you.
  + 281516 [jeremy hineg] Or use color (http://rubyforge.org/projects/color/)
    281544 [halostatue g] Why thank you, Jeremy. ;)
    281548 [jeremy hineg] Yup, count me in.

^ 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 rubyp] a => [1,2,3,4]
+ 281481 [jari.william] Thanks, delete_if works just fine!

^ changing paging created by scaffold
281463 [junkone1 gma] 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 sourcep] I'd suggest to stay on topic and post only about Ruby related jobs Mr

^ [QUIZ] Postfix to Infix (#148)
281478 [james graypr] 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 snowp] 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 gmail] =-=-=-=-=
| + 281716 [jamesbkoppel] PREC = {:+ => 0,:- => 0,:* => 1,:/ => 1,:% => 1,:^ => 2}
| + 281733 [kbloom gmail] It appears to be this regex over here. You need to escape the ^ if you
+ 281722 [justin.ethie] Here is my solution. It minimizes the use of parentheses, and can easily be
+ 281735 [martin snowp] #! /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 snowp] 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 softo] Finally we got a quiz with 'less than 20 (minutees, loc)' rule satisfied :)
+ 281758 [konrad tyler] 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] * maintains an OO data structure (to do everything below)
| 281839 [kbloom gmail] This doesn't look right.
| 281850 [eric.mahurin] I obviously didn't test divide.  My previously solution has a stupid typo in
| 281870 [cvonkleist g] Wow, there was a lot of activity on this quiz over the weekend!
| 281871 [cvonkleist g] terms = []
+ 281805 [kbloom gmail] Solutions that minimize parentheses must work with the following test
| 281807 [rubify softo] 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 gmx.at] 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 snowp] self.x = ...

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

^ Re: problem with 'self'. behaves different on setting and ge
281487 [gabru gmx.at] thanks jari ... i can see clearly now :)
281495 [ccaseiro gma] 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 graypr] 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 roge] Need help to understand how the marked <<< def works. Thanks
+ 281510 [Rob AgileCon] steve.fname = "Steve"
+ 281512 [caduceass gm] You are not defining an equals method here (=).  You are defining the
| 281525 [dblack rubyp] 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 roge] Found this in
| 281961 [jeff.swope g] why does line 2 state initialize instead of breed?
+ 281515 [coder68 yaho] 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 gmail] 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 cesmai] They already picked their ten organizations.
281569 [peter rubyra] 2x pyton, 4x php, 0x Ruby.. :-(
281607 [stack.tcpip ] 3x.
281622 [znmeb cesmai] 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 cesmai] 1. It started in Japan and English-language documentation didn't appear

^ Progress Indicator. Please Comment
281518 [mikisvaz yah] I came to ruby from perl. The first thing I missed was the SmartComments
281520 [al_batuul ya] Dear Miki,
281522 [mikisvaz yah] Its a library to process Text for Biology. I does document
281528 [al_batuul ya] My work is on subsegmental primes for speech recognition and I have plans to related to text recognition. Ok, I'll be loking forward to see your work.

^ Unicode in Regex
281519 [lists gregwi] 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 gregwi] That's just beyond sad.
| 281553 [MonkeeSage g] es
| + 281585 [koflerjim ma] Posted via http://www.ruby-forum.com/.
| + 281774 [dan-ml dan42] 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 dan42] Ok, I'm not very familiar with the internal working of strings in 1.9,
|   | 282116 [dan-ml dan42] 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 auxbus] Daniel DeLorme said...
|     282280 [dan-ml dan42] 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 dan42] 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 dan42] 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 gregwi] So, I've been pounding the web for info on UTF8 in Ruby and Rails the
  + 281780 [dan-ml dan42] Let me try to explain that in order to redeem myself from my previous
  | + 281886 [lists gregwi] OK, I see oniguruma docs refer to \x as encoded byte value and \x{} as a
  | | + 281903 [lists gregwi] OK, one thing I'm still confused about -- when I look up é in any table,
  | | | 281906 [phrogz mac.c] The UTF-16 value is 233 (decimal), but the UTF-8 value is 0xC3 0xA9,
  | | + 281914 [phrogz mac.c] ...
  | | + 281935 [MonkeeSage g] Oniguruma is not in ruby 1.8 (though you can install it as a gem). It
  | |   281964 [lists gregwi] Oh. I always thought Oniguruma was the engine in Ruby.
  | + 281933 [MonkeeSage g] via
  |   281991 [dan-ml dan42] => "u"
  |   282004 [MonkeeSage g] I guess we were talking about different things then. I never meant to
  |   282115 [dan-ml dan42] 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 dan42] If that actually works, it means you are really using ISO-8859-1

^ ??Conditional validation skipping??
281527 [joe notsleep] 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 tanaka] 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] I'm kind of new too, so this might be a little sloppy by more experienced
+ 281576 [peter rubyra] charset=US-ASCII;
  281770 [ernst tanaka] Thanks for your help.
  282234 [dodecaphonic] I should say, even if a bit late, that Yahoo! Finance provides data in CSV
  282252 [ernst tanaka] Thanks Vitor; But for that solution you need to know the Symbol.
  282266 [dodecaphonic] Oh, I'm sorry. I seem to have lacked in attention when reading your original

^ eval / current binding
281535 [redroofgreen] Hey,
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 ruby-la] Yes.

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

^ run system command as user
281545 [treybean gma] 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 gma] Sweet.  It works.  Thanks Jordan
+ 281574 [yermej gmail] Depending on how much control you have over the system and what's

^ Finding Duplicate MP3s
281549 [khurrum1 gma] I'm a RubyNoobie and I am writing a few random scripts to learn the
281937 [nyarly gmail] Sure.
281942 [nyarly gmail] Your subnet is currently  You are likely to be eaten by a
282261 [khurrum1 gma] Thank you very much. This is incredibly helpful. I'm sure this will be

^ tag, tag_end in parser
281557 [martin angle] I have created a buffer class and i was able to read a character, string
+ 281560 [phrogz mac.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 gmail] 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] Keep in mind that NTLM requires at least two round trips to the server in
| 281691 [diegoslice g] I admit that I'm a bit stubborn sometimes. If my wife subscribed to this
| 281749 [yermej gmail] I don't have an NTLM server to test against at this point, but from
| 281863 [yermej gmail] I've played with this some and there seem to be a couple problems. Or
+ 281593 [phrogz mac.c] FWIW, I've worked around this in the past by using a download of curl