First  |  Prev |  Next  |  Last
Pages: 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
Increase significant digits in Float
Siep Korteling wrote: Xavier Noria wrote: That 15 is hard-coded in the definition of Float#to_s. Yes, and exposing more digits is not accurate: The float is bogus after the 16th digit. Working with big numbers here, it seems that precision is only guaranteed to 15 digits on either side of the ... 30 Jun 2010 11:59
optparser question
I am using optparser to parse arguments.How can I set a mandatory option? If user doesn't specify this option, parse() method should throw an error message. thanks, Zhao Yi -- Posted via http://www.ruby-forum.com/. ... 30 Jun 2010 08:39
pathname.rb:270: warning: `*' interpreted as argument prefix
/opt/local/lib/ruby1.9/1.9.1/pathname.rb:270: warning: `*' interpreted as argument prefix I keep getting this. I am including highline, sqlite3 and arrayfields in my code. I am using ruby -w inside my code. ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-darwin10] Mac OSX Intel (Snow leopard). I get t... 1 Jul 2010 06:40
Taking out text between symbols and joining together
Hello, I have some text files that I would like to extract text from, then join them on one single line and save them to a text file. Here is an example of the text I want to take out: <Title>Protein complexes in Saccharomyces cerevisiae (GPM06600002310)</Title> <ShortLabel>GPM06600002310</ShortLabel> <Pro... 30 Jun 2010 03:14
active_support classify truncating
I tried to use "my_class".classify and got MyClas as a result. Tried others that ended in 'ss' and got the same results. Tried other endings and they work. Ruby 1.9.2-preview3 and activesupport-3.0.0.beta4 is being used. Is this correct? If so, why? Don French ... 29 Jun 2010 19:36
thread.exit
Eric Christopherson wrote: What does that mean? My acronym-fu is broken. Please, let's all just leave this thread alone. The operative acronym is MINASWAN: Matz is nice and so we are nice. It's unfortunate when petty disputes become a permanent part of the history of ruby-talk, along with all the enlighte... 29 Jun 2010 17:23
Multi-cpu and ruby Threading
Hello, We receive a new PC based on I Core 7 on Windows 7. So i try to compare the use processors resources of each Ruby interpretor (JRuby,IronRuby,Ruby 1.9.1 ). I do the same (stupid) treatment by 1 to 8 threads, and measure the global duration. (test program is on attachment) Here is the result. c:\u... 30 Jun 2010 14:14
String Spliting/CSV question
Hey all, Just a quick questions regarding some data I am trying to process. I am reading a file which contains data like so HeaderA,HeaderB,HeaderC 1234545,"items, more, random, data",data extradata 1234325,"items, more, data",more stuff 1234125,"items, more, random, data, somethingelse",same 1232135,"stuff,... 29 Jun 2010 08:31
Net::SCP download from windows to linux and encrypt password
I am using Net::SCP to download/upload file. I am doing like this... ---- require 'net/scp' session = Net::SCP.start("10.10.10.10", "username", :password => "password", :config => false) sess.download! "/tmp/test.txt", "/root/" ---- It works well when the source machine is linux and path is like "/tmp/test.... 30 Jun 2010 04:19
editing text using $EDITOR from program
Does Highline or Thor/Facets/ActiveSupport etc have a method for when you want user to edit multiline text using the $EDITOR value? Commander has but it does not work with vim. So i wrote a method, if anyone has time please give it a look and give me feedback. Is it correct to pass back a nil if user does not edi... 6 Jul 2010 10:02
First  |  Prev |  Next  |  Last
Pages: 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68