# Ruby

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

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

---

## [\[ANN\] JRuby 1.1.2 Released](https://www.ruby-forum.com/t/ann-jruby-1-1-2-released/138828)

<div class="topic-metadata">

**Author:** [@Thomas\_E\_Enebo](https://www.ruby-forum.com/u/Thomas_E_Enebo)\
**Replies:** 15\
**Last updated:** [June 18, 2008, 2:51am UTC](https://www.ruby-forum.com/t/ann-jruby-1-1-2-released/138828 "2008-06-18T02:51:05Z")

</div>

The JRuby community is pleased to announce the release of JRuby 1.1.2! Homepage: http://www.jruby.org/ Download: http://dist.codehaus.org/jruby/ JRuby 1.1.2 is the second point release of JRuby 1.1. The fixes in this …

---

## [Scaffold doesnt work](https://www.ruby-forum.com/t/scaffold-doesnt-work/140706)

<div class="topic-metadata">

**Author:** [@graphicmist](https://www.ruby-forum.com/u/graphicmist)\
**Replies:** 2\
**Last updated:** [June 17, 2008, 11:34pm UTC](https://www.ruby-forum.com/t/scaffold-doesnt-work/140706 "2008-06-17T23:34:43Z")

</div>

i issue the following command at terminal… neo:~/Desktop/rails/modeler # ruby script/generate scaffold Item Manage exists app/controllers/ exists app/helpers/ create app/views/manage exists app/views/layouts/ e…

---

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

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 3\
**Last updated:** [June 17, 2008, 10:43pm UTC](https://www.ruby-forum.com/t/code-review-systemstack/140719 "2008-06-17T22:43:52Z")

</div>

Ruby Only Changes the exception inheritance tree to put SystemStackError under StandardError to match CRuby

---

## [Java Integration - Can you create Anonymous Interfaces/Subclasses in ruby?](https://www.ruby-forum.com/t/java-integration-can-you-create-anonymous-interfaces-subclasses-in-ruby/140657)

<div class="topic-metadata">

**Author:** [@Bryan\_Castillo](https://www.ruby-forum.com/u/Bryan_Castillo)\
**Replies:** 4\
**Last updated:** [June 17, 2008, 10:25pm UTC](https://www.ruby-forum.com/t/java-integration-can-you-create-anonymous-interfaces-subclasses-in-ruby/140657 "2008-06-17T22:25:29Z")

</div>

I am experimenting with JRuby/SWT/Mozilla/JavaXPComm. It is a lot of fun, but one of the things that has bothered me a bit is how to create listeners for UI events. I want to specify listeners for events using block…

---

## [Meow 1.1.0 Released](https://www.ruby-forum.com/t/meow-1-1-0-released/140714)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [June 17, 2008, 8:45pm UTC](https://www.ruby-forum.com/t/meow-1-1-0-released/140714 "2008-06-17T20:45:27Z")

</div>

meow version 1.1.0 has been released! http://meow.rubyforge.org/ Send Growl notifications via Ruby. Changes: 1.1.0 / 2008-06-13 3 major enhancements Added click callbacks so that Meow can be notified of clicks. …

---

## [File uploads going haywire](https://www.ruby-forum.com/t/file-uploads-going-haywire/140294)

<div class="topic-metadata">

**Author:** [@joshua\_d](https://www.ruby-forum.com/u/joshua_d)\
**Replies:** 2\
**Last updated:** [June 17, 2008, 8:38pm UTC](https://www.ruby-forum.com/t/file-uploads-going-haywire/140294 "2008-06-17T20:38:58Z")

</div>

All- I attempted to do some searching in your archives regarding file uploads and didn’t find much so hopefully I’m not treading on ground ill-covered by this list. I’m seeing some pretty awesome errors fly out of m…

---

## [No rmagick after update](https://www.ruby-forum.com/t/no-rmagick-after-update/140708)

<div class="topic-metadata">

**Author:** [@macaco](https://www.ruby-forum.com/u/macaco)\
**Replies:** 0\
**Last updated:** [June 17, 2008, 8:19pm UTC](https://www.ruby-forum.com/t/no-rmagick-after-update/140708 "2008-06-17T20:19:21Z")

</div>

Hi list. Some days ago I’ve updated my kubuntu and my ruby server just stop, I decided to run a “gem update” and everything seem to be ok. but i get to this line of code: send\_data(g.paint(XMAXMULT,YMAXMULT,MULT).to…

---

## [Detect if required or executed?](https://www.ruby-forum.com/t/detect-if-required-or-executed/140707)

<div class="topic-metadata">

**Author:** [@ISESSmith-Heister](https://www.ruby-forum.com/u/ISESSmith-Heister)\
**Replies:** 4\
**Last updated:** [June 17, 2008, 8:18pm UTC](https://www.ruby-forum.com/t/detect-if-required-or-executed/140707 "2008-06-17T20:18:04Z")

</div>

Hi all, Is anyone aware of a way to detect if a file has been required from another ruby process, or is being executed from the commandline? I’ve been doing this hack: do\_executable\_behavior unless ENV\[‘DONT\_RUN’\] b…

---

## [Avoiding copies of method arguments](https://www.ruby-forum.com/t/avoiding-copies-of-method-arguments/140695)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 3\
**Last updated:** [June 17, 2008, 5:51pm UTC](https://www.ruby-forum.com/t/avoiding-copies-of-method-arguments/140695 "2008-06-17T17:51:32Z")

</div>

Hello! v = ‘abc’ some-method(v) This will send a copy of v to the method, right? If so, how does one avoid this. How can one send the original and avoid the extra consumption of resources from copying? Thanks!

---

## [Uniqid(php) for ruby:](https://www.ruby-forum.com/t/uniqid-php-for-ruby/140680)

<div class="topic-metadata">

**Author:** [@bloodnix](https://www.ruby-forum.com/u/bloodnix)\
**Replies:** 2\
**Last updated:** [June 17, 2008, 4:18pm UTC](https://www.ruby-forum.com/t/uniqid-php-for-ruby/140680 "2008-06-17T16:18:05Z")

</div>

Php code: $uniq\_id = md5(uniqid(time())); As for ruby?:frowning: thanks.

---

## [Newbie: quick question re: windows install](https://www.ruby-forum.com/t/newbie-quick-question-re-windows-install/139741)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [June 17, 2008, 4:16pm UTC](https://www.ruby-forum.com/t/newbie-quick-question-re-windows-install/139741 "2008-06-17T16:16:55Z")

</div>

I just downloaded ruby and ran the installer(Ruby 1.8.6 One-Click Installer). I then opened the tutorial “Ruby in Twenty Minutes”. The very first statement I encounter states “If you’re using Windows, open fxri from t…

---

## [Can Ruby compare IPv6?](https://www.ruby-forum.com/t/can-ruby-compare-ipv6/140638)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 2\
**Last updated:** [June 17, 2008, 2:46pm UTC](https://www.ruby-forum.com/t/can-ruby-compare-ipv6/140638 "2008-06-17T14:46:20Z")

</div>

Hi, is there any cool way in Ruby to match two IPv6 that have the same binary value? For example: 2001:0DB8:0:0::0:1428:57ab is the same as: 2001:0DB8:0::0:1428:57ab Can Ruby match those two IPv6 easily without abi…

---

## [Lib/finalize may be obsolete?](https://www.ruby-forum.com/t/lib-finalize-may-be-obsolete/80382)

<div class="topic-metadata">

**Author:** [@sheepman](https://www.ruby-forum.com/u/sheepman)\
**Replies:** 2\
**Last updated:** [June 17, 2008, 11:34am UTC](https://www.ruby-forum.com/t/lib-finalize-may-be-obsolete/80382 "2008-06-17T11:34:58Z")

</div>

e$B$3$s$P$s$O!"e(Bsheepman e$B$G$9!#e(B e$B%j%U%!%l%s%9%^%K%e%"%k$N:n6H$r$7$F$$$F5$$,IU$$$?$N$G$9$,!"e(B finalize e$B$re(B require e$B$9$k$H0J2\<$N$h$&$J7Y9p$,=P$^$9!#e(B $ ruby-1.8 -rfinalize -ve ‘’ ruby 1.8.5 (2006-…

---

## [\[Help\]Problem In Process Command Line Arguments](https://www.ruby-forum.com/t/help-problem-in-process-command-line-arguments/140665)

<div class="topic-metadata">

**Author:** [@Tsing](https://www.ruby-forum.com/u/Tsing)\
**Replies:** 0\
**Last updated:** [June 17, 2008, 10:37am UTC](https://www.ruby-forum.com/t/help-problem-in-process-command-line-arguments/140665 "2008-06-17T10:37:28Z")

</div>

I’m a ruby beginner. As I had installed NetBeans6.0 in WinXP\_SP2, I chose jruby to practise. But there is a problem when passing Chinese Characters(I’m Chinese) as command line arguments, jruby doesn’t received them …

---

## [Syntax change for 1.9?](https://www.ruby-forum.com/t/syntax-change-for-1-9/140654)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [June 17, 2008, 7:16am UTC](https://www.ruby-forum.com/t/syntax-change-for-1-9/140654 "2008-06-17T07:16:08Z")

</div>

case 3 when true && a = 3 rescue nil : false end this code errs in 1.9 and succeeds in 1.8.6 Was this deliberate? \[please ignore the lameness of the code–it was just a simplified example\]. Thanks! -R

---

## [Ogrerb doesn't work well](https://www.ruby-forum.com/t/ogrerb-doesnt-work-well/140650)

<div class="topic-metadata">

**Author:** [@joan713](https://www.ruby-forum.com/u/joan713)\
**Replies:** 0\
**Last updated:** [June 17, 2008, 4:25am UTC](https://www.ruby-forum.com/t/ogrerb-doesnt-work-well/140650 "2008-06-17T04:25:25Z")

</div>

Is there any ogre rb user? I need help. I installed ogre.rb gem and some related packages properly. For testing, I typed require ‘ogre’ , but error messages followed like â†“ LoadError: 127: The specified proced…

---

## [Ym4r + jQuery possible?](https://www.ruby-forum.com/t/ym4r-jquery-possible/140648)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 0\
**Last updated:** [June 17, 2008, 4:04am UTC](https://www.ruby-forum.com/t/ym4r-jquery-possible/140648 "2008-06-17T04:04:38Z")

</div>

I have used ym4r many times in my rails application. however, i wanna change the prototype to jquery using the jRails plugin. I found that there are some errors after I installed jrails. Is it possible to use ym4r and…

---

## [Job scheduling](https://www.ruby-forum.com/t/job-scheduling/140569)

<div class="topic-metadata">

**Author:** [@Andres\_K](https://www.ruby-forum.com/u/Andres_K)\
**Replies:** 3\
**Last updated:** [June 17, 2008, 2:22am UTC](https://www.ruby-forum.com/t/job-scheduling/140569 "2008-06-17T02:22:34Z")

</div>

Hello, I’m looking for a way to schedule background jobs (for instance invalidating session or sending mail) in Jruby on Rails (2.0.2). BackgrounDRb is not working because of ‘fork’ not working under Jruby. Googling …

---

## [Code Review: ExecCmd](https://www.ruby-forum.com/t/code-review-execcmd/140641)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [June 17, 2008, 2:15am UTC](https://www.ruby-forum.com/t/code-review-execcmd/140641 "2008-06-17T02:15:18Z")

</div>

tfpt review “/shelveset:ExecCmd;REDMOND\\tomat” Fixes compiler to emit a call to method when compilingcmd\`. Tomas

---

## [/\\p{Hiragana}/s may dump core when sizeof(int) differs from sizeof(long)](https://www.ruby-forum.com/t/p-hiragana-s-may-dump-core-when-sizeof-int-differs-from-sizeof-long/140597)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 3\
**Last updated:** [June 17, 2008, 1:05am UTC](https://www.ruby-forum.com/t/p-hiragana-s-may-dump-core-when-sizeof-int-differs-from-sizeof-long/140597 "2008-06-17T01:05:40Z")

</div>

e$B1sF#$G$9!#e(B sizeof(int) e$B$He(B sizeof(long) e$B$,0\[$J$k4D6-$G@55,I=8=$Ne(B property name e$B$re(B e$B;H$&$HMn$A$k$3$H$,$"$k$h$&$G$9!#e(B $ ./ruby -ve ‘/\\p{Hiragana}/s’ ruby 1.9.0 (2008-06-16 revision 17363) \[…

---

## [File paths and JRuby](https://www.ruby-forum.com/t/file-paths-and-jruby/140636)

<div class="topic-metadata">

**Author:** [@doncarlosx](https://www.ruby-forum.com/u/doncarlosx)\
**Replies:** 0\
**Last updated:** [June 16, 2008, 11:49pm UTC](https://www.ruby-forum.com/t/file-paths-and-jruby/140636 "2008-06-16T23:49:14Z")

</div>

Hey all, I just installed JRuby on a Tomcat server and I’m trying to load in my first ruby file. engine.eval(new FileReader("...")); The problem is I don’t know what to feed the FileReader. Is there an existing sol…

---

## [Signing problem on Vista 64](https://www.ruby-forum.com/t/signing-problem-on-vista-64/140620)

<div class="topic-metadata">

**Author:** [@stimpy](https://www.ruby-forum.com/u/stimpy)\
**Replies:** 5\
**Last updated:** [June 16, 2008, 10:39pm UTC](https://www.ruby-forum.com/t/signing-problem-on-vista-64/140620 "2008-06-16T22:39:59Z")

</div>

I’m having a problem running r114 on Vista 64. I did run the runfirst.cmd This is the exception I get: Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly ‘ir, Version=1.0.0.0, Culture=…

---

## [Fiber exists before require 'fiber'](https://www.ruby-forum.com/t/fiber-exists-before-require-fiber/140428)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 4\
**Last updated:** [June 16, 2008, 10:00pm UTC](https://www.ruby-forum.com/t/fiber-exists-before-require-fiber/140428 "2008-06-16T22:00:54Z")

</div>

So, in 1.9 it appears that the Fiber class exists before you’ve required fiber. Thoughts? irb(main):001:0\> Fiber =\> Fiber irb(main):002:0\> Fiber.current NoMethodError: undefined method current' for Fiber:Class from…

---

## [Fiber variables](https://www.ruby-forum.com/t/fiber-variables/140509)

<div class="topic-metadata">

**Author:** [@mifi](https://www.ruby-forum.com/u/mifi)\
**Replies:** 3\
**Last updated:** [June 16, 2008, 9:59pm UTC](https://www.ruby-forum.com/t/fiber-variables/140509 "2008-06-16T21:59:53Z")

</div>

Hi list, I’ve been doing some playing with Fibers as a replacement of Thread for usage in Ramaze, and as I’m not the most knowledgable about this issue I’d like to request some code review from you guys. The code in …

---

## [Simple file upload example wanted](https://www.ruby-forum.com/t/simple-file-upload-example-wanted/140612)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [June 16, 2008, 9:00pm UTC](https://www.ruby-forum.com/t/simple-file-upload-example-wanted/140612 "2008-06-16T21:00:36Z")

</div>

Can anyone point me to a simple file upload example. I wan to grab a file from a local machine - so browse button, find file, submit, copy file to Applicationname/data. Thanks, Lynn

---

## [How to stop gsub from returning nil](https://www.ruby-forum.com/t/how-to-stop-gsub-from-returning-nil/140563)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 9\
**Last updated:** [June 16, 2008, 7:46pm UTC](https://www.ruby-forum.com/t/how-to-stop-gsub-from-returning-nil/140563 "2008-06-16T19:46:10Z")

</div>

I’m trying to use gsub to do a number of transformations in an array of strings. I find that when a particular transformation does NOT happen, because the searched-for substring is not there, gsub returns nil. This ef…

---

## [Ruby 1.8.7-p17 compile fails with MacPorts readline?](https://www.ruby-forum.com/t/ruby-1-8-7-p17-compile-fails-with-macports-readline/140604)

<div class="topic-metadata">

**Author:** [@s0nspark](https://www.ruby-forum.com/u/s0nspark)\
**Replies:** 1\
**Last updated:** [June 16, 2008, 7:45pm UTC](https://www.ruby-forum.com/t/ruby-1-8-7-p17-compile-fails-with-macports-readline/140604 "2008-06-16T19:45:09Z")

</div>

I am trying to compile ruby 1.8.7-p17 on my Macbook where I have readline 5.2.012 installed via MacPorts and the compile fails with the following error: readline.c: In function â€˜filename\_completion\_proc\_callâ€™: re…

---

## [Timeout lengthy external executable](https://www.ruby-forum.com/t/timeout-lengthy-external-executable/140524)

<div class="topic-metadata">

**Author:** [@melmoth](https://www.ruby-forum.com/u/melmoth)\
**Replies:** 10\
**Last updated:** [June 16, 2008, 7:14pm UTC](https://www.ruby-forum.com/t/timeout-lengthy-external-executable/140524 "2008-06-16T19:14:43Z")

</div>

Hi all, I’m new to Ruby, I’m trying to use it to create a script where I launch some executables. I’d like to timeout if one of them takes too long, I’m using IO.popen to launch the exe. The problem is that the time…

---

## [Backgroundrb Problem in linux](https://www.ruby-forum.com/t/backgroundrb-problem-in-linux/140588)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 1\
**Last updated:** [June 16, 2008, 5:07pm UTC](https://www.ruby-forum.com/t/backgroundrb-problem-in-linux/140588 "2008-06-16T17:07:01Z")

</div>

Hi All, I wanna implement backgroundrb in my project but what happened it’s not working fine on linux machine i did same thing on window machine it’s working fine but on linux machine not working fine. Please help me…

---

## [Encrypt data from the user](https://www.ruby-forum.com/t/encrypt-data-from-the-user/140558)

<div class="topic-metadata">

**Author:** [@basic](https://www.ruby-forum.com/u/basic)\
**Replies:** 2\
**Last updated:** [June 16, 2008, 4:39pm UTC](https://www.ruby-forum.com/t/encrypt-data-from-the-user/140558 "2008-06-16T16:39:21Z")

</div>

is there an effective way to encrypt data from the user? What I’m trying to do is to get ruby to send some information to a server, however I’d rather that it was secured somehow, to prevent the user from tampering wi…

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

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