374235-376330

374094-375238 subjects 374505-375226

ruby 1.9 open3 documentation/ translation http://www.a-k-r.org/pub/tokyo-rubykaigi-03-akr-2010.pdf
374235 [dsisnero@gm ] Can anyone help translate this file.  It seems to be the best /only

Math object in Ruby
374236 [dragriesti@c] puts(MATH::PI)
+ 374237 [sduncan@we a] Capitalisation issue?
| 374238 [dragriesti@c] Doh! Thanks. Can't believe I did that.
+ 374240 [josh.cheek@g] You could do something like this.

install mechanize
374246 [martin.kaspa] new to Ruby and new to this list.
374247 [hassan.schro] Install rubygems if you haven't already; `sudo gem install mechanize`
374296 [martin.kaspa] thx for answering! GREAT To hear  from you!
374298 [hassan.schro] That's the problem, and the solution :-)
374311 [martin.kaspa] i will visit nokogiri and have a closer look - greetings

New bies question - design of test scripts
374252 [joshbay84@gm] I am working on modifying existing watir scripts, which are written in

Celerity with Watir
374261 [tcblues@gm i] I'm trying to use celerity in my Ruby scripts.
374262 [richard.conr] You need to call your Ruby script with JRuby.

Configuring LAMP for Ruby created web pages (not Rails). 2010
374270 [e148759@bs o] I've used Rails on my own LAMPs with Phusion Passenger. Phusion really
374272 [b.candler@po] Phusion Passenger is basically mod_rack. You can sit on top of it any
374939 [headius@he d] JRuby's default settings are to allow the memory size to grow up to

break from a block
374271 [eva54321@si ] ...
+ 374276 [josh.cheek@g] 2010/11/24 Eva <eva54321@sina.com>
+ 374277 [b.candler@po] Yes that's right - minus all the &nbsp;'s :-)

break from a block [send again]
374273 [eva54321@si ] Zmlyc3RseSBzb3JyeSBmb3IgbXkgYmFkIHdlYm1haWwgdXNlcmFnZW50LCBzbyBJIGhhdmUgdG8g
374275 [tokenshift@g] Yes, that's correct.

How to write thread safe ruby code?
374279 [raghugada@gm] I am using RUBY VERSION: 1.8.6,Rails 2.3.2 and Backgroundrb. I am
374283 [rogerpack200] might help (especially "controlling concurrency")

inheriting a ruby class from different file location
374286 [davidreynon@] class ClassOne < ClassOneA
+ 374288 [cmdjackryan@] Yes.
+ 374290 [shortcutter@] You would require the file ClassOneA is defined in - it need not
+ 374291 [davidreynon@] Thanks for the help! This procedure worked!

Ruby's "More than one way to do things."
374299 [jason.lillyw] do it."
+ 374300 [matz@ru y- a] "There is more than one way to do it" is the slogan we borrowed from
| + 374301 [niklas@br ec] from a diversity of fields of expertise, let alone different worlds of
| + 374304 [scott@ai ru ] ...
| + 374377 [droleary.use] As someone who still has much more Perl under their belt than Ruby, mark
+ 374302 [stu@ru yp og] There are more than one way to do things because different programmers
+ 374306 [sduncan@we a] If I want to walk to my friend's house, why should I have to go in the
+ 374309 [jason.lillyw] Thanks everyone for commenting. I really enjoy using Ruby compared to
| + 374410 [diego.viraso] On Nov 24, 11:35=A0pm, Jason Lillywhite <jason.lillywh...@gmail.com>
| + 374511 [martindemell] This is an interesting blog post and discussion on the topic
+ 374327 [rubfor@re it] Ruby is very laid back. Although able to talk passionately at great
+ 374359 [rick.denatal] I think that that word 'obvious' is rather subjective.  I've found
+ 374409 [shadowfirebi] Programming languages -- at least, good programming languages -- shouldn't try to make programmers into better programmers, or force them to work in a certain way in order to get results.  (Imagine a toolbox that told you off for using the wrong screwdriver!)
| 374504 [timr@pr bo c] I believe that's almost 100% wrong.  A programming language that doesn't
| + 374510 [hramrach@ce ] I believe you are 100% wrong, There is no way to force people into
| + 374524 [shortcutter@] s,
| | 374564 [kannan.deepa] ging
| | 374583 [hramrach@ce ] The point is that there is no one right way, the right way depends on context.
| | + 374616 [shortcutter@] Ouch.
| | + 374631 [eleanor@ga e] context.
| + 374633 [eleanor@ga e] to
|   374643 [rubfor@re it] I don't think that is logically correct. As long as you can use some
+ 374806 [jason.lillyw] Thank you everyone for taking the time to reply to my question. This has

Problem getting gems in linux
374303 [leon.san.ema] ground with it. I'm making a simple application and discovered I needed
+ 374305 [leon.san.ema] Whoops, sorry guys. It seems I didn't quite grasp the concept correctly.
| 374323 [ryand-ruby@z] correctly.=20
| 374325 [leon.san.ema] Ahh ok. I knew Gems helped with the install, I just wasn't sure if it
+ 376330 [user@co pg o] Make your own life easier take the <a href="http://bestfinance-blog.com/topics/mortgage-loans">mortgage loans</a> and everything you need.

Dynamically creating webpages via Ruby
374307 [henleyphil@y] I'm just getting started with Ruby and have very little programming
374314 [josh.cheek@g] problems. This should be in a loop, as you said, and a loop will iterate
374328 [henleyphil@y] Thanks for the response.  The reason I want to approach it this way is
374333 [cmdjackryan@] Well, if your JavaScript is a function that takes arguments, you could
374461 [henleyphil@y] I probably should have just started with an example.  After typing out a

date of 1 year ago
374315 [zuerrong@gm ] How does ruby get the date of 1 year ago?
+ 374316 [stu@ru yp og] nice. never knew you could do that with the shell command date.
| + 374317 [zuerrong@gm ] does every year have the exact days of 365? no, IMO.
| | 374318 [stu@ru yp og] sorry try this one
| | 374322 [zuerrong@gm ] Well, how do you know every year has exactly 365 days?
| | 374330 [stu@ru yp og] I was just trying to get you to closer to the syntax of your gnu date
| | 374351 [Ron.Foster@w] Besides overriding the plus and minus operators to deal with days, the
| + 374319 [sakuro@22 8c] Remember it is one of GNU date's extension and is not portable.
|   374321 [stu@ru yp og] Thank you for the heads up. I'm on FreeBSD which should be the same
+ 374326 [usenet@is ik] d = Date.today
+ 374392 [reid.thompso] google  ruby + chronic

instance_eval vs attr_reader
374342 [nahpr@ya oo ] I would like to know what is faster (uses less memory) to retrieve data?
+ 374345 [stefano.croc] The former wouldn't work, because it would call instance_eval passing the
+ 374346 [shortcutter@] I guess "my_class" is meant to be an instance and not necessarily a
+ 374348 [cmdjackryan@] speed and memory requirements are not related to each other. It's
+ 374404 [nahpr@ya oo ] Thanks for everyone who replied. I MADE A MISTAKE IN MY ORIGINAL
  + 374405 [shortcutter@] Most Ruby programs use that approach.
  + 374407 [cmdjackryan@] 124 * 8 bytes << 2 GB of address space total (on a 32 bit system). ;)

Selenium API framework errors, need help
374344 [raju.10.thot] I am new to Ruby and using selenium automation framework but ended with
374381 [anton.shchan] require 'selenium-webdriver'

VERSION constant issue
374353 [transfire@gm] Ruby's VERSION constant is getting in the way of using #const_missing
+ 374355 [shortcutter@] Is this really an issue with ::VERSION?  To me this rather looks like
| 375389 [transfire@gm] Yes, it would be.
+ 374368 [ara.t.howard] hrm...
+ 374371 [josh.cheek@g] Here are my results.
| 375388 [transfire@gm] Hmmm... I haven't been able to quite get the rhyme or reason of the
+ 375395 [drbrain@se m] What would ::const_data provide that Module#constants, Module#const_get =
  375404 [transfire@gm] nd Module#const_set and direct constant access don't provide? =A0If it's so=

incompatible libruby-static.a using mkmf in bitnami stack
374358 [ben.pellegri] Im trying to install ruby-oci8 on Red hat and having difficulty getting

ANN main-4.4.0
374367 [ara.t.howard] NAME

last-input entered on command line
374375 [ian.asaff@gm] I'm writing a console application to teach myself Ruby. The app displays a

Idenyifying hidden elements
374378 [samarul.cs@g] I'm new bie to Ruby and watir . I wanna perform a button click

Add XSL stylesheet using Nokogiri
374379 [sin3141592@g] I am generating a XML file using Nokogiri. I would like to add a XSL
+ 374380 [niklas@br ec] -an-xml-document-with-nokogiri
| 374542 [mike.dalessi] OMG, there is so much fail here, I don't know where to start.
| 374546 [niklas@br ec] Great. Thank you. I didn't know that.
| 374551 [mike.dalessi] (see
+ 374382 [sin3141592@g] Thank your very much. For some reason I wasn't able to find any material

Should I do functional programming in Ruby?
374384 [raincolee@gm] I'm a high school student and beginner of ruby.
374387 [stu@ru yp og] Only you can answer that question.

How to package model classes for use in Rails and elsewhere
374390 [thebusyant@g] I have what is probably a relatively simple question.

[ANN] rake-compiler 0.7.5 Released
374391 [luislavena@g] rake-compiler version 0.7.5 has been released!

"<" method for array
374395 [eva54321@si ] SGksDQoNCkkgaGF0ZSB0aGVyZSBpcyBub3QgYSAiPCIgbWV0aG9kIGZvciBhcnJheSBvYmplY3Qu
+ 374397 [ymendel@po o] runcating then filling up the array?
+ 374398 [botpena@gm i] what do you mean? (apology for my english is poor)
+ 374455 [b.candler@po] => true

ruby and rails
374396 [eva54321@si ] RXZlcnl0aW1lIEkgdGFsayBhYm91dCBydWJ5LCBwZW9wbGUgd2lsbCBtZW50aW9uIHJhaWxzIGFs
+ 374399 [stu@ru yp og] I believe it's Turing complete so it's safe to say it can be used for
+ 374400 [rubfor@re it] I came across Ruby in the context of WATIR - a framework for testing web

Keypress event in ruby
374401 [moog_master@] based, no gui). My ruby knowledge isnt great but i would love to get
+ 374402 [stu@ru yp og] look into a library called ncurses
+ 374403 [moog_master@] Uum, that doesn't really answer my question, well it does.. but i would
| + 374426 [sentinel1879] ncurses also allows you to trap keystrokes, function keys, control and
| + 374427 [sentinel1879] I've cut this from a sample that comes with ncurses.
+ 374434 [moog_master@] Ah great, i guess i will stick to ncurses then. Thanks for the help guys

Newbie: two cool discoveries
374411 [diego.viraso] I just wanted to share a couple of things I've found out lately. I
+ 374412 [arturo.g.art] the "&" is a shortcut to "to_proc"
| 374422 [w_a_x_man@ya] Note that it's to_proc, not to_lambda. I don't see why
| + 374423 [josh.cheek@g] Because lambda is more pretentious (at least, thats why I use it)
| + 374468 [arturo.g.art] Yes, is to_proc.  not because is shorter and clearer, btw, but because is
+ 374413 [shortcutter@] I'm curios to hear whether you maintain that statement after seeing
| 374415 [diego.viraso] Good point. It never came to my mind that you could forget to give
+ 374421 [w_a_x_man@ya] when proc{|x| x.respond_to?(:to_a) && x.size>1}

Net::SSH.exec Using the "exec" method interactively
374416 [guillermo.ri] Recently i started playing with the Net::SSH gem. So far, good, but i
374456 [b.candler@po] You could try Net::SSH::Telnet, which gives Net::SSH the same API as

WIFE WITH HUSBEND HERE FOR DATING... ANYBODY THERE.....
374417 [iamforufrien] WIFE WITH HUSBEND HERE FOR DATING... ANYBODY THERE.....

error message
374418 [lars_werkman] Error in application
+ 374419 [josh.cheek@g] You say you changed "<require 'greeter_controller' to require
+ 374420 [lars_werkman] heey i love you man :P my problem whas that i had to require those other

Chat with cheating wife and date her now
374428 [avaguwvn@gm ] Why are you waiting here online Cheating wife

Ruby serialport
374429 [speedy.wizar] I am trying to find out, how should I work with the serialport

Re: =?gbk?B?W8Csu/jTyrz+XSBOZXQ6OlNTSC5leGVjIFVzaW5nIHRoZSAiZXhlYyIgbWV0aA==?= =?gbk?B?b2QgaW50ZXJhY3RpdmVseQ==?=
374430 [lyfi2003@si ] maybe you want to use exec! ?

[ANN] relative-require v1.0
374431 [jonas@pf nn ] relative-require.rb
+ 374432 [shyouhei@ru ] Why don't you use require_relative which is a standard ruby feature?
| 374443 [hutch-lists@] Is it? It seems to be an extension library. What does that mean anyway? =
| 374445 [james@gr ys ] Yes.  It was added in Ruby 1.9.
| 374544 [hutch-lists@] Thanks James. Is there online documentation for Ruby that's complete? I =
| 374558 [james@gr ys ] feature?
| 374698 [hutch-lists@] keeping a copy of the Pickaxe handy for at least that reason.
| 374699 [barsmithy@gm] Any one know how to unsubscribe from getting these emails ??
| 374702 [hutch-lists@] List-Unsubscribe: 	<mailto:ruby-talk-ctl@ruby-lang.org?body=unsubscribe>
+ 374433 [jonas@pf nn ] Good point. To tell you the truth, it's something that didn't exist in
  374435 [shyouhei@ru ] You don't need require_relative because you're doing the same thing as that

earn 200-300% just launched new doubler 15 m ago join fast
374436 [ptc2blog@gm ] ...

How to use Ruby like shell script?
374437 [raincolee@gm] Can I use ruby like my linux shell script(e.x. bash)?(or on the other hand,
+ 374438 [vderyagin@gm] Yes, you can.
+ 374441 [hassan.schro] You might be interested in `rush` => http://rush.heroku.com/
+ 374446 [james@gr ys ] $stdin.reopen(=85)
| 374449 [stu@ru yp og] backticks work very well as well and are in the bourne scripting
| 374451 [stu@ru yp og] I'm sure there are many bourne *again* specific resources out there but I
| 374464 [raincolee@gm] OH, sorry for my poor English.
| + 374466 [jgabrielygal] uby
| + 374467 [shortcutter@] You do not need to call "ls" from Ruby scripts because there are Dir[],
| + 374494 [stu@ru yp og] `backticks` are the keyboard symbol below the tilde.
|   + 374495 [stu@ru yp og] lol I just figured out one way to make your ls command into an array.
|   | + 374496 [julian@co et] derp.
|   | + 374497 [spam.entfern] That's not a good idea. File names can contain white space, line breaks
|   |   374499 [stu@ru yp og] Right on. looks like String#split will take regular expressions.
|   |   374500 [spam.entfern] File names can contain new lines.
|   |   374501 [stu@ru yp og] using tr (both in ruby and your shell) should help dealing with such
|   |   + 374515 [shortcutter@] This whole argument of yours just proves my point that the silliness
|   |   + 374530 [spam.entfern] None, you should use the system API to deal with directory and file
|   + 374514 [shortcutter@] No.  At least not on my keyboard anyway.  Remember that keyboard
+ 374450 [rilindo@gm i] Yu,

installing on Windows 7 64 bit
374439 [lodger@sy pa] I would like to install ruby 1.86 or 1.9 on Windows 7 64 bit but I do
+ 374440 [phrogz@ma .c] I use Ruby on Win7 64-bit at work with no issues.
+ 374442 [cmdjackryan@] Ruby will work on all Windows versions and editions since 2001. That

Re: relative-require v1.0
374447 [jonas@pf nn ] Sorry for not doing my homework first, I think I will unpublish this

Kernel.exec not behaving consistently on Windows?
374453 [jarmo.p@gm i] It seems that Kernel.exec doesn't work consistently on Windows when
+ 374454 [jarmo.p@gm i] Jarmo
+ 374458 [luislavena@g] Ruby 1.8.x Kernel#exec is broken. The changes required to fix this
  374459 [jarmo.p@gm i] But Rake only handles system and backticks - is the problem same with

ANJELINA JOLIE - KATE WINSLET HOT PICTURES AND PROFILES HERE
374463 [vithyam6@gm ] ...

abstract classes and modules
374465 [diego.viraso] for some code I am writing, I'd like to have a couple of abstract
+ 374471 [niklas@br ec] class Foo
| 374474 [ninja@sl ph ] Yes it does. Try it.
+ 374473 [ninja@sl ph ] Just do it.
  374481 [diego.viraso] Thank you for a very exhaustive reply. Much appreciated. :)
  374487 [ninja@sl ph ] I'm not sure how they would, anyway. After all...

(none)
374469 [zipinghappy@] ...
374480 [penyihirkeci] (none)

Loading variables from a file [Noob Question]
374477 [brick@li in ] Hey everyone,
+ 374479 [cmdjackryan@] Ruby 1.8.x ships with YAML, while Ruby 1.9.x includes JSON. Both
+ 374485 [diego.viraso] On Nov 28, 5:44=A0pm, Richard Mccormack <br...@livingwiththehorde.com>
+ 374502 [w_a_x_man@ya] On Nov 28, 11:44=A0am, Richard Mccormack <br...@livingwiththehorde.com>
+ 374506 [josh.cheek@g] The preferred way to open a file is with the block syntax because it ensures

Re: Loading variables from a file
374482 [brick@li in ] Ah, exactly what I was looking for! Thanks a ton, I can't believe I

Boots germany shop?
374483 [wlinlin8899@] I knows,I really LIKE THE GERMANY life,anyone is the same?

Refinements
374484 [transfire@gm] <a href="http://timeless.judofyr.net/refinements-in-ruby">Refinements</
374620 [transfire@gm] Why even use DelegateClass ?

Original Ruby Quiz site
374486 [kbloom@gm il] The original Ruby Quiz web site (http://www.rubyquiz.org/) is blocked by
374489 [stu@ru yp og] zsh% whois rubyquiz.com

rspec-2.2 is released!
374491 [dchelimsky@g] ### rspec-core-2.2.0
+ 374498 [no@sp m. le ] Great news David, but I have a question.
+ 374518 [ryand-ruby@z] [Upgrade.markdown](https://github.com/rspec/rspec-core/blob/master/Upgrade=

creating a openstruct from xml
374492 [devguy.ca@gm] object like of type OpenStruct where i can access everything like a
374493 [james@gr ys ] object like of type OpenStruct where i can access everything like a =
374579 [devguy.ca@gm] ject like of type OpenStruct where i can access everything like a property?
+ 374580 [james@gr ys ] a object like of type OpenStruct where i can access everything like a =
+ 374603 [mike.dalessi] You may want to check out Nokogiri's "slop" mode (invented by the
threads.html
top