First  |  Prev |  Next  |  Last
Pages: 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
class instance variable visibility to nested modules...
Hi, I'd like to organize the inner namespace of a class s.t. an inner, or 'nested', module (or class) has access to the instance variables of the outer class. After experimenting a bit, it seems there is no visibility to the outer class's instance variables possible. Do I conclude correctly? Thanks, Grar ... 24 Mar 2010 12:18
Learn Ruby - Lesson 0: Setup and Installation
Hello, I'm writing a tutorial for beginners, primarily aimed at Teachers and Students. I've written the following tutorial. http://www.oriontransfer.co.nz/education/learn-ruby/lesson-0/index Any feedback would be really really helpful. Thanks to anyone who takes a look. Any suggestions or feedback would ... 24 Mar 2010 07:41
how to install nokogiri
If your account can see ruby in /usr/local but root (sudo) can't, then check the path for root. Sounds like it doesn't include 'usr/ local/...' ... 24 Mar 2010 07:41
SQLite3 Exception
I have a simple IRC Bot that's running with ActiveRecord and a small SQLite3 DB. When I run as root, the db can be accessed fine, however, when I run it as a normal user, I get a SQLite3::SQLException: unable to open database file: error. Now I've already chmoded the DB to 0777 and set the owner to the user in qu... 6 Apr 2010 14:08
[ANN] PluginFactory 1.0.6
Version 1.0.6 of pluginfactory has been released. PluginFactory is a mixin for adding plugin classes to your application. It adds a 'create' method to your base plugin class that can be used to search for/and load them later. For example, if you want pluggable 'driver' classes for your library, you can defin... 23 Mar 2010 17:08
logging, rolling file, permission denied
On Dec 23, 2009, at 1:25 PM, Guillaume Guillaume wrote: Hi, I'm trying out the excellent logging 1.3.0 gem inside my rails application. It works nicely with stdout and file appenders but I'm unable to using the rolling file appender config. After running some debug sessions I found out that the w... 23 Mar 2010 14:46
Converting file from utf-16 to utf-8
Hi, I'm currently rewriting an old php-script in ruby. One thing this script is for is to open a file which is in utf-16, read it as utf-8, work a little bit with the data and save it into a database. However I tried to use Iconv to solve this but I've failed ;) The php script runs perfectly without any err... 24 Mar 2010 01:07
sort elements
Hello, I'm newbie so I apologize if my question it's stupid. I want to write a program that counts how many times a word appears in a text. This is my code: a = 'Apple car caR house tree ice ice ice house' b = a.downcase.split(' ') b.uniq.each do |element| puts "#{b.count(element)}\t#{element}" end But ... 24 Mar 2010 05:28
require, from within lib, files located under the local path
s/along the file.rb/along the main.rb/ -- Posted via http://www.ruby-forum.com/. ... 24 Mar 2010 00:00
Persistent Instance Vars on Soap Server.
Hello, I have code at http://mauthesis.com/test.rb I was under the assumption that each connection to this soap server would spawn a new instance of the main class and thus never have error on line 8 trigger. What would be the right way to assure every call was initializing these to prevent this persistence of in... 23 Mar 2010 00:06
First  |  Prev |  Next  |  Last
Pages: 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150