First  |  Prev |  Next  |  Last
Pages: 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175
algorithm to truncate date to beginning of week?
On Feb 9, 2010, at 1:32 PM, Chuck Remes wrote: I need to be able to take any date after Jan 1, 1980 and truncate it to the nearest week. Example: Wed Jan 09 17:53:23 -0600 1980 should truncate to Sun Jan 06 00:00:00 -0600 1980 Tue Feb 09 12:29:51 -0600 2010 should truncate to Sun Feb 07 00:0... 9 Feb 2010 16:15
[Q] algorithm to truncate date to beginning of week?
I need to be able to take any date after Jan 1, 1980 and truncate it to the nearest week. Example: Wed Jan 09 17:53:23 -0600 1980 should truncate to Sun Jan 06 00:00:00 -0600 1980 Tue Feb 09 12:29:51 -0600 2010 should truncate to Sun Feb 07 00:00:00 -0600 2010 I've tried all sorts of tricks with modulus (% ... 9 Feb 2010 13:58
Recommendations for a PostgreSQL driver for Ruby that supports bytea types correctly?
Can anyone recommend a PostgreSQL driver for Ruby that supports selecting and inserting bytea types? I'm not looking to write server functions in Ruby, just client applications. Thank you Eric. ... 9 Feb 2010 10:33
Problems using the 'extensions' gem - can anyone help?
I'm running Ruby 1.9.1-p378 (RC2) on windows, installed from the RubyInstaller.org site. I've installed 'extensions' gem ("gem install -r extensions"). When I run irb and try and "require 'extensions/all" I get the following error: C:\Windows\System32>irb irb(main):001:0> require 'rubygems' => false irb(mai... 9 Feb 2010 10:33
Ruby 'C' Extensions and Unicode
Hi, I am working on enhancing the IBM_DB Ruby driver (database driver for DB2 and Informix) by providing unicode support. I tried googling with no luck to find any documents or links which talk about the Ruby C extension API's that can be used to unleash the unicode support of Ruby-1.9 to 1) Convert Ruby st... 22 Mar 2010 10:29
ANN: toamqp 0.3.1
toamqp 0.3.1 has been released today. toamqp will allow you to transport thrift[1] messages via an AMQP broker. The interface makes this really super-easy - allowing you to concentrate on your stuff, as usual. Changes in this version are: * Interface rehaul - now more idiomatic * Ruby 1.9 compatible ... 9 Feb 2010 05:05
"Code must be Chunkable"
I watched Part 1 of this great lecture, and I just had to share: http://architects.dzone.com/videos/dci-architecture-trygve You can read my brief post on it here: http://proutils.github.com/2010/02/dci-architecture/index.html I love the line "Code must be Chunkable". Reminds me of _why. Also some int... 19 Feb 2010 15:29
Ruby equivalent for php openssl_pkey_get_public
Hello all I have the php script where the password encoding done using the openssl: $key = openssl_get_publickey($certificate); openssl_public_encrypt($pass,$userPassCrypted, $key,OPENSSL_PKCS1_PADDING); openssl_free_key($key); Now I trying to make the same with ruby require 'openssl' cert = OpenSSL::X... 8 Feb 2010 17:57
Recursive mkdir
So, I was surprised to find out that Dir.mkdir will not create all folders in a path when more than just the last level does not exist. Example: Dir.mkdir('/f1/f2/f3') will not create /f3 when /f2 does not exist. I expected it to make both /f2 and /f3 to get the job done. I expected it because the language I used m... 9 Feb 2010 09:27
Issue during multiple calls to C embedded Ruby with dlopen
Hi, I try to embed a Ruby interpreter into an application through a shared library. This application can call more than one time Ruby interpreter. In the attached testcase, first call works as expected but next calls create a segmentation fault. Any idea of what is wrong in my code or is it really a Ruby bug? ... 8 Feb 2010 14:30
First  |  Prev |  Next  |  Last
Pages: 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175