# Ruby

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

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

---

## [How to get a character from keyboard?](https://www.ruby-forum.com/t/how-to-get-a-character-from-keyboard/70589)

<div class="topic-metadata">

**Author:** [@Luo\_Yong](https://www.ruby-forum.com/u/Luo_Yong)\
**Replies:** 17\
**Last updated:** [October 2, 2006, 12:11am UTC](https://www.ruby-forum.com/t/how-to-get-a-character-from-keyboard/70589 "2006-10-02T00:11:44Z")

</div>

Hi all, I found that the STDIN.getc seem using a buffered input.It can’t return anything until you enter a “\\n”. Is there any way to get a character directly from keyboard? Thanks.

---

## [Can PHP be used in Ruby?](https://www.ruby-forum.com/t/can-php-be-used-in-ruby/70663)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [October 2, 2006, 12:07am UTC](https://www.ruby-forum.com/t/can-php-be-used-in-ruby/70663 "2006-10-02T00:07:43Z")

</div>

Can I run some PHP code in Ruby, and access the variables?

---

## [Getting first value of a mysql return](https://www.ruby-forum.com/t/getting-first-value-of-a-mysql-return/69759)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [October 2, 2006, 12:01am UTC](https://www.ruby-forum.com/t/getting-first-value-of-a-mysql-return/69759 "2006-10-02T00:01:43Z")

</div>

hi list - cant find any decent mysql/ruby usage examples, any suggestions? even the dave thomas book has very little… i have a sql statement which sometimes returns a single value, and sometimes it cant find a matchi…

---

## [Caveats with #method\_missing](https://www.ruby-forum.com/t/caveats-with-method-missing/70660)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 5\
**Last updated:** [October 1, 2006, 10:25pm UTC](https://www.ruby-forum.com/t/caveats-with-method-missing/70660 "2006-10-01T22:25:35Z")

</div>

Even after the public/private send issue is resolved with #funcall, #send!, #instance\_send or what ever is method decided upon, how will we be ablesto distinguish between a private and a public method call in method\_m…

---

## [Fwd: #96 Story Generator](https://www.ruby-forum.com/t/fwd-96-story-generator/197329)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [October 1, 2006, 10:15pm UTC](https://www.ruby-forum.com/t/fwd-96-story-generator/197329 "2006-10-01T22:15:35Z")

</div>

Begin forwarded message:

---

## [Dynamic include](https://www.ruby-forum.com/t/dynamic-include/70671)

<div class="topic-metadata">

**Author:** [@Florian\_ASSSmann](https://www.ruby-forum.com/u/Florian_ASSSmann)\
**Replies:** 5\
**Last updated:** [October 1, 2006, 9:05pm UTC](https://www.ruby-forum.com/t/dynamic-include/70671 "2006-10-01T21:05:30Z")

</div>

Hello, I try to include some modules to a class instance, but I have problems with the scope, here’s what I did: person.roles.each do |role| class \<\< person include role.class.const\_get(‘Functions’) end if role.cla…

---

## [Instant Rails 1.4 preview1 released (with RadRails support!)](https://www.ruby-forum.com/t/instant-rails-1-4-preview1-released-with-radrails-support/70673)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 1\
**Last updated:** [October 1, 2006, 8:49pm UTC](https://www.ruby-forum.com/t/instant-rails-1-4-preview1-released-with-radrails-support/70673 "2006-10-01T20:49:29Z")

</div>

This release of Instant Rails contains the following major changes: \* Upgrades Rails to version 1.1.6 (other components upgraded to current release, also) \* SCGI has been replaced by Mongrel (using Apache's mod\_pr…

---

## [I'm trying to integrate my C++ program with Ruby using SWIG](https://www.ruby-forum.com/t/im-trying-to-integrate-my-c-program-with-ruby-using-swig/70657)

<div class="topic-metadata">

**Author:** [@bryanedds](https://www.ruby-forum.com/u/bryanedds)\
**Replies:** 2\
**Last updated:** [October 1, 2006, 7:27pm UTC](https://www.ruby-forum.com/t/im-trying-to-integrate-my-c-program-with-ruby-using-swig/70657 "2006-10-01T19:27:19Z")

</div>

All I can find is some outdated docs with command line instructions that don’t work. Can someone please point in differenct direction? Thanks.

---

## [Can PHP be used in Ruby?](https://www.ruby-forum.com/t/can-php-be-used-in-ruby/70662)

<div class="topic-metadata">

**Author:** [@jotto](https://www.ruby-forum.com/u/jotto)\
**Replies:** 0\
**Last updated:** [October 1, 2006, 6:41pm UTC](https://www.ruby-forum.com/t/can-php-be-used-in-ruby/70662 "2006-10-01T18:41:15Z")

</div>

Can I access PHP variables within Ruby code? Is there any package that supports this?

---

## [Calling an existing method with RubyInline - how?](https://www.ruby-forum.com/t/calling-an-existing-method-with-rubyinline-how/70569)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 4\
**Last updated:** [October 1, 2006, 3:00pm UTC](https://www.ruby-forum.com/t/calling-an-existing-method-with-rubyinline-how/70569 "2006-10-01T15:00:44Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, RubyInline 3.6.0 Ruby 1.8.5 Suse Linux 10.1 How do you call an existing function from an included header file using RubyInline? Do I have to wrap it in a ‘bui…

---

## [RubyConf Ticket for Sale](https://www.ruby-forum.com/t/rubyconf-ticket-for-sale/70633)

<div class="topic-metadata">

**Author:** [@zdennis](https://www.ruby-forum.com/u/zdennis)\
**Replies:** 1\
**Last updated:** [October 1, 2006, 2:58pm UTC](https://www.ruby-forum.com/t/rubyconf-ticket-for-sale/70633 "2006-10-01T14:58:44Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello everyone, I bought a RubyConf ticket, but unfortunately I will not be able to attend. If anyone is interested in buying my ticket I will sell it for what I paid, $…

---

## [Rb\_yield & rb\_hash\_each](https://www.ruby-forum.com/t/rb-yield-rb-hash-each/70635)

<div class="topic-metadata">

**Author:** [@bct](https://www.ruby-forum.com/u/bct)\
**Replies:** 1\
**Last updated:** [October 1, 2006, 2:06pm UTC](https://www.ruby-forum.com/t/rb-yield-rb-hash-each/70635 "2006-10-01T14:06:40Z")

</div>

Hello, How do you use rb\_hash\_each? How do you pass blocks to methods using C in general? Thank you, Brian T.

---

## [Wiki on Rails](https://www.ruby-forum.com/t/wiki-on-rails/70621)

<div class="topic-metadata">

**Author:** [@baalbek](https://www.ruby-forum.com/u/baalbek)\
**Replies:** 7\
**Last updated:** [October 1, 2006, 2:02pm UTC](https://www.ruby-forum.com/t/wiki-on-rails/70621 "2006-10-01T14:02:39Z")

</div>

Hi, just recently installed RoR, and would like to create a Wiki running on my Rails installation. Are there any ready-to-go Wikis (ala PhP) for RoR? Baalbek

---

## [Hash characters on a Macbook](https://www.ruby-forum.com/t/hash-characters-on-a-macbook/70640)

<div class="topic-metadata">

**Author:** [@leslieviljoen](https://www.ruby-forum.com/u/leslieviljoen)\
**Replies:** 1\
**Last updated:** [October 1, 2006, 12:28pm UTC](https://www.ruby-forum.com/t/hash-characters-on-a-macbook/70640 "2006-10-01T12:28:35Z")

</div>

Hey all I am using my Mom’s Macbook for the weekend and can’t find an easy way to type hash characters. I end up going to “Special Characters” in Textmate and inserting them from there. So is there an easier way? Le…

---

## [A nicer-looking ri](https://www.ruby-forum.com/t/a-nicer-looking-ri/70450)

<div class="topic-metadata">

**Author:** [@gnuvince](https://www.ruby-forum.com/u/gnuvince)\
**Replies:** 5\
**Last updated:** [October 1, 2006, 10:02am UTC](https://www.ruby-forum.com/t/a-nicer-looking-ri/70450 "2006-10-01T10:02:28Z")

</div>

Hello ! I’m recently in a shell scripting mood, and I came up with some small code that makes ri output look a fair deal nicer (at least on my box). If you put the following function definition in your shell’s init sc…

---

## [What is the fastest way to iterate over a hash in C?](https://www.ruby-forum.com/t/what-is-the-fastest-way-to-iterate-over-a-hash-in-c/70636)

<div class="topic-metadata">

**Author:** [@bct](https://www.ruby-forum.com/u/bct)\
**Replies:** 1\
**Last updated:** [October 1, 2006, 7:22am UTC](https://www.ruby-forum.com/t/what-is-the-fastest-way-to-iterate-over-a-hash-in-c/70636 "2006-10-01T07:22:21Z")

</div>

Hello, I’m working on the Fast JSON project, and have come against some puzzling performance quirk. Most of the Hash#to\_json functionality is implemented in C and performs much better. However there is one section …

---

## [Enumerable and WIN32OLE](https://www.ruby-forum.com/t/enumerable-and-win32ole/70127)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 8\
**Last updated:** [October 1, 2006, 6:36am UTC](https://www.ruby-forum.com/t/enumerable-and-win32ole/70127 "2006-10-01T06:36:18Z")

</div>

I make a lot of use of the WIN32OLE library, with many thanks to Nobu Nakada. One of my common idioms is to take a WIN32OLE object that implements the IEnumerable interface and extend it with the Ruby Enumerable Mix …

---

## [How to escape spaces](https://www.ruby-forum.com/t/how-to-escape-spaces/70628)

<div class="topic-metadata">

**Author:** [@waddilove](https://www.ruby-forum.com/u/waddilove)\
**Replies:** 3\
**Last updated:** [October 1, 2006, 6:22am UTC](https://www.ruby-forum.com/t/how-to-escape-spaces/70628 "2006-10-01T06:22:17Z")

</div>

I’m using ruby 1.8.4. I’m trying to use the gsub function to escape spaces in a linux path that is stored in a variable. When I attempt the following, t = “a B”; t.gsub(/ /, "\\ "), I receive the following output: ir…

---

## [Help: digest/sha2.so: no such file to load -- digest.so](https://www.ruby-forum.com/t/help-digest-sha2-so-no-such-file-to-load-digest-so/70447)

<div class="topic-metadata">

**Author:** [@tammy](https://www.ruby-forum.com/u/tammy)\
**Replies:** 3\
**Last updated:** [October 1, 2006, 3:36am UTC](https://www.ruby-forum.com/t/help-digest-sha2-so-no-such-file-to-load-digest-so/70447 "2006-10-01T03:36:53Z")

</div>

Hi Can someone please help me out with this install error? Well actually I can install ruby 1.8.5 on OS X 10.4 but I cannot do a successful “make test” or use ruby to run gem setup. I get this error: \[/src/ruby-1.8.…

---

## [Hot new programming languages - according to the TIOBE index](https://www.ruby-forum.com/t/hot-new-programming-languages-according-to-the-tiobe-index/70487)

<div class="topic-metadata">

**Author:** [@vasudevram](https://www.ruby-forum.com/u/vasudevram)\
**Replies:** 12\
**Last updated:** [October 1, 2006, 3:25am UTC](https://www.ruby-forum.com/t/hot-new-programming-languages-according-to-the-tiobe-index/70487 "2006-10-01T03:25:43Z")

</div>

Interesting post by voidspace. Ruby and Python are doing well, according to the latest TIOBE index. Java, C and C++ and 1, 2 and 3 on the list Vasudev Ram P.S. Dunno why “hot new” though - not too many of them are…

---

## [I need something like ipython](https://www.ruby-forum.com/t/i-need-something-like-ipython/70627)

<div class="topic-metadata">

**Author:** [@Matthew\_Wilson](https://www.ruby-forum.com/u/Matthew_Wilson)\
**Replies:** 3\
**Last updated:** [October 1, 2006, 3:25am UTC](https://www.ruby-forum.com/t/i-need-something-like-ipython/70627 "2006-10-01T03:25:24Z")

</div>

I’m learning ruby to work on a RoR project. For the last six months, I’ve been doing python programming and really loving the ipython interpreter. I really don’t want to argue about python vs. ruby. I just want to k…

---

## [DRb with http\_proxy](https://www.ruby-forum.com/t/drb-with-http-proxy/70570)

<div class="topic-metadata">

**Author:** [@Haofei](https://www.ruby-forum.com/u/Haofei)\
**Replies:** 2\
**Last updated:** [October 1, 2006, 1:15am UTC](https://www.ruby-forum.com/t/drb-with-http-proxy/70570 "2006-10-01T01:15:18Z")

</div>

hi all i want to get a remote drb service .it can’t be accessed directly so i have to use a http proxy. the question is how i can use proxy with drb. is there any resource about it? thanks :slight\_smile:

---

## [Integer division with / - request explanation of behavior](https://www.ruby-forum.com/t/integer-division-with-request-explanation-of-behavior/70572)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 22\
**Last updated:** [October 1, 2006, 12:03am UTC](https://www.ruby-forum.com/t/integer-division-with-request-explanation-of-behavior/70572 "2006-10-01T00:03:15Z")

</div>

Today I discovered the difference in the meaning of the / (arithmetic divide) method depending on whether it’s caller is an integer or a float. I discovered that I had to cast the calling number explicitly to a float …

---

## [Re: Wiki on Rails](https://www.ruby-forum.com/t/re-wiki-on-rails/70622)

<div class="topic-metadata">

**Author:** [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Replies:** 0\
**Last updated:** [September 30, 2006, 11:57pm UTC](https://www.ruby-forum.com/t/re-wiki-on-rails/70622 "2006-09-30T23:57:14Z")

</div>

baalbek wrote: Hi, just recently installed RoR, and would like to create a Wiki running on my Rails installation. Are there any ready-to-go Wikis (ala PhP) for RoR? Baalbek Try Instiki, works great for me - http:/…

---

## [Help with ncurses](https://www.ruby-forum.com/t/help-with-ncurses/70616)

<div class="topic-metadata">

**Author:** [@fxn](https://www.ruby-forum.com/u/fxn)\
**Replies:** 2\
**Last updated:** [September 30, 2006, 11:57pm UTC](https://www.ruby-forum.com/t/help-with-ncurses/70616 "2006-09-30T23:57:14Z")

</div>

I want to ask ncurses for the terminal size, or to clear the screen, nothing more fancy than that. I have been playing around a bit without luck, a bit blindly due to the lack of library docs. Can anyone help? – fxn

---

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

<div class="topic-metadata">

**Author:** [@Suraj\_NSKurapati](https://www.ruby-forum.com/u/Suraj_NSKurapati)\
**Replies:** 0\
**Last updated:** [September 30, 2006, 9:51pm UTC](https://www.ruby-forum.com/t/ruby-ixp-1-1-0/70614 "2006-09-30T21:51:06Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 = Version 1.1.0 (2006-09-30) 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…

---

## ["1".to\_i \*2 == 1 && "1".to\_i\*2 == 2?](https://www.ruby-forum.com/t/1-to-i-2-1-1-to-i-2-2/70552)

<div class="topic-metadata">

**Author:** [@Giovanni\_I](https://www.ruby-forum.com/u/Giovanni_I)\
**Replies:** 6\
**Last updated:** [September 30, 2006, 9:39pm UTC](https://www.ruby-forum.com/t/1-to-i-2-1-1-to-i-2-2/70552 "2006-09-30T21:39:03Z")

</div>

Can anyone explain to me why “1”.to\_i\*2 is equal to 2 and “1”.to\_i \*2 is equale to 1? Thanks Giovanni

---

## [Ruby-VPI 7.3.0](https://www.ruby-forum.com/t/ruby-vpi-7-3-0/70608)

<div class="topic-metadata">

**Author:** [@Suraj\_NSKurapati](https://www.ruby-forum.com/u/Suraj_NSKurapati)\
**Replies:** 0\
**Last updated:** [September 30, 2006, 9:25pm UTC](https://www.ruby-forum.com/t/ruby-vpi-7-3-0/70608 "2006-09-30T21:25:02Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Version 7.3.0 (2006-09-30) Ruby-VPI is a Ruby interface to Verilog VPI. It lets you create complex Verilog test benches easily and wholly in Ruby. Web site: http://ruby…

---

## [Ruby In Steel 0.76](https://www.ruby-forum.com/t/ruby-in-steel-0-76/70607)

<div class="topic-metadata">

**Author:** [@huw](https://www.ruby-forum.com/u/huw)\
**Replies:** 0\
**Last updated:** [September 30, 2006, 8:26pm UTC](https://www.ruby-forum.com/t/ruby-in-steel-0-76/70607 "2006-09-30T20:26:55Z")

</div>

The latest version of the free Personal Edition of Ruby In Steel is now available for download: http://www.sapphiresteel.com/Steel-Download-and-Change-Log Ruby In Steel beta 0.76 incorporates a number of additional fe…

---

## [Computer Language Popularity Trend](https://www.ruby-forum.com/t/computer-language-popularity-trend/70155)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 27\
**Last updated:** [September 30, 2006, 6:54pm UTC](https://www.ruby-forum.com/t/computer-language-popularity-trend/70155 "2006-09-30T18:54:42Z")

</div>

This page gives a visual report of computer languages’s popularity, as indicated by their traffic level in newsgroups. This is not a comprehensive or fair survey, but does give some indications of popularity trends. h…

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

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