# Ruby

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

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

---

## [Writing 'plugins'](https://www.ruby-forum.com/t/writing-plugins/86789)

<div class="topic-metadata">

**Author:** [@russellf](https://www.ruby-forum.com/u/russellf)\
**Replies:** 2\
**Last updated:** [February 26, 2007, 7:40am UTC](https://www.ruby-forum.com/t/writing-plugins/86789 "2007-02-26T07:40:54Z")

</div>

Hi Folks, I have a Ruby application that I am trying to extend by developing a plugin architecture. I have things more or less working but there are still a few rough edges that I want to get rid off. I have develop…

---

## [Textmate on Windoze!](https://www.ruby-forum.com/t/textmate-on-windoze/86551)

<div class="topic-metadata">

**Author:** [@brianspaid](https://www.ruby-forum.com/u/brianspaid)\
**Replies:** 44\
**Last updated:** [February 26, 2007, 4:53am UTC](https://www.ruby-forum.com/t/textmate-on-windoze/86551 "2007-02-26T04:53:44Z")

</div>

Check it out.

---

## [QtRuby install](https://www.ruby-forum.com/t/qtruby-install/73380)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 11\
**Last updated:** [February 26, 2007, 4:10am UTC](https://www.ruby-forum.com/t/qtruby-install/73380 "2007-02-26T04:10:41Z")

</div>

I’d like to evaluate using Qt with Ruby. I’ve downloaded and installed Qt from http://www.trolltech.com. It’s a monster … 174MB to install. I’ve also downloaded qt4-qtruby-1.4.2.tar.gz from http://rubyforge.org/projec…

---

## [Lovely ruby powered Search - thanks guys for all the help](https://www.ruby-forum.com/t/lovely-ruby-powered-search-thanks-guys-for-all-the-help/102698)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 0\
**Last updated:** [February 26, 2007, 2:55am UTC](https://www.ruby-forum.com/t/lovely-ruby-powered-search-thanks-guys-for-all-the-help/102698 "2007-02-26T02:55:35Z")

</div>

http://www.teenwag.com/search?q=sports+illustrated&btn=Search http://www.teenwag.com/search?q= +Antonella+Barba&btn=Search http://www.teenwag.com/search?q= +Anna+Nicole+smith&btn=Search Accelarated and GZIP compressed …

---

## [Define an each iterator, etc](https://www.ruby-forum.com/t/define-an-each-iterator-etc/86799)

<div class="topic-metadata">

**Author:** [@Guillaume\_Nargeot](https://www.ruby-forum.com/u/Guillaume_Nargeot)\
**Replies:** 2\
**Last updated:** [February 26, 2007, 2:52am UTC](https://www.ruby-forum.com/t/define-an-each-iterator-etc/86799 "2007-02-26T02:52:34Z")

</div>

I would like to know if it’s possible to define iterators like each for a class you have written ? Is it also possible to write methods that can have the following behavior/usage: object.method do |var| something e…

---

## [Type of class](https://www.ruby-forum.com/t/type-of-class/86769)

<div class="topic-metadata">

**Author:** [@j-merrill](https://www.ruby-forum.com/u/j-merrill)\
**Replies:** 3\
**Last updated:** [February 26, 2007, 2:20am UTC](https://www.ruby-forum.com/t/type-of-class/86769 "2007-02-26T02:20:32Z")

</div>

Hi How do I know if a variable is an instace of a given class I have a method that returns a String or an Array and I have to know outside if the returned object is and String or an Array. Is beacuse this : # File v…

---

## [OS X / gem install / problems](https://www.ruby-forum.com/t/os-x-gem-install-problems/86695)

<div class="topic-metadata">

**Author:** [@brez](https://www.ruby-forum.com/u/brez)\
**Replies:** 2\
**Last updated:** [February 26, 2007, 1:57am UTC](https://www.ruby-forum.com/t/os-x-gem-install-problems/86695 "2007-02-26T01:57:22Z")

</div>

Did some heavy research / hacking but no luck - I built ruby 1.8.5 on my little iBook \[OS X 10.2.8\] which went fine - I then went to install gem but got: \[ommitted\] install user\_interaction.rb /usr/local/lib/ruby/sit…

---

## [No Rails, shared host - what would you use for DB and Sessio](https://www.ruby-forum.com/t/no-rails-shared-host-what-would-you-use-for-db-and-sessio/86737)

<div class="topic-metadata">

**Author:** [@TSWSUrp](https://www.ruby-forum.com/u/TSWSUrp)\
**Replies:** 4\
**Last updated:** [February 26, 2007, 1:55am UTC](https://www.ruby-forum.com/t/no-rails-shared-host-what-would-you-use-for-db-and-sessio/86737 "2007-02-26T01:55:31Z")

</div>

I am starting a new type of community site app. Humble beginnings: No Rails, Shared host. This app is directed for building small community sites without rails, on a generic shared host with the usual (My)SQL databas…

---

## [Help Me](https://www.ruby-forum.com/t/help-me/86192)

<div class="topic-metadata">

**Author:** [@1412](https://www.ruby-forum.com/u/1412)\
**Replies:** 12\
**Last updated:** [February 26, 2007, 1:44am UTC](https://www.ruby-forum.com/t/help-me/86192 "2007-02-26T01:44:30Z")

</div>

Hi everyone iam new here but iam not in ruby. How to make Web page with Ruby, and is ruby can run along with PHP?

---

## [Ruport, Table append, access to record](https://www.ruby-forum.com/t/ruport-table-append-access-to-record/86773)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [February 26, 2007, 1:00am UTC](https://www.ruby-forum.com/t/ruport-table-append-access-to-record/86773 "2007-02-26T01:00:26Z")

</div>

I’m looping through an Excel spreadsheeet, acquiring cells, and adding the data to a ruport table. I want access to the record just appended, but unsure of how to get to it. Code follows: begin @tbl\_PAS…

---

## [Any way to undef a constant?](https://www.ruby-forum.com/t/any-way-to-undef-a-constant/86629)

<div class="topic-metadata">

**Author:** [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Replies:** 6\
**Last updated:** [February 25, 2007, 11:29pm UTC](https://www.ruby-forum.com/t/any-way-to-undef-a-constant/86629 "2007-02-25T23:29:21Z")

</div>

Hi, I’m dynamically compiling ruby code (in a $SAFE=4 environment), and because I’m not allowed to re-open classes (even tainted ones), I’m having trouble reloading previously-compiled script code. As a temporary wor…

---

## [How to run ruby in jEdit?](https://www.ruby-forum.com/t/how-to-run-ruby-in-jedit/86760)

<div class="topic-metadata">

**Author:** [@Mingquan\_C](https://www.ruby-forum.com/u/Mingquan_C)\
**Replies:** 1\
**Last updated:** [February 25, 2007, 11:28pm UTC](https://www.ruby-forum.com/t/how-to-run-ruby-in-jedit/86760 "2007-02-25T23:28:21Z")

</div>

Hi folks, I’m new to ruby, and now I’m using jEdit to write ruby program. Although installed “Console” plugin for jEdit, I still failed to run Ruby in it. For example, assume there is a ruby file called “test.rb” I…

---

## [Ruby + qt](https://www.ruby-forum.com/t/ruby-qt/86788)

<div class="topic-metadata">

**Author:** [@flaab](https://www.ruby-forum.com/u/flaab)\
**Replies:** 1\
**Last updated:** [February 25, 2007, 11:11pm UTC](https://www.ruby-forum.com/t/ruby-qt/86788 "2007-02-25T23:11:19Z")

</div>

Hi there =) Do you know if i can develop apps with QT Gui Interface? If so…where can i find documentation? Thanks in advance.

---

## [Using unpack on a UTF-8 string](https://www.ruby-forum.com/t/using-unpack-on-a-utf-8-string/86699)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 3\
**Last updated:** [February 25, 2007, 10:21pm UTC](https://www.ruby-forum.com/t/using-unpack-on-a-utf-8-string/86699 "2007-02-25T22:21:16Z")

</div>

On my system: ‘â‚¬’.unpack(‘U\*’) Produces: =\> \[8364\] I would have expected this: =\> \[342, 202, 254\] In fact, I could have sworn that things used to work this way… Am I going crazy? The following seems to confirm t…

---

## [Hex to 4-byte/32-bit quantity](https://www.ruby-forum.com/t/hex-to-4-byte-32-bit-quantity/86752)

<div class="topic-metadata">

**Author:** [@mattias](https://www.ruby-forum.com/u/mattias)\
**Replies:** 5\
**Last updated:** [February 25, 2007, 9:40pm UTC](https://www.ruby-forum.com/t/hex-to-4-byte-32-bit-quantity/86752 "2007-02-25T21:40:29Z")

</div>

I’m parsing a binary file and it contains (reading the specs on the format) uInt32Number, 4-byte/32-bit quantities. On the specific positions I read the value 0x000a - how do I turn this into a 32-bit quantity? Cheer…

---

## [More help with eruby](https://www.ruby-forum.com/t/more-help-with-eruby/86782)

<div class="topic-metadata">

**Author:** [@peter](https://www.ruby-forum.com/u/peter)\
**Replies:** 0\
**Last updated:** [February 25, 2007, 9:28pm UTC](https://www.ruby-forum.com/t/more-help-with-eruby/86782 "2007-02-25T21:28:11Z")

</div>

Hi list I really hate to ask for help and it seems that the simplest things are stumping me :frowning: I’m trying to create a dynamic menu where a var is passed to expose the next section based on the link used like …

---

## [Undefined method \`at' for nil:NilClass in parseexcel.help pl](https://www.ruby-forum.com/t/undefined-method-at-for-nil-nilclass-in-parseexcel-help-pl/86566)

<div class="topic-metadata">

**Author:** [@tuhin\_cse99](https://www.ruby-forum.com/u/tuhin_cse99)\
**Replies:** 6\
**Last updated:** [February 25, 2007, 8:45pm UTC](https://www.ruby-forum.com/t/undefined-method-at-for-nil-nilclass-in-parseexcel-help-pl/86566 "2007-02-25T20:45:06Z")

</div>

use this code to open my ‘2007-02-231028.xls’ file. the file is in the same directory of the program. my code: require ‘parseexcel’ workbook = Spreadsheet::ParseExcel.parse(‘2007-02-231028.xls’) worksheet = workbook…

---

## [Blocks in class\_eval](https://www.ruby-forum.com/t/blocks-in-class-eval/86775)

<div class="topic-metadata">

**Author:** [@Kyle\_Mitchell](https://www.ruby-forum.com/u/Kyle_Mitchell)\
**Replies:** 2\
**Last updated:** [February 25, 2007, 8:39pm UTC](https://www.ruby-forum.com/t/blocks-in-class-eval/86775 "2007-02-25T20:39:05Z")

</div>

the following works: ///// BEGIN funcmeta.rb ///// def func\_meta(&b) class\_eval { @@proc = b #guilt begins here def test @@proc.call end } end class Test func\_meta { puts(“test”) } end t = Test.new t.te…

---

## [Ruby installation error: dependences failed.help me](https://www.ruby-forum.com/t/ruby-installation-error-dependences-failed-help-me/86772)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 0\
**Last updated:** [February 25, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/ruby-installation-error-dependences-failed-help-me/86772 "2007-02-25T20:01:29Z")

</div>

guys, How can i install ruby 1.8.5 in linux enterprise edition version 4. I googled for ruby rpm for version 1.8.5. But not found. At last i install ruby-1.8.5-3.i386.rpm with the command rpm -Uhv ruby-1.8.5-3.i386…

---

## [Recommened package versions for linux](https://www.ruby-forum.com/t/recommened-package-versions-for-linux/86758)

<div class="topic-metadata">

**Author:** [@spashokkumar](https://www.ruby-forum.com/u/spashokkumar)\
**Replies:** 0\
**Last updated:** [February 25, 2007, 5:23pm UTC](https://www.ruby-forum.com/t/recommened-package-versions-for-linux/86758 "2007-02-25T17:23:14Z")

</div>

Hi, i just confused with the packages available. can anyone please tell me?, what are the stable package which you recomend for linux. i am using redhat linux 9.0 and fedoracore 5.0(sometimes) or 6.0 (sometimes). …

---

## [Problem with session under cgi file](https://www.ruby-forum.com/t/problem-with-session-under-cgi-file/86700)

<div class="topic-metadata">

**Author:** [@dsa](https://www.ruby-forum.com/u/dsa)\
**Replies:** 6\
**Last updated:** [February 25, 2007, 4:16pm UTC](https://www.ruby-forum.com/t/problem-with-session-under-cgi-file/86700 "2007-02-25T16:16:00Z")

</div>

When i set a value in session after changing page session doesn’t remember the value. I have an example. Page: http://darksky.pl/test/index.cgi Source: http://darksky.pl/test/index.txt Don’t ask why I have to make i…

---

## [Re: Mailing List Files (#115)](https://www.ruby-forum.com/t/re-mailing-list-files-115/86754)

<div class="topic-metadata">

**Author:** [@kuma](https://www.ruby-forum.com/u/kuma)\
**Replies:** 0\
**Last updated:** [February 25, 2007, 4:15pm UTC](https://www.ruby-forum.com/t/re-mailing-list-files-115/86754 "2007-02-25T16:15:07Z")

</div>

Oops, I saw someone else’s message about message # 66854… The filename was in quotes. Brian ----- Original Message ---- From: brian hammond removed\_email\_address@domain.invalid To: ruby-talk ML removed\_email\_addres…

---

## [Re: Mailing List Files (#115)](https://www.ruby-forum.com/t/re-mailing-list-files-115/86757)

<div class="topic-metadata">

**Author:** [@kuma](https://www.ruby-forum.com/u/kuma)\
**Replies:** 0\
**Last updated:** [February 25, 2007, 4:11pm UTC](https://www.ruby-forum.com/t/re-mailing-list-files-115/86757 "2007-02-25T16:11:07Z")

</div>

Sorry to not respond to the original message. I am new to Ruby and just joined Ruby-Talk today. Attached is my solution to Quiz #115. If you cannot read attachments for some reason, see http://brianhammond.com/ruby-q…

---

## [Lightweight way to create jpeg files?](https://www.ruby-forum.com/t/lightweight-way-to-create-jpeg-files/86694)

<div class="topic-metadata">

**Author:** [@miken700](https://www.ruby-forum.com/u/miken700)\
**Replies:** 2\
**Last updated:** [February 25, 2007, 3:14pm UTC](https://www.ruby-forum.com/t/lightweight-way-to-create-jpeg-files/86694 "2007-02-25T15:14:32Z")

</div>

Is there an easy lightweight way to dynamically create jpeg files? I think RImageMagick could do this but it seems like it’s loaded with dependences. Ideally I’d like to send an Array of lines with color values to be …

---

## [Regular expressions](https://www.ruby-forum.com/t/regular-expressions/85249)

<div class="topic-metadata">

**Author:** [@j-merrill](https://www.ruby-forum.com/u/j-merrill)\
**Replies:** 20\
**Last updated:** [February 25, 2007, 2:56pm UTC](https://www.ruby-forum.com/t/regular-expressions/85249 "2007-02-25T14:56:53Z")

</div>

Hi folks, I’m burning my head because i don’t understand how regular expressions works I just want to validade a username wher username -\>valid user.name -\>valid everything else is invalid let me know the reg exp …

---

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

<div class="topic-metadata">

**Author:** [@badcherry](https://www.ruby-forum.com/u/badcherry)\
**Replies:** 3\
**Last updated:** [February 25, 2007, 2:50pm UTC](https://www.ruby-forum.com/t/ruby-subprocess/86731 "2007-02-25T14:50:52Z")

</div>

I am wanting inside of a ruby script to execute another ruby script in a subprocess in the same manner as exec(). As first thought I considered seeing if you can lookup the ruby executable path from within ruby, but …

---

## [Enum\_cons with tail](https://www.ruby-forum.com/t/enum-cons-with-tail/86622)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 6\
**Last updated:** [February 25, 2007, 2:38pm UTC](https://www.ruby-forum.com/t/enum-cons-with-tail/86622 "2007-02-25T14:38:49Z")

</div>

enum\_cons chops off the tail of the collection, if it isn’t evenly divisble: e.g.: (1…10).each\_cons(3) {|a| p a} # outputs below \[1, 2, 3\] \[2, 3, 4\] \[3, 4, 5\] \[4, 5, 6\] \[5, 6, 7\] \[6, 7, 8\] \[7, 8, 9\] \[8, 9, 10…

---

## [Mostly used version](https://www.ruby-forum.com/t/mostly-used-version/86749)

<div class="topic-metadata">

**Author:** [@spashokkumar](https://www.ruby-forum.com/u/spashokkumar)\
**Replies:** 4\
**Last updated:** [February 25, 2007, 1:46pm UTC](https://www.ruby-forum.com/t/mostly-used-version/86749 "2007-02-25T13:46:45Z")

</div>

Hi. which version of ruby is mostly used by users? Ashok

---

## [Just started learning Ruby](https://www.ruby-forum.com/t/just-started-learning-ruby/86710)

<div class="topic-metadata">

**Author:** [@DracoJK](https://www.ruby-forum.com/u/DracoJK)\
**Replies:** 3\
**Last updated:** [February 25, 2007, 12:01pm UTC](https://www.ruby-forum.com/t/just-started-learning-ruby/86710 "2007-02-25T12:01:26Z")

</div>

I’ve been working through the Humble Ruby Book that I found in a signature of one of ruby talk’s list members, and would like a little more explanation as to how pointing to a pointer works. The example used was a s…

---

## [Re: installation problem uconv-0.4.12. plz help](https://www.ruby-forum.com/t/re-installation-problem-uconv-0-4-12-plz-help/86744)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [February 25, 2007, 9:30am UTC](https://www.ruby-forum.com/t/re-installation-problem-uconv-0-4-12-plz-help/86744 "2007-02-25T09:30:09Z")

</div>

Sounds like you are on a non-unix platform? If Windows and no one has made a binary package available you might try the cygwin route where make, etc is available. — Original Message —

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

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