# Ruby

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

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

---

## [\[Bug #2658\] rubyspec: Ruby character strings interpolates the return value of Object#inspect, withou](https://www.ruby-forum.com/t/bug-2658-rubyspec-ruby-character-strings-interpolates-the-return-value-of-object-inspect-withou/182308)

<div class="topic-metadata">

**Author:** [@Yusuke\_E](https://www.ruby-forum.com/u/Yusuke_E)\
**Replies:** 7\
**Last updated:** [February 11, 2010, 1:54pm UTC](https://www.ruby-forum.com/t/bug-2658-rubyspec-ruby-character-strings-interpolates-the-return-value-of-object-inspect-withou/182308 "2010-02-11T13:54:47Z")

</div>

Bug #2658: rubyspec: Ruby character strings interpolates the return value of Object#inspect, without ivars, if Object#to\_s does not return a String instance ERROR http://redmine.ruby-lang.org/issues/show/2658 e$B5/I\<\<…

---

## [Rubyspec: File.new raises an Errno::EINVAL error with File::APPEND FAILED](https://www.ruby-forum.com/t/rubyspec-file-new-raises-an-errno-einval-error-with-file-append-failed/183240)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 2\
**Last updated:** [February 11, 2010, 1:31pm UTC](https://www.ruby-forum.com/t/rubyspec-file-new-raises-an-errno-einval-error-with-file-append-failed/183240 "2010-02-11T13:31:57Z")

</div>

e$B$?$V$se(B akr e$B$5$se(B e$B1sF#$G$9!#e(B foo.txt e$B$H$$$&%U%!%$%k$,B8:\_$9$k\>u67$G!"e(B File.new(“foo.txt”, File::APPEND) e$B$de(B File.new(“foo.txt”, File::RDONLY|File::APPEND) e$B$r\<B9T$9$k$H!"e(B1.8 e$B$G$Oe…

---

## [\[Bug #2735\] miniruby make failed on powerpc-darwin9.8.0](https://www.ruby-forum.com/t/bug-2735-miniruby-make-failed-on-powerpc-darwin9-8-0/183297)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 1\
**Last updated:** [February 11, 2010, 11:33am UTC](https://www.ruby-forum.com/t/bug-2735-miniruby-make-failed-on-powerpc-darwin9-8-0/183297 "2010-02-11T11:33:07Z")

</div>

Bug #2735: miniruby make failed on powerpc-darwin9.8.0 http://redmine.ruby-lang.org/issues/show/2735 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: build ruby -v: ruby …

---

## [@PostConstruct annotation supported?](https://www.ruby-forum.com/t/postconstruct-annotation-supported/183296)

<div class="topic-metadata">

**Author:** [@dalton](https://www.ruby-forum.com/u/dalton)\
**Replies:** 0\
**Last updated:** [February 11, 2010, 11:23am UTC](https://www.ruby-forum.com/t/postconstruct-annotation-supported/183296 "2010-02-11T11:23:45Z")

</div>

Hi, at the moment I am trying to load an instance of a java class which uses the @PostConstruct annotation. I am getting a NullPointerException when I try to call a method where an object is referenced which is calle…

---

## [Fastest readline method](https://www.ruby-forum.com/t/fastest-readline-method/183284)

<div class="topic-metadata">

**Author:** [@kvetch](https://www.ruby-forum.com/u/kvetch)\
**Replies:** 1\
**Last updated:** [February 11, 2010, 11:07am UTC](https://www.ruby-forum.com/t/fastest-readline-method/183284 "2010-02-11T11:07:56Z")

</div>

I have a script that parses a bunch of data off the wire and pipes it into a fastercsv array. I want to read in a text file and check certain columns for matches from the data in the text file. There seems to be ton…

---

## [Using Ruby /DL to invoke function in windows dll](https://www.ruby-forum.com/t/using-ruby-dl-to-invoke-function-in-windows-dll/183245)

<div class="topic-metadata">

**Author:** [@youthreewire](https://www.ruby-forum.com/u/youthreewire)\
**Replies:** 7\
**Last updated:** [February 11, 2010, 8:55am UTC](https://www.ruby-forum.com/t/using-ruby-dl-to-invoke-function-in-windows-dll/183245 "2010-02-11T08:55:39Z")

</div>

Hi, I have a C++ code converted into a windows Dll.I want to use Ruby /DL to invoke the functions in the DLL. Here are the function prototypes: C++ code // MathFuncsDll.h namespace MathFuncs { class MyMathFuncs…

---

## [\[bug:trunk\] marshal changes \["foo", "bar", "bar"\] to \["foo", "bar", "EUC-JP"\]](https://www.ruby-forum.com/t/bug-trunk-marshal-changes-foo-bar-bar-to-foo-bar-euc-jp/183290)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [February 11, 2010, 8:01am UTC](https://www.ruby-forum.com/t/bug-trunk-marshal-changes-foo-bar-bar-to-foo-bar-euc-jp/183290 "2010-02-11T08:01:50Z")

</div>

e$B0J2\<$N$h$&$K!"e(B \[“foo”, “bar”, “bar”\] e$B$re(B marshal e$B$7$?$O$:$,!"e(Bunmarshal e$B$9$k$He(B \[“foo”, “bar”, “EUC-JP”\] e$B$,=P$F$-$^$9!#e(B % ./ruby -ve ’ o = \[“foo”.force\_encoding(“EUC-JP”)\] + \[ “bar” \] \* 2 …

---

## [Reg : Auto select Drop down list](https://www.ruby-forum.com/t/reg-auto-select-drop-down-list/183229)

<div class="topic-metadata">

**Author:** [@pradheep](https://www.ruby-forum.com/u/pradheep)\
**Replies:** 3\
**Last updated:** [February 11, 2010, 6:23am UTC](https://www.ruby-forum.com/t/reg-auto-select-drop-down-list/183229 "2010-02-11T06:23:21Z")

</div>

Hi I need a help on auto select drp down list. For example , ihave three drop down list boxes. in firts dropdown list box if i select a “state” in the next box it has to display a coressponding “cities” present in tha…

---

## [Call for Paper The International Journal of Computer Science (IJCS)](https://www.ruby-forum.com/t/call-for-paper-the-international-journal-of-computer-science-ijcs/183286)

<div class="topic-metadata">

**Author:** [@editor\_ijcs](https://www.ruby-forum.com/u/editor_ijcs)\
**Replies:** 0\
**Last updated:** [February 11, 2010, 6:10am UTC](https://www.ruby-forum.com/t/call-for-paper-the-international-journal-of-computer-science-ijcs/183286 "2010-02-11T06:10:37Z")

</div>

Call for Paper The International Journal of Computer Science (IJCS) publishes original papers on all subjects relevant to computer science, communication network, and information systems. The highest priority will be…

---

## [Difference between](https://www.ruby-forum.com/t/difference-between/183258)

<div class="topic-metadata">

**Author:** [@artbot](https://www.ruby-forum.com/u/artbot)\
**Replies:** 8\
**Last updated:** [February 11, 2010, 5:43am UTC](https://www.ruby-forum.com/t/difference-between/183258 "2010-02-11T05:43:06Z")

</div>

hi, all the time i thought \[\] would be a shortcut for the corresponding class method of the class Array, but after def Array. puts “blah” end i still get a= \[1, 2, 3\] =\> \[1, 2, 3\] and on the other hand a= Array…

---

## [Trouble using blowfish](https://www.ruby-forum.com/t/trouble-using-blowfish/183281)

<div class="topic-metadata">

**Author:** [@ashita](https://www.ruby-forum.com/u/ashita)\
**Replies:** 2\
**Last updated:** [February 11, 2010, 5:11am UTC](https://www.ruby-forum.com/t/trouble-using-blowfish/183281 "2010-02-11T05:11:54Z")

</div>

Hello Group, ruby version: ruby 1.9.1p243 I get the following error when I try creating a new instance of blowfish. irb(main):001:0\> require ‘crypt/blowfish’ =\> true irb(main):002:0\> blowfish = Crypt::Blowfish.new(…

---

## [\[bug:trunk\] regexp marshal problem from 1.9.1 to 1.9.2](https://www.ruby-forum.com/t/bug-trunk-regexp-marshal-problem-from-1-9-1-to-1-9-2/183280)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [February 11, 2010, 4:36am UTC](https://www.ruby-forum.com/t/bug-trunk-regexp-marshal-problem-from-1-9-1-to-1-9-2/183280 "2010-02-11T04:36:57Z")

</div>

e$B0J2\<$N$h$&$K!"e(B 1.9.1p378 e$B$+$ie(B 1.9.2 e$B$Xe(B // e$B$re(B marshal e$B$GAw$m$&$H$9$k$H!"e(B ArgumentError e$B$K$J$j$^$9!#e(B % ruby-1.9.1p378 -e ‘Marshal.dump(//, STDOUT)’ | ./ruby -e ‘Marshal.load(STDIN)’ …

---

## [\[ANN\] IronRuby 1.0 RC2](https://www.ruby-forum.com/t/ann-ironruby-1-0-rc2/183273)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 0\
**Last updated:** [February 11, 2010, 2:14am UTC](https://www.ruby-forum.com/t/ann-ironruby-1-0-rc2/183273 "2010-02-11T02:14:09Z")

</div>

The IronRuby team is pleased to announce version 1.0 RC2! http://ironruby.net/download Direct download link: http://ironruby.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=36931#DownloadId=105584 This release is…

---

## [Silverlight.rb](https://www.ruby-forum.com/t/silverlight-rb/181556)

<div class="topic-metadata">

**Author:** [@Randall\_Sutton](https://www.ruby-forum.com/u/Randall_Sutton)\
**Replies:** 2\
**Last updated:** [February 11, 2010, 1:29am UTC](https://www.ruby-forum.com/t/silverlight-rb/181556 "2010-02-11T01:29:40Z")

</div>

I would like to use the Wpf.build method contained in the silverlight.rb file. Currently I can only find this file in the photoviewer app from 2008 for what looks like Silverlight 2. Is there an updated version of t…

---

## [Ruby cross-platform File.basename](https://www.ruby-forum.com/t/ruby-cross-platform-file-basename/183265)

<div class="topic-metadata">

**Author:** [@bwv549](https://www.ruby-forum.com/u/bwv549)\
**Replies:** 6\
**Last updated:** [February 11, 2010, 12:49am UTC](https://www.ruby-forum.com/t/ruby-cross-platform-file-basename/183265 "2010-02-11T00:49:42Z")

</div>

What is the best idiom for generating a cross-platform basename? (i.e., one that will still give the basename of a windows file on linux and the basename of a linux file on windows). filenames = \[“C:\\path\\to\\file.txt”…

---

## [Bug in delete\_at?](https://www.ruby-forum.com/t/bug-in-delete-at/183264)

<div class="topic-metadata">

**Author:** [@Randall\_Sutton](https://www.ruby-forum.com/u/Randall_Sutton)\
**Replies:** 0\
**Last updated:** [February 10, 2010, 11:38pm UTC](https://www.ruby-forum.com/t/bug-in-delete-at/183264 "2010-02-10T23:38:25Z")

</div>

I think there might be a bug in the way delete\_at works. a = \[1,2\] a.delete\_at(1) =\> 2 a.delete\_at(1) RangeError: Specified argument was out of the range of valid values. Parameter name: index from :0:in delete\_at…

---

## [It's a Bird, it's a plane, no! umm, it's Super Boid?](https://www.ruby-forum.com/t/its-a-bird-its-a-plane-no-umm-its-super-boid/183155)

<div class="topic-metadata">

**Author:** [@thunk](https://www.ruby-forum.com/u/thunk)\
**Replies:** 9\
**Last updated:** [February 10, 2010, 11:09pm UTC](https://www.ruby-forum.com/t/its-a-bird-its-a-plane-no-umm-its-super-boid/183155 "2010-02-10T23:09:09Z")

</div>

Hey Guys, I have something actually working that seems allot like Swarm Technology to me. The system features many smaller parts that seem allot like “Boids” (or “Agents”). I’d be tempted to call them “Dorts” becau…

---

## [Problems with RubyGems on a Debian machine](https://www.ruby-forum.com/t/problems-with-rubygems-on-a-debian-machine/182955)

<div class="topic-metadata">

**Author:** [@snow-templar](https://www.ruby-forum.com/u/snow-templar)\
**Replies:** 8\
**Last updated:** [February 10, 2010, 9:53pm UTC](https://www.ruby-forum.com/t/problems-with-rubygems-on-a-debian-machine/182955 "2010-02-10T21:53:39Z")

</div>

I wasn’t quite sure if I should of posted this in the Ruby forum or the Ruby on Rails forum but here it goes. So I’ve been trying to install rails onto a Debian (Lenny) machine of mine. I assumed from the readings I …

---

## [Why Ruby?](https://www.ruby-forum.com/t/why-ruby/182768)

<div class="topic-metadata">

**Author:** [@wolfmanjm](https://www.ruby-forum.com/u/wolfmanjm)\
**Replies:** 51\
**Last updated:** [February 10, 2010, 6:32pm UTC](https://www.ruby-forum.com/t/why-ruby/182768 "2010-02-10T18:32:14Z")

</div>

I’ve asked several friends and associates (application developers) what programming language they recommend for new development. The most prevalent answer was Ruby (with Ruby-On-Rails a close second). This was surpr…

---

## [Ray Tracing API](https://www.ruby-forum.com/t/ray-tracing-api/183212)

<div class="topic-metadata">

**Author:** [@gimmickivek](https://www.ruby-forum.com/u/gimmickivek)\
**Replies:** 2\
**Last updated:** [February 10, 2010, 6:25pm UTC](https://www.ruby-forum.com/t/ray-tracing-api/183212 "2010-02-10T18:25:50Z")

</div>

Has any one written or used a RayTracing API in ruby? I was not able to find one using Google.

---

## [How to change stdin separator (perl vs ruby)](https://www.ruby-forum.com/t/how-to-change-stdin-separator-perl-vs-ruby/183246)

<div class="topic-metadata">

**Author:** [@saknarede](https://www.ruby-forum.com/u/saknarede)\
**Replies:** 5\
**Last updated:** [February 10, 2010, 5:24pm UTC](https://www.ruby-forum.com/t/how-to-change-stdin-separator-perl-vs-ruby/183246 "2010-02-10T17:24:56Z")

</div>

I have to process very very big text files and not line per line, I have to access to a group of lines seperated for a “%”. Then I tryed to access line per line and detect the separator for each line saving the lines …

---

## [Rake db:create doesn't create the database](https://www.ruby-forum.com/t/rake-db-create-doesnt-create-the-database/182085)

<div class="topic-metadata">

**Author:** [@msan](https://www.ruby-forum.com/u/msan)\
**Replies:** 10\
**Last updated:** [February 10, 2010, 3:41pm UTC](https://www.ruby-forum.com/t/rake-db-create-doesnt-create-the-database/182085 "2010-02-10T15:41:54Z")

</div>

I’m using rails 2.3.5 and jruby 1.4.0. I have to manually create the database. Is it normal? To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage\_email

---

## [How to get IP address using mac address](https://www.ruby-forum.com/t/how-to-get-ip-address-using-mac-address/183227)

<div class="topic-metadata">

**Author:** [@jprabu](https://www.ruby-forum.com/u/jprabu)\
**Replies:** 1\
**Last updated:** [February 10, 2010, 3:01pm UTC](https://www.ruby-forum.com/t/how-to-get-ip-address-using-mac-address/183227 "2010-02-10T15:01:27Z")

</div>

Hi friends, I want to know whether any methods are available to get machine IP address using MAC address. Thanks in advance,

---

## [Can ruby do a repeated Reboot test script](https://www.ruby-forum.com/t/can-ruby-do-a-repeated-reboot-test-script/183022)

<div class="topic-metadata">

**Author:** [@hambaba](https://www.ruby-forum.com/u/hambaba)\
**Replies:** 9\
**Last updated:** [February 10, 2010, 11:25am UTC](https://www.ruby-forum.com/t/can-ruby-do-a-repeated-reboot-test-script/183022 "2010-02-10T11:25:33Z")

</div>

Just want to write a ruby script that reboots the computer for 10 repeated times. Is it possible? I appriciate any help.

---

## [Shared memory creation in ruby](https://www.ruby-forum.com/t/shared-memory-creation-in-ruby/183226)

<div class="topic-metadata">

**Author:** [@youthreewire](https://www.ruby-forum.com/u/youthreewire)\
**Replies:** 3\
**Last updated:** [February 10, 2010, 10:08am UTC](https://www.ruby-forum.com/t/shared-memory-creation-in-ruby/183226 "2010-02-10T10:08:16Z")

</div>

Hi, I am new to ruby and I want to write code which makes shared memory and writes to it.Similar to the C code here: void main(int argc, char\* argv\[\]) { HANDLE mappedFile = 0; int oneSecond = 1000; char\* shared =…

---

## [Code Review: MutableStringConcatPerf2](https://www.ruby-forum.com/t/code-review-mutablestringconcatperf2/183221)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [February 10, 2010, 5:35am UTC](https://www.ruby-forum.com/t/code-review-mutablestringconcatperf2/183221 "2010-02-10T05:35:33Z")

</div>

tfpt review “/shelveset:MutableStringConcatPerf2;REDMOND\\tomat” Comment : Improves perf of String#+ Tomas

---

## [Need Code to Create Directory Picking Dialog Box](https://www.ruby-forum.com/t/need-code-to-create-directory-picking-dialog-box/183185)

<div class="topic-metadata">

**Author:** [@alexd](https://www.ruby-forum.com/u/alexd)\
**Replies:** 13\
**Last updated:** [February 10, 2010, 2:16am UTC](https://www.ruby-forum.com/t/need-code-to-create-directory-picking-dialog-box/183185 "2010-02-10T02:16:35Z")

</div>

I have a Ruby program and want to be able to pick a directory using a dialog box. Does anyone have a quick, easy piece of code that will bring up a dialog box to pick a directory? That’s the only GUI part of the pro…

---

## [Void value expression](https://www.ruby-forum.com/t/void-value-expression/183192)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 4\
**Last updated:** [February 9, 2010, 11:28pm UTC](https://www.ruby-forum.com/t/void-value-expression/183192 "2010-02-09T23:28:38Z")

</div>

I noticed that this code: def go a = true b = nil return a.nil? or b.nil? end puts go actually returns false in jruby–I would have expected it to return true, and in MRI (1.8.6, 1.9.1), it yields: bad.rb:4: void…

---

## [OptionParser does not enforce required argument](https://www.ruby-forum.com/t/optionparser-does-not-enforce-required-argument/183190)

<div class="topic-metadata">

**Author:** [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Replies:** 1\
**Last updated:** [February 9, 2010, 11:26pm UTC](https://www.ruby-forum.com/t/optionparser-does-not-enforce-required-argument/183190 "2010-02-09T23:26:17Z")

</div>

I’m not seeing the difference between specifying a required argument and an option argument in OptionParser other than they used ‘\<\<’ in the assignment of the former. When I don’t give an output\_file it runs fine unti…

---

## [Clogger 0.3.0 - configurable logging for Rack](https://www.ruby-forum.com/t/clogger-0-3-0-configurable-logging-for-rack/183207)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [February 9, 2010, 11:15pm UTC](https://www.ruby-forum.com/t/clogger-0-3-0-configurable-logging-for-rack/183207 "2010-02-09T23:15:10Z")

</div>

Clogger is Rack middleware for logging HTTP requests. The log format is customizable so you can specify exactly which fields to log. http://clogger.rubyforge.org/ removed\_email\_address@domain.invalid git://git.bogomi…

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

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