# Ruby

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

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

---

## [Re: Ruby Neural](https://www.ruby-forum.com/t/re-ruby-neural/76233)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [December 26, 2005, 10:26am UTC](https://www.ruby-forum.com/t/re-ruby-neural/76233 "2005-12-26T10:26:45Z")

</div>

| I can make this available at sourceforge or rubyforge. Sure it would be great! Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Cerchi l?amore? Allora iscriviti gratis a Meetic: trov…

---

## [Ruby Eventing](https://www.ruby-forum.com/t/ruby-eventing/76076)

<div class="topic-metadata">

**Author:** [@Ronggen\_Pan](https://www.ruby-forum.com/u/Ronggen_Pan)\
**Replies:** 1\
**Last updated:** [December 26, 2005, 8:10am UTC](https://www.ruby-forum.com/t/ruby-eventing/76076 "2005-12-26T08:10:17Z")

</div>

Hi, While working on a state machine work flow, I need a flexible way to define event/event handling. Since I came from C# background, so I have come up event.rb to share with everyone. Welcome for comments. Here’s …

---

## [Method introspection question](https://www.ruby-forum.com/t/method-introspection-question/51071)

<div class="topic-metadata">

**Author:** [@amrangaye](https://www.ruby-forum.com/u/amrangaye)\
**Replies:** 2\
**Last updated:** [December 26, 2005, 5:23am UTC](https://www.ruby-forum.com/t/method-introspection-question/51071 "2005-12-26T05:23:17Z")

</div>

Hello Is there anyway to get back the definition of a method within a running program \[or irb session\]? For example, if I declare a method: def hello puts “Hello” end is there anything like hello.source to get bac…

---

## [Where is the attribute definition of Category class?](https://www.ruby-forum.com/t/where-is-the-attribute-definition-of-category-class/54302)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [December 26, 2005, 5:11am UTC](https://www.ruby-forum.com/t/where-is-the-attribute-definition-of-category-class/54302 "2005-12-26T05:11:17Z")

</div>

Hi everyone, I’m a newbie of ruby and rubyonrails. I’m trying \<\> those days, and I found some code generated by rails (precisely ActiveRecord) hard to understand, as follows: class Category \< ActiveRecord::Base valid…

---

## [Simple ShoutCAST streamer /w browser](https://www.ruby-forum.com/t/simple-shoutcast-streamer-w-browser/51095)

<div class="topic-metadata">

**Author:** [@Ilmari\_H](https://www.ruby-forum.com/u/Ilmari_H)\
**Replies:** 0\
**Last updated:** [December 26, 2005, 5:11am UTC](https://www.ruby-forum.com/t/simple-shoutcast-streamer-w-browser/51095 "2005-12-26T05:11:16Z")

</div>

I don’t know how interesting this is, but I found it useful for listening to music on my home computer (tunneled over SSH) while visiting my folks over the holidays. It’s a quick hack, accepting CGI-using rewrites …

---

## [Ruby Neural](https://www.ruby-forum.com/t/ruby-neural/76080)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 26, 2005, 4:08am UTC](https://www.ruby-forum.com/t/ruby-neural/76080 "2005-12-26T04:08:15Z")

</div>

I had a need to put together a feedforward neural network in ruby. It is available for download at http://bbryant.dnsalias.net/~billy/ruby\_neural.tar.gz. If anyone wants I can make this available at sourceforge or rub…

---

## [Gonzui-emacs-0.2](https://www.ruby-forum.com/t/gonzui-emacs-0-2/51053)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [December 25, 2005, 7:16pm UTC](https://www.ruby-forum.com/t/gonzui-emacs-0-2/51053 "2005-12-25T19:16:10Z")

</div>

Hi, == Abstract gonzui-emacs is an Emacs interface of ((\<gonzui|URL:http://gonzui.sourceforge.net/\>)), a source code search engine. It is written in EmacsRuby. It uses ((\<langhelp|URL:http://www.rubyist.net/~rubik…

---

## [Convert perl code to ruby: help please](https://www.ruby-forum.com/t/convert-perl-code-to-ruby-help-please/75803)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [December 25, 2005, 4:15pm UTC](https://www.ruby-forum.com/t/convert-perl-code-to-ruby-help-please/75803 "2005-12-25T16:15:32Z")

</div>

Hi all, I have a following Perl code: %charmap =( “a" =\> "\\xc3\\xa0", "a?" =\> "\\xe1\\xba\\xa3", "a~" =\> "\\xc3\\xa3", "a'" =\> "\\xc3\\xa1", "a." =\> "\\xe1\\xba\\xa1", "a(" =\> "\\xc4\\x83", "a(” =\> “\\xe1\\xba\\xb1”, “a(?” =\> “\\xe1\\x…

---

## [Problem with regex using mx flags](https://www.ruby-forum.com/t/problem-with-regex-using-mx-flags/50863)

<div class="topic-metadata">

**Author:** [@dankitania](https://www.ruby-forum.com/u/dankitania)\
**Replies:** 1\
**Last updated:** [December 25, 2005, 4:15pm UTC](https://www.ruby-forum.com/t/problem-with-regex-using-mx-flags/50863 "2005-12-25T16:15:28Z")

</div>

Could you please take a look at this regex (line 52) that’s just killing me. (It’s at http://rafb.net/paste/results/l4U66N90.html or below). When I split it up (lines 44-49) it works fine. There must be something obv…

---

## [Ruby christmas](https://www.ruby-forum.com/t/ruby-christmas/75060)

<div class="topic-metadata">

**Author:** [@Franz\_Hartmann](https://www.ruby-forum.com/u/Franz_Hartmann)\
**Replies:** 7\
**Last updated:** [December 25, 2005, 4:14pm UTC](https://www.ruby-forum.com/t/ruby-christmas/75060 "2005-12-25T16:14:16Z")

</div>

Dear Ruby community, i want to thank you all for the help you gave me about ruby. really i study physic not any longer because it gave me a headache. i think i am going to be a freelancer. in ruby, perhaps. so we may…

---

## [Regex: how to match duplicate syllables?](https://www.ruby-forum.com/t/regex-how-to-match-duplicate-syllables/51059)

<div class="topic-metadata">

**Author:** [@basi](https://www.ruby-forum.com/u/basi)\
**Replies:** 3\
**Last updated:** [December 25, 2005, 5:34am UTC](https://www.ruby-forum.com/t/regex-how-to-match-duplicate-syllables/51059 "2005-12-25T05:34:54Z")

</div>

Merry Christmas! But work goes on :frowning: Just trying a way to match duplicate syllables. C = “bcdfghjklmnpqrstvwxyz” V = “aeiou” aString =~ /\[#{C}\]\[#{V}\]\[#{C}\]\[#{V}\]/ should match if the first CV matches the ne…

---

## [Re: Bruce Eckel and Ruby](https://www.ruby-forum.com/t/re-bruce-eckel-and-ruby/50903)

<div class="topic-metadata">

**Author:** [@MolitorS\_Stephen\_L](https://www.ruby-forum.com/u/MolitorS_Stephen_L)\
**Replies:** 4\
**Last updated:** [December 25, 2005, 1:04am UTC](https://www.ruby-forum.com/t/re-bruce-eckel-and-ruby/50903 "2005-12-25T01:04:39Z")

</div>

Sorry, but I hate it when people attack the arguer instead of the argument. I love Bruce Eckel’s books and highly respect his opinion. Although I disagree with his characterization of Ruby. Attack his opinion all yo…

---

## [Any reason 'Core API Docs' include non-core classes?](https://www.ruby-forum.com/t/any-reason-core-api-docs-include-non-core-classes/51052)

<div class="topic-metadata">

**Author:** [@Gyoung-Yoon\_N](https://www.ruby-forum.com/u/Gyoung-Yoon_N)\
**Replies:** 2\
**Last updated:** [December 25, 2005, 12:25am UTC](https://www.ruby-forum.com/t/any-reason-core-api-docs-include-non-core-classes/51052 "2005-12-25T00:25:35Z")

</div>

Hi, I have wondered why 'Core API Docs’1 include non-core classes following: Abbrev Benchmark Benchmark::Tms CGI ConditionVariable Find Logger Logger::Application Logger::Error Logger::LogDevice Logger::Seve…

---

## [Installing Ruby and Rails on Ubuntu](https://www.ruby-forum.com/t/installing-ruby-and-rails-on-ubuntu/51031)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 5\
**Last updated:** [December 24, 2005, 10:40pm UTC](https://www.ruby-forum.com/t/installing-ruby-and-rails-on-ubuntu/51031 "2005-12-24T22:40:15Z")

</div>

I’ve been following the instructions at: http://claudio.cicali.org/article/74/how-to-install-ruby-on-rails-on-ubuntu-510 but unfortunately it fails during step 5. When I attempt to run: ruby extconf.rb I get an erro…

---

## [UTF-8 regular expressions](https://www.ruby-forum.com/t/utf-8-regular-expressions/51057)

<div class="topic-metadata">

**Author:** [@blewis](https://www.ruby-forum.com/u/blewis)\
**Replies:** 0\
**Last updated:** [December 24, 2005, 10:40pm UTC](https://www.ruby-forum.com/t/utf-8-regular-expressions/51057 "2005-12-24T22:40:14Z")

</div>

Hi, So I read the post from awhile back about packing multi-byte UTF-8 characters as octal: r = Regexp.compile(“ab\\304\\243cd”, 0, “UTF-8”) or r = Regexp.compile(“ab#{\[0x123\].pack(‘U’)}cd”, 0, “UTF-8”) So this seems…

---

## [1.8.4 Struct bug](https://www.ruby-forum.com/t/1-8-4-struct-bug/51049)

<div class="topic-metadata">

**Author:** [@jamis](https://www.ruby-forum.com/u/jamis)\
**Replies:** 1\
**Last updated:** [December 24, 2005, 9:33pm UTC](https://www.ruby-forum.com/t/1-8-4-struct-bug/51049 "2005-12-24T21:33:49Z")

</div>

Found the following while making sure Net::SSH works with 1.8.4: irb(main):001:0\> Struct.new(:valid?).new.valid? NoMethodError: undefined method \`valid?’ for #\<struct #\<Class: 0x535994\> :valid?=nil\> from (irb):1 Thi…

---

## [Why not Python? (No, no, I am not a spy)](https://www.ruby-forum.com/t/why-not-python-no-no-i-am-not-a-spy/50836)

<div class="topic-metadata">

**Author:** [@Tolga](https://www.ruby-forum.com/u/Tolga)\
**Replies:** 43\
**Last updated:** [December 24, 2005, 7:00pm UTC](https://www.ruby-forum.com/t/why-not-python-no-no-i-am-not-a-spy/50836 "2005-12-24T19:00:25Z")

</div>

First of all and very first of all, I must state that I am not an enemy or a spy :smiley: One or two weeks ago, I tried Python and loved it. But I also hearing ineteresting things about Ruby nowadays. Which language s…

---

## [Ruby Syntax Highlighter for Nano](https://www.ruby-forum.com/t/ruby-syntax-highlighter-for-nano/51036)

<div class="topic-metadata">

**Author:** [@jung](https://www.ruby-forum.com/u/jung)\
**Replies:** 3\
**Last updated:** [December 24, 2005, 5:15pm UTC](https://www.ruby-forum.com/t/ruby-syntax-highlighter-for-nano/51036 "2005-12-24T17:15:09Z")

</div>

I spent around an hour looking for a Ruby syntax highlighter for Nano. I couldn’t find one so I decided to try my best at creating my own. If anyone has any suggestions or wants to help improve it, be my guest. Get i…

---

## [Instant Rails 1.0 preview8 -- very, very minor version](https://www.ruby-forum.com/t/instant-rails-1-0-preview8-very-very-minor-version/51042)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 0\
**Last updated:** [December 24, 2005, 4:17pm UTC](https://www.ruby-forum.com/t/instant-rails-1-0-preview8-very-very-minor-version/51042 "2005-12-24T16:17:59Z")

</div>

Instant Rails 1.0 preview8 has been released. This is identical to preview7 except that it restores the missing “log” subdirectories in the sample rails apps (cookbook and Typo). If you have preview7 installed, plea…

---

## [More "Ruby for Java developers"](https://www.ruby-forum.com/t/more-ruby-for-java-developers/50858)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 3\
**Last updated:** [December 24, 2005, 12:23pm UTC](https://www.ruby-forum.com/t/more-ruby-for-java-developers/50858 "2005-12-24T12:23:36Z")

</div>

There’s a new article on IBM developerWorks called “Ruby off the Rails”: http://www-128.ibm.com/developerworks/library/j-ruby/ It’s pointing out various nifty things about Ruby for those Java developers (and other fol…

---

## [Ruby and Debian](https://www.ruby-forum.com/t/ruby-and-debian/50513)

<div class="topic-metadata">

**Author:** [@Hal\_F](https://www.ruby-forum.com/u/Hal_F)\
**Replies:** 23\
**Last updated:** [December 24, 2005, 9:14am UTC](https://www.ruby-forum.com/t/ruby-and-debian/50513 "2005-12-24T09:14:15Z")

</div>

I don’t wish to open a can of worms here. I’m not even a Debian user, I’m just trying to help a friend. Please refrain if you can from digressing into discussions of politics, licenses, package management, rubygems re…

---

## [\[ANN\] Instant Rails 1.0 preview7 -- with Typo!](https://www.ruby-forum.com/t/ann-instant-rails-1-0-preview7-with-typo/50321)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 9\
**Last updated:** [December 24, 2005, 5:35am UTC](https://www.ruby-forum.com/t/ann-instant-rails-1-0-preview7-with-typo/50321 "2005-12-24T05:35:03Z")

</div>

My apologies to all who downloaded preview6, it did not contain Rails 1.0 as advertised – I screwed up! Preview7 does, in fact, contain Rails 1.0 and as a bonus, also includes Typo 2.6.0 as a preinstalled sample app…

---

## [Comparison of versions](https://www.ruby-forum.com/t/comparison-of-versions/51023)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 2\
**Last updated:** [December 24, 2005, 2:55am UTC](https://www.ruby-forum.com/t/comparison-of-versions/51023 "2005-12-24T02:55:56Z")

</div>

With regard to version numbers does one consider 1.0.0 == 1.0 ? T.

---

## [Kernel#select and threads](https://www.ruby-forum.com/t/kernel-select-and-threads/51016)

<div class="topic-metadata">

**Author:** [@hotjuneshen](https://www.ruby-forum.com/u/hotjuneshen)\
**Replies:** 3\
**Last updated:** [December 24, 2005, 1:19am UTC](https://www.ruby-forum.com/t/kernel-select-and-threads/51016 "2005-12-24T01:19:40Z")

</div>

Does calling kernel#select stop all ruby threads while it is waiting or does the interpreter run the select on a different kernel thread? By running the select on another kernel thread other ruby threads could run whi…

---

## [Ruby faster than Python?](https://www.ruby-forum.com/t/ruby-faster-than-python/54237)

<div class="topic-metadata">

**Author:** [@spiz](https://www.ruby-forum.com/u/spiz)\
**Replies:** 7\
**Last updated:** [December 23, 2005, 11:49pm UTC](https://www.ruby-forum.com/t/ruby-faster-than-python/54237 "2005-12-23T23:49:27Z")

</div>

Hi all, I read somewhere that Ruby is quite a bit faster than Python. Is that true? Is it true under most circumstances, or just in special cases? The same article also said Ruby was somewhat slower than Perl …

---

## [Character safe CSV parser](https://www.ruby-forum.com/t/character-safe-csv-parser/50974)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [December 23, 2005, 10:43pm UTC](https://www.ruby-forum.com/t/character-safe-csv-parser/50974 "2005-12-23T22:43:12Z")

</div>

I was running into difficulties with the CSV library in Ruby. I had some files that were exports from a Filemaker database, and it had newline and vtab characters within strings. This seemed to cause problems for the …

---

## [Native cross-compiling (-packing) with GUI](https://www.ruby-forum.com/t/native-cross-compiling-packing-with-gui/51013)

<div class="topic-metadata">

**Author:** [@Meillo\_r\_e\_t\_u\_r\_n\_S](https://www.ruby-forum.com/u/Meillo_r_e_t_u_r_n_S)\
**Replies:** 3\
**Last updated:** [December 23, 2005, 9:49pm UTC](https://www.ruby-forum.com/t/native-cross-compiling-packing-with-gui/51013 "2005-12-23T21:49:06Z")

</div>

Hi community, i’m brand new to Ruby, but i like what i’ve seen by now. After some time with Lazarus ( http://lazarus.freepascal.org ) and gcj ( http://gcc.gnu.org/java ) i unfortunately haven’t found what i am really …

---

## [How can I create a ruby class in runtime](https://www.ruby-forum.com/t/how-can-i-create-a-ruby-class-in-runtime/74546)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [December 23, 2005, 9:34pm UTC](https://www.ruby-forum.com/t/how-can-i-create-a-ruby-class-in-runtime/74546 "2005-12-23T21:34:04Z")

</div>

Hi, Does anyone know how to create a ruby class in runtime? ex: class Parent def… def… end in runtime, we want to create a class “child” inherited from “parent”, it is possible? thanks you very much sayoyo

---

## [Re: Rails DB convention info is a big fat secret?](https://www.ruby-forum.com/t/re-rails-db-convention-info-is-a-big-fat-secret/74130)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 1\
**Last updated:** [December 23, 2005, 9:12pm UTC](https://www.ruby-forum.com/t/re-rails-db-convention-info-is-a-big-fat-secret/74130 "2005-12-23T21:12:55Z")

</div>

http://api.rubyonrails.com/files/vendor/rails/activerecord/README.html Then off through the second “read more” to learn about associations. http://api.rubyonrails.com/classes/ActiveRecord/Associations/ClassMethod s.ht…

---

## [REXML -- Parsing doctypes (and some some bugs)](https://www.ruby-forum.com/t/rexml-parsing-doctypes-and-some-some-bugs/51007)

<div class="topic-metadata">

**Author:** [@agnathan](https://www.ruby-forum.com/u/agnathan)\
**Replies:** 0\
**Last updated:** [December 23, 2005, 7:45pm UTC](https://www.ruby-forum.com/t/rexml-parsing-doctypes-and-some-some-bugs/51007 "2005-12-23T19:45:10Z")

</div>

(1) How does one parse a doctype in REXML? Hack solution – #+++++++ require ‘rexml/document’ data =\<\<EOF \<?xml version="1.0" encoding="utf-8" ?\> baz EOF p REXML::Document.new(data).doctype.instance\_variable\_…

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

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