basic beginner help needed I am new to Ruby and have been looking for some basic beginner help. I have not been able to find a beginner forum anywhere, so I apologize if this is too basic a question for this group. I have installed ruby 1.9.1 on my windows 7 pc and have had success using interactive ruby (and the Windows command prompt). Wh... 26 Jul 2010 20:28
broken UTF-8 string begin File.new(path_file,"r").each { |line| puts line } rescue puts "Error read file #{subor}: #{$!}" next end In Ruby 1.9: broken UTF-8 string In Ruby 1.9.1: invalid byte sequence in UTF-8 Read files is mail in other codepage, example 1251, 1250 or 88952-2, 88592-1 utf-8... 24 Jul 2010 17:44
how to get private helpers into class methods? Hi, How do I use the same private helper method(s) inside different class methods? (In my current case, all the methods can be defined in the same class.) Thanks, Grar -- Posted via http://www.ruby-forum.com/. ... 27 Jul 2010 13:56
tryruby error How to insert the double quotes here? I cant pass this level Attachments: http://www.ruby-forum.com/attachment/4882/tryruby.JPG -- Posted via http://www.ruby-forum.com/. ... 24 Jul 2010 11:14
Text extraction from MS Office and PDF Hello, I'm looking for libraries to do text extraction from MS Office and PDF file formats. Also looking for libraries to do HTML rendering of documents in the same formats. I know of couple of commercial libraries from Oracle and Autonomy, but they only have C and/or Java APIs. I also found this project http://... 27 Jul 2010 21:42
How do I upload an image with Sinatra (like Paperclip)? phanks: post '/upload' do unless params[:file] && (tmpfile = params[:file][:tempfile]) && (name = params[:file][:filename]) @error = "No file selected" return haml(:upload) end directory = "public/files" path = File.join(directory, name) File.open(... 30 Jul 2010 14:04
re-organize original text data then write in files Dear all, Recently, I have to do this job. Re-organize the original text data then write in files. The original data is like this (tsv format). First line: time_1.1 signal_1.1 time_2.1 signal_2.1 ... time_4096.1 signal_4096.1 (total 4096 pairs). Second line: time_1.2 signal_1.2 time_2.2 signal_2.2... 27 Jul 2010 18:22
Unsubscribe Date: Sat, 24 Jul 2010 06:30:10 +0900 From: alan(a)blogometer.com Subject: Re: Determining the Source File of a Class To: ruby-talk(a)ruby-lang.org Ryan Davis wrote: On Jul 23, 2010, at 13:40 , Alan Gutierrez wrote: I'm trying to debug a bug where I seem to have a class that has two... 24 Jul 2010 18:49
rmagick for Ruby 1.8.6 won't work for Ruby 1.8.7? if i install 2.12.0 binary gem for Ruby 1.8.6 2009-10-04 16:05 RMagick-2.12.0-ImageMagick-6.5.6-8-Q8.zip which is from http://rubyforge.org/frs/?group_id=12&release_id=43232 then when i use ruby 1.8.7 to require 'rubygems' require 'rmagick' it will say: c:/ruby/lib/ruby/site_ruby/1.8/rubygems... 23 Jul 2010 21:18
Comparison of ways to install Tk In the recent discussion of installing Tk in a Windows Ruby installation, I learned of the existence of tk-win. I already knew about tk_as_gem and ffi-tk. What are the advantages and disadvantages of each one? Also, I'm unclear on which platforms they run on. I assume tk-win is only for Windows. How about the ... 24 Jul 2010 11:14 |