397231-398881 subjects 397688-397926

accessing hash value through variable?
397425 [lists@ru y- ] hey all!
+ 397427 [lists@ru y- ] Yes, and it works just like you tried above.
+ 397431 [lists@ru y- ] Thanks for you quick reply. The VAR-MD5 was a typo. sorry. The class
  397433 [lists@ru y- ] Then the string in the md5 variable doesn't exactly match the hash keys.

read and store definitions from an outer file
397432 [lists@ru y- ] testing scripts for my company. I have not had such problem that i
+ 397437 [jam@ja an be] Hey,
+ 397438 [sto.mar@we .] require 'yaml'
+ 397441 [lists@ru y- ] Using a Module as Jam suggested is probably the simplest way.
| 397466 [sto.mar@we .] For a config file that I or (somebody else) might want to edit
+ 397476 [lists@ru y- ] Thank you very much guys. I managed to make everything work w/ your

How to get the code block to be executed from a file?
397434 [lists@ru y- ] When working with  method blocks in ruby, how to get the code block to
+ 397436 [jgabrielygal] You could have file with the method definitions in a class or Module
+ 397508 [lists@ru y- ] Thanks a lot.

Array in an array - how to assign to individual array?
397439 [lists@ru y- ] I have 2 arrays.
+ 397440 [jgabrielygal] I'm not really sure I understand what you want to achieve, but when
+ 397442 [lists@ru y- ] Thank you for the quick response. I actually have the data as a hash.
| 397445 [lists@ru y- ] What exactly keeps changing? What might a different version of myhash
+ 397443 [ixti@me be .] a =3D ["array1", "array2"]
+ 397444 [lists@ru y- ] If the names keep changing, too, than a Hash isn't the right data
+ 397483 [lists@ru y- ] Yes that is correct. The data I have is in a table and I have it

Help needed with a TK Listbox
397446 [htruax@st .c] I have a TK listbox, it is set for selectmode=>"single". All I want to do
397473 [nagai@ai ky ] I recommend you to use TkBindTag and Tk.callback_break.
397477 [htruax@st .c] Thanks!

Ruby Association Grant Accomplishment Report
397462 [shugo@ru y- ] We the Ruby Association published the Ruby Association Grant
397518 [botpena@gm i] The docs translates fine. But it would be really of great help if the

SNMP detect Request Time out.
397465 [lists@ru y- ] Dears,
397478 [lists@ru y- ] What does the library do today under these circumstances? Does it raise

Code complexity (etc.) tools and 1.9
397480 [rubyhacker@g] I've just tried out reek, which is not a bad little tool... but it
397482 [sophrinix@gm] This question came up about three months ago at the nashville ruby meetup.
397592 [lists@ru y- ] I use flay/reek/flog with a small rake prelude which convert the files
397597 [ryand-ruby@z] IF ONLY it were that simple. :P

x on y on ruby
397486 [lists@ru y- ] <p>sajhfkjznckxzkjcnasdkfckjsdnkfjsdkjhngfdl
+ 397487 [sophrinix@gm] this is the ruby mailing list, not perl. :-P
+ 397510 [rubytalk2dav] Yes, but only up to Ruby 1.2.  That was changed in 1.5, generally

How to call script on a different host, in ruby?
397491 [lists@ru y- ] Say I want to run a script called s1.ksh from host1, but s1.ksh is
397492 [jam@ja an be] On Jul 11, 2012, at 2:59 PM, lalalalala pqpqpqpqpq <lists@ruby-forum.com> wr=

problem with HTTParty when get bing translator api access token
397494 [chenf.pro@gm] I am a newbie of ruby. This days I've been trying to write some translator

[ANN] Tork 18.2.2
397495 [sunaku@gm il] Tork - test with fork

[ANN] LSRC 6 - Early Bird Pricing Ends Sunday!
397497 [jimfreeze@gm] Is LSRC 6 Sold Out Yet??

undefined local variable
397499 [lists@ru y- ] I use watir in Radrails for testing my app. Iuse 2 classes in my test,
397500 [lists@ru y- ] i should first learn how ruby works before you use rails
397502 [shortcutter@] Also the sequence

how to check string is numeric or not
397503 [lists@ru y- ] I want to check the value is numeric or not
+ 397506 [ixti@me be .] def is_numeric(o)
| 397514 [lists@ru y- ] => 291
| 397515 [sto.mar@we .] or
| 397521 [ruby-talk@la] /\A\d+\z/ === o.to_s
| 397522 [shortcutter@] WTF?  (That's the first time I remember me writing this here.)
| 397524 [ruby-talk@la] Not quite. The question was about checking a value that could be a
| 397526 [sto.mar@we .] seems the original post is not very clear,
+ 397507 [shortcutter@] According to your example you want to check whether a string

Need some help to implement something in eventmachine.
397516 [eliezer@ng e] i am struggling to understand something.
397540 [alanschwarz@] I have the happy circumstance of having used EventMachine recently and I

[ANN] Ruby-Mongrel2 0.28.0 Released
397517 [ged@Fa ri MU] Ruby-Mongrel2 version 0.28.0 has been released!

detect ms sqlserver status
397519 [lists@ru y- ] I just want to use ruby script to detect if the MS SQLserver works
+ 397528 [eliezer@ng e] <SNIP>
+ 397551 [lists@ru y- ] Eliezer
  397556 [eliezer@ng e] what locked means? Locked on a firewall level?

[Download issue]
397523 [lists@ru y- ] We are facing issue related downloading the document
397525 [jam@ja an be] You may Wang to contact the rails mailing list.

Gem Installation or Running Gem
397530 [lists@ru y- ] I'm a WIndows user. I used the "one-click installer" and installed
397535 [u.alberton@g] The "require" statement is supposed to be used from inside a Ruby
397537 [sto.mar@we .] to install a gem (like e.g. `haml'), use from your command prompt

How to save an irb session including the command output to a file
397531 [brian.xue@ho] ...
397536 [lists@ru y- ] script mylog.txt
397538 [shortcutter@] As far as I can see that will save meta characters (escape sequences

Trying RDOC for the firsit time
397532 [lists@ru y- ] I'm trying to run rdoc command. I have tried the instructions(see

Re: [RubyInstaller] Re: The Ruby greener test challenge (a Windows challenge)
397533 [luislavena@g] extra

method clear wiping out other array ?
397539 [lists@ru y- ] Need help.
397541 [groups@in ox] Both variables point to the same array.
397542 [lists@ru y- ] Avdi,
397543 [ryand-ruby@z] so=20
397550 [lists@ru y- ] Ryan,
397552 [hassan.schro] You don't need a "work-around", you need to learn the language :-)

What is done by Ruby
397548 [lists@ru y- ] i was thinking of using the "string".start_with?
+ 397549 [lists@ru y- ] [array of domains].any? {|s| teststring.start_with?(s)}
+ 397560 [botpena@gm i] just reverse them before comparing or you can use regex to compare
  397561 [botpena@gm i] d="example.com"

Haye vs Chisora Live Stream Online HBO PPV Boxing espn360 hqhd TV
397553 [lists@ru y- ] Haye vs chisora live stream tv schdule .Haye vs chisora live stream tv

Chisora vs Haye Live Streaming Online Boxing 14 July 2012 EPIX TV
397554 [lists@ru y- ] Chisora vs Haye Live Streaming Online Boxing 14 July 2012 EPIX TV

Watch Haye vs Chisora Live Stream Boxing
397555 [lists@ru y- ] Watch Haye vs Chisora Live Stream Boxing

watir browser.button umlaut problem
397563 [a.schubert@d] ...
397565 [matma.rex@gm] Make sure that the webpage and your script are encoded in the same

How to iterate over nested hashes?
397567 [lists@ru y- ] I have a data structure like this:  {1=>{"foo"=>["bar", "baz"]}}
+ 397568 [lists@ru y- ] Because that's not how "each" works. You cannot call a method on "each"
| 397570 [lists@ru y- ] Thanks.  I was hoping that there was some super clean Ruby way to do
+ 397571 [lists@ru y- ] Well, even if you could do that, I don't find "each.each.each"
+ 397572 [ixti@me be .] You can do something like this (just an idea)

[ANN] timers 1.0.0: pure Ruby timer collections
397573 [tony.arcieri] The 'timers' gem provides easy-to-use timer collections that can be

What does this code do?
397574 [lists@ru y- ] I'm reading through a tutorial and found a solution for it (because I'm
+ 397575 [sduncan@we a] Without knowing much about ActiveRecord, I would imagine your users
+ 397576 [lists@ru y- ] Ok, thanx, I'll repost there.
+ 397594 [ryand-ruby@z] I'm
  397607 [ruby-talk@la] Seconded.

Unable to use Range method for excel
397577 [lists@ru y- ] Why the Range function (excel)inside my def is not recognize?
397582 [jgabrielygal] I don't know how WIN32OLE stuff works, but from the method names it
397601 [lists@ru y- ] Thank you for your reply and solved my issue :)

Newbie questions on the meanings of things in Ruby
397578 [lists@ru y- ] I am tasked with the development of puppet provider. I am a few days
397579 [jgabrielygal] You are calling the method #type of that class or module, passing the
397586 [thiagown@gm ] Puppet is a module which have a class Type,

Installation of Nokogiri fails
397580 [lists@ru y- ] Ubuntu 10.04
+ 397581 [ruby-talk@la] $ sudo apt-get install libxml2-dev libxslt1-dev
+ 397585 [hassan.schro] $ find $GEM_HOME -type f -name 'mkmf.log' -print

397583 [shortcutter@] All,
397584 [shortcutter@] OK, I got one clue: these threads all landed partially in GMail spam.
397593 [code@ap th o] I am not in a position to comment on GMail issues, but I can tell you
397617 [shortcutter@] I guess you are right.  My main error was not to look into Spam before

rounding to nearest even: nio gem?
397587 [wybo@xs al .] Is there a gem which makes it easy to round floats to the nearest even
397588 [matma.rex@gm] I'm not sure I understand what exactly do you want to do, or why would
397595 [wybo@xs al .] Round half to even

Providing a object-specific class scope?
397589 [space.ship.t] Is it possible to do something like this with Ruby?
397590 [space.ship.t] I hate to answer my own question, but after some more experimentation I
397591 [space.ship.t] Clearly I shouldn't be coding at 4am. The above example doesn't actually

[ANN] zenweb 3.0.0.b4 Released
397598 [ryand-ruby@z] zenweb version 3.0.0.b4 has been released!

[ANN] 2012 Call for grant proposals
397600 [shugo@ru y- ] The Ruby Association is looking to give grants for development
397635 [shugo@ru y- ] The above mail address is wrong.  The correct address is

extracting part of a string
397602 [lists@ru y- ] I have a file of the form
+ 397603 [wbrisett@at ] I'm sure somebody will come up with a one-liner (they always do). ;) But =
+ 397604 [lists@ru y- ] text = 'server.corp.abc.com:/vol/test/xyz
+ 397618 [shortcutter@] I like
+ 397625 [lists@ru y- ] Thanks to everyone.  I really liked them all and tried yours Robert and

undefined method error
397608 [lists@ru y- ] rid.database_columns[session_db_array[0]]
+ 397609 [jam@ja an be] You're calling database_columns on the rid object here.=20
+ 397610 [lists@ru y- ] Well, obviously the "Rid" object (whatever that is) doesn't have a
+ 397611 [lists@ru y- ] rid = Rid.new
+ 397612 [lists@ru y- ] Like I said, you have to make sure you're calling the method on the
| 397613 [lists@ru y- ] Ya.Thats there. But i want to do rid.save at the end and save the values
+ 397614 [lists@ru y- ] OK, I see what you mean. You want to use the values of
| 397615 [lists@ru y- ] Exactly. Sorry that i had not posted my question properly.
| 397616 [lists@ru y- ] It's better to use a hash instead of two arrays. You can even pass this
+ 397619 [lists@ru y- ] I cannot create a hash as I do not add all columns in database. It
| 397620 [lists@ru y- ] I am getting an error on using .send
+ 397621 [lists@ru y- ] This makes no sense. If anything Ruby would complain about *2* arguments
| 397622 [lists@ru y- ] The error is in .send only
+ 397623 [lists@ru y- ] `Originator'
+ 397624 [lists@ru y- ] Well, if you don't want to post the whole error message and the code,
+ 397626 [lists@ru y- ] Well I think i will just go with your hash idea
+ 397627 [lists@ru y- ] Problem solved. Thank you all :)

Read author of excel file
397628 [lists@ru y- ] I'm new to ruby and I'm trying to read metadata added to .xls file. I

[ANN] celluloid 0.11.1: actor-based concurrent objects for Ruby
397629 [tony.arcieri] Celluloid is a framework for multithreaded programming in Ruby inspired by

397630 [lydianblues@] ...

Ruby error while trying to run wxRuby first application.
397632 [lists@ru y- ] I copied the sample code from wxRuby documentation and trying to run on
+ 397633 [quintus@qu n] You=E2=80=99ve installed the gem for Ruby 1.8. To resolve the problem,
+ 397796 [lists@ru y- ] Thanks it worked.

Anyone with experience setting up Jenkins jobs? (Windows)
397634 [luislavena@g] I cross-posting this to RubyInstaller, TheCodeShop, RailsInstaller and

How can soap client call methods in a free way?
397636 [lists@ru y- ] I'm new to soap,

Re: Message from user jon_r45
397639 [shortcutter@] This is a code block which is used with #map in my code snippet.  It

Class not found error when calling a module::class method
397640 [lists@ru y- ] I'm working on a module to automate the creation of ebooks. When trying
+ 397641 [ryand-ruby@z] The method is NOT there. You're calling an instance method as a class =
+ 397642 [lists@ru y- ] #!/usr/bin/env ruby -w
| 397644 [chris.hulan@] according to your first code, the method is `check_html`
+ 397645 [lists@ru y- ] Thanks, that solved the problem.

what are the C extension analogs of String#force_encoding and String#encode?
397643 [nbeyer@gm il] Within C extension code, what are the appropriate C functions to use
397663 [lists@ru y- ] Welcome to ruby 1.9.x, where everything to do with string encodings is
397805 [nbeyer@gm il] I've noticed ... :)

Know the Status Of a Statement
397646 [lists@ru y- ] I am New to ruby and know little bit about ruby . Currently i am working
397658 [lists@ru y- ] What's the "status of the statement"? Could you please say exactly what

JSON.parse string
397650 [lists@ru y- ] I just stumbled over the fact, that the JSON parser from ruby 1.9.2
397651 [matma.rex@gm] Because that's how proper JSON is formatted? The toplevel "item" must
397652 [lists@ru y- ] From json.org, I read that a json value can be a string, a number, an
+ 397653 [jgabrielygal] A collection of name/value pairs. In various languages, this is
+ 397654 [matma.rex@gm] [https://tools.ietf.org/html/rfc4627]
  397656 [lists@ru y- ] Thanks Matma and Jesus , that helps. I find it to be a little odd, but I'm sure there is a reason, why it is defined as such.

Is there some seach algorithm available
397655 [lists@ru y- ] excel_value = "Deal Bitte"
+ 397657 [lists@ru y- ] So you're looking for the name with "deal" or "bitte" in it?
| 397659 [lists@ru y- ] The excel_value is a variable . It can contain 1 or 2 or 3 or 4 words
| 397660 [lists@ru y- ] Well, then replace the fixed keywords with the keywords from
+ 397661 [lists@ru y- ] def default_person(excel_value,person_list)
+ 397662 [lists@ru y- ] The "selected_name" variable is local to the block of the "each"
+ 397664 [lists@ru y- ] Thank you . Done

How to replace plain strings?
397665 [lists@ru y- ] "a b c".sub("b", "believe\\+me")
+ 397666 [lists@ru y- ] Please try the following code which works "a b c".sub("b",
| 397667 [lists@ru y- ] Since this string isn't hardcoded, I'll have to write a function to add
| + 397668 [yzn20080@gm ] Try "a b c".sub("b", Regexp.escape("believe\\+me"))
| + 397704 [shortcutter@] It's usually slower.  The intended use of the block form is where
+ 397670 [lists@ru y- ] In a replacement string, a raw backslash needs to be escaped with

[ANN] Pluto - Another Planet Generator in Ruby
397669 [gerald.bauer] I have just released the pluto gem. What's Pluto?

unless if not == unless post_on_ruby_forum
397671 [lists@ru y- ] So everything I have thus far read and heard about the Ruby unless
+ 397672 [matthew@ke w] die unless it_worked
| 397681 [ruby-talk@la] do_something or
| 397700 [matthew@ke w] Me too, usually.  Sometimes it's the case that, for example, you've
+ 397673 [hmaddocks@me] 'elsif' has to follow an 'if' NOT an 'unless'. It doesn't make sense to follow unless with an if statement. What you want is 'elsunless', but that doesn't exist in Ruby so chained unless statements aren't possible. Some people even frown upon 'unless/else' which is legal Ruby.
+ 397674 [sto.mar@we .] Your usage of unless is extremely unclear.
+ 397679 [lists@ru y- ] I think this is a technical misunderstanding. It's true that "unless"

Validation in ruby on rails
397675 [lists@ru y- ] Please Help me,in a model i give like validates_presence..... now i
397676 [ryand-ruby@z] 1) this isn't a rails list.
397677 [lists@ru y- ] Posted via http://www.ruby-forum.com/.

cross compile 1.9.3 fail in gentoo64 -> arm cortexA8
397678 [lists@ru y- ] CC=arm-none-eabi-gcc  ./configure --host=arm-none-eabi
397680 [lists@ru y- ] the toolchain is codesourcey, but cs have no pthread support.

ruby library for wget
397682 [lists@ru y- ] Is there a ruby library for wget ? I searched on google but couldn't
+ 397683 [tomar.arun@g] ...
+ 397684 [richard.conr] There is a ruby library for curl (curb), does curl support an equivalent of
  397686 [thiagown@gm ] Why don't you run the command yourself inside ruby and save the response? :)

odd "system" command behaviour with CUI and GUI
397685 [lists@ru y- ] Windows 7 64-bit, Ruby 1.9.3.
+ 397687 [matma.rex@gm] It works for me on Win XP. What is the return value of #system call?
| 397689 [lists@ru y- ] Thanks for your response.
| 397690 [lists@ru y- ] It works in Windows XP but fails on both Win7-64 machines I have acess to. Looks like WinPE platform issue?
| 397691 [lists@ru y- ] I have tried the attrib command on Windows 7 independantly of Ruby and it works from both the command console and the Run command. I can only assume that the command isn't being properly passed by Rubyw.exe on post-XP Windows systems.
| 397692 [lists@ru y- ] Based on further rb/rbw testing on Win7, it looks like GUI doesn't allow system commands that would normally be linked the the console, like attrib or cmd. Notepad launches fine from both of the interpreters. Interestingly the system command returns true even when it has no effect.
| 397693 [matma.rex@gm] That's weird.
| 397694 [lists@ru y- ] That works with an .rb extension but not .rbw
| 397697 [quintus@qu n] It=E2=80=99s been a while since I last did some Windows stuff, but if I
| 397698 [lists@ru y- ] By that point I may as well be using the windows API to hide the file directly
+ 397699 [lists@ru y- ] This workaround seems to work in principle. Not sure how I'm going to be
  397702 [lists@ru y- ] Aha, replace Script2 with a bat file written by Script1, and that