First  |  Prev |  Next  |  Last
Pages: 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
[Q] synchronize a "mocked" clock in a distributed system
I've been banging on a problem for a few days now and don't feel any closer to solving it. I'm hoping some of the big brains on the ruby ML can shed some light. Following are a few paragraphs with a brief system overview before I state the problem. I apologize in advance for this question being only tangentially relate... 1 Jul 2010 17:48
Handling exceptions
I was reading the pick axe book (for 1.9 version of ruby) and on page 155 it talks about exception handling. More specifically, it says that beginners usually make the mistake of putting in the begin end block. Now, I am a ruby newbie but, how do you handle exceptions for if it is not in th... 2 Jul 2010 07:59
FasterCSV - write tab delimited files
Hi, I'm using FasterCSV to write out a tab delimited file. For empty fields, does anyone know if there's a way to not put in empty quotes ("") for nil or blank fields? Thanks -- Posted via ... 1 Jul 2010 16:41
Running a shell command from ruby
I am experimenting with running bash commands from within ruby. The commands should be in an array, separated internally with semicolons. The problem is that they do not get executed. My script: ---- #!/usr/bin/ruby script1=["touch ~/ruby/f1;touch ~/ruby/f2"] #addl array elements to be added puts scrip... 1 Jul 2010 22:15
send_file sends an empty file to browser
Hi, I'm using merb as a framework but I suspect the issue is related to ruby and my system. When I use send_file with an absolute path it sends an approrpriately named file to the browser, but the file is empty. The file exists on the disc and has content. Any suggestions about resolving this? I've been stru... 1 Jul 2010 13:19
Mimic AES_ENCRYPT and AES_DECRYPT functions in Ruby
Having no luck with this. Getting the following error when generating they key in 1.8.7 and 1.9.1. Any help would be much appreciated. ruby-1.9.1-p378 > key = "test_key" => "test_key" ruby-1.9.1-p378 > final_key = "\0" * 16 => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" ruby-1.... 2 Jul 2010 12:24
ANN: Sequel 3.13.0 Released
Sequel is a lightweight database access toolkit for Ruby. * Sequel provides thread safety, connection pooling and a concise DSL for constructing SQL queries and table schemas. * Sequel includes a comprehensive ORM layer for mapping records to Ruby objects and handling associated records. * Sequel supports ad... 1 Jul 2010 12:11
WIN32OLE memory leaks
On Mar 24, 2010, at 3:12 PM, Chuck Remes wrote: On Mar 24, 2010, at 3:09 PM, Chuck Remes wrote: I have continued to chase this problem down. I think I may have a lead, but I need someone familiar with the win32ole.c code to confirm or deny my suspicions. I have pastied the invoke method here: ht... 1 Jul 2010 12:11
New AES gem available -- fast-aes
Nate Wiger wrote: I've just released a new AES gem for Ruby, written in C for speed. This gem leverages some open source AES C code that has been in use Great. Hopefully what I've been looking for. I've been using Encryptor.encrypt(:value => string , :key => key, :algorithm => 'aes-128-cbc') in a module c... 1 Jul 2010 13:19
Fast searching of large files
Hey all, Could anyone advise me on a fast way to search a single, but very large file (1Gb) quickly for a string of text? Also, is there a library to identify the file offset this string was found within the file? Thanks -- Posted via ... 1 Jul 2010 15:33
First  |  Prev |  Next  |  Last
Pages: 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66