# Ruby

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

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

---

## [Clafamatt 1.0.0](https://www.ruby-forum.com/t/clafamatt-1-0-0/155635)

<div class="topic-metadata">

**Author:** [@avdi](https://www.ruby-forum.com/u/avdi)\
**Replies:** 0\
**Last updated:** [December 15, 2008, 4:04am UTC](https://www.ruby-forum.com/t/clafamatt-1-0-0/155635 "2008-12-15T04:04:30Z")

</div>

clafamatt version 1.0.0 by Avdi G. http://clafamatt.rubyforge.org == DESCRIPTION ClaFamAtt (CLAss FAMily ATTributes) is class inheritable attributes without the baggage. == CHANGES 1 major enhancement Birthday! …

---

## [\[Bug #849\](Closed) --enable-shared $B$G(B btest $B$,F0$+$J$$(B](https://www.ruby-forum.com/t/bug-849-closed-enable-shared-b-g-b-btest-b-f0-j-b/155632)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 0\
**Last updated:** [December 15, 2008, 2:12am UTC](https://www.ruby-forum.com/t/bug-849-closed-enable-shared-b-g-b-btest-b-f0-j-b/155632 "2008-12-15T02:12:13Z")

</div>

e$B%A%1%C%He(B #849 e$B$,99?7$5$l$^$7$?!#e(B (by Nobuyoshi N.) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B Applied in changeset r20740. http://redmine.ruby-lang.org/issue…

---

## [Unit test of sequel column value](https://www.ruby-forum.com/t/unit-test-of-sequel-column-value/155611)

<div class="topic-metadata">

**Author:** [@nabblee](https://www.ruby-forum.com/u/nabblee)\
**Replies:** 3\
**Last updated:** [December 15, 2008, 12:15am UTC](https://www.ruby-forum.com/t/unit-test-of-sequel-column-value/155611 "2008-12-15T00:15:18Z")

</div>

I’m trying to do a simple assert of the value of a column returned from MySQL using the sequel gem. However, the type is an Array, rather than a String. Code snippet: cur\_user = @db\[:users\].where(:username =\> ‘test…

---

## [Command line utilities in rubygems?](https://www.ruby-forum.com/t/command-line-utilities-in-rubygems/155592)

<div class="topic-metadata">

**Author:** [@navouri](https://www.ruby-forum.com/u/navouri)\
**Replies:** 4\
**Last updated:** [December 14, 2008, 8:55pm UTC](https://www.ruby-forum.com/t/command-line-utilities-in-rubygems/155592 "2008-12-14T20:55:41Z")

</div>

I have a small project that I’m working on and I would like the executable to be put in the usr bin path and setup so that it can be used as a command line utility automatically when installed using gem install. How w…

---

## [Newbie - error while trying subclass](https://www.ruby-forum.com/t/newbie-error-while-trying-subclass/155622)

<div class="topic-metadata">

**Author:** [@rubystudent](https://www.ruby-forum.com/u/rubystudent)\
**Replies:** 4\
**Last updated:** [December 14, 2008, 8:42pm UTC](https://www.ruby-forum.com/t/newbie-error-while-trying-subclass/155622 "2008-12-14T20:42:12Z")

</div>

I am trying to subclass in my code (see below). But I am getting the following error while running the code. song.rb:12: class/module name must be CONSTANT class karaokeSong \< Song ^ song.rb:23: warning: don’t put s…

---

## [Singleton methods vs. meta instance methods](https://www.ruby-forum.com/t/singleton-methods-vs-meta-instance-methods/155543)

<div class="topic-metadata">

**Author:** [@Daniel\_DeLorme](https://www.ruby-forum.com/u/Daniel_DeLorme)\
**Replies:** 14\
**Last updated:** [December 14, 2008, 6:19pm UTC](https://www.ruby-forum.com/t/singleton-methods-vs-meta-instance-methods/155543 "2008-12-14T18:19:46Z")

</div>

If I understand the ruby object model correctly, then an object’s singleton methods are defined as the instance methods of that object’s meta/singleton class. So I tried to confirm this: obj = Object.new obj\_meta = (…

---

## [Capistrano scripts for jetty\_rails](https://www.ruby-forum.com/t/capistrano-scripts-for-jetty-rails/155607)

<div class="topic-metadata">

**Author:** [@raphael\_b](https://www.ruby-forum.com/u/raphael_b)\
**Replies:** 1\
**Last updated:** [December 14, 2008, 6:07pm UTC](https://www.ruby-forum.com/t/capistrano-scripts-for-jetty-rails/155607 "2008-12-14T18:07:26Z")

</div>

Hi I thought some of you might be interested in the scripts I wrote for capistrano deployment of a Jruby on Rails app running with jetty\_rails. You’ll find it at Cheers Raph – Web database: http://www.myowndb.co…

---

## [Get CPU usage](https://www.ruby-forum.com/t/get-cpu-usage/155602)

<div class="topic-metadata">

**Author:** [@pandabeer](https://www.ruby-forum.com/u/pandabeer)\
**Replies:** 1\
**Last updated:** [December 14, 2008, 3:25pm UTC](https://www.ruby-forum.com/t/get-cpu-usage/155602 "2008-12-14T15:25:42Z")

</div>

Hello everybody, I would like to get the % of CPU usage of a current Ruby script. For example, I would like to start my script like and allow it to get and print this such as: ./application.rb =\> 12:10 =\> CPU usage …

---

## [Alternative web server scripting language](https://www.ruby-forum.com/t/alternative-web-server-scripting-language/155604)

<div class="topic-metadata">

**Author:** [@Petite\_A](https://www.ruby-forum.com/u/Petite_A)\
**Replies:** 0\
**Last updated:** [December 14, 2008, 2:08pm UTC](https://www.ruby-forum.com/t/alternative-web-server-scripting-language/155604 "2008-12-14T14:08:26Z")

</div>

Hello, Now that Lua \[1\] appears as a native scripting language in more \[2\] and more \[3\] mainstream web servers, here is an example of a web server written in Lua: http://svr225.stepx.com:3388/a The wiki demo sports …

---

## [Open3](https://www.ruby-forum.com/t/open3/155595)

<div class="topic-metadata">

**Author:** [@vanderkerkoff](https://www.ruby-forum.com/u/vanderkerkoff)\
**Replies:** 1\
**Last updated:** [December 14, 2008, 11:35am UTC](https://www.ruby-forum.com/t/open3/155595 "2008-12-14T11:35:27Z")

</div>

Hello everyone. I have created a sales system for my company. Basically you telnet to the system and enter your login name, password … From there you can access the sales system. I am working on a feature to write rep…

---

## [Creating directory structures](https://www.ruby-forum.com/t/creating-directory-structures/155540)

<div class="topic-metadata">

**Author:** [@navouri](https://www.ruby-forum.com/u/navouri)\
**Replies:** 6\
**Last updated:** [December 14, 2008, 11:05am UTC](https://www.ruby-forum.com/t/creating-directory-structures/155540 "2008-12-14T11:05:38Z")

</div>

I’m having a bit of a difficult time coming up with a solid way handle this problem. I’ll explain: I have an array containing a list of file paths like the following. \[“foo/bar/blah.rb”,“foo/bar/stuff.rb”,"foo/bar/exa…

---

## [\[1.9:Feature\] faster bignum multiplication by karatsuba method](https://www.ruby-forum.com/t/1-9-feature-faster-bignum-multiplication-by-karatsuba-method/155442)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 5\
**Last updated:** [December 14, 2008, 5:03am UTC](https://www.ruby-forum.com/t/1-9-feature-faster-bignum-multiplication-by-karatsuba-method/155442 "2008-12-14T05:03:14Z")

</div>

e$B1sF#$G$9!#e(B Python e$B$N%=!\<%9$r;29M$K$7$F!"e(Bbignum e$B$N\>h;;$re(B Karatsuba e$BK!$J$I$Ge(B e$B9bB.2=$7$F$\_$^$7$?!#e(B e$B%Y%s%A%^!\<%/$9$k$H$3$s$J46$8$G$9!#e(B e$B5le(B …

---

## [Multiple Ruby versions for testing](https://www.ruby-forum.com/t/multiple-ruby-versions-for-testing/155499)

<div class="topic-metadata">

**Author:** [@james-calivar](https://www.ruby-forum.com/u/james-calivar)\
**Replies:** 4\
**Last updated:** [December 14, 2008, 4:39am UTC](https://www.ruby-forum.com/t/multiple-ruby-versions-for-testing/155499 "2008-12-14T04:39:36Z")

</div>

Hi list, I’m trying to test a gem (managed with Hoe) on my Ubuntu machine. The Ruby from the Ubuntu repos is 1.8.7, but the last version I tested this gem on was 1.8.6, where all the tests pass. Now some of the test…

---

## [Message of \[BUG\]](https://www.ruby-forum.com/t/message-of-bug/155578)

<div class="topic-metadata">

**Author:** [@SASADA\_Koichi](https://www.ruby-forum.com/u/SASADA_Koichi)\
**Replies:** 0\
**Last updated:** [December 13, 2008, 9:43pm UTC](https://www.ruby-forum.com/t/message-of-bug/155578 "2008-12-13T21:43:22Z")

</div>

e$B!!$5$5$@$G$9!%e(B e$B!!e(B\[BUG\] e$B$,5/$-$?$H$-$N%a%C%;!\<%8$r$b$&$A$g$C$H\>$7$/$J$i$J$$$+$H;W$$$^$7e(B e$B$F!$\>/$7$$$8$j$^$7$?!%e(B e$B!!Nc$($P!$$3$s$J46$8$G$9!%e(B …/trunk/test.rb:7:in \`inspect’ 0x81413d2 ./min…

---

## [Accessing :object after render : partial](https://www.ruby-forum.com/t/accessing-object-after-render-partial/155574)

<div class="topic-metadata">

**Author:** [@thithi32](https://www.ruby-forum.com/u/thithi32)\
**Replies:** 3\
**Last updated:** [December 13, 2008, 9:21pm UTC](https://www.ruby-forum.com/t/accessing-object-after-render-partial/155574 "2008-12-13T21:21:19Z")

</div>

Hello, I’m running into an issue I don’t understand (I’m new to ruby): in my “Journey” controller / “course\_detail” action I render the following partial (this is call by a Prototype Ajax function): render :partial =\>…

---

## [Sundays w. Prawn (Hackfest) -- 2008.12.14](https://www.ruby-forum.com/t/sundays-w-prawn-hackfest-2008-12-14/155575)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [December 13, 2008, 9:04pm UTC](https://www.ruby-forum.com/t/sundays-w-prawn-hackfest-2008-12-14/155575 "2008-12-13T21:04:43Z")

</div>

Hi folks, Making myself available to help others hack, discuss projects and questions, etc for Prawn\[0\] while we work towards wrapping up the 0.3 release. I will be around from 2pm-8pm EST, moving the schedule a litt…

---

## [Can't get output from MiniTest](https://www.ruby-forum.com/t/cant-get-output-from-minitest/153130)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 8\
**Last updated:** [December 13, 2008, 8:22pm UTC](https://www.ruby-forum.com/t/cant-get-output-from-minitest/153130 "2008-12-13T20:22:31Z")

</div>

Hi – I feel like a lamb to the slaughter, since I’m almost certainly doing something obviously wrong, but I’m having trouble understanding why I’m not getting any output from this: require ‘minitest/unit’ class Test…

---

## [The Command Prompt](https://www.ruby-forum.com/t/the-command-prompt/155563)

<div class="topic-metadata">

**Author:** [@goneale](https://www.ruby-forum.com/u/goneale)\
**Replies:** 2\
**Last updated:** [December 13, 2008, 6:21pm UTC](https://www.ruby-forum.com/t/the-command-prompt/155563 "2008-12-13T18:21:25Z")

</div>

Hello, Nice forum, Could someone tell me how to type on the command prompt once I have started the server (webbrick). It wont allow me to type anything on the prompt at all unless I stop the server first. Please ad…

---

## [Exemple sur le cinÃ©ma (rails)](https://www.ruby-forum.com/t/exemple-sur-le-cina-ma-rails/155564)

<div class="topic-metadata">

**Author:** [@kungfu-free](https://www.ruby-forum.com/u/kungfu-free)\
**Replies:** 0\
**Last updated:** [December 13, 2008, 4:25pm UTC](https://www.ruby-forum.com/t/exemple-sur-le-cina-ma-rails/155564 "2008-12-13T16:25:26Z")

</div>

\#Movies.rb: def deleted\_roles=(values) roles.find(\*values).each(&:destroy) end #Role.rb: class Role \< ActiveRecord::Base belongs\_to :movie belongs\_to :person validates\_presence\_of :movie\_id, :person\_id, :name de…

---

## [Please, help to start... for a desktop application](https://www.ruby-forum.com/t/please-help-to-start-for-a-desktop-application/155562)

<div class="topic-metadata">

**Author:** [@wslt](https://www.ruby-forum.com/u/wslt)\
**Replies:** 0\
**Last updated:** [December 13, 2008, 3:18pm UTC](https://www.ruby-forum.com/t/please-help-to-start-for-a-desktop-application/155562 "2008-12-13T15:18:52Z")

</div>

Hello everybody, I would really like to start the best way. I studied some Java in the past but when I met ruby I really loved it, and now I should like to learn and do well. Could you help me suggesting your favorit…

---

## [Faire Ã©quivalent en python](https://www.ruby-forum.com/t/faire-a-quivalent-en-python/155560)

<div class="topic-metadata">

**Author:** [@kungfu-free](https://www.ruby-forum.com/u/kungfu-free)\
**Replies:** 0\
**Last updated:** [December 13, 2008, 2:25pm UTC](https://www.ruby-forum.com/t/faire-a-quivalent-en-python/155560 "2008-12-13T14:25:21Z")

</div>

Si les mêmes options existent c cool pour tpi ! Try this: % env -i $SHELL --norc % ruby myscript.cgi \< /dev/null cause that is roughly all the web browser is gonna do.

---

## [Configure kannel to get the data from database](https://www.ruby-forum.com/t/configure-kannel-to-get-the-data-from-database/155552)

<div class="topic-metadata">

**Author:** [@mailtorajuit](https://www.ruby-forum.com/u/mailtorajuit)\
**Replies:** 1\
**Last updated:** [December 13, 2008, 2:15pm UTC](https://www.ruby-forum.com/t/configure-kannel-to-get-the-data-from-database/155552 "2008-12-13T14:15:57Z")

</div>

hi everyone, My project is to send sms to mobile. iam new to rails. how to configure the kannel to push sms to gateway. is it better first keep the data into database and kannel has to fetch the records from database…

---

## [JRuby 1.1.5 include\_class breaks from myjar file...working in 1.1.4](https://www.ruby-forum.com/t/jruby-1-1-5-include-class-breaks-from-myjar-file-working-in-1-1-4/152739)

<div class="topic-metadata">

**Author:** [@drrs](https://www.ruby-forum.com/u/drrs)\
**Replies:** 3\
**Last updated:** [December 13, 2008, 12:35pm UTC](https://www.ruby-forum.com/t/jruby-1-1-5-include-class-breaks-from-myjar-file-working-in-1-1-4/152739 "2008-12-13T12:35:45Z")

</div>

Something like this: my\_directory=‘\\build\\WEB-INF\\classes’ Dir.chdir(my\_directory) system(‘C:\\jdk1.5.0\\bin\\jar cf myFile.jar .’) require ‘myFile.jar’ Say Hello is now part of the myFile.jar Now I do something like: …

---

## [Match(f.read)\[0\].to\_a\[0\] meaning?](https://www.ruby-forum.com/t/match-f-read-0-to-a-0-meaning/155554)

<div class="topic-metadata">

**Author:** [@rubyernewbie](https://www.ruby-forum.com/u/rubyernewbie)\
**Replies:** 1\
**Last updated:** [December 13, 2008, 12:02pm UTC](https://www.ruby-forum.com/t/match-f-read-0-to-a-0-meaning/155554 "2008-12-13T12:02:36Z")

</div>

my\_ip = (require ‘open-uri’ ; open(“http://myip.dk”) { |f| /(\[0-9\]{1,3}.){3}\[0-9\]{1,3}/.match(f.read)\[0\].to\_a\[0\] }) what is the different between match(f.read)\[0\].to\_a\[0\] and match(f.read) ? is someone can explain i…

---

## [\[Bug:1.9\] pty hang](https://www.ruby-forum.com/t/bug-1-9-pty-hang/155546)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 2\
**Last updated:** [December 13, 2008, 11:34am UTC](https://www.ruby-forum.com/t/bug-1-9-pty-hang/155546 "2008-12-13T11:34:12Z")

</div>

pty e$B$G%O%s%0$9$k$3$H$,$"$j$^$9!#e(B % ./ruby -rpty -e ‘p $$; r,w,pid = PTY.spawn(“echo a”); p pid; p r.gets’ 19510 19512 e$B$3$3$G%O%s%0e(B e$BB\>$NC\<Kv$+$ie(B ps e$B$G$\_$k$H!";R%W%m%;%9$,e(B echo e$B$K$J$C$F$^$;…

---

## [\[Bug #854\] Rake::FileList#egrep $B$,F0$+$J$$(B](https://www.ruby-forum.com/t/bug-854-rake-filelist-egrep-b-f0-j-b/155387)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 1\
**Last updated:** [December 13, 2008, 9:16am UTC](https://www.ruby-forum.com/t/bug-854-rake-filelist-egrep-b-f0-j-b/155387 "2008-12-13T09:16:58Z")

</div>

Bug #854: Rake::FileList#egrep e$B$,F0$+$J$$e(B http://redmine.ruby-lang.org/issues/show/854 e$B5/I\<\<Te(B: okkez \_ e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B0J2\<$N$h$&$Je(B Rakefile e$B$r:n$C$Fe(B Ruby1.9.1 pre…

---

## [\[Bug #860\] some mistakes in Rake RDoc](https://www.ruby-forum.com/t/bug-860-some-mistakes-in-rake-rdoc/155473)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 1\
**Last updated:** [December 13, 2008, 8:53am UTC](https://www.ruby-forum.com/t/bug-860-some-mistakes-in-rake-rdoc/155473 "2008-12-13T08:53:35Z")

</div>

Bug #860: some mistakes in Rake RDoc http://redmine.ruby-lang.org/issues/show/860 e$B5/I\<\<Te(B: okkez \_ e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: lib e$B\>/$7$\*$+$7$$$H$3$m$r8+$D$1$?$N$G%Q%C%A$r=q$…

---

## [Libxml-ruby is too crazy](https://www.ruby-forum.com/t/libxml-ruby-is-too-crazy/155159)

<div class="topic-metadata">

**Author:** [@hoshbad](https://www.ruby-forum.com/u/hoshbad)\
**Replies:** 6\
**Last updated:** [December 13, 2008, 8:41am UTC](https://www.ruby-forum.com/t/libxml-ruby-is-too-crazy/155159 "2008-12-13T08:41:34Z")

</div>

Okay, if any libxml-ruby developers read this list, I sincerely hope you will read this and hear my plea. Stop the madness! I just installed the latest version of libxml-ruby (0.9.6) and suddenly my old scripts are br…

---

## [\[BUG:trunk\] r20625 default\_internal is nil](https://www.ruby-forum.com/t/bug-trunk-r20625-default-internal-is-nil/155504)

<div class="topic-metadata">

**Author:** [@Takao\_K](https://www.ruby-forum.com/u/Takao_K)\
**Replies:** 2\
**Last updated:** [December 13, 2008, 8:07am UTC](https://www.ruby-forum.com/t/bug-trunk-r20625-default-internal-is-nil/155504 "2008-12-13T08:07:23Z")

</div>

e$B9bHx9(\<#$G$9!#e(B trunk e$B$Ne(B r20625 e$B0J9\_!"%3%^%s%I%i%$%s%\*%W%7%g%s$GEO$7$?e(B default\_internal e$B$,e(B nil e$B$K$J$C$F$$$^$9!#e(B $ svn up -r20624 && make && ./ruby -Eutf-8:utf-8 -e ‘p(\[Encoding.default\_ex…

---

## [Include\_class fails in Jruby 1.1.6 RC1](https://www.ruby-forum.com/t/include-class-fails-in-jruby-1-1-6-rc1/155533)

<div class="topic-metadata">

**Author:** [@drrs](https://www.ruby-forum.com/u/drrs)\
**Replies:** 1\
**Last updated:** [December 13, 2008, 7:03am UTC](https://www.ruby-forum.com/t/include-class-fails-in-jruby-1-1-6-rc1/155533 "2008-12-13T07:03:05Z")

</div>

I see this issue in Jruby 1.1.6 RC1…can anyone please clarify me why something like this: my\_directory=‘\\build\\WEB-INF\\classes’ Dir.chdir(my\_directory) system(‘C:\\jdk1.5.0\\bin\\jar cf myFile.jar .’) require ‘myFile.j…

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

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