# Ruby

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

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

---

## [Ruby-IXP 1.0.1](https://www.ruby-forum.com/t/ruby-ixp-1-0-1/69027)

<div class="topic-metadata">

**Author:** [@Suraj\_NSKurapati](https://www.ruby-forum.com/u/Suraj_NSKurapati)\
**Replies:** 0\
**Last updated:** [September 18, 2006, 8:19am UTC](https://www.ruby-forum.com/t/ruby-ixp-1-0-1/69027 "2006-09-18T08:19:08Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 = Version 1.0.1 (2006-09-17) Ruby-IXP is an implementation of the 9P2000 protocol designed for use with Window Manager Improved. It is written in pure Ruby to avoid peri…

---

## [Ruby-1.8.5 and openssl and gcc 3.2](https://www.ruby-forum.com/t/ruby-1-8-5-and-openssl-and-gcc-3-2/68928)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 6\
**Last updated:** [September 18, 2006, 4:52am UTC](https://www.ruby-forum.com/t/ruby-1-8-5-and-openssl-and-gcc-3-2/68928 "2006-09-18T04:52:50Z")

</div>

I’m trying to compile ruby-1.8.5 on a rather old Linux box, and it’s failing in ext/openssl, gcc -I. -I…/… -I…/…/. -I…/…/./ext/openssl -DRUBY\_EXTCONF\_H=“extconf.h” -I/users/kleb/local/openssl/include -fPIC -g -O2 -c…

---

## [The Well Tempered Ruby Application](https://www.ruby-forum.com/t/the-well-tempered-ruby-application/68632)

<div class="topic-metadata">

**Author:** [@tbobker](https://www.ruby-forum.com/u/tbobker)\
**Replies:** 3\
**Last updated:** [September 18, 2006, 1:52am UTC](https://www.ruby-forum.com/t/the-well-tempered-ruby-application/68632 "2006-09-18T01:52:42Z")

</div>

Hi, I’ve been starting to put together a small sample project like GNU’s “Hello” (Hello - GNU Project - Free Software Foundation) that provides just the framework of everything that a well behaved Ruby project should …

---

## [Readline() with editing and history?](https://www.ruby-forum.com/t/readline-with-editing-and-history/68823)

<div class="topic-metadata">

**Author:** [@Josef\_W](https://www.ruby-forum.com/u/Josef_W)\
**Replies:** 17\
**Last updated:** [September 17, 2006, 10:02pm UTC](https://www.ruby-forum.com/t/readline-with-editing-and-history/68823 "2006-09-17T22:02:23Z")

</div>

Hello! I’m looking for a readline() with history and editing support (like perl’s Term::Readline). Does such a thing exist for ruby?

---

## [Redefining/overriding methods in builtin classes AND their s](https://www.ruby-forum.com/t/redefining-overriding-methods-in-builtin-classes-and-their-s/68974)

<div class="topic-metadata">

**Author:** [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Replies:** 0\
**Last updated:** [September 17, 2006, 7:38pm UTC](https://www.ruby-forum.com/t/redefining-overriding-methods-in-builtin-classes-and-their-s/68974 "2006-09-17T19:38:12Z")

</div>

I just found out that ruby seems to treat subclasses of builtin classes about the same as the builtin classes themselves. For the sake of performance, ruby many times bypasses normal method call mechanisms for many …

---

## [Ruby Tk on Tiger](https://www.ruby-forum.com/t/ruby-tk-on-tiger/68914)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 3\
**Last updated:** [September 17, 2006, 7:34pm UTC](https://www.ruby-forum.com/t/ruby-tk-on-tiger/68914 "2006-09-17T19:34:12Z")

</div>

I’m running ruby 1.8.5 (2006-09-10) \[powerpc-darwin8.7.0\] and when I try they little simple Tk application on the first page of the Ruby Tk chapter of the Pickaxe Book I get: ~ $ ruby -w TK.rb ./tk.rb:7: uninitialize…

---

## [Why don't these writable atributes work?](https://www.ruby-forum.com/t/why-dont-these-writable-atributes-work/68961)

<div class="topic-metadata">

**Author:** [@edward](https://www.ruby-forum.com/u/edward)\
**Replies:** 3\
**Last updated:** [September 17, 2006, 4:05pm UTC](https://www.ruby-forum.com/t/why-dont-these-writable-atributes-work/68961 "2006-09-17T16:05:56Z")

</div>

Both of these code examples for making class properties don’t work although they are pretty much straight out of the book “Programming Ruby”. What I am doing wrong here? error is: undefined method \`firstName’ for #\<U…

---

## [Benchmark for Ruby](https://www.ruby-forum.com/t/benchmark-for-ruby/68726)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 20\
**Last updated:** [September 17, 2006, 3:49pm UTC](https://www.ruby-forum.com/t/benchmark-for-ruby/68726 "2006-09-17T15:49:55Z")

</div>

Ok let us get off our nice host thread, which is much better of course. Austin what you are suggesting seems very interesting to me, you claim that we do not know anything about benchmarking. For myself I accept this…

---

## [Problem - logging for mt programs](https://www.ruby-forum.com/t/problem-logging-for-mt-programs/68732)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [September 17, 2006, 3:41pm UTC](https://www.ruby-forum.com/t/problem-logging-for-mt-programs/68732 "2006-09-17T15:41:55Z")

</div>

anyone out there have good ways of dealing with multithreaded logging? my current approach uses a meta programming hack/mutex/etc so that, if the calling thread is the main one, a tid is not written, otherwise it is. …

---

## [RubyInline 3.6.0 Released (FINALLY)](https://www.ruby-forum.com/t/rubyinline-3-6-0-released-finally/68873)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 3\
**Last updated:** [September 17, 2006, 1:51pm UTC](https://www.ruby-forum.com/t/rubyinline-3-6-0-released-finally/68873 "2006-09-17T13:51:43Z")

</div>

RubyInline version 3.6.0 has been released! Only 10 month late! (ugh I can be so spacy sometimes!) rubyinline | software projects | by ryan davis http://rubyforge.org/projects/rubyinline/ \*\* DESCRIPTION: Ruby Inline…

---

## [Escaping for regexp?](https://www.ruby-forum.com/t/escaping-for-regexp/68957)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [September 17, 2006, 11:41am UTC](https://www.ruby-forum.com/t/escaping-for-regexp/68957 "2006-09-17T11:41:37Z")

</div>

i’ve a regexp like that : /.\*#{name}$/ === path however the variable “name” could, for example, in the form of : “L2 Cache (per CPU)” then, the string “name” might contain reserved chars for regexp, i plan to escape…

---

## [Matrix](https://www.ruby-forum.com/t/matrix/68223)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 50\
**Last updated:** [September 17, 2006, 5:31am UTC](https://www.ruby-forum.com/t/matrix/68223 "2006-09-17T05:31:25Z")

</div>

Hi all, a) Is there a way to create a non-square matrix in ruby? b) How does one set any arbitrary element of an array? I searched for these bu there was a post about 3 years back, if anything has been done it would …

---

## [A problem with mongrel install](https://www.ruby-forum.com/t/a-problem-with-mongrel-install/68948)

<div class="topic-metadata">

**Author:** [@SSSSSSS\_SSS\_SSSSS\_S](https://www.ruby-forum.com/u/SSSSSSS_SSS_SSSSS_S)\
**Replies:** 1\
**Last updated:** [September 17, 2006, 5:13am UTC](https://www.ruby-forum.com/t/a-problem-with-mongrel-install/68948 "2006-09-17T05:13:24Z")

</div>

hi all: when i install mongrel Building native extensions. This could take a while… extconf.rb:1:in \`require’: no such file to load – mkmf (LoadError) from extconf.rb:1 ERROR: Error installing gem mongrel-0.3.13.3…

---

## [Building extension modules, and linking](https://www.ruby-forum.com/t/building-extension-modules-and-linking/68596)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 13\
**Last updated:** [September 17, 2006, 4:43am UTC](https://www.ruby-forum.com/t/building-extension-modules-and-linking/68596 "2006-09-17T04:43:22Z")

</div>

When you load an extension module, what’s the mechanism that makes those C calls (the ones that call into the Ruby API) actually get connected to the currently-running instance of ruby? When I build C code (not an ext…

---

## [Ruby + SSH + Sudo](https://www.ruby-forum.com/t/ruby-ssh-sudo/66667)

<div class="topic-metadata">

**Author:** [@mrdamien](https://www.ruby-forum.com/u/mrdamien)\
**Replies:** 15\
**Last updated:** [September 17, 2006, 1:47am UTC](https://www.ruby-forum.com/t/ruby-ssh-sudo/66667 "2006-09-17T01:47:13Z")

</div>

Hi all, I am developping and application that connect through ssh to a host and then try to launch a command with sudo. I am using the net/ssh library, and I use the key-rsa authentication to connect (so no password …

---

## [Handling errors via mail](https://www.ruby-forum.com/t/handling-errors-via-mail/68931)

<div class="topic-metadata">

**Author:** [@Radu\_S](https://www.ruby-forum.com/u/Radu_S)\
**Replies:** 1\
**Last updated:** [September 17, 2006, 1:15am UTC](https://www.ruby-forum.com/t/handling-errors-via-mail/68931 "2006-09-17T01:15:11Z")

</div>

Hi I have a small script that runs daemonized and does some basic SQL operations. I was wondering if it possible that in case of an exception the program could send an email with the exception, and at the same time l…

---

## [Ruby-IXP 1.0.0](https://www.ruby-forum.com/t/ruby-ixp-1-0-0/68933)

<div class="topic-metadata">

**Author:** [@Suraj\_NSKurapati](https://www.ruby-forum.com/u/Suraj_NSKurapati)\
**Replies:** 0\
**Last updated:** [September 17, 2006, 1:09am UTC](https://www.ruby-forum.com/t/ruby-ixp-1-0-0/68933 "2006-09-17T01:09:10Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 = Version 1.0.0 (2006-09-16) Ruby-IXP is an implementation of the 9P2000 protocol designed for use with Window Manager Improved. It is written in pure Ruby to avoid peri…

---

## [IRB and Filtering Input?](https://www.ruby-forum.com/t/irb-and-filtering-input/68905)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 3\
**Last updated:** [September 17, 2006, 12:02am UTC](https://www.ruby-forum.com/t/irb-and-filtering-input/68905 "2006-09-17T00:02:08Z")

</div>

Hi, Is there a way to filter what is typed/copy-pasted in/into IRB? For example, just for fun and showcasing, to strip any ‘a’ character typed when you are in IRB. Or, more importantly and main reason to post this, t…

---

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

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [September 16, 2006, 8:10pm UTC](https://www.ruby-forum.com/t/text-columns/68880 "2006-09-16T20:10:54Z")

</div>

Ok, this is probably a stupid question: how to handle mysql text columns in rails? \<%= @foo.text\_column\_name %\> returns ### \<%= @foo.send(‘text\_column\_name’) %\> returns # Using the scaffold-generated edit view, I see…

---

## [Garbage Collection: Marking RData ptr](https://www.ruby-forum.com/t/garbage-collection-marking-rdata-ptr/68869)

<div class="topic-metadata">

**Author:** [@vtphysguy](https://www.ruby-forum.com/u/vtphysguy)\
**Replies:** 2\
**Last updated:** [September 16, 2006, 7:39pm UTC](https://www.ruby-forum.com/t/garbage-collection-marking-rdata-ptr/68869 "2006-09-16T19:39:57Z")

</div>

I’m working on creating a binding for an object-based library\[1\] and am trying to find a way to make it work well with the garbage collector. Constructor functions from the library return a pointer to their data struc…

---

## [Metaruby, BFTS, Cardinal and Rubicon - State of play?](https://www.ruby-forum.com/t/metaruby-bfts-cardinal-and-rubicon-state-of-play/68520)

<div class="topic-metadata">

**Author:** [@crenner](https://www.ruby-forum.com/u/crenner)\
**Replies:** 29\
**Last updated:** [September 16, 2006, 7:16pm UTC](https://www.ruby-forum.com/t/metaruby-bfts-cardinal-and-rubicon-state-of-play/68520 "2006-09-16T19:16:51Z")

</div>

Hi, I read Pat Eyler’s interview with Kevin T.\[1\] this morning. It got me interested and reminded me of metaruby. I did a little reading and am wondering the general state of play with regard to both metaruby and b…

---

## [Is there any way to save current job to a file in irb?](https://www.ruby-forum.com/t/is-there-any-way-to-save-current-job-to-a-file-in-irb/68858)

<div class="topic-metadata">

**Author:** [@kuuul](https://www.ruby-forum.com/u/kuuul)\
**Replies:** 4\
**Last updated:** [September 16, 2006, 6:56pm UTC](https://www.ruby-forum.com/t/is-there-any-way-to-save-current-job-to-a-file-in-irb/68858 "2006-09-16T18:56:50Z")

</div>

Or is there any tool to take place of it?

---

## [No regex backreference with four backslashes](https://www.ruby-forum.com/t/no-regex-backreference-with-four-backslashes/68864)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [September 16, 2006, 6:50pm UTC](https://www.ruby-forum.com/t/no-regex-backreference-with-four-backslashes/68864 "2006-09-16T18:50:50Z")

</div>

Consider the following test case: require ‘test/unit’ class RegexTest \< Test::Unit::TestCase def test\_escaping numbers = “12345” assert\_equal “12345”, numbers.gsub(/(2|4)/, ‘\\1’) assert\_equal “12345”, numbers.gsub(…

---

## [How can i install ruby in ubuntu](https://www.ruby-forum.com/t/how-can-i-install-ruby-in-ubuntu/68907)

<div class="topic-metadata">

**Author:** [@SSSSSSS\_SSS\_SSSSS\_S](https://www.ruby-forum.com/u/SSSSSSS_SSS_SSSSS_S)\
**Replies:** 2\
**Last updated:** [September 16, 2006, 6:06pm UTC](https://www.ruby-forum.com/t/how-can-i-install-ruby-in-ubuntu/68907 "2006-09-16T18:06:46Z")

</div>

hi all i use “sudo apt-get install ruby1.8 irb1.8 rdoc1.8” install ruby in ubuntu ,but after success install , i input " ruby -v " , prompt " bash:ruby command not found", why ?? need other config??

---

## [RMagick, OS X, and granite](https://www.ruby-forum.com/t/rmagick-os-x-and-granite/102530)

<div class="topic-metadata">

**Author:** [@pie-r-squared](https://www.ruby-forum.com/u/pie-r-squared)\
**Replies:** 3\
**Last updated:** [September 16, 2006, 3:14pm UTC](https://www.ruby-forum.com/t/rmagick-os-x-and-granite/102530 "2006-09-16T15:14:25Z")

</div>

I’m having an odd problem with RMagick. Consider the following script: ############################################################ require ‘rubygems’ require ‘RMagick’ Magick::ImageList.new(‘granite:’).display ####…

---

## [Ruby keywords vs methods](https://www.ruby-forum.com/t/ruby-keywords-vs-methods/68866)

<div class="topic-metadata">

**Author:** [@crenner](https://www.ruby-forum.com/u/crenner)\
**Replies:** 10\
**Last updated:** [September 16, 2006, 1:54pm UTC](https://www.ruby-forum.com/t/ruby-keywords-vs-methods/68866 "2006-09-16T13:54:20Z")

</div>

Hi, I attended Jim W.'s talk at Rails Conf on Friday. It was about thoughtful library design and contained a section on ways to mitigate risk when re-opening standard libraries. Rake uses the following pattern when …

---

## [Re: Need help about Ruby with text file](https://www.ruby-forum.com/t/re-need-help-about-ruby-with-text-file/68831)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 2\
**Last updated:** [September 16, 2006, 12:46pm UTC](https://www.ruby-forum.com/t/re-need-help-about-ruby-with-text-file/68831 "2006-09-16T12:46:17Z")

</div>

By the way, may I know that is there any function like e.g. left(line, 3), right(line, 2) and mid(line, 1, 4) to extract letter from a line, please? e.g. mid(gghhii,3,2) return hh left(gghhii,3) return ggh right(…

---

## [Download files from web](https://www.ruby-forum.com/t/download-files-from-web/68896)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 1\
**Last updated:** [September 16, 2006, 12:42pm UTC](https://www.ruby-forum.com/t/download-files-from-web/68896 "2006-09-16T12:42:16Z")

</div>

Hi, I already knew that you can use the following code to download a file. http=Net::HTTP.start(servername) resp = http.get(fileName) But if the files is large this will take some time. Is there another package with…

---

## [wxRuby2-preview: strange event of TextCtrl](https://www.ruby-forum.com/t/wxruby2-preview-strange-event-of-textctrl/68838)

<div class="topic-metadata">

**Author:** [@kuuul](https://www.ruby-forum.com/u/kuuul)\
**Replies:** 4\
**Last updated:** [September 16, 2006, 11:46am UTC](https://www.ruby-forum.com/t/wxruby2-preview-strange-event-of-textctrl/68838 "2006-09-16T11:46:12Z")

</div>

… evt\_text(TEXTCTRL\_ID){ puts self.get\_value } … When I input “Hello”, output: H He Hel Hell Hello When I select “ello”,and input “i” output: H Hi How can I ignore the event outputs “H”?

---

## [Not finding a breakpoint + values are nil](https://www.ruby-forum.com/t/not-finding-a-breakpoint-values-are-nil/68731)

<div class="topic-metadata">

**Author:** [@bikle](https://www.ruby-forum.com/u/bikle)\
**Replies:** 7\
**Last updated:** [September 16, 2006, 6:01am UTC](https://www.ruby-forum.com/t/not-finding-a-breakpoint-values-are-nil/68731 "2006-09-16T06:01:52Z")

</div>

Ruby seems to be passing over a breakpoint in a class initialize function. “Got grid” is the only break that occurs before the program hits a bug. What is Grid.new doing, and how come the “Grid initialized” breakpoi…

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

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