# Ruby

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

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

---

## [RubySpec changes](https://www.ruby-forum.com/t/rubyspec-changes/142629)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 3\
**Last updated:** [July 10, 2008, 11:25pm UTC](https://www.ruby-forum.com/t/rubyspec-changes/142629 "2008-07-10T23:25:04Z")

</div>

I’m syncing up the copy of Rubyspec in TFS/SVN with the copy in Git. I’d like to get a code review of the changes. Eventually this will be automated, but for now, I’m attaching them directly. Question: Does the attach…

---

## [cgi$B$N%F%9%H$K$D$$$F(B](https://www.ruby-forum.com/t/cgi-b-n-f-9-h-k-d-f-b/142707)

<div class="topic-metadata">

**Author:** [@Fujioka](https://www.ruby-forum.com/u/Fujioka)\
**Replies:** 2\
**Last updated:** [July 10, 2008, 11:18pm UTC](https://www.ruby-forum.com/t/cgi-b-n-f-9-h-k-d-f-b/142707 "2008-07-10T23:18:02Z")

</div>

xibbare$B$3$HJ!Eg$NF#2,$G$9!#e(B e$B0JA0$+$iOCBj$K$J$C$F$$$^$9$,!“e(B cgie$B%i%$%V%i%j$K$O%F%9%H$,$”$j$^$;$s!#e(B cgie$B$NBeBX%i%$%V%i%j$NJg=8$bF0$$$F$$$J$$$h$&$G$9$7!“e(B e$B$H$j$”$($:e(B1.8e$B$Ne(Bteste$B$Ke(BCGIAl…

---

## [Wsdl/operation.rb blowing up](https://www.ruby-forum.com/t/wsdl-operation-rb-blowing-up/142729)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 10, 2008, 10:10pm UTC](https://www.ruby-forum.com/t/wsdl-operation-rb-blowing-up/142729 "2008-07-10T22:10:38Z")

</div>

I am attempting to do some SOAP scripting for my first time, and have run into a problem pretty early on. When I use the “factory.create\_rpc\_driver” I get the error as shown below. Interestingly, when I use the depre…

---

## [Statistician II (#168)](https://www.ruby-forum.com/t/statistician-ii-168/142722)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 1\
**Last updated:** [July 10, 2008, 9:56pm UTC](https://www.ruby-forum.com/t/statistician-ii-168/142722 "2008-07-10T21:56:35Z")

</div>

I don’t know if it was the metaprogramming that scared people away this week, or perhaps folks are away on summer vacations. In any case, I’m going to summarize this week’s quiz by looking at the submission from Matth…

---

## [Error installing sqlite gems](https://www.ruby-forum.com/t/error-installing-sqlite-gems/142602)

<div class="topic-metadata">

**Author:** [@toospoiled](https://www.ruby-forum.com/u/toospoiled)\
**Replies:** 6\
**Last updated:** [July 10, 2008, 9:50pm UTC](https://www.ruby-forum.com/t/error-installing-sqlite-gems/142602 "2008-07-10T21:50:44Z")

</div>

I’ve tried from NetBeans to install sqlite gems, but I always got the same error message: JRuby limited openssl loaded. gem install jruby-openssl for full support. http://wiki.jruby.org/wiki/JRuby\_Builtin\_OpenSSL Bu…

---

## [Dbi:oci8 problems](https://www.ruby-forum.com/t/dbi-oci8-problems/142489)

<div class="topic-metadata">

**Author:** [@paco](https://www.ruby-forum.com/u/paco)\
**Replies:** 1\
**Last updated:** [July 10, 2008, 8:13pm UTC](https://www.ruby-forum.com/t/dbi-oci8-problems/142489 "2008-07-10T20:13:47Z")

</div>

Hi, I’ve a problem with dbi:oci8. I hope that you could help me. My code is this: 1 require ‘dbi’ 2 dbh = DBI.connect(“dbi:oci8:service\_name”, “user”, “password”) 3 rs = dbh.prepare(‘SELECT \* FROM table’) 4 rs.execu…

---

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

<div class="topic-metadata">

**Author:** [@Tay\_Carpenter](https://www.ruby-forum.com/u/Tay_Carpenter)\
**Replies:** 0\
**Last updated:** [July 10, 2008, 7:02pm UTC](https://www.ruby-forum.com/t/no-subject/142712 "2008-07-10T19:02:22Z")

</div>

Unsubscrible

---

## [Killing a ruby script gracefully](https://www.ruby-forum.com/t/killing-a-ruby-script-gracefully/142679)

<div class="topic-metadata">

**Author:** [@ratcheer](https://www.ruby-forum.com/u/ratcheer)\
**Replies:** 2\
**Last updated:** [July 10, 2008, 6:21pm UTC](https://www.ruby-forum.com/t/killing-a-ruby-script-gracefully/142679 "2008-07-10T18:21:22Z")

</div>

I have a Ruby script that uses Event machine to listen on a port for incoming data. When data is received, the script saves it to the database. How can I kill this script gracefully? I want to make sure that the da…

---

## [Install gems on shoes](https://www.ruby-forum.com/t/install-gems-on-shoes/142676)

<div class="topic-metadata">

**Author:** [@toospoiled](https://www.ruby-forum.com/u/toospoiled)\
**Replies:** 1\
**Last updated:** [July 10, 2008, 3:13pm UTC](https://www.ruby-forum.com/t/install-gems-on-shoes/142676 "2008-07-10T15:13:55Z")

</div>

Hi, I’m trying to use shoes, but I need to install some gems on it. How can I do it? thanks

---

## [Net::SSH - how to respond to a prompt before first command?](https://www.ruby-forum.com/t/net-ssh-how-to-respond-to-a-prompt-before-first-command/142701)

<div class="topic-metadata">

**Author:** [@slawek\_zachcial](https://www.ruby-forum.com/u/slawek_zachcial)\
**Replies:** 0\
**Last updated:** [July 10, 2008, 2:20pm UTC](https://www.ruby-forum.com/t/net-ssh-how-to-respond-to-a-prompt-before-first-command/142701 "2008-07-10T14:20:26Z")

</div>

Hello, I’m trying to connect, using SSH, to a server that immediately after login executes a script that requires input from user. The script is asking the user to select the target username that the shell should swi…

---

## [Setting a cooking from an eruby .rhtml file](https://www.ruby-forum.com/t/setting-a-cooking-from-an-eruby-rhtml-file/142661)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 1\
**Last updated:** [July 10, 2008, 2:04pm UTC](https://www.ruby-forum.com/t/setting-a-cooking-from-an-eruby-rhtml-file/142661 "2008-07-10T14:04:41Z")

</div>

I also tried inserting the cookings at an intermediate page that redirects, and I’m having no luck with that either, though I can simply use the plain CGI object to do it inside of a \<% %\> pair.

---

## [Meta\_data from Raw Image files and \*.psd files](https://www.ruby-forum.com/t/meta-data-from-raw-image-files-and-psd-files/196738)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 2\
**Last updated:** [July 10, 2008, 1:55pm UTC](https://www.ruby-forum.com/t/meta-data-from-raw-image-files-and-psd-files/196738 "2008-07-10T13:55:54Z")

</div>

Hi I am needing to extract metadata from image files primarily canon .CR2 and photoshop.psd files so I can use the metadata in a mysql database. Does anyone know of any available routines to help with the task… I wo…

---

## [Rails for Asp.Net developers, 3 chapters to download](https://www.ruby-forum.com/t/rails-for-asp-net-developers-3-chapters-to-download/142694)

<div class="topic-metadata">

**Author:** [@webreservoir](https://www.ruby-forum.com/u/webreservoir)\
**Replies:** 0\
**Last updated:** [July 10, 2008, 1:19pm UTC](https://www.ruby-forum.com/t/rails-for-asp-net-developers-3-chapters-to-download/142694 "2008-07-10T13:19:48Z")

</div>

Hi, This is just for Information. Rails for .Net Developers, is a new Book coming in November 2008. You can down load 3 chapters for free here… http://rubyindia.wordpress.com/2008/07/10/rails-for-aspnet-developers-re…

---

## [Class methods](https://www.ruby-forum.com/t/class-methods/142575)

<div class="topic-metadata">

**Author:** [@owc](https://www.ruby-forum.com/u/owc)\
**Replies:** 5\
**Last updated:** [July 10, 2008, 12:29pm UTC](https://www.ruby-forum.com/t/class-methods/142575 "2008-07-10T12:29:06Z")

</div>

I have built my own ruby library where it contains my specific commands and methods that I need to perform certain actions and my main script. In my ruby library I have something like: class Test def toDDMMYYYY(sep) …

---

## [WPF philosophy](https://www.ruby-forum.com/t/wpf-philosophy/142660)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 2\
**Last updated:** [July 10, 2008, 11:26am UTC](https://www.ruby-forum.com/t/wpf-philosophy/142660 "2008-07-10T11:26:51Z")

</div>

Hi I don’t really know if this is an appropriate discussion but here it goes. Ruby and Xaml at first sight a DSL is very appropriate to get rid of the xml syntax. I’m all for that :slight\_smile: However the price yo…

---

## [How do make it post instead of get?](https://www.ruby-forum.com/t/how-do-make-it-post-instead-of-get/142594)

<div class="topic-metadata">

**Author:** [@weasel](https://www.ruby-forum.com/u/weasel)\
**Replies:** 2\
**Last updated:** [July 10, 2008, 8:26am UTC](https://www.ruby-forum.com/t/how-do-make-it-post-instead-of-get/142594 "2008-07-10T08:26:39Z")

</div>

This script will GET the page i request when i call it from dos-prompt like this “ruby nukeuser.rb 1” require ‘uri’ require ‘net/https’ user\_id = ARGV\[0\].strip url = “https:///services\_captiveportal\_users.php?act=d…

---

## [FW: MindTouch Wik.is Upgrade](https://www.ruby-forum.com/t/fw-mindtouch-wik-is-upgrade/142544)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 1\
**Last updated:** [July 10, 2008, 8:18am UTC](https://www.ruby-forum.com/t/fw-mindtouch-wik-is-upgrade/142544 "2008-07-10T08:18:33Z")

</div>

FYI Thanks, -John From: MindTouch \[mailto:removed\_email\_address@domain.invalid\] Sent: Tuesday, July 08, 2008 2:32 PM To: John L. (IRONRUBY) Subject: MindTouch Wik.is Upgrade \[https://na3.salesforce.com/servlet/ser…

---

## [In place edit mode activation?](https://www.ruby-forum.com/t/in-place-edit-mode-activation/142633)

<div class="topic-metadata">

**Author:** [@Laurent\_J](https://www.ruby-forum.com/u/Laurent_J)\
**Replies:** 1\
**Last updated:** [July 10, 2008, 8:03am UTC](https://www.ruby-forum.com/t/in-place-edit-mode-activation/142633 "2008-07-10T08:03:21Z")

</div>

Hello, Does anybody knows if there is a way to activate the ‘in place edit mode’ from within a Ruby script that would have the same effect as using the -i option on the command line? Thanks Laurent

---

## [Problem with hash in function](https://www.ruby-forum.com/t/problem-with-hash-in-function/142665)

<div class="topic-metadata">

**Author:** [@skaverat](https://www.ruby-forum.com/u/skaverat)\
**Replies:** 3\
**Last updated:** [July 10, 2008, 7:33am UTC](https://www.ruby-forum.com/t/problem-with-hash-in-function/142665 "2008-07-10T07:33:48Z")

</div>

Somehow I’m missing something really basic. Why is following function now working? def foobar(args) puts args.id end foobar ({:id =\> “MyID”}) #=\> some random number (e.g. -616990888)

---

## [IO.select timeout problem](https://www.ruby-forum.com/t/io-select-timeout-problem/142657)

<div class="topic-metadata">

**Author:** [@sgibson](https://www.ruby-forum.com/u/sgibson)\
**Replies:** 1\
**Last updated:** [July 10, 2008, 3:47am UTC](https://www.ruby-forum.com/t/io-select-timeout-problem/142657 "2008-07-10T03:47:15Z")

</div>

Using ruby 1.8.6 under Linux. For some reason IO.select() seems to be ignoring the ‘timeout’ parameter. Regardless of what value I put in there (float or integer) it doesn’t seem to have any effect – if there isn’t …

---

## [A warbler .9.9 assembled app (upgraded w jruby 1.1.2) chokes on ruport 1.4](https://www.ruby-forum.com/t/a-warbler-9-9-assembled-app-upgraded-w-jruby-1-1-2-chokes-on-ruport-1-4/142632)

<div class="topic-metadata">

**Author:** [@mrkohrea](https://www.ruby-forum.com/u/mrkohrea)\
**Replies:** 1\
**Last updated:** [July 10, 2008, 3:13am UTC](https://www.ruby-forum.com/t/a-warbler-9-9-assembled-app-upgraded-w-jruby-1-1-2-chokes-on-ruport-1-4/142632 "2008-07-10T03:13:18Z")

</div>

Hi All- Somehow, I’ve been tasked to convert an application to a jruby, war-based application on glassfish…and am having issues. I’ve tried to convert from C-Ruby to JRuby-as-a-war in steps: First, I got it working …

---

## [XMLRPC Question](https://www.ruby-forum.com/t/xmlrpc-question/142438)

<div class="topic-metadata">

**Author:** [@afewtips](https://www.ruby-forum.com/u/afewtips)\
**Replies:** 6\
**Last updated:** [July 10, 2008, 3:12am UTC](https://www.ruby-forum.com/t/xmlrpc-question/142438 "2008-07-10T03:12:46Z")

</div>

I am working on a little project that requires me to interface with an XMLRPC server they have to grab some data. To first test it, I just telneted into the server and ran their test function, which was “ping”. It re…

---

## [What's your recommendation re ruby backup scripts for linux backups?](https://www.ruby-forum.com/t/whats-your-recommendation-re-ruby-backup-scripts-for-linux-backups/142655)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 0\
**Last updated:** [July 10, 2008, 2:47am UTC](https://www.ruby-forum.com/t/whats-your-recommendation-re-ruby-backup-scripts-for-linux-backups/142655 "2008-07-10T02:47:34Z")

</div>

Hi, I want to put in place a periodic backup routine for my linux box to cover potential disk failure. What command line ruby scripts exists/would you recommend for this? The features I’m looking for: free/open so…

---

## [Ruby bug database](https://www.ruby-forum.com/t/ruby-bug-database/142634)

<div class="topic-metadata">

**Author:** [@stefans](https://www.ruby-forum.com/u/stefans)\
**Replies:** 8\
**Last updated:** [July 10, 2008, 2:25am UTC](https://www.ruby-forum.com/t/ruby-bug-database/142634 "2008-07-10T02:25:21Z")

</div>

Hello, where has the Ruby bug database gone? It used to be at http://www.ruby-lang.org/cgi-bin/ruby-bugs but that address doesn’t work anymore. I cannot find it on the website. Cheers, Stefan

---

## [How do I link to inferior-ruby/interpreter in emacs?](https://www.ruby-forum.com/t/how-do-i-link-to-inferior-ruby-interpreter-in-emacs/142616)

<div class="topic-metadata">

**Author:** [@ssecorp](https://www.ruby-forum.com/u/ssecorp)\
**Replies:** 4\
**Last updated:** [July 10, 2008, 1:56am UTC](https://www.ruby-forum.com/t/how-do-i-link-to-inferior-ruby-interpreter-in-emacs/142616 "2008-07-10T01:56:07Z")

</div>

I have fixed ruby-mode for emacs but I dont understand how to run the interpreter. I have inf-ruby.el in my ruby-path but what do I need to add to my .emacs-file?

---

## [Faking named parameters and enforcing required params](https://www.ruby-forum.com/t/faking-named-parameters-and-enforcing-required-params/141272)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 6\
**Last updated:** [July 10, 2008, 1:48am UTC](https://www.ruby-forum.com/t/faking-named-parameters-and-enforcing-required-params/141272 "2008-07-10T01:48:57Z")

</div>

I come from years of using a language with named params. I prefer the explicitness of it, so I’m tending to do a lot of it in my Ruby code using a hash to fake it object.method(:shape=\>‘square’, :size=‘medium’) What …

---

## [Beast - stack too deep problem](https://www.ruby-forum.com/t/beast-stack-too-deep-problem/142567)

<div class="topic-metadata">

**Author:** [@skroll](https://www.ruby-forum.com/u/skroll)\
**Replies:** 1\
**Last updated:** [July 10, 2008, 1:40am UTC](https://www.ruby-forum.com/t/beast-stack-too-deep-problem/142567 "2008-07-10T01:40:45Z")

</div>

rails version: 2.1.0 ruby version: 1.8.5 Hi I have the following problem: After trying to read a new created topic in beast, my side creates an error an the following lines are added in the .log ActionView::Templat…

---

## [Is there a way to set a cookie with CGI::Cookie objects, from an rhtml file?](https://www.ruby-forum.com/t/is-there-a-way-to-set-a-cookie-with-cgi-cookie-objects-from-an-rhtml-file/142646)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 2\
**Last updated:** [July 10, 2008, 1:12am UTC](https://www.ruby-forum.com/t/is-there-a-way-to-set-a-cookie-with-cgi-cookie-objects-from-an-rhtml-file/142646 "2008-07-10T01:12:11Z")

</div>

I’m trying this with cgi.out, but it doesn’t like me doing that without a body. There must be a way to print the cookie header from the cookie object so I can send it out from the top of my .rhtml file, but it doesn’…

---

## [Trying to find good examples of Ruby Sessions](https://www.ruby-forum.com/t/trying-to-find-good-examples-of-ruby-sessions/142628)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 10\
**Last updated:** [July 10, 2008, 12:12am UTC](https://www.ruby-forum.com/t/trying-to-find-good-examples-of-ruby-sessions/142628 "2008-07-10T00:12:30Z")

</div>

Pickaxe 246 is not only weak, but appears to be just wrong by saying: if session\[‘lastaccess’\] which doesn’t check that lastaccess is infact a hash key to begin with. However, when I try a .has\_key?, I get a failure w…

---

## [New RMagick4J release](https://www.ruby-forum.com/t/new-rmagick4j-release/142622)

<div class="topic-metadata">

**Author:** [@Serabe](https://www.ruby-forum.com/u/Serabe)\
**Replies:** 1\
**Last updated:** [July 9, 2008, 11:52pm UTC](https://www.ruby-forum.com/t/new-rmagick4j-release/142622 "2008-07-09T23:52:37Z")

</div>

RMagick aims to implement the ImageMagick funcionality and the C portions of RMagick for make it works in JRuby. Current stable version: 0.3.5 Project URL: Google Code Archive - Long-term storage for Google Code Proje…

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

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