365009-368568 subjects 365494-366210

Listen to streaming radio with ruby?
365280 [nrhird@gm il] Does anyone have any information they can share with me on reading an audio
+ 365283 [bosko.ivanis] io
+ 365295 [rogerpack200] If you want to 'catch' the stream on its way in, I might try something
+ 365683 [rob.eastwood] system "vlc http://radio1.internode.on.net:8000/117  vlc://quit ;"

undefined local variable or method `code_words' for main:Ob
365284 [abder.rahman] undefined local variable or method `code_words' for main:Ob
+ 365285 [abder.rahman] Please omit the last comma in wordlist.rb. But, I'm still having the
+ 365305 [jgabrielygal] Local variables are not visible outside of the file they are created.
  365314 [abder.rahman] Thanks a lot. It worked :-)

extending a core class cleanly [noobish alert]
365288 [r@al m. it e] Assume I'd like to create a statistics package designed to work on
365292 [ninja@sl ph ] What kind of surprises?
365306 [jgabrielygal] I agree, this is the less dangerous thing to do: just extend the

Re: extending a core class cleanly
365296 [r@al m. it e] Coming from conventional programming environments, one might be
365365 [ninja@sl ph ] Libraries like that do tend to isolate the syntactic sugar from the utility

Golf on CLI code
365297 [transfire@gm] I have a registry (array) of CLI classes. Each class has a class
+ 365299 [joelvanderwe] def command(argv)
+ 365316 [martindemell] size
  + 365651 [transfire@gm] Thanks Joel and Martin. Amazingly concise answers  -- it's amazes me
  + 365655 [w_a_x_man@ya] ].size
    365722 [w_a_x_man@ya] [1].size
    365740 [w_a_x_man@ya] b[1].size

[ANN] RubyInstaller: 1.8.7-p299, 1.9.1-p429 and 1.9.2-rc1 installers  and packages released
365298 [luislavena@g] Wanted to inform that RubyInstaller project released installers and

RCR getch
365301 [rogerpack200] It would be quite convenient to have a getch method in Ruby.
365303 [nobu@ru y- a] $ /usr/local/bin/ruby-1.9.3 -v -rio/console -e 'p STDIN.gets; p
+ 365304 [botpena@gm i] uber cool. thank for the tip, nobu.
+ 365307 [rogerpack200] Excellent. I'm glad this was added then.
  365346 [rogerpack200] => true
  366355 [nobu@ru y- a] What does it return when arrow keys are hit?
  366357 [rogerpack200] 224 + (some number like 75 for left arrow). It appears to not track when

MiniTest test case execution
365309 [george.thoma] I have MiniTest derived class to run the test cases.
+ 365326 [transfire@gm] You can't. The order of test execution is not guaranteed.
+ 365336 [vikkous@gm i] Consider rewriting it like this: rename test1..testn to check1..checkn
  365404 [george.thoma] Thanks for the reply.
  365483 [vikkous@gm i] And why does that matter? #assert is a method of TestCase, so it can

AES block cipher artifacts
365310 [lists@gr ll ] I've got an oddity with the AES block cipher. There are (seemingly
365312 [ruby@ur ew l] like you said, you use a BLOCK cipher. So the cipher will pad any data
365313 [lists@gr ll ] Thank you. Changing to descrypt_buffer fixed things, and saved me from

Installing RMagick WITHOUT XCode
365311 [abder.rahman] I'm running MAC OS X Leopard 10.5.8, and have XCode 3.0 installed.

WTF? Case statement disfunctional?
365315 [pieter@in er] I have a simple problem with the class of an object not being recognised
+ 365317 [josh.cheek@g] Change it to
+ 365318 [stefano.croc] In a case expression, to decide which of the branches should be executed, ruby
  365323 [pieter@in er] Thanks for the prompt and helpful responses. Your proposals work, but I
  + 365328 [vikkous@gm i] but,
  | + 365345 [joelvanderwe] I think of "pattern === val" as a general pattern matching predicate,
  | + 365347 [shortcutter@] he
  + 365329 [stefano.croc] Because that uses
    365339 [pieter@in er] Once again thanks for your patience with me. I have been programming in
    365348 [shortcutter@] Just making sure we do not overlook anything: you are aware of the

Consuming a SOAP Service in Ruby.
365319 [saeed.bhuta@] I am trying to consume a SOAP service. I don't know a lot about this
+ 365350 [tony.arcieri] I've had lots and lots of problems with soap4r in the past and would most
+ 365409 [a2800276@gm ] The wsdl you presented is fairly short, I've found the easiest way to

Why am I not getting the expected output?
365320 [abder.rahman] I have the following code: http://pastie.org/1032525, but always getting
365321 [stefano.croc] It works correctly for me
365325 [abder.rahman] Really amazing.
+ 365327 [juanjova@um ] Did you change the '===' operator maybe?
| + 365331 [abder.rahman] When you look at the logic it is correct, but why NOT getting what
| | 365332 [abder.rahman] whathappened.rb:3: syntax error, unexpected kIF, expecting kWHEN
| | 367623 [eveith@ww eb] charset="utf-8"
| | 367624 [abder.rahman] Thanks a lot Eric.
| + 365334 [abder.rahman] Thanks a lot everyone for their replies on this.
+ 365330 [stefano.croc] Yes. I just copied it and pasted into a file.
  365333 [abder.rahman] Thanks Stefano. I went ahead and copied-pasted the code I have submitted

Prawn - Taking a page from one pdf to place in a prawn one.
365322 [adamtemporar] Can I use prawn to take pages directly from a preexisting pdf (no
365324 [adamtemporar] Doh! just spotted prawn has a google groups. Ill post there but still

What does Hpricot use under the hood? Regexp?
365337 [pedrolito@la] I was wondering what hpricot uses under the hood. Does it use regexp?
365338 [flo@an er gr] A C parser generated with Ragel.[1]
365340 [pedrolito@la] Thank you Florian!

Problem of share variable in function using thread
365342 [sophoah@gm i] I got a little problem when using thread function and variable, let's
+ 365343 [rogerpack200] what's happening is that "id" is being changed as it iterates through
+ 365344 [jgabrielygal] Blocks in Ruby are closures, this means that inside the block you pass
  365415 [sophoah@gm i] On Jul 7, 12:15=A0am, Jes=FAs Gabriel y Gal=E1n <jgabrielyga...@gmail.com>

best way to make .rb into an executable for linux?
365351 [wrinkliez@gm] I have a pretty basic .rb script that I would like to turn into an
+ 365359 [rick.denatal] In Posix systems executable doesn't necessarily mean a file has to be binar=
| 365360 [wrinkliez@gm] I see.  Well I could use that as a last resort I suppose, but won't the
| + 365361 [ben@bl yt in] Yes, that's true.  I think your best bet is going to be to figure out
| | 365363 [wrinkliez@gm] The error is
| | + 365366 [ninja@sl ph ] Yes. They'll have to do that anyway. All of the solutions here revolve around
| | + 365479 [jeremy@hi eg] This is probably a failure in building the amalgalite gem on your
| + 365362 [headius@he d] FWIW, you can create a single-file executable (a jar file, basically,
|   365486 [rogerpack200] Are there any step by step instructions on how to do that anywhere, by
|   365490 [Ruby@Go gl M] It's been several years since I last tried it, but IIRC it's basically
+ 365487 [rogerpack200] Posted via http://www.ruby-forum.com/.

save your money and open all blocked sites now
365356 [love_ram2040] save your money and open all blocked sites now

365358 [rogerpack200] Anybody know what happened to rubygarden.org?
365367 [tom@in oe he] It was such a spam-trap that we shut it down.
365368 [ben@bl yt in] Is the content, spam-laden or otherwise, still available somewhere?
365370 [tom@in oe he] I poked around various directories on the new rubycentral.org server... =
365396 [b.candler@po] sometimes possible to retrieve it from archive.org, but it's a painful
365418 [rogerpack200] Does that seem like a good idea to use as a replacement?
365424 [b.candler@po] Feel free - you have a "standard library" section already.

[ANN] rdoc 2.5.9 Released
365371 [drbrain@se m] rdoc version 2.5.9 has been released!

DTD documents and Ruby
365373 [barjunk@at g] Has anyone ever run across some tools that would read a DTD and

Hashes don't allow preceding commas by design?
365374 [iainspeed@gm] This is the output from irb that shows ruby 1.9.1 doesn't like hash =
+ 365375 [josh.cheek@g] I don't know the reasoning for that decision [quirk?] but commas at the end
| 365377 [iainspeed@gm] ...
+ 365376 [peterhickman] It's not hashes it is the parser in general. When it parses a line (up to
| + 365378 [iainspeed@gm] Thanks, I'm still getting used to Ruby's ways.
| + 365379 [josh.cheek@g] I think that I feel this should not be the case, because I feel that the
|   365381 [peterhickman] 1: => a = { :fred => 42 }
|   365382 [josh.cheek@g] Okay, I found the point of confusion. The confusion is that "1: => " is not
|   365384 [peterhickman] I can understand the confusion but it can be explained like this
|   365388 [b.candler@po] I'd say it's just a quirk of the parser, and/or the fact that the
|   365405 [peterhickman] Look at this in irb might help us understand it
+ 365383 [sutniuq@gm .] It is possible if you force the Ruby Interpreter to look at that line to

Re: rdoc 2.5.9 Released
365385 [luislavena@g] 627&func=3Dbrowse

Ruby switches
365386 [ken70r@gm il] Let's say I have something like this
365387 [b.candler@po] case str
365389 [ken70r@gm il] case.
+ 365393 [ken70r@gm il] I guess you can define a new method inside the class like this when
+ 365394 [b.candler@po] Then no, there is not a variant of the case statement which does this.
| + 365397 [ken70r@gm il] I see. Thanks!
| + 365398 [b.candler@po] user = Object.new
+ 365406 [martindemell] class User
| + 365420 [eregontp@gm ] Quite cool the Symbol#=3D=3D=3D,
| + 365425 [ken70r@gm il] Thanks! The Symbol#=== way looks very cool!
+ 365422 [eregontp@gm ] Ah, and if you would absolutely respect the same syntax, it is

Global methods in Ruby standard lib
365390 [news@ra ys n] I noticed that at least some of the standard libs use global methods to
365395 [news@ra ys n] Sorry for the repost. Do NOT use this thread to discuss. Use the other

Global method usage in standard libs
365391 [news@ra ys n] I noticed that at least some of the standard libs use global methods to
365421 [joelvanderwe] Array, Hash, and Struct classes all have a [] class method (not

New, but this seems odd...
365392 [wagner.andre] irb(main):001:0> x = [1,2,3]
+ 365399 [ruby@sl gh l] 9857c220286cc01c05bd3fc163a7654a@ruby-forum.com
+ 365400 [Rob@Ag le on] Read http://dablog.rubypal.com/2007/8/15/bang-methods-or-danger-will-rubyist
| + 365401 [wagner.andre] That article is helpful, thanks. Somehow I had exactly that idea in my mind,
| + 365402 [josh.cheek@g] x = "123"
+ 365495 [jw@mu tm di ] After some reflection, I can certainly see how you would expect a

is there any best OCR library in Ruby ?
365403 [sathish.sale] is there any best OCR(Optical Character Recognition) library in Ruby ?

Ruby 1.9 Old School $LOAD_PATH
365407 [transfire@gm] In Ruby 1.9+ is there a way to get the $LOAD_PATH without the gem
365411 [botpena@gm i] just a hunch,

RubyGems on GitHub
365408 [jbarnette@gm] All,
365410 [botpena@gm i] finally!

Ruby 1.9.1-p429
365412 [mitko.kostov] Hey, guys.
+ 365416 [cremes.devli] I just saw the p429 was pulled from rvm due to a bug with gem loading. There wasn't any note about a compilation problem.
+ 365429 [onepoint@st ] Regards,

What is meant by those lines of code in this script?
365413 [abder.rahman] I came across the following script from "Why's poignant guide to Ruby".
365419 [jgabrielygal] def wipe_mutterings_from( sentence )
+ 365426 [abder.rahman] Thanks a lot for your thorough explanation. Really appreciate it.
+ 365561 [abder.rahman] sentence[open..close] = '' if close
  365563 [colinb2r@go ] You can modify a statment with "if" or "unless".
  + 365572 [abder.rahman] Thanks a lot for your clarification. Maybe what confused me a bit is
  + 365705 [abder.rahman] close = sentence.index(')', open)
    365707 [peterhickman] RTFM http://www.ruby-doc.org/core/classes/String.html
    365708 [abder.rahman] a = "hello there"

Symbols vs. variable
365414 [abder.rahman] What is the main difference between using a symbol (begins with :), and
365417 [jgabrielygal] - A symbol is an object. It's literal representation is a set of
+ 365427 [abder.rahman] Thanks a lot.
+ 365437 [jeremyheiler] 2010/7/7 Jes=FAs Gabriel y Gal=E1n <jgabrielygalan@gmail.com>

Mail issue
365423 [di3go.bernar] I need to get mails from a mail server using pop3, save to disk to later
365428 [seanh1313@tx] Here is a mass Emailer that uses a TK front end.  If you don't want the front end you can just remove the calls and such...no big.  It uses 2 files the **.txt file holds the Emails and the **.html holds the actual page.

ri and rdoc....like perldoc?
365430 [derekbellner] Will anyone kindly help?  I want to get my ruby docs fully functional,
365432 [fxn@ha hr f.] Unfortunately documentation is not one of Ruby strengths, there's
+ 365464 [derekbellner] thats unfortunate, will this likely change in the future?
| 365465 [fxn@ha hr f.] I don't know, everything is Open Source, if Perl could so does Ruby,
| + 365467 [derekbellner] ok thank you!  I prefer Ruby, it neater and more quaint!
| + 365470 [b.candler@po] And for installed gems, type
|   365473 [ryand-ruby@z] using
+ 365498 [rogerpack200] Posted via http://www.ruby-forum.com/.

[ANN] Win32::Screenshot 0.0.5
365431 [jarmo.p@gm i] I've release version 0.0.5 of Win32::Screenshot - Capture Screenshots on

Extending OpenStruct to be lazy and recursive
365433 [ben@ku ri .n] I'm trying to extend OpenStruct for an application I'm building, where
+ 365435 [transfire@gm] Not 100%, but maybe have a look at Hashery's OpenCascade for some
+ 365436 [mjijackson@g] I've done something similar that's pretty lightweight. My version
  365438 [ben@ku ri .n] Michael, thanks for the pointer, but I don't really see how it helps.

[ANN] treequel 1.0.4
365439 [ged@Fa ri MU] Version 1.0.4 of treequel has been released.

Complie-time polymorphsim and Run-time polymorpshism
365447 [haribhat51@g] I wanted to know about complie-time polymorphsim
365450 [fxn@ha hr f.] As a rule of thumb Ruby is runtime-only. When you evaluate

Regular expressions, capture repeated groups
365448 [iainspeed@gm] ...
365457 [w_a_x_man@ya] s capture a named group, but not just once, get all it's repetitions and th=
365460 [iainspeed@gm] ...
365462 [botpena@gm i] wait till you call the 21st ;-)
365463 [iainspeed@gm] would be phenomenally useful, because scan returns arrays of strings and =

Write/Read File having Japanese characters as file name
365449 [uma.sudhi@gm] My requirement is to create new files by names from database(UTF8
365452 [luislavena@g] How are you retrieving the values from the database? Are sure is

Standalone Ruby executable with GUI
365454 [ralphs@do 32] ...
+ 365455 [skim.la@gm i] skim
| 365459 [ralphs@do 32] ...
+ 365482 [david.mullet] RubyScript2Exe to create the standalone executables but have more
| 365485 [michael.broo] I've had good success with wxRuby too.
+ 365484 [rogerpack200] Recommend Jruby (some GUI framework or other) + rawr for packaging.

open all sites free now
365456 [hossamalagmy] open all sites free now

[ANN] texticle 1.0.3 Released
365458 [aaron@te de ] texticle version 1.0.3 has been released!

Silencing Standard Error
365461 [babybluebeac] I am new here, so I apologize if this is a lame question. I have googled
+ 365471 [oscartheduck] Have you tried just simply stderr? You could either run the script and =
+ 365472 [b.candler@po] If you're running under some Unix-like O/S, then try
+ 365664 [shortcutter@] If you want to silence all error output and you run on some form of

Ruby Expect
365466 [rmasci@gm il] I have a expect scripts that I use to get from system to system, and
365468 [rilindo@gm i] Some of the functionality you usually utilize in Expect can be invoke in =
365469 [b.candler@po] There is also a separate wrapper library Net::SSH::Telnet which gives an

Where can I find shoes?
365474 [modtarget@ho] Hey. Just wondering if anybody knows where I can find Shoes? I've
+ 365475 [sophrinix@gm] check github.com
| + 365477 [juanjova@um ] Announcing a Ruby with Shoes Course... on 7th August
| + 365480 [modtarget@ho] Thank you so much.
+ 365606 [steve@st ve ] Hey, sorry I didn't see this until now.
+ 365607 [steve@st ve ] Hey, sorry I didn't see this until now.

cheap sale winter warm caps ( www.nike-black.com )
365476 [huhai101@gm ] Discount smet caps( www.nike-black.com )

Ruby WARC Parser
365478 [choward@in i] Is anybody out there working on a Ruby-based parser for the WARC (Web
411659 [lists@ru y- ] available

[ANN]  July Phoenix Ruby User Group Meeting
365481 [james.britt@] July Phoenix Ruby User Group Meeting

from functions to classes, where should I start?
365489 [jarodzz@gm i] Guys, I'm not sure if this is the right place to ask questions like this.
365502 [jfister@gm i] I began software development using OOP can't recall any books to
365518 [shortcutter@] The key word for this is "encapsulation".  I believe it is the most
+ 365520 [jarodzz@gm i] Thanks, Robert and Jay.
| 365544 [shortcutter@] The funny thing is, you can code OO even in a language like C.  Of
+ 365566 [colinb2r@go ] There are (at least) two interesting posts on this on Rick Denatale's Talk
  365568 [rick.denatal] ed paper