First  |  Prev |  Next  |  Last
Pages: 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
string array
I would like to know how I can put a word into an array character by character, for example the user type the word "hello" and the array would be ["h","e","l","l","o"], I only know how to this with gets but I don't want to press enter after every character. thanks in advance -- Posted via http://www.ruby-forum... 26 Mar 2010 13:09
Cognizance presents INSOMNIA: The Midnight Programming Contest
Cognizance 2010 presents Insomnia THE MIDNIGHT PROGRAMMING CONTEST... www.insomnia.cognizance.org.in Starts on : 27th March, 9:00 PM As the word itself implies "sleepless". Engage your programming faculties in the ultimate nocturnal coding challenge of all , after all all Big Boys play at Night!! Get ready to ... 26 Mar 2010 13:09
how to write in an array inside a block?
Hello, i want to write all files from my local directory in an array. Something like (not working): d = Dir.new("/Volumes/System/") d.each {|x| file_list.push(x) } How can i push single filenames through d.each into an array? Thanks a lot in advance! -- Posted via http://www.ruby-forum.com/. ... 26 Mar 2010 10:21
any ruby libraries for db4o
this object based database seems to be amazing. wondering if there is any ruby libraries. i searched rubyforge and could not find any. ... 28 Mar 2010 16:45
uninitialized constant CSV::Reader
Hi, I've searched google and these forums but can't find anything for this error i get. code in a file called test.rb ----------------------------- require 'csv' CSV::Reader.parse(File.open('stuff.csv', 'rb')) do |row| p row break if !row[0].is_null && row[0].data == 'stop' end -----------------... 31 Mar 2010 17:41
user input timeout.
i'v bin programming for about 2 week now and just about completed http://pine.fm/LearnToProgram/ but for a change of pace i started something of my own but i cant seem to get my program to wait X-seconds for user input. basicly what i got is: input= "empty" input= gets.chomp if input == "empty" puts "... 27 Mar 2010 04:24
Saving gzipped string into Sqlite3 via Rails throws unrecognized token error
On Thu, Mar 25, 2010 at 11:30 PM, pablitoman <thebusyant(a)gmail.com> wrote: Not sure if this belongs in the rails forum or here (it's a little of both)...  I'm using rails 2.3 and I'm trying to compress (gzip) text that I'd like to save using ActiveRecord into a sqlite database. However, the compre... 26 Mar 2010 02:30
Saving gzipped string into Sqlite3 via Rails throws unrecognized token error
Not sure if this belongs in the rails forum or here (it's a little of both)... I'm using rails 2.3 and I'm trying to compress (gzip) text that I'd like to save using ActiveRecord into a sqlite database. However, the compressed text isn't being saved b/c I get this type of error: SQLite3::SQLException: unrecog... 26 Mar 2010 04:40
[ANN] Ruby Summer of Code 2010
Fellow Rubyists, I'm proud to announce the first annual Ruby Summer of Code. In the best tradition of Google's legendary summers of code, Ruby Central, Engine Yard [1], and the Rails team [2] have joined forces to muster a legend of our own, a new summer program for student Rubyists to flex their open source migh... 25 Mar 2010 23:10
--disable-gems permanent?
Before I report a bug report to core on this one, thought I'd see if anybody had some feedback first. Currently with 1.9.1, if you run $ ruby --disable-gems test.rb where test.rb is: require 'rubygems' require 'gem_name' I get: C:\installs\ruby191p376\lib\ruby\gems\1.9.1\gems\redcar-0.3.3>ruby -v... 25 Mar 2010 18:34
First  |  Prev |  Next  |  Last
Pages: 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148