# Ruby

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

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

---

## [Ripper dose't recognize '\_\_ENCODING\_\_' keyword](https://www.ruby-forum.com/t/ripper-doset-recognize-encoding-keyword/149272)

<div class="topic-metadata">

**Author:** [@KIMURA\_Koichi](https://www.ruby-forum.com/u/KIMURA_Koichi)\
**Replies:** 0\
**Last updated:** [September 23, 2008, 7:44am UTC](https://www.ruby-forum.com/t/ripper-doset-recognize-encoding-keyword/149272 "2008-09-23T07:44:01Z")

</div>

e$BLZB\<$G$9!#e(B e$B$H$j$"$($:e(B ruby-deve$B$G?V$-$^$9$,!“I,MW$,$”$l$Pe(B redminee$B$X$NEPO?$b$7$^$9!#e(B Rubye$B$K$D$$$Fe(B Part 32 http://pc11.2ch.net/test/read.cgi/tech/1215531152/589 e$B$G?($l$i$l$F$$$ke(B req…

---

## [Path to Ruby Mastery Weekly Interview Series](https://www.ruby-forum.com/t/path-to-ruby-mastery-weekly-interview-series/149265)

<div class="topic-metadata">

**Author:** [@indianguru](https://www.ruby-forum.com/u/indianguru)\
**Replies:** 0\
**Last updated:** [September 23, 2008, 4:13am UTC](https://www.ruby-forum.com/t/path-to-ruby-mastery-weekly-interview-series/149265 "2008-09-23T04:13:24Z")

</div>

We’re excited to launch a new interview series on the RubyLearning blog - “Path to Ruby Mastery” - by top trainers and developers in the Ruby community, from across the globe. The interview series will provide insigh…

---

## [Ruby Debug with Textmate](https://www.ruby-forum.com/t/ruby-debug-with-textmate/149263)

<div class="topic-metadata">

**Author:** [@rubyfreak](https://www.ruby-forum.com/u/rubyfreak)\
**Replies:** 1\
**Last updated:** [September 23, 2008, 3:26am UTC](https://www.ruby-forum.com/t/ruby-debug-with-textmate/149263 "2008-09-23T03:26:35Z")

</div>

I read the following link about integrating debug with textmate. It mentions going to terminal and typing rdebug -sn ./script/server webrick But that seems like the way to debug a rails app from textmate, not a regu…

---

## [Database Query](https://www.ruby-forum.com/t/database-query/149200)

<div class="topic-metadata">

**Author:** [@gruzurg](https://www.ruby-forum.com/u/gruzurg)\
**Replies:** 2\
**Last updated:** [September 23, 2008, 1:55am UTC](https://www.ruby-forum.com/t/database-query/149200 "2008-09-23T01:55:57Z")

</div>

Hello. Im trying to fetch a value from a field in our database, using this code. selected = @site.db.select(“select car from car\_sale where id=402 AND email=‘removed\_email\_address@domain.invalid’”) But this throws t…

---

## [\[feature:1.9\] ENV#\[\]= and nil](https://www.ruby-forum.com/t/feature-1-9-env-and-nil/149197)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 2\
**Last updated:** [September 23, 2008, 1:37am UTC](https://www.ruby-forum.com/t/feature-1-9-env-and-nil/149197 "2008-09-23T01:37:50Z")

</div>

e$B1sF#$G$9!#e(B 1.8 e$B$G$Oe(B ENV\[“FOO”\] = nil e$B$O4D6-JQ?t$r\>C$7$^$9$,!"e(B1.9 e$B$G$O%(%i!\<$K$J$j!"e(B e$BITJX$G$9!#;R%W%m%;%9$r:n$k$H$-$J$I$G!"0l;~E\*$K4D6-JQ?t$rJQ$($k$?$a$Ke(B env\_foo = ENV\["FOO"\] ENV\["FOO"\] =…

---

## [\[Bug:1.9\] emacs21$B$G?'$,IU$+$J$$(B](https://www.ruby-forum.com/t/bug-1-9-emacs21-b-g-iu-j-b/148711)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 4\
**Last updated:** [September 23, 2008, 1:12am UTC](https://www.ruby-forum.com/t/bug-1-9-emacs21-b-g-iu-j-b/148711 "2008-09-23T01:12:40Z")

</div>

e$B@\>;3OB9-$G$9!#e(B emacs21e$B$Ge(Btrunke$B$Ne(Bruby-mode.ele$B$r;H$&$H?’$,IU$-$^$;$s!#e(B syntax-ppsse$B$H$$$&$N$,L5$$$+$ie(B?

---

## [South Carolina Ruby Conference](https://www.ruby-forum.com/t/south-carolina-ruby-conference/149256)

<div class="topic-metadata">

**Author:** [@Jason\_Dew](https://www.ruby-forum.com/u/Jason_Dew)\
**Replies:** 0\
**Last updated:** [September 23, 2008, 12:38am UTC](https://www.ruby-forum.com/t/south-carolina-ruby-conference/149256 "2008-09-23T00:38:44Z")

</div>

Just wanted to let everyone know that we have opened registration for the South Carolina Ruby Conference http://scrubyconf.colaruby.org/. The conference will be October 18th in Columbia, SC and registration is only …

---

## [Streaming media with net/http](https://www.ruby-forum.com/t/streaming-media-with-net-http/149242)

<div class="topic-metadata">

**Author:** [@wfspoet](https://www.ruby-forum.com/u/wfspoet)\
**Replies:** 2\
**Last updated:** [September 22, 2008, 11:55pm UTC](https://www.ruby-forum.com/t/streaming-media-with-net-http/149242 "2008-09-22T23:55:23Z")

</div>

So I was wondering how one would capture a continuous stream of data (for instance a net radio station or a webcam) with the net/http library? When I use the Net::HTTP#request\_get method, it simply hangs and never gi…

---

## [1.8.x public send?](https://www.ruby-forum.com/t/1-8-x-public-send/149241)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 2\
**Last updated:** [September 22, 2008, 10:20pm UTC](https://www.ruby-forum.com/t/1-8-x-public-send/149241 "2008-09-22T22:20:22Z")

</div>

Oh crud, class A def initialize @b = B.new end def method\_missing(s, \*a, &b) @b.send(s,\*a,&b) end end class B def method\_missing(s,\*a,&b) “HERE” end end A.new.foo How to get “HERE”?

---

## [At\_exit handler \*except\* for fatal runtime error](https://www.ruby-forum.com/t/at-exit-handler-except-for-fatal-runtime-error/148939)

<div class="topic-metadata">

**Author:** [@synergism](https://www.ruby-forum.com/u/synergism)\
**Replies:** 15\
**Last updated:** [September 22, 2008, 10:07pm UTC](https://www.ruby-forum.com/t/at-exit-handler-except-for-fatal-runtime-error/148939 "2008-09-22T22:07:24Z")

</div>

How do we execute a handler (I assume via at\_exit) when a program terminates except when there was a fatal runtime error (e.g. any error such as “divide by zero” that terminates the program)? We thought perhaps ‘calle…

---

## [File path operations?](https://www.ruby-forum.com/t/file-path-operations/149225)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 3\
**Last updated:** [September 22, 2008, 8:15pm UTC](https://www.ruby-forum.com/t/file-path-operations/149225 "2008-09-22T20:15:35Z")

</div>

Ruby has an abstract File/path type which is nice (I’m mainly a Python user and it doesn’t), but it doesn’t seem to provide object-oriented methods to combine file paths, i.e. I can’t go path3 = path1/path2 or somethi…

---

## [Rcov problems](https://www.ruby-forum.com/t/rcov-problems/149239)

<div class="topic-metadata">

**Author:** [@abc](https://www.ruby-forum.com/u/abc)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 8:10pm UTC](https://www.ruby-forum.com/t/rcov-problems/149239 "2008-09-22T20:10:44Z")

</div>

Hi everyone, I’ve tried installing rcov for JRuby using 3 different options, but none of them has worked: Installing rcov from Ruby Gems: ERROR: Failed to build gem native extension. Installing hooligan495-rcov …

---

## [DriverManager Connection Object](https://www.ruby-forum.com/t/drivermanager-connection-object/149089)

<div class="topic-metadata">

**Author:** [@ysriram](https://www.ruby-forum.com/u/ysriram)\
**Replies:** 1\
**Last updated:** [September 22, 2008, 7:57pm UTC](https://www.ruby-forum.com/t/drivermanager-connection-object/149089 "2008-09-22T19:57:05Z")

</div>

Hi, I’m using JRuby+Rails for a reporting application. The underlying reporting engine is Japer Report. I’m also using jdbc+activerecord+oracle adapter. To fill-out the Jasper Report I need to pass Jasper ‘fill-manag…

---

## [CSV Goes M17n](https://www.ruby-forum.com/t/csv-goes-m17n/149145)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 1\
**Last updated:** [September 22, 2008, 5:58pm UTC](https://www.ruby-forum.com/t/csv-goes-m17n/149145 "2008-09-22T17:58:47Z")

</div>

I’ve just finished an extensive reworking of the standard CSV library in Ruby 1.9 (formerly FasterCSV). CSV’s parser and generator are now m17n aware. This means they should work naturally with your data in any non-…

---

## [\[Feature #542\] cgi.rb : CGI::unescape return encoding](https://www.ruby-forum.com/t/feature-542-cgi-rb-cgi-unescape-return-encoding/147596)

<div class="topic-metadata">

**Author:** [@Takeyuki\_F](https://www.ruby-forum.com/u/Takeyuki_F)\
**Replies:** 47\
**Last updated:** [September 22, 2008, 5:01pm UTC](https://www.ruby-forum.com/t/feature-542-cgi-rb-cgi-unescape-return-encoding/147596 "2008-09-22T17:01:10Z")

</div>

Feature #542: cgi.rb : CGI::unescape return encoding http://redmine.ruby-lang.org/issues/show/542 e$B5/I\<\<Te(B: Takeyuki F. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal CGI::unescapee$B$O8=:\_$O0z?t$Ne(Bencodinge$B$Ge…

---

## [For or each?](https://www.ruby-forum.com/t/for-or-each/149116)

<div class="topic-metadata">

**Author:** [@tekwiz](https://www.ruby-forum.com/u/tekwiz)\
**Replies:** 37\
**Last updated:** [September 22, 2008, 4:16pm UTC](https://www.ruby-forum.com/t/for-or-each/149116 "2008-09-22T16:16:31Z")

</div>

I just used the new roodi gem to check out some of my code that has a lot of algorithmic code. It gave me a number of issues with the phrase “Don’t use ‘for’ loops. Use Enumerable.each instead.” I prefer for loops a…

---

## [Extract contents from pdf (pdf reader)](https://www.ruby-forum.com/t/extract-contents-from-pdf-pdf-reader/149162)

<div class="topic-metadata">

**Author:** [@P\_Rajmohan\_BSA1719](https://www.ruby-forum.com/u/P_Rajmohan_BSA1719)\
**Replies:** 1\
**Last updated:** [September 22, 2008, 4:00pm UTC](https://www.ruby-forum.com/t/extract-contents-from-pdf-pdf-reader/149162 "2008-09-22T16:00:56Z")

</div>

Hi, I am looking for a way to read the contents of the pdf document. Could you pls advice on how to go about it? I have tried using the pdf-reader gem but ran into issues. Are there any other gems out there? The issu…

---

## [Merging two arrays](https://www.ruby-forum.com/t/merging-two-arrays/149206)

<div class="topic-metadata">

**Author:** [@crenner](https://www.ruby-forum.com/u/crenner)\
**Replies:** 4\
**Last updated:** [September 22, 2008, 3:45pm UTC](https://www.ruby-forum.com/t/merging-two-arrays/149206 "2008-09-22T15:45:15Z")

</div>

Hi, in Ruby, I have two arrays: products = Array.new products \<\< \[“Amazon”,121212,“Harry Potter”\] products \<\< \[“Amazon”,242424,“John Grisham”\] products \<\< \[“Amazon”,353535,“Michael Crichton”\] links = Array.new lin…

---

## [System(" rake db:sample\_data:hoop)](https://www.ruby-forum.com/t/system-rake-dbhoop/149104)

<div class="topic-metadata">

**Author:** [@janus](https://www.ruby-forum.com/u/janus)\
**Replies:** 9\
**Last updated:** [September 22, 2008, 3:37pm UTC](https://www.ruby-forum.com/t/system-rake-dbhoop/149104 "2008-09-22T15:37:42Z")

</div>

Hi all, I need help , why is it that the above code would not run on windows vista? Is there a known issue why system("…") does not work in vista box? Janus

---

## [Symbol#re\_s](https://www.ruby-forum.com/t/symbol-re-s/149102)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 9\
**Last updated:** [September 22, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/symbol-re-s/149102 "2008-09-22T15:17:34Z")

</div>

Came up with a great little extension today for the Symbol class. One that also shows off Facets’ Functor class: require ‘facets/functor’ class Symbol # Convert symbol to string, apply string method # and convert bac…

---

## [ThreadError: not owner](https://www.ruby-forum.com/t/threaderror-not-owner/149117)

<div class="topic-metadata">

**Author:** [@tbaustert](https://www.ruby-forum.com/u/tbaustert)\
**Replies:** 9\
**Last updated:** [September 22, 2008, 1:06pm UTC](https://www.ruby-forum.com/t/threaderror-not-owner/149117 "2008-09-22T13:06:57Z")

</div>

Hello. I had the following code and it worked in Ruby that came with some old Windows One-Click Installer (now I don’t know which version it was): m=Mutex::new m.lock Thread:new { something1 m.unlock something2 } …

---

## [Download a file from a site that needs authentication](https://www.ruby-forum.com/t/download-a-file-from-a-site-that-needs-authentication/149120)

<div class="topic-metadata">

**Author:** [@azalar](https://www.ruby-forum.com/u/azalar)\
**Replies:** 3\
**Last updated:** [September 22, 2008, 12:38pm UTC](https://www.ruby-forum.com/t/download-a-file-from-a-site-that-needs-authentication/149120 "2008-09-22T12:38:59Z")

</div>

I have a membership to a web site that needs authentication before you can download the file. How can i download the file and authenticate so that it returns me the file? My initial research suggest i need to use bas…

---

## [CGI::QueryExtension::MorphingBody$B$K$D$$$F(B](https://www.ruby-forum.com/t/cgi-morphingbody-b-k-d-f-b/149179)

<div class="topic-metadata">

**Author:** [@Fujioka](https://www.ruby-forum.com/u/Fujioka)\
**Replies:** 2\
**Last updated:** [September 22, 2008, 12:11pm UTC](https://www.ruby-forum.com/t/cgi-morphingbody-b-k-d-f-b/149179 "2008-09-22T12:11:24Z")

</div>

e$BF#2,$G$9!#e(B cgi.rbe$B$N%^%k%A%Q!\<%H$K%F%3F~$l$7$h$&$H;W$C$F$$$k$N$G$9$,!“e(B MorphingBodye$B$NF3F~$N$H$-$K$=$b$=$bF0$$$F$$$?$N$+$I$&$+$K5?Ld$,$”$j$^$9!#e(B http://redmine.ruby-lang.org/repositories/diff/ruby-19/l…

---

## [JRuby debugging problem in eclipse](https://www.ruby-forum.com/t/jruby-debugging-problem-in-eclipse/149189)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 12:06pm UTC](https://www.ruby-forum.com/t/jruby-debugging-problem-in-eclipse/149189 "2008-09-22T12:06:06Z")

</div>

I’m trying to get some JRuby low-level debugging happening in Eclipse, using Ganymede, jruby trunk, RadRails, and latest debug gems. Compiling using jdk 1.6.0\_07. I’m almost there. I’m trying to debug the java code fo…

---

## [Ruby GSUB question](https://www.ruby-forum.com/t/ruby-gsub-question/149170)

<div class="topic-metadata">

**Author:** [@binkly](https://www.ruby-forum.com/u/binkly)\
**Replies:** 6\
**Last updated:** [September 22, 2008, 12:06pm UTC](https://www.ruby-forum.com/t/ruby-gsub-question/149170 "2008-09-22T12:06:05Z")

</div>

Hello All, In Ruby if I have the string: Remove How would I go about replacing the single quotes ', with a backslash and single quote? ’ Ultimately I’d like to arrive at the string below: \<a href="#" onclick="new …

---

## [Code Review: RandomRubyFixes01](https://www.ruby-forum.com/t/code-review-randomrubyfixes01/149129)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 4\
**Last updated:** [September 22, 2008, 11:04am UTC](https://www.ruby-forum.com/t/code-review-randomrubyfixes01/149129 "2008-09-22T11:04:11Z")

</div>

tfpt review “/shelveset:RandomRubyFixes01;REDMOND\\curth” Comment : Fix many bugs in Marshal; now passes all but 5 tests Implement Time.\_load and Time.\_dump to support marshaling of Time objects Implement “arity” fu…

---

## [\[REXML\]\[Bug\] Element#text= cause NoMethodError](https://www.ruby-forum.com/t/rexml-bug-element-text-cause-nomethoderror/149180)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 10:16am UTC](https://www.ruby-forum.com/t/rexml-bug-element-text-cause-nomethoderror/149180 "2008-09-22T10:16:01Z")

</div>

e$B2!ED$G$9!#e(B e$B?=$7Lu$J$$$G$9$,e(B redmine e$B$N1?MQ%\]%j%7!\<$rM}2r$7$F$$$J$$$N$G!"e(B e$B$R$H$^$:e(B ML e$B$K%\]%9%H$5$;$FD:$-$^$9!#e(B Element#text= e$B$Ke(B false e$B$rEO$9$He(B Parent#add e$B$K%k!\<%F%#%s%0$5$…

---

## [About regexp](https://www.ruby-forum.com/t/about-regexp/149168)

<div class="topic-metadata">

**Author:** [@Kyung\_won\_C](https://www.ruby-forum.com/u/Kyung_won_C)\
**Replies:** 2\
**Last updated:** [September 22, 2008, 9:24am UTC](https://www.ruby-forum.com/t/about-regexp/149168 "2008-09-22T09:24:19Z")

</div>

“a 1 b”.sub(/\\b1\\b/, “2”) =\> “a 2 b” “a \* b”.sub(/\\b\*\\b/, “2”) =\> “a \* b” # Why not “a 2 b” ??? How ?? ############## Help Me^^ ##############

---

## [Grouping array elements while preserving order?](https://www.ruby-forum.com/t/grouping-array-elements-while-preserving-order/149123)

<div class="topic-metadata">

**Author:** [@mattclarkson](https://www.ruby-forum.com/u/mattclarkson)\
**Replies:** 2\
**Last updated:** [September 22, 2008, 7:30am UTC](https://www.ruby-forum.com/t/grouping-array-elements-while-preserving-order/149123 "2008-09-22T07:30:42Z")

</div>

Hi all, I’ve run into a number of situations where I need to group an array while preserving order. For example, grouping the results of a database query without affecting their order or introducing extraneous logic i…

---

## [Synchronize clock](https://www.ruby-forum.com/t/synchronize-clock/149161)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 1\
**Last updated:** [September 22, 2008, 4:51am UTC](https://www.ruby-forum.com/t/synchronize-clock/149161 "2008-09-22T04:51:38Z")

</div>

is there any gem or library that would synchronise the xp clock with the atomic clock.

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

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