# Ruby

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

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

---

## [Stdin stdout -ing my program](https://www.ruby-forum.com/t/stdin-stdout-ing-my-program/111882)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 5\
**Last updated:** [August 14, 2007, 5:23am UTC](https://www.ruby-forum.com/t/stdin-stdout-ing-my-program/111882 "2007-08-14T05:23:51Z")

</div>

i need to be able to run my program fully from the command line, instead of ‘ruby program.rb’…i need to pipe the commands using standard input and output. How would i do this with the code below? Code: require ‘find…

---

## [Sphincter 1.1.0 Released](https://www.ruby-forum.com/t/sphincter-1-1-0-released/112001)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [August 14, 2007, 5:16am UTC](https://www.ruby-forum.com/t/sphincter-1-1-0-released/112001 "2007-08-14T05:16:51Z")

</div>

Sphincter version 1.1.0 has been released! http://seattlerb.org/Sphincter Sphincter uses Dmytro Shteflyuk’s sphinx Ruby API and automatic configuration to make totally rad ActiveRecord searching. Well, you still ha…

---

## [Memcache-client 1.5.0 Released](https://www.ruby-forum.com/t/memcache-client-1-5-0-released/111999)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [August 14, 2007, 4:52am UTC](https://www.ruby-forum.com/t/memcache-client-1-5-0-released/111999 "2007-08-14T04:52:45Z")

</div>

memcache-client version 1.5.0 has been released! http://seattlerb.org/memcache-client memcache-client is a client for Danga Interactive’s memcached. Changes: 1.5.0 Add MemCache#flush\_all command. Patch #13019 an…

---

## [Can .rhtml files include text from .txt or .html file?](https://www.ruby-forum.com/t/can-rhtml-files-include-text-from-txt-or-html-file/111875)

<div class="topic-metadata">

**Author:** [@sfdesigner](https://www.ruby-forum.com/u/sfdesigner)\
**Replies:** 10\
**Last updated:** [August 14, 2007, 2:47am UTC](https://www.ruby-forum.com/t/can-rhtml-files-include-text-from-txt-or-html-file/111875 "2007-08-14T02:47:17Z")

</div>

Hi, I have a header.html file that contains client name. Is there some way to get the header.html file content into a index.rhtml that looks something like this? \<% include 'header.html' %\>

---

## [Hoe 1.3.0 Released](https://www.ruby-forum.com/t/hoe-1-3-0-released/111982)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [August 14, 2007, 1:18am UTC](https://www.ruby-forum.com/t/hoe-1-3-0-released/111982 "2007-08-14T01:18:30Z")

</div>

hoe version 1.3.0 has been released! http://rubyforge.org/projects/seattlerb/ http://seattlerb.rubyforge.org/hoe/ removed\_email\_address@domain.invalid DESCRIPTION: Hoe is a simple rake/rubygems helper for project Rak…

---

## [Rubyforge 0.4.4 Released](https://www.ruby-forum.com/t/rubyforge-0-4-4-released/111981)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [August 14, 2007, 1:10am UTC](https://www.ruby-forum.com/t/rubyforge-0-4-4-released/111981 "2007-08-14T01:10:30Z")

</div>

rubyforge version 0.4.4 has been released! http://rubyforge.org/projects/codeforpeople A script which automates a limited set of rubyforge operations. Run ‘rubyforge help’ for complete usage. Setup: For first time u…

---

## [Re: Working with classname that is stored in a string](https://www.ruby-forum.com/t/re-working-with-classname-that-is-stored-in-a-string/111974)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 0\
**Last updated:** [August 13, 2007, 11:39pm UTC](https://www.ruby-forum.com/t/re-working-with-classname-that-is-stored-in-a-string/111974 "2007-08-13T23:39:19Z")

</div>

From: Glen H. \[mailto:removed\_email\_address@domain.invalid\] On 8/13/07, Sebastian H. removed\_email\_address@domain.invalid wrote: I believe you are looking for const\_get. Thanks! In the Rails world (or ActiveSuppo…

---

## [Working with classname that is stored in a string](https://www.ruby-forum.com/t/working-with-classname-that-is-stored-in-a-string/111966)

<div class="topic-metadata">

**Author:** [@Glen\_H](https://www.ruby-forum.com/u/Glen_H)\
**Replies:** 3\
**Last updated:** [August 13, 2007, 11:29pm UTC](https://www.ruby-forum.com/t/working-with-classname-that-is-stored-in-a-string/111966 "2007-08-13T23:29:18Z")

</div>

Hi all, I’m trying to DRY my latest Rails project and have run into a problem for which the answer appears to lie in my personal sea of ignorance. I want to write a helper that will let me set the fields I want to d…

---

## [Error updating windows-pr](https://www.ruby-forum.com/t/error-updating-windows-pr/111791)

<div class="topic-metadata">

**Author:** [@dima](https://www.ruby-forum.com/u/dima)\
**Replies:** 1\
**Last updated:** [August 13, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/error-updating-windows-pr/111791 "2007-08-13T22:41:07Z")

</div>

While updating my gem collection I have receive unpleasant info :frowning: Attempting remote update of windows-pr ERROR: While executing gem … (OpenURI::HTTPError) 404 Not Found I try many times and even try gem upd…

---

## [Fwd: Prototype (the real thing from Ara) problem](https://www.ruby-forum.com/t/fwd-prototype-the-real-thing-from-ara-problem/111887)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 9\
**Last updated:** [August 13, 2007, 9:48pm UTC](https://www.ruby-forum.com/t/fwd-prototype-the-real-thing-from-ara-problem/111887 "2007-08-13T21:48:01Z")

</div>

Hi list after my primitive research and my very slow implementation of Prototypes I thought it would be a good idea to check out the real thing and to link to it from my blog, turns out I cannot run it :(. I got the …

---

## [Attr\_read, attr\_writer, etc](https://www.ruby-forum.com/t/attr-read-attr-writer-etc/111929)

<div class="topic-metadata">

**Author:** [@dizzyone](https://www.ruby-forum.com/u/dizzyone)\
**Replies:** 3\
**Last updated:** [August 13, 2007, 9:07pm UTC](https://www.ruby-forum.com/t/attr-read-attr-writer-etc/111929 "2007-08-13T21:07:50Z")

</div>

Hello, are these keywords or are they methods which create get/set methods for the given attribute? I suppose it’s a mix of both, because I tried to write my own attr\_accessor but I couldn’t call it in the class def…

---

## [Ruby to C to .so executable](https://www.ruby-forum.com/t/ruby-to-c-to-so-executable/111952)

<div class="topic-metadata">

**Author:** [@lycanthrope](https://www.ruby-forum.com/u/lycanthrope)\
**Replies:** 1\
**Last updated:** [August 13, 2007, 8:52pm UTC](https://www.ruby-forum.com/t/ruby-to-c-to-so-executable/111952 "2007-08-13T20:52:48Z")

</div>

I am trying to revisit something that I’d found on line last September, but I seem to have misplaced all the pertinent information as to where I found it. Hopefully someone can point me in the right direction. In a c…

---

## [Xml-map](https://www.ruby-forum.com/t/xml-map/109319)

<div class="topic-metadata">

**Author:** [@marcin\_r](https://www.ruby-forum.com/u/marcin_r)\
**Replies:** 4\
**Last updated:** [August 13, 2007, 8:11pm UTC](https://www.ruby-forum.com/t/xml-map/109319 "2007-08-13T20:11:45Z")

</div>

Hello. Thanks to my bas from softwarelab.eu (little advert) I’m starting to release code that i wrote so far :slight\_smile: for now there’s little - or no- documentation but i’ll be working on it back to the topic: x…

---

## [Upgrading from 1.8.2 to 1.8.5](https://www.ruby-forum.com/t/upgrading-from-1-8-2-to-1-8-5/111937)

<div class="topic-metadata">

**Author:** [@clemrock](https://www.ruby-forum.com/u/clemrock)\
**Replies:** 3\
**Last updated:** [August 13, 2007, 7:11pm UTC](https://www.ruby-forum.com/t/upgrading-from-1-8-2-to-1-8-5/111937 "2007-08-13T19:11:39Z")

</div>

Hello, I need to upgrade my local version of ruby from 1.8.2 to 1.8.5. What kind of issues could I be facing if I do this upgrade? Are there any good tutorials or resources that describe how to do this upgrade? Than…

---

## [Returning argument as a number problem](https://www.ruby-forum.com/t/returning-argument-as-a-number-problem/111943)

<div class="topic-metadata">

**Author:** [@h4z3](https://www.ruby-forum.com/u/h4z3)\
**Replies:** 5\
**Last updated:** [August 13, 2007, 7:06pm UTC](https://www.ruby-forum.com/t/returning-argument-as-a-number-problem/111943 "2007-08-13T19:06:38Z")

</div>

Hey guys, I have a method as such: def random(len) if len !~ /\\d+/ pub\_send “Invalid number” elsif len \> 30 pub\_send “No more then 30 chars” else chars = (“a”…“z”).to\_a + (“A”…“Z”).to\_a + (“0”…“9”).to\_a random = …

---

## [Debian notes for Ruby newbies (like me)](https://www.ruby-forum.com/t/debian-notes-for-ruby-newbies-like-me/111927)

<div class="topic-metadata">

**Author:** [@EVman](https://www.ruby-forum.com/u/EVman)\
**Replies:** 2\
**Last updated:** [August 13, 2007, 6:32pm UTC](https://www.ruby-forum.com/t/debian-notes-for-ruby-newbies-like-me/111927 "2007-08-13T18:32:36Z")

</div>

This is probably a known issue by regulars, but I will post it for Ruby newbies using Debian. I have tested the following several times on a fresh new install of Debian Etch just to make sure that the problem wasn’t …

---

## [Global\_variable\_set (like instance\_variable\_set)](https://www.ruby-forum.com/t/global-variable-set-like-instance-variable-set/111820)

<div class="topic-metadata">

**Author:** [@samoht](https://www.ruby-forum.com/u/samoht)\
**Replies:** 14\
**Last updated:** [August 13, 2007, 5:08pm UTC](https://www.ruby-forum.com/t/global-variable-set-like-instance-variable-set/111820 "2007-08-13T17:08:25Z")

</div>

Hello, how can a function global\_variable\_set(gvarname, value) be implemented? It should be similiar to the already existing method Object#instance\_variable\_set, but set global variables rather than instance variable…

---

## [First JRuby App on GlassFish Screencast & Blog](https://www.ruby-forum.com/t/first-jruby-app-on-glassfish-screencast-blog/111922)

<div class="topic-metadata">

**Author:** [@arun](https://www.ruby-forum.com/u/arun)\
**Replies:** 0\
**Last updated:** [August 13, 2007, 3:42pm UTC](https://www.ruby-forum.com/t/first-jruby-app-on-glassfish-screencast-blog/111922 "2007-08-13T15:42:08Z")

</div>

This screencast shows how to develop and deploy your first JRuby app using NetBeans Ruby IDE and deploy it on GlassFish. Enjoy it at: http://blogs.sun.com/arungupta/entry/screencast\_web6\_first\_jruby\_app This screencas…

---

## [RubyConf 2007: talk proposals being accepted](https://www.ruby-forum.com/t/rubyconf-2007-talk-proposals-being-accepted/111923)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [August 13, 2007, 3:27pm UTC](https://www.ruby-forum.com/t/rubyconf-2007-talk-proposals-being-accepted/111923 "2007-08-13T15:27:05Z")

</div>

Hi – We’re on a somewhat tight deadline (August 20), but there’s definitely still time to submit a proposal for a presentation at RubyConf 2007: http://proposals.rubycentral.org So submit! If you have any questions …

---

## [RDoc vs. alias\_method](https://www.ruby-forum.com/t/rdoc-vs-alias-method/111769)

<div class="topic-metadata">

**Author:** [@Noah\_E](https://www.ruby-forum.com/u/Noah_E)\
**Replies:** 3\
**Last updated:** [August 13, 2007, 2:50pm UTC](https://www.ruby-forum.com/t/rdoc-vs-alias-method/111769 "2007-08-13T14:50:58Z")

</div>

I’m working on a script that has to work across several versions of ruby. Sometimes, some versions don’t have libraries that I require, so I get around that by having an alternate implementation for those versions. F…

---

## [First and last char](https://www.ruby-forum.com/t/first-and-last-char/111827)

<div class="topic-metadata">

**Author:** [@botp](https://www.ruby-forum.com/u/botp)\
**Replies:** 14\
**Last updated:** [August 13, 2007, 2:43pm UTC](https://www.ruby-forum.com/t/first-and-last-char/111827 "2007-08-13T14:43:57Z")

</div>

I always get tripped when working together w arrays and strings specially on, string.first and string.last of course, they err :slight\_smile: wish there were #first and #last in String just a thought kind regards …

---

## [Interesting garbage collection article on LTU](https://www.ruby-forum.com/t/interesting-garbage-collection-article-on-ltu/111840)

<div class="topic-metadata">

**Author:** [@Lionel\_B](https://www.ruby-forum.com/u/Lionel_B)\
**Replies:** 10\
**Last updated:** [August 13, 2007, 11:13am UTC](https://www.ruby-forum.com/t/interesting-garbage-collection-article-on-ltu/111840 "2007-08-13T11:13:25Z")

</div>

Hi, I just read the abstract on http://lambda-the-ultimate.org/node/2391 and found it might be of interest for core language developers and people interested in garbage collecting. I immediately thought of Ruby becau…

---

## [Chinese display](https://www.ruby-forum.com/t/chinese-display/111868)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 2\
**Last updated:** [August 13, 2007, 10:22am UTC](https://www.ruby-forum.com/t/chinese-display/111868 "2007-08-13T10:22:20Z")

</div>

hello: I have built a project with Instant Rails.Now only a database and a scaffold based on a product model have finished.But when i inputted “…/admin/list” in my browser,i found my chinese characters cound not disp…

---

## [ANN: Sequel 0.1.9.6 Released](https://www.ruby-forum.com/t/ann-sequel-0-1-9-6-released/111905)

<div class="topic-metadata">

**Author:** [@ciconia](https://www.ruby-forum.com/u/ciconia)\
**Replies:** 0\
**Last updated:** [August 13, 2007, 8:25am UTC](https://www.ruby-forum.com/t/ann-sequel-0-1-9-6-released/111905 "2007-08-13T08:25:10Z")

</div>

Sequel version 0.1.9.6 has just been released. This release includes a number of big fixes and improvements, among which better schema definitions and better paginated datasets. I’d like to thank all of the people who…

---

## [Getting data from Expect](https://www.ruby-forum.com/t/getting-data-from-expect/111904)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 0\
**Last updated:** [August 13, 2007, 8:16am UTC](https://www.ruby-forum.com/t/getting-data-from-expect/111904 "2007-08-13T08:16:09Z")

</div>

Hi All, Can anyone tell me how I can get all the data produced by the command “less”: PTY.spawn(“cd some\_directory”) do |reader, writer, pid| … wireter.puts “less some\_text\_file” # How do I get the content of the w…

---

## [RSpec-1.0.8](https://www.ruby-forum.com/t/rspec-1-0-8/111902)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 0\
**Last updated:** [August 13, 2007, 7:59am UTC](https://www.ruby-forum.com/t/rspec-1-0-8/111902 "2007-08-13T07:59:08Z")

</div>

The RSpec Development Team is pleased to announce the release of RSpec-1.0.8. RSpec 1.0.6 is the “holy cow, batman, it’s been a long time since we released and there are a ton of bug fixes, patches and even new featu…

---

## [Extract a number from a line of HTML file](https://www.ruby-forum.com/t/extract-a-number-from-a-line-of-html-file/111898)

<div class="topic-metadata">

**Author:** [@ak756](https://www.ruby-forum.com/u/ak756)\
**Replies:** 4\
**Last updated:** [August 13, 2007, 7:08am UTC](https://www.ruby-forum.com/t/extract-a-number-from-a-line-of-html-file/111898 "2007-08-13T07:08:42Z")

</div>

Hi, I have a line of HTML file like this 123.20 I want to remove all such HTML tags as ‘’ and only get the 123.20. Would anyone kindly tell me how? Thanks very much.

---

## [Removing file names with '.' in their names from list?](https://www.ruby-forum.com/t/removing-file-names-with-in-their-names-from-list/111885)

<div class="topic-metadata">

**Author:** [@sfdesigner](https://www.ruby-forum.com/u/sfdesigner)\
**Replies:** 5\
**Last updated:** [August 13, 2007, 4:40am UTC](https://www.ruby-forum.com/t/removing-file-names-with-in-their-names-from-list/111885 "2007-08-13T04:40:59Z")

</div>

Currently I’m using this code to output a list of files to a .rhtml page: \<% Dir.foreach("/") do |file| next if File.fnmatch(’.’, file) puts ‘’ + file + ‘’ end %\> This removes files from the list output such as ‘…

---

## [Best graphing libraries?](https://www.ruby-forum.com/t/best-graphing-libraries/111419)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 3\
**Last updated:** [August 13, 2007, 2:54am UTC](https://www.ruby-forum.com/t/best-graphing-libraries/111419 "2007-08-13T02:54:51Z")

</div>

There are, of course, a plethora of choices for doing graphing in Ruby and for JRuby, in Java. I’d be grateful for opinions on the “best” ones, and why people think they are the best. Thanks, Ken

---

## [Problems installing Ruby on AIX 4.3.3](https://www.ruby-forum.com/t/problems-installing-ruby-on-aix-4-3-3/110757)

<div class="topic-metadata">

**Author:** [@roflkk](https://www.ruby-forum.com/u/roflkk)\
**Replies:** 1\
**Last updated:** [August 13, 2007, 2:25am UTC](https://www.ruby-forum.com/t/problems-installing-ruby-on-aix-4-3-3/110757 "2007-08-13T02:25:50Z")

</div>

I’m trying to install Ruby 1.8.6 on AIX 4.3.3 using the IBM’s xlc compiler. there are a few trivial commas to remove (from eval.c and parse.y), but the real stumbling block comes later: ./lib/fileutils.rb:1278: \[BUG\]…

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

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