# Ruby

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

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

---

## [Basic interoperability question](https://www.ruby-forum.com/t/basic-interoperability-question/169716)

<div class="topic-metadata">

**Author:** [@shayfriedman](https://www.ruby-forum.com/u/shayfriedman)\
**Replies:** 0\
**Last updated:** [June 7, 2009, 6:45pm UTC](https://www.ruby-forum.com/t/basic-interoperability-question/169716 "2009-06-07T18:45:21Z")

</div>

Hi, I would like to know why interoperability is such a long word? just kidding! I’m playing with the CLR interoperability and I have some questions: Is “require ‘mscorlib’” really essential? Should investigating Cl…

---

## [Subject: \[ANN\] ri\_cal 0.6.1 Released](https://www.ruby-forum.com/t/subject-ann-ri-cal-0-6-1-released/169714)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 0\
**Last updated:** [June 7, 2009, 3:57pm UTC](https://www.ruby-forum.com/t/subject-ann-ri-cal-0-6-1-released/169714 "2009-06-07T15:57:44Z")

</div>

ri\_cal version 0.6.1 has been released! This version has no functional changes from 0.6.0, it fixes an obscure problem with the spec:with\_activesupport rake task, found by Paul Scott-Murphy http://ri-cal.rubyforge.o…

---

## [Jruby nailgun](https://www.ruby-forum.com/t/jruby-nailgun/169706)

<div class="topic-metadata">

**Author:** [@kingston](https://www.ruby-forum.com/u/kingston)\
**Replies:** 0\
**Last updated:** [June 7, 2009, 12:48pm UTC](https://www.ruby-forum.com/t/jruby-nailgun/169706 "2009-06-07T12:48:52Z")

</div>

hello everyone I had setup jruby on my system its great but i find it slow while startup i heard nailgun can solve this problem.but i found it difficult to setup nailgun can i have few easy step on how to build nail…

---

## [Selenium test logs](https://www.ruby-forum.com/t/selenium-test-logs/169702)

<div class="topic-metadata">

**Author:** [@sheraz](https://www.ruby-forum.com/u/sheraz)\
**Replies:** 0\
**Last updated:** [June 7, 2009, 12:15pm UTC](https://www.ruby-forum.com/t/selenium-test-logs/169702 "2009-06-07T12:15:52Z")

</div>

Morning/Evening/Afternoon - depending on where you are in the world! Ten days ago I decided to start using Ruby, Ruby on Rails and Selenium RC. My motivation is to secure a position at a company and they needed me to …

---

## [Stop Dieting and Start Living!](https://www.ruby-forum.com/t/stop-dieting-and-start-living/169704)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 7, 2009, 10:30am UTC](https://www.ruby-forum.com/t/stop-dieting-and-start-living/169704 "2009-06-07T10:30:30Z")

</div>

Losing weight and shedding body fat does not have to be a sentence to slavery in the gym and brutal self-punishment every time you sit down to eat something you actually enjoy. Discover 5 of the biggest WEIGHT LOSS AN…

---

## [Luxuriescars](https://www.ruby-forum.com/t/luxuriescars/169698)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [June 7, 2009, 8:20am UTC](https://www.ruby-forum.com/t/luxuriescars/169698 "2009-06-07T08:20:38Z")

</div>

Do you want to know about luxuries cars? i think it is easy to you people to get information about luxuries cars. for more info visit www.oubaidluxuriescars.blogspot.com

---

## [Ruby Gem Issue](https://www.ruby-forum.com/t/ruby-gem-issue/169213)

<div class="topic-metadata">

**Author:** [@devrubygem](https://www.ruby-forum.com/u/devrubygem)\
**Replies:** 5\
**Last updated:** [June 7, 2009, 7:25am UTC](https://www.ruby-forum.com/t/ruby-gem-issue/169213 "2009-06-07T07:25:04Z")

</div>

I get this error below when running :make in my macvim editor :!rake 2\>&1| tee /var/folders/vb/vb1WTMY3ERGWQBNjCq03fk+++TI/-Tmp-/v802427/3 Rails requires RubyGems \>= 1.3.1 (you have 1.0.1). Please gem update --system …

---

## [Ruby\_top\_self in 1.9](https://www.ruby-forum.com/t/ruby-top-self-in-1-9/169694)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [June 7, 2009, 5:43am UTC](https://www.ruby-forum.com/t/ruby-top-self-in-1-9/169694 "2009-06-07T05:43:59Z")

</div>

with ruby 1.8 C code, I can (apparently) do the following to define a top level method called “go” file Test3.c static void toplevel\_scope\_1(VALUE self, NODE \*cref) { VALUE s\_class = (cref)-\>nd\_clss; rb\_define\_priva…

---

## [Code Review: ProGenFix](https://www.ruby-forum.com/t/code-review-progenfix/169680)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 3\
**Last updated:** [June 7, 2009, 1:26am UTC](https://www.ruby-forum.com/t/code-review-progenfix/169680 "2009-06-07T01:26:28Z")

</div>

tfpt review “/shelveset:ProGenFix;REDMOND\\tomat” DLR, Python, Ruby. Fixes Ruby calls to protected generic methods. Adds CompilerHelpers.IsProtected() as an alias for IsFamily || IsFamilyOrAssembly. Tomas

---

## [GoogleHack Search](https://www.ruby-forum.com/t/googlehack-search/169685)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 0\
**Last updated:** [June 6, 2009, 11:12pm UTC](https://www.ruby-forum.com/t/googlehack-search/169685 "2009-06-06T23:12:25Z")

</div>

Hi Everyone, One of the projects that I want to work on is a porting over of a windows program I created called GoogleHack. I want to create a Ruby version of the program and utilize TK/TCL or something similar so th…

---

## [Conflicts with file from package ruby-libs](https://www.ruby-forum.com/t/conflicts-with-file-from-package-ruby-libs/169679)

<div class="topic-metadata">

**Author:** [@15characters](https://www.ruby-forum.com/u/15characters)\
**Replies:** 0\
**Last updated:** [June 6, 2009, 9:45pm UTC](https://www.ruby-forum.com/t/conflicts-with-file-from-package-ruby-libs/169679 "2009-06-06T21:45:46Z")

</div>

I installed ruby using yum on RHEL 5, but then wanted to upgrade the version to ruby-1.8…6 using a public repos (http://www.centos.org/modules/newbb/viewtopic.php?topic\_id=11821). I removed ruby from the system, howev…

---

## [How do I install sqlite3 on Windows, no really!?](https://www.ruby-forum.com/t/how-do-i-install-sqlite3-on-windows-no-really/169661)

<div class="topic-metadata">

**Author:** [@maz](https://www.ruby-forum.com/u/maz)\
**Replies:** 3\
**Last updated:** [June 6, 2009, 9:41pm UTC](https://www.ruby-forum.com/t/how-do-i-install-sqlite3-on-windows-no-really/169661 "2009-06-06T21:41:36Z")

</div>

Before someone comes in and says “this has been covered before,” I know people think that it has been covered before but that isn’t helping me now. People have been saying that all you have to do is use the previous …

---

## [Ruby2c?](https://www.ruby-forum.com/t/ruby2c/169312)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 3\
**Last updated:** [June 6, 2009, 8:53pm UTC](https://www.ruby-forum.com/t/ruby2c/169312 "2009-06-06T20:53:53Z")

</div>

I tried to get ruby2c working recently and none of the files in the demos folder seem to translate, and requiring ruby\_to\_ansi\_c file doesn’t seem to work, either. Anybody gotten this bad boy to work? -=r

---

## [Nokogiri XML::NodeSet#search behavior](https://www.ruby-forum.com/t/nokogiri-xml-nodeset-search-behavior/169676)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 0\
**Last updated:** [June 6, 2009, 8:52pm UTC](https://www.ruby-forum.com/t/nokogiri-xml-nodeset-search-behavior/169676 "2009-06-06T20:52:20Z")

</div>

Can a Nokogiri NodeSet not be searched? There is a #search method but it doesn’t seem to work as I would expect it too. require ‘nokogiri’ xml = Nokogiri::XML \<\<-EOS dummydummy\</ n\> EOS nodeset = xml.search(’.q’) …

---

## [Can't install sqlite3-ruby gem in Windows](https://www.ruby-forum.com/t/cant-install-sqlite3-ruby-gem-in-windows/169513)

<div class="topic-metadata">

**Author:** [@gnovah](https://www.ruby-forum.com/u/gnovah)\
**Replies:** 5\
**Last updated:** [June 6, 2009, 8:41pm UTC](https://www.ruby-forum.com/t/cant-install-sqlite3-ruby-gem-in-windows/169513 "2009-06-06T20:41:45Z")

</div>

I’m also having problems installing the sqlite3 gem on Windows. I downloaded sqlite-3\_6\_14\_2.zip and sqlitedll-3\_6\_14\_2.zip from SQLite Download Page and extracted them to /WINDOWS/SYSTEM 32. But when I type gem in…

---

## [Can someone explain the difference: Array\[\] and Array.fetch](https://www.ruby-forum.com/t/can-someone-explain-the-difference-array-and-array-fetch/169640)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 5\
**Last updated:** [June 6, 2009, 7:31pm UTC](https://www.ruby-forum.com/t/can-someone-explain-the-difference-array-and-array-fetch/169640 "2009-06-06T19:31:42Z")

</div>

array = \[“a”,“b”,“c”\] # =\> \[“a”, “b”, “c”\] array\[1\] # =\> “b” array.fetch 1 # =\> “b” ================================================== So far, so fine. =======================…

---

## [How can I cancel a running script](https://www.ruby-forum.com/t/how-can-i-cancel-a-running-script/169651)

<div class="topic-metadata">

**Author:** [@acampos](https://www.ruby-forum.com/u/acampos)\
**Replies:** 1\
**Last updated:** [June 6, 2009, 7:18pm UTC](https://www.ruby-forum.com/t/how-can-i-cancel-a-running-script/169651 "2009-06-06T19:18:27Z")

</div>

Hi, I have an IronRuby script running that I’d like to be able to cancel from outside the script. Is there any way to do that? ScriptEngine scriptEngine = Ruby.CreateEngine(); ScriptScope scriptScope = scriptEngine.C…

---

## [Something has changed](https://www.ruby-forum.com/t/something-has-changed/169667)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 4\
**Last updated:** [June 6, 2009, 6:18pm UTC](https://www.ruby-forum.com/t/something-has-changed/169667 "2009-06-06T18:18:28Z")

</div>

Hi Since this weeks updates to ironruby ironrubymvc is completely broken. The way overloads are selected now is different. for example asp.net mvc has a bunch of methods defined on Controller that are protected inte…

---

## [Calling java function from JRuby](https://www.ruby-forum.com/t/calling-java-function-from-jruby/166205)

<div class="topic-metadata">

**Author:** [@amabdelsalam](https://www.ruby-forum.com/u/amabdelsalam)\
**Replies:** 3\
**Last updated:** [June 6, 2009, 5:00pm UTC](https://www.ruby-forum.com/t/calling-java-function-from-jruby/166205 "2009-06-06T17:00:23Z")

</div>

Hi,… I’d like to call java function from inside JRuby. For example, when a certain event happen inside JRuby script, the java function is executed. To simplify it: Here is some ruby code: def handle\_value(value) I …

---

## [Ruby vs. Groovy: your perspective](https://www.ruby-forum.com/t/ruby-vs-groovy-your-perspective/165380)

<div class="topic-metadata">

**Author:** [@diego\_v](https://www.ruby-forum.com/u/diego_v)\
**Replies:** 44\
**Last updated:** [June 6, 2009, 4:52pm UTC](https://www.ruby-forum.com/t/ruby-vs-groovy-your-perspective/165380 "2009-06-06T16:52:44Z")

</div>

Hello, I realise this is a very hot topic… and people have strong feelings about either language. I am not trying to trolling. Still I’ve heard a bit about Groovy and it kind of seems like the Java answer to Ruby (ev…

---

## [Rounding errors?](https://www.ruby-forum.com/t/rounding-errors/169644)

<div class="topic-metadata">

**Author:** [@moredip](https://www.ruby-forum.com/u/moredip)\
**Replies:** 6\
**Last updated:** [June 6, 2009, 10:03am UTC](https://www.ruby-forum.com/t/rounding-errors/169644 "2009-06-06T10:03:09Z")

</div>

:~$ ruby -e “p ((0.29)\*100).to\_i” 28 Really?! I know that digital storage of floating point numbers can lead to things like this, but this one seems a little extreme to me. :~$ ruby -v ruby 1.8.7 (2008-08-11 patchle…

---

## [Re: Can't get ironruby to work correctly](https://www.ruby-forum.com/t/re-cant-get-ironruby-to-work-correctly/169641)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 1\
**Last updated:** [June 6, 2009, 5:29am UTC](https://www.ruby-forum.com/t/re-cant-get-ironruby-to-work-correctly/169641 "2009-06-06T05:29:34Z")

</div>

I believe there is even an open bug for it. Please vote for it on CodePlex JD …there is no try Sent from my phone. Please excuse typos and txtspk.

---

## [Can't get ironruby to work correctly](https://www.ruby-forum.com/t/cant-get-ironruby-to-work-correctly/169638)

<div class="topic-metadata">

**Author:** [@3nd3r](https://www.ruby-forum.com/u/3nd3r)\
**Replies:** 1\
**Last updated:** [June 6, 2009, 3:08am UTC](https://www.ruby-forum.com/t/cant-get-ironruby-to-work-correctly/169638 "2009-06-06T03:08:34Z")

</div>

I have downloaded ironruby from IronRuby.net / Get IronRuby and unzipped it and moved it to c:\\ironruby. I put c:\\ironruby\\bin in my PATH variable and when I type igem, iirb or any of the other commands under c:\\iron…

---

## [Test array and assign result to variable](https://www.ruby-forum.com/t/test-array-and-assign-result-to-variable/169592)

<div class="topic-metadata">

**Author:** [@adrianunderwater](https://www.ruby-forum.com/u/adrianunderwater)\
**Replies:** 3\
**Last updated:** [June 6, 2009, 1:59am UTC](https://www.ruby-forum.com/t/test-array-and-assign-result-to-variable/169592 "2009-06-06T01:59:54Z")

</div>

I have this example: class Array def find for i in 0…size value = self\[i\] return value if yield(value) end return nil end end x = \[1, 3, 5, 7, 9\] x.find {|v| vv \> 30 } It says that return 7 - the first value …

---

## [Windows issue: 'cmd' is not recognized](https://www.ruby-forum.com/t/windows-issue-cmd-is-not-recognized/169584)

<div class="topic-metadata">

**Author:** [@Logan\_B](https://www.ruby-forum.com/u/Logan_B)\
**Replies:** 16\
**Last updated:** [June 6, 2009, 1:59am UTC](https://www.ruby-forum.com/t/windows-issue-cmd-is-not-recognized/169584 "2009-06-06T01:59:36Z")

</div>

Fellas, One of my Rawr users is having problems setting up JRuby in his Windows environment. jruby seems to be on the path. I’ve seen some other users with the same error. On my XP instance 1.3.0 seems to work just f…

---

## [Compiling Ruby 1.9.1 zlib issue on Windows](https://www.ruby-forum.com/t/compiling-ruby-1-9-1-zlib-issue-on-windows/169453)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 13\
**Last updated:** [June 6, 2009, 1:30am UTC](https://www.ruby-forum.com/t/compiling-ruby-1-9-1-zlib-issue-on-windows/169453 "2009-06-06T01:30:57Z")

</div>

Hi everyone, I just have a strange issue and it’s probably a step that I’m missing somewhere… I wanted to compile a windows version of 1.9.1 to include Tk so that I would have cross-platform GUI for Ruby. I download…

---

## [Detecting cancelled request using Rack](https://www.ruby-forum.com/t/detecting-cancelled-request-using-rack/169629)

<div class="topic-metadata">

**Author:** [@james-calivar](https://www.ruby-forum.com/u/james-calivar)\
**Replies:** 0\
**Last updated:** [June 6, 2009, 1:05am UTC](https://www.ruby-forum.com/t/detecting-cancelled-request-using-rack/169629 "2009-06-06T01:05:13Z")

</div>

Hi all, I was wondering whether it’s possible to detect a cancelled request in Rack or in web frameworks including Rails and Sinatra. I’m experimenting with a little Comet library and want a way to shut down message…

---

## [Best way to create a web application from script](https://www.ruby-forum.com/t/best-way-to-create-a-web-application-from-script/169607)

<div class="topic-metadata">

**Author:** [@rhderanek](https://www.ruby-forum.com/u/rhderanek)\
**Replies:** 3\
**Last updated:** [June 6, 2009, 12:44am UTC](https://www.ruby-forum.com/t/best-way-to-create-a-web-application-from-script/169607 "2009-06-06T00:44:43Z")

</div>

Over the past year I’ve written some testing scripts for the company I work for using Ruby and the Watir gem. I would now like to create a web page so that anyone in the company could use the script, but I’m having t…

---

## [Making nil comparable](https://www.ruby-forum.com/t/making-nil-comparable/169610)

<div class="topic-metadata">

**Author:** [@rjsquire](https://www.ruby-forum.com/u/rjsquire)\
**Replies:** 5\
**Last updated:** [June 6, 2009, 12:19am UTC](https://www.ruby-forum.com/t/making-nil-comparable/169610 "2009-06-06T00:19:26Z")

</div>

I have a array of foo objects, each of which contains an array bar values. I’d like to sort the foos, ordered by the bars. The problem is that the bars are of unequal length. The most apt example is the numbering in…

---

## [Ri\_cal 0.6.0 Released](https://www.ruby-forum.com/t/ri-cal-0-6-0-released/169623)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 0\
**Last updated:** [June 5, 2009, 11:35pm UTC](https://www.ruby-forum.com/t/ri-cal-0-6-0-released/169623 "2009-06-05T23:35:56Z")

</div>

ri\_cal version 0.6.0 has been released! http://ri-cal.rubyforge.org/ A new Ruby implementation of RFC2445 iCalendar. The existing Ruby iCalendar libraries (e.g. icalendar, vpim) provide for parsing and generating…

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

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