First  |  Prev |  Next  |  Last
Pages: 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188
ruby-1.9.1: require 'rio' fails
Since moving to ruby-1.9.1-p243, when I try to install the rio gem, I get: $ sudo gem install -r rio Successfully installed rio-0.4.2 1 gem installed Installing ri documentation for rio-0.4.2... Updating class cache with 2676 classes... Installing RDoc documentation for rio-0.4.2... ERROR:... 3 Dec 2009 14:50
How to use tls1 but not sslv2/3 in https?
Hello All I need to https connect an apache server that only support tls1 protocol. How do I switch to use ONLY tls1 in https module? I searched over internet for a long while and found nothing useful for me. The apache server itself is ok. I could connect to it with IE by using tls1. My ruby scripts are a... 8 Dec 2009 04:16
How to Make Fast Online Money to Fill Your PayPal Account
If you do not use PayPal as your online payment processor, you should because it is one of the few most secure payment processors for your online money. There are many perks offered, such as direct deposit into your bank account, debit card services, and a credit card payment center. Read on to find out more abou... 3 Dec 2009 01:35
Encoding/decoding a image as Base64 (fails under Ruby1.9 butworks under Ruby1.8) [SOLVED]
El Jueves, 3 de Diciembre de 2009, Iñaki Baz Castillo escribió: The difference is in the second step, the decoding process, since "base64.txt" file is the same using Ruby1.8 or 1.9. Ok, the issue is fixed by uing "IO.read" rather than "IO.readlines": - Decode "base64.txt" as a PNG "new_icon.png" file: ... 2 Dec 2009 20:04
Encoding/decoding a image as Base64 (fails under Ruby1.9 but worksunder Ruby1.8)
Hi, the folowing code encodes and decodes a image file as Base64: - Encode "icon.png" in Base64 as "base64.txt": -------------------------------------- File.open("base64.txt","w") do |file| file.write [open("icon.png").read].pack("m") end -------------------------------------- - Decode "base64.txt" a... 2 Dec 2009 20:03
Help with complex array transformation
Hi I have a following method view(all_people, begin_date, end_date) That's give me an array like this: # for a first day (day 1) view("*", '2009-12-01 00:00:00', '2009-12-01 24:59:59') [[name_person1, room1], [name_person2, room2], [name_person3, room2]] # for a second day (day 2) view("*", '2009-12... 3 Dec 2009 05:56
why_sandbox 1.9 support
**I tried sending this to the list before. It turned out that I wasn't registered to ruby-forum so I am unsure as to if this made it to the mailing list. If this email already exists I apologize for the duplicate email** Greetings, I have begun the process of taking why's freaky freaky sandbox code and updati... 2 Dec 2009 15:30
How to use rb_enc_str_new() to create a String with UTF-8encoding?
Iñaki Baz Castillo wrote: VALUE rb_enc_str_new(const char *ptr, long len, rb_encoding *enc) { VALUE str = rb_str_new(ptr, len); rb_enc_associate(str, enc); return str; } But I have no idea on how to set 'enc' parameter to be "UTF-8". How should I fill the third '... 2 Dec 2009 17:49
Bug: Ruby 1.9.1 File io on Windows is slooooow
ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mswin32] "2 40.188834" ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] "2 0.087" That is about 5x slower write and 500x read operation. Times are the same if I do: f = File.new('out.file','r') c = f.read f.close P.S. Where ca... 2 Dec 2009 12:05
duda sobre nuevo metodo
mi routers.rb es ActionController::Routing::Routes.draw do |map| map.resources :alergias_pacientes map.resources :citas, :member => { :cambiar_estado => :put } map.resources :citas, :member => { :cambiar_estado_novisitado => :put } map.resources :citas, :collection => { :ver_esperando =>:get} m... 2 Dec 2009 18:56
First  |  Prev |  Next  |  Last
Pages: 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188