# Ruby

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

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

---

## [Is there a Ruby/Tk-specific forum/site/group?](https://www.ruby-forum.com/t/is-there-a-ruby-tk-specific-forum-site-group/160723)

<div class="topic-metadata">

**Author:** [@cruby](https://www.ruby-forum.com/u/cruby)\
**Replies:** 4\
**Last updated:** [February 19, 2009, 7:19pm UTC](https://www.ruby-forum.com/t/is-there-a-ruby-tk-specific-forum-site-group/160723 "2009-02-19T19:19:13Z")

</div>

Hello all, I’m trying to do non-simple things with Ruby and Tk (on Windows), so is there a better place to ask them? Currently I’m using O’Reilly’s “Mastering Perl/Tk” and only a couple websites, but their informatio…

---

## [Community chapter](https://www.ruby-forum.com/t/community-chapter/160624)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 6\
**Last updated:** [February 19, 2009, 6:31pm UTC](https://www.ruby-forum.com/t/community-chapter/160624 "2009-02-19T18:31:45Z")

</div>

Hi I would like to put a “real-world” IronRuby chapter in my book that is created by people from the community. People that are interested in writing a short piece (2-5 pages in word) on how IronRuby made their live …

---

## [Starting a process from inside Ruby](https://www.ruby-forum.com/t/starting-a-process-from-inside-ruby/160710)

<div class="topic-metadata">

**Author:** [@petrjanda](https://www.ruby-forum.com/u/petrjanda)\
**Replies:** 6\
**Last updated:** [February 19, 2009, 6:27pm UTC](https://www.ruby-forum.com/t/starting-a-process-from-inside-ruby/160710 "2009-02-19T18:27:37Z")

</div>

Hi all, Im facing a small dilema trying to start a process called “ezstream” from inside a ruby on rails application and retreive its PID. Ezstream is used for streaming audio into an icecast server so normally this …

---

## [Script/console : modify an attribute](https://www.ruby-forum.com/t/script-console-modify-an-attribute/160716)

<div class="topic-metadata">

**Author:** [@loader](https://www.ruby-forum.com/u/loader)\
**Replies:** 2\
**Last updated:** [February 19, 2009, 6:23pm UTC](https://www.ruby-forum.com/t/script-console-modify-an-attribute/160716 "2009-02-19T18:23:44Z")

</div>

Hello everyone! I would like to know how to modify a variable in the console? I did this : e = Entry.find(:first) e.dev.community.name = “Ruby Geeks” e.save But when I look into my database, the variable didn’t cha…

---

## [Hosting: howto get the nice ruby backtrace on exception thrown from ruby?](https://www.ruby-forum.com/t/hosting-howto-get-the-nice-ruby-backtrace-on-exception-thrown-from-ruby/160585)

<div class="topic-metadata">

**Author:** [@Meinrad\_R](https://www.ruby-forum.com/u/Meinrad_R)\
**Replies:** 4\
**Last updated:** [February 19, 2009, 6:11pm UTC](https://www.ruby-forum.com/t/hosting-howto-get-the-nice-ruby-backtrace-on-exception-thrown-from-ruby/160585 "2009-02-19T18:11:08Z")

</div>

hello, I am now currently using this ugly hack to get a reasonable (let’s say user friendly) exception backtrace from an error in executed code: public object Execute(string code, ScriptScope scope) { …

---

## [Jruby sqlite3 INSERT problem](https://www.ruby-forum.com/t/jruby-sqlite3-insert-problem/160775)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 0\
**Last updated:** [February 19, 2009, 4:40pm UTC](https://www.ruby-forum.com/t/jruby-sqlite3-insert-problem/160775 "2009-02-19T16:40:13Z")

</div>

The following statement: @db.execute("INSERT INTO log\_files VALUES (NULL, ?)", @filename) is not resulting in a persistent insert into the database (although it is apparently resulting in a temporary insert). The pr…

---

## [Rubyscript2exe with tk and extlib help](https://www.ruby-forum.com/t/rubyscript2exe-with-tk-and-extlib-help/160774)

<div class="topic-metadata">

**Author:** [@bean](https://www.ruby-forum.com/u/bean)\
**Replies:** 0\
**Last updated:** [February 19, 2009, 4:17pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-with-tk-and-extlib-help/160774 "2009-02-19T16:17:48Z")

</div>

I’m having issues running an exe created with rubyscript2exe. ruby rubyscript2exe-0.5.3.rb fwcatalog.rb --rubyscript2exe-tk It will make the .exe fine, but when running it will bomb out because I utilize tkextlib/tile…

---

## [PGconn](https://www.ruby-forum.com/t/pgconn/160752)

<div class="topic-metadata">

**Author:** [@ashikalim](https://www.ruby-forum.com/u/ashikalim)\
**Replies:** 3\
**Last updated:** [February 19, 2009, 1:21pm UTC](https://www.ruby-forum.com/t/pgconn/160752 "2009-02-19T13:21:12Z")

</div>

Can anyone tell me what are the 3rd and 4th argument of PGconn#connect method in ruby ? .

---

## [WSDL and ruby](https://www.ruby-forum.com/t/wsdl-and-ruby/160759)

<div class="topic-metadata">

**Author:** [@gadys](https://www.ruby-forum.com/u/gadys)\
**Replies:** 0\
**Last updated:** [February 19, 2009, 12:51pm UTC](https://www.ruby-forum.com/t/wsdl-and-ruby/160759 "2009-02-19T12:51:08Z")

</div>

Hi I starting to work with ruby and soap and had some questions : how do I generate a WSDL file for the service I created ? will it be compatible with an .NET client ? Thanks, Gady begin class MyServer \< SOAP::R…

---

## [Email in ruby](https://www.ruby-forum.com/t/email-in-ruby/160631)

<div class="topic-metadata">

**Author:** [@vetrivel](https://www.ruby-forum.com/u/vetrivel)\
**Replies:** 3\
**Last updated:** [February 19, 2009, 11:57am UTC](https://www.ruby-forum.com/t/email-in-ruby/160631 "2009-02-19T11:57:33Z")

</div>

Example program to send email with text file attachment in ruby

---

## [Mkmf.rb $B$N(B C++ $BBP1~(B](https://www.ruby-forum.com/t/mkmf-rb-b-n-b-c-bbp1-b/160755)

<div class="topic-metadata">

**Author:** [@KISHIMOTOS\_Makoto](https://www.ruby-forum.com/u/KISHIMOTOS_Makoto)\
**Replies:** 0\
**Last updated:** [February 19, 2009, 10:56am UTC](https://www.ruby-forum.com/t/mkmf-rb-b-n-b-c-bbp1-b/160755 "2009-02-19T10:56:21Z")

</div>

e$B$-$7$b$H$G$9e(B C++ e$B$N%X%C%@$@$H!“8=:\_$Ne(B (have|find)\_header e$B$G$O$&$^$/H=Dj$G$-$J$$e(B e$B$3$H$,$”$k$N$G!Je(B cc -E e$B$@$H$?$H$($Pe(B #include e$B$H$+$G$&$^$/$J$$!Ke(B (have|find)cxx\_header e$B$H$$$&%3%^…

---

## [Simple question re: ruby warning message](https://www.ruby-forum.com/t/simple-question-re-ruby-warning-message/160748)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 6\
**Last updated:** [February 19, 2009, 10:20am UTC](https://www.ruby-forum.com/t/simple-question-re-ruby-warning-message/160748 "2009-02-19T10:20:28Z")

</div>

I just set up my first ternary operator expression, and got a warning from Ruby, as a reward! I don’t see what the problem might be: The expression: db\_type= ‘n’ ? db = @nodes\_h : db = @links\_h The warning: …/lib/se…

---

## [Dummy question about method in class](https://www.ruby-forum.com/t/dummy-question-about-method-in-class/160664)

<div class="topic-metadata">

**Author:** [@on9west](https://www.ruby-forum.com/u/on9west)\
**Replies:** 3\
**Last updated:** [February 19, 2009, 10:13am UTC](https://www.ruby-forum.com/t/dummy-question-about-method-in-class/160664 "2009-02-19T10:13:42Z")

</div>

Dear all I have a dummy question. \[1,2,3,4,5\].inject { |sum,n| sum+n } The inject method in this case is to calculate the sum of array. I searched the RDoc. Why the inject method is belongs to Enumerable Class, but …

---

## [Overriding methods of abstract Java classes in jRuby](https://www.ruby-forum.com/t/overriding-methods-of-abstract-java-classes-in-jruby/160512)

<div class="topic-metadata">

**Author:** [@Manfred\_U](https://www.ruby-forum.com/u/Manfred_U)\
**Replies:** 2\
**Last updated:** [February 19, 2009, 9:07am UTC](https://www.ruby-forum.com/t/overriding-methods-of-abstract-java-classes-in-jruby/160512 "2009-02-19T09:07:18Z")

</div>

Hi, extending / implementing abstract Java classes in JRuby does work fine for me. I see only a minor blemish: I can’t use Ruby naming conventions to implement the abstract methods. E.g. class ProductTreeTableNode…

---

## [Newbie - several array questions](https://www.ruby-forum.com/t/newbie-several-array-questions/160630)

<div class="topic-metadata">

**Author:** [@latte](https://www.ruby-forum.com/u/latte)\
**Replies:** 8\
**Last updated:** [February 19, 2009, 7:21am UTC](https://www.ruby-forum.com/t/newbie-several-array-questions/160630 "2009-02-19T07:21:13Z")

</div>

Hi all - I’m a first-timer and very much love Ruby! I have several questions involving arrays. First, I’ll create a couple of arrays to use in my examples - arr1 = \[1, 2, 3, 4, 5\] arr2 = \[“foo”, “bar”, “baz”, “abc”, …

---

## [Moving Mechanize to Nokogiri](https://www.ruby-forum.com/t/moving-mechanize-to-nokogiri/160704)

<div class="topic-metadata">

**Author:** [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Replies:** 3\
**Last updated:** [February 19, 2009, 6:11am UTC](https://www.ruby-forum.com/t/moving-mechanize-to-nokogiri/160704 "2009-02-19T06:11:59Z")

</div>

Hey guys, I’m on the second iteration of an app I’m writing to scrape some data from iStock and right now, I’m trying to force Mechanize to use Nokogiri. I’ve gotten away with not having to for a while, but as I keep …

---

## [\[Bug #1175\] File.expand\_path("~user") dose not work](https://www.ruby-forum.com/t/bug-1175-file-expand-path-user-dose-not-work/160719)

<div class="topic-metadata">

**Author:** [@Tomoyuki\_C](https://www.ruby-forum.com/u/Tomoyuki_C)\
**Replies:** 1\
**Last updated:** [February 19, 2009, 5:57am UTC](https://www.ruby-forum.com/t/bug-1175-file-expand-path-user-dose-not-work/160719 "2009-02-19T05:57:19Z")

</div>

Bug #1175: File.expand\_path(“~user”) dose not work http://redmine.ruby-lang.org/issues/show/1175 e$B5/I\<\<Te(B: Tomoyuki C. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: core, Target version: 1.9.2 rub…

---

## [Ruby Email handling / TMail / ActionMailer](https://www.ruby-forum.com/t/ruby-email-handling-tmail-actionmailer/51471)

<div class="topic-metadata">

**Author:** [@chrisjroos](https://www.ruby-forum.com/u/chrisjroos)\
**Replies:** 1\
**Last updated:** [February 19, 2009, 5:48am UTC](https://www.ruby-forum.com/t/ruby-email-handling-tmail-actionmailer/51471 "2009-02-19T05:48:56Z")

</div>

Hi, I’ve used TMail in the past, mainly in conjunction with ActionMailer. I now need email parsing outside of rails and don’t really need ActionMailer. I know there have been changes to the TMail source that is incl…

---

## [Error: Couldn't handle error: response committed](https://www.ruby-forum.com/t/error-couldnt-handle-error-response-committed/160550)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 10\
**Last updated:** [February 19, 2009, 5:28am UTC](https://www.ruby-forum.com/t/error-couldnt-handle-error-response-committed/160550 "2009-02-19T05:28:03Z")

</div>

Starting to see a ton of these in my tomcat logs. Not sure I understand the origin of this error, but here is the backtrace. http://pastie.org/391815 Charles, is this related to the other propogated caching issue ? A…

---

## [Indentation check and coverage for toplevel do not work](https://www.ruby-forum.com/t/indentation-check-and-coverage-for-toplevel-do-not-work/160721)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 0\
**Last updated:** [February 19, 2009, 4:45am UTC](https://www.ruby-forum.com/t/indentation-check-and-coverage-for-toplevel-do-not-work/160721 "2009-02-19T04:45:22Z")

</div>

e$B1sF#$G$9!#e(B e$B%H%C%W%l%Y%k$N%U%!%$%k$KBP$7$F%$%s%G%s%HBP1~%A%’%C%/$He(B coverage e$B$,e(B e$BF0$-$^$;$s!#e(B $ cat test.rb begin end $ ./ruby -vw test.rb ruby 1.9.2dev (2009-02-19 trunk 22427) \[i686-linux\] …

---

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

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 2\
**Last updated:** [February 19, 2009, 3:45am UTC](https://www.ruby-forum.com/t/code-review-esupport/160712 "2009-02-19T03:45:38Z")

</div>

DLR: FYI on formatting change. No response needed. tfpt review “/shelveset:esupport;REDMOND\\jdeville” Comment : Adds -e support to IronRuby using CommonConsoleOptions.Command. Also fixes a formatting error in Consol…

---

## [Attributes](https://www.ruby-forum.com/t/attributes/160707)

<div class="topic-metadata">

**Author:** [@Orion\_E](https://www.ruby-forum.com/u/Orion_E)\
**Replies:** 5\
**Last updated:** [February 19, 2009, 3:32am UTC](https://www.ruby-forum.com/t/attributes/160707 "2009-02-19T03:32:41Z")

</div>

I’d like to mock up a WCF service using IronRuby. This presents some stumbling blocks however, in that WCF ServiceContracts are defined by creating an Interface and then applying attributes to it. Interface ~= Module…

---

## [Roxml in non-rails?](https://www.ruby-forum.com/t/roxml-in-non-rails/160112)

<div class="topic-metadata">

**Author:** [@pitosalas](https://www.ruby-forum.com/u/pitosalas)\
**Replies:** 1\
**Last updated:** [February 19, 2009, 3:29am UTC](https://www.ruby-forum.com/t/roxml-in-non-rails/160112 "2009-02-19T03:29:09Z")

</div>

I have to generate some xml and have been doing a bit of a survey of available libraries. Roxml seems good to me. But I can’t get it to work. Does it depend in some subtle way on Rails? For example, this simple code …

---

## [Timezone?](https://www.ruby-forum.com/t/timezone/160697)

<div class="topic-metadata">

**Author:** [@loader](https://www.ruby-forum.com/u/loader)\
**Replies:** 4\
**Last updated:** [February 19, 2009, 12:53am UTC](https://www.ruby-forum.com/t/timezone/160697 "2009-02-19T00:53:30Z")

</div>

Hello everyone! I have a question :slight\_smile: When I run this command : puts Time.now I got =\> 2009-02-18T14:31:17-08:00 But if then I do this : require ‘date’; expiration\_date = DateTime.new(2008, 02, 18, 12, 1…

---

## [Added some mug shots to http://www.ironruby.net/About/People](https://www.ruby-forum.com/t/added-some-mug-shots-to-http-www-ironruby-net-about-people/160698)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 0\
**Last updated:** [February 18, 2009, 11:42pm UTC](https://www.ruby-forum.com/t/added-some-mug-shots-to-http-www-ironruby-net-about-people/160698 "2009-02-18T23:42:34Z")

</div>

I added a few photos to http://www.ironruby.net/About/People (using the en.gravatar.com links from the github profile). There seems to be a bug to add an image. So here is the process if others want to add their own. …

---

## [Clilking on a link should replace that link with a form](https://www.ruby-forum.com/t/clilking-on-a-link-should-replace-that-link-with-a-form/160693)

<div class="topic-metadata">

**Author:** [@andrew](https://www.ruby-forum.com/u/andrew)\
**Replies:** 2\
**Last updated:** [February 18, 2009, 11:36pm UTC](https://www.ruby-forum.com/t/clilking-on-a-link-should-replace-that-link-with-a-form/160693 "2009-02-18T23:36:06Z")

</div>

Hi everyone! I’m new to Ruby and JS, and there is a problem I’m trying to solve: I need a link that, when clicked, transforms into a form for inputting data. I have next code: (show.html.erb) \<%= link\_to\_remote…

---

## [Word with an 'S' if quantity \> 1](https://www.ruby-forum.com/t/word-with-an-s-if-quantity-1/160687)

<div class="topic-metadata">

**Author:** [@loader](https://www.ruby-forum.com/u/loader)\
**Replies:** 3\
**Last updated:** [February 18, 2009, 10:42pm UTC](https://www.ruby-forum.com/t/word-with-an-s-if-quantity-1/160687 "2009-02-18T22:42:06Z")

</div>

Hello everyone! Is there a method to add an ‘S’ to a word if there are more than 1 ? For example : 1 day / 2 days … Or do I need to create an if statement? Thank you!

---

## [How to install/configure ruby as a non-root user](https://www.ruby-forum.com/t/how-to-install-configure-ruby-as-a-non-root-user/160614)

<div class="topic-metadata">

**Author:** [@pbhandar](https://www.ruby-forum.com/u/pbhandar)\
**Replies:** 2\
**Last updated:** [February 18, 2009, 9:18pm UTC](https://www.ruby-forum.com/t/how-to-install-configure-ruby-as-a-non-root-user/160614 "2009-02-18T21:18:03Z")

</div>

Hi, I am trying to install ruby as a non-root user. I found that with -prefix this works fine. I am thinking this has something to do with library path settings. However, I am not sure how to go about figuring this …

---

## [Bang is not work!](https://www.ruby-forum.com/t/bang-is-not-work/160597)

<div class="topic-metadata">

**Author:** [@Kyung\_won\_C](https://www.ruby-forum.com/u/Kyung_won_C)\
**Replies:** 8\
**Last updated:** [February 18, 2009, 7:55pm UTC](https://www.ruby-forum.com/t/bang-is-not-work/160597 "2009-02-18T19:55:45Z")

</div>

OS is CentOs 4.7 $ ruby -v ruby 1.8.7 (2008-08-11 patchlevel 72) \[i686-linux\] $ cat ruby\_test #!/usr/local/bin/ruby puts ‘hello’ $ ls -l -rwxr-xr-x 1 gmc gmc 94 2ì›” 17 19:11 ruby\_test $ ruby\_test -bash: …

---

## [Ruby on hp-ux 11.00](https://www.ruby-forum.com/t/ruby-on-hp-ux-11-00/160673)

<div class="topic-metadata">

**Author:** [@ittayd](https://www.ruby-forum.com/u/ittayd)\
**Replies:** 0\
**Last updated:** [February 18, 2009, 6:34pm UTC](https://www.ruby-forum.com/t/ruby-on-hp-ux-11-00/160673 "2009-02-18T18:34:54Z")

</div>

Hi, Has anyone have success building ruby 1.8.7 on hp-ux 11.00? It seems to build but then miniruby crashes with segfault. If anyone can point me to prebuilt packages, I’d be glad. Thanks, Ittay

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

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