# Ruby

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

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

---

## [Need Solaris Help](https://www.ruby-forum.com/t/need-solaris-help/111480)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 19\
**Last updated:** [August 8, 2007, 3:48pm UTC](https://www.ruby-forum.com/t/need-solaris-help/111480 "2007-08-08T15:48:10Z")

</div>

I’m told the following bit of code doesn’t work on Solaris: # A Unix savvy method to fetch the console columns, and rows. def terminal\_size \`stty size\`.split.map { |x| x.to\_i }.reverse end HighLine makes u…

---

## [Ruby: Looking for advice regarding Linux, wireless networkin](https://www.ruby-forum.com/t/ruby-looking-for-advice-regarding-linux-wireless-networkin/111292)

<div class="topic-metadata">

**Author:** [@Gus\_S\_Calabrese](https://www.ruby-forum.com/u/Gus_S_Calabrese)\
**Replies:** 2\
**Last updated:** [August 8, 2007, 3:15pm UTC](https://www.ruby-forum.com/t/ruby-looking-for-advice-regarding-linux-wireless-networkin/111292 "2007-08-08T15:15:03Z")

</div>

I want to hire a teacher/advisor to get me past some knowledge roadblocks. My budget is a max of $250 to $500. http://oh-god.com/a335/ \<----- diagram of concept ( I don’t know the proper nomenclature, and I apologiz…

---

## [RSRuby?](https://www.ruby-forum.com/t/rsruby/111508)

<div class="topic-metadata">

**Author:** [@michaels](https://www.ruby-forum.com/u/michaels)\
**Replies:** 3\
**Last updated:** [August 8, 2007, 12:19pm UTC](https://www.ruby-forum.com/t/rsruby/111508 "2007-08-08T12:19:24Z")

</div>

Hello, I was hoping someone here can help me with an install of Rsruby. I have it installed on one box but have been having trouble on my other. My R libraries are installed in /usr/local/lib64/R/ the mkmf file is …

---

## [How to scan a RARRAY?](https://www.ruby-forum.com/t/how-to-scan-a-rarray/111453)

<div class="topic-metadata">

**Author:** [@unbewust](https://www.ruby-forum.com/u/unbewust)\
**Replies:** 3\
**Last updated:** [August 8, 2007, 11:11am UTC](https://www.ruby-forum.com/t/how-to-scan-a-rarray/111453 "2007-08-08T11:11:14Z")

</div>

from ruby.h : struct RArray { struct RBasic basic; long len; union { long capa; VALUE shared; } aux; VALUE \*ptr; }; my module make use of : VALUE m\_set\_icon(VALUE self, VALUE src\_path, VALUE dst\_pathes\[\]) dst…

---

## [Yarv and C](https://www.ruby-forum.com/t/yarv-and-c/111506)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 8, 2007, 9:03am UTC](https://www.ruby-forum.com/t/yarv-and-c/111506 "2007-08-08T09:03:57Z")

</div>

I have a somewhat large library written in C that I want to be able to call from ruby and I have used SWIG in the past. Right now if I did this with swig it would take me several days, and I don’t want to risk this b…

---

## [JRuby on a huge project](https://www.ruby-forum.com/t/jruby-on-a-huge-project/196420)

<div class="topic-metadata">

**Author:** [@Dafi-Duck](https://www.ruby-forum.com/u/Dafi-Duck)\
**Replies:** 7\
**Last updated:** [August 8, 2007, 7:10am UTC](https://www.ruby-forum.com/t/jruby-on-a-huge-project/196420 "2007-08-08T07:10:48Z")

</div>

Hi, I am working on a new project built on websphere portal. I need to be able to have about 2 million concurrent users. If I use JRuby, will it work? Can JRuby work well on websphere portal? Can JRuby work with por…

---

## [Question - Passing parameters by reference](https://www.ruby-forum.com/t/question-passing-parameters-by-reference/110361)

<div class="topic-metadata">

**Author:** [@caof2005](https://www.ruby-forum.com/u/caof2005)\
**Replies:** 27\
**Last updated:** [August 8, 2007, 6:19am UTC](https://www.ruby-forum.com/t/question-passing-parameters-by-reference/110361 "2007-08-08T06:19:43Z")

</div>

Hello Folks My question is the following: How can I pass a reference to a method as an argument, so after finishing the execution of the method the argument gets updated with a new value. ( known as “pass by referenc…

---

## [Database placement](https://www.ruby-forum.com/t/database-placement/111510)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 1\
**Last updated:** [August 8, 2007, 5:07am UTC](https://www.ruby-forum.com/t/database-placement/111510 "2007-08-08T05:07:39Z")

</div>

hello: I have a question about the placement of database.When i use ruby console window to create a database named myData.This myData is always stored in the directry:“C:\\InstantRails\\mysql\\data”,but i want it to be …

---

## [Determining the common prefix for several strings](https://www.ruby-forum.com/t/determining-the-common-prefix-for-several-strings/111143)

<div class="topic-metadata">

**Author:** [@toadkicker](https://www.ruby-forum.com/u/toadkicker)\
**Replies:** 37\
**Last updated:** [August 8, 2007, 4:20am UTC](https://www.ruby-forum.com/t/determining-the-common-prefix-for-several-strings/111143 "2007-08-08T04:20:37Z")

</div>

I have several strings to analyze. The strings are the names of a list of things that were once ordered and now are not. A typical array of names might look like this: item001 item004 item002 item002b item002C …

---

## [Re: Determining the common prefix for several strings](https://www.ruby-forum.com/t/re-determining-the-common-prefix-for-several-strings/111347)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 3\
**Last updated:** [August 8, 2007, 4:15am UTC](https://www.ruby-forum.com/t/re-determining-the-common-prefix-for-several-strings/111347 "2007-08-08T04:15:36Z")

</div>

Here’s a simple solution from my simple brain. It just takes the common prefix between the first two items, then the common prefix between this and the third, etc. arr = %w{ item001 item004 item002 item002b item…

---

## [NetBeans IDE6 M10 and c-ruby](https://www.ruby-forum.com/t/netbeans-ide6-m10-and-c-ruby/111438)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 3\
**Last updated:** [August 8, 2007, 3:51am UTC](https://www.ruby-forum.com/t/netbeans-ide6-m10-and-c-ruby/111438 "2007-08-08T03:51:26Z")

</div>

hello: I have a NetBeans IDE6 M10 with something jruby in it,but what i have learned is c-ruby and ruby on rails.How do i install c-ruby and ruby on rails in NetBeans IDE6 M10 to design ruby on rails programme? Thank…

---

## [RMagick 2.0.0 beta1](https://www.ruby-forum.com/t/rmagick-2-0-0-beta1/111504)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 0\
**Last updated:** [August 8, 2007, 1:40am UTC](https://www.ruby-forum.com/t/rmagick-2-0-0-beta1/111504 "2007-08-08T01:40:25Z")

</div>

I’ve just uploaded RMagick 2.0.0 beta1. This beta release includes many, many changes from RMagick 1.15.8. RMagick 2.0.0-beta1 Highlights o New installation uses setup.rb exclusively o Requires Ruby 1.8.2 or later o…

---

## [Class String in a module](https://www.ruby-forum.com/t/class-string-in-a-module/111395)

<div class="topic-metadata">

**Author:** [@mobileamusement](https://www.ruby-forum.com/u/mobileamusement)\
**Replies:** 3\
**Last updated:** [August 7, 2007, 11:37pm UTC](https://www.ruby-forum.com/t/class-string-in-a-module/111395 "2007-08-07T23:37:12Z")

</div>

Hi all I have a module file which contains ‘class String’ and a couple of custom methods for me to add to Object::String. So I do something like: require ‘mystring’ or load or whatever. It doesn’t extend String’s fun…

---

## [Free RAM 1.0](https://www.ruby-forum.com/t/free-ram-1-0/111401)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 7\
**Last updated:** [August 7, 2007, 11:28pm UTC](https://www.ruby-forum.com/t/free-ram-1-0/111401 "2007-08-07T23:28:12Z")

</div>

Hey! Despite your best efforts, Todd, I managed to create a tool which will free RAM to be used by other programs. At the moment, it is only usable on \*nix machines (BSD, Linux, and Mac). Will add Windows support soo…

---

## [Ruby on the zaurus](https://www.ruby-forum.com/t/ruby-on-the-zaurus/111211)

<div class="topic-metadata">

**Author:** [@Sy\_Ali](https://www.ruby-forum.com/u/Sy_Ali)\
**Replies:** 16\
**Last updated:** [August 7, 2007, 10:59pm UTC](https://www.ruby-forum.com/t/ruby-on-the-zaurus/111211 "2007-08-07T22:59:05Z")

</div>

I’m happy with the older ruby 1.8.4 which I have for my Zaurus SL-C1000. I can finally get rubygems up and running and with that many other gems… but I cannot get ncurses working. This is because ncurses is expecting…

---

## [Array.each puzzle from new ruby-er](https://www.ruby-forum.com/t/array-each-puzzle-from-new-ruby-er/111474)

<div class="topic-metadata">

**Author:** [@gani](https://www.ruby-forum.com/u/gani)\
**Replies:** 8\
**Last updated:** [August 7, 2007, 10:15pm UTC](https://www.ruby-forum.com/t/array-each-puzzle-from-new-ruby-er/111474 "2007-08-07T22:15:59Z")

</div>

Given: lines = file.readlines("\\x15") # don’t ask :slight\_smile: lines.each do |y| y.chomp!("\\x15") y.sub!(/^\\n/,"") #kill off the extra line feeds if y =~ /^\*\*\*/ then y = “” + y + “” … \[ assume ends\] puts line…

---

## [Very weird behaviour of Ruby 1.8.6 with multi-line parenthes](https://www.ruby-forum.com/t/very-weird-behaviour-of-ruby-1-8-6-with-multi-line-parenthes/111405)

<div class="topic-metadata">

**Author:** [@Nicolas\_L](https://www.ruby-forum.com/u/Nicolas_L)\
**Replies:** 7\
**Last updated:** [August 7, 2007, 10:03pm UTC](https://www.ruby-forum.com/t/very-weird-behaviour-of-ruby-1-8-6-with-multi-line-parenthes/111405 "2007-08-07T22:03:56Z")

</div>

Hi, I’ve just lost a few hours on this strange behaviour (bug ?). Apparently it is caused by some kind of operator precedence thingamagic. My original code was of course much more complicated, so finding the problem …

---

## [MVC for desktop applications](https://www.ruby-forum.com/t/mvc-for-desktop-applications/111489)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 0\
**Last updated:** [August 7, 2007, 10:01pm UTC](https://www.ruby-forum.com/t/mvc-for-desktop-applications/111489 "2007-08-07T22:01:56Z")

</div>

Ok, yes I know about Rails, I’m even using that. But I’m curious about MVC apps on the desktop. I know there are some wrappers and various bindings, but is anyone working with a Ruby-centric MVC framework for desktop …

---

## [FreeRIDE vs Rails](https://www.ruby-forum.com/t/freeride-vs-rails/111464)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 5\
**Last updated:** [August 7, 2007, 9:56pm UTC](https://www.ruby-forum.com/t/freeride-vs-rails/111464 "2007-08-07T21:56:56Z")

</div>

Rubies: A perfectly factored program always has methods that are only 2 or 3 lines long, each in a file with only two or three methods. This means, with a well-factored system like Rails, you have to rapidly navigate…

---

## [Rails session problem](https://www.ruby-forum.com/t/rails-session-problem/111487)

<div class="topic-metadata">

**Author:** [@ronald\_braswell](https://www.ruby-forum.com/u/ronald_braswell)\
**Replies:** 0\
**Last updated:** [August 7, 2007, 9:42pm UTC](https://www.ruby-forum.com/t/rails-session-problem/111487 "2007-08-07T21:42:55Z")

</div>

I have two different browser sessions (on two different machines) running against a Rails (1.2.3) application which is being deployed with Apache 2.2.4 balacing requests across two Mongrels (1.0.1, cluster 1.0.2). I…

---

## [ModRuby Init Handler](https://www.ruby-forum.com/t/modruby-init-handler/111191)

<div class="topic-metadata">

**Author:** [@avanetix](https://www.ruby-forum.com/u/avanetix)\
**Replies:** 1\
**Last updated:** [August 7, 2007, 9:12pm UTC](https://www.ruby-forum.com/t/modruby-init-handler/111191 "2007-08-07T21:12:50Z")

</div>

Hello, Apache 2.2.4 Ruby 1.8.6 mod\_ruby 1.2.6 I try to use RubyInitHandler: ========================= .htaccess RubyRequire myhandlers.rb \<Files \*.html\> SetHandler ruby-object RubyInitHandler MyInitHandler.insta…

---

## [Row count of table](https://www.ruby-forum.com/t/row-count-of-table/111458)

<div class="topic-metadata">

**Author:** [@vanivk](https://www.ruby-forum.com/u/vanivk)\
**Replies:** 1\
**Last updated:** [August 7, 2007, 7:05pm UTC](https://www.ruby-forum.com/t/row-count-of-table/111458 "2007-08-07T19:05:31Z")

</div>

Hello all, I am stuck up in finding the row count of a table in a HTML page through Watir script. I am using row\_count() function to find the number of rows in the table. Its returning me incorrect number of rows in t…

---

## [Watir code problem & http](https://www.ruby-forum.com/t/watir-code-problem-http/111329)

<div class="topic-metadata">

**Author:** [@rorjeff](https://www.ruby-forum.com/u/rorjeff)\
**Replies:** 2\
**Last updated:** [August 7, 2007, 7:03pm UTC](https://www.ruby-forum.com/t/watir-code-problem-http/111329 "2007-08-07T19:03:31Z")

</div>

I’m trying to use Watir and of course being a none programmer I need help understanding the http source code. Can someone point me to a good http book. I get the following error when opening a web page with Watir. …

---

## [Ruby Metaprogramming](https://www.ruby-forum.com/t/ruby-metaprogramming/111227)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 14\
**Last updated:** [August 7, 2007, 5:42pm UTC](https://www.ruby-forum.com/t/ruby-metaprogramming/111227 "2007-08-07T17:42:21Z")

</div>

Are there any suggested resources on learning the art of Ruby metaprogramming? yea, it’s a short message… But a good one nonetheless ~ Ari Google has been visited.

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/111466)

<div class="topic-metadata">

**Author:** [@Colin\_Duncan](https://www.ruby-forum.com/u/Colin_Duncan)\
**Replies:** 0\
**Last updated:** [August 7, 2007, 5:20pm UTC](https://www.ruby-forum.com/t/unsubscribe/111466 "2007-08-07T17:20:17Z")

</div>

unsubscribe IMPORTANT - CONFIDENTIALITY NOTICE - This e-mail is intended only for the use of the individual or entity shown above as addressees. It may contain information which is privileged, confidential or oth…

---

## [Is that possible to install Ruby in a CD or USB to be used i](https://www.ruby-forum.com/t/is-that-possible-to-install-ruby-in-a-cd-or-usb-to-be-used-i/111439)

<div class="topic-metadata">

**Author:** [@zoat](https://www.ruby-forum.com/u/zoat)\
**Replies:** 1\
**Last updated:** [August 7, 2007, 4:48pm UTC](https://www.ruby-forum.com/t/is-that-possible-to-install-ruby-in-a-cd-or-usb-to-be-used-i/111439 "2007-08-07T16:48:14Z")

</div>

Hi All, I am working usually on a WSs with Solaris 9 but which does not have Ruby installed, and as I want to be able to run Ruby scripts on them, so is that possible to have it installed on a CD or USB memory key?

---

## [Feature request (pretty\_inspect variant, yielding single quo](https://www.ruby-forum.com/t/feature-request-pretty-inspect-variant-yielding-single-quo/111435)

<div class="topic-metadata">

**Author:** [@ronaldfischer](https://www.ruby-forum.com/u/ronaldfischer)\
**Replies:** 7\
**Last updated:** [August 7, 2007, 11:35am UTC](https://www.ruby-forum.com/t/feature-request-pretty-inspect-variant-yielding-single-quo/111435 "2007-08-07T11:35:28Z")

</div>

require ‘pp’ s=‘abc’ t=‘#{a}’ print s.pretty\_inspect print t.pretty\_inspect this outputs: “abc” “#{a}” This is of course correct - both show the content of the strings, and both print it in a way that this can b…

---

## [(C ext to Ruby) variable args count class](https://www.ruby-forum.com/t/c-ext-to-ruby-variable-args-count-class/111374)

<div class="topic-metadata">

**Author:** [@unbewust](https://www.ruby-forum.com/u/unbewust)\
**Replies:** 2\
**Last updated:** [August 7, 2007, 10:27am UTC](https://www.ruby-forum.com/t/c-ext-to-ruby-variable-args-count-class/111374 "2007-08-07T10:27:16Z")

</div>

i have a class “RFile” with varaible aruments number (1 to 3) this class is defined under a module “ROSXUtils” from the module i have three singleton : m\_trash(one arg) m\_move(two args) m\_rename(three args) in such…

---

## [MMS samples needed](https://www.ruby-forum.com/t/mms-samples-needed/111433)

<div class="topic-metadata">

**Author:** [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Replies:** 0\
**Last updated:** [August 7, 2007, 10:15am UTC](https://www.ruby-forum.com/t/mms-samples-needed/111433 "2007-08-07T10:15:13Z")

</div>

The MMS2R Gem (http://mms2r.rubyforge.org/) is in need of additional samples from the following North American cellular carriers: Alltel =\> message.alltel.com Boost Mobile =\> myboostmobile.com Einstein PCS =\> instein…

---

## [Mms2r 1.1.4 Released](https://www.ruby-forum.com/t/mms2r-1-1-4-released/111434)

<div class="topic-metadata">

**Author:** [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Replies:** 0\
**Last updated:** [August 7, 2007, 10:01am UTC](https://www.ruby-forum.com/t/mms2r-1-1-4-released/111434 "2007-08-07T10:01:12Z")

</div>

mms2r version 1.1.4 has been released! http://mms2r.rubyforge.org/ DESCRIPTION: MMS2R is a library that decodes the parts of an MMS message to disk while stripping out advertising injected by the cellphone carriers…

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

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