Ruby check permission
I wanna know how to check for a permission in a file, 'cause I see there is a method for changing the file permisison but there is no method to get the current ls -l (-l string). Any Ideas?. Tnx for a soon reply. ... 24 Jun 2010 19:42
Newbie - how to use SQLite3 ?
I am just learning Ruby language. I downloaded SQLite3 database using gem - "gem list" shows that SQLite3 is installed. My question - how to create a database? I tried to do it from a DOS prompt - it didn't work. Thanks, Zalek ... 25 Jun 2010 07:41
float: out of range issues
christoph.heindl(a)gmail.com wrote: Hi, it seems I have messed up my system somehow to produce strange floating point parsing errors (out of range). -- Environment This pc here is running Windows Vista SP 1 (English) and a fresh installation of ruby (ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-... 29 Jun 2010 12:57
Is the CGI instance "html" method no longer available?
> undefined method `html' for #<CGI:0xb783f268> (NoMethodError) ??? -- "It's the preponderance, stupid!" - Professor Stephen Schneider, IPCC member ... 24 Jun 2010 14:07
[ANN] Money 3.0.4
Money 3.0.4 Released - Updated #exchange to avoid floating point rounding errors - Use :subunit_to_unit in #to_s, #to_f and #format - Added :separator and :delimiter to Currency - Deprecated Money#SEPARATORS and Money#DELIMITERS - Updated the attributes of the Chilean Peso -- Posted via http://www.ruby-for... 24 Jun 2010 13:00
IO select. Reconnect procedure.
It still happens, but very rarely... The bot kicks in again if I write anything in the window($stdin). Does anyone have any thoughts on this? //Walle -- Posted via http://www.ruby-forum.com/. ... 25 Jun 2010 05:32
Count substrings in string, scan too slow
Hello everyone, I need to count the number of times a substring occurs in a string. I am currently doing this using the scan method, but it is simply too slow. I feel there should be a faster way to do this since the scan method is really designed for more advanced things than this. I do not need to do regex ... 29 Jun 2010 22:53
ruby gem installation problem on MAC PC which is behind firewall
Hi , Please provide me solution for the problem of, 1) How to install ruby gems on MAC PC(OSX 10.5.1) which is behind corporate firewall . Regards, Sun ... 24 Jun 2010 11:49
marshalled data in 1.9
Is there the possibility this would fail in 1.9? big = eval(File.read("out_inspect.small")) File.open("out.marshal", "w") do |f| f.write(Marshal.dump(big)) end Marshal.load(File.open('out.marshal', 'r')) When I do this with large structures (on windows) I get messages like: bad.rb:7:in `load': dump... 25 Jun 2010 20:51
Help with leap year programing
The problem comes from a beginner´s tutorial. Using methods like .leap? of course work just fine. However, a beginner is not familiar with them. This a way to do it using the tools showed in the same tutorial up to that level: puts "Give me the two years" year1 = gets.chomp.to_i year2 = gets.chomp.to_i ... 23 Jun 2010 17:17