# Ruby

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

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

---

## [Re: ruby and ralis failed](https://www.ruby-forum.com/t/re-ruby-and-ralis-failed/182738)

<div class="topic-metadata">

**Author:** [@asmodi](https://www.ruby-forum.com/u/asmodi)\
**Replies:** 9\
**Last updated:** [February 5, 2010, 6:39am UTC](https://www.ruby-forum.com/t/re-ruby-and-ralis-failed/182738 "2010-02-05T06:39:38Z")

</div>

I had just found out that ruby and rails failed me as a programmer, becaused they are all zipped up. this has led me to belivedÂ that the book will not showed you how to unzipped them.

---

## [What purpose is Net::FTP#last\_response for?](https://www.ruby-forum.com/t/what-purpose-is-net-ftp-last-response-for/182826)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 1\
**Last updated:** [February 5, 2010, 6:07am UTC](https://www.ruby-forum.com/t/what-purpose-is-net-ftp-last-response-for/182826 "2010-02-05T06:07:26Z")

</div>

Net::FTP e$B%a%s%F%J$NA0ED$5$se(B e$B1sF#$G$9!#e(B rubyspec e$B$G!"e(BNet::FTP#login e$B$Ne(B spec e$B$K!"e(B dummy ftp server e$B$KBP$7$Fe(B login e$B$r8F$s$@D\>8e$O!"e(Blast\_response e$B$,e(B “230 User logged in, p…

---

## [Using Rspec for features and specs under Autotest](https://www.ruby-forum.com/t/using-rspec-for-features-and-specs-under-autotest/182942)

<div class="topic-metadata">

**Author:** [@Sean\_DeNigris](https://www.ruby-forum.com/u/Sean_DeNigris)\
**Replies:** 3\
**Last updated:** [February 5, 2010, 4:30am UTC](https://www.ruby-forum.com/t/using-rspec-for-features-and-specs-under-autotest/182942 "2010-02-05T04:30:31Z")

</div>

Hi list, Does anyone have experience using Rspec for both the feature and spec cycle with Autotest? What I mean is that I’m developing a library that will only be used by other developers. However, if I only write s…

---

## [Refining the use of file joins or file expand\_path](https://www.ruby-forum.com/t/refining-the-use-of-file-joins-or-file-expand-path/182602)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 25\
**Last updated:** [February 5, 2010, 1:44am UTC](https://www.ruby-forum.com/t/refining-the-use-of-file-joins-or-file-expand-path/182602 "2010-02-05T01:44:08Z")

</div>

Both bits of code process the same result which is finding .rb file extensions within a specified relative path. The question I have (because I have written used both) is which would “you” use and why keeping the foll…

---

## [Newbie question, I have seen create! what does it mean](https://www.ruby-forum.com/t/newbie-question-i-have-seen-create-what-does-it-mean/182937)

<div class="topic-metadata">

**Author:** [@noppanit](https://www.ruby-forum.com/u/noppanit)\
**Replies:** 1\
**Last updated:** [February 5, 2010, 1:11am UTC](https://www.ruby-forum.com/t/newbie-question-i-have-seen-create-what-does-it-mean/182937 "2010-02-05T01:11:50Z")

</div>

Hi All, I have some newbie question, and I have been searching all over google for a long time. Could some of you please explain me why do we have to use ! instead of normal method like @stock = Stock.create! params…

---

## [Mysql gem: better native extension error than this?](https://www.ruby-forum.com/t/mysql-gem-better-native-extension-error-than-this/182866)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 3\
**Last updated:** [February 5, 2010, 1:04am UTC](https://www.ruby-forum.com/t/mysql-gem-better-native-extension-error-than-this/182866 "2010-02-05T01:04:49Z")

</div>

uninitialized constant MysqlCompat::MysqlRes …surely the error can be better than this. The meaning of this error is “the native extension failed to load”, however the error does not convey this whatsoever. Can’t t…

---

## [Hanselminutes](https://www.ruby-forum.com/t/hanselminutes/182921)

<div class="topic-metadata">

**Author:** [@Orion\_E](https://www.ruby-forum.com/u/Orion_E)\
**Replies:** 8\
**Last updated:** [February 5, 2010, 12:11am UTC](https://www.ruby-forum.com/t/hanselminutes/182921 "2010-02-05T00:11:35Z")

</div>

Just listened to jimmy on hanselminutes (yeah I know it was a week or 2 ago, I’m catching up on podcasts) talking about IronRuby. Congrats on a job well done. Hopefully that will get some more people interested in IR…

---

## [Dynamic Class Instance?](https://www.ruby-forum.com/t/dynamic-class-instance/182846)

<div class="topic-metadata">

**Author:** [@kale](https://www.ruby-forum.com/u/kale)\
**Replies:** 6\
**Last updated:** [February 4, 2010, 11:30pm UTC](https://www.ruby-forum.com/t/dynamic-class-instance/182846 "2010-02-04T23:30:26Z")

</div>

I am creating a Ruby script that basically: Has a prompt that gets a command string (ex. ‘edit user1 15’) Parses the string Runs specific command (like ‘edit’ or ‘new’) Repeats From a functional level I know how to ma…

---

## [How to add Header information to a SOAP request](https://www.ruby-forum.com/t/how-to-add-header-information-to-a-soap-request/182929)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 2\
**Last updated:** [February 4, 2010, 11:29pm UTC](https://www.ruby-forum.com/t/how-to-add-header-information-to-a-soap-request/182929 "2010-02-04T23:29:14Z")

</div>

I want to add some information to the header of a SOAP request. How would I do that. I plan on just using the ruby core SOAP module.

---

## [Send a SOAP request to a url that requires basic authenticat](https://www.ruby-forum.com/t/send-a-soap-request-to-a-url-that-requires-basic-authenticat/182924)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 2\
**Last updated:** [February 4, 2010, 11:27pm UTC](https://www.ruby-forum.com/t/send-a-soap-request-to-a-url-that-requires-basic-authenticat/182924 "2010-02-04T23:27:51Z")

</div>

Hey all, I have scoured the web looking for an answer but can’t seem to find one. I need to send a SOAP request to a server that requires basic authentication. I can create the base64 encoded username and password th…

---

## [Where is the magic?](https://www.ruby-forum.com/t/where-is-the-magic/182886)

<div class="topic-metadata">

**Author:** [@uriel](https://www.ruby-forum.com/u/uriel)\
**Replies:** 3\
**Last updated:** [February 4, 2010, 10:42pm UTC](https://www.ruby-forum.com/t/where-is-the-magic/182886 "2010-02-04T22:42:56Z")

</div>

I’m learning Ruby and have found some interesting behaviour which I cann’t understand myself yet. Here’s some code and the output: class Foo def self.new(\*args) obj = super yield obj end end Foo.new do p self …

---

## [\[Bug #2575\] a test fail for IO#readpartial is broken on \*BSD](https://www.ruby-forum.com/t/bug-2575-a-test-fail-for-io-readpartial-is-broken-on-bsd/181249)

<div class="topic-metadata">

**Author:** [@Takahiro\_K](https://www.ruby-forum.com/u/Takahiro_K)\
**Replies:** 7\
**Last updated:** [February 4, 2010, 10:42pm UTC](https://www.ruby-forum.com/t/bug-2575-a-test-fail-for-io-readpartial-is-broken-on-bsd/181249 "2010-02-04T22:42:01Z")

</div>

Bug #2575: a test fail for IO#readpartial is broken on \*BSD http://redmine.ruby-lang.org/issues/show/2575 e$B5/I\<\<Te(B: Takahiro K. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: core ruby -v: ruby 1.8…

---

## [Time.now slow on the first call?](https://www.ruby-forum.com/t/time-now-slow-on-the-first-call/182916)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 3\
**Last updated:** [February 4, 2010, 9:38pm UTC](https://www.ruby-forum.com/t/time-now-slow-on-the-first-call/182916 "2010-02-04T21:38:12Z")

</div>

I noticed that running this trivial script Time.now on windows takes something like 0.05s the first time (fast after that), and on linux it appears to take 0.1s (just for that line). Is this expected? Thanks. -r

---

## [Finding duplicate records before creating using FasterCSV](https://www.ruby-forum.com/t/finding-duplicate-records-before-creating-using-fastercsv/182918)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 11\
**Last updated:** [February 4, 2010, 9:15pm UTC](https://www.ruby-forum.com/t/finding-duplicate-records-before-creating-using-fastercsv/182918 "2010-02-04T21:15:24Z")

</div>

Hello all, I have a user that will be importing csv files occasionally. I have, with a great amount of help (thanks James), set up an app. that will read a csv and save to database. I need to check for duplicate rec…

---

## [Error: Installating sqlite3-ruby (gem)](https://www.ruby-forum.com/t/error-installating-sqlite3-ruby-gem/182889)

<div class="topic-metadata">

**Author:** [@shahab](https://www.ruby-forum.com/u/shahab)\
**Replies:** 3\
**Last updated:** [February 4, 2010, 9:13pm UTC](https://www.ruby-forum.com/t/error-installating-sqlite3-ruby-gem/182889 "2010-02-04T21:13:38Z")

</div>

Building native extensions. This could take a while… null:-1:in \<init\>': java.lang.IllegalArgumentException from null:-1:instart’ from null:-1:in start' from null:-1:inexec’ from ShellLauncher.java:677:in run' from S…

---

## [Ruby-serial port installation on windows](https://www.ruby-forum.com/t/ruby-serial-port-installation-on-windows/182879)

<div class="topic-metadata">

**Author:** [@ashikalim](https://www.ruby-forum.com/u/ashikalim)\
**Replies:** 4\
**Last updated:** [February 4, 2010, 6:40pm UTC](https://www.ruby-forum.com/t/ruby-serial-port-installation-on-windows/182879 "2010-02-04T18:40:10Z")

</div>

Hi all, I am a linux user . Just I am interested to install ruby-serial gem on windows machine . But I can’t do it . Anybody can help to resolve this . when I am doing following , D:\\ruby\>gem install ruby-serialport…

---

## [Ruby on Rails Tutorials for Windows Platform](https://www.ruby-forum.com/t/ruby-on-rails-tutorials-for-windows-platform/182888)

<div class="topic-metadata">

**Author:** [@shahab](https://www.ruby-forum.com/u/shahab)\
**Replies:** 2\
**Last updated:** [February 4, 2010, 6:28pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-tutorials-for-windows-platform/182888 "2010-02-04T18:28:09Z")

</div>

I need to know about some very good tutorials online for Ruby on Rail (framework).

---

## [ANN: Ruby 1.8.6 pl398 released](https://www.ruby-forum.com/t/ann-ruby-1-8-6-pl398-released/182909)

<div class="topic-metadata">

**Author:** [@kirkhoward](https://www.ruby-forum.com/u/kirkhoward)\
**Replies:** 4\
**Last updated:** [February 4, 2010, 6:21pm UTC](https://www.ruby-forum.com/t/ann-ruby-1-8-6-pl398-released/182909 "2010-02-04T18:21:57Z")

</div>

Ruby 1.8.6 pl398 has been released. This release includes fixes for both win32 builds (thanks Luis!) and fixes a bug with extensions on Snow Leopard (thanks James!), as well as several other important backports and b…

---

## [Methodhash 0.5 released](https://www.ruby-forum.com/t/methodhash-0-5-released/182895)

<div class="topic-metadata">

**Author:** [@fredrikj](https://www.ruby-forum.com/u/fredrikj)\
**Replies:** 4\
**Last updated:** [February 4, 2010, 5:50pm UTC](https://www.ruby-forum.com/t/methodhash-0-5-released/182895 "2010-02-04T17:50:20Z")

</div>

I created a small “lab tool” that makes life easier for me. It’s basically a Hash that you can’t put values into, the values can only be obtained from a method that you define. I created it with the idea that a calcul…

---

## [Reopen workitem 3688 and/or 3718](https://www.ruby-forum.com/t/reopen-workitem-3688-and-or-3718/182906)

<div class="topic-metadata">

**Author:** [@xjivan](https://www.ruby-forum.com/u/xjivan)\
**Replies:** 1\
**Last updated:** [February 4, 2010, 4:45pm UTC](https://www.ruby-forum.com/t/reopen-workitem-3688-and-or-3718/182906 "2010-02-04T16:45:22Z")

</div>

It might be the wrong one of the 2 but the end result is the same. I’m unable to build ironruby on mono I tried with rake and with xbuild on mono 2.6.1 (current release) and mono trunk. I’ve tried mono trunk on a li…

---

## [\[Bug #2661\](Closed) Bignum \<= BigDecimal("NaN") raises an Exception](https://www.ruby-forum.com/t/bug-2661-closed-bignum-bigdecimal-nan-raises-an-exception/182908)

<div class="topic-metadata">

**Author:** [@Yusuke\_E](https://www.ruby-forum.com/u/Yusuke_E)\
**Replies:** 0\
**Last updated:** [February 4, 2010, 4:37pm UTC](https://www.ruby-forum.com/t/bug-2661-closed-bignum-bigdecimal-nan-raises-an-exception/182908 "2010-02-04T16:37:45Z")

</div>

e$B%A%1%C%He(B #2661 e$B$,99?7$5$l$^$7$?!#e(B (by Yusuke E.) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B This issue was solved with changeset r26574. Yusuke, thank you fo…

---

## [Hooking subscript operations in a hash](https://www.ruby-forum.com/t/hooking-subscript-operations-in-a-hash/182869)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 16\
**Last updated:** [February 4, 2010, 3:12pm UTC](https://www.ruby-forum.com/t/hooking-subscript-operations-in-a-hash/182869 "2010-02-04T15:12:52Z")

</div>

In order to help debug something, I’d like to hook the hash subscript operation. I’ve tried this (and several variants) in irb … but it doesn’t do what I want it to. module RalphMod def \[\]=(index, value) p index p…

---

## [Referencing a method in a module](https://www.ruby-forum.com/t/referencing-a-method-in-a-module/182829)

<div class="topic-metadata">

**Author:** [@scrajesh](https://www.ruby-forum.com/u/scrajesh)\
**Replies:** 4\
**Last updated:** [February 4, 2010, 2:43pm UTC](https://www.ruby-forum.com/t/referencing-a-method-in-a-module/182829 "2010-02-04T14:43:01Z")

</div>

Say I have the following: module Foo def bar puts “Baz” end end If I want to write about (in some documentation, or a bug report) the bar method of the Foo module, what’s the best way of referring to it? E.g., I…

---

## [FreeImage-FFI](https://www.ruby-forum.com/t/freeimage-ffi/182899)

<div class="topic-metadata">

**Author:** [@jonty](https://www.ruby-forum.com/u/jonty)\
**Replies:** 0\
**Last updated:** [February 4, 2010, 2:41pm UTC](https://www.ruby-forum.com/t/freeimage-ffi/182899 "2010-02-04T14:41:15Z")

</div>

In view of ImageScience being currently broken on ruby 1.9 I thought it would be a good idea to try and use FFI with FreeImage. And lo! this has been tried last April, repositories on github. Fine but none of the co…

---

## [Error: Installing sqlite3-ruby (gem)](https://www.ruby-forum.com/t/error-installing-sqlite3-ruby-gem/182894)

<div class="topic-metadata">

**Author:** [@shahab](https://www.ruby-forum.com/u/shahab)\
**Replies:** 1\
**Last updated:** [February 4, 2010, 2:18pm UTC](https://www.ruby-forum.com/t/error-installing-sqlite3-ruby-gem/182894 "2010-02-04T14:18:25Z")

</div>

I’m getting the this error when I try to install sqlite3-ruby gem. Please help.

---

## [Error: Installing sqlite3-ruby (gem)](https://www.ruby-forum.com/t/error-installing-sqlite3-ruby-gem/197254)

<div class="topic-metadata">

**Author:** [@shahab](https://www.ruby-forum.com/u/shahab)\
**Replies:** 1\
**Last updated:** [February 4, 2010, 2:15pm UTC](https://www.ruby-forum.com/t/error-installing-sqlite3-ruby-gem/197254 "2010-02-04T14:15:33Z")

</div>

Building native extensions. This could take a while… null:-1:in \<init\>': java.lang.IllegalArgumentException from null:-1:instart’ from null:-1:in start' from null:-1:inexec’ from ShellLauncher.java:677:in run' from S…

---

## [Parsing text with while loop](https://www.ruby-forum.com/t/parsing-text-with-while-loop/182791)

<div class="topic-metadata">

**Author:** [@felix](https://www.ruby-forum.com/u/felix)\
**Replies:** 9\
**Last updated:** [February 4, 2010, 11:53am UTC](https://www.ruby-forum.com/t/parsing-text-with-while-loop/182791 "2010-02-04T11:53:49Z")

</div>

I am parsing a csv file and I am unable to end my loop as I want it. When I run my ruby file, I get this : feelx@tbiweb:~/public\_html$ ruby csv\_to\_sql.rb /usr/lib/ruby/1.8/date/format.rb:1055:in dup': can't dup NilCla…

---

## [Re: jruby and ruby on mac](https://www.ruby-forum.com/t/re-jruby-and-ruby-on-mac/182881)

<div class="topic-metadata">

**Author:** [@bluetrust](https://www.ruby-forum.com/u/bluetrust)\
**Replies:** 0\
**Last updated:** [February 4, 2010, 10:02am UTC](https://www.ruby-forum.com/t/re-jruby-and-ruby-on-mac/182881 "2010-02-04T10:02:02Z")

</div>

Hi Hermann, I use JRuby on Rails on a daily basis without any modification in my rails apps. So, yes JRuby is also an option for you. And you are right: jruby script/server is the way to start. If you would like to …

---

## [\[Chris Pine\] Chapter 7 - Sorting Arrays without .sort](https://www.ruby-forum.com/t/chris-pine-chapter-7-sorting-arrays-without-sort/182854)

<div class="topic-metadata">

**Author:** [@vladwow](https://www.ruby-forum.com/u/vladwow)\
**Replies:** 5\
**Last updated:** [February 4, 2010, 5:30am UTC](https://www.ruby-forum.com/t/chris-pine-chapter-7-sorting-arrays-without-sort/182854 "2010-02-04T05:30:26Z")

</div>

Greetings, I have set myself out on the great task to understand computer programming, and i concluded to start my journy with Ruby. It seems like a the easier to learn program etc. I have followed Chris P.s online t…

---

## [Why this web page stop my "open" action \[open-uri\]?](https://www.ruby-forum.com/t/why-this-web-page-stop-my-open-action-open-uri/182871)

<div class="topic-metadata">

**Author:** [@maxlion](https://www.ruby-forum.com/u/maxlion)\
**Replies:** 1\
**Last updated:** [February 4, 2010, 5:28am UTC](https://www.ruby-forum.com/t/why-this-web-page-stop-my-open-action-open-uri/182871 "2010-02-04T05:28:40Z")

</div>

Hello, Need your help to find out what stop my “open” action. I’m using open-uri to get the webpages from http://quotes.163.com. When I try open other pages it works pefectly but spit out errors when I try to get the …

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

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