# Ruby

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

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

---

## [Forking job scheduler](https://www.ruby-forum.com/t/forking-job-scheduler/70482)

<div class="topic-metadata">

**Author:** [@kpd](https://www.ruby-forum.com/u/kpd)\
**Replies:** 6\
**Last updated:** [September 29, 2006, 5:45pm UTC](https://www.ruby-forum.com/t/forking-job-scheduler/70482 "2006-09-29T17:45:05Z")

</div>

Hi all, If anyone is willing, I’d be grateful for some advice on the forking job scheduler I’ve written. It works fine in simple tests, but does not feel elegant. On IRC kbrooks recommended an asynchronous main loop,…

---

## [Rubygems front end?](https://www.ruby-forum.com/t/rubygems-front-end/70385)

<div class="topic-metadata">

**Author:** [@ezra\_z](https://www.ruby-forum.com/u/ezra_z)\
**Replies:** 3\
**Last updated:** [September 29, 2006, 5:33pm UTC](https://www.ruby-forum.com/t/rubygems-front-end/70385 "2006-09-29T17:33:02Z")

</div>

Does one exist? I wanted to have a look at how one would go about it. Or to be more specific, I need to make a web interface that I can use to search the available gems, and list their descriptions and versions. I can…

---

## [BetaBrite LED sign library - 0.0.2](https://www.ruby-forum.com/t/betabrite-led-sign-library-0-0-2/70444)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 2\
**Last updated:** [September 29, 2006, 5:20pm UTC](https://www.ruby-forum.com/t/betabrite-led-sign-library-0-0-2/70444 "2006-09-29T17:20:58Z")

</div>

The BetaBrite LED sign library version 0.0.2 is now available = Description This library is for controlling BetaBrite LED signs. You can write messages, picture files, control the color, font, etc. You can display sp…

---

## [How to determine if pipe is given](https://www.ruby-forum.com/t/how-to-determine-if-pipe-is-given/70241)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 37\
**Last updated:** [September 29, 2006, 4:50pm UTC](https://www.ruby-forum.com/t/how-to-determine-if-pipe-is-given/70241 "2006-09-29T16:50:45Z")

</div>

To retrieve piped input to my program I can use something like ARGF.readlines However, if there is no piped data, this will wait for input from the terminal- how can I avoid this? Thanks, Greg Weber

---

## [Enum](https://www.ruby-forum.com/t/enum/67576)

<div class="topic-metadata">

**Author:** [@ohad](https://www.ruby-forum.com/u/ohad)\
**Replies:** 6\
**Last updated:** [September 29, 2006, 4:02pm UTC](https://www.ruby-forum.com/t/enum/67576 "2006-09-29T16:02:25Z")

</div>

I want an enum of sorts in my Rails application. I have a Project object, which has four possible status settings, as indicated here: class Project \< ActiveRecord:Base … class \<\< self def statuses \[ ‘Hidden’, ‘Ava…

---

## [Popular RubyForge themes](https://www.ruby-forum.com/t/popular-rubyforge-themes/70369)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 2\
**Last updated:** [September 29, 2006, 3:14pm UTC](https://www.ruby-forum.com/t/popular-rubyforge-themes/70369 "2006-09-29T15:14:18Z")

</div>

I just posted some numbers on how many people are using the various themes available on RubyForge: http://tomcopeland.blogs.com/ Enjoy, Tom

---

## [Code Golf Challenge : Oblongular Number Spirals](https://www.ruby-forum.com/t/code-golf-challenge-oblongular-number-spirals/70200)

<div class="topic-metadata">

**Author:** [@Carl\_D](https://www.ruby-forum.com/u/Carl_D)\
**Replies:** 19\
**Last updated:** [September 29, 2006, 2:42pm UTC](https://www.ruby-forum.com/t/code-golf-challenge-oblongular-number-spirals/70200 "2006-09-29T14:42:13Z")

</div>

Hi all, For those who found the 1,000 Digits of Pi problem too daunting, here’s something a little simpler for you. The new Code Golf\[1\] challenge involves you having to create a number spiral such as : 1 2 3 10 …

---

## [Search string in HTML file](https://www.ruby-forum.com/t/search-string-in-html-file/69623)

<div class="topic-metadata">

**Author:** [@jverger](https://www.ruby-forum.com/u/jverger)\
**Replies:** 8\
**Last updated:** [September 29, 2006, 2:31pm UTC](https://www.ruby-forum.com/t/search-string-in-html-file/69623 "2006-09-29T14:31:39Z")

</div>

Hi, I’m looking the way of searching an string in a HTML file given the URL. The parameter will be “value” … it has to be that format, exactly. I’m trying with Hpricot (http://code.whytheluckystiff.net/hpricot) wh…

---

## [Accessing Nested Hashes Directly](https://www.ruby-forum.com/t/accessing-nested-hashes-directly/70096)

<div class="topic-metadata">

**Author:** [@toro04](https://www.ruby-forum.com/u/toro04)\
**Replies:** 7\
**Last updated:** [September 29, 2006, 2:26pm UTC](https://www.ruby-forum.com/t/accessing-nested-hashes-directly/70096 "2006-09-29T14:26:10Z")

</div>

I’ve been having a problem for a while with Ruby where accessing a hash within a hash will fail if the first hash is nil. As an example, Rails accepts XML input to an action by passing it through REXML. On an XML docu…

---

## [Cookbook example - uninitialized constant](https://www.ruby-forum.com/t/cookbook-example-uninitialized-constant/69734)

<div class="topic-metadata">

**Author:** [@shinji](https://www.ruby-forum.com/u/shinji)\
**Replies:** 13\
**Last updated:** [September 29, 2006, 1:09pm UTC](https://www.ruby-forum.com/t/cookbook-example-uninitialized-constant/69734 "2006-09-29T13:09:34Z")

</div>

Cross posting this from Ubuntu forums I recently got the excellent Ruby cookbook and scanning through quickly seized upon the Blinkenlights examples. However I’m seeing something like this: ./blinkenlights.rb ./blin…

---

## [Ruby apps useing multiple files](https://www.ruby-forum.com/t/ruby-apps-useing-multiple-files/70407)

<div class="topic-metadata">

**Author:** [@Nigel\_W](https://www.ruby-forum.com/u/Nigel_W)\
**Replies:** 5\
**Last updated:** [September 29, 2006, 11:33am UTC](https://www.ruby-forum.com/t/ruby-apps-useing-multiple-files/70407 "2006-09-29T11:33:01Z")

</div>

Hi folks I’m writing an app in ruby and want to split it into more than one file to make it more manageable. How do I get the main file to include the others. Do I use some sort of include, require or load command or …

---

## ["" vs ''](https://www.ruby-forum.com/t/vs/99175)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 17\
**Last updated:** [September 29, 2006, 10:29am UTC](https://www.ruby-forum.com/t/vs/99175 "2006-09-29T10:29:32Z")

</div>

I know this is a very simply question, but I’ve seen many different responses. Isn’t it better to use ‘some string’ instead of “some string”. Because the “” goes through a lot more working interpreting any variable t…

---

## [Problem in search folder,](https://www.ruby-forum.com/t/problem-in-search-folder/70442)

<div class="topic-metadata">

**Author:** [@srinivas224](https://www.ruby-forum.com/u/srinivas224)\
**Replies:** 0\
**Last updated:** [September 29, 2006, 7:03am UTC](https://www.ruby-forum.com/t/problem-in-search-folder/70442 "2006-09-29T07:03:40Z")

</div>

HI all, I am software test engineer working Outlook based project, Object by using ruby script is user requested folder should select on already opened outlook. I am able to get this functionality on new outlook laun…

---

## [R-Pass 0.1 (Ruby Presentation Assistant)](https://www.ruby-forum.com/t/r-pass-0-1-ruby-presentation-assistant/70441)

<div class="topic-metadata">

**Author:** [@Esteban\_Manchado\_SS](https://www.ruby-forum.com/u/Esteban_Manchado_SS)\
**Replies:** 0\
**Last updated:** [September 29, 2006, 6:25am UTC](https://www.ruby-forum.com/t/r-pass-0-1-ruby-presentation-assistant/70441 "2006-09-29T06:25:03Z")

</div>

Hi guys, R-Pass R-Pass (the Ruby Presentation Assistant) is a bundle of small utilities and configuration files to assist you when writing talk slides and when giving talks and demos. The main utility is a small te…

---

## [Automatic globbing of ARGV](https://www.ruby-forum.com/t/automatic-globbing-of-argv/70272)

<div class="topic-metadata">

**Author:** [@cmanruby](https://www.ruby-forum.com/u/cmanruby)\
**Replies:** 4\
**Last updated:** [September 29, 2006, 5:51am UTC](https://www.ruby-forum.com/t/automatic-globbing-of-argv/70272 "2006-09-29T05:51:01Z")

</div>

I found a funny feature of Ruby tonight: if possible, commandline arguments are automatically globbed. For instance in a directory with one file foo.bar: test.rb \*.bar =\> ARGV = \[‘foo.bar’\] test.rb .html =\> ARGV = …

---

## [Require 'rubygems' but return false](https://www.ruby-forum.com/t/require-rubygems-but-return-false/70435)

<div class="topic-metadata">

**Author:** [@Haofei](https://www.ruby-forum.com/u/Haofei)\
**Replies:** 1\
**Last updated:** [September 29, 2006, 5:33am UTC](https://www.ruby-forum.com/t/require-rubygems-but-return-false/70435 "2006-09-29T05:33:00Z")

</div>

i just installed the one click installer 1.8.5 on windows, but i can not use any gems coz require ‘rubygems’ return false. is there any thing i have to config? thanks :slight\_smile:

---

## [Looking for a paragon or two](https://www.ruby-forum.com/t/looking-for-a-paragon-or-two/70431)

<div class="topic-metadata">

**Author:** [@Frank\_Davis](https://www.ruby-forum.com/u/Frank_Davis)\
**Replies:** 0\
**Last updated:** [September 29, 2006, 2:58am UTC](https://www.ruby-forum.com/t/looking-for-a-paragon-or-two/70431 "2006-09-29T02:58:22Z")

</div>

I saw a posting here recently about “The well tempered Ruby application” (http://rubyforge.org/projects/hello/), an example/template project that demonstrates standards and best practices for structuring your Ruby pro…

---

## [Strange error in jcode.rb when converting range to array](https://www.ruby-forum.com/t/strange-error-in-jcode-rb-when-converting-range-to-array/70282)

<div class="topic-metadata">

**Author:** [@Hammed\_M](https://www.ruby-forum.com/u/Hammed_M)\
**Replies:** 4\
**Last updated:** [September 29, 2006, 2:50am UTC](https://www.ruby-forum.com/t/strange-error-in-jcode-rb-when-converting-range-to-array/70282 "2006-09-29T02:50:21Z")

</div>

In my rails app I’ve line with the following code: (“a”…“z”).to\_a Simple enough and it’s been working for a while. Last night this line started throwing the following error: undefined method \[\]' for nil:NilClass /usr…

---

## [Re: Curses](https://www.ruby-forum.com/t/re-curses/70430)

<div class="topic-metadata">

**Author:** [@OverdorfS\_Sam](https://www.ruby-forum.com/u/OverdorfS_Sam)\
**Replies:** 0\
**Last updated:** [September 29, 2006, 2:40am UTC](https://www.ruby-forum.com/t/re-curses/70430 "2006-09-29T02:40:21Z")

</div>

That is always the $64,000 question.

---

## [Using resolv to get the mailhost](https://www.ruby-forum.com/t/using-resolv-to-get-the-mailhost/70367)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 1\
**Last updated:** [September 29, 2006, 2:38am UTC](https://www.ruby-forum.com/t/using-resolv-to-get-the-mailhost/70367 "2006-09-29T02:38:20Z")

</div>

Hi, I’m trying to figure out a way to get the mailhost using the ‘resolv’ library, but I’m having trouble because it isn’t documented. What’s a good analogue of this Perl script? use strict; use Net::DNS; my $reso…

---

## [Question on exec subprocesses](https://www.ruby-forum.com/t/question-on-exec-subprocesses/70416)

<div class="topic-metadata">

**Author:** [@Phy\_P](https://www.ruby-forum.com/u/Phy_P)\
**Replies:** 4\
**Last updated:** [September 29, 2006, 2:34am UTC](https://www.ruby-forum.com/t/question-on-exec-subprocesses/70416 "2006-09-29T02:34:20Z")

</div>

Folks, Can someone shed some light on how I can accomplish something similar to this: exec(“foo action”) exec(“foobar action”) Process.wait I want to wait on the second process, yet in ruby 184, all processes are …

---

## [(slightly O/T) Agile dev. contract form for clients?](https://www.ruby-forum.com/t/slightly-o-t-agile-dev-contract-form-for-clients/69046)

<div class="topic-metadata">

**Author:** [@prichard](https://www.ruby-forum.com/u/prichard)\
**Replies:** 3\
**Last updated:** [September 29, 2006, 2:24am UTC](https://www.ruby-forum.com/t/slightly-o-t-agile-dev-contract-form-for-clients/69046 "2006-09-29T02:24:19Z")

</div>

Apologies for cross-posting. We’ve been asked to do a job for a client who wants to embrace agile development methodologies. Hurrah! However, our standard contract was written for the 1980s. It is full of phrases lik…

---

## [Ruby with Qt or GTK?](https://www.ruby-forum.com/t/ruby-with-qt-or-gtk/70206)

<div class="topic-metadata">

**Author:** [@gugui](https://www.ruby-forum.com/u/gugui)\
**Replies:** 22\
**Last updated:** [September 29, 2006, 1:52am UTC](https://www.ruby-forum.com/t/ruby-with-qt-or-gtk/70206 "2006-09-29T01:52:18Z")

</div>

Hi all ! IÂ´m learning Ruby and need to develop in GUI interfaces ! What the best way ? Qt or GTK ? IÂ´d like to hear your opinions ! thanks a lot !

---

## [Overriding WEBrick::HTTPServer's :Logger when calling XMLRPC](https://www.ruby-forum.com/t/overriding-webrick-httpservers-logger-when-calling-xmlrpc/70418)

<div class="topic-metadata">

**Author:** [@James\_Mills](https://www.ruby-forum.com/u/James_Mills)\
**Replies:** 0\
**Last updated:** [September 29, 2006, 1:36am UTC](https://www.ruby-forum.com/t/overriding-webrick-httpservers-logger-when-calling-xmlrpc/70418 "2006-09-29T01:36:17Z")

</div>

Hello all. I have a program that has a thread serving up an XMLRPC API. Up to this point, I have been happy letting it log eveything to stdout. However, as I move forward, I want to combine every log event in my pro…

---

## [RMagick 1.14.0](https://www.ruby-forum.com/t/rmagick-1-14-0/70417)

<div class="topic-metadata">

**Author:** [@tim-hunter](https://www.ruby-forum.com/u/tim-hunter)\
**Replies:** 0\
**Last updated:** [September 29, 2006, 1:12am UTC](https://www.ruby-forum.com/t/rmagick-1-14-0/70417 "2006-09-29T01:12:13Z")

</div>

I’ve just uploaded RMagick 1.14.0 to RubyForge. There have been many, many changes since the previous release. Here’s the highlights: o For those folks who are familiar with the ImageMagick/GraphicsMagick commands …

---

## [Regular expression reformating a value](https://www.ruby-forum.com/t/regular-expression-reformating-a-value/70357)

<div class="topic-metadata">

**Author:** [@stevenreplica](https://www.ruby-forum.com/u/stevenreplica)\
**Replies:** 4\
**Last updated:** [September 29, 2006, 12:02am UTC](https://www.ruby-forum.com/t/regular-expression-reformating-a-value/70357 "2006-09-29T00:02:05Z")

</div>

I am not really sure how to do this. I have a series of number that need parsed. Strip the zeros, if a caret exists replace it with a slash. 1.) 000123^2 - should be 123/2 2.) 1^2 - should be 1/2 3.) 0001 - should b…

---

## [Ruby connection to MySql](https://www.ruby-forum.com/t/ruby-connection-to-mysql/69558)

<div class="topic-metadata">

**Author:** [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Replies:** 10\
**Last updated:** [September 28, 2006, 11:49pm UTC](https://www.ruby-forum.com/t/ruby-connection-to-mysql/69558 "2006-09-28T23:49:06Z")

</div>

I’m going thru the “PickAxe” book but can find only limited information in it regarding how Ruby connects to and uses MySql… Is there any documentation available in regard to this? Thanks, Pat

---

## [Define\_method confusery](https://www.ruby-forum.com/t/define-method-confusery/70360)

<div class="topic-metadata">

**Author:** [@mjcharl](https://www.ruby-forum.com/u/mjcharl)\
**Replies:** 4\
**Last updated:** [September 28, 2006, 11:32pm UTC](https://www.ruby-forum.com/t/define-method-confusery/70360 "2006-09-28T23:32:01Z")

</div>

So I have some code which adds a method to a class based on user input like this: class Klass Do nowt originally end Get the name of a method to add puts “Enter the name of the method to add” $stdout.flush method…

---

## [Re: Curses](https://www.ruby-forum.com/t/re-curses/70396)

<div class="topic-metadata">

**Author:** [@OverdorfS\_Sam](https://www.ruby-forum.com/u/OverdorfS_Sam)\
**Replies:** 1\
**Last updated:** [September 28, 2006, 10:45pm UTC](https://www.ruby-forum.com/t/re-curses/70396 "2006-09-28T22:45:55Z")

</div>

So can we change the Ruby Library? Sam Overdorf

---

## [Namelists -\> web forms](https://www.ruby-forum.com/t/namelists-web-forms/70397)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 0\
**Last updated:** [September 28, 2006, 9:31pm UTC](https://www.ruby-forum.com/t/namelists-web-forms/70397 "2006-09-28T21:31:32Z")

</div>

Hello, Any thoughts/guidance on creating a modern incarnation of NLEdit, NLEdit: A generic graphical user interface for Fortran programs - NASA Technical Reports Server (NTRS) NLEdit turns Fortran namelists, which lo…

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

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