# Ruby

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

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

---

## [Immediate need for a QA Manual Tester in Chicago, IL](https://www.ruby-forum.com/t/immediate-need-for-a-qa-manual-tester-in-chicago-il/188160)

<div class="topic-metadata">

**Author:** [@jsimone](https://www.ruby-forum.com/u/jsimone)\
**Replies:** 0\
**Last updated:** [May 6, 2010, 6:15pm UTC](https://www.ruby-forum.com/t/immediate-need-for-a-qa-manual-tester-in-chicago-il/188160 "2010-05-06T18:15:38Z")

</div>

Hi All, Below is a very urgent need. Send resumes to removed\_email\_address@domain.invalid ASAP with rate and contact information. There are 2 positions, the client requires 25 people. Locals please or surrounding sta…

---

## [\[Bug #1851\] make install problems using mingw on fedora 11](https://www.ruby-forum.com/t/bug-1851-make-install-problems-using-mingw-on-fedora-11/173058)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 2\
**Last updated:** [May 6, 2010, 5:27pm UTC](https://www.ruby-forum.com/t/bug-1851-make-install-problems-using-mingw-on-fedora-11/173058 "2010-05-06T17:27:38Z")

</div>

Bug #1851: make install problems using mingw on fedora 11 http://redmine.ruby-lang.org/issues/show/1851 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.9.2dev (2009-08-01…

---

## [Class variable "scope"](https://www.ruby-forum.com/t/class-variable-scope/188143)

<div class="topic-metadata">

**Author:** [@VinSSS\_cius\_Baggio\_S](https://www.ruby-forum.com/u/VinSSS_cius_Baggio_S)\
**Replies:** 2\
**Last updated:** [May 6, 2010, 3:44pm UTC](https://www.ruby-forum.com/t/class-variable-scope/188143 "2010-05-06T15:44:36Z")

</div>

Hi all, I’ve been writing a library for me to play with metaprogramming as an exercise, but then I got stuck on a non-metaprogramming issue: a.rb class A def self.add\_something(\*sth) @@my\_things ||= \[\] @@my\_things …

---

## [Cannot get jruby -S rake db:create to work](https://www.ruby-forum.com/t/cannot-get-jruby-s-rake-db-create-to-work/188144)

<div class="topic-metadata">

**Author:** [@sinead](https://www.ruby-forum.com/u/sinead)\
**Replies:** 1\
**Last updated:** [May 6, 2010, 3:38pm UTC](https://www.ruby-forum.com/t/cannot-get-jruby-s-rake-db-create-to-work/188144 "2010-05-06T15:38:09Z")

</div>

Hi, I have been trying for days now to get rake db:create to work for me The following is output from jgem list actionmailer (2.3.5) actionpack (2.3.5) activerecord (2.3.5) activerecord-jdbc-adapter (0.9.5) active…

---

## [Require 'dm-community' # a developer Q&A](https://www.ruby-forum.com/t/require-dm-community-a-developer-q-a/188140)

<div class="topic-metadata">

**Author:** [@notheory](https://www.ruby-forum.com/u/notheory)\
**Replies:** 1\
**Last updated:** [May 6, 2010, 2:59pm UTC](https://www.ruby-forum.com/t/require-dm-community-a-developer-q-a/188140 "2010-05-06T14:59:29Z")

</div>

Hey Rubyists! With the impending releases of DataMapper 0.11 and 1.0, we would like to kick of some user outreach, particularly to help people get up to speed with the changes that have gone in since 0.10 and what w…

---

## [For-in vs. map closures](https://www.ruby-forum.com/t/for-in-vs-map-closures/188065)

<div class="topic-metadata">

**Author:** [@exile](https://www.ruby-forum.com/u/exile)\
**Replies:** 10\
**Last updated:** [May 6, 2010, 2:52pm UTC](https://www.ruby-forum.com/t/for-in-vs-map-closures/188065 "2010-05-06T14:52:28Z")

</div>

I was experimenting with closures and JavaScript’s and Ruby’s behavior. Ruby seems to close over its arguments automatically if using map: \[1, 2, 3\].map { |n| lambda { n \* n } }.map { |b| b.call() } # \[1, 4, 9\] Bu…

---

## [Failed to build the native extension](https://www.ruby-forum.com/t/failed-to-build-the-native-extension/188127)

<div class="topic-metadata">

**Author:** [@limux](https://www.ruby-forum.com/u/limux)\
**Replies:** 1\
**Last updated:** [May 6, 2010, 2:41pm UTC](https://www.ruby-forum.com/t/failed-to-build-the-native-extension/188127 "2010-05-06T14:41:20Z")

</div>

I used ruby-1.8.7-p249-i386-mingw32.7z on the windows 7 x64, and have installed the devkit. But it failed to build the native extension of eventmachine with error message as follow: H:\\study\\fybjy\\myoa\>gem install eve…

---

## [How can I call String#replace (rb\_str\_replace()) in C API?](https://www.ruby-forum.com/t/how-can-i-call-string-replace-rb-str-replace-in-c-api/188113)

<div class="topic-metadata">

**Author:** [@noagenda](https://www.ruby-forum.com/u/noagenda)\
**Replies:** 5\
**Last updated:** [May 6, 2010, 2:37pm UTC](https://www.ruby-forum.com/t/how-can-i-call-string-replace-rb-str-replace-in-c-api/188113 "2010-05-06T14:37:49Z")

</div>

Hi all, I am wrapping a C++ API using SWIG for Ruby and in some cases strings need to be allocated and passed to the wrapped function where the value of the string itself will need to be modified within the C/C++ cod…

---

## [\[Feature #3251\] allow to unlock mutex locked by another thread](https://www.ruby-forum.com/t/feature-3251-allow-to-unlock-mutex-locked-by-another-thread/188099)

<div class="topic-metadata">

**Author:** [@Yusuke\_E](https://www.ruby-forum.com/u/Yusuke_E)\
**Replies:** 6\
**Last updated:** [May 6, 2010, 1:48pm UTC](https://www.ruby-forum.com/t/feature-3251-allow-to-unlock-mutex-locked-by-another-thread/188099 "2010-05-06T13:48:04Z")

</div>

Feature #3251: allow to unlock mutex locked by another thread http://redmine.ruby-lang.org/issues/show/3251 e$B5/I\<\<Te(B: Yusuke E. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Koichi Sasada, e$B%+%F%4%…

---

## [Code review of n00b code and unit tests if you dare](https://www.ruby-forum.com/t/code-review-of-n00b-code-and-unit-tests-if-you-dare/188134)

<div class="topic-metadata">

**Author:** [@himdel](https://www.ruby-forum.com/u/himdel)\
**Replies:** 0\
**Last updated:** [May 6, 2010, 12:09pm UTC](https://www.ruby-forum.com/t/code-review-of-n00b-code-and-unit-tests-if-you-dare/188134 "2010-05-06T12:09:30Z")

</div>

Please alert me to bad OO thinking, major flaws, style violations, stupid tests, missing tests, etc. code-\>http://pastie.org/948087 unit tests-\>http://pastie.org/948089 Cheers, Martin

---

## [Rest-graph 1.0.0 - super simple facebook open graph api client](https://www.ruby-forum.com/t/rest-graph-1-0-0-super-simple-facebook-open-graph-api-client/188135)

<div class="topic-metadata">

**Author:** [@Lin\_Jen-Shin](https://www.ruby-forum.com/u/Lin_Jen-Shin)\
**Replies:** 0\
**Last updated:** [May 6, 2010, 11:43am UTC](https://www.ruby-forum.com/t/rest-graph-1-0-0-super-simple-facebook-open-graph-api-client/188135 "2010-05-06T11:43:59Z")

</div>

= rest-graph 1.0.0 by Lin Jen-Shin (aka godfat-çœŸå¸¸\[http://godfat.org\]) godfat (XD) godfat.org == LINKS: {github}\[GitHub - godfat/rest-graph: A lightweight Facebook Graph API client\] {rubygems}\[rest-graph | RubyGe…

---

## [Uninitialized constant LibXMLJRuby::XML::Schema](https://www.ruby-forum.com/t/uninitialized-constant-libxmljruby-schema/188072)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 2\
**Last updated:** [May 6, 2010, 10:02am UTC](https://www.ruby-forum.com/t/uninitialized-constant-libxmljruby-schema/188072 "2010-05-06T10:02:50Z")

</div>

Hello, I’m trying to validate a xml File against a ‘\*.xsd’ Schema-File. I have the libxml-jruby Gem installed. I’m using JRUBY 1.4.0 My code looks like this: require ‘xml’ … document = XML::Document.file(temp\_fi…

---

## [Email listener?](https://www.ruby-forum.com/t/email-listener/188118)

<div class="topic-metadata">

**Author:** [@Siddarth\_Chandrasek](https://www.ruby-forum.com/u/Siddarth_Chandrasek)\
**Replies:** 2\
**Last updated:** [May 6, 2010, 9:41am UTC](https://www.ruby-forum.com/t/email-listener/188118 "2010-05-06T09:41:54Z")

</div>

I’m trying to figure how best to write an email listener – basically, something that listens for particular keyword(s) at an account and responds appropriately. Any ideas? Thanks! Siddarth

---

## [Default Graph URI in Sparql Client](https://www.ruby-forum.com/t/default-graph-uri-in-sparql-client/188119)

<div class="topic-metadata">

**Author:** [@tsyren](https://www.ruby-forum.com/u/tsyren)\
**Replies:** 0\
**Last updated:** [May 6, 2010, 4:17am UTC](https://www.ruby-forum.com/t/default-graph-uri-in-sparql-client/188119 "2010-05-06T04:17:50Z")

</div>

Hi everyone! May be i’m not clearly understand Sparql Client (http://github.com/bendiken/sparql-client), but i didn’t find way how to define graph repository (or i’m blind) For example, i follow to OpenLink Virtuoso …

---

## [Re: Using Ruby's standard libraries in Silverlight](https://www.ruby-forum.com/t/re-using-rubys-standard-libraries-in-silverlight/188120)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 0\
**Last updated:** [May 6, 2010, 3:26am UTC](https://www.ruby-forum.com/t/re-using-rubys-standard-libraries-in-silverlight/188120 "2010-05-06T03:26:27Z")

</div>

I guess one option would be for them to create a C# project and package their IR code in there. That project could also have the hosting and bootstrapping logic to hooked that module into the rest of the app. That’s c…

---

## [Ruby Equivalent of "Pythonista"](https://www.ruby-forum.com/t/ruby-equivalent-of-pythonista/188104)

<div class="topic-metadata">

**Author:** [@martinr](https://www.ruby-forum.com/u/martinr)\
**Replies:** 8\
**Last updated:** [May 6, 2010, 3:07am UTC](https://www.ruby-forum.com/t/ruby-equivalent-of-pythonista/188104 "2010-05-06T03:07:08Z")

</div>

A savvy and enthusiastic Python programmer is called a “Pythonista.” What should I call a savvy and enthusiastic Ruby programmer?

---

## [What is the standard way to put a standard set of asserts into a called subroutine in test/unit?](https://www.ruby-forum.com/t/what-is-the-standard-way-to-put-a-standard-set-of-asserts-into-a-called-subroutine-in-test-unit/187888)

<div class="topic-metadata">

**Author:** [@Xeno\_CSS\_Eskimo\_No](https://www.ruby-forum.com/u/Xeno_CSS_Eskimo_No)\
**Replies:** 2\
**Last updated:** [May 6, 2010, 12:45am UTC](https://www.ruby-forum.com/t/what-is-the-standard-way-to-put-a-standard-set-of-asserts-into-a-called-subroutine-in-test-unit/187888 "2010-05-06T00:45:30Z")

</div>

I want to do something like: require ‘test/unit’ class TestMyStuff \< Test::Unit::TestCase def mysub(x,y) assert\_not\_nil(x,“x nil”) assert\_not\_nil(y,“y nil”) assert(x == y,“messages”) end def test\_my\_stuff mysub(…

---

## [\[Bug #3236\] ISeq.load $B$G(B \[BUG\] iseq\_set\_sequence: ic\_index overflow $B$,H/@8(B](https://www.ruby-forum.com/t/bug-3236-iseq-load-b-g-b-bug-iseq-set-sequence-ic-index-overflow-b-h-8-b/188116)

<div class="topic-metadata">

**Author:** [@Tomoyuki\_C](https://www.ruby-forum.com/u/Tomoyuki_C)\
**Replies:** 0\
**Last updated:** [May 6, 2010, 12:42am UTC](https://www.ruby-forum.com/t/bug-3236-iseq-load-b-g-b-bug-iseq-set-sequence-ic-index-overflow-b-h-8-b/188116 "2010-05-06T00:42:34Z")

</div>

e$B%A%1%C%He(B #3236 e$B$,99?7$5$l$^$7$?!#e(B (by Tomoyuki C.) e$B\<h$j9~$s$G$$$?$@$-$"$j$,$H$&$4$6$$$^$7$?!#e(B e$B$“$o$?$@$7$$$H;~$KHs8x3+4X?t$NLdBj$r%A%1%C%HEPO?$7$F$7$^$$?=$7Lu$”$j$^$;$s$G$7$?!#:#8e$N;X?K$K$7$^$9!#…

---

## [\[ANN\] IronRuby 1.0 Released!](https://www.ruby-forum.com/t/ann-ironruby-1-0-released/186836)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 4\
**Last updated:** [May 6, 2010, 12:03am UTC](https://www.ruby-forum.com/t/ann-ironruby-1-0-released/186836 "2010-05-06T00:03:03Z")

</div>

Ruby and .NET developers, The IronRuby team is pleased to announce IronRuby 1.0! Download IronRuby 1.0 now: http://ironruby.net/download Direct download links (Windows installers and ZIP files for both .NET 2.0 SP1 …

---

## [Using array instead of hash and still have efficient cross-referencing](https://www.ruby-forum.com/t/using-array-instead-of-hash-and-still-have-efficient-cross-referencing/188095)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 5\
**Last updated:** [May 6, 2010, 12:00am UTC](https://www.ruby-forum.com/t/using-array-instead-of-hash-and-still-have-efficient-cross-referencing/188095 "2010-05-06T00:00:25Z")

</div>

Have a look at this class: http://github.com/proutils/lemon/blob/master/lib/lemon/snapshot.rb I am storing a collection of OfModule instances in a hash (@modules) indexed by the modules they correspond to. I’d rather …

---

## [Rmagick install fail](https://www.ruby-forum.com/t/rmagick-install-fail/188110)

<div class="topic-metadata">

**Author:** [@Rajinder\_Y](https://www.ruby-forum.com/u/Rajinder_Y)\
**Replies:** 3\
**Last updated:** [May 5, 2010, 11:59pm UTC](https://www.ruby-forum.com/t/rmagick-install-fail/188110 "2010-05-05T23:59:15Z")

</div>

I can’t seem to install rmagic on ubuntu 9.10 using ruby 1.9, I have imagemagick installed but i keep seeing the following error yadav@VMLux:$ sudo gem install rmagick Building native extensions. This could take a wh…

---

## [How to suggest Kernel#printf to add a note to see sprintf](https://www.ruby-forum.com/t/how-to-suggest-kernel-printf-to-add-a-note-to-see-sprintf/188054)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 1\
**Last updated:** [May 5, 2010, 10:49pm UTC](https://www.ruby-forum.com/t/how-to-suggest-kernel-printf-to-add-a-note-to-see-sprintf/188054 "2010-05-05T22:49:29Z")

</div>

when we do ri Kernel#printf it shows some basic info, but if we do ri Kernel#sprintf a lot more is shown for the details. I wonder how a suggestion can be added so that printf includes a note to see sprintf?

---

## [What about charset?](https://www.ruby-forum.com/t/what-about-charset/188056)

<div class="topic-metadata">

**Author:** [@nax](https://www.ruby-forum.com/u/nax)\
**Replies:** 1\
**Last updated:** [May 5, 2010, 9:11pm UTC](https://www.ruby-forum.com/t/what-about-charset/188056 "2010-05-05T21:11:04Z")

</div>

Hi! I have a ruby program wich take some information from a .txt file, and copy it to a sqlite3 table. But the text is in ASCII-8BIT charset, so when I select the data from the table, it doesn’t return the right char…

---

## [Download version 1.8?](https://www.ruby-forum.com/t/download-version-1-8/188039)

<div class="topic-metadata">

**Author:** [@cameronsharpe](https://www.ruby-forum.com/u/cameronsharpe)\
**Replies:** 6\
**Last updated:** [May 5, 2010, 8:21pm UTC](https://www.ruby-forum.com/t/download-version-1-8/188039 "2010-05-05T20:21:29Z")

</div>

Where can I download the latest version of the 1.8 branch? I need to deploy puppet and it doesn’t run on 1.9 yet :frowning:

---

## [\[ANN\] activerecord-jdbc 0.9.6, the Oracle release](https://www.ruby-forum.com/t/ann-activerecord-jdbc-0-9-6-the-oracle-release/188103)

<div class="topic-metadata">

**Author:** [@nicksnels](https://www.ruby-forum.com/u/nicksnels)\
**Replies:** 0\
**Last updated:** [May 5, 2010, 7:59pm UTC](https://www.ruby-forum.com/t/ann-activerecord-jdbc-0-9-6-the-oracle-release/188103 "2010-05-05T19:59:49Z")

</div>

Hi all, I’ve finally gone and fixed a number of Oracle issues and bundled them up into the 0.9.6 release. Enjoy! /Nick == 0.9.6 The Oracle release! Oracle should be working much better with this release. Also updat…

---

## [Public\_methods vs methods](https://www.ruby-forum.com/t/public-methods-vs-methods/188102)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 0\
**Last updated:** [May 5, 2010, 7:47pm UTC](https://www.ruby-forum.com/t/public-methods-vs-methods/188102 "2010-05-05T19:47:31Z")

</div>

Why? class X def self.yeah; ‘yeah’; end end X.public\_methods(false) =\> \[“yaml\_tag\_subclasses?”, “yeah”, “superclass”, “to\_yaml”, “allocate”, “new”\] X.methods(false) =\> \[“yeah”\]

---

## [Racc 1.4.6 fails to install on windows](https://www.ruby-forum.com/t/racc-1-4-6-fails-to-install-on-windows/188063)

<div class="topic-metadata">

**Author:** [@mahajan-amey](https://www.ruby-forum.com/u/mahajan-amey)\
**Replies:** 1\
**Last updated:** [May 5, 2010, 6:30pm UTC](https://www.ruby-forum.com/t/racc-1-4-6-fails-to-install-on-windows/188063 "2010-05-05T18:30:48Z")

</div>

racc fails to install and gives following error on the STDOUT. D:\\Watir\>gem install --local racc-1.4.6.gem Building native extensions. This could take a while… ERROR: Error installing racc-1.4.6.gem: ERROR: Failed …

---

## [Nokogiri bug or intended effect?](https://www.ruby-forum.com/t/nokogiri-bug-or-intended-effect/188005)

<div class="topic-metadata">

**Author:** [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Replies:** 4\
**Last updated:** [May 5, 2010, 5:50pm UTC](https://www.ruby-forum.com/t/nokogiri-bug-or-intended-effect/188005 "2010-05-05T17:50:09Z")

</div>

I’m trying to parse this (poorly formatted) page, and when I look at the page I see: Name: ZITO, PEDRO OSVALDO When I look at the source I get: Name: ZITO, PEDRO OSVALDO When I parse the pag…

---

## [Do Rails/gems updates break applications?](https://www.ruby-forum.com/t/do-rails-gems-updates-break-applications/188094)

<div class="topic-metadata">

**Author:** [@enos76](https://www.ruby-forum.com/u/enos76)\
**Replies:** 5\
**Last updated:** [May 5, 2010, 5:45pm UTC](https://www.ruby-forum.com/t/do-rails-gems-updates-break-applications/188094 "2010-05-05T17:45:07Z")

</div>

Some time ago I started experimenting with Ruby on Rails. I stopped almost immediately, because after updating gems or Rails itself, I often ended up with non-working applications. I was not the only one with such pro…

---

## [Socket problem](https://www.ruby-forum.com/t/socket-problem/188090)

<div class="topic-metadata">

**Author:** [@d\_v](https://www.ruby-forum.com/u/d_v)\
**Replies:** 1\
**Last updated:** [May 5, 2010, 5:14pm UTC](https://www.ruby-forum.com/t/socket-problem/188090 "2010-05-05T17:14:40Z")

</div>

I just started to learn how to use sockets in Ruby and my Problems begun. When i put in IRB require ‘socket’ it returns false. I use Ruby 1.8.6 installed with oneclickinstaller on Wista. What shell i download more to…

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

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