# Ruby

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

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

---

## [New user question: libmysql-ruby on Ubuntu Dapper](https://www.ruby-forum.com/t/new-user-question-libmysql-ruby-on-ubuntu-dapper/97789)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 10, 2006, 4:46pm UTC](https://www.ruby-forum.com/t/new-user-question-libmysql-ruby-on-ubuntu-dapper/97789 "2006-07-10T16:46:14Z")

</div>

Hi I am just begining to play around with ruby and I ran into the following issue: I installed libmysql-ruby in the following way: sudo apt-get install libmysql-ruby apt-get reports that 2 packages were installed, …

---

## [Fastest way of looping through directories](https://www.ruby-forum.com/t/fastest-way-of-looping-through-directories/97782)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [July 10, 2006, 4:29pm UTC](https://www.ruby-forum.com/t/fastest-way-of-looping-through-directories/97782 "2006-07-10T16:29:28Z")

</div>

Hi, I’m looking for the fastest way for looping through directories. at the moment i’m using Find but when I test this, the first time it runs really slow (like 20 seconds) the second time it runs much much quicker …

---

## [Re: text to speech?](https://www.ruby-forum.com/t/re-text-to-speech/97381)

<div class="topic-metadata">

**Author:** [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Replies:** 1\
**Last updated:** [July 10, 2006, 3:47pm UTC](https://www.ruby-forum.com/t/re-text-to-speech/97381 "2006-07-10T15:47:52Z")

</div>

I happen to be blind, myself (challenges of both the speech interface and Microsoft Outlook make top posting much easier for me). I do not have experience with Ruby on Linux, just Windows. In case feedback about thi…

---

## [Test/unit filters question/suggestion](https://www.ruby-forum.com/t/test-unit-filters-question-suggestion/97329)

<div class="topic-metadata">

**Author:** [@crenner](https://www.ruby-forum.com/u/crenner)\
**Replies:** 2\
**Last updated:** [July 10, 2006, 3:08pm UTC](https://www.ruby-forum.com/t/test-unit-filters-question-suggestion/97329 "2006-07-10T15:08:41Z")

</div>

When using the test/unit autorunner, you are able to supply some options. Two of these options are -t (–testcase) and -n (–name); to run only a given testcase or tests matching a given name respectively. These two fi…

---

## [Thread/sync.rb memory corruption](https://www.ruby-forum.com/t/thread-sync-rb-memory-corruption/97355)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 15\
**Last updated:** [July 10, 2006, 2:59pm UTC](https://www.ruby-forum.com/t/thread-sync-rb-memory-corruption/97355 "2006-07-10T14:59:31Z")

</div>

i’m using ef (electric fence) to show the memory corruption in this script. to cause it corrupt memory use CORRUPT=true ef ruby bug.rb file: bug.rb require 'sync' class A def initialize extend Sync\_m …

---

## [Re: Ruby hanging](https://www.ruby-forum.com/t/re-ruby-hanging/97769)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 10, 2006, 2:37pm UTC](https://www.ruby-forum.com/t/re-ruby-hanging/97769 "2006-07-10T14:37:55Z")

</div>

Maybe it’s due to an infinite loop, something like condition=true while condition # if you don’t change condition’s value in here, you’ll never # get out of that loop end It’s a good idea to print out variable’s v…

---

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

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 2\
**Last updated:** [July 10, 2006, 2:28pm UTC](https://www.ruby-forum.com/t/ruby-hanging/97759 "2006-07-10T14:28:27Z")

</div>

I have some code which seems to hang Ruby, I’m running on Windows and using Scite. I execute and a command window opens, remains blank and nothing happens. Is there a way to get it to spit out an error messages when…

---

## [Text encodings](https://www.ruby-forum.com/t/text-encodings/97755)

<div class="topic-metadata">

**Author:** [@xTRiM](https://www.ruby-forum.com/u/xTRiM)\
**Replies:** 4\
**Last updated:** [July 10, 2006, 1:48pm UTC](https://www.ruby-forum.com/t/text-encodings/97755 "2006-07-10T13:48:01Z")

</div>

Hello, is there any way, to detect text encoding? For example, is it in utf8, or in win1251, or something else. Thank you.

---

## [Pickaxe](https://www.ruby-forum.com/t/pickaxe/97559)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 7\
**Last updated:** [July 10, 2006, 1:28pm UTC](https://www.ruby-forum.com/t/pickaxe/97559 "2006-07-10T13:28:49Z")

</div>

I’ve been reading the pickaxe book the last few days. As a newbie to both Ruby and programming I have to say it’s packed with an incredible amount of information. I’m still in part 1 and just going through the secti…

---

## [Question about magic enumerators in \> 1.8](https://www.ruby-forum.com/t/question-about-magic-enumerators-in-1-8/97677)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [July 10, 2006, 1:07pm UTC](https://www.ruby-forum.com/t/question-about-magic-enumerators-in-1-8/97677 "2006-07-10T13:07:00Z")

</div>

Hi – Can someone jog my memory, and/or enlighten me, as to what a case would be where it’s useful to have: array.map return an Enumerator? I can’t seem to come up with an example where: array.map.anything is diffe…

---

## [Binding $B$N;EMMJQ99!)(B or $B%P%0!)(B](https://www.ruby-forum.com/t/binding-b-n-emmjq99-b-or-b-p-0-b/63106)

<div class="topic-metadata">

**Author:** [@Hidetoshi\_NAGAI](https://www.ruby-forum.com/u/Hidetoshi_NAGAI)\
**Replies:** 14\
**Last updated:** [July 10, 2006, 12:24pm UTC](https://www.ruby-forum.com/t/binding-b-n-emmjq99-b-or-b-p-0-b/63106 "2006-07-10T12:24:16Z")

</div>

e$B1J0fe(B@e$BCNG=!%6e9)Bg$G$9!%e(B e$BF|K\\e(B Ruby e$B%+%s%U%!%l%s%9$N@J$Ge(B e$B$3$N$H$3$m$N%3%%C%H$N1F6A$Ge(B Ruby/Tk e$B4X78$,%(%i!\<$r=P$9$h$&$Ke(B e$B$J$C$F$$$k$H$$$&OC$rJ9$$$?$N$G;n$7$F$$?$H$3$m!$e(B e$B3N$+$K…

---

## [RFuzz HTTP Destroyer 0.2 -- Ragel HTTP Client](https://www.ruby-forum.com/t/rfuzz-http-destroyer-0-2-ragel-http-client/97479)

<div class="topic-metadata">

**Author:** [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Replies:** 3\
**Last updated:** [July 10, 2006, 11:30am UTC](https://www.ruby-forum.com/t/rfuzz-http-destroyer-0-2-ragel-http-client/97479 "2006-07-10T11:30:52Z")

</div>

In my constant quest to turn evil activities into useful tools I have started the RFuzz HTTP Destroyer project (or just RFuzz until I can find a better name). RFuzz will eventually become a small framework that lets p…

---

## [How does ruby load a shared library](https://www.ruby-forum.com/t/how-does-ruby-load-a-shared-library/63567)

<div class="topic-metadata">

**Author:** [@huiliang\_wu](https://www.ruby-forum.com/u/huiliang_wu)\
**Replies:** 5\
**Last updated:** [July 10, 2006, 10:38am UTC](https://www.ruby-forum.com/t/how-does-ruby-load-a-shared-library/63567 "2006-07-10T10:38:10Z")

</div>

Hi, I created an c extension which is linked with another shared library named libfoo.so. When I use this extension in ruby script, it evoke an error message: ./demo.rb:3:in ‘require’: libfoo.so: cannot open shared …

---

## [Error Message "The procedure entry point mysql\_stmt\_row\_tel"](https://www.ruby-forum.com/t/error-message-the-procedure-entry-point-mysql-stmt-row-tel/97743)

<div class="topic-metadata">

**Author:** [@shakeel](https://www.ruby-forum.com/u/shakeel)\
**Replies:** 0\
**Last updated:** [July 10, 2006, 9:19am UTC](https://www.ruby-forum.com/t/error-message-the-procedure-entry-point-mysql-stmt-row-tel/97743 "2006-07-10T09:19:09Z")

</div>

I have installed Ruby and MySQL. When I want to create table through Ruby script i get the following error message::: "The procedure entry point mysql\_stmt\_row\_tell could not be located in the dynamic link library LIB…

---

## [MySQL gem always updates](https://www.ruby-forum.com/t/mysql-gem-always-updates/97742)

<div class="topic-metadata">

**Author:** [@fxn](https://www.ruby-forum.com/u/fxn)\
**Replies:** 0\
**Last updated:** [July 10, 2006, 9:12am UTC](https://www.ruby-forum.com/t/mysql-gem-always-updates/97742 "2006-07-10T09:12:16Z")

</div>

No matter how many times I compile the MySQL gem :-), gem update always says mysql needs update. The gem is 2.7 and there is a 2.7.1 for Windows, is that perhaps the reason? – fxn

---

## [\<1\> expected but was \<17\> again](https://www.ruby-forum.com/t/1-expected-but-was-17-again/97737)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [July 10, 2006, 7:34am UTC](https://www.ruby-forum.com/t/1-expected-but-was-17-again/97737 "2006-07-10T07:34:43Z")

</div>

\[ruby-dev:28922\] e$B$GJs9p$7$F!“e(B http://www.rubyist.net/~akr/chkbuild/debian-sarge/ruby-trunk/log/20060704T152730.txt.gz e$B$G$$$C$?$s$OD\>$C$F$$$?LdBj$,!”:#F|e(B http://www.rubyist.net/~akr/chkbuild/debian-sarge/ru…

---

## [Performance issues with net/http](https://www.ruby-forum.com/t/performance-issues-with-net-http/97736)

<div class="topic-metadata">

**Author:** [@hagus](https://www.ruby-forum.com/u/hagus)\
**Replies:** 0\
**Last updated:** [July 10, 2006, 7:07am UTC](https://www.ruby-forum.com/t/performance-issues-with-net-http/97736 "2006-07-10T07:07:10Z")

</div>

It seems that net/http’s implementation is extremely inefficient when it comes to dealing with large files. I think this is something worth fixing in subsequent versions. It shouldn’t be as bad as it is. I would also …

---

## [Not ok iterator 92](https://www.ruby-forum.com/t/not-ok-iterator-92/97729)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 0\
**Last updated:** [July 10, 2006, 6:18am UTC](https://www.ruby-forum.com/t/not-ok-iterator-92/97729 "2006-07-10T06:18:31Z")

</div>

e$B$3$s$K$A$O!"$J$+$\`$ie(B(e$B$&e(B)e$B$G$9!#e(B e$B4{CN$+$b$7$l$^$;$s$,!"e(B1.9e$B$Ge(Bmake teste$B$,DL$i$J$/$J$C$F$$$^$9!#e(B not ok iterator 92 – …/current/sample/test.rb:1177 test failed e$B$=$l$G$O!#e(B

---

## [RFuzz 0.4 -- Almost Works Usefully](https://www.ruby-forum.com/t/rfuzz-0-4-almost-works-usefully/97724)

<div class="topic-metadata">

**Author:** [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Replies:** 0\
**Last updated:** [July 10, 2006, 3:12am UTC](https://www.ruby-forum.com/t/rfuzz-0-4-almost-works-usefully/97724 "2006-07-10T03:12:27Z")

</div>

Another quick release of RFuzz for the people interested in playing with it. It’s still sitting on my site but I’ll probably be moving it to rubyforge next week. http://www.zedshaw.com/projects/rfuzz/ http://www.zed…

---

## [Adding Tasks to Rake](https://www.ruby-forum.com/t/adding-tasks-to-rake/97722)

<div class="topic-metadata">

**Author:** [@sauy7](https://www.ruby-forum.com/u/sauy7)\
**Replies:** 0\
**Last updated:** [July 10, 2006, 3:06am UTC](https://www.ruby-forum.com/t/adding-tasks-to-rake/97722 "2006-07-10T03:06:08Z")

</div>

Hi I see a lot of projects (like Rails) add built-in tasks to rake. Is there some documentation on an ‘offical’ way add these tasks? Would it be possible to create a gem that could add tasks to rake. Of course, this…

---

## [Why does block know about one instance variable and not the](https://www.ruby-forum.com/t/why-does-block-know-about-one-instance-variable-and-not-the/97680)

<div class="topic-metadata">

**Author:** [@anne001](https://www.ruby-forum.com/u/anne001)\
**Replies:** 5\
**Last updated:** [July 10, 2006, 2:56am UTC](https://www.ruby-forum.com/t/why-does-block-know-about-one-instance-variable-and-not-the/97680 "2006-07-10T02:56:57Z")

</div>

I can’t find what the problem is with @foundinfo: since it is defined outside a block, the block should find it no? @item is defined outside the second block and that second block finds it. What is @item and @foundinf…

---

## [July Phoenix Ruby Users Group on Monday, July 10](https://www.ruby-forum.com/t/july-phoenix-ruby-users-group-on-monday-july-10/97721)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [July 10, 2006, 1:27am UTC](https://www.ruby-forum.com/t/july-phoenix-ruby-users-group-on-monday-july-10/97721 "2006-07-10T01:27:53Z")

</div>

The July meeting of the Phoenix Ruby U. Group will be this Monday, July 11, at 6:15 PM, at Cyclone Commerce. Please see the group wiki at: http://rubyurl.com/R7h for a map, directions, and stuff. – James B. “Take …

---

## [Re: CSV::IllegalFormatError (Need to club data entry person)](https://www.ruby-forum.com/t/re-csv-illegalformaterror-need-to-club-data-entry-person/97718)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 10, 2006, 12:41am UTC](https://www.ruby-forum.com/t/re-csv-illegalformaterror-need-to-club-data-entry-person/97718 "2006-07-10T00:41:27Z")

</div>

Can you use this: line = ““NAME”,“610 “A” STREET”,“STATE”,“POSTAL\_CODE”” regexp=/(?=\[^,\])"|"(?=\[^,\])/ # (?= is for maintaining the character that is not a comma) a=line.gsub(regexp,’\\1’+"’"+’\\2’) # \\1, \\2 are th…

---

## [CSV::IllegalFormatError (Need to club data entry person)](https://www.ruby-forum.com/t/csv-illegalformaterror-need-to-club-data-entry-person/59714)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 5\
**Last updated:** [July 10, 2006, 12:18am UTC](https://www.ruby-forum.com/t/csv-illegalformaterror-need-to-club-data-entry-person/59714 "2006-07-10T00:18:28Z")

</div>

I’m using csv module to read parse 76,000 rows of patient data in a CSV file. I use the below line to read in the file and loop through the rows. CSV.open("patientfile.txt", "r") do |row| When I get to a row like b…

---

## [Ruby Reports 0.4.13 Released](https://www.ruby-forum.com/t/ruby-reports-0-4-13-released/97715)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [July 10, 2006, 12:13am UTC](https://www.ruby-forum.com/t/ruby-reports-0-4-13-released/97715 "2006-07-10T00:13:56Z")

</div>

== Ruport 0.4.13 == The “Lucky Numbers” Edition == About == Ruby Reports is a software library that aims to make the task of reporting less tedious and painful. It provides tools for data acquisition, database inter…

---

## [\[ANN\] Mongrel 0.3.13.3 -- Ruby Licensed Release](https://www.ruby-forum.com/t/ann-mongrel-0-3-13-3-ruby-licensed-release/96711)

<div class="topic-metadata">

**Author:** [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Replies:** 14\
**Last updated:** [July 9, 2006, 11:02pm UTC](https://www.ruby-forum.com/t/ann-mongrel-0-3-13-3-ruby-licensed-release/96711 "2006-07-09T23:02:33Z")

</div>

Hello Everyone, This is the official 0.3.13.3 release of Mongrel. Mongrel is now released under the Ruby license instead of the LGPL. I’m hoping this increases the adoption of Mongrel even further and hopefully I can…

---

## [Ruby-Interface for Python](https://www.ruby-forum.com/t/ruby-interface-for-python/97700)

<div class="topic-metadata">

**Author:** [@Meino\_Christian\_C](https://www.ruby-forum.com/u/Meino_Christian_C)\
**Replies:** 2\
**Last updated:** [July 9, 2006, 9:18pm UTC](https://www.ruby-forum.com/t/ruby-interface-for-python/97700 "2006-07-09T21:18:17Z")

</div>

Hi, …before everybody gets an heartattack from what I am asking… Quickly the explanation: The OpenSource 3D-Render/Animation suite “Blender” has a scripting interface based on Python. I like Ruby much more. Is there…

---

## [Renaming files randomly](https://www.ruby-forum.com/t/renaming-files-randomly/97683)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 8\
**Last updated:** [July 9, 2006, 8:17pm UTC](https://www.ruby-forum.com/t/renaming-files-randomly/97683 "2006-07-09T20:17:15Z")

</div>

Got this request yesterday and still haven’t had time to decipher it and code it – I figured I’d throw it out here and see what you folks come up with: Eric wrote: I want to change the names of several hundred files…

---

## [Re: Why Ruby over Python?](https://www.ruby-forum.com/t/re-why-ruby-over-python/97705)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 9, 2006, 8:10pm UTC](https://www.ruby-forum.com/t/re-why-ruby-over-python/97705 "2006-07-09T20:10:53Z")

</div>

Has anyone really determined once and for all whether the dinosaurs died out because they were too large for their environment or because a huge hunk of rock hit the Yucutan Peninsula? :slight\_smile: They haven’t …

---

## [Re: Ruby-Interface for Python](https://www.ruby-forum.com/t/re-ruby-interface-for-python/97702)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 9, 2006, 7:37pm UTC](https://www.ruby-forum.com/t/re-ruby-interface-for-python/97702 "2006-07-09T19:37:27Z")

</div>

Dear Meino, this may depend on what you want to do … I found a web site with some downloadable scripts and description in French ( but the code itself seems to be entirely English ) \_http://www.crai.archi.fr/RubyLib…

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

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