First  |  Prev |  Next  |  Last
Pages: 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
How to pass a hash as a param to a method called through eval?
Hi Folks - I've got a data-driven app I'm building, and I'd like to be able to read a set of data from a json file, pass that to eval, and have it executed: json: { "action": "someFunc", "params": { "a": "foo", "b": "bar", "c": "etc" } } call = JSON.parse(json) eval("#{call['action']}... 12 Jul 2010 15:09
Basic Question: How do you check to see if gets is a num
Thanks Stefano. It has been a major help. Also, thank you to others who've responded. Stefano Crocco wrote: age_numeric = begin Integer(age) rescue ArgumentError puts "Enter a valid number" exit end #months is already an integer, so there's no need to call to_i on it monthsold = age_numer... 11 Jul 2010 15:57
Basic Question: How do you check to see if gets is a number?
I wrote a basic script that asks for your age then converts it into months, days and weeks old. I wanted to add some sort of control so that it would return an error if you didn't enter a number but rather a word or a letter or something. Can you please give me pointers? I've done quite a bit of Googling and am ... 11 Jul 2010 20:27
What does this mean?
I'm just new to ruby, and want to ask about what this means (I got it from Why's poignant guide to Ruby): http://pastie.org/private/wndhyi2zshltqzwippqb3q -- Posted via http://www.ruby-forum.com/. ... 11 Jul 2010 20:27
[ANN] Ruby 1.9.2 RC2 is out
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Ruby 1.9.2 RC2 has just been released. This is the second release candidate of Ruby 1.9.2. Psych library has been fixed since the previous candidate. And some minor bugs were fixed. See the NEWS[*1] and ChangeLog[*2] files for more details. *1: http://svn.... 11 Jul 2010 11:33
sample ruby program to talk to an exchange server
Hi, I'm looking for a sample programm to test the communication with an exchange server - connect, inquire data, add data, delete entry ... I was asked to check these possibilities but have no ruby experience. Would very much appreciate any help. Thank you in advance, Dany -- Posted via http://www.ruby-forum.... 21 Jul 2010 12:26
how to convert it into utf-8?
in my linux comsole: ghex2 /home/pt/myday there is the first line content AA3F3201861F0000D61F0000 would you mind to tell me how can convert it into utf-8? -- Posted via http://www.ruby-forum.com/. ... 12 Jul 2010 05:14
building 1.8.7 on ubuntu 9.10
I prefer to make use of my own ruby build for the most part, and for experimentation. I'm running Ubuntu 9.10 and I was surprised when I had issues building ruby 1.8.7 on it. First, I had to dig to find 1.8.7, there were no links on the main ruby website. Meanwhile Rails recommends 1.8.7. Then, math.c wouldn't... 11 Jul 2010 00:46
instructor solution manual for Cost Accounting-A Managerial Emphasis 13th Ed by Charles Horngren
I have solutions manuals to all problems and exercises in these textbooks. To get one in an electronic format contact me at: kalvinmanual(at)gmail(dot)com and let me know its title, author and edition. Please this service is NOT free. solutions manual to A Course in Game Theory by Osborne, Rubinstein solutions... 10 Jul 2010 21:30
Cannot do a universal build of Ruby 1.9.2 on MAC OS X 10.6
Hello, I have downloaded ruby-1.9.2-rc1.tar.gz from here: ftp://ftp.ruby-lang.org/pub/ruby/ I am trying to build it on 64bit mac osx, 10.6 in 32 bit kernel mode. (uname -m gives i386) I do the following: 1. ./configure --with-arch=x86_64,i386 ---> a universal build 2. Make ---> gives error .............. 10 Jul 2010 11:36
First  |  Prev |  Next  |  Last
Pages: 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57