# Ruby

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

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

---

## [Getting essid via ioctl](https://www.ruby-forum.com/t/getting-essid-via-ioctl/175789)

<div class="topic-metadata">

**Author:** [@corck](https://www.ruby-forum.com/u/corck)\
**Replies:** 2\
**Last updated:** [September 23, 2009, 11:28am UTC](https://www.ruby-forum.com/t/getting-essid-via-ioctl/175789 "2009-09-23T11:28:42Z")

</div>

Hello. To avoid relying on the wireless tools I want to get the essid directly from the device with ioctl, in C this wouldn’t be a problem, but in Ruby it’s quite different. The problem is following struct from wirel…

---

## [RubyGems Problem](https://www.ruby-forum.com/t/rubygems-problem/175724)

<div class="topic-metadata">

**Author:** [@preethi](https://www.ruby-forum.com/u/preethi)\
**Replies:** 9\
**Last updated:** [September 23, 2009, 11:20am UTC](https://www.ruby-forum.com/t/rubygems-problem/175724 "2009-09-23T11:20:30Z")

</div>

Hi, I upgraded my rails version to 2.3.4 and my ruby version is 1.8.6 My gem list contained initially RubyGems -updated 1.3.1 When i started by server (ruby script/server) i got an error saying that my ruby gems ver…

---

## [Pleas help for forwarding an email](https://www.ruby-forum.com/t/pleas-help-for-forwarding-an-email/175927)

<div class="topic-metadata">

**Author:** [@rabarama](https://www.ruby-forum.com/u/rabarama)\
**Replies:** 3\
**Last updated:** [September 23, 2009, 11:10am UTC](https://www.ruby-forum.com/t/pleas-help-for-forwarding-an-email/175927 "2009-09-23T11:10:33Z")

</div>

I’m quite new to ruby, and something is driving me crazy. I’m working with emails, and i need to fw a email adding an header and a footer to the text. I’m having a lot of problems with multipart/alternative with attac…

---

## [How to detect what is running Ruby program?](https://www.ruby-forum.com/t/how-to-detect-what-is-running-ruby-program/175884)

<div class="topic-metadata">

**Author:** [@masonkessinger](https://www.ruby-forum.com/u/masonkessinger)\
**Replies:** 4\
**Last updated:** [September 23, 2009, 10:51am UTC](https://www.ruby-forum.com/t/how-to-detect-what-is-running-ruby-program/175884 "2009-09-23T10:51:14Z")

</div>

I work on a Windows platform and have two utiltities that I can execute a Ruby program from. The IDE SciTE and the fxri- Instant Ruby Enlightenment, or so it says. The input commands such as “gets” do not work in t…

---

## [\[Bug #2136\] $B7Y9p$,@5$7$/$J$$(B](https://www.ruby-forum.com/t/bug-2136-b7y9p-5-7-j-b/175957)

<div class="topic-metadata">

**Author:** [@tadayoshi\_funaba](https://www.ruby-forum.com/u/tadayoshi_funaba)\
**Replies:** 1\
**Last updated:** [September 23, 2009, 10:17am UTC](https://www.ruby-forum.com/t/bug-2136-b7y9p-5-7-j-b/175957 "2009-09-23T10:17:17Z")

</div>

Bug #2136: e$B7Y9p$,@5$7$/$J$$e(B http://redmine.ruby-lang.org/issues/show/2136 e$B5/I\<\<Te(B: tadayoshi funaba e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Low ruby -v: ruby 1.9.2dev (2009-09-23 trunk 25046) \[i686-linux\] B…

---

## [Random record retrieval from database](https://www.ruby-forum.com/t/random-record-retrieval-from-database/175973)

<div class="topic-metadata">

**Author:** [@subashinikumar](https://www.ruby-forum.com/u/subashinikumar)\
**Replies:** 1\
**Last updated:** [September 23, 2009, 9:01am UTC](https://www.ruby-forum.com/t/random-record-retrieval-from-database/175973 "2009-09-23T09:01:11Z")

</div>

How can i choose some “n” (n is gonna be fixed )records randomly from a mysql database table from our controller?

---

## [Error Executing C# Example Using IronRuby and Cucumber](https://www.ruby-forum.com/t/error-executing-c-example-using-ironruby-and-cucumber/175938)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 4\
**Last updated:** [September 23, 2009, 6:40am UTC](https://www.ruby-forum.com/t/error-executing-c-example-using-ironruby-and-cucumber/175938 "2009-09-23T06:40:04Z")

</div>

Here is the message: This is the default example which is hosted on http://wiki.github.com/aslakhellesoy/cucumber/ironruby-and-net C:\\ruby\\lib\\ruby\\gems\\1.8\\gems\\cucumber-0.3.101\\examples\\cs\>compile.bat C:\\ruby\\lib\\r…

---

## [Got it to work but whats with the crazy output](https://www.ruby-forum.com/t/got-it-to-work-but-whats-with-the-crazy-output/175941)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 2\
**Last updated:** [September 23, 2009, 6:37am UTC](https://www.ruby-forum.com/t/got-it-to-work-but-whats-with-the-crazy-output/175941 "2009-09-23T06:37:44Z")

</div>

I got Cucumber to use a C# dll. I had to explicitly compile the dll since compile.dll was giving some errors. Here is the result: C:\\ruby\\lib\\ruby\\gems\\1.8\\gems\\cucumber-0.3.101\\examples\\cs\>icucumber features Featur…

---

## [\[Bug:1.9\] ("00".."00").to\_a =\> \["0"\]](https://www.ruby-forum.com/t/bug-1-9-00-00-to-a-0/175939)

<div class="topic-metadata">

**Author:** [@Nobuhiro\_IMAI](https://www.ruby-forum.com/u/Nobuhiro_IMAI)\
**Replies:** 1\
**Last updated:** [September 23, 2009, 6:17am UTC](https://www.ruby-forum.com/t/bug-1-9-00-00-to-a-0/175939 "2009-09-23T06:17:49Z")

</div>

e$B$$$^$$$G$9!#e(B r24562 e$B0J9\_!"e(B(“00”…“00”).to\_a e$B$,e(B \[“0”\] e$B$K$J$j$^$9!#$=$l0JA0$Oe(B \[“00”\] e$B$G$7$?!#e(BString#upto e$B$NJQ99$K$h$k1F6A$N$h$&$G$9!#e(B $ ./miniruby -ve ‘p((“00”…“00”).to\_a)’ ruby 1.9.…

---

## [Spec Error with IronRuby for Loading .NET DLL](https://www.ruby-forum.com/t/spec-error-with-ironruby-for-loading-net-dll/175935)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 2\
**Last updated:** [September 23, 2009, 6:10am UTC](https://www.ruby-forum.com/t/spec-error-with-ironruby-for-loading-net-dll/175935 "2009-09-23T06:10:13Z")

</div>

I have done this before but for some reason this is failing: require ‘rubygems’ require ‘spec’ require File.dirname(FILE) + ‘/bin/Debug/BusinessObjects.dll’ include BusinessObjects describe PrimeService do it “shou…

---

## [Code Review: AsemblyResolve](https://www.ruby-forum.com/t/code-review-asemblyresolve/175951)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [September 23, 2009, 3:42am UTC](https://www.ruby-forum.com/t/code-review-asemblyresolve/175951 "2009-09-23T03:42:03Z")

</div>

tfpt review “/shelveset:AsemblyResolve;REDMOND\\tomat” Comment : Prevents a possible recursion caused by user code executed when processing AssemblyResolve event. Fixes http://ironruby.codeplex.com/WorkItem/View.aspx…

---

## [Decompose ActiveRecord script into methods](https://www.ruby-forum.com/t/decompose-activerecord-script-into-methods/175907)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 2\
**Last updated:** [September 23, 2009, 3:23am UTC](https://www.ruby-forum.com/t/decompose-activerecord-script-into-methods/175907 "2009-09-23T03:23:18Z")

</div>

If I commend out the def and end lines for the “all” method, the script runs fine. However, the goal is to decompose the script into several methods, which fails with: thufir@ARRAKIS:~/projects/aggregator$ thufir@AR…

---

## [File.exists? performance](https://www.ruby-forum.com/t/file-exists-performance/175910)

<div class="topic-metadata">

**Author:** [@arvias](https://www.ruby-forum.com/u/arvias)\
**Replies:** 3\
**Last updated:** [September 23, 2009, 3:20am UTC](https://www.ruby-forum.com/t/file-exists-performance/175910 "2009-09-23T03:20:22Z")

</div>

Hi. How CPU intensive is File.exists? ? I am thinking of adding theme support in my rails project. I want it to check if theme image exists and if it doesn’t display a default one. This would mean a File.exists? for …

---

## [Sponsors welcome for JRubyConf](https://www.ruby-forum.com/t/sponsors-welcome-for-jrubyconf/175948)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [September 23, 2009, 2:19am UTC](https://www.ruby-forum.com/t/sponsors-welcome-for-jrubyconf/175948 "2009-09-23T02:19:27Z")

</div>

We can always use more sponsors for JRubyConf, so I wanted to let folks on this list know. Sponsorship cost is very reasonable, and we’re hoping to get a lot of JRuby business users involved in this and future events.…

---

## [Libglade2](https://www.ruby-forum.com/t/libglade2/175749)

<div class="topic-metadata">

**Author:** [@Mathspeedy](https://www.ruby-forum.com/u/Mathspeedy)\
**Replies:** 8\
**Last updated:** [September 23, 2009, 2:06am UTC](https://www.ruby-forum.com/t/libglade2/175749 "2009-09-23T02:06:34Z")

</div>

Hi!, I’m having a problem loading the the glade library (libglade2), here’s an example of what is happening.: irb(main):001:0\> require "libglade2" LoadError: no such file to load -- libglade2 from (irb):1:in \`requir…

---

## [Dlr-languages package uploaded](https://www.ruby-forum.com/t/dlr-languages-package-uploaded/175929)

<div class="topic-metadata">

**Author:** [@C.JSAdams-Collier](https://www.ruby-forum.com/u/C.JSAdams-Collier)\
**Replies:** 0\
**Last updated:** [September 23, 2009, 12:19am UTC](https://www.ruby-forum.com/t/dlr-languages-package-uploaded/175929 "2009-09-23T00:19:18Z")

</div>

Hey all, I met with Dino the other day and was informed that the snapshot we took on 08/05/2009 is a little out of date. That said, it has now been uploaded to the Debian FTP server for review by the FTP Masters: ht…

---

## [Redirect STDOUT to function?](https://www.ruby-forum.com/t/redirect-stdout-to-function/175877)

<div class="topic-metadata">

**Author:** [@makki](https://www.ruby-forum.com/u/makki)\
**Replies:** 5\
**Last updated:** [September 22, 2009, 11:51pm UTC](https://www.ruby-forum.com/t/redirect-stdout-to-function/175877 "2009-09-22T23:51:11Z")

</div>

Hello, I’m using Ruby as a scripting language for a program that supports the WSH scripting interface, and I have a small problem: ‘puts’ and other output functions don’t work (because STDOUT is invalid), as with ‘get…

---

## [Getting buildr to create an IDEA project file fails on a Scala dependency](https://www.ruby-forum.com/t/getting-buildr-to-create-an-idea-project-file-fails-on-a-scala-dependency/175922)

<div class="topic-metadata">

**Author:** [@Ijonas\_Kisselbach](https://www.ruby-forum.com/u/Ijonas_Kisselbach)\
**Replies:** 0\
**Last updated:** [September 22, 2009, 10:11pm UTC](https://www.ruby-forum.com/t/getting-buildr-to-create-an-idea-project-file-fails-on-a-scala-dependency/175922 "2009-09-22T22:11:05Z")

</div>

Please ignore my post of earlier today… For some reason, maybe copy & paste, I had a reference to axiom-dom. Removing the reference resolved the issue. Thanks, Ijonas. To unsubscribe from this list, please visit: h…

---

## [Remove\_const vs. Object.remove\_const vs. Object.instance\_eval { remove\_const }](https://www.ruby-forum.com/t/remove-const-vs-object-remove-const-vs-object-instance-eval-remove-const/175919)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 1\
**Last updated:** [September 22, 2009, 10:10pm UTC](https://www.ruby-forum.com/t/remove-const-vs-object-remove-const-vs-object-instance-eval-remove-const/175919 "2009-09-22T22:10:30Z")

</div>

In order to remove a class, I have to use Object.instance\_eval { remove\_const } Why couldn’t I just use remove\_const or Object.remove\_const ?

---

## [SOAP result with an element named id](https://www.ruby-forum.com/t/soap-result-with-an-element-named-id/175920)

<div class="topic-metadata">

**Author:** [@twaters](https://www.ruby-forum.com/u/twaters)\
**Replies:** 0\
**Last updated:** [September 22, 2009, 9:10pm UTC](https://www.ruby-forum.com/t/soap-result-with-an-element-named-id/175920 "2009-09-22T21:10:48Z")

</div>

Say I have a soap object like… #\<SOAP::Mapping::Object:0x…fdbc0ee36 {}id=“120” {}name=“Welcome”\> How does one get the id value out? object.id gives the object\_id, not the 120 I am needing… Thanks -tim

---

## [NetBeans 6.7.1 update2 for ruby-debug-ide19 released](https://www.ruby-forum.com/t/netbeans-6-7-1-update2-for-ruby-debug-ide19-released/175872)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 2\
**Last updated:** [September 22, 2009, 9:10pm UTC](https://www.ruby-forum.com/t/netbeans-6-7-1-update2-for-ruby-debug-ide19-released/175872 "2009-09-22T21:10:37Z")

</div>

Changes: Variable values can now be changed in “variables” debugger window “pause” command added “jump” command bug fixed See: http://wiki.github.com/mark-moseley/ruby-debug/netbeans-671-ide-updates

---

## [Can't use a timeout with Socket::getaddrinfo](https://www.ruby-forum.com/t/cant-use-a-timeout-with-socket-getaddrinfo/175918)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 2\
**Last updated:** [September 22, 2009, 8:59pm UTC](https://www.ruby-forum.com/t/cant-use-a-timeout-with-socket-getaddrinfo/175918 "2009-09-22T20:59:07Z")

</div>

Does anyone know how to successfully implement a timeout with Socket::getaddrinfo? This function works great against IP addresses that are resolvable. In other cases where DNS can’t find a hostname, getaddrinfo can …

---

## [HITS in Ruby](https://www.ruby-forum.com/t/hits-in-ruby/175912)

<div class="topic-metadata">

**Author:** [@gimmickivek](https://www.ruby-forum.com/u/gimmickivek)\
**Replies:** 0\
**Last updated:** [September 22, 2009, 7:00pm UTC](https://www.ruby-forum.com/t/hits-in-ruby/175912 "2009-09-22T19:00:44Z")

</div>

Is there a module to comupute HITS(hypertext induced topic search) in Ruby?

---

## [Getting to one attribute of my marshalled array of objects](https://www.ruby-forum.com/t/getting-to-one-attribute-of-my-marshalled-array-of-objects/226050)

<div class="topic-metadata">

**Author:** [@bct](https://www.ruby-forum.com/u/bct)\
**Replies:** 8\
**Last updated:** [September 22, 2009, 6:47pm UTC](https://www.ruby-forum.com/t/getting-to-one-attribute-of-my-marshalled-array-of-objects/226050 "2009-09-22T18:47:21Z")

</div>

I have looked around for an answer to this on the mailing list and Google searches, but I am not finding anything, so sorry if this question seems too basic but… I am just learning Ruby, and one of my class assignment…

---

## [Piping input from Kernel::open throws NotImplementedError](https://www.ruby-forum.com/t/piping-input-from-kernel-open-throws-notimplementederror/175906)

<div class="topic-metadata">

**Author:** [@Xerxes\_Battiwalla](https://www.ruby-forum.com/u/Xerxes_Battiwalla)\
**Replies:** 0\
**Last updated:** [September 22, 2009, 5:44pm UTC](https://www.ruby-forum.com/t/piping-input-from-kernel-open-throws-notimplementederror/175906 "2009-09-22T17:44:07Z")

</div>

Apologies for re-sending, but this never made it onto the ruby-forums because of the previous outage. Hi there, I’m trying to get the AutoTest/AutoSpec script for Cucumber to work under IronRuby. The cucumber\_mixin.…

---

## [Firewatir and Accents](https://www.ruby-forum.com/t/firewatir-and-accents/175903)

<div class="topic-metadata">

**Author:** [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Replies:** 0\
**Last updated:** [September 22, 2009, 4:43pm UTC](https://www.ruby-forum.com/t/firewatir-and-accents/175903 "2009-09-22T16:43:50Z")

</div>

Dear all, I’d like to use firewatir to automate a website (ruby 1.9.1p243 on ubuntu jaunty, Firefox 3.0.14, latest firewatir). The script below is supposed to conjugate some Portuguese verbs. The code below works ni…

---

## [Ruby-oci8 function](https://www.ruby-forum.com/t/ruby-oci8-function/175857)

<div class="topic-metadata">

**Author:** [@beny18241](https://www.ruby-forum.com/u/beny18241)\
**Replies:** 10\
**Last updated:** [September 22, 2009, 4:02pm UTC](https://www.ruby-forum.com/t/ruby-oci8-function/175857 "2009-09-22T16:02:21Z")

</div>

Hi, I have few oracle functions for example: create or replace FUNCTION FUNCTION1(p\_ID test.name% TYPE) RETURN VARCHAR2 is result VARCHAR2(5); BEGIN SELECT name || number into result from Test where name = p\_id; …

---

## [Start\_with](https://www.ruby-forum.com/t/start-with/175880)

<div class="topic-metadata">

**Author:** [@rgreen](https://www.ruby-forum.com/u/rgreen)\
**Replies:** 4\
**Last updated:** [September 22, 2009, 2:37pm UTC](https://www.ruby-forum.com/t/start-with/175880 "2009-09-22T14:37:24Z")

</div>

Can someone explain why this doesn’t work? class Person attr\_accessor :firstName P=\[\] def initialize P \<\< self end def self.find\_person(part) P.each {|e| if e.firstName.start\_with(part) then return e end} end e…

---

## [Error Downloading Cucumber using Igem](https://www.ruby-forum.com/t/error-downloading-cucumber-using-igem/175882)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 1\
**Last updated:** [September 22, 2009, 1:29pm UTC](https://www.ruby-forum.com/t/error-downloading-cucumber-using-igem/175882 "2009-09-22T13:29:30Z")

</div>

C:\\DevTools\\IronRuby\\ironruby\\Merlin\\Main\\Languages\\Ruby\\Scripts\\bin\>ir igem ins tall cucumber ERROR: While executing gem … (RangeError) bignum too big to convert into Fixnum C:\\DevTools\\IronRuby\\ironruby\\Merlin\\M…

---

## [Code Review: BugFixes](https://www.ruby-forum.com/t/code-review-bugfixes/175893)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [September 22, 2009, 11:19am UTC](https://www.ruby-forum.com/t/code-review-bugfixes/175893 "2009-09-22T11:19:34Z")

</div>

tfpt review “/shelveset:BugFixes;REDMOND\\tomat” Comment : Affects DLR and Ruby. Fixes bugs: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2476 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId…

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

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