# Ruby

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

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

---

## [Rdoc/ri feature request](https://www.ruby-forum.com/t/rdoc-ri-feature-request/121837)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 1\
**Last updated:** [December 1, 2007, 8:52pm UTC](https://www.ruby-forum.com/t/rdoc-ri-feature-request/121837 "2007-12-01T20:52:10Z")

</div>

I know it’s selfish, but… I would like rdoc to have the ability to build a landing page/portal locally accessible in a browser. That way there would be quick, easy to navigate docs available from one aggregate place. …

---

## [Csspool 0.2.1 Released](https://www.ruby-forum.com/t/csspool-0-2-1-released/121845)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [December 1, 2007, 8:50pm UTC](https://www.ruby-forum.com/t/csspool-0-2-1-released/121845 "2007-12-01T20:50:25Z")

</div>

Gossip Girl says: csspool version 0.2.1 has been released! http://csspool.rubyforge.org/ CSSpool (pronounced “cesspool”) is a validating SAC parser for CSS. The parser calls methods on a document handler depending…

---

## [How to alias only one time, in an eval string](https://www.ruby-forum.com/t/how-to-alias-only-one-time-in-an-eval-string/121839)

<div class="topic-metadata">

**Author:** [@trebor777](https://www.ruby-forum.com/u/trebor777)\
**Replies:** 1\
**Last updated:** [December 1, 2007, 7:58pm UTC](https://www.ruby-forum.com/t/how-to-alias-only-one-time-in-an-eval-string/121839 "2007-12-01T19:58:19Z")

</div>

I’m using a software which use compressed ruby scripts… For that, the software load the uncompressed data and eval it. In this software, you have the ability to reset the execution, and basically it eval again all th…

---

## [FW: Can someone do a review of Pete's patch so that we can submit?](https://www.ruby-forum.com/t/fw-can-someone-do-a-review-of-petes-patch-so-that-we-can-submit/121687)

<div class="topic-metadata">

**Author:** [@John\_LSSDLR](https://www.ruby-forum.com/u/John_LSSDLR)\
**Replies:** 2\
**Last updated:** [December 1, 2007, 3:21pm UTC](https://www.ruby-forum.com/t/fw-can-someone-do-a-review-of-petes-patch-so-that-we-can-submit/121687 "2007-12-01T15:21:22Z")

</div>

Review from Tomas From: Tomas M. Sent: Thursday, November 29, 2007 12:32 PM To: John L. (DLR); IronRuby Team Subject: RE: Can someone do a review of Pete’s patch so that we can submit? Few issues: Fixnum.Ab…

---

## [WARNING: multiple libruby.dylib](https://www.ruby-forum.com/t/warning-multiple-libruby-dylib/121822)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvS\_ue](https://www.ruby-forum.com/u/Une_BSSSSvS_ue)\
**Replies:** 0\
**Last updated:** [December 1, 2007, 11:30am UTC](https://www.ruby-forum.com/t/warning-multiple-libruby-dylib/121822 "2007-12-01T11:30:17Z")

</div>

this warning is new to me : ~/work/Ruby/Growl%\> ./essai\_mygrowl.rb 2007-12-01 11:22:02.114 ruby\[616\] WARNING: multiple libruby.dylib found: ‘/opt/local/lib/libruby.dylib’ and ‘/usr/lib/libruby.1.dylib’ 2007-12-01 11:…

---

## [Compile error in ruby-trunk](https://www.ruby-forum.com/t/compile-error-in-ruby-trunk/121796)

<div class="topic-metadata">

**Author:** [@Masaki\_S](https://www.ruby-forum.com/u/Masaki_S)\
**Replies:** 2\
**Last updated:** [December 1, 2007, 10:32am UTC](https://www.ruby-forum.com/t/compile-error-in-ruby-trunk/121796 "2007-12-01T10:32:24Z")

</div>

e$B=uED$G$9!#e(B ruby-trunk(revision 14061)e$B$G%3%s%Q%$%k%(%i!\<$K$J$j$^$9!#e(B parse.c: In function yydestruct': parse.c:4196: error:parser’ undeclared (first use in this function) parse.c:4196: error: (Each undeclar…

---

## [Run system command as user](https://www.ruby-forum.com/t/run-system-command-as-user/121804)

<div class="topic-metadata">

**Author:** [@Trey](https://www.ruby-forum.com/u/Trey)\
**Replies:** 5\
**Last updated:** [December 1, 2007, 10:20am UTC](https://www.ruby-forum.com/t/run-system-command-as-user/121804 "2007-12-01T10:20:42Z")

</div>

I’m in need of running a system command as another user than the user that is executing the ruby script. Is this possible? Can I execute su (and somehow supply the correct password), then run the command?

---

## [Printing throught LPT1](https://www.ruby-forum.com/t/printing-throught-lpt1/121710)

<div class="topic-metadata">

**Author:** [@eagoweb](https://www.ruby-forum.com/u/eagoweb)\
**Replies:** 5\
**Last updated:** [December 1, 2007, 9:34am UTC](https://www.ruby-forum.com/t/printing-throught-lpt1/121710 "2007-12-01T09:34:30Z")

</div>

Hello, somebody has print to a printer from Ruby??? I thought a library called Etch for printing, but it doesn’t have any documentation :s Regards,

---

## [Tag, tag\_end in parser](https://www.ruby-forum.com/t/tag-tag-end-in-parser/121810)

<div class="topic-metadata">

**Author:** [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Replies:** 2\
**Last updated:** [December 1, 2007, 8:22am UTC](https://www.ruby-forum.com/t/tag-tag-end-in-parser/121810 "2007-12-01T08:22:37Z")

</div>

I have created a buffer class and i was able to read a character, string and write in the buffer. Iam in process of creating pull parser. Now iam parsing only with strings. if i give a string “defghijk” as a string in…

---

## [Eval / current binding](https://www.ruby-forum.com/t/eval-current-binding/121794)

<div class="topic-metadata">

**Author:** [@redroofgreentree](https://www.ruby-forum.com/u/redroofgreentree)\
**Replies:** 1\
**Last updated:** [December 1, 2007, 6:40am UTC](https://www.ruby-forum.com/t/eval-current-binding/121794 "2007-12-01T06:40:59Z")

</div>

Hey, So I’ve looked at module\_eval, class\_eval, and Kernel#eval and I’m pretty sure that what I want to do is to do Kernel#eval(“blah … some code”, global\_environment) where by global\_environment I mean the global\_c…

---

## [\#p is to #inspect as #pp is to?](https://www.ruby-forum.com/t/p-is-to-inspect-as-pp-is-to/121708)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 5\
**Last updated:** [December 1, 2007, 6:40am UTC](https://www.ruby-forum.com/t/p-is-to-inspect-as-pp-is-to/121708 "2007-12-01T06:40:59Z")

</div>

I have this as a lone method, but it seems to me there should already be a way to do this with the ‘pp’ lib. (If not perhaps we could add it?) require ‘pp’ require ‘stringio’ module Kernel Returns a pretty-printed …

---

## [Is pastie dead?](https://www.ruby-forum.com/t/is-pastie-dead/121718)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 3\
**Last updated:** [December 1, 2007, 4:37am UTC](https://www.ruby-forum.com/t/is-pastie-dead/121718 "2007-12-01T04:37:40Z")

</div>

does anyone know? – Giles B. Podcast: http://hollywoodgrit.blogspot.com Blog: http://gilesbowkett.blogspot.com Portfolio: http://www.gilesgoatboy.org Tumblelog: http://giles.tumblr.com

---

## [GetOptions 0.1 released](https://www.ruby-forum.com/t/getoptions-0-1-released/121802)

<div class="topic-metadata">

**Author:** [@Delaney\_Parker](https://www.ruby-forum.com/u/Delaney_Parker)\
**Replies:** 0\
**Last updated:** [December 1, 2007, 1:10am UTC](https://www.ruby-forum.com/t/getoptions-0-1-released/121802 "2007-12-01T01:10:42Z")

</div>

GetOptions - Yet another command line argument parser for Ruby. Inspired by Perl’s Getopt::Long module, the GetOptions module provides a fairly powerful POSIX-ish option parser that is very easy to learn and use. http…

---

## [Trouble with a while loop](https://www.ruby-forum.com/t/trouble-with-a-while-loop/121729)

<div class="topic-metadata">

**Author:** [@bishar](https://www.ruby-forum.com/u/bishar)\
**Replies:** 4\
**Last updated:** [December 1, 2007, 12:26am UTC](https://www.ruby-forum.com/t/trouble-with-a-while-loop/121729 "2007-12-01T00:26:12Z")

</div>

Hi, Please forgive if this forum is not the right one for this post. I’m writing a small ruby program that implements sale of a plot of land to 5 investors through English Auction. In an English auction, the auctione…

---

## [Mongrel fails to install](https://www.ruby-forum.com/t/mongrel-fails-to-install/121551)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 4\
**Last updated:** [November 30, 2007, 11:55pm UTC](https://www.ruby-forum.com/t/mongrel-fails-to-install/121551 "2007-11-30T23:55:48Z")

</div>

I’m going to play around with it, but why would it fail? permissions? C:\\code\> C:\\code\>gem install mongrel Bulk updating Gem source index for: http://gems.rubyforge.org Select which gem to install for your platform …

---

## [?Conditional validation skipping?](https://www.ruby-forum.com/t/conditional-validation-skipping/121790)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 1\
**Last updated:** [November 30, 2007, 10:42pm UTC](https://www.ruby-forum.com/t/conditional-validation-skipping/121790 "2007-11-30T22:42:00Z")

</div>

Hey, I have validation that I need to be able to bypass depending on a cookie that the user might have. My problem is for most users, they have to have a .edu or .com email address. So I wrote that into the validati…

---

## [Custom Protocol](https://www.ruby-forum.com/t/custom-protocol/121570)

<div class="topic-metadata">

**Author:** [@thefed](https://www.ruby-forum.com/u/thefed)\
**Replies:** 15\
**Last updated:** [November 30, 2007, 10:34pm UTC](https://www.ruby-forum.com/t/custom-protocol/121570 "2007-11-30T22:34:24Z")

</div>

I understand that I’ve asked a similar question that of custom packets. But this is different. This is protocol. Has anyone constructed a custom protocol, such as UDT, in Ruby? What would one use to construct a custom…

---

## [Progress Indicator. Please Comment](https://www.ruby-forum.com/t/progress-indicator-please-comment/121785)

<div class="topic-metadata">

**Author:** [@mikisvaz](https://www.ruby-forum.com/u/mikisvaz)\
**Replies:** 3\
**Last updated:** [November 30, 2007, 10:18pm UTC](https://www.ruby-forum.com/t/progress-indicator-please-comment/121785 "2007-11-30T22:18:36Z")

</div>

Hi all, I came to ruby from perl. The first thing I missed was the SmartComments package that allowed me to add progress indicators to loops, I couldn’t find any. Then I figured that maybe it wasn’t very hard, so I di…

---

## [Dev tool survey (not about editors)](https://www.ruby-forum.com/t/dev-tool-survey-not-about-editors/121787)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [November 30, 2007, 9:31pm UTC](https://www.ruby-forum.com/t/dev-tool-survey-not-about-editors/121787 "2007-11-30T21:31:41Z")

</div>

I decided not to let Tim have all the fun, and have set up my own mini-survey. I’m sure that I’ve missed some tools that probably belong on the list I gave, if I did, feel free to drop a note about it in the commen…

---

## [Net::SMTP SSL example](https://www.ruby-forum.com/t/net-smtp-ssl-example/121778)

<div class="topic-metadata">

**Author:** [@oliver](https://www.ruby-forum.com/u/oliver)\
**Replies:** 0\
**Last updated:** [November 30, 2007, 8:23pm UTC](https://www.ruby-forum.com/t/net-smtp-ssl-example/121778 "2007-11-30T20:23:02Z")

</div>

hi - It seems ruby 1.9 has SSL support for Net::SMTP, can someone please provide an example on how to make this work? The doc itself hasn’t been updated to this yet, an earlier post by the module author mentioned tha…

---

## [Ruby + GUI?](https://www.ruby-forum.com/t/ruby-gui/121707)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 11\
**Last updated:** [November 30, 2007, 7:00pm UTC](https://www.ruby-forum.com/t/ruby-gui/121707 "2007-11-30T19:00:33Z")

</div>

Hi- What would you all say is the best option for creating GUIs with Ruby? Thanks for your inputs.

---

## [Ruby Genetic Algorithm Library](https://www.ruby-forum.com/t/ruby-genetic-algorithm-library/121754)

<div class="topic-metadata">

**Author:** [@jazcyk](https://www.ruby-forum.com/u/jazcyk)\
**Replies:** 2\
**Last updated:** [November 30, 2007, 6:41pm UTC](https://www.ruby-forum.com/t/ruby-genetic-algorithm-library/121754 "2007-11-30T18:41:05Z")

</div>

Hi, I’m looking for a (relatively) mature genetic algorithm library for use with Ruby, so I have a choice: Use GALib (a C++ library) and connect it to Ruby somehow (bridge) Find a decent native Ruby GA Library So fa…

---

## [Bizarre Floating point errors in Ruby? Serious bug?](https://www.ruby-forum.com/t/bizarre-floating-point-errors-in-ruby-serious-bug/121340)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 15\
**Last updated:** [November 30, 2007, 5:59pm UTC](https://www.ruby-forum.com/t/bizarre-floating-point-errors-in-ruby-serious-bug/121340 "2007-11-30T17:59:59Z")

</div>

Hi, I’ve come across a strange bug in ruby (running 1.8.6 on Linux, but confirmed also in 1.8.5 on an older Mac). (-140.14 \* 100).to\_i =\> -14013 The desired result is, obviously, -14014. Strangely enough: (-1…

---

## [Problem with 'self'. behaves different on setting and gettin](https://www.ruby-forum.com/t/problem-with-self-behaves-different-on-setting-and-gettin/121749)

<div class="topic-metadata">

**Author:** [@gabru](https://www.ruby-forum.com/u/gabru)\
**Replies:** 6\
**Last updated:** [November 30, 2007, 4:47pm UTC](https://www.ruby-forum.com/t/problem-with-self-behaves-different-on-setting-and-gettin/121749 "2007-11-30T16:47:56Z")

</div>

hello, i have a question according ‘self’. I have setup a small simple scenario to simulate the problem. This following small program works fine … class User def set\_foo self.x = ‘1’ end def get\_foo x end def…

---

## [Limitations of ruby's XMLRPC?](https://www.ruby-forum.com/t/limitations-of-rubys-xmlrpc/121755)

<div class="topic-metadata">

**Author:** [@kyle\_s](https://www.ruby-forum.com/u/kyle_s)\
**Replies:** 1\
**Last updated:** [November 30, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/limitations-of-rubys-xmlrpc/121755 "2007-11-30T16:30:22Z")

</div>

What are the limitations of ruby’s XMLRPC? After playing with some tutorials and reading a few articles, I’ve written a few sample programs for myself, and ran into some oddities. They weren’t really much to overcome,…

---

## [Delete array element within iterator block?](https://www.ruby-forum.com/t/delete-array-element-within-iterator-block/121737)

<div class="topic-metadata">

**Author:** [@Jari\_W](https://www.ruby-forum.com/u/Jari_W)\
**Replies:** 3\
**Last updated:** [November 30, 2007, 2:49pm UTC](https://www.ruby-forum.com/t/delete-array-element-within-iterator-block/121737 "2007-11-30T14:49:27Z")

</div>

How do I (in an elegant way) delete an element of an array within a block, while using a block iterator? The code below won’t work (the wanted behavior here is to get all array elements to print and but also delete th…

---

## [Railroad-database problem](https://www.ruby-forum.com/t/railroad-database-problem/121616)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [November 30, 2007, 1:33pm UTC](https://www.ruby-forum.com/t/railroad-database-problem/121616 "2007-11-30T13:33:07Z")

</div>

Hi all, I am facing with a new type of problem with railroad, explained below I am using an oracle database in my application. In the database.yml file, I am having different schema connecti…

---

## [Changing paging created by scaffold](https://www.ruby-forum.com/t/changing-paging-created-by-scaffold/121740)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 0\
**Last updated:** [November 30, 2007, 1:00pm UTC](https://www.ruby-forum.com/t/changing-paging-created-by-scaffold/121740 "2007-11-30T13:00:50Z")

</div>

hello the scaffolding created a list def list @trade\_pages, @trades = paginate :trades, :per\_page =\> 50 end how to i change it so that the @trades will contain the result of a custom sql? thanks seede

---

## [Like python's dir(), except better](https://www.ruby-forum.com/t/like-pythons-dir-except-better/121589)

<div class="topic-metadata">

**Author:** [@monkeesage](https://www.ruby-forum.com/u/monkeesage)\
**Replies:** 10\
**Last updated:** [November 30, 2007, 11:38am UTC](https://www.ruby-forum.com/t/like-pythons-dir-except-better/121589 "2007-11-30T11:38:15Z")

</div>

People often want to look at an object’s attributes when debugging. \[1\] Python has a handy dir() function that lists the attributes of an object. And I use it tons. I often use obj.methods.sort in ruby for the same pu…

---

## [XMLRPC and Sockets](https://www.ruby-forum.com/t/xmlrpc-and-sockets/121627)

<div class="topic-metadata">

**Author:** [@robintw](https://www.ruby-forum.com/u/robintw)\
**Replies:** 1\
**Last updated:** [November 30, 2007, 9:28am UTC](https://www.ruby-forum.com/t/xmlrpc-and-sockets/121627 "2007-11-30T09:28:51Z")

</div>

Hi everyone, I’m currently researching the capabilities of a SmartDust network, my goal is to build an application that will get statistics from a network management device. The device is connected to my networkcontr…

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

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