# Ruby

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

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

---

## [Daemons](https://www.ruby-forum.com/t/daemons/151362)

<div class="topic-metadata">

**Author:** [@Phy\_P](https://www.ruby-forum.com/u/Phy_P)\
**Replies:** 8\
**Last updated:** [October 20, 2008, 10:32pm UTC](https://www.ruby-forum.com/t/daemons/151362 "2008-10-20T22:32:06Z")

</div>

Hello! I am having issues with daemons (to a process in detached from terminal) as in: /usr/local/jruby-1.1.4/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/daemonize.rb:122:in \`each\_object’: ObjectSpace is disabl…

---

## [Best Command Prompt](https://www.ruby-forum.com/t/best-command-prompt/151339)

<div class="topic-metadata">

**Author:** [@gewton](https://www.ruby-forum.com/u/gewton)\
**Replies:** 7\
**Last updated:** [October 20, 2008, 9:10pm UTC](https://www.ruby-forum.com/t/best-command-prompt/151339 "2008-10-20T21:10:11Z")

</div>

There’s a good command interpreter for ruby instead of irb? Like ipython for python?

---

## [LiveConsole 0.2.0, a window into your running program](https://www.ruby-forum.com/t/liveconsole-0-2-0-a-window-into-your-running-program/151380)

<div class="topic-metadata">

**Author:** [@Pete\_E](https://www.ruby-forum.com/u/Pete_E)\
**Replies:** 0\
**Last updated:** [October 20, 2008, 8:55pm UTC](https://www.ruby-forum.com/t/liveconsole-0-2-0-a-window-into-your-running-program/151380 "2008-10-20T20:55:30Z")

</div>

Hey, uh, here’s a long-overdue new release of LiveConsole. If you’ve never heard of it, it is a library for providing IRB over a TCP or Unix socket so that you can interact with a running application. It’s useful fo…

---

## [Problem with last\_insert\_row\_id in sqlite3](https://www.ruby-forum.com/t/problem-with-last-insert-row-id-in-sqlite3/151372)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 1\
**Last updated:** [October 20, 2008, 8:21pm UTC](https://www.ruby-forum.com/t/problem-with-last-insert-row-id-in-sqlite3/151372 "2008-10-20T20:21:56Z")

</div>

When I try to use the last\_insert\_row\_id function in sqlite3, I’m getting a sqlite syntax error. Since all I’m doing is: db = SQLite3::Database.new(…) id = db.last\_insert\_rowid I can’t see what could possibly be wron…

---

## [Gem (update ?) problem](https://www.ruby-forum.com/t/gem-update-problem/145537)

<div class="topic-metadata">

**Author:** [@peterkemp](https://www.ruby-forum.com/u/peterkemp)\
**Replies:** 20\
**Last updated:** [October 20, 2008, 7:47pm UTC](https://www.ruby-forum.com/t/gem-update-problem/145537 "2008-10-20T19:47:43Z")

</div>

Hello, Does anybody know how to deal with this gem problem ? Thanks a lot in advance for your help. After trying to run gem update the message is: gem update Updating installed gems Updating hpricot Building nativ…

---

## [Code Review: RubyProfile1](https://www.ruby-forum.com/t/code-review-rubyprofile1/151211)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 1\
**Last updated:** [October 20, 2008, 6:31pm UTC](https://www.ruby-forum.com/t/code-review-rubyprofile1/151211 "2008-10-20T18:31:14Z")

</div>

tfpt review “/shelveset:RubyProfile1;REDMOND\\curth” Comment : Changes for improved profiling support Created Ruby-accessible wrapper in new “Clr” module Created standard function for normalizing a CLR long and refac…

---

## [Daemons](https://www.ruby-forum.com/t/daemons/151360)

<div class="topic-metadata">

**Author:** [@Phy\_P](https://www.ruby-forum.com/u/Phy_P)\
**Replies:** 0\
**Last updated:** [October 20, 2008, 5:55pm UTC](https://www.ruby-forum.com/t/daemons/151360 "2008-10-20T17:55:56Z")

</div>

Hello, I know people have probably had success with daemons, however, I am running into issues. A simple script to daemonize another script fails w/ ./daemonize.rb run /usr/local/jruby-1.1.4/lib/ruby/gems/1.8/gems…

---

## [$BFC2=L?Na$N:FDj5A(BAPI](https://www.ruby-forum.com/t/bfc2-l-na-n-fdj5a-bapi/151358)

<div class="topic-metadata">

**Author:** [@sugie](https://www.ruby-forum.com/u/sugie)\
**Replies:** 0\
**Last updated:** [October 20, 2008, 5:54pm UTC](https://www.ruby-forum.com/t/bfc2-l-na-n-fdj5a-bapi/151358 "2008-10-20T17:54:11Z")

</div>

e$B:XF#$H?=$7$^$9!#e(B e$B$U$H$7$?;W$$$D$-$G$9$7!"\<BMQ@-$,$I$l$\[$I$+J,$+$j$^$;$s$,!D!D!#e(B trunke$B$G$Oe(Binsns.defe$B$Ne(Bopt\_e$B$N$$$/$D$+$GFC2=L?Na$,Dj5A$5$l$F$$$F!“NI$/8F$P$l$ke(B e$B%a%=%C%I$O$h$j9bB.$K8F$S=P$5$…

---

## [Newbie adding to array question](https://www.ruby-forum.com/t/newbie-adding-to-array-question/151087)

<div class="topic-metadata">

**Author:** [@cogrady2k](https://www.ruby-forum.com/u/cogrady2k)\
**Replies:** 10\
**Last updated:** [October 20, 2008, 5:52pm UTC](https://www.ruby-forum.com/t/newbie-adding-to-array-question/151087 "2008-10-20T17:52:43Z")

</div>

hi, i have the following code in my project def next\_seq x = @current + @previous @previous = @current @current = x end def display\_all count = 2 while count \< @iteration next\_seq count = count + 1 put…

---

## [Way to split a string based on fixed length?](https://www.ruby-forum.com/t/way-to-split-a-string-based-on-fixed-length/151349)

<div class="topic-metadata">

**Author:** [@wemagor](https://www.ruby-forum.com/u/wemagor)\
**Replies:** 8\
**Last updated:** [October 20, 2008, 5:21pm UTC](https://www.ruby-forum.com/t/way-to-split-a-string-based-on-fixed-length/151349 "2008-10-20T17:21:14Z")

</div>

This is probably a newb question but I can’t seem to figure it out. I have a string I’m trying to parse, that is done via a fixed length format - it needs to be split on every 8th character in order for me to get a p…

---

## [\[Bug #667\] yaml $B$,(B Complex$B!"(BRational $B$r$&$^$/$"$D$+$($F$$$J$$(B](https://www.ruby-forum.com/t/bug-667-yaml-b-b-complex-b-brational-b-r-d-f-j-b/151347)

<div class="topic-metadata">

**Author:** [@tadayoshi\_funaba](https://www.ruby-forum.com/u/tadayoshi_funaba)\
**Replies:** 0\
**Last updated:** [October 20, 2008, 4:31pm UTC](https://www.ruby-forum.com/t/bug-667-yaml-b-b-complex-b-brational-b-r-d-f-j-b/151347 "2008-10-20T16:31:56Z")

</div>

Bug #667: yaml e$B$,e(B Complexe$B!“e(BRational e$B$r$&$^$/$”$D$+$($F$$$J$$e(B http://redmine.ruby-lang.org/issues/show/667 e$B5/I\<\<Te(B: tadayoshi funaba e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BAH$9~$$KBP1~…

---

## [Emacs / rcodetools](https://www.ruby-forum.com/t/emacs-rcodetools/151292)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 3\
**Last updated:** [October 20, 2008, 2:49pm UTC](https://www.ruby-forum.com/t/emacs-rcodetools/151292 "2008-10-20T14:49:48Z")

</div>

Hi all, I’m trying to get emacs running nicely all weekend. But I can’t get certain things to work. I’ve installed rcodetools and tried to use it for tab-completion. Using m-X rct-complete-symbol works just fine. But…

---

## [Kernel.\` doesn't work in drb?](https://www.ruby-forum.com/t/kernel-doesnt-work-in-drb/151334)

<div class="topic-metadata">

**Author:** [@ittayd](https://www.ruby-forum.com/u/ittayd)\
**Replies:** 0\
**Last updated:** [October 20, 2008, 2:09pm UTC](https://www.ruby-forum.com/t/kernel-doesnt-work-in-drb/151334 "2008-10-20T14:09:28Z")

</div>

Hi, A script has the line puts %x(echo hi) When run normally, hi is echoed. But when the line is executed as part of a drb server, an empty line is printed. I’m using Ubuntu 8.04, and ruby 1.8.7 (2008-09-27 revision…

---

## [Problem stored values in Oracle](https://www.ruby-forum.com/t/problem-stored-values-in-oracle/150999)

<div class="topic-metadata">

**Author:** [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Replies:** 5\
**Last updated:** [October 20, 2008, 12:57pm UTC](https://www.ruby-forum.com/t/problem-stored-values-in-oracle/150999 "2008-10-20T12:57:23Z")

</div>

If I enter in my website the value Ã©I9Ãq’ÃœnPtâ€¢ the last character is replaced on the database by Â¿ The problem is I have to test automatically that the content on the database is the same that the content it …

---

## [Question about sendmail by smtp](https://www.ruby-forum.com/t/question-about-sendmail-by-smtp/151328)

<div class="topic-metadata">

**Author:** [@sandy](https://www.ruby-forum.com/u/sandy)\
**Replies:** 0\
**Last updated:** [October 20, 2008, 12:40pm UTC](https://www.ruby-forum.com/t/question-about-sendmail-by-smtp/151328 "2008-10-20T12:40:10Z")

</div>

Hi all I try to send a email by smtp. format is : smtp = Net::SMTP.start ‘127.0.0.1’,‘account =removed\_email\_address@domain.invalid’, ‘password = xxxxx’, ‘authtype =:plain’ # i also test authtype=:login bu…

---

## [Installing gems in a batch file](https://www.ruby-forum.com/t/installing-gems-in-a-batch-file/151174)

<div class="topic-metadata">

**Author:** [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Replies:** 2\
**Last updated:** [October 20, 2008, 11:57am UTC](https://www.ruby-forum.com/t/installing-gems-in-a-batch-file/151174 "2008-10-20T11:57:07Z")

</div>

Hi, I’m trying to write a batch file to install all the external libraries of ruby in the computers of my company but after the first command gem install… the batch ends… echo \*\*\*\*\*\*\*\*\*\*\* FireWatir gem install FireW…

---

## [Require sqlite?](https://www.ruby-forum.com/t/require-sqlite/151312)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 3\
**Last updated:** [October 20, 2008, 11:08am UTC](https://www.ruby-forum.com/t/require-sqlite/151312 "2008-10-20T11:08:31Z")

</div>

Hi, I wonder why I cannot require sqlite in my ruby app. $ ruby app.rb app.rb:3:in \`require’: no such file to load – sqlite3 (LoadError) from app.rb:3 But it’s working in the console? that’s weird! require ‘sqlit…

---

## [Proc metaprogramming tricks?](https://www.ruby-forum.com/t/proc-metaprogramming-tricks/151282)

<div class="topic-metadata">

**Author:** [@asetzler](https://www.ruby-forum.com/u/asetzler)\
**Replies:** 7\
**Last updated:** [October 20, 2008, 10:34am UTC](https://www.ruby-forum.com/t/proc-metaprogramming-tricks/151282 "2008-10-20T10:34:56Z")

</div>

Hi, I’m building a DSL and trying some weird syntax structures. My DSL should look like this. class Root def dsl(&block) instance\_eval(&block) end end class C #… end #DSL dsl { met1 class C1 \< C #… end m…

---

## [IO.popen max length](https://www.ruby-forum.com/t/io-popen-max-length/151170)

<div class="topic-metadata">

**Author:** [@melmoth](https://www.ruby-forum.com/u/melmoth)\
**Replies:** 1\
**Last updated:** [October 20, 2008, 9:46am UTC](https://www.ruby-forum.com/t/io-popen-max-length/151170 "2008-10-20T09:46:30Z")

</div>

Hi, I’m using IO.popen for launching an executable, the line is quite long cause there are many parameters to set. Actually they are two executable connected with a pipe. I get the error “line too long” is there so…

---

## [Symbol confusions!](https://www.ruby-forum.com/t/symbol-confusions/151068)

<div class="topic-metadata">

**Author:** [@jicksta](https://www.ruby-forum.com/u/jicksta)\
**Replies:** 10\
**Last updated:** [October 20, 2008, 6:58am UTC](https://www.ruby-forum.com/t/symbol-confusions/151068 "2008-10-20T06:58:50Z")

</div>

Hi, I’m new to ruby and I’m going thru pretty good as I’ve done java but the only thing, at this point, thats really bothering me is the use of symbols like: %w{} %r{} %7d etc etc… So, is there anywhere I can find …

---

## [Question about sendmail by smtp](https://www.ruby-forum.com/t/question-about-sendmail-by-smtp/151304)

<div class="topic-metadata">

**Author:** [@Sandy\_Lu\_Tibet\_alwa](https://www.ruby-forum.com/u/Sandy_Lu_Tibet_alwa)\
**Replies:** 0\
**Last updated:** [October 20, 2008, 5:08am UTC](https://www.ruby-forum.com/t/question-about-sendmail-by-smtp/151304 "2008-10-20T05:08:57Z")

</div>

Hi all I try to send a email by smtp. format is : smtp = Net::SMTP.start ‘127.0.0.1’,‘account =removed\_email\_address@domain.invalid’, ‘password = xxxxx’, ‘authtype =:plain’ # i also test authtype=:login bu…

---

## [Newbie q: stripping duplicates](https://www.ruby-forum.com/t/newbie-q-stripping-duplicates/150688)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 9\
**Last updated:** [October 20, 2008, 1:09am UTC](https://www.ruby-forum.com/t/newbie-q-stripping-duplicates/150688 "2008-10-20T01:09:48Z")

</div>

This is certainly well known, but not to me. a = \[{“aa”=\>“bb”},{“aa”=\>“bb”}\] =\> \[{“aa”=\>“bb”}, {“aa”=\>“bb”}\] a.uniq =\> \[{“aa”=\>“bb”}, {“aa”=\>“bb”}\] Why? and, what should I use instead of .uniq to remove th…

---

## [Running Multiple Versions of Ruby on Debian?](https://www.ruby-forum.com/t/running-multiple-versions-of-ruby-on-debian/150636)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 5\
**Last updated:** [October 19, 2008, 10:28pm UTC](https://www.ruby-forum.com/t/running-multiple-versions-of-ruby-on-debian/150636 "2008-10-19T22:28:05Z")

</div>

Well so far things are going kind of good, I’ve built my own server and it’s sitting in colo running Debian Etch and Ruby 1.8.6 (built from source) Now me being me I wouldn’t mind running 1.8.7 alongside 1.8.6 for my …

---

## [How to manage passwords](https://www.ruby-forum.com/t/how-to-manage-passwords/149070)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 7\
**Last updated:** [October 19, 2008, 9:34pm UTC](https://www.ruby-forum.com/t/how-to-manage-passwords/149070 "2008-10-19T21:34:47Z")

</div>

many of my ruby apps have the password hard coded. i am looking for a way so that i can control the password not to be stored as text file. what are the ruby options that are available.

---

## [Using a result as a constant object?](https://www.ruby-forum.com/t/using-a-result-as-a-constant-object/151256)

<div class="topic-metadata">

**Author:** [@Phy\_P](https://www.ruby-forum.com/u/Phy_P)\
**Replies:** 9\
**Last updated:** [October 19, 2008, 8:32pm UTC](https://www.ruby-forum.com/t/using-a-result-as-a-constant-object/151256 "2008-10-19T20:32:04Z")

</div>

Hello, I am trying to understand how I can use a return from a method as a constant name for a class. What I am trying to do is take a return I find in a db table and use that name as a class name so that I can use …

---

## [How to go from a ruby script to a working website?](https://www.ruby-forum.com/t/how-to-go-from-a-ruby-script-to-a-working-website/151050)

<div class="topic-metadata">

**Author:** [@toltec](https://www.ruby-forum.com/u/toltec)\
**Replies:** 11\
**Last updated:** [October 19, 2008, 8:30pm UTC](https://www.ruby-forum.com/t/how-to-go-from-a-ruby-script-to-a-working-website/151050 "2008-10-19T20:30:53Z")

</div>

As you’ve probably guessed by the title, total newbie here. My main interest is developing web stuff, and for that I started learning programming through PHP. However, I discovered Ruby and immediately fell in love wi…

---

## [Daemonize jruby](https://www.ruby-forum.com/t/daemonize-jruby/151283)

<div class="topic-metadata">

**Author:** [@Phy\_P](https://www.ruby-forum.com/u/Phy_P)\
**Replies:** 0\
**Last updated:** [October 19, 2008, 8:17pm UTC](https://www.ruby-forum.com/t/daemonize-jruby/151283 "2008-10-19T20:17:21Z")

</div>

Folks, Anyone have suggestions on how to daemonize (e.g. fork and detach) jruby code? I have a ‘server/daemon’ that I need to ‘daemonize’. I am familiar with ruby daemonizing, but that appears to be a death wish for …

---

## [Using captcha](https://www.ruby-forum.com/t/using-captcha/151270)

<div class="topic-metadata">

**Author:** [@indu](https://www.ruby-forum.com/u/indu)\
**Replies:** 1\
**Last updated:** [October 19, 2008, 10:06am UTC](https://www.ruby-forum.com/t/using-captcha/151270 "2008-10-19T10:06:26Z")

</div>

Hello everyone, I’m trying to implement Captcha in my program.Anyone will please give me suggestion for using the best one,and the procedures for implementing it since I haven’t used it before for my program. for the …

---

## [Standard File Naming Conventions](https://www.ruby-forum.com/t/standard-file-naming-conventions/151267)

<div class="topic-metadata">

**Author:** [@pachl](https://www.ruby-forum.com/u/pachl)\
**Replies:** 1\
**Last updated:** [October 19, 2008, 9:31am UTC](https://www.ruby-forum.com/t/standard-file-naming-conventions/151267 "2008-10-19T09:31:56Z")

</div>

For a file containing the given class, SomeCoolClass, what would be the proper filename? somecoolclass.rb some\_cool\_class.rb some-cool-class.rb SomeCoolClass.rb or some other variation? I noticed in the Ruby stdlib,…

---

## [Shoes alert(): "Shoes says:"](https://www.ruby-forum.com/t/shoes-alert-shoes-says/151034)

<div class="topic-metadata">

**Author:** [@Jorrel](https://www.ruby-forum.com/u/Jorrel)\
**Replies:** 2\
**Last updated:** [October 19, 2008, 3:33am UTC](https://www.ruby-forum.com/t/shoes-alert-shoes-says/151034 "2008-10-19T03:33:28Z")

</div>

When you called ‘alert’ in shoes, it says in the popup “Shoes says:”. This seems to be hardcoded in the source as: const char \*dialog\_title\_says = "Shoes says:"; Anyone know the quickest/simplest way to change this?

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

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