# Ruby

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

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

---

## [Signal handling strangeness (Linux)](https://www.ruby-forum.com/t/signal-handling-strangeness-linux/116306)

<div class="topic-metadata">

**Author:** [@hanholl](https://www.ruby-forum.com/u/hanholl)\
**Replies:** 10\
**Last updated:** [October 10, 2007, 3:13pm UTC](https://www.ruby-forum.com/t/signal-handling-strangeness-linux/116306 "2007-10-10T15:13:40Z")

</div>

Hi, The following program: #!/usr/bin/ruby -w IO.popen(“tail -F --lines=0 --pid=#{Process.pid} /var/log/messages”) do |h| while line = h.gets puts line end end end-of-program can be terminated with ‘kill -TERM p…

---

## [Problem writibg to temporary files](https://www.ruby-forum.com/t/problem-writibg-to-temporary-files/116848)

<div class="topic-metadata">

**Author:** [@learningruby](https://www.ruby-forum.com/u/learningruby)\
**Replies:** 1\
**Last updated:** [October 10, 2007, 2:25pm UTC](https://www.ruby-forum.com/t/problem-writibg-to-temporary-files/116848 "2007-10-10T14:25:59Z")

</div>

Hi folks, I have been facing problem while writing data to a temporary file. I have the following code on my ubuntu machine: 1. encrypted\_content = @crypto\_key.encrypt(attachment.read) 2. tmpFile = Tempfile.…

---

## [MS SQL Server connection via Ruby](https://www.ruby-forum.com/t/ms-sql-server-connection-via-ruby/116852)

<div class="topic-metadata">

**Author:** [@drlelon](https://www.ruby-forum.com/u/drlelon)\
**Replies:** 1\
**Last updated:** [October 10, 2007, 1:01pm UTC](https://www.ruby-forum.com/t/ms-sql-server-connection-via-ruby/116852 "2007-10-10T13:01:21Z")

</div>

I am running Ruby on Fedora Core 6 and I am running into problems I do not see on my windows box. Any help would be awesome - its been 2 days I tried everything and even installed unixODBC and that worked but install…

---

## [How to use hessian with custome java type?](https://www.ruby-forum.com/t/how-to-use-hessian-with-custome-java-type/116855)

<div class="topic-metadata">

**Author:** [@liwenqiu](https://www.ruby-forum.com/u/liwenqiu)\
**Replies:** 0\
**Last updated:** [October 10, 2007, 12:34pm UTC](https://www.ruby-forum.com/t/how-to-use-hessian-with-custome-java-type/116855 "2007-10-10T12:34:20Z")

</div>

hi all: i have implement a service at ‘http://localhost:8080/hessian/basic’ by hessian, a method will return custom java type, it include some attributes, access attributes by getter and setter method. and how to u…

---

## [Binaries for Libxml-ruby on windows available](https://www.ruby-forum.com/t/binaries-for-libxml-ruby-on-windows-available/116853)

<div class="topic-metadata">

**Author:** [@pieter](https://www.ruby-forum.com/u/pieter)\
**Replies:** 0\
**Last updated:** [October 10, 2007, 12:19pm UTC](https://www.ruby-forum.com/t/binaries-for-libxml-ruby-on-windows-available/116853 "2007-10-10T12:19:02Z")

</div>

I’ve seen several posts on here about libxml-ruby and windows - generally about the bindings not working in windows. I did a compile of these bindings with mingw. You can download an easy to install package for ruby 1…

---

## [Syntax: iter?](https://www.ruby-forum.com/t/syntax-iter/116799)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 4\
**Last updated:** [October 10, 2007, 9:29am UTC](https://www.ruby-forum.com/t/syntax-iter/116799 "2007-10-10T09:29:17Z")

</div>

The Rubinius specs refer to an iter statement. I have vague memories of one existing but couldn’t find any doc of it in the Pickaxe, and I don’t have my other books around. Am I dreaming? iter NameError: undefined …

---

## ["blade" down!](https://www.ruby-forum.com/t/blade-down/116308)

<div class="topic-metadata">

**Author:** [@Shin-ichiro\_HARA](https://www.ruby-forum.com/u/Shin-ichiro_HARA)\
**Replies:** 2\
**Last updated:** [October 10, 2007, 7:12am UTC](https://www.ruby-forum.com/t/blade-down/116308 "2007-10-10T07:12:06Z")

</div>

Hi, The ruby-talk mailing list archive server “blade” is down. And we can not use the sites: http://www.ruby-talk.org/ http://blade.nagaokaut.ac.jp/ruby/ruby-talk/index.shtml I’m sorry it takes few days for recover…

---

## [Hiding source code](https://www.ruby-forum.com/t/hiding-source-code/116541)

<div class="topic-metadata">

**Author:** [@SSMKSM](https://www.ruby-forum.com/u/SSMKSM)\
**Replies:** 16\
**Last updated:** [October 10, 2007, 6:41am UTC](https://www.ruby-forum.com/t/hiding-source-code/116541 "2007-10-10T06:41:36Z")

</div>

Hello. I have written an app in Ruby for my company and I was the only one that had acess to read/execute it. I’ve hired someone to help me with daily work and that includes having him execute a set of those Ruby scr…

---

## [Debugging rspec in Netbeans](https://www.ruby-forum.com/t/debugging-rspec-in-netbeans/116830)

<div class="topic-metadata">

**Author:** [@rich](https://www.ruby-forum.com/u/rich)\
**Replies:** 0\
**Last updated:** [October 10, 2007, 3:43am UTC](https://www.ruby-forum.com/t/debugging-rspec-in-netbeans/116830 "2007-10-10T03:43:29Z")

</div>

Hi. I can’t seem to get debugging of rspec specs working in Netbeans. AFAIK, I’m supposed to be able to just do Command+Shift+F5 with the spec open in the editor but i get this error: /Users/admin/src/expresso/vendor/…

---

## [DBI stateHandler bind\_param errors](https://www.ruby-forum.com/t/dbi-statehandler-bind-param-errors/116829)

<div class="topic-metadata">

**Author:** [@drlelon](https://www.ruby-forum.com/u/drlelon)\
**Replies:** 0\
**Last updated:** [October 10, 2007, 3:39am UTC](https://www.ruby-forum.com/t/dbi-statehandler-bind-param-errors/116829 "2007-10-10T03:39:39Z")

</div>

I have a real problem with calling a stored procedure on MS SQL Server from Ruby-DBI. I have no problems with connections or calling queries. I can even call the Stored procedure with “exec Test ‘test’” and the store…

---

## [Mongrel cluster not starting with JRuby 1.0.1](https://www.ruby-forum.com/t/mongrel-cluster-not-starting-with-jruby-1-0-1/116816)

<div class="topic-metadata">

**Author:** [@arung](https://www.ruby-forum.com/u/arung)\
**Replies:** 1\
**Last updated:** [October 10, 2007, 3:34am UTC](https://www.ruby-forum.com/t/mongrel-cluster-not-starting-with-jruby-1-0-1/116816 "2007-10-10T03:34:38Z")

</div>

With a blocking bug on Windows for JRuby 1.0.1/Mongrel (1141), I’m trying this setup on Solaris i386. After multiple tries and googling on forums, I’m not able to configure a Mongrel cluster on my Solaris machine. I’m…

---

## [Which language allows you to change an argument's value?](https://www.ruby-forum.com/t/which-language-allows-you-to-change-an-arguments-value/115925)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 34\
**Last updated:** [October 10, 2007, 3:05am UTC](https://www.ruby-forum.com/t/which-language-allows-you-to-change-an-arguments-value/115925 "2007-10-10T03:05:19Z")

</div>

I wonder which language allows you to change an argument’s value? like: foo(&a) { a = 3 } n = 1 print n foo(n) # passing in n, not &n print n and now n will be 3. I think C++ and PHP can let you do that, us…

---

## [File template as command line param?](https://www.ruby-forum.com/t/file-template-as-command-line-param/116789)

<div class="topic-metadata">

**Author:** [@Bazsl](https://www.ruby-forum.com/u/Bazsl)\
**Replies:** 2\
**Last updated:** [October 10, 2007, 12:56am UTC](https://www.ruby-forum.com/t/file-template-as-command-line-param/116789 "2007-10-10T00:56:05Z")

</div>

If I pass \*.rb as a command line parameter to a Ruby script ARGV contains the names of the files matching the template, not \*.rb. Is there a way to pass a file template as a command line parameter and have it passed l…

---

## [Parts of speech in Ruby](https://www.ruby-forum.com/t/parts-of-speech-in-ruby/116720)

<div class="topic-metadata">

**Author:** [@cpeterson](https://www.ruby-forum.com/u/cpeterson)\
**Replies:** 12\
**Last updated:** [October 10, 2007, 12:32am UTC](https://www.ruby-forum.com/t/parts-of-speech-in-ruby/116720 "2007-10-10T00:32:02Z")

</div>

I’m curious – exactly what class of syntactic element is = in Ruby, where “class of syntactic element” is roughly analogous to “part of speech”. If objects are nouns and methods are verbs, that means = is neither a n…

---

## [Re: your mail](https://www.ruby-forum.com/t/re-your-mail/116811)

<div class="topic-metadata">

**Author:** [@Al\_Brown](https://www.ruby-forum.com/u/Al_Brown)\
**Replies:** 1\
**Last updated:** [October 10, 2007, 12:30am UTC](https://www.ruby-forum.com/t/re-your-mail/116811 "2007-10-10T00:30:52Z")

</div>

awesome. its much easier to see whats happening with the whole system imagine the same sort of thing for object interaction, method calls and db queries that showed the most commonly used and costliest, making it much…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/116740)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 1\
**Last updated:** [October 9, 2007, 11:23pm UTC](https://www.ruby-forum.com/t/no-subject/116740 "2007-10-09T23:23:28Z")

</div>

Check this out. An interesting example of Ruby in use. Data visualization. http://www.fudgie.org/ It’s already stirred up a hornet’s nest on slashdot with plenty of juvenile comments (some accurate) and lots nay saye…

---

## [Make a class evaluate to false in boolean expressions](https://www.ruby-forum.com/t/make-a-class-evaluate-to-false-in-boolean-expressions/116774)

<div class="topic-metadata">

**Author:** [@mattmcswain](https://www.ruby-forum.com/u/mattmcswain)\
**Replies:** 7\
**Last updated:** [October 9, 2007, 11:20pm UTC](https://www.ruby-forum.com/t/make-a-class-evaluate-to-false-in-boolean-expressions/116774 "2007-10-09T23:20:32Z")

</div>

I want to have a class that always evaluates to false in boolean expressions. Is there a way to extend Ruby so that it evaluates an object of a class to false like false and nil? Example class AlwaysFalse end shou…

---

## [Considering writing a book on Ruby/Rails?](https://www.ruby-forum.com/t/considering-writing-a-book-on-ruby-rails/116610)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 41\
**Last updated:** [October 9, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/considering-writing-a-book-on-ruby-rails/116610 "2007-10-09T23:04:41Z")

</div>

If anyone here is considering writing a book on Ruby or Rails I’d like to ask you to do one thing: Please, please, please do not do us the disservice of putting a chapter(or more) on how to install Ruby/Rails. Every …

---

## [Simple metaclass question](https://www.ruby-forum.com/t/simple-metaclass-question/116796)

<div class="topic-metadata">

**Author:** [@nlakkakula](https://www.ruby-forum.com/u/nlakkakula)\
**Replies:** 5\
**Last updated:** [October 9, 2007, 11:01pm UTC](https://www.ruby-forum.com/t/simple-metaclass-question/116796 "2007-10-09T23:01:45Z")

</div>

Code 1: module Mod def hello “Hello from Mod.\\n” end end class Klass def hello “Hello from Klass.\\n” end end k = Klass.new p k.hello #=\> “Hello from Klass.\\n” k.extend(Mod) p k.hello #=\> “Hel…

---

## [Toronto Ruby Users Group Monthly Meeting, October 14, 1pm](https://www.ruby-forum.com/t/toronto-ruby-users-group-monthly-meeting-october-14-1pm/116803)

<div class="topic-metadata">

**Author:** [@austin](https://www.ruby-forum.com/u/austin)\
**Replies:** 0\
**Last updated:** [October 9, 2007, 10:48pm UTC](https://www.ruby-forum.com/t/toronto-ruby-users-group-monthly-meeting-october-14-1pm/116803 "2007-10-09T22:48:50Z")

</div>

Just a reminder that the TRUG monthly meeting is this Sunday on October 14 at 1pm in the usual place, Linux Caffe, at Harbord and Grace (one block south of the Christie subway station at Christie and Bloor). http://w…

---

## [Connection Refused on Tomcat 6](https://www.ruby-forum.com/t/connection-refused-on-tomcat-6/116787)

<div class="topic-metadata">

**Author:** [@jrubylearner](https://www.ruby-forum.com/u/jrubylearner)\
**Replies:** 1\
**Last updated:** [October 9, 2007, 9:41pm UTC](https://www.ruby-forum.com/t/connection-refused-on-tomcat-6/116787 "2007-10-09T21:41:49Z")

</div>

Hi, I have my application running fine with JRuby, ActiveRecord-JDBC connecting to Oracle using the thin driver on the Webrick. Below is my database.yml. development: adapter: jdbc driver: oracle.jdbc.OracleDriver …

---

## [Ruby binary temp file](https://www.ruby-forum.com/t/ruby-binary-temp-file/116791)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [October 9, 2007, 8:56pm UTC](https://www.ruby-forum.com/t/ruby-binary-temp-file/116791 "2007-10-09T20:56:30Z")

</div>

require ‘tempfile’ f = Tempfile.open ‘tmp’ will open f in text mode (mode = ‘w’, not ‘wb’). Any non-hacky way to open this in binary mode? I can, of course, make f, close it and open it as a real file - it’s just thi…

---

## [The old File.rename not working again. . .](https://www.ruby-forum.com/t/the-old-file-rename-not-working-again/116542)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 24\
**Last updated:** [October 9, 2007, 8:24pm UTC](https://www.ruby-forum.com/t/the-old-file-rename-not-working-again/116542 "2007-10-09T20:24:05Z")

</div>

This always throws me. I keep getting “permission denied” messages when I simply try to rename files. Here’s my code. The files in the directory start out without an extension. Dir.chdir(“F:/images”) Dir.glob("\*").ea…

---

## [Finalizing(?) instance variables](https://www.ruby-forum.com/t/finalizing-instance-variables/116730)

<div class="topic-metadata">

**Author:** [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Replies:** 2\
**Last updated:** [October 9, 2007, 8:10pm UTC](https://www.ruby-forum.com/t/finalizing-instance-variables/116730 "2007-10-09T20:10:33Z")

</div>

Hi, I finished writing a fairly large Ruby application and I was careless with cleaning up variables. My objects contain references to large ActiveRecord objects (instance variables), and I wanted to make sure that I…

---

## [Cannot post to gmane.comp.lang.ruby.general?](https://www.ruby-forum.com/t/cannot-post-to-gmane-comp-lang-ruby-general/116786)

<div class="topic-metadata">

**Author:** [@Bazsl](https://www.ruby-forum.com/u/Bazsl)\
**Replies:** 0\
**Last updated:** [October 9, 2007, 7:57pm UTC](https://www.ruby-forum.com/t/cannot-post-to-gmane-comp-lang-ruby-general/116786 "2007-10-09T19:57:39Z")

</div>

I read that the gmane.comp.lang.ruby.general newsgroup is supposed to mirror this list. I can read the newsgroup but can not post to it. Is the newsgroup mirror read only or am I doing something wrong? Thanks.

---

## [JRuby (trunk) on Rails on Rails2.0 pre-release -\> OK](https://www.ruby-forum.com/t/jruby-trunk-on-rails-on-rails2-0-pre-release-ok/116748)

<div class="topic-metadata">

**Author:** [@RaphaSSSSl\_Valyi](https://www.ruby-forum.com/u/RaphaSSSSl_Valyi)\
**Replies:** 2\
**Last updated:** [October 9, 2007, 7:55pm UTC](https://www.ruby-forum.com/t/jruby-trunk-on-rails-on-rails2-0-pre-release-ok/116748 "2007-10-09T19:55:53Z")

</div>

Hi all, that’s just to tell you I successfully migrated my app to Rails2.0 pre-release without any problem due to JRuby. They were a few pure Rails issues I’m relating here: but nothing due to JRuby. Also I’m using …

---

## [October Vancouver Ruby/Rails Meetup Today (Oct/9 @ 7pm)](https://www.ruby-forum.com/t/october-vancouver-ruby-rails-meetup-today-oct-9-7pm/116784)

<div class="topic-metadata">

**Author:** [@gerald\_b](https://www.ruby-forum.com/u/gerald_b)\
**Replies:** 0\
**Last updated:** [October 9, 2007, 7:22pm UTC](https://www.ruby-forum.com/t/october-vancouver-ruby-rails-meetup-today-oct-9-7pm/116784 "2007-10-09T19:22:57Z")

</div>

Hello, You're invited to join us for today's Ruby/Rails meetup in Vancouver in Beautiful British Columbia up in Canada in the Americas. We have two great 20-30 minute talks today: 1. A Returned Merchandise Authoriz…

---

## [Getting resources](https://www.ruby-forum.com/t/getting-resources/116710)

<div class="topic-metadata">

**Author:** [@thewordnerd](https://www.ruby-forum.com/u/thewordnerd)\
**Replies:** 3\
**Last updated:** [October 9, 2007, 7:13pm UTC](https://www.ruby-forum.com/t/getting-resources/116710 "2007-10-09T19:13:33Z")

</div>

I’m not sure if I’m missing something obvious here. I’m attempting to adapt code of the following form: Application.class.getResource(“config/application.conf”); or getClass().getResource("/config/application.conf"); …

---

## [Thread problem](https://www.ruby-forum.com/t/thread-problem/116731)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 7\
**Last updated:** [October 9, 2007, 6:12pm UTC](https://www.ruby-forum.com/t/thread-problem/116731 "2007-10-09T18:12:27Z")

</div>

i want to make a program code ,but it ll take long time to execute so i am spiliting my program into thread … but the general concept about thread is ,it will reduce the execution time of our program under good condit…

---

## [Warning: peer certificate won't be verified in this SSL sess](https://www.ruby-forum.com/t/warning-peer-certificate-wont-be-verified-in-this-ssl-sess/116757)

<div class="topic-metadata">

**Author:** [@mrpete](https://www.ruby-forum.com/u/mrpete)\
**Replies:** 2\
**Last updated:** [October 9, 2007, 4:54pm UTC](https://www.ruby-forum.com/t/warning-peer-certificate-wont-be-verified-in-this-ssl-sess/116757 "2007-10-09T16:54:25Z")

</div>

Just wondering how to make the above warning message disappear from the soap call? irb(main):002:0\> bf = “https://api.betfair.com/global/v3/BFGlobalService.wsdl” =\> “https://api.betfair.com/global/v3/BFGlobalService.…

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

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