# Ruby

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

[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:** 880

---

## [Ruby Screencasts](https://www.ruby-forum.com/t/ruby-screencasts/162395)

<div class="topic-metadata">

**Author:** [@felixtc](https://www.ruby-forum.com/u/felixtc)\
**Replies:** 4\
**Last updated:** [March 9, 2009, 7:07pm UTC](https://www.ruby-forum.com/t/ruby-screencasts/162395 "2009-03-09T19:07:29Z")

</div>

Greetings Everyone, I have tried looking throughout the forum but didn’t find the answer I was looking for. I tried looking online but still was able to find anything solid. Does any have any good recommendations for …

---

## [Code review: Implements Zlib::GzipWriter using System.IO.Compression.GZipStream](https://www.ruby-forum.com/t/code-review-implements-zlib-gzipwriter-using-system-io-compression-gzipstream/162410)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 6:02pm UTC](https://www.ruby-forum.com/t/code-review-implements-zlib-gzipwriter-using-system-io-compression-gzipstream/162410 "2009-03-09T18:02:14Z")

</div>

---

## [Where's the best version of Hash#pass and Hash#block?](https://www.ruby-forum.com/t/wheres-the-best-version-of-hash-pass-and-hash-block/162345)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 9\
**Last updated:** [March 9, 2009, 3:40pm UTC](https://www.ruby-forum.com/t/wheres-the-best-version-of-hash-pass-and-hash-block/162345 "2009-03-09T15:40:58Z")

</div>

Rubies: This snippet shows how to pass or block arbitrary subsets of Hashes, by their keys: http://snippets.dzone.com/posts/show/2178 Those items seem useful, because Hashes are not as set-theoretic as Arrays. I su…

---

## [Using ZenTest with Jruby 1.1.6](https://www.ruby-forum.com/t/using-zentest-with-jruby-1-1-6/161781)

<div class="topic-metadata">

**Author:** [@skiz](https://www.ruby-forum.com/u/skiz)\
**Replies:** 11\
**Last updated:** [March 9, 2009, 3:32pm UTC](https://www.ruby-forum.com/t/using-zentest-with-jruby-1-1-6/161781 "2009-03-09T15:32:08Z")

</div>

Hi, I am using JRuby 1.1.6 and java 1.6 64 bit on Ubuntu 8.10. When ever I try to run autotest (jruby -S autotest --rails) I get an objectspace error. /usr/local/share/jruby-1.1.6/lib/ruby/gems/1.8/gems/ZenTest-3.1…

---

## [No logging in Rails 2.2.2 / Tomcat](https://www.ruby-forum.com/t/no-logging-in-rails-2-2-2-tomcat/162217)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 1\
**Last updated:** [March 9, 2009, 2:44pm UTC](https://www.ruby-forum.com/t/no-logging-in-rails-2-2-2-tomcat/162217 "2009-03-09T14:44:22Z")

</div>

Hello, I am noticing an odd issue where after a while there are no more logs in the localhost-YYYY-MM-DD.log file in Tomcat when running Jruby/Rails under Tomcat 5. The logs seem to show up fine in the beginning but…

---

## [Slenium Remote control in ruby](https://www.ruby-forum.com/t/slenium-remote-control-in-ruby/162384)

<div class="topic-metadata">

**Author:** [@karthikeyan82](https://www.ruby-forum.com/u/karthikeyan82)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 2:07pm UTC](https://www.ruby-forum.com/t/slenium-remote-control-in-ruby/162384 "2009-03-09T14:07:15Z")

</div>

plz any one help me compile the ruby program in command prompt the following error had been occured C:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in gem\_original\_require': no such file to load -- C:./..…

---

## [Early-bird rate extended for Ruby Training Atlanta](https://www.ruby-forum.com/t/early-bird-rate-extended-for-ruby-training-atlanta/162381)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 1:38pm UTC](https://www.ruby-forum.com/t/early-bird-rate-extended-for-ruby-training-atlanta/162381 "2009-03-09T13:38:25Z")

</div>

Hi all – Early bird rate has been extended through Wednesday, March 11, for Ruby Training Atlanta, taking place April 1-3. This is a really good opportunity for you (and/or your colleagues, employees, co-workers…) to…

---

## [Ruby - Imperative Language Features?](https://www.ruby-forum.com/t/ruby-imperative-language-features/162085)

<div class="topic-metadata">

**Author:** [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Replies:** 11\
**Last updated:** [March 9, 2009, 1:20pm UTC](https://www.ruby-forum.com/t/ruby-imperative-language-features/162085 "2009-03-09T13:20:40Z")

</div>

The Wikipedia entry for Ruby says: “Ruby supports multiple programming paradigms, including functional, object oriented, imperative and reflection.” Is this correct? What features does Ruby have, compared to say Java, …

---

## [I code my first ruby script, and it got problem!](https://www.ruby-forum.com/t/i-code-my-first-ruby-script-and-it-got-problem/162301)

<div class="topic-metadata">

**Author:** [@arghx1](https://www.ruby-forum.com/u/arghx1)\
**Replies:** 10\
**Last updated:** [March 9, 2009, 10:15am UTC](https://www.ruby-forum.com/t/i-code-my-first-ruby-script-and-it-got-problem/162301 "2009-03-09T10:15:34Z")

</div>

Hello folks! I’m totally new to Ruby. For practice, I’m trying to code a very simple script that checks user’s input for directory name, and then check to see if directory is exist, if not create it, and then clean i…

---

## [Support for generic types of interfaces](https://www.ruby-forum.com/t/support-for-generic-types-of-interfaces/162341)

<div class="topic-metadata">

**Author:** [@stefan8107](https://www.ruby-forum.com/u/stefan8107)\
**Replies:** 1\
**Last updated:** [March 9, 2009, 7:27am UTC](https://www.ruby-forum.com/t/support-for-generic-types-of-interfaces/162341 "2009-03-09T07:27:55Z")

</div>

Hi I have found out that there is a problem if you tried to create a generic type of some interface. Here is an example: require ‘System’ include System include System::Collections::Generic List.of(ICloneable).n…

---

## [1.9.x Thread problem](https://www.ruby-forum.com/t/1-9-x-thread-problem/162347)

<div class="topic-metadata">

**Author:** [@mike343](https://www.ruby-forum.com/u/mike343)\
**Replies:** 6\
**Last updated:** [March 9, 2009, 4:26am UTC](https://www.ruby-forum.com/t/1-9-x-thread-problem/162347 "2009-03-09T04:26:38Z")

</div>

Hi All, Here’s a tricky one for you: require ‘thread’ THREADS = 10 WASTE = 10000 pid = fork() do queue = Queue.new THREADS.times do |i| queue \<\< Thread.new do # wasting actual cpu time, rather than sleeping Thr…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/162342)

<div class="topic-metadata">

**Author:** [@Semra\_Akalin-Demir](https://www.ruby-forum.com/u/Semra_Akalin-Demir)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 12:46am UTC](https://www.ruby-forum.com/t/unsubscribe/162342 "2009-03-09T00:46:01Z")

</div>

unsubscribe Stay connected to the people that matter most with a smarter inbox. Take a look http://au.docs.yahoo.com/mail/smarterinbox

---

## [Ffi-swig-generator 0.2.1](https://www.ruby-forum.com/t/ffi-swig-generator-0-2-1/162343)

<div class="topic-metadata">

**Author:** [@gendag](https://www.ruby-forum.com/u/gendag)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 12:26am UTC](https://www.ruby-forum.com/t/ffi-swig-generator-0-2-1/162343 "2009-03-09T00:26:09Z")

</div>

ffi-swig-generator version 0.2.1 by Andrea F. http://kenai.com/projects/ruby-ffi == DESCRIPTION ffi-swig-generator is a ruby-ffi wrapper code generator based on SWIG interface files. ffi-swig-generator is able to t…

---

## [Can I access or find a object from it's instance variable?](https://www.ruby-forum.com/t/can-i-access-or-find-a-object-from-its-instance-variable/162290)

<div class="topic-metadata">

**Author:** [@akiwakabayashi](https://www.ruby-forum.com/u/akiwakabayashi)\
**Replies:** 13\
**Last updated:** [March 8, 2009, 10:56pm UTC](https://www.ruby-forum.com/t/can-i-access-or-find-a-object-from-its-instance-variable/162290 "2009-03-08T22:56:03Z")

</div>

Hello. Absolute newb here, and my very first post, so please bear with me…I would like to be able to access an object with it’s instance variable. I simplified my example, but for instance: class Foo attr\_accessor :…

---

## [Polyrhythm Trainer (#194)](https://www.ruby-forum.com/t/polyrhythm-trainer-194/161597)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 2\
**Last updated:** [March 8, 2009, 10:52pm UTC](https://www.ruby-forum.com/t/polyrhythm-trainer-194/161597 "2009-03-08T22:52:31Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have elapsed from the time this m…

---

## [Script Won't Exit After Call to System](https://www.ruby-forum.com/t/script-wont-exit-after-call-to-system/162332)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 1\
**Last updated:** [March 8, 2009, 8:42pm UTC](https://www.ruby-forum.com/t/script-wont-exit-after-call-to-system/162332 "2009-03-08T20:42:45Z")

</div>

I have a small script (see http://pastie.org/411010) that will check to see if my ssh tunnel has died, and if so, will create a new one. It works, except that if it does need to re-open a tunnel (through Kernel’s ‘sys…

---

## [Referencing Variables By Name in a String](https://www.ruby-forum.com/t/referencing-variables-by-name-in-a-string/162118)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 4\
**Last updated:** [March 8, 2009, 8:37pm UTC](https://www.ruby-forum.com/t/referencing-variables-by-name-in-a-string/162118 "2009-03-08T20:37:57Z")

</div>

I can think of several (rather ugly) ways to accomplish this, but thought I’d check here to see if there is a simpler way to do this. I’m constantly amazed by the features in Ruby (I admit to only knowing a relatively…

---

## [Gem install nokogiri error](https://www.ruby-forum.com/t/gem-install-nokogiri-error/162327)

<div class="topic-metadata">

**Author:** [@sai](https://www.ruby-forum.com/u/sai)\
**Replies:** 1\
**Last updated:** [March 8, 2009, 8:27pm UTC](https://www.ruby-forum.com/t/gem-install-nokogiri-error/162327 "2009-03-08T20:27:23Z")

</div>

Hi world, I get this error during nokogiri install: http://pastie.org/410976. I play Ruby on Mac OS X (Leopard). Thanks for any ideas.

---

## [\[ANN\] ffi-opengl 0.1.0](https://www.ruby-forum.com/t/ann-ffi-opengl-0-1-0/162320)

<div class="topic-metadata">

**Author:** [@gendag](https://www.ruby-forum.com/u/gendag)\
**Replies:** 2\
**Last updated:** [March 8, 2009, 6:58pm UTC](https://www.ruby-forum.com/t/ann-ffi-opengl-0-1-0/162320 "2009-03-08T18:58:19Z")

</div>

ffi-opengl version 0.1.0 by Andrea F. GitHub - remogatto/ffi-opengl: A ruby-ffi binding to OpenGL libraries == DESCRIPTION ffi-opengl is an autogenerated\[1\] ruby FFI interface towards OpenGL libraries (GL, GLU, GLUT…

---

## [How to un-ragged a 2D array?](https://www.ruby-forum.com/t/how-to-un-ragged-a-2d-array/162257)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 11\
**Last updated:** [March 8, 2009, 6:57pm UTC](https://www.ruby-forum.com/t/how-to-un-ragged-a-2d-array/162257 "2009-03-08T18:57:08Z")

</div>

Rubies: Here’s a ragged array: \[ \[ 1 \], \[ 2, 3 \], \[ 4 \], \[ 5, 6 \], \[ 7 \], \[ 8 \] \] How, with the tightest, or most modern, or coolest statements, can we turn it into this? \[ \[ 1, 1 \], \[ 2, 3 \], \[ …

---

## [Unit tests and checking libraries](https://www.ruby-forum.com/t/unit-tests-and-checking-libraries/162325)

<div class="topic-metadata">

**Author:** [@john\_maclean](https://www.ruby-forum.com/u/john_maclean)\
**Replies:** 1\
**Last updated:** [March 8, 2009, 6:41pm UTC](https://www.ruby-forum.com/t/unit-tests-and-checking-libraries/162325 "2009-03-08T18:41:12Z")

</div>

You’ve writen some code and it works. You now begin to think of the future and how it might scale/grow/bloat. You think that it’s a good time to introduce Test::Unit into the mix. You write a test to ensure that a lib…

---

## [\[precompilation\] App without source code](https://www.ruby-forum.com/t/precompilation-app-without-source-code/162311)

<div class="topic-metadata">

**Author:** [@bobm](https://www.ruby-forum.com/u/bobm)\
**Replies:** 0\
**Last updated:** [March 8, 2009, 1:23pm UTC](https://www.ruby-forum.com/t/precompilation-app-without-source-code/162311 "2009-03-08T13:23:19Z")

</div>

Hello, using JRuby 1.2.0 RC2 under Windows XP I’m able to precompile .rb source code as .class java opcodes. However I have two problems : I need to leave a .rb file for each .class file (I mean, an empty file with…

---

## [Static web site generators](https://www.ruby-forum.com/t/static-web-site-generators/162272)

<div class="topic-metadata">

**Author:** [@zakifataya](https://www.ruby-forum.com/u/zakifataya)\
**Replies:** 5\
**Last updated:** [March 8, 2009, 4:41am UTC](https://www.ruby-forum.com/t/static-web-site-generators/162272 "2009-03-08T04:41:07Z")

</div>

After Googling a bit, it appears that nanoc, webby & webgen seem to be the prominent Ruby candidates for tools to generate static web sites. Any recommendations/warnings from folks who have used any of them?

---

## [Re: Static web site generators](https://www.ruby-forum.com/t/re-static-web-site-generators/162278)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 2\
**Last updated:** [March 8, 2009, 4:35am UTC](https://www.ruby-forum.com/t/re-static-web-site-generators/162278 "2009-03-08T04:35:52Z")

</div>

I’m a bit of an obsessive about website performance. I recently ditched a domain registrar because the admin tools all had five to ten second delays on each page. Static generators can stop us having to waste chunks o…

---

## [ActiveRecord .from\_xml upgrade](https://www.ruby-forum.com/t/activerecord-from-xml-upgrade/162286)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 0\
**Last updated:** [March 8, 2009, 2:55am UTC](https://www.ruby-forum.com/t/activerecord-from-xml-upgrade/162286 "2009-03-08T02:55:54Z")

</div>

Rubies: The gist of this tiny code snip… http://gist.github.com/75525 …is a light but flexible DSL that converts XML - typically output by to\_xml() into an ActiveRecord object model. ==create or update records== H…

---

## [In car entertainment](https://www.ruby-forum.com/t/in-car-entertainment/162270)

<div class="topic-metadata">

**Author:** [@www.carwebstore.co](https://www.ruby-forum.com/u/www.carwebstore.co)\
**Replies:** 0\
**Last updated:** [March 7, 2009, 10:20pm UTC](https://www.ruby-forum.com/t/in-car-entertainment/162270 "2009-03-07T22:20:50Z")

</div>

great deals on sat navs and dvd &cd players and all your in car entertainment at low prices at www.carwebstore.co.cc

---

## [Is there a built-in way to convert from snake\_case to CamelCase?](https://www.ruby-forum.com/t/is-there-a-built-in-way-to-convert-from-snake-case-to-camelcase/161965)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 5\
**Last updated:** [March 7, 2009, 9:59pm UTC](https://www.ruby-forum.com/t/is-there-a-built-in-way-to-convert-from-snake-case-to-camelcase/161965 "2009-03-07T21:59:10Z")

</div>

Hi, looking if I can use the internals better: is there a built-in IronRuby way to convert “flow\_layout\_panel” to “FlowLayoutPanel” ? As it’s used all over the place when calling methods, I thought that maybe I could…

---

## [CGI newbie](https://www.ruby-forum.com/t/cgi-newbie/162090)

<div class="topic-metadata">

**Author:** [@sam](https://www.ruby-forum.com/u/sam)\
**Replies:** 15\
**Last updated:** [March 7, 2009, 9:28pm UTC](https://www.ruby-forum.com/t/cgi-newbie/162090 "2009-03-07T21:28:08Z")

</div>

Hello, I am starting a personal project to build a configuration webpage for a small router device. Half of it is already done in perl cgi by someone else. I want to rewrite that and add to it using ruby and cgi. D…

---

## [Funny Barack Obama photos in his 2008 elections ... very funny posters](https://www.ruby-forum.com/t/funny-barack-obama-photos-in-his-2008-elections-very-funny-posters/162267)

<div class="topic-metadata">

**Author:** [@jessica2](https://www.ruby-forum.com/u/jessica2)\
**Replies:** 0\
**Last updated:** [March 7, 2009, 8:20pm UTC](https://www.ruby-forum.com/t/funny-barack-obama-photos-in-his-2008-elections-very-funny-posters/162267 "2009-03-07T20:20:43Z")

</div>

http://funny-newz.blogspot.com/2009/03/barack-obama.html

---

## [March Phoenix Ruby User Group Meeting](https://www.ruby-forum.com/t/march-phoenix-ruby-user-group-meeting/162259)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [March 7, 2009, 6:03pm UTC](https://www.ruby-forum.com/t/march-phoenix-ruby-user-group-meeting/162259 "2009-03-07T18:03:57Z")

</div>

March Phoenix Ruby U. Group Meeting Date: Monday, March 9, 2009 Time: 6:30 pm Place: Target Training International offices 17785 N. Pacesetter Way Scottsdale AZ, 85255 UPDATE: New meeting location! We are meeti…

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

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