# Ruby

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

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

---

## [Chattr Gem released (new, 0.9.0)](https://www.ruby-forum.com/t/chattr-gem-released-new-0-9-0/87497)

<div class="topic-metadata">

**Author:** [@Clifford\_H](https://www.ruby-forum.com/u/Clifford_H)\
**Replies:** 0\
**Last updated:** [March 3, 2007, 12:50am UTC](https://www.ruby-forum.com/t/chattr-gem-released-new-0-9-0/87497 "2007-03-03T00:50:53Z")

</div>

Folk, My new baby gem, Chattr has just been released to Rubyforge, and should be available in the gem repository shortly. The release notes follow. Thanks go to Why, for discovering the “method as superclass” techniq…

---

## [Passing a block into a class\_eval](https://www.ruby-forum.com/t/passing-a-block-into-a-class-eval/85878)

<div class="topic-metadata">

**Author:** [@Clifford\_H](https://www.ruby-forum.com/u/Clifford_H)\
**Replies:** 14\
**Last updated:** [March 3, 2007, 12:14am UTC](https://www.ruby-forum.com/t/passing-a-block-into-a-class-eval/85878 "2007-03-03T00:14:50Z")

</div>

Here’s a function similar to attr\_accessor, except it takes a block, which is used to validate assignments to the attribute, and substitute in a string value to be used as a key to the hash inside class\_eval. It’s jus…

---

## [Ruby Noob: Using stderr, stdout, etc](https://www.ruby-forum.com/t/ruby-noob-using-stderr-stdout-etc/87344)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [March 2, 2007, 11:29pm UTC](https://www.ruby-forum.com/t/ruby-noob-using-stderr-stdout-etc/87344 "2007-03-02T23:29:44Z")

</div>

I’m a QA tester currently using ruby/watir for testing web sites/ applications. I’ve done fairly well so far for our small needs - automating IE browsing/tasks, assertion results logging (custom logger), and e-mail n…

---

## [Fxri](https://www.ruby-forum.com/t/fxri/87481)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [March 2, 2007, 11:06pm UTC](https://www.ruby-forum.com/t/fxri/87481 "2007-03-02T23:06:41Z")

</div>

Hi, I’m using fxri and I have required a ruby file as follows: require “c:\\myWork\\motor.rb” My question is, how do I reload this file when I make changes? Thanks.

---

## [Using openssl](https://www.ruby-forum.com/t/using-openssl/87482)

<div class="topic-metadata">

**Author:** [@technodolt](https://www.ruby-forum.com/u/technodolt)\
**Replies:** 1\
**Last updated:** [March 2, 2007, 10:42pm UTC](https://www.ruby-forum.com/t/using-openssl/87482 "2007-03-02T22:42:17Z")

</div>

I’m trying to run ruby extconf.rb in ext/openssl, and I get the following: === OpenSSL for Ruby configurator === === Checking for system dependent stuff… === checking for t\_open() in -lnsl… no checking for socket() …

---

## [Rb-appscript developments (Ruby-AppleScript)](https://www.ruby-forum.com/t/rb-appscript-developments-ruby-applescript/87479)

<div class="topic-metadata">

**Author:** [@has](https://www.ruby-forum.com/u/has)\
**Replies:** 0\
**Last updated:** [March 2, 2007, 9:40pm UTC](https://www.ruby-forum.com/t/rb-appscript-developments-ruby-applescript/87479 "2007-03-02T21:40:27Z")

</div>

Hi all, Just thought I’d mention a couple new items of interest to Mac OS X- based Rubyists: Firstly, Matt N., author of “AppleScript: The Definitive Guide”, has just published a great introduction to rb-appscript at…

---

## [Guid](https://www.ruby-forum.com/t/guid/86915)

<div class="topic-metadata">

**Author:** [@j-merrill](https://www.ruby-forum.com/u/j-merrill)\
**Replies:** 5\
**Last updated:** [March 2, 2007, 9:25pm UTC](https://www.ruby-forum.com/t/guid/86915 "2007-03-02T21:25:25Z")

</div>

Hi folks, This is an easy one, but I can’t find a way to do it. It’s there, in ruby, any easy means to generate an GUID (Global Unique Identifier)? Thank,

---

## [\_\_PATH\_\_ like \_\_FILE\_\_?](https://www.ruby-forum.com/t/path-like-file/87422)

<div class="topic-metadata">

**Author:** [@Deniz\_D](https://www.ruby-forum.com/u/Deniz_D)\
**Replies:** 8\
**Last updated:** [March 2, 2007, 8:29pm UTC](https://www.ruby-forum.com/t/path-like-file/87422 "2007-03-02T20:29:17Z")

</div>

Hello. I’m rather new to Ruby, so please bare with me. I just want to know if there is anything similar to FILE but which represents either the path to the directory which FILE lies in, or the FILE including the full…

---

## [RubyOSA 0.3.0](https://www.ruby-forum.com/t/rubyosa-0-3-0/87468)

<div class="topic-metadata">

**Author:** [@Laurent\_S](https://www.ruby-forum.com/u/Laurent_S)\
**Replies:** 0\
**Last updated:** [March 2, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/rubyosa-0-3-0/87468 "2007-03-02T19:31:03Z")

</div>

Hi rubyists, I am honored to announce the immediate release of RubyOSA 0.3.0. RubyOSA is a bridge that connects Ruby to the Apple Event Manager infrastructure. In big words, it allows you to do in Ruby what you could…

---

## [Firewatir and textarea](https://www.ruby-forum.com/t/firewatir-and-textarea/87461)

<div class="topic-metadata">

**Author:** [@Daly](https://www.ruby-forum.com/u/Daly)\
**Replies:** 0\
**Last updated:** [March 2, 2007, 6:52pm UTC](https://www.ruby-forum.com/t/firewatir-and-textarea/87461 "2007-03-02T18:52:57Z")

</div>

Hello group, Anyone experiencing problems using firewatir and trying to fill a textarea? I have no problems doing it with watir. What I do is set the textarea with text such as “Hello,\\r\\nThank you for blablabla\\r \\n…

---

## [A little help with importing c library](https://www.ruby-forum.com/t/a-little-help-with-importing-c-library/87077)

<div class="topic-metadata">

**Author:** [@tea](https://www.ruby-forum.com/u/tea)\
**Replies:** 3\
**Last updated:** [March 2, 2007, 6:40pm UTC](https://www.ruby-forum.com/t/a-little-help-with-importing-c-library/87077 "2007-03-02T18:40:29Z")

</div>

Hello, I am very new to Ruby, but I am giving it a try. If I am able to load the dll and call its functions, I will go into more detail. The .dll is created in VS2005 on XP os First of all, I used the search function…

---

## [MRplot](https://www.ruby-forum.com/t/mrplot/87435)

<div class="topic-metadata">

**Author:** [@chrisfinne](https://www.ruby-forum.com/u/chrisfinne)\
**Replies:** 0\
**Last updated:** [March 2, 2007, 4:41pm UTC](https://www.ruby-forum.com/t/mrplot/87435 "2007-03-02T16:41:51Z")

</div>

Has anyone got experience with it? I can’t get it to work - get the following error when running any of the examples: C:\\mrplot-0.0.1\\mrplot-0.0.1\\examples\>ruby data\_plot.rb C:/InstantRails/ruby/lib/ruby/site\_ruby/1.…

---

## [Re: Can't login to Rubyforge, just says "cookies must be ena](https://www.ruby-forum.com/t/re-cant-login-to-rubyforge-just-says-cookies-must-be-ena/87433)

<div class="topic-metadata">

**Author:** [@Samantha](https://www.ruby-forum.com/u/Samantha)\
**Replies:** 0\
**Last updated:** [March 2, 2007, 4:39pm UTC](https://www.ruby-forum.com/t/re-cant-login-to-rubyforge-just-says-cookies-must-be-ena/87433 "2007-03-02T16:39:37Z")

</div>

On Friday 02 March 2007 10:05:06 am Deniz D. wrote: Samantha wrote: :slight\_smile: I thought he said he had even tried using links. Â (as in a href= Hyperlinks, as the Lynx browswer isn’t spelled links.) …

---

## [C-ish bitwise prime sieve in Ruby?](https://www.ruby-forum.com/t/c-ish-bitwise-prime-sieve-in-ruby/87426)

<div class="topic-metadata">

**Author:** [@jkit](https://www.ruby-forum.com/u/jkit)\
**Replies:** 2\
**Last updated:** [March 2, 2007, 4:15pm UTC](https://www.ruby-forum.com/t/c-ish-bitwise-prime-sieve-in-ruby/87426 "2007-03-02T16:15:34Z")

</div>

Can we translate the following C-coded prime sieve by Frank Pilhofer into a Ruby version that also uses bitwise operations? Thanks for any suggestions! #include \<stdio.h\> #include \<stdlib.h\> #include \<time.h\> #incl…

---

## [A\[\] += 1 $B$G(B SEGV](https://www.ruby-forum.com/t/a-1-b-g-b-segv/87239)

<div class="topic-metadata">

**Author:** [@Hiroki\_Motoyoshi](https://www.ruby-forum.com/u/Hiroki_Motoyoshi)\
**Replies:** 5\
**Last updated:** [March 2, 2007, 2:08pm UTC](https://www.ruby-forum.com/t/a-1-b-g-b-segv/87239 "2007-03-02T14:08:21Z")

</div>

e$BK\\5H$H?=$7$^$9!#e(B e$B0J2\<$N%9%/%j%W%H$,!"e(B ruby-1.8.4e$B$G$O@5\>o$KF0$/$N$G$9$,!"e(B ruby-1.8.5e$B$G$Oe(BSEGVe$B$7$^$9!#e(B class A def initialize (v) @value = v end def \[\] return @value end def \[\]= (v) …

---

## [Ruby 1.8.6 delayed for seven days](https://www.ruby-forum.com/t/ruby-1-8-6-delayed-for-seven-days/87404)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 0\
**Last updated:** [March 2, 2007, 11:35am UTC](https://www.ruby-forum.com/t/ruby-1-8-6-delayed-for-seven-days/87404 "2007-03-02T11:35:06Z")

</div>

ã€€æ®‹å¿µãªãŠçŸ¥ã‚‰ã›ã§ã™ãŒã€ Ruby 1.8.6 ãƒªãƒªãƒ¼ã‚¹ã‚’ä¸ƒæ—¥é–“å»¶æœŸã—ã¾ã™ã€‚ 1.8.6-preview2 ä»¥é™ã«å…¥ã£ãŸãƒã‚°ä¿®æ­£ã®ãƒ†ã‚¹ãƒˆãŒä¸ååˆ†ãªã“ã¨ã¨ã€ ä¾ç„¶ãƒ¬ãƒ“ãƒ¥ãƒ¼ä¸­ã®ãƒã‚°ä¿®æ­£ãƒ‘ãƒƒ…

---

## [Ruby-1.8 $B$G(B SEGV](https://www.ruby-forum.com/t/ruby-1-8-b-g-b-segv/86648)

<div class="topic-metadata">

**Author:** [@Tomoyuki\_C](https://www.ruby-forum.com/u/Tomoyuki_C)\
**Replies:** 5\
**Last updated:** [March 2, 2007, 11:09am UTC](https://www.ruby-forum.com/t/ruby-1-8-b-g-b-segv/86648 "2007-03-02T11:09:03Z")

</div>

æ—¥æœ¬ã‚³ãƒ³ãƒˆãƒ­ãƒ¼ãƒ«ã‚·ã‚¹ãƒ†ãƒ (æ ª)ã®è¿‘æ°¸ã¨ç”³ã—ã¾ã™ã€‚ ã‚ˆã‚ã—ããŠã­ãŒã„ã—ã¾ã™ã€‚ Ruby ã§ç¤¾å†…ã‚µãƒ¼ãƒã‚¢ãƒ—ãƒªã‚±ãƒ¼ã‚·ãƒ§ãƒ³ã‚’ä½œæˆã—é‹ç”¨ã—ã¦ã„ãŸã®ã§ã™ãŒã€ å…ˆæ—¥ glibc ãŒ é…

---

## [Ruby Reports IRC Roundtable II, 2007.03.06](https://www.ruby-forum.com/t/ruby-reports-irc-roundtable-ii-2007-03-06/87387)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [March 2, 2007, 5:06am UTC](https://www.ruby-forum.com/t/ruby-reports-irc-roundtable-ii-2007-03-06/87387 "2007-03-02T05:06:30Z")

</div>

== Second Ruport IRC Roundtable == On Tuesday starting at 9pm EST (UTC -5), we invite anyone interested in Ruby Reports to join us in #ruport on Freenode. As development has been moving rather quickly and we’re getti…

---

## [Detail plain text only](https://www.ruby-forum.com/t/detail-plain-text-only/87379)

<div class="topic-metadata">

**Author:** [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Replies:** 0\
**Last updated:** [March 2, 2007, 4:08am UTC](https://www.ruby-forum.com/t/detail-plain-text-only/87379 "2007-03-02T04:08:26Z")

</div>

Hi to rcov users, i have a sample output of rcov -T \*.rb like so, botp@pc4all:~$ rcov -T \*.rb test2 0 1 2 3 4 test hello hello hello hello hello ±---------------------------------------------------±------±…

---

## [Bug? installing gems](https://www.ruby-forum.com/t/bug-installing-gems/87085)

<div class="topic-metadata">

**Author:** [@magpie](https://www.ruby-forum.com/u/magpie)\
**Replies:** 3\
**Last updated:** [March 2, 2007, 3:13am UTC](https://www.ruby-forum.com/t/bug-installing-gems/87085 "2007-03-02T03:13:23Z")

</div>

On Windows, I downloaded ruby-1.8.5-p12-i386-mswin32.zip and unpacked it to C:\\ruby. Then I downloaded rubygems-0.9.2, cd’ed into it and typed “ruby setup.rb”. I got : C:\\rubygems-0.9.2\>ruby setup.rb ruby: no such f…

---

## [Nmap-0.1.0 (narray + mmap = persistant grids)](https://www.ruby-forum.com/t/nmap-0-1-0-narray-mmap-persistant-grids/87211)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 20\
**Last updated:** [March 2, 2007, 2:17am UTC](https://www.ruby-forum.com/t/nmap-0-1-0-narray-mmap-persistant-grids/87211 "2007-03-02T02:17:16Z")

</div>

NAME nmap (reference ruby class which combines narray and mmap) na\_str (c extension) REQUIREMENTS mmap : http://moulon.inra.fr/ruby/mmap.html narray : http://narray.rubyforge.org/ URIS http://codeforpeople.com/lib…

---

## [Win32-guitest for ruby](https://www.ruby-forum.com/t/win32-guitest-for-ruby/87349)

<div class="topic-metadata">

**Author:** [@kyle\_s](https://www.ruby-forum.com/u/kyle_s)\
**Replies:** 3\
**Last updated:** [March 2, 2007, 12:16am UTC](https://www.ruby-forum.com/t/win32-guitest-for-ruby/87349 "2007-03-02T00:16:05Z")

</div>

So I came across this lib for gui testing using ruby. http://raa.ruby-lang.org/list.rhtml?name=win32-guitest Considering that I’m using vb script in Automated QA’s TestComplete right now, this looked like heaven on ea…

---

## [Dup and clone](https://www.ruby-forum.com/t/dup-and-clone/87346)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 4\
**Last updated:** [March 1, 2007, 11:30pm UTC](https://www.ruby-forum.com/t/dup-and-clone/87346 "2007-03-01T23:30:59Z")

</div>

Why? irb(main):012:0\> a = 5 =\> 5 irb(main):013:0\> a.class =\> Fixnum irb(main):014:0\> a.methods.include?(“dup”) =\> true irb(main):015:0\> a.methods.include?(“clone”) =\> true irb(main):016:0\> a.dup TypeError: can’…

---

## [Bioruby on cygwin](https://www.ruby-forum.com/t/bioruby-on-cygwin/87348)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 1, 2007, 11:00pm UTC](https://www.ruby-forum.com/t/bioruby-on-cygwin/87348 "2007-03-01T23:00:49Z")

</div>

Hello, I want to do local BLAST on cygwin with BioRuby. When I do this, does BLAST have to be installed through cygwin rather than windows? I know this is not the right group to ask, but I am also having problem inst…

---

## [Why does String have to\_str and Integer have to\_int?](https://www.ruby-forum.com/t/why-does-string-have-to-str-and-integer-have-to-int/87260)

<div class="topic-metadata">

**Author:** [@nanostuff](https://www.ruby-forum.com/u/nanostuff)\
**Replies:** 9\
**Last updated:** [March 1, 2007, 10:45pm UTC](https://www.ruby-forum.com/t/why-does-string-have-to-str-and-integer-have-to-int/87260 "2007-03-01T22:45:47Z")

</div>

That’s pretty much my question :slight\_smile: Thanks.

---

## [Cannot install ruby gem 'libxml-ruby'](https://www.ruby-forum.com/t/cannot-install-ruby-gem-libxml-ruby/87345)

<div class="topic-metadata">

**Author:** [@Dan\_Stevens\_SIAmAI](https://www.ruby-forum.com/u/Dan_Stevens_SIAmAI)\
**Replies:** 0\
**Last updated:** [March 1, 2007, 10:18pm UTC](https://www.ruby-forum.com/t/cannot-install-ruby-gem-libxml-ruby/87345 "2007-03-01T22:18:45Z")

</div>

I am having trouble installing the ruby gem ‘libxml-ruby’. The output, which I am struggling to understand, is below. It appears that I require some ‘dependencies’, which is confusing because I thought RubyGems was su…

---

## [ANN: sapnwrfc next Generation RFC Connector for SAP NetWeave](https://www.ruby-forum.com/t/ann-sapnwrfc-next-generation-rfc-connector-for-sap-netweave/87336)

<div class="topic-metadata">

**Author:** [@Piers\_H](https://www.ruby-forum.com/u/Piers_H)\
**Replies:** 0\
**Last updated:** [March 1, 2007, 8:55pm UTC](https://www.ruby-forum.com/t/ann-sapnwrfc-next-generation-rfc-connector-for-sap-netweave/87336 "2007-03-01T20:55:33Z")

</div>

Hi - Just a quick announcment of the first releae of the new Ruby RFC Connector for SAP NetWeaver - sapnwrfc. SAP have undertaken a redevelopment of the RFC connection libraries, and as a result the new Ruby Connect…

---

## [Functional programming in Ruby](https://www.ruby-forum.com/t/functional-programming-in-ruby/87218)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 9\
**Last updated:** [March 1, 2007, 8:47pm UTC](https://www.ruby-forum.com/t/functional-programming-in-ruby/87218 "2007-03-01T20:47:32Z")

</div>

Not a question or anything… I just wanted to share this snippet with any non-computer-scientist who thinks this is cool :slight\_smile: I come from very much an imperative programming background - originally machine co…

---

## [Ruby 1.9 - Change of included modules behaviour?](https://www.ruby-forum.com/t/ruby-1-9-change-of-included-modules-behaviour/87294)

<div class="topic-metadata">

**Author:** [@rubarachni](https://www.ruby-forum.com/u/rubarachni)\
**Replies:** 1\
**Last updated:** [March 1, 2007, 6:03pm UTC](https://www.ruby-forum.com/t/ruby-1-9-change-of-included-modules-behaviour/87294 "2007-03-01T18:03:01Z")

</div>

I’m just wondering if the behaviour of included modules is expected to change in Ruby 1.9. This question has been raised from the following thread : http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/241164 A…

---

## [Printf inside a string](https://www.ruby-forum.com/t/printf-inside-a-string/87309)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 5\
**Last updated:** [March 1, 2007, 6:00pm UTC](https://www.ruby-forum.com/t/printf-inside-a-string/87309 "2007-03-01T18:00:06Z")

</div>

Hi, This is a pretty simple question. I need to do a “printf” of some numbers inside a string. I just can’t figure out how to express a long string that has that “printf” inside it, because the printf statement itsel…

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

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