# Ruby

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

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

---

## [Is there any chemistry-related ruby application?](https://www.ruby-forum.com/t/is-there-any-chemistry-related-ruby-application/50625)

<div class="topic-metadata">

**Author:** [@Hanjo\_K](https://www.ruby-forum.com/u/Hanjo_K)\
**Replies:** 5\
**Last updated:** [December 22, 2005, 4:06pm UTC](https://www.ruby-forum.com/t/is-there-any-chemistry-related-ruby-application/50625 "2005-12-22T16:06:17Z")

</div>

Hello, I’m new to ruby and this lists, and woking in cheminformatics field. I searched newsgroup and googled but find no chemistry-related ruby application. Is there any chemistry-related application written in ruby? …

---

## [OpenGl](https://www.ruby-forum.com/t/opengl/74311)

<div class="topic-metadata">

**Author:** [@bigbrother2](https://www.ruby-forum.com/u/bigbrother2)\
**Replies:** 4\
**Last updated:** [December 22, 2005, 3:17pm UTC](https://www.ruby-forum.com/t/opengl/74311 "2005-12-22T15:17:53Z")

</div>

Any willing to talk offline or here if all are interested in the OpenGL bindings I hear are in Ruby? I would like to know more about it and if anyone has successfully used them or ran a simple ruby/ OpenGL applicatio…

---

## [Rexml - get raw xml of elements and text](https://www.ruby-forum.com/t/rexml-get-raw-xml-of-elements-and-text/50774)

<div class="topic-metadata">

**Author:** [@ammonc](https://www.ruby-forum.com/u/ammonc)\
**Replies:** 2\
**Last updated:** [December 22, 2005, 2:53pm UTC](https://www.ruby-forum.com/t/rexml-get-raw-xml-of-elements-and-text/50774 "2005-12-22T14:53:46Z")

</div>

I’m aware that REXML’s Element class can give me the elements or the text (texts if there are many text elements between children elements). I want them both, and I want them in order, straight XML. (I’ve got some …

---

## [When are attr\_reader type methods called?](https://www.ruby-forum.com/t/when-are-attr-reader-type-methods-called/50787)

<div class="topic-metadata">

**Author:** [@vivek](https://www.ruby-forum.com/u/vivek)\
**Replies:** 5\
**Last updated:** [December 22, 2005, 2:29pm UTC](https://www.ruby-forum.com/t/when-are-attr-reader-type-methods-called/50787 "2005-12-22T14:29:40Z")

</div>

I couldnt get a proper subject for the post but here is my question. Its regarding methods like attr\_reader defined like below You can do this in ruby file a.rb class A call\_this (“hello world”) def call\_this … …

---

## [Nitro Screencasts](https://www.ruby-forum.com/t/nitro-screencasts/50721)

<div class="topic-metadata">

**Author:** [@gmichelson](https://www.ruby-forum.com/u/gmichelson)\
**Replies:** 17\
**Last updated:** [December 22, 2005, 8:52am UTC](https://www.ruby-forum.com/t/nitro-screencasts/50721 "2005-12-22T08:52:42Z")

</div>

Dear devs, while fixing the final issues for the 0.26.0 release I took some time to experiment with vnc2swf to create some screen casts for Nitro / Og. Nitro is a sophisticated Web2.0 framework that utilizes Ruby and…

---

## [Ruby videos](https://www.ruby-forum.com/t/ruby-videos/74181)

<div class="topic-metadata">

**Author:** [@olczyk](https://www.ruby-forum.com/u/olczyk)\
**Replies:** 15\
**Last updated:** [December 22, 2005, 7:10am UTC](https://www.ruby-forum.com/t/ruby-videos/74181 "2005-12-22T07:10:11Z")

</div>

Aside from the Rails demo, are there any ruby videos online? Thanks

---

## [Regex: Up for a challenge?](https://www.ruby-forum.com/t/regex-up-for-a-challenge/50862)

<div class="topic-metadata">

**Author:** [@basi](https://www.ruby-forum.com/u/basi)\
**Replies:** 6\
**Last updated:** [December 22, 2005, 7:04am UTC](https://www.ruby-forum.com/t/regex-up-for-a-challenge/50862 "2005-12-22T07:04:09Z")

</div>

Hello, Just having an outstandingly hard time to even come close to being able to translate the following string sequences in one or a series of regular expressions. These are allowable prefix combinations in a langu…

---

## [Test msg (please ignore)](https://www.ruby-forum.com/t/test-msg-please-ignore/74314)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [December 22, 2005, 6:21am UTC](https://www.ruby-forum.com/t/test-msg-please-ignore/74314 "2005-12-22T06:21:59Z")

</div>

This is a test message please ignore. removed\_email\_address@domain.invalid

---

## [Re: Help with object scope](https://www.ruby-forum.com/t/re-help-with-object-scope/74175)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 4\
**Last updated:** [December 22, 2005, 5:46am UTC](https://www.ruby-forum.com/t/re-help-with-object-scope/74175 "2005-12-22T05:46:50Z")

</div>

module M class C def self.blah end end end module M2 include M class TestM def setup; C.blah; end end end Won’t work because the C tries to refer to TestM::C, which doesn’t exist. Previously, when you did a…

---

## [Exception: wrong instance allocation](https://www.ruby-forum.com/t/exception-wrong-instance-allocation/50875)

<div class="topic-metadata">

**Author:** [@nodogbite](https://www.ruby-forum.com/u/nodogbite)\
**Replies:** 0\
**Last updated:** [December 22, 2005, 4:30am UTC](https://www.ruby-forum.com/t/exception-wrong-instance-allocation/50875 "2005-12-22T04:30:44Z")

</div>

I have developed a client-server ruby program using DRb. The client and server interact for some time without errors, but eventually I see an exception that reads “wrong instance allocation”. The stack trace shows t…

---

## [Re: sprintf](https://www.ruby-forum.com/t/re-sprintf/74271)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 2\
**Last updated:** [December 22, 2005, 2:45am UTC](https://www.ruby-forum.com/t/re-sprintf/74271 "2005-12-22T02:45:38Z")

</div>

irb(main):004:0\> sprintf("%2s", “lalaa”) =\> “lalaa” irb(main):005:0\> sprintf("%2i", 1212) =\> “1212” ruby 1.8.3 (2005-09-21) \[i686-linux\] What s my mistake? Reading comprehension? =) sprintf("%2.2s",“lalaa”) ==\>“…

---

## [Re: Odd behavior of String#scan](https://www.ruby-forum.com/t/re-odd-behavior-of-string-scan/50870)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 1\
**Last updated:** [December 22, 2005, 2:24am UTC](https://www.ruby-forum.com/t/re-odd-behavior-of-string-scan/50870 "2005-12-22T02:24:35Z")

</div>

From: Dan D. \[mailto:removed\_email\_address@domain.invalid\] Will this do? s=“abcSTARTdef,ghi,jkl,ENDmno” s.scan(/START(.\*)END/).to\_s.split(“,”) =\> \[“def”, “ghi”, “jkl”\] s=“abcSTARTdef,ghi,jkl,ENDmno” /START(.\*)END…

---

## [Accessing request's raw\_header from within a crontroller?](https://www.ruby-forum.com/t/accessing-requests-raw-header-from-within-a-crontroller/50874)

<div class="topic-metadata">

**Author:** [@philpraxis](https://www.ruby-forum.com/u/philpraxis)\
**Replies:** 0\
**Last updated:** [December 22, 2005, 2:19am UTC](https://www.ruby-forum.com/t/accessing-requests-raw-header-from-within-a-crontroller/50874 "2005-12-22T02:19:58Z")

</div>

Is that something possible, i’ve been trying to get to the RAW headers sent during a GET request on a page, and couldn’t find where. I’m using webrick. Here are the tries I did to get access to it: class ZController \<…

---

## [ActiveRecord.Base#save broken after 1.0 upgrade](https://www.ruby-forum.com/t/activerecord-base-save-broken-after-1-0-upgrade/74268)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [December 22, 2005, 2:15am UTC](https://www.ruby-forum.com/t/activerecord-base-save-broken-after-1-0-upgrade/74268 "2005-12-22T02:15:35Z")

</div>

I have several models which all have has\_and\_belongs\_to\_many releationships with each other. When the create action is called, the ActiveRecord.Base#save will only save one of these relationships, the rest will be ign…

---

## [Re: move to front of array](https://www.ruby-forum.com/t/re-move-to-front-of-array/74310)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 0\
**Last updated:** [December 22, 2005, 2:12am UTC](https://www.ruby-forum.com/t/re-move-to-front-of-array/74310 "2005-12-22T02:12:34Z")

</div>

While flatten might be acceptable for this usecase, be aware that if you have nested arrays, that nesting will be lost. a,b = array.partition {|x| x =~ /cool/i} array = a+b is safer, or alternatively: class Array d…

---

## [Sprintf](https://www.ruby-forum.com/t/sprintf/74269)

<div class="topic-metadata">

**Author:** [@Michael\_SentropieS\_S](https://www.ruby-forum.com/u/Michael_SentropieS_S)\
**Replies:** 2\
**Last updated:** [December 22, 2005, 1:51am UTC](https://www.ruby-forum.com/t/sprintf/74269 "2005-12-22T01:51:29Z")

</div>

Hello, according ti the ruby core docu Kernel#sprintf: For string fields, the precision determines the maximum number of characters to be copied from the string. (Thus, the format sequence %10.10s will always contri…

---

## [String \> Integer Conversion Problem](https://www.ruby-forum.com/t/string-integer-conversion-problem/50860)

<div class="topic-metadata">

**Author:** [@mfeadler](https://www.ruby-forum.com/u/mfeadler)\
**Replies:** 0\
**Last updated:** [December 21, 2005, 11:39pm UTC](https://www.ruby-forum.com/t/string-integer-conversion-problem/50860 "2005-12-21T23:39:01Z")

</div>

Retro thanks to all who helped me with my last post. I’m certainly more comfortable with Ruby now than then, but still a newbie as the following will surely demonstrate. Below, you can see that I’m checking command-l…

---

## [Odd behavior of String#scan](https://www.ruby-forum.com/t/odd-behavior-of-string-scan/50856)

<div class="topic-metadata">

**Author:** [@warren\_b](https://www.ruby-forum.com/u/warren_b)\
**Replies:** 2\
**Last updated:** [December 21, 2005, 11:32pm UTC](https://www.ruby-forum.com/t/odd-behavior-of-string-scan/50856 "2005-12-21T23:32:56Z")

</div>

First off, the problem I am trying to solve can be simplified down to: ‘abcSTARTdef,ghi,jkl,ENDmno’.scan(/START(\[^,\]\*,)\*END/) What I want is \[\["def,"\], \["ghi,"\], \["jkl,"\]\] (or the same thing without the commas), and …

---

## [Shelve module in Ruby?](https://www.ruby-forum.com/t/shelve-module-in-ruby/50741)

<div class="topic-metadata">

**Author:** [@bryan](https://www.ruby-forum.com/u/bryan)\
**Replies:** 5\
**Last updated:** [December 21, 2005, 11:20pm UTC](https://www.ruby-forum.com/t/shelve-module-in-ruby/50741 "2005-12-21T23:20:55Z")

</div>

Hi, I’m fairly new to Ruby and I was wondering if there was a module that functions similarly to the shelve module in Python. The shelve module is a method for packaging a dictionary (hash) of arbritrary objects into…

---

## [Re: Odd behavior of String#scan](https://www.ruby-forum.com/t/re-odd-behavior-of-string-scan/74265)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [December 21, 2005, 11:11pm UTC](https://www.ruby-forum.com/t/re-odd-behavior-of-string-scan/74265 "2005-12-21T23:11:52Z")

</div>

to: But this does two operations where it seems like one should suffice. Does someone know of a way to do this in a single operation? I would suggest: ‘abcSTARTdef,ghi,jkl,ENDmno’.match(/START(.\*)END/)\[1\].split(’…

---

## [Port Knocking](https://www.ruby-forum.com/t/port-knocking/74062)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [December 21, 2005, 9:55pm UTC](https://www.ruby-forum.com/t/port-knocking/74062 "2005-12-21T21:55:32Z")

</div>

Has anyone seen (or written) any port knocking implementations in Ruby? I couldn’t see any in the RAA or RubyForge (unless it’s under a name I missed). Is there any interest for this sort of thing? I wrote a mini-sc…

---

## [Nonblocking TCPSocket in multithread software](https://www.ruby-forum.com/t/nonblocking-tcpsocket-in-multithread-software/50439)

<div class="topic-metadata">

**Author:** [@Arto\_P](https://www.ruby-forum.com/u/Arto_P)\
**Replies:** 11\
**Last updated:** [December 21, 2005, 9:55pm UTC](https://www.ruby-forum.com/t/nonblocking-tcpsocket-in-multithread-software/50439 "2005-12-21T21:55:15Z")

</div>

Hi! Why this blocks? a = Thread.new do s = TCPSocket.new(‘localhost’, 4343) s.nonblock = true p s.read # it block’s here no matter what i do end a.join … and how to make it nonblock? It works fine if i drive it …

---

## [Recruitment translators for new Ruby-GetText-Package](https://www.ruby-forum.com/t/recruitment-translators-for-new-ruby-gettext-package/50516)

<div class="topic-metadata">

**Author:** [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Replies:** 15\
**Last updated:** [December 21, 2005, 9:54pm UTC](https://www.ruby-forum.com/t/recruitment-translators-for-new-ruby-gettext-package/50516 "2005-12-21T21:54:11Z")

</div>

Hi all, I’ll release the new version of Ruby-GetText-Package\[1\] next weekend. And I hope to support a lot of language as possible. Now, English, German, Italian, Japanese, Koren, Portuguese(Brazil), Spanish are res…

---

## [Key-mapping](https://www.ruby-forum.com/t/key-mapping/74182)

<div class="topic-metadata">

**Author:** [@gunnar](https://www.ruby-forum.com/u/gunnar)\
**Replies:** 2\
**Last updated:** [December 21, 2005, 9:15pm UTC](https://www.ruby-forum.com/t/key-mapping/74182 "2005-12-21T21:15:48Z")

</div>

Hi all I know this is not a Ruby thing, but I try anyhow. When I’m using irb on my Linux system the cursor keypad works great, ie the leftarrow backspace and uparrow gives me the previous line. Using my iMac the keyp…

---

## [How are people making use of Iconv?](https://www.ruby-forum.com/t/how-are-people-making-use-of-iconv/50794)

<div class="topic-metadata">

**Author:** [@Wilson\_B](https://www.ruby-forum.com/u/Wilson_B)\
**Replies:** 7\
**Last updated:** [December 21, 2005, 8:33pm UTC](https://www.ruby-forum.com/t/how-are-people-making-use-of-iconv/50794 "2005-12-21T20:33:27Z")

</div>

Since Iconv jumped out of the pond and chewed on my leg the other week, I’ve been toying with the idea of a character-set conversion library implemented totally in Ruby, with identical behavior on every platform. How…

---

## [Signing a gem package](https://www.ruby-forum.com/t/signing-a-gem-package/54207)

<div class="topic-metadata">

**Author:** [@Mohammad\_K](https://www.ruby-forum.com/u/Mohammad_K)\
**Replies:** 1\
**Last updated:** [December 21, 2005, 8:24pm UTC](https://www.ruby-forum.com/t/signing-a-gem-package/54207 "2005-12-21T20:24:20Z")

</div>

Hello, I would like to sign my gem package that I am going to distribute soon. My question is, why people will trust my certificate? How can I make my certificate trusty to people? ofcourse, without spending any mone…

---

## [OT: Mac configuration](https://www.ruby-forum.com/t/ot-mac-configuration/50823)

<div class="topic-metadata">

**Author:** [@nsquared](https://www.ruby-forum.com/u/nsquared)\
**Replies:** 8\
**Last updated:** [December 21, 2005, 7:54pm UTC](https://www.ruby-forum.com/t/ot-mac-configuration/50823 "2005-12-21T19:54:08Z")

</div>

I am switching from Windows to Mac specifically for Ruby development. Can someone give me suggestions for laptop hardware config and favorite dev software to use on the mac platform. thanks in advance!

---

## [Ruby SOAP client communication with Microsoft .NET webservic](https://www.ruby-forum.com/t/ruby-soap-client-communication-with-microsoft-net-webservic/49916)

<div class="topic-metadata">

**Author:** [@keyshawn](https://www.ruby-forum.com/u/keyshawn)\
**Replies:** 5\
**Last updated:** [December 21, 2005, 7:44pm UTC](https://www.ruby-forum.com/t/ruby-soap-client-communication-with-microsoft-net-webservic/49916 "2005-12-21T19:44:55Z")

</div>

Hi: I am trying to interface a SOAP client written in Ruby with a .NET webservice. However, I am unable to get the client to construct the correct SOAP request for methods with one string argument. My ruby client fil…

---

## [Problem with gem](https://www.ruby-forum.com/t/problem-with-gem/50784)

<div class="topic-metadata">

**Author:** [@Mohammad\_K](https://www.ruby-forum.com/u/Mohammad_K)\
**Replies:** 3\
**Last updated:** [December 21, 2005, 6:29pm UTC](https://www.ruby-forum.com/t/problem-with-gem/50784 "2005-12-21T18:29:31Z")

</div>

Hello, I am trying to make a gem package for one of my library that I am going to make avaiable soon. Problem is, I can successfully install my gem on the machine where I build the gem. But if I copy that gem to anot…

---

## [Re: How do I do this in ruby?](https://www.ruby-forum.com/t/re-how-do-i-do-this-in-ruby/74131)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [December 21, 2005, 6:17pm UTC](https://www.ruby-forum.com/t/re-how-do-i-do-this-in-ruby/74131 "2005-12-21T18:17:25Z")

</div>

I wasn’t prepared for the volume of email this listserv delivers so I need to direct it to a secondary email address… so, I need to unsubscribe for this address but can’t find how to do that. Can someone advise, p…

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

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