# Ruby

**URL:** https://www.ruby-forum.com/c/ruby/7.md?page=844

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 845

---

## [Word Search Generator (#159)](https://www.ruby-forum.com/t/word-search-generator-159/135188)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 3\
**Last updated:** [April 24, 2009, 7:27am UTC](https://www.ruby-forum.com/t/word-search-generator-159/135188 "2009-04-24T07:27:37Z")

</div>

Adam S. was our sole submission this week, so we are going to take a look at his solution to the quiz. Adam’s first bit of code is a simple class, CrossWord: class CrossWord attr\_accessor :word, :place, :dir def ini…

---

## [Gem Proxy](https://www.ruby-forum.com/t/gem-proxy/166329)

<div class="topic-metadata">

**Author:** [@kule](https://www.ruby-forum.com/u/kule)\
**Replies:** 2\
**Last updated:** [April 24, 2009, 4:58am UTC](https://www.ruby-forum.com/t/gem-proxy/166329 "2009-04-24T04:58:47Z")

</div>

Hello, I’m sure this is already a solved problem, but I’m trying to perform gem installations with jruby -S gem install rails from behind a corporate proxy. I have tried setting my env HTTP\_PROXY, but I’m not having …

---

## [Kernal::binding problem](https://www.ruby-forum.com/t/kernal-binding-problem/166255)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 6\
**Last updated:** [April 24, 2009, 3:30am UTC](https://www.ruby-forum.com/t/kernal-binding-problem/166255 "2009-04-24T03:30:59Z")

</div>

Trying this for the first time, and, as usual, not quite getting it. Everything I can find on kernal::binding tells me that I just call it and will get back a binding object which can be passed in a call to eval. But……

---

## [Planning?](https://www.ruby-forum.com/t/planning/163763)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 1\
**Last updated:** [April 24, 2009, 2:20am UTC](https://www.ruby-forum.com/t/planning/163763 "2009-04-24T02:20:13Z")

</div>

Hi John announced at Mix that the aim is to release in June 09. That officially gives Michael and me a deadline around mid may probably. At that time it should be ready for RTM. I have chapter in my TOC about webf…

---

## [Installing SWIG on Windows For Ruby 1.8.6](https://www.ruby-forum.com/t/installing-swig-on-windows-for-ruby-1-8-6/166281)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 1\
**Last updated:** [April 23, 2009, 10:56pm UTC](https://www.ruby-forum.com/t/installing-swig-on-windows-for-ruby-1-8-6/166281 "2009-04-23T22:56:06Z")

</div>

Hello Everyone… I m running on windows and i have Ruby 1.8.6 installed. now i would like to use SWIG for creating Ruby Extension in C. i have googled that how to use and how to install SWIG on Windows. but they were …

---

## [(Zlib::GzipFile::Error) not in gzip format](https://www.ruby-forum.com/t/zlib-error-not-in-gzip-format/166293)

<div class="topic-metadata">

**Author:** [@rgagnon](https://www.ruby-forum.com/u/rgagnon)\
**Replies:** 2\
**Last updated:** [April 23, 2009, 9:35pm UTC](https://www.ruby-forum.com/t/zlib-error-not-in-gzip-format/166293 "2009-04-23T21:35:30Z")

</div>

hello, since now I can’t install or update any gems. I got this error. C:\>gem install rails ERROR: While executing gem … (Zlib::GzipFile::Error) not in gzip format I’m on vista and it was working last week for sure…

---

## ["uninitialized constant Nokogiri (NameError)"](https://www.ruby-forum.com/t/uninitialized-constant-nokogiri-nameerror/166317)

<div class="topic-metadata">

**Author:** [@yooakim](https://www.ruby-forum.com/u/yooakim)\
**Replies:** 3\
**Last updated:** [April 23, 2009, 9:10pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-nokogiri-nameerror/166317 "2009-04-23T21:10:50Z")

</div>

I’m trying a very simple Ruby program: require ‘nokogiri’ doc = Nokogiri::XML(File.open(“Alla.xml”)) Whenever I run this I get “uninitialized constant Nokogiri (NameError)” Nokogiri is installed as far as I know, he…

---

## [Code Review: core/env/clear](https://www.ruby-forum.com/t/code-review-core-env-clear/166319)

<div class="topic-metadata">

**Author:** [@Tim\_CSSSDO](https://www.ruby-forum.com/u/Tim_CSSSDO)\
**Replies:** 1\
**Last updated:** [April 23, 2009, 9:09pm UTC](https://www.ruby-forum.com/t/code-review-core-env-clear/166319 "2009-04-23T21:09:40Z")

</div>

Hi all! I’ve just started to learn IronRuby a week or two before, and Shri showed me through screenshare about mspec and fixing rubyspec bugs in general. So for my first contribution, I just did a one line change to …

---

## [Strange behavior when redefining methods on object instances (possible bug)](https://www.ruby-forum.com/t/strange-behavior-when-redefining-methods-on-object-instances-possible-bug/166166)

<div class="topic-metadata">

**Author:** [@murena](https://www.ruby-forum.com/u/murena)\
**Replies:** 2\
**Last updated:** [April 23, 2009, 8:31pm UTC](https://www.ruby-forum.com/t/strange-behavior-when-redefining-methods-on-object-instances-possible-bug/166166 "2009-04-23T20:31:30Z")

</div>

Hi, while in the process of trimming down the failure rate of the core/array specs I noticed a strange behavior of IronRuby. I’m pasting here two repl sessions I used to reproduce it: \>\>\> foo = Object.new =\> #\<Object…

---

## [Rb\_raise problem in C extension](https://www.ruby-forum.com/t/rb-raise-problem-in-c-extension/166206)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [April 23, 2009, 7:50pm UTC](https://www.ruby-forum.com/t/rb-raise-problem-in-c-extension/166206 "2009-04-23T19:50:23Z")

</div>

I am using Ruby 1.8.6-26 from the One Click Installer on Windows. I have a C extension that tries to calloc() memory. If the calloc() fails I call rb\_raise(rb\_eNoMemError,“Cannot allocate data”). My program is getting…

---

## [Class variable confusion](https://www.ruby-forum.com/t/class-variable-confusion/166289)

<div class="topic-metadata">

**Author:** [@ksader](https://www.ruby-forum.com/u/ksader)\
**Replies:** 5\
**Last updated:** [April 23, 2009, 7:05pm UTC](https://www.ruby-forum.com/t/class-variable-confusion/166289 "2009-04-23T19:05:51Z")

</div>

Hi, Could someone explain how i get this to work please: module Keith def self.greeting @greeting ||= “hello” end def self.greeting=(value) puts “updating knowledge” @greeting = value end def self.speak puts g…

---

## [Error "cannot load Java class"](https://www.ruby-forum.com/t/error-cannot-load-java-class/166277)

<div class="topic-metadata">

**Author:** [@amabdelsalam](https://www.ruby-forum.com/u/amabdelsalam)\
**Replies:** 2\
**Last updated:** [April 23, 2009, 6:51pm UTC](https://www.ruby-forum.com/t/error-cannot-load-java-class/166277 "2009-04-23T18:51:39Z")

</div>

I’ve created two java classes that I’m trying to call from ruby file. I put the java classes with the ruby file in the same directory, and tried to run. I accessed java classes from the ruby file using full class path…

---

## [Write output to multiple files](https://www.ruby-forum.com/t/write-output-to-multiple-files/166290)

<div class="topic-metadata">

**Author:** [@milo](https://www.ruby-forum.com/u/milo)\
**Replies:** 2\
**Last updated:** [April 23, 2009, 6:48pm UTC](https://www.ruby-forum.com/t/write-output-to-multiple-files/166290 "2009-04-23T18:48:17Z")

</div>

I have encountered something I thought would be trivial but I can’t quite get it to work properly. I have a load of data that is stored in various locations and need to create several files, one for each location, eac…

---

## [Ruby or JRuby](https://www.ruby-forum.com/t/ruby-or-jruby/166070)

<div class="topic-metadata">

**Author:** [@raven13](https://www.ruby-forum.com/u/raven13)\
**Replies:** 18\
**Last updated:** [April 23, 2009, 6:46pm UTC](https://www.ruby-forum.com/t/ruby-or-jruby/166070 "2009-04-23T18:46:29Z")

</div>

Hi i’m new here and new with Ruby. I just start to learn Ruby and Ruby on Rails. My question is wich between Ruby or JRuby should i learn. What the diffrence and why one and not the other one. Thanks :slight\_smile:

---

## [Unicode escaping fun & games](https://www.ruby-forum.com/t/unicode-escaping-fun-games/166304)

<div class="topic-metadata">

**Author:** [@Andrew\_SSTownley](https://www.ruby-forum.com/u/Andrew_SSTownley)\
**Replies:** 0\
**Last updated:** [April 23, 2009, 6:20pm UTC](https://www.ruby-forum.com/t/unicode-escaping-fun-games/166304 "2009-04-23T18:20:38Z")

</div>

Hi folks, After my last question, I finally sat down and figured out how to easily do the kinds of conversions I wanted (at least the Unicode UTF-8 part). Here’s what I came up with in the event that it may be useful …

---

## [Parsing String#dump data?](https://www.ruby-forum.com/t/parsing-string-dump-data/166275)

<div class="topic-metadata">

**Author:** [@Andrew\_SSTownley](https://www.ruby-forum.com/u/Andrew_SSTownley)\
**Replies:** 4\
**Last updated:** [April 23, 2009, 5:13pm UTC](https://www.ruby-forum.com/t/parsing-string-dump-data/166275 "2009-04-23T17:13:07Z")

</div>

Hi, I was wondering if there was a better/safer way to parse string data that has been dumped using the String#dump method. At the moment, I’ve been using regular expressions to do it, but that doesn’t seem to work …

---

## [Lone Star Twitter Conference 2009](https://www.ruby-forum.com/t/lone-star-twitter-conference-2009/166240)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [April 23, 2009, 4:35pm UTC](https://www.ruby-forum.com/t/lone-star-twitter-conference-2009/166240 "2009-04-23T16:35:30Z")

</div>

Greetings The Lone Star Ruby Conference is being renamed. We are now LSTC, the Lone Star Twitter Conference. We are accepting submissions for talks that have anything to do with Twitter, tweets, twitter-mania, you n…

---

## [Problem insalling mongrel/mysql with Ruby 1.9.1](https://www.ruby-forum.com/t/problem-insalling-mongrel-mysql-with-ruby-1-9-1/166265)

<div class="topic-metadata">

**Author:** [@tkbeili](https://www.ruby-forum.com/u/tkbeili)\
**Replies:** 1\
**Last updated:** [April 23, 2009, 3:20pm UTC](https://www.ruby-forum.com/t/problem-insalling-mongrel-mysql-with-ruby-1-9-1/166265 "2009-04-23T15:20:04Z")

</div>

Hello, I upgraded to Ruby 1.9.1 and I was trying to install Mongrel: gem install mongrel I got the following error: ERROR: Error installing mongrel: ERROR: Failed to build gem native extension. /usr/local/bin/ruby…

---

## [ActionMailer outside of Rails to send HTML mails](https://www.ruby-forum.com/t/actionmailer-outside-of-rails-to-send-html-mails/166273)

<div class="topic-metadata">

**Author:** [@ptriller](https://www.ruby-forum.com/u/ptriller)\
**Replies:** 1\
**Last updated:** [April 23, 2009, 1:01pm UTC](https://www.ruby-forum.com/t/actionmailer-outside-of-rails-to-send-html-mails/166273 "2009-04-23T13:01:04Z")

</div>

I am trying to build a small newsletter application. I am however failing somehomw… I am trying this simple sample code: require 'net/http' require 'rubygems' require 'action\_mailer' recivers = \[\] recivers = IO.read…

---

## [Advice in rake](https://www.ruby-forum.com/t/advice-in-rake/166269)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [April 23, 2009, 11:37am UTC](https://www.ruby-forum.com/t/advice-in-rake/166269 "2009-04-23T11:37:47Z")

</div>

Hi, I’m using rake to build a project and during this build process to call some scripts as well. The problem is now, that the number of required script runs is unknown to rake prior to starting rake, but can be det…

---

## [Released 1.0.0 yoda](https://www.ruby-forum.com/t/released-1-0-0-yoda/166248)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 2\
**Last updated:** [April 23, 2009, 8:30am UTC](https://www.ruby-forum.com/t/released-1-0-0-yoda/166248 "2009-04-23T08:30:38Z")

</div>

released yoda version 1.0.0 has been! http://rubyforge.org/seattlerb Spec yoda will, and spec you shall too. require ‘yoda’ class Bowling def hit(pins) end def score 0 end end Bowling.yoda { “score 0 for …

---

## [WinForms event handling](https://www.ruby-forum.com/t/winforms-event-handling/166087)

<div class="topic-metadata">

**Author:** [@Andrew\_SSTownley](https://www.ruby-forum.com/u/Andrew_SSTownley)\
**Replies:** 6\
**Last updated:** [April 23, 2009, 7:17am UTC](https://www.ruby-forum.com/t/winforms-event-handling/166087 "2009-04-23T07:17:20Z")

</div>

Hi, I was doing a bit of experimenting with ironruby today to see if it might be useful for some prototyping work that I’m doing. I noticed that any of the strings returned from the CLR don’t automatically include t…

---

## [Re: Using JRuby on Rails with GF V2 on Windows... sharing some of my experiences](https://www.ruby-forum.com/t/re-using-jruby-on-rails-with-gf-v2-on-windows-sharing-some-of-my-experiences/166186)

<div class="topic-metadata">

**Author:** [@Jay\_McGaffigan](https://www.ruby-forum.com/u/Jay_McGaffigan)\
**Replies:** 1\
**Last updated:** [April 23, 2009, 6:40am UTC](https://www.ruby-forum.com/t/re-using-jruby-on-rails-with-gf-v2-on-windows-sharing-some-of-my-experiences/166186 "2009-04-23T06:40:59Z")

</div>

oops. I just updated it at the Kenai wiki. (I Forgot that the wiki had moved there :P) Apr 22, 2009 10:54:42 AM, removed\_email\_address@domain.invalid wrote: Hi all, I just wanted to share some things we foun…

---

## [Help On Ruby Integration With C](https://www.ruby-forum.com/t/help-on-ruby-integration-with-c/166245)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 0\
**Last updated:** [April 23, 2009, 6:09am UTC](https://www.ruby-forum.com/t/help-on-ruby-integration-with-c/166245 "2009-04-23T06:09:49Z")

</div>

Hi… I m using ruby 1.8.6 on Windows… I m extending Ruby with C. that is i want to load a DLL into Ruby… but Ruby fails load my Dll… i use visual studio.net command Prompt. I integrate my dll namely prov.dll into C …

---

## [Re: Re: Rails Multithreading On the Wiki](https://www.ruby-forum.com/t/re-re-rails-multithreading-on-the-wiki/166187)

<div class="topic-metadata">

**Author:** [@Jay\_McGaffigan](https://www.ruby-forum.com/u/Jay_McGaffigan)\
**Replies:** 3\
**Last updated:** [April 23, 2009, 3:30am UTC](https://www.ruby-forum.com/t/re-re-rails-multithreading-on-the-wiki/166187 "2009-04-23T03:30:03Z")

</div>

I like it. Do you have any more info on the Concurrency issues? I have a pretty good debugging setup going here and I'm about to upgrade to rails 2.2.2. I can try to help track em down if you can provide me with mo…

---

## [Undefined method \`close' for OpenSSL::SSL::SSLSocket](https://www.ruby-forum.com/t/undefined-method-close-for-openssl-sslsocket/166119)

<div class="topic-metadata">

**Author:** [@bwinborg](https://www.ruby-forum.com/u/bwinborg)\
**Replies:** 2\
**Last updated:** [April 23, 2009, 2:50am UTC](https://www.ruby-forum.com/t/undefined-method-close-for-openssl-sslsocket/166119 "2009-04-23T02:50:19Z")

</div>

I’m having a problem with 1.8.6 and soap4r that I don’t understand. I’m running within Apache as a CGI. I developed this code on a Windows box and it works fine, but I’ve moved the code to my production Linux environm…

---

## [Sinatra fails on both 0.3 and custom build](https://www.ruby-forum.com/t/sinatra-fails-on-both-0-3-and-custom-build/166229)

<div class="topic-metadata">

**Author:** [@benhiller](https://www.ruby-forum.com/u/benhiller)\
**Replies:** 1\
**Last updated:** [April 23, 2009, 1:38am UTC](https://www.ruby-forum.com/t/sinatra-fails-on-both-0-3-and-custom-build/166229 "2009-04-23T01:38:46Z")

</div>

Hello, Just tried to run Sinatra however running into some difficultly. Firstly, I installed Sinarta via gems. I then tried the sample off their website: require ‘rubygems’ require ‘sinatra’ get ‘/hi’ do “Hello W…

---

## [Problems using ruby and opengl](https://www.ruby-forum.com/t/problems-using-ruby-and-opengl/165551)

<div class="topic-metadata">

**Author:** [@Ciph3rzer0](https://www.ruby-forum.com/u/Ciph3rzer0)\
**Replies:** 7\
**Last updated:** [April 23, 2009, 12:57am UTC](https://www.ruby-forum.com/t/problems-using-ruby-and-opengl/165551 "2009-04-23T00:57:49Z")

</div>

So I just recently started using ruby and I love it. I am also taking a computer graphics course and I am using C and C++ to use OpenGL. I did a little searching, and it seems that ruby can do OpenGL too, but I’ve h…

---

## [Ruby1.9 and ActiveRecord](https://www.ruby-forum.com/t/ruby1-9-and-activerecord/166231)

<div class="topic-metadata">

**Author:** [@andreas](https://www.ruby-forum.com/u/andreas)\
**Replies:** 0\
**Last updated:** [April 23, 2009, 12:43am UTC](https://www.ruby-forum.com/t/ruby1-9-and-activerecord/166231 "2009-04-23T00:43:46Z")

</div>

I wanted to switch my app from ruby 1.8 to 1.9 but I notice ar-extensions’ ActiveRecord#import takes longer. The code to demonstrate it is attached. There is no significant time difference in both variations in ruby 1…

---

## [\[Mocha\] expects.at\_least\_once VS stubs](https://www.ruby-forum.com/t/mocha-expects-at-least-once-vs-stubs/165883)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 2\
**Last updated:** [April 23, 2009, 12:17am UTC](https://www.ruby-forum.com/t/mocha-expects-at-least-once-vs-stubs/165883 "2009-04-23T00:17:26Z")

</div>

Hi, In a Rails app, I often find myself having to write expects(:whatever).at\_least\_once.returns(“some\_value”), so it clutters my test and I simply ditch expects() in favor of stubs() which won’t yell at me because s…

[Previous page](https://www.ruby-forum.com/c/ruby/7.md?page=843)

[Next page](https://www.ruby-forum.com/c/ruby/7.md?page=845)
