# Ruby

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

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

---

## [Overflow of time on FreeBSD](https://www.ruby-forum.com/t/overflow-of-time-on-freebsd/186279)

<div class="topic-metadata">

**Author:** [@NARUSES\_Yui](https://www.ruby-forum.com/u/NARUSES_Yui)\
**Replies:** 0\
**Last updated:** [April 3, 2010, 2:48pm UTC](https://www.ruby-forum.com/t/overflow-of-time-on-freebsd/186279 "2010-04-03T14:48:05Z")

</div>

e$B@.@%$G$9!#e(B FreeBSD e$B$G0J2\<$N%F%9%H$,\<:GT$7$^$9!#e(B Failure: test\_at(TestTime) \[/home/naruse/ruby/test/ruby/test\_time.rb:177\]: \<-146138510344\> expected but was \<34667\>. e$B$,!"$I$&$b$3$l$Oe(B FreeBSD e$BB&$…

---

## [Test\_float\_hex failure \[test/ruby/test\_sprintf.rb:202\]](https://www.ruby-forum.com/t/test-float-hex-failure-test-ruby-test-sprintf-rb-202/186277)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [April 3, 2010, 1:37pm UTC](https://www.ruby-forum.com/t/test-float-hex-failure-test-ruby-test-sprintf-rb-202/186277 "2010-04-03T13:37:51Z")

</div>

e$B0J2\<$N$h$&$Ke(B test\_sprintf.rb e$B$,\<:GT$7$^$9!#e(B % ./ruby -v test/ruby/test\_sprintf.rb ruby 1.9.2dev (2010-04-03 trunk 27207) \[i686-linux\] Loaded suite test/ruby/test\_sprintf Started …F… Finished in 0.061968…

---

## [Its a bird, its a plane, its.. um, an Attribute based System?](https://www.ruby-forum.com/t/its-a-bird-its-a-plane-its-um-an-attribute-based-system/186199)

<div class="topic-metadata">

**Author:** [@thunk](https://www.ruby-forum.com/u/thunk)\
**Replies:** 14\
**Last updated:** [April 3, 2010, 12:10pm UTC](https://www.ruby-forum.com/t/its-a-bird-its-a-plane-its-um-an-attribute-based-system/186199 "2010-04-03T12:10:39Z")

</div>

http://seclab.uiuc.edu/web/projects/67.html And this doesn’t make any particular sense to me. There is said to be a PHP version working with ECommerce? and It is open source. This was where the original concept only……

---

## [Â€œarch -i386 rubyâ€ not loading into 32-bit mode in 10.6.3](https://www.ruby-forum.com/t/a-oearch-i386-rubya-not-loading-into-32-bit-mode-in-10-6-3/186209)

<div class="topic-metadata">

**Author:** [@richardfairhurst](https://www.ruby-forum.com/u/richardfairhurst)\
**Replies:** 3\
**Last updated:** [April 3, 2010, 11:59am UTC](https://www.ruby-forum.com/t/a-oearch-i386-rubya-not-loading-into-32-bit-mode-in-10-6-3/186209 "2010-04-03T11:59:08Z")

</div>

\<2.33GHz MBPC2D running OS X 10.6.3\> OSAX calls within the default 64-bit environment of OS X 10.6.3 (I have not tried with earlier OS X versions) are failing when using what has been recommended for forcing Ruby to r…

---

## [Using Process module](https://www.ruby-forum.com/t/using-process-module/185921)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [April 3, 2010, 10:27am UTC](https://www.ruby-forum.com/t/using-process-module/185921 "2010-04-03T10:27:39Z")

</div>

I am writing an app that in some parts need root access, but 90% of the time does not. It seems the relevant methods in Process to switch UID and GID does not exist in JRuby. Is there a way to start as root, drop pri…

---

## [Code Review: i-scripts](https://www.ruby-forum.com/t/code-review-i-scripts/185920)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 7\
**Last updated:** [April 3, 2010, 9:12am UTC](https://www.ruby-forum.com/t/code-review-i-scripts/185920 "2010-04-03T09:12:43Z")

</div>

tfpt review “/shelveset:i-scripts;REDMOND\\jimmysch” Cleans up i\* scripts only keep gem, irb, rdoc, ri; delete rack, rails, etc rename Ruby scripts to non-i names, and keep i\*.bat files (igem.bat and gem) Fix tutorial…

---

## [Require rubygems](https://www.ruby-forum.com/t/require-rubygems/186216)

<div class="topic-metadata">

**Author:** [@eva54321](https://www.ruby-forum.com/u/eva54321)\
**Replies:** 2\
**Last updated:** [April 3, 2010, 3:14am UTC](https://www.ruby-forum.com/t/require-rubygems/186216 "2010-04-03T03:14:00Z")

</div>

Hi, I saw people wrote “require ‘rubygems’” in their scripts sometime. For what purpose is this module used? Thanks. -eva

---

## [\[Bug:trunk\] test\_float\_hex failure](https://www.ruby-forum.com/t/bug-trunk-test-float-hex-failure/186258)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [April 3, 2010, 3:09am UTC](https://www.ruby-forum.com/t/bug-trunk-test-float-hex-failure/186258 "2010-04-03T03:09:54Z")

</div>

test\_float\_hex e$B$,\<:GT$7$F$$$^$9!#e(B +test\_float\_hex(TestSprintf) \[/home/akr/chkbuild/tmp/build/ruby-trunk//ruby/test/ruby/test\_sprintf.rb:200\]: +\<“0x1.193ea7aad030ap+0”\> expected but was +\<“0x1.193ea7aad030bp+0”\>.…

---

## [A little help needed](https://www.ruby-forum.com/t/a-little-help-needed/186239)

<div class="topic-metadata">

**Author:** [@homer-16](https://www.ruby-forum.com/u/homer-16)\
**Replies:** 7\
**Last updated:** [April 3, 2010, 2:44am UTC](https://www.ruby-forum.com/t/a-little-help-needed/186239 "2010-04-03T02:44:45Z")

</div>

Hi,I’m new here. I have a question: What exactly does the ‘@’ symbol mean when used for the scope of a variable? For instance: @screen=\[640,400\]. I haven’t found anything explicitly explaining exactly what this does…

---

## [ANN: Sequel 3.10.0 Released](https://www.ruby-forum.com/t/ann-sequel-3-10-0-released/186253)

<div class="topic-metadata">

**Author:** [@nerdmaster](https://www.ruby-forum.com/u/nerdmaster)\
**Replies:** 0\
**Last updated:** [April 2, 2010, 11:46pm UTC](https://www.ruby-forum.com/t/ann-sequel-3-10-0-released/186253 "2010-04-02T23:46:08Z")

</div>

Sequel is a lightweight database access toolkit for Ruby. Sequel provides thread safety, connection pooling and a concise DSL for constructing database queries and table schemas. Sequel also includes a lightweight but…

---

## [Rdoc 2.5 Released](https://www.ruby-forum.com/t/rdoc-2-5-released/186160)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 7\
**Last updated:** [April 2, 2010, 11:24pm UTC](https://www.ruby-forum.com/t/rdoc-2-5-released/186160 "2010-04-02T23:24:10Z")

</div>

rdoc version 2.5 has been released! RDoc Project Page http://rubyforge.org/projects/rdoc/ RDoc Documentation http://rdoc.rubyforge.org/ RDoc Bug Tracker http://rubyforge.org/tracker/?atid=2472&group\_id=627&func=br…

---

## [Code Review: rubyreleasechanges](https://www.ruby-forum.com/t/code-review-rubyreleasechanges/186238)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [April 2, 2010, 8:47pm UTC](https://www.ruby-forum.com/t/code-review-rubyreleasechanges/186238 "2010-04-02T20:47:03Z")

</div>

tfpt review “/shelveset:rubyreleasechanges;REDMOND\\jdeville” Comment : update reflector in servicing branch make the Tutorial rakefile build the required assemblies, and also to depend on Rake’s clean and clobber ta…

---

## [About define significance variable(in this situation)](https://www.ruby-forum.com/t/about-define-significance-variable-in-this-situation/186215)

<div class="topic-metadata">

**Author:** [@rubyernewbie](https://www.ruby-forum.com/u/rubyernewbie)\
**Replies:** 1\
**Last updated:** [April 2, 2010, 8:05pm UTC](https://www.ruby-forum.com/t/about-define-significance-variable-in-this-situation/186215 "2010-04-02T20:05:29Z")

</div>

def method\_1(options ={}) if some\_conditions options = {:method\_2 =\> true} method\_2(options) end method\_3(options) method\_4(options) end def method\_2(options ={}) some code end method\_1({:method\_1 =\> true) +++…

---

## [Code Review: InterpretInterop](https://www.ruby-forum.com/t/code-review-interpretinterop/186236)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [April 2, 2010, 7:49pm UTC](https://www.ruby-forum.com/t/code-review-interpretinterop/186236 "2010-04-02T19:49:40Z")

</div>

tfpt review “/shelveset:InterpretInterop;REDMOND\\tomat” Comment : Makes Ruby interop binders interpreted. Tomas

---

## [Compiling JRuby classes into Java .Class files](https://www.ruby-forum.com/t/compiling-jruby-classes-into-java-class-files/186234)

<div class="topic-metadata">

**Author:** [@Ahmed\_Ragab\_Nabhan](https://www.ruby-forum.com/u/Ahmed_Ragab_Nabhan)\
**Replies:** 0\
**Last updated:** [April 2, 2010, 5:32pm UTC](https://www.ruby-forum.com/t/compiling-jruby-classes-into-java-class-files/186234 "2010-04-02T17:32:07Z")

</div>

Hi Developers, I just want to share with you some thoughts about my experience about compiling JRuby classes into .class files. But first, I just want to make my objective clear: I want to create JRuby software beans …

---

## [Dynamic Method Calls](https://www.ruby-forum.com/t/dynamic-method-calls/186187)

<div class="topic-metadata">

**Author:** [@mattmcswain](https://www.ruby-forum.com/u/mattmcswain)\
**Replies:** 7\
**Last updated:** [April 2, 2010, 3:58pm UTC](https://www.ruby-forum.com/t/dynamic-method-calls/186187 "2010-04-02T15:58:26Z")

</div>

Right now I have some inefficient code that looks like this… LdapAccount is my model… and record.attributes is a hash of attribute name,value pairs. records.each do |record| LdapAccount.create(:uid =\> record.attribut…

---

## [Ruby-sdl problem](https://www.ruby-forum.com/t/ruby-sdl-problem/186192)

<div class="topic-metadata">

**Author:** [@jvalencia](https://www.ruby-forum.com/u/jvalencia)\
**Replies:** 1\
**Last updated:** [April 2, 2010, 12:28pm UTC](https://www.ruby-forum.com/t/ruby-sdl-problem/186192 "2010-04-02T12:28:56Z")

</div>

Hi, I’ve been reading this introduction to rubysdl (O'Reilly Media - Technology and Business Training) and wanted to try it. My problem is the following: irb(main):001:0\> require “rubygems” =\> true irb(main):002:0\> …

---

## [Playing Games with "Ruids"](https://www.ruby-forum.com/t/playing-games-with-ruids/186074)

<div class="topic-metadata">

**Author:** [@thunk](https://www.ruby-forum.com/u/thunk)\
**Replies:** 45\
**Last updated:** [April 2, 2010, 5:17am UTC](https://www.ruby-forum.com/t/playing-games-with-ruids/186074 "2010-04-02T05:17:39Z")

</div>

ok, some clarity arrived: for trivial games one “helperclass” each. one '?'method per potential move. chess would require maybe 6 helper classes or so. the “ruids” play n play players. the swarms are organized dif…

---

## [\[ANN\] Padrino Webapp Framework](https://www.ruby-forum.com/t/ann-padrino-webapp-framework/186206)

<div class="topic-metadata">

**Author:** [@xgamerx](https://www.ruby-forum.com/u/xgamerx)\
**Replies:** 1\
**Last updated:** [April 2, 2010, 4:29am UTC](https://www.ruby-forum.com/t/ann-padrino-webapp-framework/186206 "2010-04-02T04:29:26Z")

</div>

Padrino is a modular ruby web framework built upon the excellent Sinatra Microframework. Padrino was created to make it fun and easy to code more advanced web applications while still adhering to the spirit that makes…

---

## [Rake 0.8.7 needs Ruby 1.8?](https://www.ruby-forum.com/t/rake-0-8-7-needs-ruby-1-8/186138)

<div class="topic-metadata">

**Author:** [@jasv](https://www.ruby-forum.com/u/jasv)\
**Replies:** 4\
**Last updated:** [April 2, 2010, 2:25am UTC](https://www.ruby-forum.com/t/rake-0-8-7-needs-ruby-1-8/186138 "2010-04-02T02:25:35Z")

</div>

Hello… I am trying to install a Ruby application called Redmine. In order to create database structure, I have to execute this command: rake db:migrate When I run it, a message telling that msvcrt-ruby18.dll was not …

---

## [Its a bird, its a plane, its.. um, an Attribute based System?](https://www.ruby-forum.com/t/its-a-bird-its-a-plane-its-um-an-attribute-based-system/197034)

<div class="topic-metadata">

**Author:** [@thunk](https://www.ruby-forum.com/u/thunk)\
**Replies:** 0\
**Last updated:** [April 2, 2010, 12:31am UTC](https://www.ruby-forum.com/t/its-a-bird-its-a-plane-its-um-an-attribute-based-system/197034 "2010-04-02T00:31:25Z")

</div>

http://seclab.uiuc.edu/web/projects/67.html And this doesn’t make any particular sense to me. There is said to be a PHP version working with ECommerce? and It is open source. This was where the original concept only……

---

## [Any library to aid me in adding data to fields of a pdf?](https://www.ruby-forum.com/t/any-library-to-aid-me-in-adding-data-to-fields-of-a-pdf/186197)

<div class="topic-metadata">

**Author:** [@grar](https://www.ruby-forum.com/u/grar)\
**Replies:** 0\
**Last updated:** [April 2, 2010, 12:24am UTC](https://www.ruby-forum.com/t/any-library-to-aid-me-in-adding-data-to-fields-of-a-pdf/186197 "2010-04-02T00:24:50Z")

</div>

Hi, I’ve got a pdf form that I’d like to fill out from a ruby app. All the tutorials seem to focus on writing altogether new pdf documents and not at all on filling out fields in prepared pdf documents. Any suggestion…

---

## [Is there a method to set variable to NaN or Infinity?](https://www.ruby-forum.com/t/is-there-a-method-to-set-variable-to-nan-or-infinity/186175)

<div class="topic-metadata">

**Author:** [@alexd](https://www.ruby-forum.com/u/alexd)\
**Replies:** 5\
**Last updated:** [April 1, 2010, 11:47pm UTC](https://www.ruby-forum.com/t/is-there-a-method-to-set-variable-to-nan-or-infinity/186175 "2010-04-01T23:47:31Z")

</div>

Is there a built-in method to set a floating point value to NaN or Infinity? Or, is the only way to do this by a = 0.0/0.0 # set a to NaN b = 3.0/0.0 # set b to Infinity c = -3.0/0.0 # set c to -Infinity Also,…

---

## [\[ANN\]"specific\_install" gem plugin released](https://www.ruby-forum.com/t/ann-specific-install-gem-plugin-released/186189)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [April 1, 2010, 9:35pm UTC](https://www.ruby-forum.com/t/ann-specific-install-gem-plugin-released/186189 "2010-04-01T21:35:12Z")

</div>

Pleased to announce the initial release of the “specific\_install” gem. Its goal: to be able to download a git repo, build the gem therein, and install it. I couldn’t think of any way to do this so made a gem for it. …

---

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

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 4\
**Last updated:** [April 1, 2010, 7:42pm UTC](https://www.ruby-forum.com/t/phuby-1-0-0-released/186181 "2010-04-01T19:42:46Z")

</div>

THIS IS NOT A JOKE. I AM VERY SERIOUSLY RELEASING PHUBY. Phuby embeds a PHP runtime inside a Ruby runtime. This gem will let rails scale by allowing you to run PHP applications inside your rails applications. To see…

---

## [Ruby solve classic math problem: make 56 from four 4s](https://www.ruby-forum.com/t/ruby-solve-classic-math-problem-make-56-from-four-4s/186128)

<div class="topic-metadata">

**Author:** [@Kelly\_J](https://www.ruby-forum.com/u/Kelly_J)\
**Replies:** 5\
**Last updated:** [April 1, 2010, 7:32pm UTC](https://www.ruby-forum.com/t/ruby-solve-classic-math-problem-make-56-from-four-4s/186128 "2010-04-01T19:32:18Z")

</div>

A classic math problem asks “using only four 4s and any mathematical operation, come up with the number 56”. “4!+4!+4+4” is one of probably several answers \[1\]. I want to write a ruby program that solves the generali…

---

## [trap(:INT); system(); STDIN.gets(); ^C](https://www.ruby-forum.com/t/trap-int-system-stdin-gets-c/186122)

<div class="topic-metadata">

**Author:** [@clashcityrocker](https://www.ruby-forum.com/u/clashcityrocker)\
**Replies:** 4\
**Last updated:** [April 1, 2010, 7:30pm UTC](https://www.ruby-forum.com/t/trap-int-system-stdin-gets-c/186122 "2010-04-01T19:30:33Z")

</div>

Considering a trivial example: trap :INT do puts puts ‘Bye’ exit end system ‘date’ print 'Say something: ’ STDOUT.flush puts “You said: #{STDIN.gets}” When prompted to say something, hitting Ctrl+C will call tra…

---

## [Bind NICs to Mechanize](https://www.ruby-forum.com/t/bind-nics-to-mechanize/185989)

<div class="topic-metadata">

**Author:** [@tikaro](https://www.ruby-forum.com/u/tikaro)\
**Replies:** 12\
**Last updated:** [April 1, 2010, 6:23pm UTC](https://www.ruby-forum.com/t/bind-nics-to-mechanize/185989 "2010-04-01T18:23:13Z")

</div>

Hi, I may shooting a wrong question, but I saw the same question here that left unanswered and gone 60 days more, so I want to raise it once again. I have 3 NIFs : 1.ã€€PPP1 (111.111.111.111)ï¼šPPTP to VPN ã€€2.ã€€e…

---

## [Post-Condition if Statements And NameErrors](https://www.ruby-forum.com/t/post-condition-if-statements-and-nameerrors/186127)

<div class="topic-metadata">

**Author:** [@MaggotChild](https://www.ruby-forum.com/u/MaggotChild)\
**Replies:** 2\
**Last updated:** [April 1, 2010, 6:22pm UTC](https://www.ruby-forum.com/t/post-condition-if-statements-and-nameerrors/186127 "2010-04-01T18:22:38Z")

</div>

I thought this was odd: def bs 1 end print y + 1 if y = bs NameError: undefined local variable or method \`y’ for main:Object And, of course, the multi-line if works: if x = bs print x + 1 end

---

## [Mutex problem - deadlock](https://www.ruby-forum.com/t/mutex-problem-deadlock/184608)

<div class="topic-metadata">

**Author:** [@jgrewal](https://www.ruby-forum.com/u/jgrewal)\
**Replies:** 10\
**Last updated:** [April 1, 2010, 4:51pm UTC](https://www.ruby-forum.com/t/mutex-problem-deadlock/184608 "2010-04-01T16:51:47Z")

</div>

Environment: Jruby 1.4, Rails 2.3.5, Java 6, Tomcat 6 When running the application, the server gets stuck on requests and does not respond. No errors are thrown. There seems to be some sort of deadlock. After looking…

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

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