# Ruby

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

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

---

## [\--program-suffix $B;XDj;~$N(B ri $B$NC5:w@h$"$k$$$O(B rdoc $B$N%$%s%9%H!\<%k@h(B](https://www.ruby-forum.com/t/program-suffix-b-xdj-n-b-ri-b-nc5-w-h-k-o-b-rdoc-b-n-s-9-h-k-h-b/164544)

<div class="topic-metadata">

**Author:** [@KISHIMOTOS\_Makoto](https://www.ruby-forum.com/u/KISHIMOTOS_Makoto)\
**Replies:** 1\
**Last updated:** [May 21, 2009, 11:05am UTC](https://www.ruby-forum.com/t/program-suffix-b-xdj-n-b-ri-b-nc5-w-h-k-o-b-rdoc-b-n-s-9-h-k-h-b/164544 "2009-05-21T11:05:24Z")

</div>

e$B$-$7$b$H$G$9e(B e$B$?$H$($Pe(B configure e$B;~$Ke(B --program-suffix=19 e$B$H$9$k$H!"%G%U%)%k%He(B e$B$G$Oe(B ri19 e$B%3%^%s%I$Oe(B /usr/local/share/ri19 e$B$r$5$,$7$K$$$/$N$G$9$,!"e(B rdoc e$B$N%$%s%9%H!\<%k@h$Oe…

---

## [Create a new Ruby Project how](https://www.ruby-forum.com/t/create-a-new-ruby-project-how/168474)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [May 21, 2009, 6:18am UTC](https://www.ruby-forum.com/t/create-a-new-ruby-project-how/168474 "2009-05-21T06:18:17Z")

</div>

Hi Could any body please explain how to start a new Ruby Project ( Not rails project) both from konsole and RadRails Thanks in advance Sijo

---

## [Drb server fails when yielding to client](https://www.ruby-forum.com/t/drb-server-fails-when-yielding-to-client/168301)

<div class="topic-metadata">

**Author:** [@mshah](https://www.ruby-forum.com/u/mshah)\
**Replies:** 5\
**Last updated:** [May 21, 2009, 6:17am UTC](https://www.ruby-forum.com/t/drb-server-fails-when-yielding-to-client/168301 "2009-05-21T06:17:27Z")

</div>

Hi, Resending this with new subject line. I looked at the Jira and Googled it. I could not find any issues which talks about this or similar issue. My little debugging using wireshark shows that server is closing con…

---

## [ATTN: IronRuby 0.5](https://www.ruby-forum.com/t/attn-ironruby-0-5/168472)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 0\
**Last updated:** [May 21, 2009, 4:34am UTC](https://www.ruby-forum.com/t/attn-ironruby-0-5/168472 "2009-05-21T04:34:28Z")

</div>

I’m pleased to announce a new release of IronRuby: IronRuby 0.5! Download IronRuby 0.5: http://ironruby.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=25902#DownloadId=68919 You can also check out the source code…

---

## [Code Review: InteropBinders2](https://www.ruby-forum.com/t/code-review-interopbinders2/168468)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [May 21, 2009, 3:58am UTC](https://www.ruby-forum.com/t/code-review-interopbinders2/168468 "2009-05-21T03:58:49Z")

</div>

tfpt review “/shelveset:InteropBinders2;REDMOND\\tomat” Improves DLR interop: adds support for GetMember/SetMember with method\_missing, Binary/Unary ops, indexers. Fixes bugs in DLR interop. Tomas

---

## [EventMachine dynamic port forwarding](https://www.ruby-forum.com/t/eventmachine-dynamic-port-forwarding/168109)

<div class="topic-metadata">

**Author:** [@di3go](https://www.ruby-forum.com/u/di3go)\
**Replies:** 7\
**Last updated:** [May 21, 2009, 3:38am UTC](https://www.ruby-forum.com/t/eventmachine-dynamic-port-forwarding/168109 "2009-05-21T03:38:31Z")

</div>

I need a dynamic port forwarding application, i listem packets from a ip on port 10000, then i need not just send the data i receive to other ports, but i need first create a connection on this new port first and list…

---

## [Undefined method \`empty?' for nil:NilClass in gem build](https://www.ruby-forum.com/t/undefined-method-empty-for-nil-nilclass-in-gem-build/168430)

<div class="topic-metadata">

**Author:** [@sevensoft](https://www.ruby-forum.com/u/sevensoft)\
**Replies:** 3\
**Last updated:** [May 21, 2009, 3:09am UTC](https://www.ruby-forum.com/t/undefined-method-empty-for-nil-nilclass-in-gem-build/168430 "2009-05-21T03:09:27Z")

</div>

I’m trying to build a rubygem, but I keep getting the following error. Can anybody help? $ gem build wordnet.gemspec ERROR: While executing gem … (NoMethodError) undefined method \`empty?’ for nil:NilClass $ cat wor…

---

## [Event\_hook 1.0.0 Released](https://www.ruby-forum.com/t/event-hook-1-0-0-released/168384)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 3\
**Last updated:** [May 21, 2009, 3:04am UTC](https://www.ruby-forum.com/t/event-hook-1-0-0-released/168384 "2009-05-21T03:04:10Z")

</div>

event\_hook version 1.0.0 has been released! http://rubyforge.org/projects/seattlerb Wraps rb\_add\_event\_hook so you can write fast ruby event hook processors w/o the speed penalty that comes with set\_trace\_func (sooo …

---

## [Re: Qt4 not supported?](https://www.ruby-forum.com/t/re-qt4-not-supported/168431)

<div class="topic-metadata">

**Author:** [@jolivierld](https://www.ruby-forum.com/u/jolivierld)\
**Replies:** 2\
**Last updated:** [May 21, 2009, 12:38am UTC](https://www.ruby-forum.com/t/re-qt4-not-supported/168431 "2009-05-21T00:38:01Z")

</div>

hello, thank you for your answer, ken. I still have an error : here is my program : require ('Qt') class Fen\_princ \< Qt::MainWindow def initialize zone\_centrale=Qt::Widget.new nom=Qt::LineEdit.ne…

---

## [Trouble with JRuby 1.3RC1](https://www.ruby-forum.com/t/trouble-with-jruby-1-3rc1/168456)

<div class="topic-metadata">

**Author:** [@Pelle\_Braendgaard](https://www.ruby-forum.com/u/Pelle_Braendgaard)\
**Replies:** 0\
**Last updated:** [May 20, 2009, 11:52pm UTC](https://www.ruby-forum.com/t/trouble-with-jruby-1-3rc1/168456 "2009-05-20T23:52:57Z")

</div>

I’m looking at some issues deploying a jruby rails app to oc4j. I can deploy fine but when I attempt to actually run the application it throws an error and the following shows up in the log: 09/05/20 16:29:04 Warning:…

---

## [TypeError in using MySQL driver](https://www.ruby-forum.com/t/typeerror-in-using-mysql-driver/168428)

<div class="topic-metadata">

**Author:** [@bellani](https://www.ruby-forum.com/u/bellani)\
**Replies:** 1\
**Last updated:** [May 20, 2009, 11:30pm UTC](https://www.ruby-forum.com/t/typeerror-in-using-mysql-driver/168428 "2009-05-20T23:30:49Z")

</div>

I get a ‘TypeError’ when I run the following script: require ‘dbi’ dbi = DBI.connect(‘DBI:Mysql:wrdb\_development’, ‘root’, ‘’) do |dbh| end C:/Rails/InstantRails/ruby/lib/ruby/site\_ruby/1.8/dbi/dbi.rb:501:in \`load\_d…

---

## [Ruby GUI for a program that works on perl files](https://www.ruby-forum.com/t/ruby-gui-for-a-program-that-works-on-perl-files/168441)

<div class="topic-metadata">

**Author:** [@khanjan](https://www.ruby-forum.com/u/khanjan)\
**Replies:** 1\
**Last updated:** [May 20, 2009, 9:53pm UTC](https://www.ruby-forum.com/t/ruby-gui-for-a-program-that-works-on-perl-files/168441 "2009-05-20T21:53:07Z")

</div>

Hey all, I am new to Ruby and trying to learn it. I have a program that is written in the form of Perl and XML files, and runs from the command line right now. I want to create a GUI for the same, so that a user can …

---

## [Re: Qt4 not supported?](https://www.ruby-forum.com/t/re-qt4-not-supported/168435)

<div class="topic-metadata">

**Author:** [@jolivierld](https://www.ruby-forum.com/u/jolivierld)\
**Replies:** 1\
**Last updated:** [May 20, 2009, 9:07pm UTC](https://www.ruby-forum.com/t/re-qt4-not-supported/168435 "2009-05-20T21:07:13Z")

</div>

hello, I have made a little change : require (‘Qt’) class Fen\_princ \< Qt::MainWindow def initialize zone\_centrale=Qt::Widget.new nom=Qt::LineEdit.new layout=Qt::FormLayout.new layout.addRow(“Votre nom :”,nom) z…

---

## [Superclass of eigenclass](https://www.ruby-forum.com/t/superclass-of-eigenclass/167404)

<div class="topic-metadata">

**Author:** [@dannyocuiv](https://www.ruby-forum.com/u/dannyocuiv)\
**Replies:** 29\
**Last updated:** [May 20, 2009, 8:38pm UTC](https://www.ruby-forum.com/t/superclass-of-eigenclass/167404 "2009-05-20T20:38:02Z")

</div>

On page 261 of The Ruby P.ming Language, they state: “Class objects are special: they have superclasses. The eigenclasses of class objects are also special: they have superclasses, too. The eigenclass of an ordinary o…

---

## [(windows 7,visual studio,ruby in steel) Qt4 not supported?](https://www.ruby-forum.com/t/windows-7-visual-studio-ruby-in-steel-qt4-not-supported/168414)

<div class="topic-metadata">

**Author:** [@jolivierld](https://www.ruby-forum.com/u/jolivierld)\
**Replies:** 1\
**Last updated:** [May 20, 2009, 6:08pm UTC](https://www.ruby-forum.com/t/windows-7-visual-studio-ruby-in-steel-qt4-not-supported/168414 "2009-05-20T18:08:57Z")

</div>

hello, I want to use visual studio 2008 + ruby in steel (plugin ruby), and I would like to create a simple program (containing \_ say \_ a QMainWindow containing a QLineEdit.) the first statement of my program is : pr…

---

## [Interface generic w/ generic methods](https://www.ruby-forum.com/t/interface-generic-w-generic-methods/168389)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 1\
**Last updated:** [May 20, 2009, 5:43pm UTC](https://www.ruby-forum.com/t/interface-generic-w-generic-methods/168389 "2009-05-20T17:43:44Z")

</div>

Hi I’m observing the following behavior when I try to implement a CLR interface with generic method definitions. So let’s say an interface contains the following method definition public interface IRubyEngine { T C…

---

## [Super super?](https://www.ruby-forum.com/t/super-super/168347)

<div class="topic-metadata">

**Author:** [@kingkadelfek](https://www.ruby-forum.com/u/kingkadelfek)\
**Replies:** 12\
**Last updated:** [May 20, 2009, 5:19pm UTC](https://www.ruby-forum.com/t/super-super/168347 "2009-05-20T17:19:05Z")

</div>

Hello, I’m looking for informations about “super”. I have 3 classes : grandfather, father, and son. And they all have a method named “say\_hello”. class Grand\_father def say\_hello puts "Grand Father : Hello" en…

---

## [Overflow on LP64](https://www.ruby-forum.com/t/overflow-on-lp64/168405)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 2\
**Last updated:** [May 20, 2009, 4:08pm UTC](https://www.ruby-forum.com/t/overflow-on-lp64/168405 "2009-05-20T16:08:05Z")

</div>

e$B$J$+$@$G$9!#e(B e$B$H$-$I$-!“e(Blonge$B$+$ie(Binte$B$K0EL\[$N$&$A$KJQ49$7$F$$$k$H$3$m$,$”$j$^$9!#e(B e$B$\[$H$s$I$N$H$3$m$O7?$r9g$o$;$k$@$1$G$b$9$\`$N$G$9$,!"$?$H$($Pe(B RARRAY\_LEN()e$B$J$I$+$ie(Brb\_funcall()e$B$J$I$r…

---

## [Code Review: Conversions12](https://www.ruby-forum.com/t/code-review-conversions12/168351)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 1\
**Last updated:** [May 20, 2009, 3:35pm UTC](https://www.ruby-forum.com/t/code-review-conversions12/168351 "2009-05-20T15:35:06Z")

</div>

tfpt review “/shelveset:Conversions12;REDMOND\\tomat” DLR: RestrictionInfo is renamed to RestrictedArguments and passed to ArgBuilder.ToExpression and ArgBuilder.ToDelegate instead of List. This way the methods have f…

---

## [Detect TCPSocket interruptions/disappearance](https://www.ruby-forum.com/t/detect-tcpsocket-interruptions-disappearance/168303)

<div class="topic-metadata">

**Author:** [@reynar](https://www.ruby-forum.com/u/reynar)\
**Replies:** 3\
**Last updated:** [May 20, 2009, 3:04pm UTC](https://www.ruby-forum.com/t/detect-tcpsocket-interruptions-disappearance/168303 "2009-05-20T15:04:13Z")

</div>

Hi, I am putting together a background daemon as part of a Rails app to handle monitoring of our phone system. The phone system exposes an TCP socket on which it delivers lines of text in real-time corresponding to e…

---

## [Copying a Ruby installation](https://www.ruby-forum.com/t/copying-a-ruby-installation/168242)

<div class="topic-metadata">

**Author:** [@muralikrishna](https://www.ruby-forum.com/u/muralikrishna)\
**Replies:** 2\
**Last updated:** [May 20, 2009, 3:00pm UTC](https://www.ruby-forum.com/t/copying-a-ruby-installation/168242 "2009-05-20T15:00:57Z")

</div>

I am trying to copy an entire ruby installation So, say for e.g. I installed ruby under /usr/ruby e.g. cp -R /usr/ruby /usr1; rm -rf /usr/ruby I want to be able to copy it to some other directory say /usr1/ruby and r…

---

## [Optparse: Arguments as Arguments Unexpectedness](https://www.ruby-forum.com/t/optparse-arguments-as-arguments-unexpectedness/168404)

<div class="topic-metadata">

**Author:** [@blacknight](https://www.ruby-forum.com/u/blacknight)\
**Replies:** 2\
**Last updated:** [May 20, 2009, 2:49pm UTC](https://www.ruby-forum.com/t/optparse-arguments-as-arguments-unexpectedness/168404 "2009-05-20T14:49:52Z")

</div>

Hi, I am trying to use the standard optionparser to read in some arguments, but one of those arguments is an argument itself. Is this a bug? opt.rb: require ‘optparse’ OptionParser.new do |opts| opts.on(’-a’,’–args…

---

## [\[Bug #1483\] some commands installed without program-suffix](https://www.ruby-forum.com/t/bug-1483-some-commands-installed-without-program-suffix/168206)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 5\
**Last updated:** [May 20, 2009, 2:16pm UTC](https://www.ruby-forum.com/t/bug-1483-some-commands-installed-without-program-suffix/168206 "2009-05-20T14:16:19Z")

</div>

Bug #1483: some commands installed without program-suffix http://redmine.ruby-lang.org/issues/show/1483 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.9.2dev (2009-05-17…

---

## [Problem with Regular Expression](https://www.ruby-forum.com/t/problem-with-regular-expression/168335)

<div class="topic-metadata">

**Author:** [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Replies:** 4\
**Last updated:** [May 20, 2009, 1:31pm UTC](https://www.ruby-forum.com/t/problem-with-regular-expression/168335 "2009-05-20T13:31:05Z")

</div>

I’m replacing a string using: xmlString.gsub!(/:#{tagName}\>#{oldValue}\<//i,":" + tagName + “\>” + value + “\</”) It works perfectly but… if oldValue contains the character +, it doesn’t work. Do you know how to solve …

---

## [Zenprofile 1.0.2 Released](https://www.ruby-forum.com/t/zenprofile-1-0-2-released/168383)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [May 20, 2009, 9:06am UTC](https://www.ruby-forum.com/t/zenprofile-1-0-2-released/168383 "2009-05-20T09:06:41Z")

</div>

zenprofile version 1.0.2 has been released! http://rubyforge.org/projects/seattlerb zenprofiler helps answer WHAT is being called the most. spy\_on helps answer WHERE those calls are being made. ZenProfiler provides a…

---

## [Issue with jruby and cucumber step with 4 parameters](https://www.ruby-forum.com/t/issue-with-jruby-and-cucumber-step-with-4-parameters/168375)

<div class="topic-metadata">

**Author:** [@korny](https://www.ruby-forum.com/u/korny)\
**Replies:** 1\
**Last updated:** [May 20, 2009, 9:04am UTC](https://www.ruby-forum.com/t/issue-with-jruby-and-cucumber-step-with-4-parameters/168375 "2009-05-20T09:04:55Z")

</div>

Hi - sorry for the cross-list post, but this issue happens only with cucumber and jruby, and I’m not 100% sure which has the problem. It doesn’t happen with non-j ruby though. Versions: cucumber 0.2.3 jruby 1.2.0 on…

---

## [Sorting numbers as strings](https://www.ruby-forum.com/t/sorting-numbers-as-strings/168233)

<div class="topic-metadata">

**Author:** [@jbaty](https://www.ruby-forum.com/u/jbaty)\
**Replies:** 13\
**Last updated:** [May 20, 2009, 8:05am UTC](https://www.ruby-forum.com/t/sorting-numbers-as-strings/168233 "2009-05-20T08:05:06Z")

</div>

I’m trying to sort some strings containing numbers. The strings themselves can’t be changed (they’re items being pulled from a DB.) This is an example of some of the things I need to sort. First is how I wanted them s…

---

## [PDFWriter and Fonts in SimpleTable](https://www.ruby-forum.com/t/pdfwriter-and-fonts-in-simpletable/168369)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 0\
**Last updated:** [May 20, 2009, 3:20am UTC](https://www.ruby-forum.com/t/pdfwriter-and-fonts-in-simpletable/168369 "2009-05-20T03:20:16Z")

</div>

I’m generating a document that has a table in it - so far so good. I need to have the last row in the table bold, and maybe a slightly larger font. Is there a way (tags in the data, whatever) to do this, and if so, ho…

---

## [Kernel#\_\_method\_\_](https://www.ruby-forum.com/t/kernel-method/168363)

<div class="topic-metadata">

**Author:** [@gendag](https://www.ruby-forum.com/u/gendag)\
**Replies:** 4\
**Last updated:** [May 20, 2009, 2:24am UTC](https://www.ruby-forum.com/t/kernel-method/168363 "2009-05-20T02:24:37Z")

</div>

Hi all, it seems that Kernel#method is not implemented in jruby. irb(main):001:0\> method NameError: undefined local variable or method \`method’ for main:Object Am I missing something? Thanks. Andrea To unsubscri…

---

## [RubyNation Conference June 12-13, Washington, DC](https://www.ruby-forum.com/t/rubynation-conference-june-12-13-washington-dc/168367)

<div class="topic-metadata">

**Author:** [@grayherter](https://www.ruby-forum.com/u/grayherter)\
**Replies:** 0\
**Last updated:** [May 20, 2009, 1:43am UTC](https://www.ruby-forum.com/t/rubynation-conference-june-12-13-washington-dc/168367 "2009-05-20T01:43:06Z")

</div>

RubyNation is coming up soon. RubyNation is the Washington DC area’s community Ruby and Rails Conference, where the Rubyists from around the nation’s capital and beyond meet to bask in Ruby and Rails goodness for two…

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

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