# Ruby

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

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

---

## [Help solving problem in ruby](https://www.ruby-forum.com/t/help-solving-problem-in-ruby/180038)

<div class="topic-metadata">

**Author:** [@kgovinda](https://www.ruby-forum.com/u/kgovinda)\
**Replies:** 6\
**Last updated:** [December 10, 2009, 8:07am UTC](https://www.ruby-forum.com/t/help-solving-problem-in-ruby/180038 "2009-12-10T08:07:55Z")

</div>

i am a beginner and having problem in linux with this code: class Song def to\_s “Song: #@name–#@artist (#@duration)” end end song = Song.new(“Bicylops”, “Fleck”, “2.60”) song.to\_s =\> the output looks like this: …

---

## [Glassfish gem log format](https://www.ruby-forum.com/t/glassfish-gem-log-format/179853)

<div class="topic-metadata">

**Author:** [@Jonas\_T](https://www.ruby-forum.com/u/Jonas_T)\
**Replies:** 5\
**Last updated:** [December 10, 2009, 6:36am UTC](https://www.ruby-forum.com/t/glassfish-gem-log-format/179853 "2009-12-10T06:36:49Z")

</div>

Hi Is it possible to change the log format in the glassfish gem? I find the multi-line format from java.util.logging.SimpleFormatter really hard to read, especially combined with the multi line output from Rails. Lo…

---

## [Ruby Gem mirrors besides gemcutter](https://www.ruby-forum.com/t/ruby-gem-mirrors-besides-gemcutter/179897)

<div class="topic-metadata">

**Author:** [@rilindo\_foster](https://www.ruby-forum.com/u/rilindo_foster)\
**Replies:** 2\
**Last updated:** [December 10, 2009, 3:40am UTC](https://www.ruby-forum.com/t/ruby-gem-mirrors-besides-gemcutter/179897 "2009-12-10T03:40:39Z")

</div>

Are there other rubygem mirrors out there besides gemcutter? Amazon S3 is blocked at my place of employment. I can work around by downloading the gems manually from Rubyforge, but that is not likely to last very long …

---

## [Issue with RackRewindableInput](https://www.ruby-forum.com/t/issue-with-rackrewindableinput/179984)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 1\
**Last updated:** [December 10, 2009, 3:11am UTC](https://www.ruby-forum.com/t/issue-with-rackrewindableinput/179984 "2009-12-10T03:11:21Z")

</div>

Seems that the read method on the RackRewindableInput class returns an empty string at the end of input, as opposed to a nil object like other IO-ish objects do. Is this by design or a bug? I’ve got an app that starte…

---

## [Segmentation fault installing ruby1.9 together with 1.8](https://www.ruby-forum.com/t/segmentation-fault-installing-ruby1-9-together-with-1-8/180000)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 2\
**Last updated:** [December 10, 2009, 3:01am UTC](https://www.ruby-forum.com/t/segmentation-fault-installing-ruby1-9-together-with-1-8/180000 "2009-12-10T03:01:22Z")

</div>

I have an existing ruby1.8.7 in my computer. I’ve tried to install ruby 1.9 from source or apt-get in my ubuntu. But it returned segmentation fault in both case. I’ve checked the /var/log/kern.log: ruby1.9\[4553\]: seg…

---

## [Upgrade 1.9 then Missing an installed Rails gem?](https://www.ruby-forum.com/t/upgrade-1-9-then-missing-an-installed-rails-gem/180007)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 2\
**Last updated:** [December 10, 2009, 2:52am UTC](https://www.ruby-forum.com/t/upgrade-1-9-then-missing-an-installed-rails-gem/180007 "2009-12-10T02:52:34Z")

</div>

Hi Guys, I’ve installed both ruby 1.8 and 1.9. When I run a newly created rails app, it keep asking me to install 2.3.5 rails. However, I’ve installed it. Moreover, after I uninstall and re-install, the problems sti…

---

## [Undefined socket constants](https://www.ruby-forum.com/t/undefined-socket-constants/180036)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [December 10, 2009, 2:45am UTC](https://www.ruby-forum.com/t/undefined-socket-constants/180036 "2009-12-10T02:45:22Z")

</div>

appears from http://www.ruby-forum.com/topic/200353#new that a few constants are missing in IronRuby " Socket::IP\_ADD\_MEMBERSHIP = 12 must be done Socket::IP\_MULTICAST\_LOOP, Socket::IP\_MULTICAST\_TTL not known" howe…

---

## [Telangana separate state](https://www.ruby-forum.com/t/telangana-separate-state/180035)

<div class="topic-metadata">

**Author:** [@Connecting\_World](https://www.ruby-forum.com/u/Connecting_World)\
**Replies:** 0\
**Last updated:** [December 10, 2009, 2:40am UTC](https://www.ruby-forum.com/t/telangana-separate-state/180035 "2009-12-10T02:40:55Z")

</div>

TELANGANA SEPARATE STATE ANNOUNCED ON ON DECEMBER 09/12/09 . CHECK MORE DETAILS AT http://knowledgeatheaven.blogspot.com/2009/12/telangana-separate-state.html

---

## [RubyInline 3.8.4 Released](https://www.ruby-forum.com/t/rubyinline-3-8-4-released/180032)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [December 10, 2009, 1:42am UTC](https://www.ruby-forum.com/t/rubyinline-3-8-4-released/180032 "2009-12-10T01:42:59Z")

</div>

RubyInline version 3.8.4 has been released! http://rubyforge.org/projects/rubyinline/ http://rubyinline.rubyforge.org/RubyInline/ http://www.zenspider.com/ZSS/Products/RubyInline/ removed\_email\_address@domain.invalid I…

---

## [ZenTest 4.2.1 Released](https://www.ruby-forum.com/t/zentest-4-2-1-released/180031)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [December 10, 2009, 1:20am UTC](https://www.ruby-forum.com/t/zentest-4-2-1-released/180031 "2009-12-10T01:20:10Z")

</div>

ZenTest version 4.2.1 has been released! http://www.zenspider.com/ZSS/Products/ZenTest/ http://rubyforge.org/projects/zentest/ removed\_email\_address@domain.invalid ZenTest provides 4 different tools: zentest, unit\_dif…

---

## [Mysql::Error: Data too long for column](https://www.ruby-forum.com/t/mysql-data-too-long-for-column/180019)

<div class="topic-metadata">

**Author:** [@rabarama](https://www.ruby-forum.com/u/rabarama)\
**Replies:** 11\
**Last updated:** [December 10, 2009, 12:40am UTC](https://www.ruby-forum.com/t/mysql-data-too-long-for-column/180019 "2009-12-10T00:40:31Z")

</div>

Pleas i need help: I’m deploying a ror application in a win server (apache + mongrel + mysql). A model has a binary field. win2003 server mysql 5.0.45 community ed ruby 1.8.6 When i upload a file (very small) i ob…

---

## [Frozen .NET objects](https://www.ruby-forum.com/t/frozen-net-objects/180021)

<div class="topic-metadata">

**Author:** [@confundido](https://www.ruby-forum.com/u/confundido)\
**Replies:** 2\
**Last updated:** [December 9, 2009, 11:11pm UTC](https://www.ruby-forum.com/t/frozen-net-objects/180021 "2009-12-09T23:11:24Z")

</div>

I’ve noticed calling .freeze on a native .NET class does not have any effect (other than making #frozen? Return true) Is this by design? Thanks, Nathan

---

## [Why is Ruby 1.8.6 RC1 more recent than Ruby 1.8.6 Final?](https://www.ruby-forum.com/t/why-is-ruby-1-8-6-rc1-more-recent-than-ruby-1-8-6-final/180020)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 1\
**Last updated:** [December 9, 2009, 10:52pm UTC](https://www.ruby-forum.com/t/why-is-ruby-1-8-6-rc1-more-recent-than-ruby-1-8-6-final/180020 "2009-12-09T22:52:40Z")

</div>

Getting to the Ruby O.-click installer for Windows, we may go to http://www.ruby-lang.org/en/downloads/ and then http://rubyinstaller.org/download.html however over there, it seems that Ruby 1.8.6 RC1 (patchlevel 38…

---

## [Invalid gem format](https://www.ruby-forum.com/t/invalid-gem-format/180025)

<div class="topic-metadata">

**Author:** [@brianspaid](https://www.ruby-forum.com/u/brianspaid)\
**Replies:** 0\
**Last updated:** [December 9, 2009, 10:40pm UTC](https://www.ruby-forum.com/t/invalid-gem-format/180025 "2009-12-09T22:40:55Z")

</div>

I’m having some issues installing gems such as Thin. Please see debug below: XXXXX@laptop:~$ sudo gem install sup --debug -V Exception NameError' at /usr/lib/ruby/1.8/rubygems/command\_manager.rb:161 - uninitialized co…

---

## [Overriding key bindings in tktext](https://www.ruby-forum.com/t/overriding-key-bindings-in-tktext/179956)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 2\
**Last updated:** [December 9, 2009, 10:32pm UTC](https://www.ruby-forum.com/t/overriding-key-bindings-in-tktext/179956 "2009-12-09T22:32:11Z")

</div>

Does tktext let me completely override bindings? For instance, if I wanted to disable the enter key, editor.bind(“Any-Key-Return”) {} doesn’t do anything - the newline gets inserted. martin

---

## [A gets problem](https://www.ruby-forum.com/t/a-gets-problem/179986)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 9\
**Last updated:** [December 9, 2009, 10:20pm UTC](https://www.ruby-forum.com/t/a-gets-problem/179986 "2009-12-09T22:20:29Z")

</div>

Hello, Please see my operation below: irb(main):001:0\> x = gets hahase=\> “hahase” irb(main):002:0\> x =\> “hahase” irb(main):003:0\> x = gets =\> nil irb(main):004:0\> x = gets =\> nil I run x = gets then it wait me …

---

## [JSR 223-Embedded question](https://www.ruby-forum.com/t/jsr-223-embedded-question/179940)

<div class="topic-metadata">

**Author:** [@Heiko\_W.Rupp](https://www.ruby-forum.com/u/Heiko_W.Rupp)\
**Replies:** 3\
**Last updated:** [December 9, 2009, 10:06pm UTC](https://www.ruby-forum.com/t/jsr-223-embedded-question/179940 "2009-12-09T22:06:26Z")

</div>

Hi, I have a ruby script — myScript.rb def avail return 1 end That I can engine.eval () just fine. Also when I do Invocable inv = (Incovable)engine; inv.invokeFuntion(“avail”); this works for a few times and the…

---

## [Thread-local variables in Fibers](https://www.ruby-forum.com/t/thread-local-variables-in-fibers/179988)

<div class="topic-metadata">

**Author:** [@larsch](https://www.ruby-forum.com/u/larsch)\
**Replies:** 1\
**Last updated:** [December 9, 2009, 9:10pm UTC](https://www.ruby-forum.com/t/thread-local-variables-in-fibers/179988 "2009-12-09T21:10:49Z")

</div>

I stumbled on an oddity with thread variables in fibers. I wonder if this behaviour is intended and documented: irb(main):001:0\> Thread.current\[:name\] = “My name” =\> “My name” irb(main):002:0\> Fiber.new { Thread.curr…

---

## [New class methods not appearing in jar file after compile and package](https://www.ruby-forum.com/t/new-class-methods-not-appearing-in-jar-file-after-compile-and-package/180013)

<div class="topic-metadata">

**Author:** [@jasonfs](https://www.ruby-forum.com/u/jasonfs)\
**Replies:** 0\
**Last updated:** [December 9, 2009, 5:30pm UTC](https://www.ruby-forum.com/t/new-class-methods-not-appearing-in-jar-file-after-compile-and-package/180013 "2009-12-09T17:30:44Z")

</div>

I checked out the latest version of htmlunit from the svn trunk and I am trying to add two methods to the webclient, /\*\* \* Set the ip address to be used when making the connection. \* \* @param String for example “192…

---

## [Jruby and Tomcat Redeployment](https://www.ruby-forum.com/t/jruby-and-tomcat-redeployment/179964)

<div class="topic-metadata">

**Author:** [@starnix17](https://www.ruby-forum.com/u/starnix17)\
**Replies:** 4\
**Last updated:** [December 9, 2009, 5:11pm UTC](https://www.ruby-forum.com/t/jruby-and-tomcat-redeployment/179964 "2009-12-09T17:11:25Z")

</div>

Hi all, I’m running a site using Jruby on Rails and Tomcat 5.5. I deploy to the site using warbler to war the project. This is all working great, with one exception: when deploying new versions, old code does not g…

---

## [Rake task with arguments](https://www.ruby-forum.com/t/rake-task-with-arguments/186765)

<div class="topic-metadata">

**Author:** [@reacher](https://www.ruby-forum.com/u/reacher)\
**Replies:** 7\
**Last updated:** [December 9, 2009, 5:08pm UTC](https://www.ruby-forum.com/t/rake-task-with-arguments/186765 "2009-12-09T17:08:00Z")

</div>

I found an example (http://www.betweentherails.com/rake/) of passing arguments to a rake task in the new (0.8.n) version of rake. From this example, I created the following test: namespace :foo do desc ‘lol’ task :b…

---

## [How to get the (class) method document or the method list of module?](https://www.ruby-forum.com/t/how-to-get-the-class-method-document-or-the-method-list-of-module/180009)

<div class="topic-metadata">

**Author:** [@kuangye](https://www.ruby-forum.com/u/kuangye)\
**Replies:** 0\
**Last updated:** [December 9, 2009, 4:50pm UTC](https://www.ruby-forum.com/t/how-to-get-the-class-method-document-or-the-method-list-of-module/180009 "2009-12-09T16:50:56Z")

</div>

How to get the (class) method document or the method list of module? In python, I can use doc to get the method’s document, and use dir to get the method list of a class or module. In ruby, Is there any builtin functi…

---

## [SEGV by a { b {|c.d| } e }](https://www.ruby-forum.com/t/segv-by-a-b-c-d-e/180004)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [December 9, 2009, 3:55pm UTC](https://www.ruby-forum.com/t/segv-by-a-b-c-d-e/180004 "2009-12-09T15:55:56Z")

</div>

e$B0J2\<$N$h$&$K$9$k$He(B SEGV e$B$K$J$j$^$9!#e(B % ./ruby -ve ’ a { b {|c.d| } e } ’ ruby 1.9.2dev (2009-12-09 trunk 26053) \[i686-linux\] -e:3: syntax error, unexpected ‘.’, expecting ‘|’ b {|c.d| } ^ ./ruby: \[…

---

## [Google adsense high paying keywords](https://www.ruby-forum.com/t/google-adsense-high-paying-keywords/180003)

<div class="topic-metadata">

**Author:** [@Connecting\_World](https://www.ruby-forum.com/u/Connecting_World)\
**Replies:** 0\
**Last updated:** [December 9, 2009, 3:49pm UTC](https://www.ruby-forum.com/t/google-adsense-high-paying-keywords/180003 "2009-12-09T15:49:29Z")

</div>

GOOGLE ADSENSE HIGH PAYING KEYWORDS THAT I FOUND IN INTERNET . CHECK THESE GOOGLE ADSENSE HIGH PAYING KEYWORDS AT http://blogcreationandhosting.blogspot.com/2009/11/1-per-click-in-adsense-programs.html . PLEASE DON’T…

---

## [RubyForge gem index is no more](https://www.ruby-forum.com/t/rubyforge-gem-index-is-no-more/179228)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 13\
**Last updated:** [December 9, 2009, 3:18pm UTC](https://www.ruby-forum.com/t/rubyforge-gem-index-is-no-more/179228 "2009-12-09T15:18:28Z")

</div>

Hello - A few days ago we repointed gems.rubyforge.org to the gemcutter.org box. This means that Nick Quaranto’s excellent gemcutter app is now indexing and serving all the gems - so rather than having two gem indexes…

---

## [\[Feature #2455\] --dump=parsetree, --dump=parsetree\_with\_comment](https://www.ruby-forum.com/t/feature-2455-dump-parsetree-dump-parsetree-with-comment/179905)

<div class="topic-metadata">

**Author:** [@Yusuke\_E](https://www.ruby-forum.com/u/Yusuke_E)\
**Replies:** 3\
**Last updated:** [December 9, 2009, 3:07pm UTC](https://www.ruby-forum.com/t/feature-2455-dump-parsetree-dump-parsetree-with-comment/179905 "2009-12-09T15:07:21Z")

</div>

Feature #2455: --dump=parsetree, --dump=parsetree\_with\_comment http://redmine.ruby-lang.org/issues/show/2455 e$B5/I\<\<Te(B: Yusuke E. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Yukihiro M., e$B%+%F%4%j…

---

## [Newbie question: what exceptions are thrown by FTP class](https://www.ruby-forum.com/t/newbie-question-what-exceptions-are-thrown-by-ftp-class/179941)

<div class="topic-metadata">

**Author:** [@sijomo](https://www.ruby-forum.com/u/sijomo)\
**Replies:** 8\
**Last updated:** [December 9, 2009, 2:37pm UTC](https://www.ruby-forum.com/t/newbie-question-what-exceptions-are-thrown-by-ftp-class/179941 "2009-12-09T14:37:53Z")

</div>

Hi, I’m a Ruby newbie, and may have a daft question: how do I determine what exceptions are thrown by different classes, so I know which ones to catch etc? As a starting exercise I’m writiing a program to do some FTP…

---

## [Maven + JRuby = JAR?](https://www.ruby-forum.com/t/maven-jruby-jar/179946)

<div class="topic-metadata">

**Author:** [@stephanos](https://www.ruby-forum.com/u/stephanos)\
**Replies:** 13\
**Last updated:** [December 9, 2009, 10:23am UTC](https://www.ruby-forum.com/t/maven-jruby-jar/179946 "2009-12-09T10:23:30Z")

</div>

Hi everyone, I want to add JRuby to my recently started site codingkata.org which hosts programming challenges to be solved in a JVM-based language. I’m having problems to add JRuby support because I need to compile…

---

## [Qt4 : disappearing non-English characters](https://www.ruby-forum.com/t/qt4-disappearing-non-english-characters/179990)

<div class="topic-metadata">

**Author:** [@mikedc55](https://www.ruby-forum.com/u/mikedc55)\
**Replies:** 0\
**Last updated:** [December 9, 2009, 10:07am UTC](https://www.ruby-forum.com/t/qt4-disappearing-non-english-characters/179990 "2009-12-09T10:07:54Z")

</div>

I’m developing a flash-card application to help myself learn the Chinese language. I’m using ruby1.8 with Qt4 on an xubuntu system. At first, everything is rendered correctly, but after displaying a certain number of…

---

## [ZenTest 4.2.0 Released](https://www.ruby-forum.com/t/zentest-4-2-0-released/179981)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [December 9, 2009, 6:05am UTC](https://www.ruby-forum.com/t/zentest-4-2-0-released/179981 "2009-12-09T06:05:23Z")

</div>

ZenTest version 4.2.0 has been released! http://www.zenspider.com/ZSS/Products/ZenTest/ http://rubyforge.org/projects/zentest/ removed\_email\_address@domain.invalid ZenTest provides 4 different tools: zentest, unit\_dif…

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

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