# Ruby

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

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

---

## [Recv](https://www.ruby-forum.com/t/recv/91346)

<div class="topic-metadata">

**Author:** [@mschipperheyn](https://www.ruby-forum.com/u/mschipperheyn)\
**Replies:** 1\
**Last updated:** [April 7, 2007, 6:29am UTC](https://www.ruby-forum.com/t/recv/91346 "2007-04-07T06:29:53Z")

</div>

Seemly stupid question, can anyone tell me what class the method recv is defined? I can’t find it anywhere (although I haven’t looked through the core source yet). Could it be an alias? Thanks, Marc

---

## [Alternate rubygems executable directory](https://www.ruby-forum.com/t/alternate-rubygems-executable-directory/91345)

<div class="topic-metadata">

**Author:** [@reflex](https://www.ruby-forum.com/u/reflex)\
**Replies:** 0\
**Last updated:** [April 7, 2007, 4:48am UTC](https://www.ruby-forum.com/t/alternate-rubygems-executable-directory/91345 "2007-04-07T04:48:48Z")

</div>

Hello Is it possible to specify the directory for executable installation in a gemspec file? I’d like to install some system-administration scripts using rubygems, but they should be installed in /usr/sbin, and I cou…

---

## [Ad-hoc debugging module](https://www.ruby-forum.com/t/ad-hoc-debugging-module/91342)

<div class="topic-metadata">

**Author:** [@rbe5000](https://www.ruby-forum.com/u/rbe5000)\
**Replies:** 0\
**Last updated:** [April 7, 2007, 2:54am UTC](https://www.ruby-forum.com/t/ad-hoc-debugging-module/91342 "2007-04-07T02:54:42Z")

</div>

Hi, I recently found myself playing with a bunch of objects, iterating their behavior in irb, and I wanted to see just some of the fields each time I did something instead of the whole object that you would get with …

---

## [Having Problem Installing RMagick](https://www.ruby-forum.com/t/having-problem-installing-rmagick/91339)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 2\
**Last updated:** [April 7, 2007, 12:17am UTC](https://www.ruby-forum.com/t/having-problem-installing-rmagick/91339 "2007-04-07T00:17:34Z")

</div>

I’m trying to install RMagick on Kubuntu Dapper using Rubygems. My installation is failing with the following error message: configure: error: Can’t install RMagick. Can’t find Magick-config or GraphicsMagick-config p…

---

## [Logic puzzle generation](https://www.ruby-forum.com/t/logic-puzzle-generation/90888)

<div class="topic-metadata">

**Author:** [@todd](https://www.ruby-forum.com/u/todd)\
**Replies:** 6\
**Last updated:** [April 6, 2007, 9:06pm UTC](https://www.ruby-forum.com/t/logic-puzzle-generation/90888 "2007-04-06T21:06:17Z")

</div>

I was wondering if anyone here could point me in the direction of some books/articles/etc. that talk about algorithms for logic puzzle generation (i.e. Sudoku). What I’m looking for is a way to generate puzzles, much …

---

## [Mkmf have\_header function on Windows XP](https://www.ruby-forum.com/t/mkmf-have-header-function-on-windows-xp/91323)

<div class="topic-metadata">

**Author:** [@blakeage](https://www.ruby-forum.com/u/blakeage)\
**Replies:** 2\
**Last updated:** [April 6, 2007, 8:56pm UTC](https://www.ruby-forum.com/t/mkmf-have-header-function-on-windows-xp/91323 "2007-04-06T20:56:57Z")

</div>

I’m trying to get an extension built on WinXP. It’s the PL/Ruby library for writing stored procedures for PostgreSQL. I’m posting this because it seems like a generic enough question. I’ve got Ruby 1.8.6. PostgreSQL…

---

## [A python question](https://www.ruby-forum.com/t/a-python-question/91325)

<div class="topic-metadata">

**Author:** [@tsuraan](https://www.ruby-forum.com/u/tsuraan)\
**Replies:** 2\
**Last updated:** [April 6, 2007, 8:52pm UTC](https://www.ruby-forum.com/t/a-python-question/91325 "2007-04-06T20:52:14Z")

</div>

So, I’m just going on the hope that the Ruby community, with its great number of other-language enthusiasts, might have a member or two who’s a Python guru. I asked this question about a week ago on the python list a…

---

## [String scan question](https://www.ruby-forum.com/t/string-scan-question/91319)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 8\
**Last updated:** [April 6, 2007, 8:35pm UTC](https://www.ruby-forum.com/t/string-scan-question/91319 "2007-04-06T20:35:10Z")

</div>

this is probably elementary but I just havent found the right/ reliable way to do this (that works always) if a string has content in tags such as content goes here \</ TagName\> whats the best way to put the content…

---

## [Ruby and log4r/ROMP](https://www.ruby-forum.com/t/ruby-and-log4r-romp/91237)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 6, 2007, 7:21pm UTC](https://www.ruby-forum.com/t/ruby-and-log4r-romp/91237 "2007-04-06T19:21:20Z")

</div>

I am looking for help with the log4r/examples logserver.rb and logclient.rb ROMP is located at: http://rubystuff.org/romp/ There is no information on how to install or use it. Can someone help me with this? When …

---

## [A convoluted question about stdout](https://www.ruby-forum.com/t/a-convoluted-question-about-stdout/91284)

<div class="topic-metadata">

**Author:** [@soroe](https://www.ruby-forum.com/u/soroe)\
**Replies:** 5\
**Last updated:** [April 6, 2007, 7:06pm UTC](https://www.ruby-forum.com/t/a-convoluted-question-about-stdout/91284 "2007-04-06T19:06:42Z")

</div>

Hey Guys, I know I can do a $stdout.reopen and redirect it to a file. Is there a more direct way to get at the contents of stdout… say, redirect stdout to variable? Sonny.

---

## [Ruby on Rails Developer Wanted!](https://www.ruby-forum.com/t/ruby-on-rails-developer-wanted/91320)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 6, 2007, 7:06pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-developer-wanted/91320 "2007-04-06T19:06:15Z")

</div>

Hello. We are an interactive media studio, seeking Ruby on Rails developers to work with us on-site at our Chicago office, full-time (9 to 5). Payroll and contract positions are available, but those on payroll will r…

---

## [Calculating Business Hours Left](https://www.ruby-forum.com/t/calculating-business-hours-left/91282)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 2\
**Last updated:** [April 6, 2007, 4:25pm UTC](https://www.ruby-forum.com/t/calculating-business-hours-left/91282 "2007-04-06T16:25:52Z")

</div>

current\_time = Time.new due\_time = # … some Time instance in the future work\_hours\_left\_before\_I\_am\_screwed = # … calculate I’m writing a little task-tracking app to help me put out the most urgent fires. As above, g…

---

## [The most useful code i've written in a while](https://www.ruby-forum.com/t/the-most-useful-code-ive-written-in-a-while/91250)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [April 6, 2007, 4:13pm UTC](https://www.ruby-forum.com/t/the-most-useful-code-ive-written-in-a-while/91250 "2007-04-06T16:13:49Z")

</div>

harp:~ \> cat errno #! /usr/bin/env ruby 256.times do |errno| puts “#{ errno } =\> #{ SystemCallError.new(errno).inspect }” end harp:~ \> errno 0 =\> #\<SystemCallError: Success\> 1 =\> #\<Errno::EPERM: Operation not perm…

---

## [Net::FTP puttextfile question](https://www.ruby-forum.com/t/net-ftp-puttextfile-question/91051)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 2\
**Last updated:** [April 6, 2007, 3:32pm UTC](https://www.ruby-forum.com/t/net-ftp-puttextfile-question/91051 "2007-04-06T15:32:43Z")

</div>

I’m trying to use the Net::FTP class to send a text file to my FTP server, but I don’t have an actual text file to send. Instead I want to send it a multi-line string as my “file”. (I’m using Builder to generate an …

---

## [Invoke base class nested method](https://www.ruby-forum.com/t/invoke-base-class-nested-method/91017)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 5\
**Last updated:** [April 6, 2007, 3:15pm UTC](https://www.ruby-forum.com/t/invoke-base-class-nested-method/91017 "2007-04-06T15:15:28Z")

</div>

Hi, I have an ObjectMap class that contains other classes. I inherit from the base class.Could someone tell me how I can run a nested class method from the inherited class? Here is the code: class ObjectMap @@ie…

---

## [Gangsta on rails](https://www.ruby-forum.com/t/gangsta-on-rails/102742)

<div class="topic-metadata">

**Author:** [@S\_ugly](https://www.ruby-forum.com/u/S_ugly)\
**Replies:** 2\
**Last updated:** [April 6, 2007, 2:26pm UTC](https://www.ruby-forum.com/t/gangsta-on-rails/102742 "2007-04-06T14:26:08Z")

</div>

a rap about rails: http://crookedhideout.com/blog\_entry/show/10

---

## [Textmate Ruby/Rails Developers - Your input re required snip](https://www.ruby-forum.com/t/textmate-ruby-rails-developers-your-input-re-required-snip/102743)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 0\
**Last updated:** [April 6, 2007, 2:02pm UTC](https://www.ruby-forum.com/t/textmate-ruby-rails-developers-your-input-re-required-snip/102743 "2007-04-06T14:02:03Z")

</div>

Hi all, The ever increasing Ruby & Rails support in Netbeans continues. The latest post is at http://blogs.sun.com/tor/entry/ruby\_screenshot\_of\_the\_week7 which now includes textmate bundles/snippet type support + m…

---

## [WWW::Mechanize issue when submitting multiple forms](https://www.ruby-forum.com/t/www-mechanize-issue-when-submitting-multiple-forms/102740)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [April 6, 2007, 11:30am UTC](https://www.ruby-forum.com/t/www-mechanize-issue-when-submitting-multiple-forms/102740 "2007-04-06T11:30:57Z")

</div>

Hi All, I am using eruby and Mechanize to submit forms on a website. The first form has a “Accept Agreement” checkbox, when user checks this checkbox and submits this form, another form shows up which is the actual i…

---

## [Implementing XSLT in rss feed](https://www.ruby-forum.com/t/implementing-xslt-in-rss-feed/83857)

<div class="topic-metadata">

**Author:** [@krishna.Mundra](https://www.ruby-forum.com/u/krishna.Mundra)\
**Replies:** 1\
**Last updated:** [April 6, 2007, 8:11am UTC](https://www.ruby-forum.com/t/implementing-xslt-in-rss-feed/83857 "2007-04-06T08:11:51Z")

</div>

HI , Can anyone help me in implementing rss feed with stylesheet of user’s choice… xml.instruct! :xml, :version=\>“1.0” xml.foods{ for food in @foods xml.food do xml.id(food.id) xml.calroies(food.calories) xml.de…

---

## [Newbie, hash or 2dArry](https://www.ruby-forum.com/t/newbie-hash-or-2darry/90657)

<div class="topic-metadata">

**Author:** [@zaq](https://www.ruby-forum.com/u/zaq)\
**Replies:** 6\
**Last updated:** [April 6, 2007, 5:21am UTC](https://www.ruby-forum.com/t/newbie-hash-or-2darry/90657 "2007-04-06T05:21:18Z")

</div>

I’m lost or just tired from guessing. I need to make an hash I can call by hostname as the key and some random amount of data after that as the values. now a hash works great for 1 to 1 maps (h\[serverX\] ==\> result) b…

---

## [Conversion to currency format](https://www.ruby-forum.com/t/conversion-to-currency-format/91232)

<div class="topic-metadata">

**Author:** [@atisman](https://www.ruby-forum.com/u/atisman)\
**Replies:** 3\
**Last updated:** [April 6, 2007, 4:26am UTC](https://www.ruby-forum.com/t/conversion-to-currency-format/91232 "2007-04-06T04:26:16Z")

</div>

Hi, Is there any handy (or standard) method to convert a Ruby string “350000” or number 350000 to a US currency format such as: $350,000.00 or just $350,000 (without cents)? Thanks in advance.

---

## [Run some method based on some condition](https://www.ruby-forum.com/t/run-some-method-based-on-some-condition/91253)

<div class="topic-metadata">

**Author:** [@kennyd](https://www.ruby-forum.com/u/kennyd)\
**Replies:** 4\
**Last updated:** [April 6, 2007, 3:55am UTC](https://www.ruby-forum.com/t/run-some-method-based-on-some-condition/91253 "2007-04-06T03:55:14Z")

</div>

Say I wanted to run a method based on a condition like so: class Klass def initialize a = ‘1st’ b = ‘2nd’ c = ‘3rd’ end def a a end def b b end def c c end end ob = Klass.new \[‘a’,‘b’,‘c’\].do {|x| ob. h…

---

## [South Florida Software Symposium - May 18 - 20, 2007 - Miami](https://www.ruby-forum.com/t/south-florida-software-symposium-may-18-20-2007-miami/91260)

<div class="topic-metadata">

**Author:** [@miamijug](https://www.ruby-forum.com/u/miamijug)\
**Replies:** 0\
**Last updated:** [April 6, 2007, 3:01am UTC](https://www.ruby-forum.com/t/south-florida-software-symposium-may-18-20-2007-miami/91260 "2007-04-06T03:01:08Z")

</div>

We are happy to announce the South Florida Software Symposium. South Florida Software Symposium May 18 - 20, 2007 Hotel Intercontinental Miami West 2505 Northwest 87th Avenue Miami, Florida 33172 Registration is no…

---

## [Ruby Roundup Podcast](https://www.ruby-forum.com/t/ruby-roundup-podcast/91257)

<div class="topic-metadata">

**Author:** [@sporb](https://www.ruby-forum.com/u/sporb)\
**Replies:** 0\
**Last updated:** [April 6, 2007, 1:32am UTC](https://www.ruby-forum.com/t/ruby-roundup-podcast/91257 "2007-04-06T01:32:57Z")

</div>

The Ruby Roundup Podcast Episode 3 was published earlier today. I hope everyone enjoys. Please let us know what you think – we are desperate for feedback! You can download the podcast from http://rubyroundup.com or su…

---

## [A search coded with rails and ferret](https://www.ruby-forum.com/t/a-search-coded-with-rails-and-ferret/91256)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 0\
**Last updated:** [April 6, 2007, 12:50am UTC](https://www.ruby-forum.com/t/a-search-coded-with-rails-and-ferret/91256 "2007-04-06T00:50:52Z")

</div>

A search coded with rails and ferret http://www.teenwag.com/search?q=Anna

---

## [XMLRPC Ruby 1.8.6 stdlib Authentication/docs](https://www.ruby-forum.com/t/xmlrpc-ruby-1-8-6-stdlib-authentication-docs/91015)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 4\
**Last updated:** [April 6, 2007, 12:08am UTC](https://www.ruby-forum.com/t/xmlrpc-ruby-1-8-6-stdlib-authentication-docs/91015 "2007-04-06T00:08:27Z")

</div>

Greeting All, I am writing a Rails App which includes (I hope) an XMLRPC API interface. I am working with the XMLRPC library in Ruby 1.8.6 to write a client and a Mock of the Rails server. In looking at the code in …

---

## [Rails login page](https://www.ruby-forum.com/t/rails-login-page/91138)

<div class="topic-metadata">

**Author:** [@BLT](https://www.ruby-forum.com/u/BLT)\
**Replies:** 7\
**Last updated:** [April 5, 2007, 11:40pm UTC](https://www.ruby-forum.com/t/rails-login-page/91138 "2007-04-05T23:40:46Z")

</div>

Has anyone got any information on how to make a really simple login page for rails? I just literally want an un-encrypted username/password in a mysql database then some way of using rails to query that database to ch…

---

## [Install problems under QNX](https://www.ruby-forum.com/t/install-problems-under-qnx/91123)

<div class="topic-metadata">

**Author:** [@martin-ga](https://www.ruby-forum.com/u/martin-ga)\
**Replies:** 11\
**Last updated:** [April 5, 2007, 9:51pm UTC](https://www.ruby-forum.com/t/install-problems-under-qnx/91123 "2007-04-05T21:51:36Z")

</div>

Hi all, I’m facing install problems under QNX 6.3.0. \[QNX QNX-DEV 6.3.0 2004/04/29-21:23:19UTC x86pc x86\] The compile works well and the ‘make test’ succeeds. So that’s a good start. However, during ‘make install’, …

---

## [Newsfeeds](https://www.ruby-forum.com/t/newsfeeds/91235)

<div class="topic-metadata">

**Author:** [@Uma\_G](https://www.ruby-forum.com/u/Uma_G)\
**Replies:** 0\
**Last updated:** [April 5, 2007, 9:41pm UTC](https://www.ruby-forum.com/t/newsfeeds/91235 "2007-04-05T21:41:34Z")

</div>

I’ve come across a problem I don’t know how to solve. I want to publish a newsfeed with articles at a secondth nesting level. For example, have the top level newsfeed nodes be the days of the month, then have a list …

---

## [Forking and copying variables](https://www.ruby-forum.com/t/forking-and-copying-variables/91152)

<div class="topic-metadata">

**Author:** [@metrix](https://www.ruby-forum.com/u/metrix)\
**Replies:** 8\
**Last updated:** [April 5, 2007, 9:22pm UTC](https://www.ruby-forum.com/t/forking-and-copying-variables/91152 "2007-04-05T21:22:31Z")

</div>

I have a script that sets a few variables and then forks. Each fork executes the script from top to bottom. Is there any way for the forks to get a copy of all the variables set before the fork, because each fork thin…

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

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