# Ruby

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

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

---

## [ANN: ruby-semacode-0.7.3](https://www.ruby-forum.com/t/ann-ruby-semacode-0-7-3/88370)

<div class="topic-metadata">

**Author:** [@gui\_dos](https://www.ruby-forum.com/u/gui_dos)\
**Replies:** 3\
**Last updated:** [March 11, 2007, 2:22am UTC](https://www.ruby-forum.com/t/ann-ruby-semacode-0-7-3/88370 "2007-03-11T02:22:41Z")

</div>

This Ruby extension implements a DataMatrix encoder for Ruby. It is typically used to create semacodes, which are barcodes, that contain URLs. This encoder does not create image files or visual representations of the …

---

## [Re: Perl 6 (Was: Boy I love the Ruby community)](https://www.ruby-forum.com/t/re-perl-6-was-boy-i-love-the-ruby-community/87725)

<div class="topic-metadata">

**Author:** [@avdi](https://www.ruby-forum.com/u/avdi)\
**Replies:** 29\
**Last updated:** [March 11, 2007, 2:00am UTC](https://www.ruby-forum.com/t/re-perl-6-was-boy-i-love-the-ruby-community/87725 "2007-03-11T02:00:39Z")

</div>

To me the most interesting thing about Perl 6, should it ever be released, is that (AFAIK) it has built-in support for swapping in new parsers at runtime. This has intriguing implications for DSLs.

---

## [Which Ruby book to read?](https://www.ruby-forum.com/t/which-ruby-book-to-read/88428)

<div class="topic-metadata">

**Author:** [@Human\_D](https://www.ruby-forum.com/u/Human_D)\
**Replies:** 5\
**Last updated:** [March 11, 2007, 1:12am UTC](https://www.ruby-forum.com/t/which-ruby-book-to-read/88428 "2007-03-11T01:12:31Z")

</div>

Hello, I’m going to re-read a book (just one book at the moment!) about Ruby to sharpen me knowledge, what do you guys recommend? Programming Ruby (PragProg) Ruby for Rails (Manning) The Ruby Way (Addison Wesley) O…

---

## [Newbie Question: Ruby/DL Parameters](https://www.ruby-forum.com/t/newbie-question-ruby-dl-parameters/88430)

<div class="topic-metadata">

**Author:** [@supasta](https://www.ruby-forum.com/u/supasta)\
**Replies:** 0\
**Last updated:** [March 11, 2007, 12:06am UTC](https://www.ruby-forum.com/t/newbie-question-ruby-dl-parameters/88430 "2007-03-11T00:06:29Z")

</div>

Hello, I am trying to call a function within a WIN32 DLL. The Function Prototype is published as: short pm3s(char\* name, unsigned short addr, unsigned short\* units); I coded this: module Discover extend DL::Importa…

---

## [South Florida Software Symposium - May 18 - 20, 2007](https://www.ruby-forum.com/t/south-florida-software-symposium-may-18-20-2007/88412)

<div class="topic-metadata">

**Author:** [@maudrit](https://www.ruby-forum.com/u/maudrit)\
**Replies:** 0\
**Last updated:** [March 10, 2007, 6:41pm UTC](https://www.ruby-forum.com/t/south-florida-software-symposium-may-18-20-2007/88412 "2007-03-10T18:41:21Z")

</div>

Greetings! We are happy to announce the South Florida Software Symposium. The NFJS Symposium Tour is coming to South Florida on May 18 - 20, 2007. Get ready to have three intensive days of learning and networking. T…

---

## [Auto-Completion in TextMate - What this ruby command means?](https://www.ruby-forum.com/t/auto-completion-in-textmate-what-this-ruby-command-means/88397)

<div class="topic-metadata">

**Author:** [@Human\_D](https://www.ruby-forum.com/u/Human_D)\
**Replies:** 3\
**Last updated:** [March 10, 2007, 6:36pm UTC](https://www.ruby-forum.com/t/auto-completion-in-textmate-what-this-ruby-command-means/88397 "2007-03-10T18:36:20Z")

</div>

Hello folks, Auto completion (option + escape) does not work for me in TextMate, I tried to debug it to find the problem, it generate a ruby command which I do not understand, may you please help me understand it: “r…

---

## [Re: Find.find --- returns directories/files backwards](https://www.ruby-forum.com/t/re-find-find-returns-directories-files-backwards/88409)

<div class="topic-metadata">

**Author:** [@Joseph\_Schiller](https://www.ruby-forum.com/u/Joseph_Schiller)\
**Replies:** 2\
**Last updated:** [March 10, 2007, 5:31pm UTC](https://www.ruby-forum.com/t/re-find-find-returns-directories-files-backwards/88409 "2007-03-10T17:31:12Z")

</div>

Hi, Try something like this d = Dir.open(‘/user/path/Documents’) d.entries.sort =\> \[ “.”, “…”, “doc1”, “doc2”, etc \] for some reason block processing is counter intuitive here this code does not work e = Dir.open(…

---

## [Looking for FX mentorship](https://www.ruby-forum.com/t/looking-for-fx-mentorship/88404)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 1\
**Last updated:** [March 10, 2007, 5:07pm UTC](https://www.ruby-forum.com/t/looking-for-fx-mentorship/88404 "2007-03-10T17:07:09Z")

</div>

Hi list I was just contacted to mentor somebody about FXRuby. This is not my specialty to use an euphemism :frowning: If somebody would be interested in doing some mentorship please raise your hands. Links to any go…

---

## [Net::HTTPResponse.body\_permitted?() Issue](https://www.ruby-forum.com/t/net-httpresponse-body-permitted-issue/88391)

<div class="topic-metadata">

**Author:** [@dgm](https://www.ruby-forum.com/u/dgm)\
**Replies:** 1\
**Last updated:** [March 10, 2007, 4:13pm UTC](https://www.ruby-forum.com/t/net-httpresponse-body-permitted-issue/88391 "2007-03-10T16:13:00Z")

</div>

Hi, I am playing arround with Net::HTTP and have this little script to grap a websites HTML: require “net/http” page = “http://www.google.co.uk” response = Net::HTTP.get\_response(URI.parse(page)) puts response.body…

---

## [Ruby / php operator differences](https://www.ruby-forum.com/t/ruby-php-operator-differences/88102)

<div class="topic-metadata">

**Author:** [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Replies:** 10\
**Last updated:** [March 10, 2007, 4:01pm UTC](https://www.ruby-forum.com/t/ruby-php-operator-differences/88102 "2007-03-10T16:01:58Z")

</div>

I am trying to do some parsing of binary data. Here is the psuedo code that parses what i’m looking for: private int readInteger() throws IOException { int n = 0; int b = in.readUnsignedByte(); int result = 0; whil…

---

## ["Goto line" function?](https://www.ruby-forum.com/t/goto-line-function/88352)

<div class="topic-metadata">

**Author:** [@helgso](https://www.ruby-forum.com/u/helgso)\
**Replies:** 4\
**Last updated:** [March 10, 2007, 3:41pm UTC](https://www.ruby-forum.com/t/goto-line-function/88352 "2007-03-10T15:41:56Z")

</div>

Ok, I’ve read through the forum but I haven’t got my answer. If a value in my program is true, I want my program to go back to a line like this: (Example of the program) puts ’ ’ puts ’ ’ puts ‘\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [How to install libfreetype for RMagik?](https://www.ruby-forum.com/t/how-to-install-libfreetype-for-rmagik/88376)

<div class="topic-metadata">

**Author:** [@Jahnvi\_Thaker](https://www.ruby-forum.com/u/Jahnvi_Thaker)\
**Replies:** 1\
**Last updated:** [March 10, 2007, 2:23pm UTC](https://www.ruby-forum.com/t/how-to-install-libfreetype-for-rmagik/88376 "2007-03-10T14:23:40Z")

</div>

hi, i am using RMagik, to use captcha for validation, i have run the following command, and its folder is created: ruby script/plugin install http://svn.2750flesk.com/validates\_captcha to use RMagik, it requires \* l…

---

## [PDF::Writer with UTF-8](https://www.ruby-forum.com/t/pdf-writer-with-utf-8/88373)

<div class="topic-metadata">

**Author:** [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Replies:** 9\
**Last updated:** [March 10, 2007, 1:45pm UTC](https://www.ruby-forum.com/t/pdf-writer-with-utf-8/88373 "2007-03-10T13:45:36Z")

</div>

I have searched and searched and came up with nothing about the /current/ state of UTF-8 with PDF-Writer. Has any one had any luck with it? I’ve tried using Iconv but it gets errors. I know this is valid utf-8, how…

---

## [Find.find --- returns directories/files backwards](https://www.ruby-forum.com/t/find-find-returns-directories-files-backwards/88362)

<div class="topic-metadata">

**Author:** [@brad](https://www.ruby-forum.com/u/brad)\
**Replies:** 9\
**Last updated:** [March 10, 2007, 11:50am UTC](https://www.ruby-forum.com/t/find-find-returns-directories-files-backwards/88362 "2007-03-10T11:50:28Z")

</div>

New user question: It seems to me when I run: Find.find(’/user/name/documents’) {|path| puts path} it returns all the directories in the reverse order. I was expecting the directories to be returned in alphabetical …

---

## [Win32::process and nested fork()s](https://www.ruby-forum.com/t/win32-process-and-nested-fork-s/88384)

<div class="topic-metadata">

**Author:** [@mjcharl](https://www.ruby-forum.com/u/mjcharl)\
**Replies:** 0\
**Last updated:** [March 10, 2007, 11:40am UTC](https://www.ruby-forum.com/t/win32-process-and-nested-fork-s/88384 "2007-03-10T11:40:26Z")

</div>

I can’t seem to make nested fork()s (granchildren processes) work with the win32::process module. Here’s my simple test script: 1 require “win32/process” 2 3 Process.fork do 4 $stdout.“child #{Process.pid}” ; $s…

---

## [Usefulness of the Kernel module?](https://www.ruby-forum.com/t/usefulness-of-the-kernel-module/88381)

<div class="topic-metadata">

**Author:** [@rubarachni](https://www.ruby-forum.com/u/rubarachni)\
**Replies:** 0\
**Last updated:** [March 10, 2007, 11:00am UTC](https://www.ruby-forum.com/t/usefulness-of-the-kernel-module/88381 "2007-03-10T11:00:23Z")

</div>

Hi all, I’m just thinking about the usefulness of the Kernel module which is included in the class Object. Why not defining directly all methods of this Kernel module in the Object class ?? I don’t expect that an in…

---

## [Rdoc and and single file output](https://www.ruby-forum.com/t/rdoc-and-and-single-file-output/88198)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 7\
**Last updated:** [March 10, 2007, 9:19am UTC](https://www.ruby-forum.com/t/rdoc-and-and-single-file-output/88198 "2007-03-10T09:19:42Z")

</div>

Hi all, Is there a way to generate single file of output for rdoc, creating an html file that mimics the default clicky-clicky multi-frame output, but using css instead of actual frames? I tried using rdoc -1 over on…

---

## [Active Record messes with my Logger](https://www.ruby-forum.com/t/active-record-messes-with-my-logger/77913)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 10, 2007, 8:01am UTC](https://www.ruby-forum.com/t/active-record-messes-with-my-logger/77913 "2007-03-10T08:01:05Z")

</div>

Yes, I know about the hack that AR uses to make the Logger format friendlier. The thing is it imposes it’s idea of friendliness in a global scale (as I remember it was necessary with the 1.8.2 Logger due to the rigidn…

---

## [Re: "Goto line" function?](https://www.ruby-forum.com/t/re-goto-line-function/88361)

<div class="topic-metadata">

**Author:** [@Joseph\_Schiller](https://www.ruby-forum.com/u/Joseph_Schiller)\
**Replies:** 0\
**Last updated:** [March 10, 2007, 1:21am UTC](https://www.ruby-forum.com/t/re-goto-line-function/88361 "2007-03-10T01:21:35Z")

</div>

Hi, Fortunately the “goto” has been deprecated. It always results in spaghetti code. Check out ‘case’ control structure instead. You may want to think through the program flow so that you have each possibility and …

---

## [Free webcasts on Ruby and Rails from CodeGear](https://www.ruby-forum.com/t/free-webcasts-on-ruby-and-rails-from-codegear/88349)

<div class="topic-metadata">

**Author:** [@Joe\_at\_CodeGear](https://www.ruby-forum.com/u/Joe_at_CodeGear)\
**Replies:** 1\
**Last updated:** [March 9, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/free-webcasts-on-ruby-and-rails-from-codegear/88349 "2007-03-09T23:10:23Z")

</div>

Next Week, March 12-16, CodeGear will be hosting a “live virtual developer conference”. This is totally free, no cost or obligation – and you don’t have to travel to attend. There are three talks that should be of pa…

---

## [Open4](https://www.ruby-forum.com/t/open4/88129)

<div class="topic-metadata">

**Author:** [@Hanan\_M](https://www.ruby-forum.com/u/Hanan_M)\
**Replies:** 3\
**Last updated:** [March 9, 2007, 10:42pm UTC](https://www.ruby-forum.com/t/open4/88129 "2007-03-09T22:42:19Z")

</div>

Hello I installed open4, but when i tried samples I got the following error: uninitialized constant fcntl::F\_SETFD. why??? please note that I am working on windows. Thank in advance

---

## [High ActiveRecord CPU Utilization](https://www.ruby-forum.com/t/high-activerecord-cpu-utilization/87955)

<div class="topic-metadata">

**Author:** [@zakifataya](https://www.ruby-forum.com/u/zakifataya)\
**Replies:** 41\
**Last updated:** [March 9, 2007, 10:36pm UTC](https://www.ruby-forum.com/t/high-activerecord-cpu-utilization/87955 "2007-03-09T22:36:18Z")

</div>

When running a test that primarily involves loading up a few MySQL tables with ActiveRecord objects, I was surprised to see the Ruby CPU utilization at 93% and the MySQL CPU utilization at 7%. I would expect this work…

---

## [Cooloptions 1.1.1 Released](https://www.ruby-forum.com/t/cooloptions-1-1-1-released/88350)

<div class="topic-metadata">

**Author:** [@ntalbott](https://www.ruby-forum.com/u/ntalbott)\
**Replies:** 0\
**Last updated:** [March 9, 2007, 10:33pm UTC](https://www.ruby-forum.com/t/cooloptions-1-1-1-released/88350 "2007-03-09T22:33:18Z")

</div>

cooloptions version 1.1.1 has been released! http://cooloptions.rubyforge.org/ As a huge fan of optparse due to its flexibility, self-documenting nature, and ease of use, I nevertheless found myself doing almost the …

---

## [New Book: Everyday Scripting With Ruby](https://www.ruby-forum.com/t/new-book-everyday-scripting-with-ruby/88027)

<div class="topic-metadata">

**Author:** [@speedmaster](https://www.ruby-forum.com/u/speedmaster)\
**Replies:** 9\
**Last updated:** [March 9, 2007, 9:40pm UTC](https://www.ruby-forum.com/t/new-book-everyday-scripting-with-ruby/88027 "2007-03-09T21:40:11Z")

</div>

Hey guys, new to the group. A couple years ago I worked my way part- way through ‘Programming Ruby’ by Thomas & Hunt, but never did much w/ it. I just got a copy of ‘Everyday Scripting With Ruby’ by Brian M. and like…

---

## [Strange interference between LSAPI, popen3 and MySQL](https://www.ruby-forum.com/t/strange-interference-between-lsapi-popen3-and-mysql/87640)

<div class="topic-metadata">

**Author:** [@andreas](https://www.ruby-forum.com/u/andreas)\
**Replies:** 9\
**Last updated:** [March 9, 2007, 9:37pm UTC](https://www.ruby-forum.com/t/strange-interference-between-lsapi-popen3-and-mysql/87640 "2007-03-09T21:37:42Z")

</div>

Hi, I am experiencing a very strange problem in my Rails app. I use popen3 to execute an external program. Everything works fine in Mongrel, but when I use the app with LSAPI, after popen3 all MySQL queries fail with …

---

## [Gem packaging documentation](https://www.ruby-forum.com/t/gem-packaging-documentation/88317)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 1\
**Last updated:** [March 9, 2007, 7:00pm UTC](https://www.ruby-forum.com/t/gem-packaging-documentation/88317 "2007-03-09T19:00:42Z")

</div>

http://rubygems.org/read/chapter/5 “This is a skimpy overview; see the DeveloperGuide for the real meat.” I’m probably being stupid, but I can’t find it. Can somebody point me in the right direction please? (Problem…

---

## [Piston 1.3.2: More switch corrections](https://www.ruby-forum.com/t/piston-1-3-2-more-switch-corrections/88313)

<div class="topic-metadata">

**Author:** [@fbeausoleil](https://www.ruby-forum.com/u/fbeausoleil)\
**Replies:** 3\
**Last updated:** [March 9, 2007, 6:57pm UTC](https://www.ruby-forum.com/t/piston-1-3-2-more-switch-corrections/88313 "2007-03-09T18:57:42Z")

</div>

Sorry for the double message, but I found another bug in the piston switch subcommand. This warranted another patch release, or else it would have been unusable. = What is it ? Piston is a utility that eases vendor …

---

## [Which memcache client?](https://www.ruby-forum.com/t/which-memcache-client/88316)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 1\
**Last updated:** [March 9, 2007, 5:29pm UTC](https://www.ruby-forum.com/t/which-memcache-client/88316 "2007-03-09T17:29:59Z")

</div>

There seem to be two memcache client libraries for ruby: Ruby-MemCache dev(E)iate (referenced from RAA. Depends on IO-Reactor) memcache-client dev.robotcoop.com hosted at http://rubyforge.org/projects/seattlerb …

---

## [How To Find The Name Of A Variable](https://www.ruby-forum.com/t/how-to-find-the-name-of-a-variable/88130)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 14\
**Last updated:** [March 9, 2007, 5:06pm UTC](https://www.ruby-forum.com/t/how-to-find-the-name-of-a-variable/88130 "2007-03-09T17:06:45Z")

</div>

Hello, I’m wondering how I can ask a variable what its name is, so that I can convert it into a symbol. For example, I’d like to convert @bar to :bar. Thanks and regards, Andy S.

---

## [Arrays - Storing User Input](https://www.ruby-forum.com/t/arrays-storing-user-input/88302)

<div class="topic-metadata">

**Author:** [@woodyee](https://www.ruby-forum.com/u/woodyee)\
**Replies:** 6\
**Last updated:** [March 9, 2007, 4:33pm UTC](https://www.ruby-forum.com/t/arrays-storing-user-input/88302 "2007-03-09T16:33:40Z")

</div>

Easy one but I can’t figure this out! I’m trying to ask someone to type some stuff, and then at the end (when they press the spacebar without typing anything), I want to display what they typed. Here’s my code: somet…

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

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