# Ruby

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

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

---

## [Iconv transfer code](https://www.ruby-forum.com/t/iconv-transfer-code/187108)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 13\
**Last updated:** [April 19, 2010, 10:28pm UTC](https://www.ruby-forum.com/t/iconv-transfer-code/187108 "2010-04-19T22:28:57Z")

</div>

in my computer(ubuntu9.1+ruby1.9): pt@pt-laptop:~$ irb irb(main):001:0\> require ‘iconv’ =\> true irb(main):002:0\> str = Iconv.iconv(‘GBK’, ‘UTF-8’, ‘æˆ‘è¯´’).to\_s =\> “\[“ï¿½ï¿½Ëµ”\]” in my friend’s(ubuntu9.1+ruby1.9): …

---

## [\[Bug #2704\] CGI::rfc1123\_date causes NameError](https://www.ruby-forum.com/t/bug-2704-cgi-rfc1123-date-causes-nameerror/182740)

<div class="topic-metadata">

**Author:** [@Naoto\_Takai](https://www.ruby-forum.com/u/Naoto_Takai)\
**Replies:** 1\
**Last updated:** [April 19, 2010, 8:01pm UTC](https://www.ruby-forum.com/t/bug-2704-cgi-rfc1123-date-causes-nameerror/182740 "2010-04-19T20:01:01Z")

</div>

Bug #2704: CGI::rfc1123\_date causes NameError http://redmine.ruby-lang.org/issues/show/2704 e$B5/I\<\<Te(B: Naoto Takai e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.9.1p376 (2009-12-07 revision 26041) \[…

---

## [Yanked 'ansicode' gem; use 'ansi' instead](https://www.ruby-forum.com/t/yanked-ansicode-gem-use-ansi-instead/187202)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 0\
**Last updated:** [April 19, 2010, 6:52pm UTC](https://www.ruby-forum.com/t/yanked-ansicode-gem-use-ansi-instead/187202 "2010-04-19T18:52:29Z")

</div>

This is just a simple FYI, since there is no way that I know of to post a notice to the gem’s rubygems.org page. I finally yanked the ‘ansicode’ gem. If you were using this gem, please switch to the ‘ansi’ gem, its de…

---

## [\[Bug:trunk\] rubyspec: Net::HTTPHeader#content\_range returns a Range object that represents the 'Con](https://www.ruby-forum.com/t/bug-trunk-rubyspec-net-httpheader-content-range-returns-a-range-object-that-represents-the-con/182544)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 2\
**Last updated:** [April 19, 2010, 6:24pm UTC](https://www.ruby-forum.com/t/bug-trunk-rubyspec-net-httpheader-content-range-returns-a-range-object-that-represents-the-con/182544 "2010-04-19T18:24:23Z")

</div>

e$B$J$+$@$5$se(B e$B1sF#$G$9!#e(B class C include Net::HTTPHeader def initialize initialize\_http\_header({}) end end c = C.new c\[“Content-Range”\] = “bytes 0-499/1234” p c.content\_range e$B$N=PNO$,!"e(Br26344 e$…

---

## [New inspect() behavior with 1.5](https://www.ruby-forum.com/t/new-inspect-behavior-with-1-5/187074)

<div class="topic-metadata">

**Author:** [@Reto\_SchSSS\_ttel](https://www.ruby-forum.com/u/Reto_SchSSS_ttel)\
**Replies:** 4\
**Last updated:** [April 19, 2010, 3:29pm UTC](https://www.ruby-forum.com/t/new-inspect-behavior-with-1-5/187074 "2010-04-19T15:29:20Z")

</div>

Heya With JRuby 1.5 i’ve noticed that inspect() for java objects often is the result of toString(). So for example the output of java.io.File.new("/path/to/file") is “/path/to/file”, where it used to be “Java::JavaIo…

---

## [\[BUG\] Segmentation fault](https://www.ruby-forum.com/t/bug-segmentation-fault/187183)

<div class="topic-metadata">

**Author:** [@ins](https://www.ruby-forum.com/u/ins)\
**Replies:** 0\
**Last updated:** [April 19, 2010, 2:09pm UTC](https://www.ruby-forum.com/t/bug-segmentation-fault/187183 "2010-04-19T14:09:33Z")

</div>

I’m writing a bridge for ruby to python. \[example\] 50 static PyObject \*ruby\_require(PyObject \*self, PyObject \*args){ 51 static const char \*module = NULL; 52 if (!PyArg\_ParseTuple(args, “s”, &module)){ 53 ret…

---

## [Bug in ActiveRecord-JDBC with select\_(one|all) and Type Conversion](https://www.ruby-forum.com/t/bug-in-activerecord-jdbc-with-select-one-all-and-type-conversion/187182)

<div class="topic-metadata">

**Author:** [@Gregor\_Schmidt](https://www.ruby-forum.com/u/Gregor_Schmidt)\
**Replies:** 0\
**Last updated:** [April 19, 2010, 1:07pm UTC](https://www.ruby-forum.com/t/bug-in-activerecord-jdbc-with-select-one-all-and-type-conversion/187182 "2010-04-19T13:07:40Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, while trying to get all Redmine tests running under JRuby, I ran into a bug where I got different results from ActiveRecord::Base.connection.select\_all(‘…sql…’) i…

---

## [Fcgi or ruby-fcgi on Windows-Xp](https://www.ruby-forum.com/t/fcgi-or-ruby-fcgi-on-windows-xp/187059)

<div class="topic-metadata">

**Author:** [@gorkimaximum](https://www.ruby-forum.com/u/gorkimaximum)\
**Replies:** 2\
**Last updated:** [April 19, 2010, 11:55am UTC](https://www.ruby-forum.com/t/fcgi-or-ruby-fcgi-on-windows-xp/187059 "2010-04-19T11:55:35Z")

</div>

Hello, Finally i’ve could install fcgi and ruby-fcgi on Windows-Xp. The command to do it was: gem install fcgi – --with-opt-dir=c:\\fcgi --remote or gem install ruby-fcgi – --with-opt-dir=c:\\fcgi --remote Where…

---

## [Jruby-Bug or wrong Java code?](https://www.ruby-forum.com/t/jruby-bug-or-wrong-java-code/186784)

<div class="topic-metadata">

**Author:** [@dalton](https://www.ruby-forum.com/u/dalton)\
**Replies:** 1\
**Last updated:** [April 19, 2010, 11:39am UTC](https://www.ruby-forum.com/t/jruby-bug-or-wrong-java-code/186784 "2010-04-19T11:39:16Z")

</div>

Hello there, I have a problem with a third-party-Jar file. The Jar file tries to establish a connection to Jackrabbit (Content Repository). For that connection a properties file is located in the Jar file. When I try…

---

## [Life without Method Overloading?](https://www.ruby-forum.com/t/life-without-method-overloading/187171)

<div class="topic-metadata">

**Author:** [@derek](https://www.ruby-forum.com/u/derek)\
**Replies:** 6\
**Last updated:** [April 19, 2010, 10:47am UTC](https://www.ruby-forum.com/t/life-without-method-overloading/187171 "2010-04-19T10:47:44Z")

</div>

How do Ruby programmers handle method overloading? In Java, I could easily create several methods of the same name that accept a variety of input. I know in Ruby, using \*args you can accept an unlimited number of par…

---

## [\[Bug #3170\] timeout() does'nt work with Non Integer/Float Argument](https://www.ruby-forum.com/t/bug-3170-timeout-doesnt-work-with-non-integer-float-argument/187167)

<div class="topic-metadata">

**Author:** [@Kyosuke\_MOROHASHI](https://www.ruby-forum.com/u/Kyosuke_MOROHASHI)\
**Replies:** 1\
**Last updated:** [April 19, 2010, 10:07am UTC](https://www.ruby-forum.com/t/bug-3170-timeout-doesnt-work-with-non-integer-float-argument/187167 "2010-04-19T10:07:56Z")

</div>

Bug #3170: timeout() does’nt work with Non Integer/Float Argument http://redmine.ruby-lang.org/issues/show/3170 e$B5/I\<\<Te(B: Kyosuke MOROHASHI e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: lib ruby -…

---

## [Rdoc-rake 1.0 Released](https://www.ruby-forum.com/t/rdoc-rake-1-0-released/187176)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [April 19, 2010, 9:59am UTC](https://www.ruby-forum.com/t/rdoc-rake-1-0-released/187176 "2010-04-19T09:59:08Z")

</div>

rdoc-rake version 1.0 has been released! http://rdoc.rubyforge.org/rdoc-rake RDoc plugin for documenting rake tasks Don’t forget to include your Rakefile in the extra\_rdoc\_files list of your Gem::Specification! Cha…

---

## [\[Bug #2976\] cucumber$B$G(BSEGV](https://www.ruby-forum.com/t/bug-2976-cucumber-b-g-bsegv/185291)

<div class="topic-metadata">

**Author:** [@Sakuro\_OZAWA](https://www.ruby-forum.com/u/Sakuro_OZAWA)\
**Replies:** 5\
**Last updated:** [April 19, 2010, 6:23am UTC](https://www.ruby-forum.com/t/bug-2976-cucumber-b-g-bsegv/185291 "2010-04-19T06:23:43Z")

</div>

Bug #2976: cucumbere$B$Ge(BSEGV http://redmine.ruby-lang.org/issues/show/2976 e$B5/I\<\<Te(B: Sakuro OZAWA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.9.2dev (2010-03-17 trunk 26961) \[x86\_64-darwin10.2…

---

## [\[Bug #3168\] TypeError in Timeout.timeout](https://www.ruby-forum.com/t/bug-3168-typeerror-in-timeout-timeout/187164)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 1\
**Last updated:** [April 19, 2010, 5:49am UTC](https://www.ruby-forum.com/t/bug-3168-typeerror-in-timeout-timeout/187164 "2010-04-19T05:49:11Z")

</div>

Bug #3168: TypeError in Timeout.timeout http://redmine.ruby-lang.org/issues/show/3168 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: lib, Target version: 1.9.2 ruby -v:…

---

## [(WILL PAY) Blog combined with reading](https://www.ruby-forum.com/t/will-pay-blog-combined-with-reading/187153)

<div class="topic-metadata">

**Author:** [@guru\_101](https://www.ruby-forum.com/u/guru_101)\
**Replies:** 3\
**Last updated:** [April 19, 2010, 5:20am UTC](https://www.ruby-forum.com/t/will-pay-blog-combined-with-reading/187153 "2010-04-19T05:20:32Z")

</div>

Blog: I will pay for someone to solve this problem for me! post ur email or msn or yim! Basically, what i got at the moment that works is the reading, ADD and EDIT and delete posts that people have made, i have also…

---

## [How to scrap data with Nokogiri from this page?](https://www.ruby-forum.com/t/how-to-scrap-data-with-nokogiri-from-this-page/246531)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 0\
**Last updated:** [April 19, 2010, 4:20am UTC](https://www.ruby-forum.com/t/how-to-scrap-data-with-nokogiri-from-this-page/246531 "2010-04-19T04:20:59Z")

</div>

how to scrap data with Nokogiri from this page? is it easy for Nokogiri to scrap data?maybe or maybe not ,because of different kinds of web structures. please the following web page, there is a table in it ,i can’t…

---

## [Code Review: Etc module for Mono](https://www.ruby-forum.com/t/code-review-etc-module-for-mono/187109)

<div class="topic-metadata">

**Author:** [@ryan](https://www.ruby-forum.com/u/ryan)\
**Replies:** 5\
**Last updated:** [April 19, 2010, 3:27am UTC](https://www.ruby-forum.com/t/code-review-etc-module-for-mono/187109 "2010-04-19T03:27:00Z")

</div>

git diff attached Implements the Etc module for Mono Adds RubySpec updates for the Etc library Additional updates (dev.sh, ir.sh, many path-related changes) to allow \*nix devs to run irtests, though this isn’t compl…

---

## [Ri (doc tool) under ironruby](https://www.ruby-forum.com/t/ri-doc-tool-under-ironruby/187162)

<div class="topic-metadata">

**Author:** [@Morten\_Maxild](https://www.ruby-forum.com/u/Morten_Maxild)\
**Replies:** 0\
**Last updated:** [April 18, 2010, 11:27pm UTC](https://www.ruby-forum.com/t/ri-doc-tool-under-ironruby/187162 "2010-04-18T23:27:37Z")

</div>

Hi, I cannot get “ri” to work under ironruby 1.0v4. When ever I try to use the iri.bat command (“PS \> iri --help” or “PS \> ir -S ri --help”) I receive the following std output: "No ri documentation found in: Was rdo…

---

## [JRuby 1.5.0RC1 - Startup Times](https://www.ruby-forum.com/t/jruby-1-5-0rc1-startup-times/187150)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 2\
**Last updated:** [April 18, 2010, 11:22pm UTC](https://www.ruby-forum.com/t/jruby-1-5-0rc1-startup-times/187150 "2010-04-18T23:22:56Z")

</div>

Hi, Startup times are important for the command line toolkit that I have been writing in JRuby. I did some very quick tests once the JRuby 1.5.0RC1 release was made, with regards to startup times, e.g. jruby -b -v -…

---

## [MD5 16 octet - how to compute?](https://www.ruby-forum.com/t/md5-16-octet-how-to-compute/187155)

<div class="topic-metadata">

**Author:** [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Replies:** 2\
**Last updated:** [April 18, 2010, 11:17pm UTC](https://www.ruby-forum.com/t/md5-16-octet-how-to-compute/187155 "2010-04-18T23:17:05Z")

</div>

Hi there I am trying to compute the 16 octet MD5 hash. I looked in the digest/md5 and i could not figure it out. i used Digest::MD5.hexdigest(value) but this computes 32 if I am not mistaken. Any idea please?

---

## [McBean 0.3.0 released](https://www.ruby-forum.com/t/mcbean-0-3-0-released/187159)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 0\
**Last updated:** [April 18, 2010, 9:14pm UTC](https://www.ruby-forum.com/t/mcbean-0-3-0-released/187159 "2010-04-18T21:14:09Z")

</div>

mcbean version 0.3.0 has been released! http://github.com/flavorjones/mcbean \<http://mcbean.heroku.com/doc/index.html (rdocs)\> \<http://mcbean.heroku.com (live demo)\> == Description McBean can convert documents from o…

---

## [Running script on Windows XP](https://www.ruby-forum.com/t/running-script-on-windows-xp/187157)

<div class="topic-metadata">

**Author:** [@joe-black](https://www.ruby-forum.com/u/joe-black)\
**Replies:** 3\
**Last updated:** [April 18, 2010, 8:47pm UTC](https://www.ruby-forum.com/t/running-script-on-windows-xp/187157 "2010-04-18T20:47:49Z")

</div>

Hi I’m using Ruby 1.9.1p378 on Windows XP and I’m having a very bad time trying to run a script with no errors - I am opening a CMD windows and typing ruby test.rb Then I am opening several HTML page - I am NOT ‘pu…

---

## [Rails errorm on FreeBSD-RELEASE](https://www.ruby-forum.com/t/rails-errorm-on-freebsd-release/187110)

<div class="topic-metadata">

**Author:** [@Aston](https://www.ruby-forum.com/u/Aston)\
**Replies:** 1\
**Last updated:** [April 18, 2010, 11:02am UTC](https://www.ruby-forum.com/t/rails-errorm-on-freebsd-release/187110 "2010-04-18T11:02:51Z")

</div>

Hello, I svn’ed and compiled ruby19 trunk $ ruby19 -v ruby 1.9.2dev (2010-04-12 trunk 27317) \[x86\_64-freebsd8.0\] $ uname -a FreeBSD raptor 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Thu Apr 1 01:20:45 UTC 2010 …

---

## [Undifined local variable or method error](https://www.ruby-forum.com/t/undifined-local-variable-or-method-error/187128)

<div class="topic-metadata">

**Author:** [@simbolla](https://www.ruby-forum.com/u/simbolla)\
**Replies:** 4\
**Last updated:** [April 18, 2010, 10:57am UTC](https://www.ruby-forum.com/t/undifined-local-variable-or-method-error/187128 "2010-04-18T10:57:59Z")

</div>

Hi all, Below is my code h={} arr=\[\] def gethash h\[1\]=0 return h end arr\[0\]=gethash puts arr\[0\].each {|k,v| puts “key #{k} value #{v}”} For the above i get error saying “Undifined local variable or method ‘h’ …

---

## [Rchardet wrong message?](https://www.ruby-forum.com/t/rchardet-wrong-message/187139)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 1\
**Last updated:** [April 18, 2010, 9:23am UTC](https://www.ruby-forum.com/t/rchardet-wrong-message/187139 "2010-04-18T09:23:37Z")

</div>

in my console: sudo gem install rchardet \[sudo\] password for pt: Successfully installed rchardet-1.3 1 gem installed Installing ri documentation for rchardet-1.3… Updating class cache with 2274 classes… Installing…

---

## [Memoize and GC](https://www.ruby-forum.com/t/memoize-and-gc/186880)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 11\
**Last updated:** [April 18, 2010, 4:40am UTC](https://www.ruby-forum.com/t/memoize-and-gc/186880 "2010-04-18T04:40:58Z")

</div>

I have a quick question. I just re-read: http://www.engineyard.com/blog/2010/memoization-and-id2ref/ I am wondering about garbage collection. Am I right to think that using def foo @foo ||= something end will mean…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/187134)

<div class="topic-metadata">

**Author:** [@Alan\_Whitehouse](https://www.ruby-forum.com/u/Alan_Whitehouse)\
**Replies:** 0\
**Last updated:** [April 18, 2010, 2:02am UTC](https://www.ruby-forum.com/t/unsubscribe/187134 "2010-04-18T02:02:21Z")

</div>

unsubscribe

---

## [1.9's New Methods](https://www.ruby-forum.com/t/1-9s-new-methods/186997)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 7\
**Last updated:** [April 18, 2010, 12:55am UTC](https://www.ruby-forum.com/t/1-9s-new-methods/186997 "2010-04-18T00:55:40Z")

</div>

First a big shout-out to Marc-Andre L. and his backports project. Nice work. Now I want to ask if others have noticed all the new methods being add to 1.9+? I’m quite happy about vast majority of it, but there was at …

---

## [Pagi something :(](https://www.ruby-forum.com/t/pagi-something/187133)

<div class="topic-metadata">

**Author:** [@guru\_101](https://www.ruby-forum.com/u/guru_101)\
**Replies:** 1\
**Last updated:** [April 18, 2010, 12:53am UTC](https://www.ruby-forum.com/t/pagi-something/187133 "2010-04-18T00:53:55Z")

</div>

Errors, errors and more errors :frowning: ######################## NameError in UserController#index uninitialized constant ApplicationController::Paginator ######################## RAILS\_ROOT: C:/Users/\[UsEr\]/Docu…

---

## [Announcing ad\_agency version 0.1.0](https://www.ruby-forum.com/t/announcing-ad-agency-version-0-1-0/187132)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 0\
**Last updated:** [April 17, 2010, 11:21pm UTC](https://www.ruby-forum.com/t/announcing-ad-agency-version-0-1-0/187132 "2010-04-17T23:21:26Z")

</div>

Announcing ad\_agency version 0.1.0 An extension to Jeweler for generating announcements One of the facilities I missed in moving from hoe to jeweler was the ability to easily announce new versions of gems. ad\_agency…

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

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