# Ruby

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

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

---

## [USA Today News](https://www.ruby-forum.com/t/usa-today-news/174430)

<div class="topic-metadata">

**Author:** [@hina\_jaan](https://www.ruby-forum.com/u/hina_jaan)\
**Replies:** 0\
**Last updated:** [August 26, 2009, 6:11pm UTC](https://www.ruby-forum.com/t/usa-today-news/174430 "2009-08-26T18:11:27Z")

</div>

hey guys USA Today News Aug 2009 … Breaking news on weather, sports, world, science, financial, technology, travel, national, economy, and entertainment news provided l http://usatoday-4u.blogspot.com/

---

## [GemInstaller 0.5.3 Released](https://www.ruby-forum.com/t/geminstaller-0-5-3-released/174429)

<div class="topic-metadata">

**Author:** [@superwick](https://www.ruby-forum.com/u/superwick)\
**Replies:** 0\
**Last updated:** [August 26, 2009, 6:10pm UTC](https://www.ruby-forum.com/t/geminstaller-0-5-3-released/174429 "2009-08-26T18:10:51Z")

</div>

GemInstaller 0.5.3 has been released! GemInstaller by Chad W. http://geminstaller.rubyforge.org == CHANGES 0.5.3 / 2009-08-25 Many long overdue bugfixes and patches, see Tickets - GemInstaller - thewoolleyweb for …

---

## [\[BUG:1.9\] ||= &&= doesn't return rval, but result of method](https://www.ruby-forum.com/t/bug-1-9-doesnt-return-rval-but-result-of-method/174431)

<div class="topic-metadata">

**Author:** [@Yugui](https://www.ruby-forum.com/u/Yugui)\
**Replies:** 0\
**Last updated:** [August 26, 2009, 6:09pm UTC](https://www.ruby-forum.com/t/bug-1-9-doesnt-return-rval-but-result-of-method/174431 "2009-08-26T18:09:41Z")

</div>

Redminee$B%W%m%8%'%/%H08$KMh$F$7$^$C$?e(Bissuee$B$rE\>Aw$7$^$9!#e(B ---------- e$BE\>Aw%a%C%;!\<%8e(B ---------- From: Joshua H. removed\_email\_address@domain.invalid e$BF|IUe(B: 2009/08/26 11:01 e$B7oL\>e(B: \[redmine4rub…

---

## [Help directory name issue](https://www.ruby-forum.com/t/help-directory-name-issue/174339)

<div class="topic-metadata">

**Author:** [@ahmet](https://www.ruby-forum.com/u/ahmet)\
**Replies:** 5\
**Last updated:** [August 26, 2009, 5:50pm UTC](https://www.ruby-forum.com/t/help-directory-name-issue/174339 "2009-08-26T17:50:55Z")

</div>

I am searching inside of the files ,like this unless /.\*test/.match( file\_name ) || /.\*Test/.match( file\_name ) text = File.read(file\_name) text.scan(/find/) do |it| $files \<\< ("#{it} —\> #{File.basename(file\_name) } …

---

## [Rb\_str\_conv\_for\_path](https://www.ruby-forum.com/t/rb-str-conv-for-path/174273)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 2\
**Last updated:** [August 26, 2009, 5:43pm UTC](https://www.ruby-forum.com/t/rb-str-conv-for-path/174273 "2009-08-26T17:43:18Z")

</div>

e$B$3$s$K$A$O!"$J$+$\`$ie(B(e$B$&e(B)e$B$G$9!#e(B rb\_str\_conv\_for\_path()e$B$H$$$&e(BC APIe$B$re(Btrunke$B$KDI2C$7$?$$$H9M$($Fe(B e$B$$$k$N$G$9$,!"$$$$$G$7$g$&$+e(B? e$BL\\E\*$O!"%Q%9L\>$re(BOSe$B$K0z$-EO$9:\]$K!“E,@Z$J%(%…

---

## [Zenprofile (event\_hook?) on Ruby 1.9 woes](https://www.ruby-forum.com/t/zenprofile-event-hook-on-ruby-1-9-woes/174420)

<div class="topic-metadata">

**Author:** [@Shot\_SPiotr\_S.S](https://www.ruby-forum.com/u/Shot_SPiotr_S.S)\
**Replies:** 0\
**Last updated:** [August 26, 2009, 5:21pm UTC](https://www.ruby-forum.com/t/zenprofile-event-hook-on-ruby-1-9-woes/174420 "2009-08-26T17:21:02Z")

</div>

Iâ€™m trying to profile my Ruby 1.9 code with zenprofile, but a simple â€˜gem install zenprofileâ€™ and a subsequent profiling attempt breaks: shot@devielle:~/PhD/art-decomp$ time zenprofile bin/inputs kiss/s510 /home…

---

## [Ruby-net-ldap search result pagination](https://www.ruby-forum.com/t/ruby-net-ldap-search-result-pagination/173913)

<div class="topic-metadata">

**Author:** [@paragados](https://www.ruby-forum.com/u/paragados)\
**Replies:** 2\
**Last updated:** [August 26, 2009, 8:28am UTC](https://www.ruby-forum.com/t/ruby-net-ldap-search-result-pagination/173913 "2009-08-26T08:28:21Z")

</div>

Hi, I’m new to ldap and I need to paginate the search result that it will return. Is there a control that needs to be set like in offset in DB? Or does will paginate work with ruby-net-ldap? Thanks.

---

## [Problem with Iconv](https://www.ruby-forum.com/t/problem-with-iconv/174373)

<div class="topic-metadata">

**Author:** [@yankees26](https://www.ruby-forum.com/u/yankees26)\
**Replies:** 0\
**Last updated:** [August 25, 2009, 9:18pm UTC](https://www.ruby-forum.com/t/problem-with-iconv/174373 "2009-08-25T21:18:50Z")

</div>

Hello! Here is my code: require ‘iconv’ result = Iconv.iconv(‘ascii//translit//IGNORE’, ‘utf-8’, “zaÅ¼Ã³Å‚Ä‡ gÄ™Å›lÄ… jaÅºÅ„”) puts result.to\_s.gsub(/\[^\\x00-\\x7F\]+/, ‘’).gsub(/\[^\\w\_ -\]+/i, ‘’) Result (Mac OS …

---

## [I can't use DBI with ruby mingw32 on windows](https://www.ruby-forum.com/t/i-cant-use-dbi-with-ruby-mingw32-on-windows/174353)

<div class="topic-metadata">

**Author:** [@triplem](https://www.ruby-forum.com/u/triplem)\
**Replies:** 0\
**Last updated:** [August 25, 2009, 3:09pm UTC](https://www.ruby-forum.com/t/i-cant-use-dbi-with-ruby-mingw32-on-windows/174353 "2009-08-25T15:09:41Z")

</div>

I use DBI :version =\> 0.4.1 with activerecord-sqlserver-adapter-1.0.0.9250 on both ruby’s version. The same rails application that works on mswin32, doesn’t work on mingw32, i obtain this message: Unable to load driv…

---

## [INNER JOINING Two Arrays](https://www.ruby-forum.com/t/inner-joining-two-arrays/174299)

<div class="topic-metadata">

**Author:** [@dandiebolt](https://www.ruby-forum.com/u/dandiebolt)\
**Replies:** 3\
**Last updated:** [August 25, 2009, 2:21pm UTC](https://www.ruby-forum.com/t/inner-joining-two-arrays/174299 "2009-08-25T14:21:17Z")

</div>

I have two arrays a and b which I need to iterate through simultaneously creating essentially an “INNER JOIN” on the values of the two arrays. Both arrays contain integers and are sorted in ascending order. The first …

---

## [Asynchronous process to process pipe IO](https://www.ruby-forum.com/t/asynchronous-process-to-process-pipe-io/174312)

<div class="topic-metadata">

**Author:** [@pitosalas](https://www.ruby-forum.com/u/pitosalas)\
**Replies:** 11\
**Last updated:** [August 25, 2009, 2:08pm UTC](https://www.ruby-forum.com/t/asynchronous-process-to-process-pipe-io/174312 "2009-08-25T14:08:24Z")

</div>

This is slightly subtle question about how a process that reads from a pipe that is being written to by another process may run asynchronously. Here’s a code snippet: def start\_processing open("|-", “r”) do |worker| …

---

## [\_why's "suicide" note?](https://www.ruby-forum.com/t/whys-suicide-note/174295)

<div class="topic-metadata">

**Author:** [@graza](https://www.ruby-forum.com/u/graza)\
**Replies:** 11\
**Last updated:** [August 25, 2009, 11:42am UTC](https://www.ruby-forum.com/t/whys-suicide-note/174295 "2009-08-25T11:42:07Z")

</div>

Just found this as \_why’s last tweet on the Google cached copy of \_why’s twitter account: “burying myself feet first in the woods with the hope that this will lead to a career as a much beloved and sought after mouth-…

---

## [Array Troubles](https://www.ruby-forum.com/t/array-troubles/174280)

<div class="topic-metadata">

**Author:** [@ss\_1982](https://www.ruby-forum.com/u/ss_1982)\
**Replies:** 10\
**Last updated:** [August 25, 2009, 10:37am UTC](https://www.ruby-forum.com/t/array-troubles/174280 "2009-08-25T10:37:29Z")

</div>

I’ve made this small table making program (not reall trademarked) and have been trying to add the ability to make your own title. Every time it goes to make the table i get this message: tablemaker.rb:38: undefined me…

---

## [Stuck on silly nil issue](https://www.ruby-forum.com/t/stuck-on-silly-nil-issue/174331)

<div class="topic-metadata">

**Author:** [@jegsjegs](https://www.ruby-forum.com/u/jegsjegs)\
**Replies:** 4\
**Last updated:** [August 25, 2009, 9:42am UTC](https://www.ruby-forum.com/t/stuck-on-silly-nil-issue/174331 "2009-08-25T09:42:04Z")

</div>

Banging my head on the desk over this… I’ll try to generalize my issue down to this scenario. Since I remember always using cars back in programming classes here it goes… cars\[“yugo”\].status\[“available”\] = 2 Some thi…

---

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

<div class="topic-metadata">

**Author:** [@grays](https://www.ruby-forum.com/u/grays)\
**Replies:** 5\
**Last updated:** [August 25, 2009, 3:48am UTC](https://www.ruby-forum.com/t/ruby-eval/174311 "2009-08-25T03:48:27Z")

</div>

I am trying to learn Ruby as a first language, ( I tended to go back and forth over languages in my studies, but I plan, now, to focus on Ruby ), and came across a confusing problem. My brother likes to play Mafia Wars …

---

## [Possible to populate Adobe PDF using RoR?](https://www.ruby-forum.com/t/possible-to-populate-adobe-pdf-using-ror/174319)

<div class="topic-metadata">

**Author:** [@joviyach](https://www.ruby-forum.com/u/joviyach)\
**Replies:** 4\
**Last updated:** [August 25, 2009, 3:36am UTC](https://www.ruby-forum.com/t/possible-to-populate-adobe-pdf-using-ror/174319 "2009-08-25T03:36:09Z")

</div>

I am kicking an idea around in my head right and I would really like to do this in RoR due to the speed and ease of deployment especially on the data collection end. Anyway, the application has to be able to pull data…

---

## [REXML: parsing a string with unescaped ampersand entities](https://www.ruby-forum.com/t/rexml-parsing-a-string-with-unescaped-ampersand-entities/122457)

<div class="topic-metadata">

**Author:** [@frocco](https://www.ruby-forum.com/u/frocco)\
**Replies:** 7\
**Last updated:** [August 25, 2009, 12:56am UTC](https://www.ruby-forum.com/t/rexml-parsing-a-string-with-unescaped-ampersand-entities/122457 "2009-08-25T00:56:52Z")

</div>

Hi, REXML seems to SOMETIMES choke on parsing ampersands within entities, e.g. string = ‘\<?xml version=“1.0” encoding=“UTF-8”?\>hello&world’ doc = Document.new(string) puts “#{doc}” works fine (output below): \<?xm…

---

## [Help in understanding eval function](https://www.ruby-forum.com/t/help-in-understanding-eval-function/174309)

<div class="topic-metadata">

**Author:** [@ravikanth](https://www.ruby-forum.com/u/ravikanth)\
**Replies:** 4\
**Last updated:** [August 25, 2009, 12:20am UTC](https://www.ruby-forum.com/t/help-in-understanding-eval-function/174309 "2009-08-25T00:20:37Z")

</div>

Hi I am new to ruby I am having trouble in understanding the eval function can you suggest me a good reference to look at the various classes and methods available. thanx in advance.

---

## [Ruby-debug does not hit breakpoints at class-methods](https://www.ruby-forum.com/t/ruby-debug-does-not-hit-breakpoints-at-class-methods/174234)

<div class="topic-metadata">

**Author:** [@sysppp](https://www.ruby-forum.com/u/sysppp)\
**Replies:** 18\
**Last updated:** [August 24, 2009, 10:57pm UTC](https://www.ruby-forum.com/t/ruby-debug-does-not-hit-breakpoints-at-class-methods/174234 "2009-08-24T22:57:34Z")

</div>

ruby-1.8.6-p369 ruby-debug-0.10.3 How to set breakpoints at class-methods without editing source of library files? And without line numbers? $ cat test.rb require ‘ruby-debug’ class Aaa def self.cl\_aaa puts ‘A A …

---

## [Modules setting values to nil in unprocessed conditional blocks?](https://www.ruby-forum.com/t/modules-setting-values-to-nil-in-unprocessed-conditional-blocks/174296)

<div class="topic-metadata">

**Author:** [@nate](https://www.ruby-forum.com/u/nate)\
**Replies:** 3\
**Last updated:** [August 24, 2009, 8:51pm UTC](https://www.ruby-forum.com/t/modules-setting-values-to-nil-in-unprocessed-conditional-blocks/174296 "2009-08-24T20:51:03Z")

</div>

Hi everyone. We’re noticing some strange behavior when including modules in classes. It seems that even if a conditional block is forced to evaluate as false (and presumably not execute), assignments in the conditio…

---

## [Why IronRuby is so slower tha IronPython?](https://www.ruby-forum.com/t/why-ironruby-is-so-slower-tha-ironpython/174303)

<div class="topic-metadata">

**Author:** [@triplem](https://www.ruby-forum.com/u/triplem)\
**Replies:** 0\
**Last updated:** [August 24, 2009, 8:17pm UTC](https://www.ruby-forum.com/t/why-ironruby-is-so-slower-tha-ironpython/174303 "2009-08-24T20:17:31Z")

</div>

http://mastrodonato.info/index.php/2009/08/comparison-script-languages-for-the-fractal-geometry/?lang=en Does anyone have any idea?

---

## [Install JRuby On windows](https://www.ruby-forum.com/t/install-jruby-on-windows/171801)

<div class="topic-metadata">

**Author:** [@ravindersingroha](https://www.ruby-forum.com/u/ravindersingroha)\
**Replies:** 2\
**Last updated:** [August 24, 2009, 8:14pm UTC](https://www.ruby-forum.com/t/install-jruby-on-windows/171801 "2009-08-24T20:14:37Z")

</div>

Hi all I have tried everything which was mention on the installation guide but did not get any success. Can any body tell me how to install JRuby on Windows? Regards Ravinder Singroha

---

## [1.8.7 String#lines keeps new-line chars (say it ain't so in 1.9)](https://www.ruby-forum.com/t/1-8-7-string-lines-keeps-new-line-chars-say-it-aint-so-in-1-9/174211)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 18\
**Last updated:** [August 24, 2009, 4:29pm UTC](https://www.ruby-forum.com/t/1-8-7-string-lines-keeps-new-line-chars-say-it-aint-so-in-1-9/174211 "2009-08-24T16:29:22Z")

</div>

Ruby 1.8.7 p72 “A\\nB\\nC”.lines.to\_a =\> \[“A\\n”, “B\\n”, “C”\] Please, tell me that’s a mishap, and not how 1.9 works. I’d expect: “A\\nB\\nC”.lines.to\_a =\> \[“A”, “B”, “C”\] Thanks.

---

## [Click\_no\_wait error](https://www.ruby-forum.com/t/click-no-wait-error/174182)

<div class="topic-metadata">

**Author:** [@paragadosm](https://www.ruby-forum.com/u/paragadosm)\
**Replies:** 3\
**Last updated:** [August 24, 2009, 3:37pm UTC](https://www.ruby-forum.com/t/click-no-wait-error/174182 "2009-08-24T15:37:25Z")

</div>

First off, sorry if this is in the wrong location as this is my first posting. I have build an executable using rubyscript2exe. I’m attempting to run this from a network drive. It all works except when click\_no\_wai…

---

## [Is it possible to record and playback in ruby?](https://www.ruby-forum.com/t/is-it-possible-to-record-and-playback-in-ruby/174290)

<div class="topic-metadata">

**Author:** [@railslist](https://www.ruby-forum.com/u/railslist)\
**Replies:** 3\
**Last updated:** [August 24, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-record-and-playback-in-ruby/174290 "2009-08-24T15:25:01Z")

</div>

hi, just wondering if it is possible to record and playback mouse actions in ruby?. Are there any internal/external libraries?

---

## [Problem using mocha with Test::Unit](https://www.ruby-forum.com/t/problem-using-mocha-with-test-unit/174109)

<div class="topic-metadata">

**Author:** [@emilsverige](https://www.ruby-forum.com/u/emilsverige)\
**Replies:** 2\
**Last updated:** [August 24, 2009, 3:22pm UTC](https://www.ruby-forum.com/t/problem-using-mocha-with-test-unit/174109 "2009-08-24T15:22:00Z")

</div>

I have this simple test: require “test/unit” require ‘mocha’ class TestCanPreload \< Test::Unit::TestCase def test\_hello assert true end end I try to run it in eclipse/aptana, but I get the error: Launched class …

---

## [Uninitialised Constant Files \<NameError\>](https://www.ruby-forum.com/t/uninitialised-constant-files-nameerror/174278)

<div class="topic-metadata">

**Author:** [@deepika](https://www.ruby-forum.com/u/deepika)\
**Replies:** 5\
**Last updated:** [August 24, 2009, 2:30pm UTC](https://www.ruby-forum.com/t/uninitialised-constant-files-nameerror/174278 "2009-08-24T14:30:26Z")

</div>

Hi all, I was trying a simple Ruby program using flat files ,but at certain point in a program which says: if Sub==“DATE” :array\_sentence=Files.readlines(“date.txt”) in program I was thrown with the error: Uninitial…

---

## [Parsing pdf files](https://www.ruby-forum.com/t/parsing-pdf-files/174216)

<div class="topic-metadata">

**Author:** [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Replies:** 7\
**Last updated:** [August 24, 2009, 2:23pm UTC](https://www.ruby-forum.com/t/parsing-pdf-files/174216 "2009-08-24T14:23:59Z")

</div>

hello all, Does anyone know a good pdf parser that retains formatting after its extracted text? I used PDF::Reader, but when you extract text you just get a stream of characters that are not at all intelligible. Whe…

---

## [Stupid OpenStruct question](https://www.ruby-forum.com/t/stupid-openstruct-question/174267)

<div class="topic-metadata">

**Author:** [@itsterry](https://www.ruby-forum.com/u/itsterry)\
**Replies:** 8\
**Last updated:** [August 24, 2009, 12:59pm UTC](https://www.ruby-forum.com/t/stupid-openstruct-question/174267 "2009-08-24T12:59:06Z")

</div>

Ok - I know how to get the fields of an Openstruct object like so class OpenStruct def fields @table.keys.map{|k| k.to\_s} end end a = OpenStruc.new() a.foo = 1 a.bar = 2 a.fields -\> \[“foo”, “bar”\] Great - ok ho…

---

## [Ruby 1.9.1 p243](https://www.ruby-forum.com/t/ruby-1-9-1-p243/174285)

<div class="topic-metadata">

**Author:** [@triplem](https://www.ruby-forum.com/u/triplem)\
**Replies:** 0\
**Last updated:** [August 24, 2009, 12:46pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-p243/174285 "2009-08-24T12:46:58Z")

</div>

I’m testing the new 1.9.1 p243 version downloaded from http://rubyforge.org/projects/rubyinstaller/ …executing mandelbrot test is about 50% slower than p129, both are mingw32. I’m noting that it has a decrease in the …

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

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