# Ruby

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

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

---

## [Where is create\_table method defined?](https://www.ruby-forum.com/t/where-is-create-table-method-defined/196593)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 9, 2008, 4:50am UTC](https://www.ruby-forum.com/t/where-is-create-table-method-defined/196593 "2008-02-09T04:50:43Z")

</div>

Hi When scaffolding a model with Rails, you will get a migration file, say 001\_create\_items.rb that looks something like this: class CreateItems \< ActiveRecord::Migration def self.up create\_table :items do |t| … …

---

## [Avoiding memcpy() during String creation in a C extension](https://www.ruby-forum.com/t/avoiding-memcpy-during-string-creation-in-a-c-extension/128312)

<div class="topic-metadata">

**Author:** [@Wincent\_C](https://www.ruby-forum.com/u/Wincent_C)\
**Replies:** 3\
**Last updated:** [February 9, 2008, 4:03am UTC](https://www.ruby-forum.com/t/avoiding-memcpy-during-string-creation-in-a-c-extension/128312 "2008-02-09T04:03:13Z")

</div>

I’m working on a fast wikitext-to-HTML translator written in C and am trying to optimize it. Profiling shows that a fair portion of the time is being spent instantiating temporary strings and much of that time is spen…

---

## [Trouble with FileUtils.rm() -- Invalid arguement error](https://www.ruby-forum.com/t/trouble-with-fileutils-rm-invalid-arguement-error/128492)

<div class="topic-metadata">

**Author:** [@gmoniey](https://www.ruby-forum.com/u/gmoniey)\
**Replies:** 11\
**Last updated:** [February 9, 2008, 3:53am UTC](https://www.ruby-forum.com/t/trouble-with-fileutils-rm-invalid-arguement-error/128492 "2008-02-09T03:53:05Z")

</div>

I have been screwing with this for the last hour, and I still cant get it (so frustrating when you get stuck on matters that seem trivial). I am trying to delete all the contents from the temporary internet files in v…

---

## [Ragel and ruby](https://www.ruby-forum.com/t/ragel-and-ruby/128560)

<div class="topic-metadata">

**Author:** [@phil](https://www.ruby-forum.com/u/phil)\
**Replies:** 3\
**Last updated:** [February 9, 2008, 1:50am UTC](https://www.ruby-forum.com/t/ragel-and-ruby/128560 "2008-02-09T01:50:44Z")

</div>

Hi, I’ve been trying to generate ruby with ragel. But the generated code is complaing about undefined local variables Here an excerpt of the generated code: class MyParser # more generated code here ... class \<\< se…

---

## [Logging 0.6.3 (Feral Dust Bunny)](https://www.ruby-forum.com/t/logging-0-6-3-feral-dust-bunny/128564)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 4\
**Last updated:** [February 9, 2008, 1:44am UTC](https://www.ruby-forum.com/t/logging-0-6-3-feral-dust-bunny/128564 "2008-02-09T01:44:16Z")

</div>

== Logging by Tim P. http://logging.rubyforge.org/ the "Feral Dust Bunny" release == Description Logging is a flexible logging library for use in Ruby programs based on the design of Java’s log4j library. It feat…

---

## [Ruport-util 0.13.0](https://www.ruby-forum.com/t/ruport-util-0-13-0/128583)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [February 9, 2008, 12:55am UTC](https://www.ruby-forum.com/t/ruport-util-0-13-0/128583 "2008-02-09T00:55:35Z")

</div>

== What is ruport-util? == A collection of utilities and support libraries for Ruby Reports\[0\]. It currently has support for: Basic Graphing via OpenFlashChart, AmCharts, Gruff and Scruffy (util/ graph) Report runne…

---

## [Multilevel class inheritance not working as expected](https://www.ruby-forum.com/t/multilevel-class-inheritance-not-working-as-expected/128508)

<div class="topic-metadata">

**Author:** [@joergbattermann](https://www.ruby-forum.com/u/joergbattermann)\
**Replies:** 2\
**Last updated:** [February 9, 2008, 12:30am UTC](https://www.ruby-forum.com/t/multilevel-class-inheritance-not-working-as-expected/128508 "2008-02-09T00:30:58Z")

</div>

Hello there, I am having a problem inheriting an already inherited class. errr… sounds more complicated than it is… look: class Item \< ActiveRecord::Base has a name and description field end class Reference \< Item h…

---

## [Digest Ruby Quiz 2](https://www.ruby-forum.com/t/digest-ruby-quiz-2/128557)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 11\
**Last updated:** [February 9, 2008, 12:23am UTC](https://www.ruby-forum.com/t/digest-ruby-quiz-2/128557 "2008-02-09T00:23:56Z")

</div>

Hi list this is the trial to sum up all the ideas that have been exchanged sofar on the subject. I will try to be as objective as possible but if somebody feels misinterpreted speak up of course!! It has two purpose…

---

## [Convert String to range](https://www.ruby-forum.com/t/convert-string-to-range/128512)

<div class="topic-metadata">

**Author:** [@abir84](https://www.ruby-forum.com/u/abir84)\
**Replies:** 6\
**Last updated:** [February 8, 2008, 11:26pm UTC](https://www.ruby-forum.com/t/convert-string-to-range/128512 "2008-02-08T23:26:22Z")

</div>

Hi, is there a way to convert a string to a range?? “(1…2)” ==\> (1…2) ?? Another question, what’s the translation of infinite in ruby?? thanks

---

## [Converting strings to booleans, symbols, etc](https://www.ruby-forum.com/t/converting-strings-to-booleans-symbols-etc/128551)

<div class="topic-metadata">

**Author:** [@gmoniey](https://www.ruby-forum.com/u/gmoniey)\
**Replies:** 4\
**Last updated:** [February 8, 2008, 11:05pm UTC](https://www.ruby-forum.com/t/converting-strings-to-booleans-symbols-etc/128551 "2008-02-08T23:05:46Z")

</div>

Hi, I am parsing an xml document, and I wanted to know if there is a quick built in way to convert a string to a symbol or a boolean. an example xml doc would be: data Now I know I can do some string compares, and s…

---

## [Parsing a spice netlist, need to be faster](https://www.ruby-forum.com/t/parsing-a-spice-netlist-need-to-be-faster/128556)

<div class="topic-metadata">

**Author:** [@reactorman](https://www.ruby-forum.com/u/reactorman)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 8:12pm UTC](https://www.ruby-forum.com/t/parsing-a-spice-netlist-need-to-be-faster/128556 "2008-02-08T20:12:14Z")

</div>

Hey guys! I am writing some code that has gotten far too slow. I am reading files that have the following types of statements: This is all test written in a file +bob = 2 +roger = 3 +barn = ‘bob’ +frank = ‘3 + ro…

---

## [Impostor 0.0.1 Released](https://www.ruby-forum.com/t/impostor-0-0-1-released/128555)

<div class="topic-metadata">

**Author:** [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 7:55pm UTC](https://www.ruby-forum.com/t/impostor-0-0-1-released/128555 "2008-02-08T19:55:24Z")

</div>

impostor version 0.0.1 has been released! http://impostor.rubyforge.org/ Makes automatic posts to the following forum applications: Web Wiz Forums (WWF) 7.9 Web Wiz Forums (WWF) 8.0 PHP Bullitin Board (phpBB) 2.0…

---

## [Mms2r 2.0.1 Released](https://www.ruby-forum.com/t/mms2r-2-0-1-released/128553)

<div class="topic-metadata">

**Author:** [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 7:54pm UTC](https://www.ruby-forum.com/t/mms2r-2-0-1-released/128553 "2008-02-08T19:54:13Z")

</div>

mms2r version 2.0.1 has been released! http://mms2r.rubyforge.org/ http://rubyforge.org/tracker/?group\_id=3065 DESCRIPTION: MMS2R is a library that decodes the parts of an MMS message to disk while stripping out ad…

---

## [Rubygems.rb:87: uninitialized constant Gem::Mutex (NameError)](https://www.ruby-forum.com/t/rubygems-rb-uninitialized-constant-gem-mutex-nameerror/128487)

<div class="topic-metadata">

**Author:** [@Charles\_Hoffman](https://www.ruby-forum.com/u/Charles_Hoffman)\
**Replies:** 1\
**Last updated:** [February 8, 2008, 7:54pm UTC](https://www.ruby-forum.com/t/rubygems-rb-uninitialized-constant-gem-mutex-nameerror/128487 "2008-02-08T19:54:02Z")

</div>

Hi folks, I’m trying out code examples from Pickaxe 2nd ed. using the regular Ruby interpreter running on WinXP, and editing/running via RDT in Eclipse. Examples from the chapter on multithreading are giving me this e…

---

## [Structuring RoR systems](https://www.ruby-forum.com/t/structuring-ror-systems/128519)

<div class="topic-metadata">

**Author:** [@jari](https://www.ruby-forum.com/u/jari)\
**Replies:** 1\
**Last updated:** [February 8, 2008, 7:50pm UTC](https://www.ruby-forum.com/t/structuring-ror-systems/128519 "2008-02-08T19:50:36Z")

</div>

Hi, Sorry if this ismay seem a naive question. But I am considering using RoR for a quite sizable project involving 10-15 developers. I am very experience with other technologies such as Java and C++, and I would kn…

---

## [Ruby from source on Leopard excruciatingly slow internet talk](https://www.ruby-forum.com/t/ruby-from-source-on-leopard-excruciatingly-slow-internet-talk/125865)

<div class="topic-metadata">

**Author:** [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Replies:** 18\
**Last updated:** [February 8, 2008, 6:34pm UTC](https://www.ruby-forum.com/t/ruby-from-source-on-leopard-excruciatingly-slow-internet-talk/125865 "2008-02-08T18:34:18Z")

</div>

Just a couple of days ago I “upgraded” from Tiger to Leopard, and the most horrible thing about it is that anything Ruby does over the internet is so very very slow now. which ruby tells me I’m still using my from-sou…

---

## [BigDecimal.new('15.25') == 15.25, false?](https://www.ruby-forum.com/t/bigdecimal-new-15-25-15-25-false/128472)

<div class="topic-metadata">

**Author:** [@henry32](https://www.ruby-forum.com/u/henry32)\
**Replies:** 13\
**Last updated:** [February 8, 2008, 6:05pm UTC](https://www.ruby-forum.com/t/bigdecimal-new-15-25-15-25-false/128472 "2008-02-08T18:05:58Z")

</div>

Hi, I was writing some unit tests when I ran into some troubles… In the end I found out the problem : BigDecimal.new(‘15.25’) == 15.25 returns false !! BigDecimal.new(‘15.25’).to\_f == 15.25.to\_f also returns false. …

---

## [How can 1/100=0](https://www.ruby-forum.com/t/how-can-1-100-0/128544)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 6\
**Last updated:** [February 8, 2008, 6:02pm UTC](https://www.ruby-forum.com/t/how-can-1-100-0/128544 "2008-02-08T18:02:24Z")

</div>

cannot belive my eyes. how can 1/100 be equal to 0. E:\\Documents and Settings\\Roasty\>irb irb(main):001:0\> TRAILING\_STOP=1/100 =\> 0 irb(main):002:0\> TRAILING\_STOP =\> 0 irb(main):003:0\>

---

## [Best way for sending file to user](https://www.ruby-forum.com/t/best-way-for-sending-file-to-user/128461)

<div class="topic-metadata">

**Author:** [@pimeamark](https://www.ruby-forum.com/u/pimeamark)\
**Replies:** 3\
**Last updated:** [February 8, 2008, 5:08pm UTC](https://www.ruby-forum.com/t/best-way-for-sending-file-to-user/128461 "2008-02-08T17:08:44Z")

</div>

HI, I’m currently using the FasterCSV library to pull a bunch of data from my database and send a .csv file to the user. Currently i start off with FasterCSV.open(“app/models/” + @assessment.assessment + “.csv”, “w”) …

---

## [AddRange problem](https://www.ruby-forum.com/t/addrange-problem/128516)

<div class="topic-metadata">

**Author:** [@dermothogan](https://www.ruby-forum.com/u/dermothogan)\
**Replies:** 2\
**Last updated:** [February 8, 2008, 4:10pm UTC](https://www.ruby-forum.com/t/addrange-problem/128516 "2008-02-08T16:10:40Z")

</div>

I’m having trouble with this in a ListBox control: self.listBox1.Items.AddRange(\[‘a’, ‘b’, ‘c’\]) I get the error :0:in InitializeComponent': wrong number or type of arguments forAddRange’ (ArgumentError) What’s the c…

---

## [Env](https://www.ruby-forum.com/t/env/128427)

<div class="topic-metadata">

**Author:** [@RVC\_planning](https://www.ruby-forum.com/u/RVC_planning)\
**Replies:** 6\
**Last updated:** [February 8, 2008, 3:19pm UTC](https://www.ruby-forum.com/t/env/128427 "2008-02-08T15:19:10Z")

</div>

Mac OS X example scripts have the command (directive/statement/?)… ENV\[‘BRIDGE\_SUPPORT\_PATH’\] = ‘/Volumes/Data/src/svn-rubycocoa-apple/ framework/bridge-support’ I can’t find any write-up of this line anywhere. It’s i…

---

## [Interesting problem with memcache-client and sockets](https://www.ruby-forum.com/t/interesting-problem-with-memcache-client-and-sockets/128536)

<div class="topic-metadata">

**Author:** [@Jakanapes](https://www.ruby-forum.com/u/Jakanapes)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 3:00pm UTC](https://www.ruby-forum.com/t/interesting-problem-with-memcache-client-and-sockets/128536 "2008-02-08T15:00:52Z")

</div>

Hi all, Been writing unit tests and found an interesting problem. We’re using memcache on a web app and wanted to test that the proper exceptions would be thrown if the memcache server went down. If memcache server i…

---

## [Idiom I've not seen before](https://www.ruby-forum.com/t/idiom-ive-not-seen-before/128373)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 11\
**Last updated:** [February 8, 2008, 12:34pm UTC](https://www.ruby-forum.com/t/idiom-ive-not-seen-before/128373 "2008-02-08T12:34:23Z")

</div>

I came across this : elements.sort\_by(&:position).each in something I’ve taken over. I thought sort\_by took a block. Obviously I’m missing something. Can anyone shed some light on this trick? ~Rob

---

## [Resurrecting the Ruby Wiki](https://www.ruby-forum.com/t/resurrecting-the-ruby-wiki/128511)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 1\
**Last updated:** [February 8, 2008, 11:11am UTC](https://www.ruby-forum.com/t/resurrecting-the-ruby-wiki/128511 "2008-02-08T11:11:50Z")

</div>

Anyone else miss the Rubygarden wiki? For a language with a community as large and active as Ruby’s, it’s a definite drawback not to have an official wiki (if only to host a GUI comparison page :)). One idea I had was…

---

## [Problem with win32ole to control Adobe InDesign](https://www.ruby-forum.com/t/problem-with-win32ole-to-control-adobe-indesign/128513)

<div class="topic-metadata">

**Author:** [@CIURLIA\_Angelo](https://www.ruby-forum.com/u/CIURLIA_Angelo)\
**Replies:** 0\
**Last updated:** [February 8, 2008, 10:54am UTC](https://www.ruby-forum.com/t/problem-with-win32ole-to-control-adobe-indesign/128513 "2008-02-08T10:54:08Z")

</div>

Hi, I’m new to Ruby I try to control Adobe In design with Ruby everything was good until i try to assign an enumarated value if anyone can help me, i provide a sample code to reproduce may error, i make many try (at…

---

## [\[PDF-Writer\] Write superscripted text](https://www.ruby-forum.com/t/pdf-writer-write-superscripted-text/128392)

<div class="topic-metadata">

**Author:** [@abir84](https://www.ruby-forum.com/u/abir84)\
**Replies:** 4\
**Last updated:** [February 8, 2008, 10:20am UTC](https://www.ruby-forum.com/t/pdf-writer-write-superscripted-text/128392 "2008-02-08T10:20:04Z")

</div>

Hello, Is there a way in PDF-writer to write subscript or superscript (power) text?? Thanks

---

## [Search Engine Optimization in ROR](https://www.ruby-forum.com/t/search-engine-optimization-in-ror/128500)

<div class="topic-metadata">

**Author:** [@srinivasraopala](https://www.ruby-forum.com/u/srinivasraopala)\
**Replies:** 1\
**Last updated:** [February 8, 2008, 9:26am UTC](https://www.ruby-forum.com/t/search-engine-optimization-in-ror/128500 "2008-02-08T09:26:56Z")

</div>

Hi, Is ROR supports the Search Engine Optimization? Is there any rules for support the SEO? Please reply my doubts with examples. Thank you, srinivas

---

## [MS Word files and PDFs](https://www.ruby-forum.com/t/ms-word-files-and-pdfs/58551)

<div class="topic-metadata">

**Author:** [@Mateo\_Barraza](https://www.ruby-forum.com/u/Mateo_Barraza)\
**Replies:** 5\
**Last updated:** [February 8, 2008, 9:15am UTC](https://www.ruby-forum.com/t/ms-word-files-and-pdfs/58551 "2008-02-08T09:15:06Z")

</div>

Hello, I’m fairly new to the Ruby scene. Is there any library that can read MS Word (.doc) files and extract the pure text…what about libs for PDF files? Thanks folks, M.

---

## [EUC-KR \<-\> UTF-8 transition table](https://www.ruby-forum.com/t/euc-kr-utf-8-transition-table/128325)

<div class="topic-metadata">

**Author:** [@tisphie](https://www.ruby-forum.com/u/tisphie)\
**Replies:** 14\
**Last updated:** [February 8, 2008, 8:41am UTC](https://www.ruby-forum.com/t/euc-kr-utf-8-transition-table/128325 "2008-02-08T08:41:33Z")

</div>

e$BKQe(B e$B\<G0u$G$9!#e(B e$B4Z9q8lMQ$Ne(BEUC-KR \<-\>UTF-8 e$B$NJQ49%F!\<%V%k$re(B e$B=q$$$F$\_$^$7$?!#e(B KSX1001 ↔ UNICODE mappinge$BJ8=qe(B(KSC5601 = KSX1001)e$B$r8+$J$,$i:n@.$7$?$b$N$G$9!#e(B e$B4v$D$+$NC18l$NJQ49e…

---

## [Help for Unicode char and Unicode char based string in Ruby](https://www.ruby-forum.com/t/help-for-unicode-char-and-unicode-char-based-string-in-ruby/128019)

<div class="topic-metadata">

**Author:** [@chirag\_mistry\_ruby](https://www.ruby-forum.com/u/chirag_mistry_ruby)\
**Replies:** 6\
**Last updated:** [February 8, 2008, 5:57am UTC](https://www.ruby-forum.com/t/help-for-unicode-char-and-unicode-char-based-string-in-ruby/128019 "2008-02-08T05:57:02Z")

</div>

Hi I want to use Unicode character and Unicode character based string in Ruby. Please provide some help to me. Regards Chirag

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

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