# Ruby

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

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

---

## [Rfeedparser 0.9.93](https://www.ruby-forum.com/t/rfeedparser-0-9-93/110022)

<div class="topic-metadata">

**Author:** [@jhagemeier](https://www.ruby-forum.com/u/jhagemeier)\
**Replies:** 1\
**Last updated:** [July 21, 2007, 4:54pm UTC](https://www.ruby-forum.com/t/rfeedparser-0-9-93/110022 "2007-07-21T16:54:11Z")

</div>

rFeedParser is a translation of Mark Pilgrim’s Universal Feed Parser http://feedparser.org from Python to Ruby. It has nearly the exact same behavior. It’s functionality documentation\[1\] applies to this work. Curre…

---

## [Beautiful Code : Pity he didn't ask here](https://www.ruby-forum.com/t/beautiful-code-pity-he-didnt-ask-here/108961)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 51\
**Last updated:** [July 21, 2007, 4:29pm UTC](https://www.ruby-forum.com/t/beautiful-code-pity-he-didnt-ask-here/108961 "2007-07-21T16:29:35Z")

</div>

Just got the O’Reilly announcement of the book “Beautiful Code”… here is the sample chapter by Tim B. on Ruby! Beautiful Code \[Book\] Pity he didn’t run his examples by this forum first, I’m sure we could have made th…

---

## [Ramaze version 0.1.3](https://www.ruby-forum.com/t/ramaze-version-0-1-3/110026)

<div class="topic-metadata">

**Author:** [@mifi](https://www.ruby-forum.com/u/mifi)\
**Replies:** 0\
**Last updated:** [July 21, 2007, 3:19pm UTC](https://www.ruby-forum.com/t/ramaze-version-0-1-3/110026 "2007-07-21T15:19:28Z")

</div>

This time we are proud to announce Version 0.1.3 of the Ramaze framework, a light and modular open source web framework. Since the last release some polishing and improvements have been made, it seems like Ramaze is…

---

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

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 1\
**Last updated:** [July 21, 2007, 2:58pm UTC](https://www.ruby-forum.com/t/define-method-and-blocks/110024 "2007-07-21T14:58:27Z")

</div>

I’m trying to programmatically add methods taking a block to a class. Specifically I’m trying to write a method ‘define\_inline\_element’ that will let me type define\_inline\_element :title and create a method called ‘t…

---

## [The average Ruby ML Contributor](https://www.ruby-forum.com/t/the-average-ruby-ml-contributor/109929)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 6\
**Last updated:** [July 21, 2007, 2:32pm UTC](https://www.ruby-forum.com/t/the-average-ruby-ml-contributor/109929 "2007-07-21T14:32:25Z")

</div>

Hmm this did not pass uncompressed, maybe it is ok compressed… Hi I was trying to upload a PDF report summarizing language backgrounds and locations of the ML Contributors, that report has a size of 26k. In pure text …

---

## [Symbols](https://www.ruby-forum.com/t/symbols/109522)

<div class="topic-metadata">

**Author:** [@src1138](https://www.ruby-forum.com/u/src1138)\
**Replies:** 10\
**Last updated:** [July 21, 2007, 1:40pm UTC](https://www.ruby-forum.com/t/symbols/109522 "2007-07-21T13:40:22Z")

</div>

I’m an xbase (dbase/FoxBase & Pro/Clipper) and cobol programmer from way back. (Been writing code since 1980) Believe it or not, I make a VERY nice living maintaining legacy code. Anyway, decided to learn a new modern…

---

## [Parsing iTunes Libary](https://www.ruby-forum.com/t/parsing-itunes-libary/109940)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [July 21, 2007, 1:06pm UTC](https://www.ruby-forum.com/t/parsing-itunes-libary/109940 "2007-07-21T13:06:19Z")

</div>

Hello everybody ! I thought about writing something like that: http://code.google.com/p/itunes-to-rhythmbox-ratings/ I wanted to parse the library with REXML but the file is quite big. Is there a possibility to parse…

---

## [Rfeedparser 0.9.93](https://www.ruby-forum.com/t/rfeedparser-0-9-93/110020)

<div class="topic-metadata">

**Author:** [@jhagemeier](https://www.ruby-forum.com/u/jhagemeier)\
**Replies:** 0\
**Last updated:** [July 21, 2007, 11:07am UTC](https://www.ruby-forum.com/t/rfeedparser-0-9-93/110020 "2007-07-21T11:07:05Z")

</div>

rFeedParser is a translation of Mark Pilgrim’s Universal Feed Parser http://feedparser.org from Python to Ruby. It has nearly the exact same behavior. Currently, on a Ubuntu GNU/Linux box, it passes 98.8% of the ove…

---

## [RCR? Added syntax for chains that possibly return nil](https://www.ruby-forum.com/t/rcr-added-syntax-for-chains-that-possibly-return-nil/109841)

<div class="topic-metadata">

**Author:** [@apeiros](https://www.ruby-forum.com/u/apeiros)\
**Replies:** 36\
**Last updated:** [July 21, 2007, 10:16am UTC](https://www.ruby-forum.com/t/rcr-added-syntax-for-chains-that-possibly-return-nil/109841 "2007-07-21T10:16:02Z")

</div>

One type of construct in ruby that somewhat annoys me and IMHO reduces readability is working around cases where an intermediate method might return nil. Those cases are e.g. while (line = gets && line.chomp) foo = (…

---

## [Entry-level help](https://www.ruby-forum.com/t/entry-level-help/110013)

<div class="topic-metadata">

**Author:** [@patricke](https://www.ruby-forum.com/u/patricke)\
**Replies:** 1\
**Last updated:** [July 21, 2007, 8:10am UTC](https://www.ruby-forum.com/t/entry-level-help/110013 "2007-07-21T08:10:52Z")

</div>

Hellos, I’m not sure how detailed I should make my situation here. I had some long, history-spanning essay on what I’m doing, but that seemed tedious to read through. Basically, what it said was: I’m a pretty big n…

---

## [ERB question, not seeing variables](https://www.ruby-forum.com/t/erb-question-not-seeing-variables/110005)

<div class="topic-metadata">

**Author:** [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Replies:** 2\
**Last updated:** [July 21, 2007, 3:52am UTC](https://www.ruby-forum.com/t/erb-question-not-seeing-variables/110005 "2007-07-21T03:52:33Z")

</div>

I’m trying to do some template parsing in a class… here is my class: require ‘erb’ class TemplateParser def TemplateParser.parse(template, params) params.each do |k,v| self.instance\_variable\_set(:"@#{k}",v) end te…

---

## [MySQL & Ruby](https://www.ruby-forum.com/t/mysql-ruby/109943)

<div class="topic-metadata">

**Author:** [@sirtyman](https://www.ruby-forum.com/u/sirtyman)\
**Replies:** 1\
**Last updated:** [July 21, 2007, 1:14am UTC](https://www.ruby-forum.com/t/mysql-ruby/109943 "2007-07-21T01:14:22Z")

</div>

Here is my strange issue: def dump(tableName) dbh = Mysql.real\_connect(SQLServerIP, SQLLogin, SQLPass, SQLDB) rows = dbh.query(“SELECT \* FROM #{tableName} r;”) rows.each do |row| theRow = row.join(" | “) conten…

---

## [Is god playing favorites? (has anyone installed it on an Ubu](https://www.ruby-forum.com/t/is-god-playing-favorites-has-anyone-installed-it-on-an-ubu/109951)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 9\
**Last updated:** [July 21, 2007, 12:15am UTC](https://www.ruby-forum.com/t/is-god-playing-favorites-has-anyone-installed-it-on-an-ubu/109951 "2007-07-21T00:15:24Z")

</div>

On 7/19/07, Tom W. removed\_email\_address@domain.invalid wrote: A lot of work has gone into god since the last release. … INSTALL sudo gem install god note: currently tested only on Redhat Linux and Darwin (won’t …

---

## [File Append Problem](https://www.ruby-forum.com/t/file-append-problem/109976)

<div class="topic-metadata">

**Author:** [@turnkeytraders](https://www.ruby-forum.com/u/turnkeytraders)\
**Replies:** 2\
**Last updated:** [July 20, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/file-append-problem/109976 "2007-07-20T23:10:26Z")

</div>

Hello, I am reading a csv file (File1) and putting its content into a string, then I append that string in another csv file (file2) that has some data in it already. Now I do not want to overwrite the data in file2 so…

---

## [Html 2 pdf](https://www.ruby-forum.com/t/html-2-pdf/109752)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 6\
**Last updated:** [July 20, 2007, 11:03pm UTC](https://www.ruby-forum.com/t/html-2-pdf/109752 "2007-07-20T23:03:17Z")

</div>

Hi IIs there a gem for converting html to pdf? I need to build a routine to step through a website and create a pdf from the downloaded pages. Thanks in advance david Southwell

---

## [Regexp question](https://www.ruby-forum.com/t/regexp-question/109982)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [July 20, 2007, 10:43pm UTC](https://www.ruby-forum.com/t/regexp-question/109982 "2007-07-20T22:43:15Z")

</div>

I have a list of zip codes (3000). Is there any script that I could use to create a regexp for checking if a user entered zip is in this list or not? TIA.

---

## [Is there anything else like expect.rb/RExpect.rb?](https://www.ruby-forum.com/t/is-there-anything-else-like-expect-rb-rexpect-rb/109985)

<div class="topic-metadata">

**Author:** [@rubyoncrack](https://www.ruby-forum.com/u/rubyoncrack)\
**Replies:** 0\
**Last updated:** [July 20, 2007, 10:18pm UTC](https://www.ruby-forum.com/t/is-there-anything-else-like-expect-rb-rexpect-rb/109985 "2007-07-20T22:18:43Z")

</div>

You can’t do conditional patterns in expect.rb and the buffer in RExpect.rb needs a lot of work (it’s in beta so that’s expected). Does anybody know of any other scripts out there with similar functionality?

---

## [ActiveRecord & Sqlite3 & serialize & "f"](https://www.ruby-forum.com/t/activerecord-sqlite3-serialize-f/109983)

<div class="topic-metadata">

**Author:** [@erikveen](https://www.ruby-forum.com/u/erikveen)\
**Replies:** 1\
**Last updated:** [July 20, 2007, 9:50pm UTC](https://www.ruby-forum.com/t/activerecord-sqlite3-serialize-f/109983 "2007-07-20T21:50:10Z")

</div>

What’s wrong with the code below? It returns this “f” instead of “”. Where does “f” come from? Thanks. gegroet, Erik V. - http://www.erikveen.dds.nl/ $ ruby test.rb :bar “f” \<\<\<\< Should be “” nil $ echo “…

---

## [Ruby East 2007 Call For Papers](https://www.ruby-forum.com/t/ruby-east-2007-call-for-papers/109980)

<div class="topic-metadata">

**Author:** [@Andrea\_oSkSW](https://www.ruby-forum.com/u/Andrea_oSkSW)\
**Replies:** 0\
**Last updated:** [July 20, 2007, 9:40pm UTC](https://www.ruby-forum.com/t/ruby-east-2007-call-for-papers/109980 "2007-07-20T21:40:07Z")

</div>

The call for papers is now open for Ruby East 2007, to be held September 27-28 in Philadelphia (USA). The conference features one day of intense, real-world tutorials followed by a jam-packed day of sessions across mu…

---

## [Ruby doc html server](https://www.ruby-forum.com/t/ruby-doc-html-server/109974)

<div class="topic-metadata">

**Author:** [@michael\_schmitz](https://www.ruby-forum.com/u/michael_schmitz)\
**Replies:** 0\
**Last updated:** [July 20, 2007, 8:47pm UTC](https://www.ruby-forum.com/t/ruby-doc-html-server/109974 "2007-07-20T20:47:57Z")

</div>

Can anyone point to to the instructions for setting up apache to be a server for Ruby documentation? Thanks, Michael

---

## [Solution to your problems](https://www.ruby-forum.com/t/solution-to-your-problems/109733)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [July 20, 2007, 8:33pm UTC](https://www.ruby-forum.com/t/solution-to-your-problems/109733 "2007-07-20T20:33:55Z")

</div>

I have found an excellent resource having discussions about programming, .Net remoting, Web applications, database management, Cisco certifications, MCSD certifications and a lot more. Read more… http://www.it-techexp…

---

## [Block\_given? problem](https://www.ruby-forum.com/t/block-given-problem/109938)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [July 20, 2007, 8:14pm UTC](https://www.ruby-forum.com/t/block-given-problem/109938 "2007-07-20T20:14:54Z")

</div>

I can’t figure out why the do…end block isn’t detected by the “block\_given?” function. The problem occurs when a method call with a block is used in a puts statement. See the code example below. Can some one explain t…

---

## [OT: help with business natural language](https://www.ruby-forum.com/t/ot-help-with-business-natural-language/109916)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 4\
**Last updated:** [July 20, 2007, 8:03pm UTC](https://www.ruby-forum.com/t/ot-help-with-business-natural-language/109916 "2007-07-20T20:03:53Z")

</div>

So today I finally had the time to sit down with racc and work on a natural language for defining recurring billing cycles. The racc part was actually pretty easy once I got a handle on how yacc works, but it’s the w…

---

## [Learning the fine points of Ruby](https://www.ruby-forum.com/t/learning-the-fine-points-of-ruby/109962)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 5\
**Last updated:** [July 20, 2007, 7:57pm UTC](https://www.ruby-forum.com/t/learning-the-fine-points-of-ruby/109962 "2007-07-20T19:57:07Z")

</div>

Hey all, I adore Ruby. I love everything about it. The debugging, the community, the syntax… But my code sorta looks like VBScript - simple and generic. I have seen some really great Ruby code - some I can understand…

---

## [Overriding nil?, curiosity](https://www.ruby-forum.com/t/overriding-nil-curiosity/109776)

<div class="topic-metadata">

**Author:** [@javamllama](https://www.ruby-forum.com/u/javamllama)\
**Replies:** 2\
**Last updated:** [July 20, 2007, 7:09pm UTC](https://www.ruby-forum.com/t/overriding-nil-curiosity/109776 "2007-07-20T19:09:48Z")

</div>

Maybe this is a dumb question, but I’m gonna give it a shot. I was showing my friends how Ruby classes are always open and I did some dumb things like redefine Integer#+ to always return 5, and such. But trying this: …

---

## [Re: I need serious help!](https://www.ruby-forum.com/t/re-i-need-serious-help/109578)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 1\
**Last updated:** [July 20, 2007, 6:59pm UTC](https://www.ruby-forum.com/t/re-i-need-serious-help/109578 "2007-07-20T18:59:47Z")

</div>

I’d encourage anyone who hasn’t read Amy Hoy’s perceptive blog entry to do it ASAP and save themselves some frustration: http://slash7.com/articles/2006/12/22/vampires Peter

---

## [Can Test/Unit output in XML?](https://www.ruby-forum.com/t/can-test-unit-output-in-xml/109884)

<div class="topic-metadata">

**Author:** [@maung](https://www.ruby-forum.com/u/maung)\
**Replies:** 5\
**Last updated:** [July 20, 2007, 6:42pm UTC](https://www.ruby-forum.com/t/can-test-unit-output-in-xml/109884 "2007-07-20T18:42:46Z")

</div>

Hi, Is there any way that I can get test/unit output file in XML format? Any helpful advice would be very appreciated. Thanks, maung

---

## [Not a question, not really news either](https://www.ruby-forum.com/t/not-a-question-not-really-news-either/109631)

<div class="topic-metadata">

**Author:** [@Sharon\_P](https://www.ruby-forum.com/u/Sharon_P)\
**Replies:** 15\
**Last updated:** [July 20, 2007, 6:22pm UTC](https://www.ruby-forum.com/t/not-a-question-not-really-news-either/109631 "2007-07-20T18:22:42Z")

</div>

I work for a large conservative BigCo, but have been using Ruby for some time now - sort of unofficially. Recently I managed to get approval to train other people in Ruby so they too would be able to use it. My first…

---

## [Ruby thread-dump Gem](https://www.ruby-forum.com/t/ruby-thread-dump-gem/109921)

<div class="topic-metadata">

**Author:** [@afg](https://www.ruby-forum.com/u/afg)\
**Replies:** 4\
**Last updated:** [July 20, 2007, 6:21pm UTC](https://www.ruby-forum.com/t/ruby-thread-dump-gem/109921 "2007-07-20T18:21:42Z")

</div>

So a huge feature missed from the JVM is the ability to send SIGQUIT (ctrl-break) and get a list of running threads. This feature is a killer feature for tracking down hung processes, as it will allow you to see where…

---

## [How to use conditionals with expect.rb?](https://www.ruby-forum.com/t/how-to-use-conditionals-with-expect-rb/109754)

<div class="topic-metadata">

**Author:** [@rubyoncrack](https://www.ruby-forum.com/u/rubyoncrack)\
**Replies:** 3\
**Last updated:** [July 20, 2007, 5:44pm UTC](https://www.ruby-forum.com/t/how-to-use-conditionals-with-expect-rb/109754 "2007-07-20T17:44:53Z")

</div>

This is a shot in the dark since it appears nobody uses expect.rb. Does anybody know how to use a conditional with IO.expect("")? Everytime I enter a string that isn’t expected into IO.expect(""), the script just hang…

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

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