# Ruby

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

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

---

## [Re: Oniguruma](https://www.ruby-forum.com/t/re-oniguruma/94630)

<div class="topic-metadata">

**Author:** [@K.Kosako](https://www.ruby-forum.com/u/K.Kosako)\
**Replies:** 0\
**Last updated:** [January 7, 2006, 3:34am UTC](https://www.ruby-forum.com/t/re-oniguruma/94630 "2006-01-07T03:34:55Z")

</div>

\*\*\> So my first two questions are: How to do a simple test that confirms whether or not Oniguruma is there? Currently not supported. I will add a constant Regexp::ENGINE = “Oniguruma 2.5.2” for Ruby 1.8.X. Then, …

---

## [Ruby projects and interfaces to revision control systems (Da](https://www.ruby-forum.com/t/ruby-projects-and-interfaces-to-revision-control-systems-da/88940)

<div class="topic-metadata">

**Author:** [@alangano](https://www.ruby-forum.com/u/alangano)\
**Replies:** 36\
**Last updated:** [January 7, 2006, 1:13am UTC](https://www.ruby-forum.com/t/ruby-projects-and-interfaces-to-revision-control-systems-da/88940 "2006-01-07T01:13:43Z")

</div>

Our company, which is beginning to use Ruby in production systems, has been using Darcs\[1\] for a little while with general success. My co-worker has even released a preliminary ruby-darcs interface on RubyForge. How…

---

## [Need help configuring LoginGenerator](https://www.ruby-forum.com/t/need-help-configuring-logingenerator/94609)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [January 7, 2006, 12:28am UTC](https://www.ruby-forum.com/t/need-help-configuring-logingenerator/94609 "2006-01-07T00:28:27Z")

</div>

I’m new to Rails and I’m trying to get user login working on my app. I’m running Ruby 1.8.2 on OSX 10.4 with Rails 1.0 I’ve installed the most recent LoginGenerator(1.1.0) and followed the instructions in README\_LOGIN…

---

## [Variable](https://www.ruby-forum.com/t/variable/94612)

<div class="topic-metadata">

**Author:** [@misiek](https://www.ruby-forum.com/u/misiek)\
**Replies:** 3\
**Last updated:** [January 7, 2006, 12:13am UTC](https://www.ruby-forum.com/t/variable/94612 "2006-01-07T00:13:23Z")

</div>

hi if I got 2 variables for example: http://192.168.10.101:3001/user/show\_hours/2?permission=SA || || | || controler action id variable but ‘id’ and ‘permission’ are variables… so how to put in my …

---

## [Case-insensitive hash?](https://www.ruby-forum.com/t/case-insensitive-hash/51767)

<div class="topic-metadata">

**Author:** [@pie-r-squared](https://www.ruby-forum.com/u/pie-r-squared)\
**Replies:** 2\
**Last updated:** [January 6, 2006, 11:04pm UTC](https://www.ruby-forum.com/t/case-insensitive-hash/51767 "2006-01-06T23:04:14Z")

</div>

So I understand that a hash can use keys of any type, not just string (or symbol), but there are occasions when I have a hash that has been populated with string keys whose values I would like to access case-insensit…

---

## [Oniguruma](https://www.ruby-forum.com/t/oniguruma/94529)

<div class="topic-metadata">

**Author:** [@Hal\_F](https://www.ruby-forum.com/u/Hal_F)\
**Replies:** 4\
**Last updated:** [January 6, 2006, 10:52pm UTC](https://www.ruby-forum.com/t/oniguruma/94529 "2006-01-06T22:52:12Z")

</div>

My understanding is that Oniguruma is standard in 1.9 and can be built into 1.8.x – correct? So my first two questions are: How to do a simple test that confirms whether or not Oniguruma is there? How to build t…

---

## [How to write a destructive string method?](https://www.ruby-forum.com/t/how-to-write-a-destructive-string-method/51733)

<div class="topic-metadata">

**Author:** [@henrik](https://www.ruby-forum.com/u/henrik)\
**Replies:** 6\
**Last updated:** [January 6, 2006, 10:16pm UTC](https://www.ruby-forum.com/t/how-to-write-a-destructive-string-method/51733 "2006-01-06T22:16:10Z")

</div>

I haven’t been able to figure out how to write a destructive string method of my own. How do I change the value of “self”? This is what I tried first: class String alias\_method(:orig\_upcase, :upcase) def upcase or…

---

## [Reading Windows Registry Files under Linux?](https://www.ruby-forum.com/t/reading-windows-registry-files-under-linux/51766)

<div class="topic-metadata">

**Author:** [@Hadmut\_D](https://www.ruby-forum.com/u/Hadmut_D)\
**Replies:** 0\
**Last updated:** [January 6, 2006, 9:34pm UTC](https://www.ruby-forum.com/t/reading-windows-registry-files-under-linux/51766 "2006-01-06T21:34:04Z")

</div>

Hi, reading the Windows Registry is easy with Ruby - when under Windows. But is there a way to read Registry files when under Linux (e.g. from a backup or a mounted Windows filesystem)? regards Hadmut

---

## [How to override Numeric class](https://www.ruby-forum.com/t/how-to-override-numeric-class/51750)

<div class="topic-metadata">

**Author:** [@bmihelac](https://www.ruby-forum.com/u/bmihelac)\
**Replies:** 4\
**Last updated:** [January 6, 2006, 8:06pm UTC](https://www.ruby-forum.com/t/how-to-override-numeric-class/51750 "2006-01-06T20:06:48Z")

</div>

Hi all, I am new to Ruby and am trying to overload “+” operator on Integer class, without success. class TestNum \< Integer def +(other) self.value - other end end puts TestNum.new(5)+5; # should return 0 I know …

---

## [Numeric Maze (#60)](https://www.ruby-forum.com/t/numeric-maze-60/51376)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 123\
**Last updated:** [January 6, 2006, 8:00pm UTC](https://www.ruby-forum.com/t/numeric-maze-60/51376 "2006-01-06T20:00:45Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

---

## [Utf-8](https://www.ruby-forum.com/t/utf-8/94556)

<div class="topic-metadata">

**Author:** [@Mark\_J.Reed](https://www.ruby-forum.com/u/Mark_J.Reed)\
**Replies:** 1\
**Last updated:** [January 6, 2006, 7:42pm UTC](https://www.ruby-forum.com/t/utf-8/94556 "2006-01-06T19:42:40Z")

</div>

Okay, last I checked, strings were just treated as collections of bytes, and any multibyte character semantics were up to the programmer to implement. But I just noticed that in 1.8.3, utf8string.split(//) yeilds an…

---

## [How to access individual characters in a string (as strings)](https://www.ruby-forum.com/t/how-to-access-individual-characters-in-a-string-as-strings/51720)

<div class="topic-metadata">

**Author:** [@m4dc4p](https://www.ruby-forum.com/u/m4dc4p)\
**Replies:** 6\
**Last updated:** [January 6, 2006, 6:38pm UTC](https://www.ruby-forum.com/t/how-to-access-individual-characters-in-a-string-as-strings/51720 "2006-01-06T18:38:28Z")

</div>

I’m embarrassed to ask such a seeminly simple question, but I can’t figure out how to “easily” get the individual characters/bytes out of a string as strings. For example: “abc”\[0\] =\> 97 “abc”\[0…0\] =\> “a” The first …

---

## [How remove puts inside method?](https://www.ruby-forum.com/t/how-remove-puts-inside-method/51662)

<div class="topic-metadata">

**Author:** [@cow6oy](https://www.ruby-forum.com/u/cow6oy)\
**Replies:** 13\
**Last updated:** [January 6, 2006, 6:34pm UTC](https://www.ruby-forum.com/t/how-remove-puts-inside-method/51662 "2006-01-06T18:34:28Z")

</div>

I have a method (process\_transaction) that uses puts to output a result. Now I wanted to remove puts, so I could further process the result of the method before printing it. But I can’t get it to work … method checks…

---

## [Out of order ruby-talk messages](https://www.ruby-forum.com/t/out-of-order-ruby-talk-messages/59707)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [January 6, 2006, 5:45pm UTC](https://www.ruby-forum.com/t/out-of-order-ruby-talk-messages/59707 "2006-01-06T17:45:24Z")

</div>

Does anyone else consistently receive ruby-talk messages out of order? I will often receive two or three replies to an original post before the original post arrives. I looked at the Received: headers in a few cases a…

---

## [PDF library](https://www.ruby-forum.com/t/pdf-library/94545)

<div class="topic-metadata">

**Author:** [@Chintakrindi\_Meghan](https://www.ruby-forum.com/u/Chintakrindi_Meghan)\
**Replies:** 3\
**Last updated:** [January 6, 2006, 4:45pm UTC](https://www.ruby-forum.com/t/pdf-library/94545 "2006-01-06T16:45:20Z")

</div>

Hi Is there any PDF library in ruby, so that I can create, modify and read the PDF files. Thanks Meghanath Management Dynamics, Inc. removed\_email\_address@domain.invalid Phone: 240.453.6507 Cell: 240.372.6241 ww…

---

## [OT: What is in a name? (was: Demystifying Symbols)](https://www.ruby-forum.com/t/ot-what-is-in-a-name-was-demystifying-symbols/51695)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [January 6, 2006, 4:24pm UTC](https://www.ruby-forum.com/t/ot-what-is-in-a-name-was-demystifying-symbols/51695 "2006-01-06T16:24:18Z")

</div>

On Jan 5, 2006, at 3:54 PM, Steve L. wrote: self-modifying Object, and not an ordinary string at all. I don’t think it would hurt to think of it as an immutable string (not a String), in your own personal life. Ho…

---

## [Ruby-dev summary 28027-28205](https://www.ruby-forum.com/t/ruby-dev-summary-28027-28205/51745)

<div class="topic-metadata">

**Author:** [@Takaaki\_T](https://www.ruby-forum.com/u/Takaaki_T)\
**Replies:** 0\
**Last updated:** [January 6, 2006, 4:12pm UTC](https://www.ruby-forum.com/t/ruby-dev-summary-28027-28205/51745 "2006-01-06T16:12:17Z")

</div>

Here is a summary of ruby-dev mailing list. \[ruby-dev:28087\] test(?-, file1, file2) Akira T. asked what is correct behavior of test(?-, file1, file2). According to the online manual, this method checks whether file1…

---

## [What's the best practise in naming modules?](https://www.ruby-forum.com/t/whats-the-best-practise-in-naming-modules/51729)

<div class="topic-metadata">

**Author:** [@Henrik\_M](https://www.ruby-forum.com/u/Henrik_M)\
**Replies:** 4\
**Last updated:** [January 6, 2006, 3:26pm UTC](https://www.ruby-forum.com/t/whats-the-best-practise-in-naming-modules/51729 "2006-01-06T15:26:57Z")

</div>

Hi, I have a question about the best practise in naming Ruby modules. I am working on a module for unit testing XML documents (and document fragments). It would be logical, I think, to name the module Test::Unit::XML…

---

## [Ruby syntax highlighting problem with Emacs](https://www.ruby-forum.com/t/ruby-syntax-highlighting-problem-with-emacs/51710)

<div class="topic-metadata">

**Author:** [@rich](https://www.ruby-forum.com/u/rich)\
**Replies:** 2\
**Last updated:** [January 6, 2006, 3:08pm UTC](https://www.ruby-forum.com/t/ruby-syntax-highlighting-problem-with-emacs/51710 "2006-01-06T15:08:48Z")

</div>

I was attempting to install ruby support into my emacs installation by following the directions at the RubyGarden. When I load a ruby file, Emacs switches to Ruby mode but doesn’t do syntax highlighting. Does anybod…

---

## [Molruby release r-20060106](https://www.ruby-forum.com/t/molruby-release-r-20060106/51736)

<div class="topic-metadata">

**Author:** [@Srinivas\_J](https://www.ruby-forum.com/u/Srinivas_J)\
**Replies:** 0\
**Last updated:** [January 6, 2006, 2:44pm UTC](https://www.ruby-forum.com/t/molruby-release-r-20060106/51736 "2006-01-06T14:44:32Z")

</div>

Dear all, A small bug fix release of molruby has been made. Change log explains the bugs fixed. The project can be found at http://rubyforge.org/projects/molruby. Best regards, JS Srinivas J., Ph.D. Chief Technic…

---

## [Re: Newbie question](https://www.ruby-forum.com/t/re-newbie-question/94543)

<div class="topic-metadata">

**Author:** [@KroegerS\_Simon\_Sext](https://www.ruby-forum.com/u/KroegerS_Simon_Sext)\
**Replies:** 0\
**Last updated:** [January 6, 2006, 11:50am UTC](https://www.ruby-forum.com/t/re-newbie-question/94543 "2006-01-06T11:50:11Z")

</div>

Hi again, there where some obvious errors left: def ae\_6 session pdu, pduLen = session.read(5).unpack(‘cN’) buffer = session.read(pduLen) calledAETitle, callingAETitle, itemType, itemLength = buffer.unpack(‘x4A16A16…

---

## [Attribute writers](https://www.ruby-forum.com/t/attribute-writers/51727)

<div class="topic-metadata">

**Author:** [@bluetrust](https://www.ruby-forum.com/u/bluetrust)\
**Replies:** 5\
**Last updated:** [January 6, 2006, 11:35am UTC](https://www.ruby-forum.com/t/attribute-writers/51727 "2006-01-06T11:35:11Z")

</div>

I’m working on a survey system in Ruby and am having a style crisis with a simple bit of code that has left me paralyzed and unable to work. Respondent data in research surveys is traditionally stored as big strings o…

---

## [Re: Newbie question](https://www.ruby-forum.com/t/re-newbie-question/51725)

<div class="topic-metadata">

**Author:** [@KroegerS\_Simon\_Sext](https://www.ruby-forum.com/u/KroegerS_Simon_Sext)\
**Replies:** 0\
**Last updated:** [January 6, 2006, 10:31am UTC](https://www.ruby-forum.com/t/re-newbie-question/51725 "2006-01-06T10:31:45Z")

</div>

Welcome mac, your code below should be more or less equal to: (no chance of testing obviously) def ae\_6 session pdu, pduLen = session.read(5).unpack(‘cN’) buffer = session.read(pduLen) calledAETitle, callingAETitle…

---

## [Rote 0.3.2 released](https://www.ruby-forum.com/t/rote-0-3-2-released/51693)

<div class="topic-metadata">

**Author:** [@ross\_b](https://www.ruby-forum.com/u/ross_b)\
**Replies:** 4\
**Last updated:** [January 6, 2006, 9:49am UTC](https://www.ruby-forum.com/t/rote-0-3-2-released/51693 "2006-01-06T09:49:40Z")

</div>

Rote 0.3.2 is now available for download from http://rote.rubyforge.org (Direct link: http://rubyforge.org/frs/download.php/7975/rote-0.3.2.gem). Rote is a lightweight, powerful documentation and templating system tha…

---

## [Vim two space indentation](https://www.ruby-forum.com/t/vim-two-space-indentation/90249)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 6\
**Last updated:** [January 6, 2006, 9:22am UTC](https://www.ruby-forum.com/t/vim-two-space-indentation/90249 "2006-01-06T09:22:36Z")

</div>

Hi guys, This has probably been done before but I’ve looked through 5000+ emails and I’ve not seen a simple solution. I’d like to have two space indentation for \*.rb files or those whose first line begins with !#/usr…

---

## [Fxri: command window flashes then disappears](https://www.ruby-forum.com/t/fxri-command-window-flashes-then-disappears/51721)

<div class="topic-metadata">

**Author:** [@basi](https://www.ruby-forum.com/u/basi)\
**Replies:** 0\
**Last updated:** [January 6, 2006, 9:10am UTC](https://www.ruby-forum.com/t/fxri-command-window-flashes-then-disappears/51721 "2006-01-06T09:10:34Z")

</div>

Hello, I reinstalled Ruby in a new machine. And now when I try to restart fxri via /start/all programs/ruby, the command window flashes then disappears How do I make the command window to stay and display the fxri wi…

---

## [Exception in for next item](https://www.ruby-forum.com/t/exception-in-for-next-item/56352)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 2\
**Last updated:** [January 6, 2006, 8:53am UTC](https://www.ruby-forum.com/t/exception-in-for-next-item/56352 "2006-01-06T08:53:57Z")

</div>

Hello I retrieve a number of message 1 to n And try to send these by stmp that is no problem with te following code : messages = Spool.find\_created\_messages Net::SMTP.start('sigma.itxl.nl',25,'itxl.nl') do | smtp …

---

## [Installing ruby-libs-1.8.4-0.4.preview2.i386.rpm on FC4?](https://www.ruby-forum.com/t/installing-ruby-libs-1-8-4-0-4-preview2-i386-rpm-on-fc4/51516)

<div class="topic-metadata">

**Author:** [@unebaguettesvp](https://www.ruby-forum.com/u/unebaguettesvp)\
**Replies:** 3\
**Last updated:** [January 6, 2006, 8:22am UTC](https://www.ruby-forum.com/t/installing-ruby-libs-1-8-4-0-4-preview2-i386-rpm-on-fc4/51516 "2006-01-06T08:22:32Z")

</div>

People, Has anyone been able to install these preview RPMs? I get: rpm -ivh ruby-libs-1.8.4-0.4.preview2.i386.rpm error: Failed dependencies: libc.so.6(GLIBC\_2.4) is needed by ruby-libs-1.8.4-0.4.preview2.i386 lib…

---

## [Application and web app technologies](https://www.ruby-forum.com/t/application-and-web-app-technologies/51537)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 31\
**Last updated:** [January 6, 2006, 7:58am UTC](https://www.ruby-forum.com/t/application-and-web-app-technologies/51537 "2006-01-06T07:58:31Z")

</div>

January, 2006. I do not intend to start any kind of flame war, but only to seek advice about different technologies concerning which I am mostly ignorant. I am the database manager for a unit of a major state universi…

---

## [Re: Uploading data to MS SQL Server - problem with quote cha](https://www.ruby-forum.com/t/re-uploading-data-to-ms-sql-server-problem-with-quote-cha/89668)

<div class="topic-metadata">

**Author:** [@warren\_b](https://www.ruby-forum.com/u/warren_b)\
**Replies:** 1\
**Last updated:** [January 6, 2006, 7:19am UTC](https://www.ruby-forum.com/t/re-uploading-data-to-ms-sql-server-problem-with-quote-cha/89668 "2006-01-06T07:19:30Z")

</div>

Sam, I need to upload data coming from Oracle database to an MS SQL Server. But I’m having problems inserting if data contains a quote (’) character. On most all modern databases, a single quote must be quoted wit…

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

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