# Ruby

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

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

---

## [Ruby-for-SketchUp Developer Needed](https://www.ruby-forum.com/t/ruby-for-sketchup-developer-needed/143610)

<div class="topic-metadata">

**Author:** [@cerickson](https://www.ruby-forum.com/u/cerickson)\
**Replies:** 0\
**Last updated:** [July 21, 2008, 6:47am UTC](https://www.ruby-forum.com/t/ruby-for-sketchup-developer-needed/143610 "2008-07-21T06:47:47Z")

</div>

Phenostream Inc. has developed a 3D fabricator that produces structures from SketchUp models. The basic functionality is in place but we require a Ruby developer for market-ready completion of our SketchUp plug-in. Pl…

---

## [Rails image\_tag generates url get 404](https://www.ruby-forum.com/t/rails-image-tag-generates-url-get-404/143540)

<div class="topic-metadata">

**Author:** [@koji\_Lin](https://www.ruby-forum.com/u/koji_Lin)\
**Replies:** 2\
**Last updated:** [July 21, 2008, 2:49am UTC](https://www.ruby-forum.com/t/rails-image-tag-generates-url-get-404/143540 "2008-07-21T02:49:43Z")

</div>

hi all with jruby1.1.3, 1.1.2 the image\_tag’s path will like “test.jpg.?1215529702” in 1.1.2, it works well, but in 1.1.3, looks like there is an error in “jruby-1.1.3/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/webrick\_…

---

## [How to log the line in which the error/exception occurred?](https://www.ruby-forum.com/t/how-to-log-the-line-in-which-the-error-exception-occurred/143596)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 1\
**Last updated:** [July 21, 2008, 2:08am UTC](https://www.ruby-forum.com/t/how-to-log-the-line-in-which-the-error-exception-occurred/143596 "2008-07-21T02:08:48Z")

</div>

Hi, I log errors/exception into a Thread in this way: Thread.new { Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â begin Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â …

---

## [Slides: Fighting Disease with,PostgreSQL Full Text Search and JRuby on Rails](https://www.ruby-forum.com/t/slides-fighting-disease-with-postgresql-full-text-search-and-jruby-on-rails/143598)

<div class="topic-metadata">

**Author:** [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Replies:** 0\
**Last updated:** [July 21, 2008, 2:06am UTC](https://www.ruby-forum.com/t/slides-fighting-disease-with-postgresql-full-text-search-and-jruby-on-rails/143598 "2008-07-21T02:06:28Z")

</div>

Ed Copony gave this presentation at OSCON Postgres day today. I figured that it may be of interest: http://tinyurl.com/5pg5nx Mike – Mike H. Program Manager, Collaborative Software Initiative removed\_email\_address…

---

## [Warbler 0.9.9 skips a view file](https://www.ruby-forum.com/t/warbler-0-9-9-skips-a-view-file/143597)

<div class="topic-metadata">

**Author:** [@Albert\_R](https://www.ruby-forum.com/u/Albert_R)\
**Replies:** 0\
**Last updated:** [July 21, 2008, 2:06am UTC](https://www.ruby-forum.com/t/warbler-0-9-9-skips-a-view-file/143597 "2008-07-21T02:06:28Z")

</div>

Hello! I am trying to package a war file using warbler 0.9.9, and I almost get it running completely, only one of my view files doesnt get included. I have tried examining warble war:debug to see why it would skip my…

---

## [Why Thread.abort\_on\_exception = yes doesn't show errors?](https://www.ruby-forum.com/t/why-thread-abort-on-exception-yes-doesnt-show-errors/143580)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 6\
**Last updated:** [July 20, 2008, 11:55pm UTC](https://www.ruby-forum.com/t/why-thread-abort-on-exception-yes-doesnt-show-errors/143580 "2008-07-20T23:55:24Z")

</div>

Hi, when Thread.abort\_on\_exception = yes I don’t see any error log in the screen. Note those cases: case 1) It’s seems correct: t = Thread.new { sleep 1 qwe } t.abort\_on\_exception = true puts “hello !!!” sleep 2 …

---

## [SEGV by STDIN.gets(0,0)](https://www.ruby-forum.com/t/segv-by-stdin-gets-0-0/143581)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [July 20, 2008, 9:36pm UTC](https://www.ruby-forum.com/t/segv-by-stdin-gets-0-0/143581 "2008-07-20T21:36:41Z")

</div>

STDIN.gets(0,0) e$B$Ge(B SEGV e$B$7$^$9!#e(B % ./ruby -e ‘p STDIN.gets(0,0)’ -e:1: \[BUG\] Segmentation fault ruby 1.9.0 (2008-07-19 revision 18132) \[i686-linux\] – control frame ---------- c:0004 p:---- s:0012 b:0012 …

---

## [1.1.3 Warbler rake gem error](https://www.ruby-forum.com/t/1-1-3-warbler-rake-gem-error/143576)

<div class="topic-metadata">

**Author:** [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Replies:** 7\
**Last updated:** [July 20, 2008, 9:10pm UTC](https://www.ruby-forum.com/t/1-1-3-warbler-rake-gem-error/143576 "2008-07-20T21:10:54Z")

</div>

Small problem getting Warbler .9.9 running with JRuby 1.1.3: Easy enough work around. I just re-installed rake on top of the one that comes with the distro. I moved to 1.1.3 from 1.1.1 which had the gem in the cache d…

---

## [ForkAndReturn 0.1.1](https://www.ruby-forum.com/t/forkandreturn-0-1-1/143579)

<div class="topic-metadata">

**Author:** [@erikveen](https://www.ruby-forum.com/u/erikveen)\
**Replies:** 0\
**Last updated:** [July 20, 2008, 8:17pm UTC](https://www.ruby-forum.com/t/forkandreturn-0-1-1/143579 "2008-07-20T20:17:31Z")

</div>

ForkAndReturn 0.1.1 is released. ForkAndReturn implements a couple of methods that simplify running a block of code in a subprocess. The result (Ruby object or exception) of the block will be available in the parent …

---

## [JRuby 1.1.3 Released](https://www.ruby-forum.com/t/jruby-1-1-3-released/143490)

<div class="topic-metadata">

**Author:** [@Thomas\_E](https://www.ruby-forum.com/u/Thomas_E)\
**Replies:** 3\
**Last updated:** [July 20, 2008, 7:19pm UTC](https://www.ruby-forum.com/t/jruby-1-1-3-released/143490 "2008-07-20T19:19:48Z")

</div>

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

---

## [The next number that is not in an array](https://www.ruby-forum.com/t/the-next-number-that-is-not-in-an-array/143277)

<div class="topic-metadata">

**Author:** [@ratcheer](https://www.ruby-forum.com/u/ratcheer)\
**Replies:** 27\
**Last updated:** [July 20, 2008, 4:37pm UTC](https://www.ruby-forum.com/t/the-next-number-that-is-not-in-an-array/143277 "2008-07-20T16:37:11Z")

</div>

I want to increment the current value of a variable to the next number that does not appear in an array of restricted numbers. e.g. restricted\_numbers = \[2,3,4,5,8,10,15,29\] if the variable is currently storing 11 th…

---

## [JRuby-Rack 0.9 RackInitializationException on Tomcat: The system cannot find the path specified](https://www.ruby-forum.com/t/jruby-rack-0-9-rackinitializationexception-on-tomcat-the-system-cannot-find-the-path-specified/143563)

<div class="topic-metadata">

**Author:** [@tbaustert](https://www.ruby-forum.com/u/tbaustert)\
**Replies:** 0\
**Last updated:** [July 20, 2008, 3:28pm UTC](https://www.ruby-forum.com/t/jruby-rack-0-9-rackinitializationexception-on-tomcat-the-system-cannot-find-the-path-specified/143563 "2008-07-20T15:28:53Z")

</div>

Hi, I used JRuby 1.1.2 with Warbler 0.9.9 to build a war for a Tomcat 6.0.16 deployment. When I go to run the application after deploying I get the following exception in the log. Unfortunately it doesnâ€™t say what p…

---

## [Detaching a gserver](https://www.ruby-forum.com/t/detaching-a-gserver/143560)

<div class="topic-metadata">

**Author:** [@enduro](https://www.ruby-forum.com/u/enduro)\
**Replies:** 0\
**Last updated:** [July 20, 2008, 2:45pm UTC](https://www.ruby-forum.com/t/detaching-a-gserver/143560 "2008-07-20T14:45:17Z")

</div>

Hi there I’m working on a policy server for Postfix and it works if used straight from the commandline: The process forks, mama sleeps and waits for SIGINT to stop the daemon. Unfortunately, if I try to manage the se…

---

## [Generator/Fiber (Re: Re: fiber $B$b$I$-(B for 1.8.x)](https://www.ruby-forum.com/t/generator-fiber-re-re-fiber-b-b-i-b-for-1-8-x/143559)

<div class="topic-metadata">

**Author:** [@IWAMURO\_Motonori](https://www.ruby-forum.com/u/IWAMURO_Motonori)\
**Replies:** 0\
**Last updated:** [July 20, 2008, 2:39pm UTC](https://www.ruby-forum.com/t/generator-fiber-re-re-fiber-b-b-i-b-for-1-8-x/143559 "2008-07-20T14:39:41Z")

</div>

e$B4d\<\<$G$9!#e(B Generatore$B$He(BFibere$B$N07$$$K$D$$$F!#e(B 1.9 e$B$Ge(BGeneratore$B$NI|3h$O$"$k$+e(B? \[ruby-dev:34278\] e$B$r8+$k8B$j!"L5$5$=$&$K$b;W$($^$9$,!D!D!#e(B (1)e$B$,e(BNoe$B$N\>l9g!"e(B1.8.x e$B$Ke(B \[…

---

## [Create a table for a new migration](https://www.ruby-forum.com/t/create-a-table-for-a-new-migration/143555)

<div class="topic-metadata">

**Author:** [@z4n9ief](https://www.ruby-forum.com/u/z4n9ief)\
**Replies:** 1\
**Last updated:** [July 20, 2008, 2:25pm UTC](https://www.ruby-forum.com/t/create-a-table-for-a-new-migration/143555 "2008-07-20T14:25:46Z")

</div>

Hi everybody, I had generated some migrations files such as “20080719111013\_create\_countries.rb” for “countries” table : class CreateCountries \< ActiveRecord::Migration def self.up create\_table :countries, :force =\> …

---

## [Erik Kastner to join D.A. Black in "Advancing With Rails"](https://www.ruby-forum.com/t/erik-kastner-to-join-d-a-black-in-advancing-with-rails/143558)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 0\
**Last updated:** [July 20, 2008, 2:22pm UTC](https://www.ruby-forum.com/t/erik-kastner-to-join-d-a-black-in-advancing-with-rails/143558 "2008-07-20T14:22:08Z")

</div>

Hi everyone – I am extremely pleased to announce that Erik Kastner will be joining me in Edison, New Jersey, August 18-21, as co-instructor for the training course “Advancing With Rails”. This will be the first time …

---

## [Jruby 1.1.3, gem install rails occured an error](https://www.ruby-forum.com/t/jruby-1-1-3-gem-install-rails-occured-an-error/143535)

<div class="topic-metadata">

**Author:** [@koji\_Lin](https://www.ruby-forum.com/u/koji_Lin)\
**Replies:** 2\
**Last updated:** [July 20, 2008, 2:00pm UTC](https://www.ruby-forum.com/t/jruby-1-1-3-gem-install-rails-occured-an-error/143535 "2008-07-20T14:00:30Z")

</div>

hi all my environment is windows XP, jdk1.5.0\_15, jruby1.1.3 when i type gem install rails it will cause this error F:\\Java\\jruby-1.1.3\\bin\>gem install rails JRuby limited openssl loaded. gem install jruby-openssl f…

---

## [Using Insert statement in active record?](https://www.ruby-forum.com/t/using-insert-statement-in-active-record/143521)

<div class="topic-metadata">

**Author:** [@anukulsinghal](https://www.ruby-forum.com/u/anukulsinghal)\
**Replies:** 2\
**Last updated:** [July 20, 2008, 1:22pm UTC](https://www.ruby-forum.com/t/using-insert-statement-in-active-record/143521 "2008-07-20T13:22:28Z")

</div>

Hi, I know this would be a simple solution to provide for any one of you. I am new to active record and this is what I have currently done: require ‘rubygems’ require ‘active\_record’ puts “connecting to db…” Active…

---

## [Filtering email addresses](https://www.ruby-forum.com/t/filtering-email-addresses/143547)

<div class="topic-metadata">

**Author:** [@jeanluca](https://www.ruby-forum.com/u/jeanluca)\
**Replies:** 6\
**Last updated:** [July 20, 2008, 12:12pm UTC](https://www.ruby-forum.com/t/filtering-email-addresses/143547 "2008-07-20T12:12:08Z")

</div>

Hi All I’m trying to filter email adresses like this #! /usr/bin/ruby email = “test\_test.test” if email.scan(/@/) p “yes” end For some reason my program always prints ‘yes’ How would should I do this ? thnx LuC…

---

## [Multiple overloads VS Inline casting](https://www.ruby-forum.com/t/multiple-overloads-vs-inline-casting/143513)

<div class="topic-metadata">

**Author:** [@editkid](https://www.ruby-forum.com/u/editkid)\
**Replies:** 4\
**Last updated:** [July 20, 2008, 10:25am UTC](https://www.ruby-forum.com/t/multiple-overloads-vs-inline-casting/143513 "2008-07-20T10:25:45Z")

</div>

I have noticed in the libraries that are often methods that take multiple parameters and each parameter can take a number of different types. A simple example, BigDecimal#add method has two parameters: a.add(b,n), w…

---

## [Re: JRuby performance questions answered](https://www.ruby-forum.com/t/re-jruby-performance-questions-answered/143539)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 20, 2008, 6:20am UTC](https://www.ruby-forum.com/t/re-jruby-performance-questions-answered/143539 "2008-07-20T06:20:16Z")

</div>

Roger P. wrote: Rick Denatale wrote: Roger, you REALLY need to read the literature on GC which has been accumulating for the past 50 years. Reference counting is pretty much an obsolete approach to GC. It was pro…

---

## [Why ":symbol" failed but 'symbol' successed with JRuby 1.0.3?](https://www.ruby-forum.com/t/why-symbol-failed-but-symbol-successed-with-jruby-1-0-3/140803)

<div class="topic-metadata">

**Author:** [@Song\_Ma](https://www.ruby-forum.com/u/Song_Ma)\
**Replies:** 2\
**Last updated:** [July 20, 2008, 6:14am UTC](https://www.ruby-forum.com/t/why-symbol-failed-but-symbol-successed-with-jruby-1-0-3/140803 "2008-07-20T06:14:25Z")

</div>

Hi, I was running the test cases from Rails 1.2.6 Action Pack. The full text of test is herehttp://svn.rubyonrails.org/rails/branches/1-2-stable/actionpack/test/controller/test\_test.rb. There is one case like this: d…

---

## [XML parser](https://www.ruby-forum.com/t/xml-parser/143516)

<div class="topic-metadata">

**Author:** [@CSSSSdric\_H](https://www.ruby-forum.com/u/CSSSSdric_H)\
**Replies:** 7\
**Last updated:** [July 20, 2008, 5:30am UTC](https://www.ruby-forum.com/t/xml-parser/143516 "2008-07-20T05:30:35Z")

</div>

Hi guys, I’m looking for some information about the xml libraries available in Ruby. I’ve read a few blog post about the pro’s and con’s of REXML and Libxml but I still have some questions : as I understand it REX…

---

## [Re: JRuby performance questions answered](https://www.ruby-forum.com/t/re-jruby-performance-questions-answered/119436)

<div class="topic-metadata">

**Author:** [@igouy](https://www.ruby-forum.com/u/igouy)\
**Replies:** 22\
**Last updated:** [July 20, 2008, 4:30am UTC](https://www.ruby-forum.com/t/re-jruby-performance-questions-answered/119436 "2008-07-20T04:30:22Z")

</div>

Quoting C. Oliver N. \<charles.nutter / sun.com\>: znmeb / cesmail.net wrote: Quoting C. Oliver N. \<charles.nutter / sun.com\>: Many people believed we’d never be faster than the C implementation, and many still thi…

---

## [Repeat a method inside a string](https://www.ruby-forum.com/t/repeat-a-method-inside-a-string/143515)

<div class="topic-metadata">

**Author:** [@zoephoenix](https://www.ruby-forum.com/u/zoephoenix)\
**Replies:** 3\
**Last updated:** [July 20, 2008, 4:00am UTC](https://www.ruby-forum.com/t/repeat-a-method-inside-a-string/143515 "2008-07-20T04:00:32Z")

</div>

I have a method that will generate a random HTML link, but I need to have it repeat inside a string interpolation. I need to generate a number of random links at the bottom of HTML pages that are being generated. I …

---

## [Compile from source - how difficult?](https://www.ruby-forum.com/t/compile-from-source-how-difficult/143475)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 7\
**Last updated:** [July 20, 2008, 2:59am UTC](https://www.ruby-forum.com/t/compile-from-source-how-difficult/143475 "2008-07-20T02:59:41Z")

</div>

On a fresh install of Kubuntu Linux (ver. 8.04.01), I’m not having good day trying to get ruby and rubygems back and functional. The Ruby-lang. website recommends using the package manager to install ruby, so I did th…

---

## [Ruby equivalent of encode\_bitmaps.py](https://www.ruby-forum.com/t/ruby-equivalent-of-encode-bitmaps-py/143530)

<div class="topic-metadata">

**Author:** [@wemagor](https://www.ruby-forum.com/u/wemagor)\
**Replies:** 0\
**Last updated:** [July 20, 2008, 2:05am UTC](https://www.ruby-forum.com/t/ruby-equivalent-of-encode-bitmaps-py/143530 "2008-07-20T02:05:55Z")

</div>

Is there a Ruby equivalent of Python’s encode\_bitmaps.py? If you have a Python encoded bitmap, how do you convert it for use with wxRuby?

---

## [Ruby1.9 -n/-p and END{}](https://www.ruby-forum.com/t/ruby1-9-n-p-and-end/143529)

<div class="topic-metadata">

**Author:** [@Nobuhiro\_IMAI](https://www.ruby-forum.com/u/Nobuhiro_IMAI)\
**Replies:** 0\
**Last updated:** [July 20, 2008, 1:49am UTC](https://www.ruby-forum.com/t/ruby1-9-n-p-and-end/143529 "2008-07-20T01:49:33Z")

</div>

e$B$$$^$$$G$9!#e(B Ruby 1.9 e$B$N5/F0%\*%W%7%g%s$Ke(B -n e$B$de(B -p e$B$rIU$1$k$H!"e(BEND{} e$B$N%V%m%C%/$,F~e(B e$BNO$N9T?tJ,e(B?e$B\<B9T$5$l$k$h$&$G$9!#e(BBEGIN{} e$B$O0lEY$@$1$7$+\<B9T$5$l$^$;$s!#e(B Ruby 1.8 e$B$G…

---

## [Execve syscall in ruby](https://www.ruby-forum.com/t/execve-syscall-in-ruby/143512)

<div class="topic-metadata">

**Author:** [@backz](https://www.ruby-forum.com/u/backz)\
**Replies:** 6\
**Last updated:** [July 20, 2008, 12:54am UTC](https://www.ruby-forum.com/t/execve-syscall-in-ruby/143512 "2008-07-20T00:54:45Z")

</div>

Hi I’ve tried to call execve using Kernel#syscall. Execve is 11 in my case \[i386\] so i’m trying to call: syscall(11, ‘/bin/true’, \[‘true’\].pack(‘p\*’) , \[‘X=1’\].pack(‘p\*’)) but it raises Bad address (Errno::EFAULT) ex…

---

## [\[ANN\] NamedParameters v0.0.0 ('first', :second =\> 'release')](https://www.ruby-forum.com/t/ann-namedparameters-v0-0-0-first-second-release/143408)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 9\
**Last updated:** [July 19, 2008, 11:18pm UTC](https://www.ruby-forum.com/t/ann-namedparameters-v0-0-0-first-second-release/143408 "2008-07-19T23:18:07Z")

</div>

NamedParameters is a library for (MRI) ruby 1.8.x that allows you to call a method with or without named parameters. Introduction One thing that is notably lacking from Ruby is the ability to arbitrarily call method…

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

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