# Ruby

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

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

---

## [How to call javascript function in A site?](https://www.ruby-forum.com/t/how-to-call-javascript-function-in-a-site/183032)

<div class="topic-metadata">

**Author:** [@junyan](https://www.ruby-forum.com/u/junyan)\
**Replies:** 2\
**Last updated:** [February 6, 2010, 5:32pm UTC](https://www.ruby-forum.com/t/how-to-call-javascript-function-in-a-site/183032 "2010-02-06T17:32:48Z")

</div>

Hello, rubiers. now, I wanna call some functions in A site that was already implemented by another company. ( I don’t know internal… just nothing…) anyway, there are several javascript functions in there what I want …

---

## [Nkf MINE encoding bug](https://www.ruby-forum.com/t/nkf-mine-encoding-bug/182804)

<div class="topic-metadata">

**Author:** [@KISHIMOTOS\_Makoto](https://www.ruby-forum.com/u/KISHIMOTOS_Makoto)\
**Replies:** 1\
**Last updated:** [February 6, 2010, 4:50pm UTC](https://www.ruby-forum.com/t/nkf-mine-encoding-bug/182804 "2010-02-06T16:50:59Z")

</div>

e$B$-$7$b$H$G$9e(B ruby 1.9 e$B$G$OD\>$C$F$k$h$&$J$N$G!"$9$G$K2r7h:Q$\_$J$N$+$b$7$l$^$;$s$,!"e(B nkf e$B$N%P%0$r3NG’$7$?$N$GJs9p$7$^$9!#e(B e$B0J2\<$N$h$&$K!"e(Bruby 1.8 e$B$G$O!"M\>7W$Je(B "\\n " e$B$,IU$-$^$9!#e(B $ ca…

---

## [OS X/Snow Leo - Specify custom executable location for build/install for 1.9](https://www.ruby-forum.com/t/os-x-snow-leo-specify-custom-executable-location-for-build-install-for-1-9/183016)

<div class="topic-metadata">

**Author:** [@wannabe-coder](https://www.ruby-forum.com/u/wannabe-coder)\
**Replies:** 3\
**Last updated:** [February 6, 2010, 4:45pm UTC](https://www.ruby-forum.com/t/os-x-snow-leo-specify-custom-executable-location-for-build-install-for-1-9/183016 "2010-02-06T16:45:42Z")

</div>

Been searching via Google but nothing immediately pops up. I’d like to run Ruby 1.9 on my mac and specify the location the binaries install to and run from in the call to configure. What options would I set when I ex…

---

## [\[Feature #2693\] unfriendly exception when command executed for Net::FTP which is not connected](https://www.ruby-forum.com/t/feature-2693-unfriendly-exception-when-command-executed-for-net-ftp-which-is-not-connected/182584)

<div class="topic-metadata">

**Author:** [@Yuki\_S](https://www.ruby-forum.com/u/Yuki_S)\
**Replies:** 1\
**Last updated:** [February 6, 2010, 4:30pm UTC](https://www.ruby-forum.com/t/feature-2693-unfriendly-exception-when-command-executed-for-net-ftp-which-is-not-connected/182584 "2010-02-06T16:30:29Z")

</div>

Feature #2693: unfriendly exception when command executed for Net::FTP which is not connected http://redmine.ruby-lang.org/issues/show/2693 e$B5/I\<\<Te(B: Yuki S. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal #2291e$B…

---

## [\[Bug #2716\] make main is stopped by error in compile\_prelude.rb](https://www.ruby-forum.com/t/bug-2716-make-main-is-stopped-by-error-in-compile-prelude-rb/183017)

<div class="topic-metadata">

**Author:** [@Kenta\_M](https://www.ruby-forum.com/u/Kenta_M)\
**Replies:** 2\
**Last updated:** [February 6, 2010, 1:17pm UTC](https://www.ruby-forum.com/t/bug-2716-make-main-is-stopped-by-error-in-compile-prelude-rb/183017 "2010-02-06T13:17:21Z")

</div>

Bug #2716: make main is stopped by error in compile\_prelude.rb http://redmine.ruby-lang.org/issues/show/2716 e$B5/I\<\<Te(B: Kenta M. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: build, Target version: …

---

## [Rdoc\_osx\_dictionary 1.2.0 Released](https://www.ruby-forum.com/t/rdoc-osx-dictionary-1-2-0-released/182848)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 13\
**Last updated:** [February 6, 2010, 2:45am UTC](https://www.ruby-forum.com/t/rdoc-osx-dictionary-1-2-0-released/182848 "2010-02-06T02:45:21Z")

</div>

rdoc\_osx\_dictionary version 1.2.0 has been released! http://rubyforge.org/projects/seattlerb rdoc via Apple’s Dictionary.app. Automatically builds and installs an Apple Dictionary with all rdoc nicely formatted. Cha…

---

## [Code Review: OverloadInfo](https://www.ruby-forum.com/t/code-review-overloadinfo/183009)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 11:39pm UTC](https://www.ruby-forum.com/t/code-review-overloadinfo/183009 "2010-02-05T23:39:50Z")

</div>

tfpt review “/shelveset:OverloadInfo8;REDMOND\\tomat” Affects DLR, Python, Ruby. The OverloadResolver was performing quite a bit of reflection (mostly calling ParameterInfo.IsDefined) which turned out to consume about …

---

## [Area Codes](https://www.ruby-forum.com/t/area-codes/182976)

<div class="topic-metadata">

**Author:** [@woodyee](https://www.ruby-forum.com/u/woodyee)\
**Replies:** 2\
**Last updated:** [February 5, 2010, 9:55pm UTC](https://www.ruby-forum.com/t/area-codes/182976 "2010-02-05T21:55:03Z")

</div>

Hi! TOTAL noob question here but that’s what I am. I’m trying to create a program where I type the area code, hit enter, and see it’s state. I have a list of codes per state and it’s rather large. How’s the best way t…

---

## [Function lookup in ruby](https://www.ruby-forum.com/t/function-lookup-in-ruby/183000)

<div class="topic-metadata">

**Author:** [@opti900](https://www.ruby-forum.com/u/opti900)\
**Replies:** 3\
**Last updated:** [February 5, 2010, 9:44pm UTC](https://www.ruby-forum.com/t/function-lookup-in-ruby/183000 "2010-02-05T21:44:08Z")

</div>

Hi all, I was wondering what happened in the background of following snippet. First I define a method v1, and I am able to call v1. Then I redefine v1 as an array; after that I can only call v1 as a function by callin…

---

## [Code Review: Equality](https://www.ruby-forum.com/t/code-review-equality/182943)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 1\
**Last updated:** [February 5, 2010, 9:01pm UTC](https://www.ruby-forum.com/t/code-review-equality/182943 "2010-02-05T21:01:12Z")

</div>

tfpt review “/shelveset:Equality;REDMOND\\tomat” Comment : Fixes comparisons of hashes, arrays and strings to behave according to http://redmine.ruby-lang.org/repositories/revision/2?rev=3442 Adds specs for this beha…

---

## [win32API problem running ocra in linux](https://www.ruby-forum.com/t/win32api-problem-running-ocra-in-linux/182892)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 6\
**Last updated:** [February 5, 2010, 7:46pm UTC](https://www.ruby-forum.com/t/win32api-problem-running-ocra-in-linux/182892 "2010-02-05T19:46:48Z")

</div>

hi all. I’m in linux and need to make an executable version of a script for one of my windows-using colleagues to run. I tried with rubyscript2exe originally and gave up after various problems and reading about work…

---

## [Eval and implicit passing of blocks](https://www.ruby-forum.com/t/eval-and-implicit-passing-of-blocks/182996)

<div class="topic-metadata">

**Author:** [@Peter\_McLain](https://www.ruby-forum.com/u/Peter_McLain)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 7:07pm UTC](https://www.ruby-forum.com/t/eval-and-implicit-passing-of-blocks/182996 "2010-02-05T19:07:39Z")

</div>

Hi, I’m trying to understand if/how/when/why Ruby implicitly passes blocks to instance\_eval, class\_eval and eval, but not to plain methods. It seems that 1.9 behavior is consistent across all versions of eval: a bl…

---

## [@java\_interfaces not initialized](https://www.ruby-forum.com/t/java-interfaces-not-initialized/182961)

<div class="topic-metadata">

**Author:** [@jahu](https://www.ruby-forum.com/u/jahu)\
**Replies:** 1\
**Last updated:** [February 5, 2010, 6:51pm UTC](https://www.ruby-forum.com/t/java-interfaces-not-initialized/182961 "2010-02-05T18:51:15Z")

</div>

Hi jruby experts, when I implement a java interface in a jruby class, there is a annoying warning warning: instance variable @java\_interfaces not initialized I wonder if I do something wrong? This line shows the war…

---

## [Getting my first JRuby Project running](https://www.ruby-forum.com/t/getting-my-first-jruby-project-running/182947)

<div class="topic-metadata">

**Author:** [@tutiplain](https://www.ruby-forum.com/u/tutiplain)\
**Replies:** 1\
**Last updated:** [February 5, 2010, 6:28pm UTC](https://www.ruby-forum.com/t/getting-my-first-jruby-project-running/182947 "2010-02-05T18:28:25Z")

</div>

Hi all, I was trying out JRuby today, and I wanted to get a simple rails app running. I am using NetBeans as my IDE. I used the wizard to create a new application and specified connection directly, using mysql as a …

---

## [\[Bug:trunk\] rubyspec: StringIO#ungetc when passed \[char\] pads with \\000 when the current position i](https://www.ruby-forum.com/t/bug-trunk-rubyspec-stringio-ungetc-when-passed-char-pads-with-000-when-the-current-position-i/182623)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 2\
**Last updated:** [February 5, 2010, 6:09pm UTC](https://www.ruby-forum.com/t/bug-trunk-rubyspec-stringio-ungetc-when-passed-char-pads-with-000-when-the-current-position-i/182623 "2010-02-05T18:09:41Z")

</div>

stringio e$B$N%a%s%F%J$N$J$+$@$5$s!"$b$7$/$O$^$D$b$H$5$se(B e$B1sF#$G$9!#e(B stringio e$B$K4X$7$F!"%P%C%U%!=\*C\<$h$j@h$Ke(B pos e$B$r9g$o$;$?\>uBV$Ge(B StringIO#ungetc e$B$r8F$s$@;~$N5sF0$,e(B 1.8 e$B$He(B 1.9 e$B$G0c$…

---

## [When should one use "and" and "or"](https://www.ruby-forum.com/t/when-should-one-use-and-and-or/182948)

<div class="topic-metadata">

**Author:** [@botp](https://www.ruby-forum.com/u/botp)\
**Replies:** 6\
**Last updated:** [February 5, 2010, 6:06pm UTC](https://www.ruby-forum.com/t/when-should-one-use-and-and-or/182948 "2010-02-05T18:06:21Z")

</div>

Hi All, just got hit w the ff case when x==1 or x==2 print “yeoh!” end SyntaxError: compile error (irb):17: syntax error, unexpected kOR, expecting kTHEN or ‘:’ or ‘\\n’ or ‘;’ when x==1 or x==2 ^ “or” and “a…

---

## [Johnson 2.0.0 prerelease 0](https://www.ruby-forum.com/t/johnson-2-0-0-prerelease-0/182988)

<div class="topic-metadata">

**Author:** [@thegoatboy](https://www.ruby-forum.com/u/thegoatboy)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 5:47pm UTC](https://www.ruby-forum.com/t/johnson-2-0-0-prerelease-0/182988 "2010-02-05T17:47:27Z")

</div>

johnson version 2.0.0.pre0 has been released! http://github.com/jbarnette/johnson http://groups.google.com/group/johnson-talk Johnson wraps JavaScript in a loving Ruby embrace. It embeds the Mozilla SpiderMonkey Java…

---

## [Ruby is not rails](https://www.ruby-forum.com/t/ruby-is-not-rails/182953)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 4\
**Last updated:** [February 5, 2010, 5:36pm UTC](https://www.ruby-forum.com/t/ruby-is-not-rails/182953 "2010-02-05T17:36:42Z")

</div>

GNU was more popular due to the combination with Linux. But Richard Stallman said “GNU is not Unix”. Today ruby is most likely popular due to its killer application Rails. But other than Rails, ruby itself is yet anot…

---

## [Process id](https://www.ruby-forum.com/t/process-id/182973)

<div class="topic-metadata">

**Author:** [@rosy](https://www.ruby-forum.com/u/rosy)\
**Replies:** 2\
**Last updated:** [February 5, 2010, 5:35pm UTC](https://www.ruby-forum.com/t/process-id/182973 "2010-02-05T17:35:09Z")

</div>

All, I have to get the process id for a specified ruby program. (e.x) $0 returns the current process name Process.pid returns the current process id.So how can i get the specified program’s pid.

---

## [What about Limelight?](https://www.ruby-forum.com/t/what-about-limelight/182856)

<div class="topic-metadata">

**Author:** [@tutiplain](https://www.ruby-forum.com/u/tutiplain)\
**Replies:** 12\
**Last updated:** [February 5, 2010, 5:31pm UTC](https://www.ruby-forum.com/t/what-about-limelight/182856 "2010-02-05T17:31:40Z")

</div>

Hi all, I am a Ruby GUI freak. Every once in a while, I’ll google something like “ruby gui api”. So far, though, I have only worked with FXRuby because of its, IMO, excellent book, which I bought in Amazon. While …

---

## [\[Bug:trunk\] rubyspec: SimpleDelegator when frozen creates a frozen clone ERROR](https://www.ruby-forum.com/t/bug-trunk-rubyspec-simpledelegator-when-frozen-creates-a-frozen-clone-error/182470)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 12\
**Last updated:** [February 5, 2010, 5:00pm UTC](https://www.ruby-forum.com/t/bug-trunk-rubyspec-simpledelegator-when-frozen-creates-a-frozen-clone-error/182470 "2010-02-05T17:00:02Z")

</div>

e$B$^$D$b$H$5$s!"$^$?$Oe(B lib/delegator.rb e$B$K$D$$$F$o$+$kC/$+e(B e$B1sF#$G$9!#e(B freeze e$B$7$?e(B SimpleDelegator e$B$re(B clone e$B$G$-$^$;$s!#e(B $ ./ruby -rdelegate -e ’ a = \[42, :hello\] d = SimpleDelegator…

---

## [Anyone here understand dfp's and cfp's?](https://www.ruby-forum.com/t/anyone-here-understand-dfps-and-cfps/182934)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 2\
**Last updated:** [February 5, 2010, 3:55pm UTC](https://www.ruby-forum.com/t/anyone-here-understand-dfps-and-cfps/182934 "2010-02-05T15:55:45Z")

</div>

If you know the internals of Ruby, I would appreciate a little advice on my pet project: http://github.com/RISCfuture/better\_caller I’m also open to your criticism if you think what I’m doing is a REALLY bad idea. Ti…

---

## [Add some content to a file](https://www.ruby-forum.com/t/add-some-content-to-a-file/182969)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 1\
**Last updated:** [February 5, 2010, 12:35pm UTC](https://www.ruby-forum.com/t/add-some-content-to-a-file/182969 "2010-02-05T12:35:28Z")

</div>

Hello, I want to modify a file, begin from X line (X is line number), inserting some content into it. I tried scripting it with ruby but couldn’t find a correct way. Can you help with it? Thanks. Jenn.

---

## [Employee motivation in the software industry](https://www.ruby-forum.com/t/employee-motivation-in-the-software-industry/182974)

<div class="topic-metadata">

**Author:** [@Stefan\_Kiryazov](https://www.ruby-forum.com/u/Stefan_Kiryazov)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 12:34pm UTC](https://www.ruby-forum.com/t/employee-motivation-in-the-software-industry/182974 "2010-02-05T12:34:18Z")

</div>

Hi all, I am doing a research about motivation in software development, the most efficient practices to motivate software engineers, their popularity, etc. As a part of the research, I am doing an online survey for s…

---

## [Segfault on ruby 1.8.7](https://www.ruby-forum.com/t/segfault-on-ruby-1-8-7/182970)

<div class="topic-metadata">

**Author:** [@Groleo\_M](https://www.ruby-forum.com/u/Groleo_M)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 11:43am UTC](https://www.ruby-forum.com/t/segfault-on-ruby-1-8-7/182970 "2010-02-05T11:43:57Z")

</div>

Hi, I get a SEGFAULT on ruby1.8.7 using the scripts above on Ubuntu 9.10. It didn’t crashed ruby1.9.1 though. Loaded symbols for /usr/lib/ruby/1.8/i486-linux/socket.so Core was generated by \`/usr/bin/ruby ./massbinde…

---

## [Ruby and sarl3](https://www.ruby-forum.com/t/ruby-and-sarl3/182968)

<div class="topic-metadata">

**Author:** [@czar82](https://www.ruby-forum.com/u/czar82)\
**Replies:** 1\
**Last updated:** [February 5, 2010, 11:14am UTC](https://www.ruby-forum.com/t/ruby-and-sarl3/182968 "2010-02-05T11:14:41Z")

</div>

I would like to use sarl3 Griff - + Compiling Sarl3 for my degree thesis, but i had some problem in installing it. I’m using arch linux, i installed all the required package, but i get some error with ruby (i tried w…

---

## [\[ANN\] ruby-ip](https://www.ruby-forum.com/t/ann-ruby-ip/182958)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 8:24am UTC](https://www.ruby-forum.com/t/ann-ruby-ip/182958 "2010-02-05T08:24:07Z")

</div>

I am pleased to announce the first public release of ruby-ip. ruby-ip is a library for parsing and manipulating IP addresses. Compared to the standard library IPAddr class it fixes several serious problems, adds a bun…

---

## [Jruby and ruby on mac](https://www.ruby-forum.com/t/jruby-and-ruby-on-mac/182878)

<div class="topic-metadata">

**Author:** [@pink-ink](https://www.ruby-forum.com/u/pink-ink)\
**Replies:** 4\
**Last updated:** [February 5, 2010, 8:14am UTC](https://www.ruby-forum.com/t/jruby-and-ruby-on-mac/182878 "2010-02-05T08:14:52Z")

</div>

Hi Comunity, I developed some Ruby on Rails webapplications. I heard a lot of JRuby and the capability to embed Java classes. My question, is it possible to run an existent Ruby on Rails application using JRuby? May…

---

## [Ruby-serialport with Ruby 1.9 error](https://www.ruby-forum.com/t/ruby-serialport-with-ruby-1-9-error/182870)

<div class="topic-metadata">

**Author:** [@iprogramruby](https://www.ruby-forum.com/u/iprogramruby)\
**Replies:** 7\
**Last updated:** [February 5, 2010, 8:04am UTC](https://www.ruby-forum.com/t/ruby-serialport-with-ruby-1-9-error/182870 "2010-02-05T08:04:47Z")

</div>

I’m a newbie programmer and I’ve been trying to communicate with an Arduino using the ruby-serialport library. If I run this: require ‘rubygems’ require ‘serialport’ sp = SerialPort.new “COM3”, 9600 sp.write “H” pu…

---

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

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [February 5, 2010, 7:58am UTC](https://www.ruby-forum.com/t/code-review-wix3installer/182954 "2010-02-05T07:58:39Z")

</div>

tfpt review “/shelveset:wix3installer;REDMOND\\jdeville” Comment : Upgrades the IronRuby installer creation to Wix3. Adds Wix3 files to External Refactor’s installer wxs’s to allow per-user installs lays the foundati…

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

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