365447-366210 subjects 365847-368685

^ I'm trying to get the keys, but why values appear?
365662 [abder.rahman] I'm trying to write a script that lists ONLY the keys in a hash as
+ 365665 [stefano.croc] As you can see from the documentation (for example, with ri Hash#each),
+ 365666 [botpena gmai] the fun :)
+ 365667 [peterhickman] If you want the keys only you can do this
  365670 [abder.rahman] Thanks a lot all for your replies. It really helps.

^ Why do I get undefined method?
365668 [abder.rahman] I'm trying to write a script such that when you enter a year, you get
+ 365669 [stefano.croc] Because you call the method (line 3) before defining  it (line 6). Define the
+ 365671 [peterhickman] year == 2001..2006
+ 365672 [flo andersgr] as
  365674 [abder.rahman] But, I ALWAYS get "Out of range...". Why is that?
  + 365676 [peterhickman] year = gets
  | 365682 [abder.rahman] Thanks a lot Peter, that solves it. And, thanks for you other for your
  + 365684 [Rob AgileCon] Because gets returns a string (which will still have a newline). So
    365685 [abder.rahman] Thanks Rob. Yes, the issue seemed .to_i wasn't there.

^ yahoo finance api:Timeout::Error: execution expired
365673 [myocean135 y] i want  to download usa stock quote data via ruby-yahoo finance api,
365751 [b.candler po] I don't know anything about the Yahoo Finance API, but I know that if I

^ [ANN/ADV] The Compleat Rubyist, Philadelphia, October 1-2 2010
365675 [dblack rubyp] I'm very pleased to announce that the next Compleat Rubyist event will

^ Tripe equals ===
365677 [abder.rahman] What are === used for in Ruby? Do they work like .include?
365688 [b.candler po] There's a very good book here which will answer simple questions like
365692 [abder.rahman] Thanks.

^ ruby & flash
365678 [  adi dbe.ag] we do have a problem with a ruby site we are forced to maintain but have
365728 [joelvanderwe] I'll ask a dumb question: did you rebuild the .swf after changing the
365730 [  adi dbe.ag] swf was not rebuilt. Didn't see the need... the swf is interacting with
365742 [joelvanderwe] That's a problem. Try rebuilding using the flex compiler (mxmlc). The
365743 [  adi dbe.ag] I have no idea how to do that. I guess I have to try to find someone who
365748 [javaalley gm] After reading your problem.  I would recommend a couple of small ref-cardz

^ Consuming a SOAP Service using Savon Gem
365679 [saeed.bhuta ] I am trying to consume a SOAP service using the Savon gem but having
365698 [bdloving gma] check the results of the soap_actions
365699 [saeed.bhuta ] p client.wsdl.soap_actions doesn't return anything...
365711 [tony.arcieri] It doesn't look like there are any SOAP actions in your WSDL
365712 [saeed.bhuta ] Hmmm. However when I use soapUI, it seems to find the actions from the

^ How to install 1.9.2 on windows 7
365681 [bartee gmail] I am somewhat a noob !
+ 365701 [Ruby GoogleM] You install YARV 1.9.2 pretty much the same way you install YARV
+ 365725 [rogerpack200] what problems? Post back if it doesn't fix with 1.9.2
  365872 [bartee gmail] Installing 1.9.2 corrected my problem.

^ Errors in Ruby
365686 [abder.rahman] In the following sentence: The raise method is from the Kernel module.
+ 365709 [sandor.szuec] we
| 365715 [abder.rahman] Thanks Sandor.
| 365718 [lasso lassow] On 13 Juli, 16:51, Abder-Rahman Ali <abder.rahman....@gmail.com>
| 365719 [abder.rahman] Thanks a lot Lasso, that makes it clear.
+ 365710 [lasso lassow] On 13 Juli, 14:07, Abder-Rahman Ali <abder.rahman....@gmail.com>
  365714 [abder.rahman] Thanks for your reply.

^ Ruby 1.9.2 float precision
365687 [diogo.borges] The Liquid templating engine has the following tests passing till ruby
+ 365694 [shortcutter ] I question the validity of the test.  Expecting a particular
| 365703 [diogo.borges] Yes, I found it odd when I saw it myself. Though, since this was a
| 365713 [vikkous gmai] 1.9.2 has been changed so that float.to_s.to_f always round-trips with
| 365746 [diogo.borges] Thanks guys
+ 365819 [rogerpack200] I think it's something like this for <= 1.9.1
  365825 [diogo.borges] Thanks Roger. I'll wait and see if the guys from shopify will accept my
  368466 [rogerpack200] Enjoy.

^ Programming TCP-protocol Server (MineCraft)
365689 [hikay_akira ] There's this game called Minecraft (http://www.minecraft.net/)
365750 [b.candler po] If your server wants to accept incoming TCP connections from clients,
365789 [hikay_akira ] Thank you alot. I have begun writing the pseudocode and such.

^ rescue
365691 [abder.rahman] In this code: http://pastie.org/private/llneqf8bi5kf3i82q2ivw from
365693 [dhruva.sagar] If you are familiar to other programming languages such as Java, rescue is
365696 [abder.rahman] Thanks a lot. Yes, now I get it. If it is like "catch" in Java which I'm

^ Shouldn't this be called a global constant?
365697 [abder.rahman] In "why's poignant guide to Ruby" book, it mentioned that: $LOAD_PATH is
365700 [fxn hashref.] Not really.
365702 [abder.rahman] Thanks for your reply. So, is your point here, that anything starting
365704 [fxn hashref.] Correct.
+ 365706 [abder.rahman] Got your point. Thanks.
+ 365773 [colinb2r goo] Well, that's a good question that hadn't occurred to me in over 8 years, and
  365788 [b.candler po] Yes, that's all correct.

^ Ruby garabage collector
365721 [abder.rahman] "If you can't get to an object through a variable, then Ruby will figure
+ 365723 [oscartheduck] The simplest way to think of it is if something falls out of scope.
| 365727 [abder.rahman] Thanks James. Can you provide a simple Ruby code to clarify the idea. A
| 365729 [oscartheduck] A=20
| 365732 [abder.rahman] Thanks a lot James for your clarification.
| 365734 [oscartheduck] new=20
| 365736 [abder.rahman] Thanks a lot James for your advice. Yes, think have to read more deeply
| 365737 [sophrinix gm] This looks like the perfect opportunity to send this conversation way
| 365738 [abder.rahman] Thanks Andrew. Helpful...
| 365741 [ammarabuali ] ...
| 365745 [wyhaines gma] Kirk Haines
| 365747 [abder.rahman] Thanks everyone for your valuable information.
+ 365724 [sardaukar.si] a = [1,2,3].find {|x| x > 3}
| + 365731 [abder.rahman] Thanks Bruno.
| | 365733 [oscartheduck] requesting=20
| | 365735 [abder.rahman] Thanks James.
| + 365744 [rick.denatal] Actually this is a bad example for several reasons.
| + 365778 [kbloom gmail] Nothing gets garbage collected here becuase 1,2, and 3 are value objects
|   365796 [sardaukar.si] I stand corrected. Thanks!
+ 365757 [joelvanderwe] class C; end
  365758 [abder.rahman] Thanks a lot all.
  365769 [jeob32 gmail] Ali,

^ Discount Lacoste Coat
365739 [globaltrade2] ?=EF=BD=9E?=EF=BD=9E? Cheap wholesale BBC Coat, ED Hardy Coat, Bape Coat ec=

^ [ANN] unicorn 1.0.1 and 1.1.2 - fix rollbacks
365749 [normalperson] Theses release fix a long-standing bug where the original PID

^ What does this do?
365752 [abder.rahman] I have this portion of code from "Why's poignant guide to Ruby" book.
+ 365753 [oscartheduck] definition
| 365755 [abder.rahman] terminal on MAC OS X, and even online here: http://tryruby.org/
| 365780 [shortcutter ] Great!  Then you can try these things out.  In my experience knowledge
| 365793 [abder.rahman] That's right Robert. Thanks.
+ 365754 [josh.cheek g] I'm not really sure what you're asking, but I think that it is probably
  365756 [abder.rahman] Thanks Josh.
  + 365759 [hassan.schro] Open up irb and experiment until it's clear :-)
  + 365760 [josh.cheek g] The first character is zero, the last character is negative one (there is no
  | 365762 [abder.rahman] Thanks a lot Josh for your thorough clarification. This really helps.
  + 365761 [wishdev gmai] Afternoon,
    365763 [abder.rahman] Thanks everyone for your replies. Yes, things need experimenting with.

^ How can I get the result of this equation
365764 [abder.rahman] values = [10, 20, 30].each {|value| value + (value * 10)}
+ 365765 [ken70r gmail] Posted via http://www.ruby-forum.com/.
| 365768 [abder.rahman] Thanks Kenneth :-)
+ 365770 [jeob32 gmail] Ali,
  365771 [jeob32 gmail] more conclusively (using =)

^ Strange Loop 2010
365766 [eleanor game] I'll be talking about GoLightly at http://strangeloop2010.com/ in =

^ Advice for html project
365767 [webmaster in] I helping my boss with some scripting for a web analysis research
365772 [marco-oweber] Google for nokogiri. That's one solution.

^ How to update Ruby >>> CentOS
365775 [admin indexs] my data center has installed Ruby for me
365808 [jstewart fus] Seems like what you need is RVM. Makes it easy to install additional
365814 [admin indexs] i really can't understand the commands in the link you gave me.
365826 [kyleaschmitt] There is no official CentOS package for ruby 1.9.  You will either

^ Stdout as IO object
365776 [webmaster in] Okay, real simple question, but somehow I am missing it in the API: how
+ 365777 [ammarabuali ] Why not just pass $stdout itself?
+ 365786 [b.candler po] When your program starts, the constant STDOUT is an open file descriptor
  + 365824 [skim.la gmai] Instead of modifying the global variable $stdout, you could just pass in an
  + 365834 [webmaster in] The $stdout variable works fine. I was a little confused with $stdout at

^ [ANN] Ruby|Web Conference
365781 [blowmage gma] Hey all, I'm excited to announce Ruby|Web Conference, a new conference that

^ gets() -- Need to skip when no response after 20seconds
365782 [jazzezravi g] puts "Print your age"
+ 365784 [fred lacave.] begin
+ 365785 [b.candler po] require 'timeout'
  365790 [jazzezravi g] The script is still waiting for input from User.
  365791 [phasis gmail] r.
  365792 [jazzezravi g] But my environment is Ruby 1.8.7. I need to implement this particular
  + 365794 [phasis gmail] require 'Win32API'
  + 365795 [m.fellinger ] if select([$stdin], nil, nil, 20)
    365797 [ammarabuali ] IIRC, the last time I tried that on Windows (a while back) the select
    365798 [jazzezravi g] Thanks Park. Your code helps me to complete the task.

^ I have some questions about this modified String class
365799 [abder.rahman] I have the following script that I just have only slight changes in the
365803 [martindemell] class String
365806 [abder.rahman] Thanks a lot Martin. That makes it more clear.

^ Hiii
365800 [vinumams29 g] Can any one help me out for the below mentioned problem.
365835 [astahl hi5.c] If all you have available is the href, you could use nokogiri to get the

^ what's proble with ruby-mysql-prepare?
365801 [myocean135 y] Zimmer Holdings, Inc.
365802 [myocean135 y] require  'rubygems'
365804 [peterhickman] Whats with this
365809 [myocean135 y] there two ways to do it after test

^ How could I  post request with out parameters using  curb
365805 [millechili g] curl  POST -u login:pass --url http://test/item/176/start
365810 [millechili g] probably need to use something  else?
365820 [millechili g] hey, could anybody helm me..?

^ This script is a bit confusing!
365807 [abder.rahman] 1- def join( sep = $,, format = "%s" )
365816 [javaalley gm] class ArrayMine < Array  def join( sep = $,, format = "%s" )
366189 [abder.rahman] Thanks a lot.

^ Modules in Ruby
365811 [abder.rahman] If I type the following: puts MyModule.greet
+ 365812 [martindemell] Include it in a class
+ 365813 [abder.rahman] And, a small thing here. Can we say that "Modules" in Ruby are like
  365817 [martindemell] Modules in ruby serve a dual role as namespaces and mixins. You can
  + 365818 [abder.rahman] Thanks a lot Martin. Yes, "include" was the missing part.
  + 365821 [abder.rahman] puts MyModule::GOODMOODE
    365822 [skim.la gmai] In your private pastie, you have GOODMOOD, not GOODMOODE.  I think this
    366188 [abder.rahman] Thanks everyone for your replies.

^ Logger's sync and flush returns NoMethod error
365815 [RichardDummy] Below is my code, which works fine in Ruby 1.8.6 (with Rails 2.3.5),
365838 [b.candler po] sync= and flush are instance methods on IO objects. I don't think Logger
365933 [RichardDummy] I found these on http://maintainablesoftware.com/articles/rails_logging_tips

^ trouble waiting X minutes
365823 [teedubb gmai] I am making a constant network connection that is feeding me
+ 365833 [ben bleythin] dimensional
+ 365843 [b.candler po] Your program doesn't have any threads, so it will execute in lock-step.

^ click a javascript dialog window in Firefox
365828 [tcblues gmai] I'm trying to click a dialog box in Firefox but all the code I found is
366103 [jgabrielygal] $ ri startClicker
367658 [tcblues gmai] But the thing is... if you click first.. ff keeps waiting and doesn't
367659 [jgabrielygal] ")
+ 367660 [tcblues gmai] So there is no way to click the buttons on a javascript window
| 367662 [jgabrielygal] Inside Firewatir no, but why do you really need that? Your javascript
| 367663 [tcblues gmai] Because, in some cases the page is doing different things depending what
| 367665 [jgabrielygal] But then you can automate to one option or the other with
+ 367661 [jgabrielygal] er

^ RbConfig::CONFIG['CPP'] question
365829 [rogerpack200] => "gcc"
365830 [Rob AgileCon] CPP => C Pre-Processor

^ Re: RbConfig::CONFIGquestion
365831 [rogerpack200] Thanks.

^ [QUIZ][SUMMARY] Console-based Pixel Editor (#231)
365832 [yahivin gmai] There were no submitted solutions for this week's quiz, maybe consoles

365836 [pandyan.sent] ...

^ [OT] Cpp Complier
365837 [javaalley gm] I am trying to figure out which would be the best C++ compiler to install on
+ 365839 [sophrinix gm] on
| + 365840 [javaalley gm] Passenger currently does not have a windows version.  I was thinking of
| | 365841 [tony.arcieri] Hey member of the NetBeans Dream Team guy, you considered using JRuby on
| + 365842 [ammarabuali ] Interesting. The last time I tried to pass ruby's code through clang it
|   365845 [ammarabuali ] That should have been vm_exec.c, not vm.c
|   365846 [sophrinix gm] It's not Linux, but it might work.
+ 365857 [ninja slapha] I'm sure you know, but in case you don't, Ruby runs well enough on Windows

^ Return nothing when looking outside the bounds of 2D array?
365844 [shawnw inter] I have a 2D Array. I have written a method
+ 365850 [w_a_x_man ya] if ary[y]
| + 365853 [shawnw inter] Thx. Don't quite understand that code. I tried plugging in some nils but
| | 365869 [shawnw inter] A better way to describe it.
| | 365871 [groups.2009a] I was going to suggest using the 'case' statement instead of all those =
| | + 365917 [shawnw inter] Just be aware I'm a complete newb at programing and Ruby, so the more
| | | 365973 [groups.2009a] those=20
| | + 365938 [shawnw inter] Okay, just found out that...
| |   365944 [martindemell] The basic problem is that ruby doesn't have rectangular arrays, you
| |   365974 [groups.2009a] Hmm. I think you need to re-read my example, because my code *never =
| |   365982 [shawnw inter] Understood.
| |   + 365985 [martindemell] No, the simplest thing to do is what you've already done - write an
| |   + 365987 [groups.2009a] class HexArray
| |     + 366025 [martindemell] Looks good :)
| |     | 366263 [groups.2009a] That's what I thought, too.
| |     + 366051 [shawnw inter] Thx again - very instructive.
| |       + 366180 [shawnw inter] I think I got it. I did away with storing my cell data in a hash; rather
| |       | 366264 [groups.2009a] rather=20
| |       + 366270 [groups.2009a] main=20
| + 365874 [w_a_x_man ya] def get2d ary, x, y
|   365882 [w_a_x_man ya] in
+ 366057 [shortcutter ] Did anybody suggest modulo operator so far?  I only glanced over