# Ruby

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

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

---

## [Umask vs umask](https://www.ruby-forum.com/t/umask-vs-umask/134653)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 10\
**Last updated:** [April 16, 2008, 5:55am UTC](https://www.ruby-forum.com/t/umask-vs-umask/134653 "2008-04-16T05:55:04Z")

</div>

Hi, Windows XP Home Ruby 1.8.6 p114 I think I need another set of eyes on this one, because it looks to me like Ruby isn’t picking up the changes I make with a custom umask, and vice versa. require ‘win32/api’ inc…

---

## [Preparing for 1.8.7-preview1](https://www.ruby-forum.com/t/preparing-for-1-8-7-preview1/134726)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 9\
**Last updated:** [April 16, 2008, 5:52am UTC](https://www.ruby-forum.com/t/preparing-for-1-8-7-preview1/134726 "2008-04-16T05:52:43Z")

</div>

ã€€å»¶ã³å»¶ã³ã«ãªã£ã¦ã—ã¾ã„ã¾ã—ãŸãŒã€ã‚ˆã†ã‚„ã enumerator é–¢é€£ã€ Enumerable, Array ã®ãƒãƒƒã‚¯ãƒãƒ¼ãƒˆãŒçµ‚ã‚ã‚Šã¾ã—ãŸã€‚ ã€€æ˜Žæ—¥ã®å¤•æ–¹ã« preview1 ã‚’å‡ºã—ã¾ã™ã€‚ At Fri, 11 Apr 200…

---

## [Write ruby code on a blog](https://www.ruby-forum.com/t/write-ruby-code-on-a-blog/134829)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 6\
**Last updated:** [April 16, 2008, 5:18am UTC](https://www.ruby-forum.com/t/write-ruby-code-on-a-blog/134829 "2008-04-16T05:18:13Z")

</div>

Hi, Anyone got any ideas on how to easily write and correctly display (with syntax highlighting) Ruby code on a blog? Regards, Aidy

---

## [Using ruby-pg and a patch for the rdoc](https://www.ruby-forum.com/t/using-ruby-pg-and-a-patch-for-the-rdoc/134913)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 0\
**Last updated:** [April 16, 2008, 4:22am UTC](https://www.ruby-forum.com/t/using-ruby-pg-and-a-patch-for-the-rdoc/134913 "2008-04-16T04:22:36Z")

</div>

So I’ve use SQL a fair bit in a C++ environment… Now I just learning ruby-pg. The doc/postgres.html mentions an Insert\_table method. It doesn’t seem to exist anymore. The main interface seems to be… call-seq: conn.…

---

## [Official rcov download site](https://www.ruby-forum.com/t/official-rcov-download-site/134906)

<div class="topic-metadata">

**Author:** [@ssmile](https://www.ruby-forum.com/u/ssmile)\
**Replies:** 1\
**Last updated:** [April 16, 2008, 2:27am UTC](https://www.ruby-forum.com/t/official-rcov-download-site/134906 "2008-04-16T02:27:25Z")

</div>

which is the official rcov download site? Thanks

---

## [Word Search Generator (#159, again)](https://www.ruby-forum.com/t/word-search-generator-159-again/134521)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 3\
**Last updated:** [April 16, 2008, 1:54am UTC](https://www.ruby-forum.com/t/word-search-generator-159-again/134521 "2008-04-16T01:54:05Z")

</div>

Okay, hopefully the third time with #159 is the charm. I decided to give myself a week before representing the Guardian of Middle-earth quiz, so instead we have something new. I’ve focused on the core problem and not …

---

## [MinGW with ruby c language interface](https://www.ruby-forum.com/t/mingw-with-ruby-c-language-interface/134900)

<div class="topic-metadata">

**Author:** [@Minseok\_C](https://www.ruby-forum.com/u/Minseok_C)\
**Replies:** 1\
**Last updated:** [April 16, 2008, 1:25am UTC](https://www.ruby-forum.com/t/mingw-with-ruby-c-language-interface/134900 "2008-04-16T01:25:26Z")

</div>

I installed ruby 1.8.6 one-click installer in my vista. Is there any easy way to make MinGW environments for ruby c-interface without recompiling ruby.

---

## [Exec with environment?](https://www.ruby-forum.com/t/exec-with-environment/134572)

<div class="topic-metadata">

**Author:** [@nevermoo](https://www.ruby-forum.com/u/nevermoo)\
**Replies:** 9\
**Last updated:** [April 16, 2008, 12:36am UTC](https://www.ruby-forum.com/t/exec-with-environment/134572 "2008-04-16T00:36:56Z")

</div>

I am running a Ruby script which needs to set some environment variables and then execute non-Ruby programs through Linux and pass the modified environment to the new processes. It doesn’t look as though I can do thi…

---

## [Onmouseover popup](https://www.ruby-forum.com/t/onmouseover-popup/134823)

<div class="topic-metadata">

**Author:** [@katsuo](https://www.ruby-forum.com/u/katsuo)\
**Replies:** 4\
**Last updated:** [April 16, 2008, 12:34am UTC](https://www.ruby-forum.com/t/onmouseover-popup/134823 "2008-04-16T00:34:20Z")

</div>

Hi, I would appreciate if anyone can tell me what script or method is used for links on subject list in this Ruby Forum. I am talking about the underlined link that shows the portion of a page which is linked to when …

---

## [Hash or bidimensional Array when key is case insensitive?](https://www.ruby-forum.com/t/hash-or-bidimensional-array-when-key-is-case-insensitive/134858)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 7\
**Last updated:** [April 15, 2008, 11:43pm UTC](https://www.ruby-forum.com/t/hash-or-bidimensional-array-when-key-is-case-insensitive/134858 "2008-04-15T23:43:35Z")

</div>

Hi, I’ve to take a decission about using an bidimensional Array or a Hash to store parameters. Of course I prefer Hash since the order doesn’t matter and I know the param name I’ll need. The problem is that the param …

---

## [Is there a way to obtain the computer name using ruby?](https://www.ruby-forum.com/t/is-there-a-way-to-obtain-the-computer-name-using-ruby/134880)

<div class="topic-metadata">

**Author:** [@cobra050](https://www.ruby-forum.com/u/cobra050)\
**Replies:** 7\
**Last updated:** [April 15, 2008, 11:40pm UTC](https://www.ruby-forum.com/t/is-there-a-way-to-obtain-the-computer-name-using-ruby/134880 "2008-04-15T23:40:39Z")

</div>

Hi, all I am using ruby with watir to make some small scripts. I want to obtain the name of the computer where my script is running from. Is there a way to obtain the computer name using ruby? Thanks

---

## [Which is the best GUI kit for cross-platform OpenGL software?](https://www.ruby-forum.com/t/which-is-the-best-gui-kit-for-cross-platform-opengl-software/134874)

<div class="topic-metadata">

**Author:** [@chutsu](https://www.ruby-forum.com/u/chutsu)\
**Replies:** 2\
**Last updated:** [April 15, 2008, 11:15pm UTC](https://www.ruby-forum.com/t/which-is-the-best-gui-kit-for-cross-platform-opengl-software/134874 "2008-04-15T23:15:59Z")

</div>

Hi Am kinda new in GUI programming but I was wondering whats the best GUI Kit to develop a cross-platform opengl program? Thanks Chris

---

## [RBX Question](https://www.ruby-forum.com/t/rbx-question/134875)

<div class="topic-metadata">

**Author:** [@ksunair](https://www.ruby-forum.com/u/ksunair)\
**Replies:** 1\
**Last updated:** [April 15, 2008, 11:08pm UTC](https://www.ruby-forum.com/t/rbx-question/134875 "2008-04-15T23:08:55Z")

</div>

I see only difference is the there is no local variable concept when run in interpreter mode. Is this correct? Thanks. Unni What is the difference in running ruby code in interpreter mode on rbxand running rbx with…

---

## [XMLRPC::Client doesn't handle cookie correctly](https://www.ruby-forum.com/t/xmlrpc-client-doesnt-handle-cookie-correctly/134830)

<div class="topic-metadata">

**Author:** [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Replies:** 2\
**Last updated:** [April 15, 2008, 9:50pm UTC](https://www.ruby-forum.com/t/xmlrpc-client-doesnt-handle-cookie-correctly/134830 "2008-04-15T21:50:38Z")

</div>

é ˆè—¤ã§ã™ã€‚ XMLRPC::ClientãŒSet-Cookieã‚’ãã¡ã‚“ã¨æ‰±ã£ã¦ã„ãªã„ã“ã¨ã‚’è¦‹ã¤ã‘ ã¦ã—ã¾ã„ã¾ã—ãŸã€‚trunkç”¨ã®ãƒ‘ãƒƒãƒã§ã™ãŒã€ruby\_1\_8ã«ã‚‚ã‚ãŸã‚Šã¾ã™ã€‚

---

## [defined?$B$N5sF0(B](https://www.ruby-forum.com/t/defined-b-n5sf0-b/134877)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 15, 2008, 9:34pm UTC](https://www.ruby-forum.com/t/defined-b-n5sf0-b/134877 "2008-04-15T21:34:10Z")

</div>

e$B$k$S$-$A$G$9!#e(B defined?e$B$N5sF0$K$D$$$F5$$K$J$j$^$9!#e(B class Object def p1 p self; self end alias p2 p1 end defined? 1.p1 # =\> “method” defined? 2.p1.p2 # =\> “method” d…

---

## [Rutema 0.6.5 Released](https://www.ruby-forum.com/t/rutema-0-6-5-released/134878)

<div class="topic-metadata">

**Author:** [@Vassilis\_R](https://www.ruby-forum.com/u/Vassilis_R)\
**Replies:** 0\
**Last updated:** [April 15, 2008, 9:25pm UTC](https://www.ruby-forum.com/t/rutema-0-6-5-released/134878 "2008-04-15T21:25:54Z")

</div>

rutema version 0.6.5 has been released! DESCRIPTION: rutema is a test execution tool with a twist. It allows you to combine test tools while it takes care of logging, reporting, archiving of results and formalizes ex…

---

## [Ruport 1.6 and Murdoch 1.0](https://www.ruby-forum.com/t/ruport-1-6-and-murdoch-1-0/197076)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 4\
**Last updated:** [April 15, 2008, 8:05pm UTC](https://www.ruby-forum.com/t/ruport-1-6-and-murdoch-1-0/197076 "2008-04-15T20:05:48Z")

</div>

Hi folks, After a silent release of Ruport 1.6.0, I’m happy to announce Ruport 1.6.1 and Murdoch 1.0. Although 1.6.1 is just a README update, this announcement will serve as the 1.6.0 release notes as well. Most of …

---

## [Problems with postscript from canvas in rubytk](https://www.ruby-forum.com/t/problems-with-postscript-from-canvas-in-rubytk/134841)

<div class="topic-metadata">

**Author:** [@tarazed](https://www.ruby-forum.com/u/tarazed)\
**Replies:** 3\
**Last updated:** [April 15, 2008, 7:19pm UTC](https://www.ruby-forum.com/t/problems-with-postscript-from-canvas-in-rubytk/134841 "2008-04-15T19:19:42Z")

</div>

Yet another post about paddb. Paddb is a homegrown application of mine which I have been using in various incarnations for 24 years, for at least 12 years as a Tcl/Tk program. One of its functions is to print a set …

---

## [How das Ruby work](https://www.ruby-forum.com/t/how-das-ruby-work/134788)

<div class="topic-metadata">

**Author:** [@paul-au](https://www.ruby-forum.com/u/paul-au)\
**Replies:** 9\
**Last updated:** [April 15, 2008, 6:29pm UTC](https://www.ruby-forum.com/t/how-das-ruby-work/134788 "2008-04-15T18:29:11Z")

</div>

Hi together, Today I was looking for some (almost) scientific sources (pdf, articles, …) that give an insight what really happens behind the scenes and that explains the technical details of Ruby; how does Ruby actual…

---

## [Can't start ruby with -S](https://www.ruby-forum.com/t/cant-start-ruby-with-s/134856)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 0\
**Last updated:** [April 15, 2008, 6:14pm UTC](https://www.ruby-forum.com/t/cant-start-ruby-with-s/134856 "2008-04-15T18:14:29Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B -S e$B%\*%W%7%g%s$,$&$^$/F0$$$F$$$J$$$h$&$G$9!#e(B $ cat /tmp/foo.rb p 1 $ PATH=/tmp ./ruby -vS foo.rb ruby 1.9.0 (2008-04-14 revision 16018) \[i686-linux\] /home/mame/work/ruby19/local/lib/ruby…

---

## [Match string from possible strings](https://www.ruby-forum.com/t/match-string-from-possible-strings/134495)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 8\
**Last updated:** [April 15, 2008, 5:25pm UTC](https://www.ruby-forum.com/t/match-string-from-possible-strings/134495 "2008-04-15T17:25:55Z")

</div>

Hi, Ive looked about and found some ways to do this but there must be a 1 line quick way in ruby using regular expressions or something. Basically i have a string “Test” and i want to see if it matches 3 constants th…

---

## [Ruby DBI MySQL: how to specify protocol=tcp](https://www.ruby-forum.com/t/ruby-dbi-mysql-how-to-specify-protocol-tcp/134776)

<div class="topic-metadata">

**Author:** [@kyle](https://www.ruby-forum.com/u/kyle)\
**Replies:** 3\
**Last updated:** [April 15, 2008, 5:07pm UTC](https://www.ruby-forum.com/t/ruby-dbi-mysql-how-to-specify-protocol-tcp/134776 "2008-04-15T17:07:28Z")

</div>

Hello! I’m using a ruby script to synchronize a remote (web) MySQL database with a local database. I had been remotely accessing the database through a non-standard port, but I would much rather use an SSH tunnel fo…

---

## [Help need in chat client/server](https://www.ruby-forum.com/t/help-need-in-chat-client-server/134749)

<div class="topic-metadata">

**Author:** [@HadsS](https://www.ruby-forum.com/u/HadsS)\
**Replies:** 7\
**Last updated:** [April 15, 2008, 3:56pm UTC](https://www.ruby-forum.com/t/help-need-in-chat-client-server/134749 "2008-04-15T15:56:23Z")

</div>

Hey… Im new to this network programmin and I need help with this code i copied and changed a little. this is a client/server chat… Server code: require “socket” PORT = 12321 server = TCPServer.new(PORT) flag=true …

---

## [Noob 'why doesn't this work' question](https://www.ruby-forum.com/t/noob-why-doesnt-this-work-question/134741)

<div class="topic-metadata">

**Author:** [@vinnie](https://www.ruby-forum.com/u/vinnie)\
**Replies:** 16\
**Last updated:** [April 15, 2008, 3:43pm UTC](https://www.ruby-forum.com/t/noob-why-doesnt-this-work-question/134741 "2008-04-15T15:43:48Z")

</div>

Hi and greetings to all group members! I’m a new Ruby user with a background in Applescript, Hypertalk (Supercard), and a little Unix. I was intrigued by Matt N.‘s article about Applescript and Ruby, and that’s what g…

---

## [Win32-changenotify and modifying a file](https://www.ruby-forum.com/t/win32-changenotify-and-modifying-a-file/134832)

<div class="topic-metadata">

**Author:** [@Tomek\_P](https://www.ruby-forum.com/u/Tomek_P)\
**Replies:** 2\
**Last updated:** [April 15, 2008, 3:42pm UTC](https://www.ruby-forum.com/t/win32-changenotify-and-modifying-a-file/134832 "2008-04-15T15:42:02Z")

</div>

Hey! I’m working with win32-changenofity library to listen for any changes in a directory. I’m interested in added, deleted and modified files. That’s my code: #------- filter = ChangeNotify::FILE\_NAME | ChangeNotif…

---

## [How to find hostname from a given IP address in LAN?](https://www.ruby-forum.com/t/how-to-find-hostname-from-a-given-ip-address-in-lan/134816)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 5\
**Last updated:** [April 15, 2008, 1:47pm UTC](https://www.ruby-forum.com/t/how-to-find-hostname-from-a-given-ip-address-in-lan/134816 "2008-04-15T13:47:03Z")

</div>

how to find hostname from a given IP address in LAN ?

---

## [How to duplicate a object changing the class without attributes memory copy](https://www.ruby-forum.com/t/how-to-duplicate-a-object-changing-the-class-without-attributes-memory-copy/134503)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 11\
**Last updated:** [April 15, 2008, 1:19pm UTC](https://www.ruby-forum.com/t/how-to-duplicate-a-object-changing-the-class-without-attributes-memory-copy/134503 "2008-04-15T13:19:52Z")

</div>

Hi, I’m doing a server and want to avoid memory innecesary operations. I have an array of headers: headers\_array Each header is an object of “Header” class: class Header attr\_accessor :name, :body def initialize(na…

---

## [Mysql module on powerpc mac](https://www.ruby-forum.com/t/mysql-module-on-powerpc-mac/134610)

<div class="topic-metadata">

**Author:** [@ben](https://www.ruby-forum.com/u/ben)\
**Replies:** 2\
**Last updated:** [April 15, 2008, 12:13pm UTC](https://www.ruby-forum.com/t/mysql-module-on-powerpc-mac/134610 "2008-04-15T12:13:41Z")

</div>

I get this: LoadError: Failed to load /usr/local/lib/ruby/site\_ruby/1.8/powerpc-darwin8.0/mysql.bundle when I run my ruby script. I’m working on a iBook G4 (PowerPC 10.4.11) with MySQL MySQL 5.0.51a and ruby 1.8.6 I…

---

## [Change usage of pp in Test::Unit assertions](https://www.ruby-forum.com/t/change-usage-of-pp-in-test-unit-assertions/134630)

<div class="topic-metadata">

**Author:** [@mman](https://www.ruby-forum.com/u/mman)\
**Replies:** 4\
**Last updated:** [April 15, 2008, 11:17am UTC](https://www.ruby-forum.com/t/change-usage-of-pp-in-test-unit-assertions/134630 "2008-04-15T11:17:10Z")

</div>

Hi all. I have some Test::Unit testcases that deal with Date and DateTime. If, for whatever reason, I have a failing assert\_equal on either Date or DateTime, the resulting message is quite difficult to read: the reaso…

---

## [Is faster handling hexadecimal values than handling chars?](https://www.ruby-forum.com/t/is-faster-handling-hexadecimal-values-than-handling-chars/134807)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 1\
**Last updated:** [April 15, 2008, 11:05am UTC](https://www.ruby-forum.com/t/is-faster-handling-hexadecimal-values-than-handling-chars/134807 "2008-04-15T11:05:23Z")

</div>

Hi, could I know if it’s faster using hexadecimal values instead of charsm in Ruby? I mean: a) char =~ /\[\\x61-\\x7A\]|\[\\x41-\\x5A\]/ b) char =~ /\[A-Z\]|\[a-z\]/ Both are the same, but maybe a) operation is faster than b) ? …

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

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