# Ruby

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

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

---

## [Class variables are still inherited?](https://www.ruby-forum.com/t/class-variables-are-still-inherited/160919)

<div class="topic-metadata">

**Author:** [@hut](https://www.ruby-forum.com/u/hut)\
**Replies:** 1\
**Last updated:** [February 20, 2009, 11:11pm UTC](https://www.ruby-forum.com/t/class-variables-are-still-inherited/160919 "2009-02-20T23:11:01Z")

</div>

Hi ruby-talk It’s said everywhere that class variables are not inherited anymore in newer versions of ruby. I experience a different behaviour, can you give me any hints about what I’m doing wrong? class Foo @@a = 1 …

---

## [Building 1.9.1 as universal binary on OS X](https://www.ruby-forum.com/t/building-1-9-1-as-universal-binary-on-os-x/159568)

<div class="topic-metadata">

**Author:** [@absolute-beginner](https://www.ruby-forum.com/u/absolute-beginner)\
**Replies:** 4\
**Last updated:** [February 20, 2009, 11:10pm UTC](https://www.ruby-forum.com/t/building-1-9-1-as-universal-binary-on-os-x/159568 "2009-02-20T23:10:07Z")

</div>

Hi I’d like to build the recently released Ruby 1.9.1 as a universal binary on OS X. I’m on an Intel 10.5, but want the ruby to be runnable on 10.4 or 10.5, Intel or PPC. Following this tech note and advice: http://…

---

## [Retrieving session data from a cookie](https://www.ruby-forum.com/t/retrieving-session-data-from-a-cookie/160911)

<div class="topic-metadata">

**Author:** [@djames](https://www.ruby-forum.com/u/djames)\
**Replies:** 0\
**Last updated:** [February 20, 2009, 9:26pm UTC](https://www.ruby-forum.com/t/retrieving-session-data-from-a-cookie/160911 "2009-02-20T21:26:34Z")

</div>

The pick-axe book describes a method for retrieving cookie-based session data from within a cgi script. It works fine from within a cgi script. What I would really like to know is how I can accomplish this feat of re…

---

## [Un-escaping hexadecimal code](https://www.ruby-forum.com/t/un-escaping-hexadecimal-code/160886)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 8\
**Last updated:** [February 20, 2009, 8:32pm UTC](https://www.ruby-forum.com/t/un-escaping-hexadecimal-code/160886 "2009-02-20T20:32:45Z")

</div>

Hi, I receive a String allowing hexadecimal escaping by using %XX syntax: %61lice =\> alice ( %61 == a ) I would like to un-escape the string. I’ve got it using “eval” but I’d prefer avoiding using “eval”: string …

---

## ["permission denied"](https://www.ruby-forum.com/t/permission-denied/160872)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 10\
**Last updated:** [February 20, 2009, 8:24pm UTC](https://www.ruby-forum.com/t/permission-denied/160872 "2009-02-20T20:24:49Z")

</div>

Hi, I’m frustrated with one of my Ruby scripts. It’s an image processing script that converts \[sometimes thousands\] of images and then HTTPs on to archival servers. I continue to get a “permission denied” error on on…

---

## [Rubygems out of sync?](https://www.ruby-forum.com/t/rubygems-out-of-sync/157832)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 2\
**Last updated:** [February 20, 2009, 8:20pm UTC](https://www.ruby-forum.com/t/rubygems-out-of-sync/157832 "2009-02-20T20:20:54Z")

</div>

rubygems is giving me some problems, and I was hoping someone here might have an idea what is going on. When I type: sudo gem list I get a bunch of gems that I have uninstalled. For example: $ sudo gem uninstall merb…

---

## [Array](https://www.ruby-forum.com/t/array/160891)

<div class="topic-metadata">

**Author:** [@vetrivel](https://www.ruby-forum.com/u/vetrivel)\
**Replies:** 1\
**Last updated:** [February 20, 2009, 7:20pm UTC](https://www.ruby-forum.com/t/array/160891 "2009-02-20T19:20:10Z")

</div>

In array I have content like this a = \["c" , "d", "e" , "f" \] But I need like this 'c','d','e','f' I want this for my following purpose insert into tablename values a . a has to subtitude in below state…

---

## [Code Review: command\_line](https://www.ruby-forum.com/t/code-review-command-line/160823)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 1\
**Last updated:** [February 20, 2009, 6:52pm UTC](https://www.ruby-forum.com/t/code-review-command-line/160823 "2009-02-20T18:52:23Z")

</div>

This also sets up the code review script to include tests. tfpt review “/shelveset:command\_line;REDMOND\\jdeville” Comment : Adds specs for common Ruby command line options.

---

## [Killing jruby](https://www.ruby-forum.com/t/killing-jruby/160860)

<div class="topic-metadata">

**Author:** [@Arnaud\_G](https://www.ruby-forum.com/u/Arnaud_G)\
**Replies:** 2\
**Last updated:** [February 20, 2009, 5:13pm UTC](https://www.ruby-forum.com/t/killing-jruby/160860 "2009-02-20T17:13:14Z")

</div>

Hello, When I use exec “jruby my\_update\_prog.rb” or “java -jar jruby-complete my\_update\_prog.rb” from another jruby program the java “parent” process is not kill until the end of the second ( I dit my test on my vis…

---

## [Problem when calling from Ruby-\>Java-\>Ruby](https://www.ruby-forum.com/t/problem-when-calling-from-ruby-java-ruby/160841)

<div class="topic-metadata">

**Author:** [@figo2476](https://www.ruby-forum.com/u/figo2476)\
**Replies:** 1\
**Last updated:** [February 20, 2009, 3:44pm UTC](https://www.ruby-forum.com/t/problem-when-calling-from-ruby-java-ruby/160841 "2009-02-20T15:44:04Z")

</div>

Hi, I am trying to have jruby.bat invoke my ruby script which then calls a Java function. Inside my java function, I want to be able to call back my ruby script (for example, invoke method on some ruby object that wa…

---

## [Dynamic string (depending on a variable)](https://www.ruby-forum.com/t/dynamic-string-depending-on-a-variable/160706)

<div class="topic-metadata">

**Author:** [@loader](https://www.ruby-forum.com/u/loader)\
**Replies:** 7\
**Last updated:** [February 20, 2009, 3:34pm UTC](https://www.ruby-forum.com/t/dynamic-string-depending-on-a-variable/160706 "2009-02-20T15:34:06Z")

</div>

Hello everyone! Do you have a better way to do this ? sentence = “Your ticket has expired since #{nb\_of\_days if nb\_of\_days\<0} #{‘days’ if nb\_of\_days\<0} #{‘today’ if nb\_of\_days==0}” My goal is to print something like …

---

## [Module include class/instance methods confusion!](https://www.ruby-forum.com/t/module-include-class-instance-methods-confusion/160866)

<div class="topic-metadata">

**Author:** [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Replies:** 2\
**Last updated:** [February 20, 2009, 3:12pm UTC](https://www.ruby-forum.com/t/module-include-class-instance-methods-confusion/160866 "2009-02-20T15:12:55Z")

</div>

I have been having trouble today with a module include in a Rails app. The module file sits in the /lib folder. My problem, I worked out (which I have noticed before) is that I cannot seem to access defined class meth…

---

## [ASCII Menu in Ruby, is it possible?](https://www.ruby-forum.com/t/ascii-menu-in-ruby-is-it-possible/160800)

<div class="topic-metadata">

**Author:** [@rubina](https://www.ruby-forum.com/u/rubina)\
**Replies:** 8\
**Last updated:** [February 20, 2009, 2:45pm UTC](https://www.ruby-forum.com/t/ascii-menu-in-ruby-is-it-possible/160800 "2009-02-20T14:45:11Z")

</div>

Hello Team, Is there a way in Ruby to create primitive ASCII menus? At this point I am shying away from GUI as everything outthere, in the GUI world is too… I just want to know if I can create simple menus of the ty…

---

## [Ignoring Exceptions](https://www.ruby-forum.com/t/ignoring-exceptions/160857)

<div class="topic-metadata">

**Author:** [@wanyixue](https://www.ruby-forum.com/u/wanyixue)\
**Replies:** 2\
**Last updated:** [February 20, 2009, 12:19pm UTC](https://www.ruby-forum.com/t/ignoring-exceptions/160857 "2009-02-20T12:19:16Z")

</div>

i am using hpricot to parse xml and place it into an object named ‘x’ some\_variable = (x.at(“some\_element\_name”).innerHTML if x.at(“some\_element\_name”)) problem is i have a TON of"some\_element\_name" to assign and i d…

---

## [Generating Microsoft word document using ruby or rails](https://www.ruby-forum.com/t/generating-microsoft-word-document-using-ruby-or-rails/160839)

<div class="topic-metadata">

**Author:** [@jprabu](https://www.ruby-forum.com/u/jprabu)\
**Replies:** 2\
**Last updated:** [February 20, 2009, 11:52am UTC](https://www.ruby-forum.com/t/generating-microsoft-word-document-using-ruby-or-rails/160839 "2009-02-20T11:52:06Z")

</div>

I have some record formatted in table. For that, I need to convert the table data into Microsoft word document or Open office document. what method I have to use?, Is there any class or gems or library in ruby? kindl…

---

## [Zed again](https://www.ruby-forum.com/t/zed-again/160847)

<div class="topic-metadata">

**Author:** [@robkuz](https://www.ruby-forum.com/u/robkuz)\
**Replies:** 6\
**Last updated:** [February 20, 2009, 11:05am UTC](https://www.ruby-forum.com/t/zed-again/160847 "2009-02-20T11:05:42Z")

</div>

… robert

---

## [Load a path (not a file)](https://www.ruby-forum.com/t/load-a-path-not-a-file/160846)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 3\
**Last updated:** [February 20, 2009, 9:14am UTC](https://www.ruby-forum.com/t/load-a-path-not-a-file/160846 "2009-02-20T09:14:02Z")

</div>

Hello guys, I need to load a path not a file. I am trying this but it is not working load RAILS\_ROOT+"/public/users/#{self.login}/lib/" Can you guys help me, Thanks

---

## [Replacing values](https://www.ruby-forum.com/t/replacing-values/160771)

<div class="topic-metadata">

**Author:** [@ashikalim](https://www.ruby-forum.com/u/ashikalim)\
**Replies:** 9\
**Last updated:** [February 20, 2009, 7:50am UTC](https://www.ruby-forum.com/t/replacing-values/160771 "2009-02-20T07:50:45Z")

</div>

Analyse this code a = 10 b = “This is #{a}” # prints “This is 10” b = ‘This is #{c}’ # prints “This is #{c}” c = 18 b # “This is #{c}” Here I want , “This is 18” Question , How can I convert ‘’ value to “” value…

---

## [A little daemon daemonizes, but hangs the logout](https://www.ruby-forum.com/t/a-little-daemon-daemonizes-but-hangs-the-logout/160583)

<div class="topic-metadata">

**Author:** [@kyle\_s](https://www.ruby-forum.com/u/kyle_s)\
**Replies:** 8\
**Last updated:** [February 20, 2009, 6:26am UTC](https://www.ruby-forum.com/t/a-little-daemon-daemonizes-but-hangs-the-logout/160583 "2009-02-20T06:26:26Z")

</div>

I needed a little daemon thisafternoon, so I wrote one in ruby using fork and Process.detach. It’s working ok I suppose, except that when I logout, it hangs, and I have to kill my session. It’s a little annoying, to…

---

## [Win32-api 1.4.0](https://www.ruby-forum.com/t/win32-api-1-4-0/160836)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 1\
**Last updated:** [February 20, 2009, 6:21am UTC](https://www.ruby-forum.com/t/win32-api-1-4-0/160836 "2009-02-20T06:21:46Z")

</div>

Hi, The Win32Utils Team is happy to announce the release of win32-api 1.4.0. = What is it? A better replacement for Win32API. = What’s New? The special $KCODE handling has been removed. Previously, if $KCODE was s…

---

## [Hitimes 0.4.1 Released](https://www.ruby-forum.com/t/hitimes-0-4-1-released/160831)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 0\
**Last updated:** [February 20, 2009, 5:26am UTC](https://www.ruby-forum.com/t/hitimes-0-4-1-released/160831 "2009-02-20T05:26:10Z")

</div>

hitimes version 0.4.1 has been released. gem install hitimes http://copiousfreetime.rubyforge.org/hitimes/ Hitimes is a fast, high resolution timer library for recording performance metrics. It uses the appropriate …

---

## [Cannot customize irb initialization](https://www.ruby-forum.com/t/cannot-customize-irb-initialization/160727)

<div class="topic-metadata">

**Author:** [@Fredrik](https://www.ruby-forum.com/u/Fredrik)\
**Replies:** 5\
**Last updated:** [February 20, 2009, 5:13am UTC](https://www.ruby-forum.com/t/cannot-customize-irb-initialization/160727 "2009-02-20T05:13:53Z")

</div>

Why can’t I give a configuration file as argument when I run irb? It seems that looks for conf files in the order: ~/.irbrc .irbrc irb.rc \_irbrc $irbrc I would however like to have more flexibility than that. I wo…

---

## [Launchy 0.3.3 Released](https://www.ruby-forum.com/t/launchy-0-3-3-released/160829)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 0\
**Last updated:** [February 20, 2009, 4:27am UTC](https://www.ruby-forum.com/t/launchy-0-3-3-released/160829 "2009-02-20T04:27:41Z")

</div>

launchy version 0.3.3 has been released. gem install launchy http://copiousfreetime.rubyforge.org/launchy/ Launchy is helper class for launching cross-platform applications in a fire and forget manner. There are app…

---

## [Irb login not reading irbrc file](https://www.ruby-forum.com/t/irb-login-not-reading-irbrc-file/160776)

<div class="topic-metadata">

**Author:** [@Philip\_McDonald](https://www.ruby-forum.com/u/Philip_McDonald)\
**Replies:** 8\
**Last updated:** [February 20, 2009, 2:24am UTC](https://www.ruby-forum.com/t/irb-login-not-reading-irbrc-file/160776 "2009-02-20T02:24:04Z")

</div>

Hi List! I am beginning to learn Ruby ( vers. 1.8.6) , and I am using OS X (10.5.4), and accessing irb through terminal. On OS X, irb loads from a /etc/irbrc file that includes the ‘simple prompt’ code. I don’t lik…

---

## ["You have to install development tools first." Windows](https://www.ruby-forum.com/t/you-have-to-install-development-tools-first-windows/160731)

<div class="topic-metadata">

**Author:** [@alex797](https://www.ruby-forum.com/u/alex797)\
**Replies:** 1\
**Last updated:** [February 20, 2009, 12:35am UTC](https://www.ruby-forum.com/t/you-have-to-install-development-tools-first-windows/160731 "2009-02-20T00:35:52Z")

</div>

Hi everybody…! I’m having some trouble with mkmf. I’m on Ruby 1.9.1, Windows Each time I try to use have\_library (pretty sure it’s not the only method that doesn’t work…), it raises errors: C:/ruby191/lib/ruby/1.9.1…

---

## [Jdbc template error](https://www.ruby-forum.com/t/jdbc-template-error/160692)

<div class="topic-metadata">

**Author:** [@ben.hidalgo](https://www.ruby-forum.com/u/ben.hidalgo)\
**Replies:** 2\
**Last updated:** [February 19, 2009, 11:44pm UTC](https://www.ruby-forum.com/t/jdbc-template-error/160692 "2009-02-19T23:44:55Z")

</div>

Hi, I’m attempting to invoke Spring’s JdbcTemplate from JRuby. Everything looks fine, but when i call the “update” method passing my sql string an Object\[\] it gives me this error: 16:09:17,781 INFO \[DriverManager…

---

## [Creating InsensitiveHash in C](https://www.ruby-forum.com/t/creating-insensitivehash-in-c/160807)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 2\
**Last updated:** [February 19, 2009, 10:33pm UTC](https://www.ruby-forum.com/t/creating-insensitivehash-in-c/160807 "2009-02-19T22:33:54Z")

</div>

Hi, I’d like a faster Ruby class same as Hash but in which key and value are insensitive, so: params = InsensitiveHash.new params\[“q”\] = 0.5 params\[“transport”\] = “TCP” params\[“Q”\] =\> 0.5 params\[“Transport”\] ==…

---

## [HTTPS connection](https://www.ruby-forum.com/t/https-connection/160680)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 12\
**Last updated:** [February 19, 2009, 9:59pm UTC](https://www.ruby-forum.com/t/https-connection/160680 "2009-02-19T21:59:36Z")

</div>

I am having a problem connecting to HTTPS. My program use to need to connect through HTTP but now we have made a change and need to connect using HTTPS. Is there anyone out there that could be of assistance? old code: …

---

## [I have to be missing something simple here](https://www.ruby-forum.com/t/i-have-to-be-missing-something-simple-here/160701)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [February 19, 2009, 9:52pm UTC](https://www.ruby-forum.com/t/i-have-to-be-missing-something-simple-here/160701 "2009-02-19T21:52:30Z")

</div>

I have some code that was written in the Ruby-1.8ish era. However, the newer versions append the version number to all library/etc filenames, which is causing problems- for example, “/usr/local/bin/ ruby” no longer e…

---

## [Quieting DRb messages in fork() code](https://www.ruby-forum.com/t/quieting-drb-messages-in-fork-code/160677)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 4\
**Last updated:** [February 19, 2009, 9:33pm UTC](https://www.ruby-forum.com/t/quieting-drb-messages-in-fork-code/160677 "2009-02-19T21:33:20Z")

</div>

Hi, I’ve got some code which seems to work well, but the warning messages are driving me insane! I can’t use this code if it’s always going to spew warnings like these on a CentOS 5.2 system with ruby 1.8.5 (2006-08…

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

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