# Ruby

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

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

---

## [Jruby 1.2.0 / Rack Error](https://www.ruby-forum.com/t/jruby-1-2-0-rack-error/163181)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 2\
**Last updated:** [March 18, 2009, 3:13am UTC](https://www.ruby-forum.com/t/jruby-1-2-0-rack-error/163181 "2009-03-18T03:13:38Z")

</div>

Seeing a bunch of these errors, does anyone know what causes them ? Solaris x86\_64, Jruby 1.2.0, Rails 2.2.2 SEVERE: Exception caught /apphome/coolstack/tomcat5/webapps/myapp/WEB-INF/gems/gems/activesupport-2.2.2/lib/…

---

## [MountainWest RubyConf videos appearing on Confreaks site](https://www.ruby-forum.com/t/mountainwest-rubyconf-videos-appearing-on-confreaks-site/163183)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [March 18, 2009, 2:44am UTC](https://www.ruby-forum.com/t/mountainwest-rubyconf-videos-appearing-on-confreaks-site/163183 "2009-03-18T02:44:58Z")

</div>

Videos from this past weekend’s epic MountainWest RubyConf 2009 are now going up on the Confreaks site. http://mwrc2009.confreaks.com/ This was one killer conference. It just keeps getting better each year. Monste…

---

## [Using Thread.new and performing ActiveRecord operations causes occasional "Connection.close" excepti](https://www.ruby-forum.com/t/using-thread-new-and-performing-activerecord-operations-causes-occasional-connection-close-excepti/163020)

<div class="topic-metadata">

**Author:** [@ilan](https://www.ruby-forum.com/u/ilan)\
**Replies:** 12\
**Last updated:** [March 18, 2009, 1:06am UTC](https://www.ruby-forum.com/t/using-thread-new-and-performing-activerecord-operations-causes-occasional-connection-close-excepti/163020 "2009-03-18T01:06:46Z")

</div>

Has anyone seen this? HereÂ¹s an example of what IÂ¹m talking about: def some\_method Thread.new do 1000.times { Model.create :field =\> value } end end The offending code has been rolled back, but while it was runni…

---

## [Upping numerical precision](https://www.ruby-forum.com/t/upping-numerical-precision/163018)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [March 17, 2009, 11:42pm UTC](https://www.ruby-forum.com/t/upping-numerical-precision/163018 "2009-03-17T23:42:41Z")

</div>

Hey All, I got me this fancy method for classifying documents that basically does this at one point: p = 1 words.each do |w| p \*= calc\_prob(w) end chi = -2.0 \* Math.log§ I’m finding that p is often going to 0.0 b…

---

## [Gem hanging in Windows](https://www.ruby-forum.com/t/gem-hanging-in-windows/163054)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 4\
**Last updated:** [March 17, 2009, 11:14pm UTC](https://www.ruby-forum.com/t/gem-hanging-in-windows/163054 "2009-03-17T23:14:29Z")

</div>

I’m trying to setup an environment on a Windows XP machine. Note: I do (almost) all my work in Linux. I’m trying to run a “gem install” on the Windows box. Immediately after the command, I get the message: “Bulk upda…

---

## [JRuby mongrel process hanging](https://www.ruby-forum.com/t/jruby-mongrel-process-hanging/163153)

<div class="topic-metadata">

**Author:** [@supasta](https://www.ruby-forum.com/u/supasta)\
**Replies:** 5\
**Last updated:** [March 17, 2009, 10:50pm UTC](https://www.ruby-forum.com/t/jruby-mongrel-process-hanging/163153 "2009-03-17T22:50:22Z")

</div>

I’m experiencing some weird behavior with my JRuby on Rails app. Every now and then one of my mongrel processes will peg the CPU, and the request never finishes or writes log information. I have only been able to rep…

---

## [Unicode Character 'SUBSTITUTE' (U+001A) troubles](https://www.ruby-forum.com/t/unicode-character-substitute-u-001a-troubles/163137)

<div class="topic-metadata">

**Author:** [@rlorimor](https://www.ruby-forum.com/u/rlorimor)\
**Replies:** 3\
**Last updated:** [March 17, 2009, 10:22pm UTC](https://www.ruby-forum.com/t/unicode-character-substitute-u-001a-troubles/163137 "2009-03-17T22:22:12Z")

</div>

I’m implementing a version of the “Mini-AES” (http://findarticles.com/ p/articles/mi\_qa3926/is\_200210/ai\_n9129484) in Ruby and have all of the bit shifts and stuff working… The problem I’m having is with the file inpu…

---

## [Detect rogue DHCP server](https://www.ruby-forum.com/t/detect-rogue-dhcp-server/163105)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 4\
**Last updated:** [March 17, 2009, 10:13pm UTC](https://www.ruby-forum.com/t/detect-rogue-dhcp-server/163105 "2009-03-17T22:13:59Z")

</div>

I want to write a program to detect rogue DHCP server on my (switched) network. It would broadcast a “dummy” MAC address and see which DHCP server responds. My idea is to send a DHCPDISCOVER packet and see which DHCP …

---

## [\[ANN\] activerecord-jdbc-adapter 0.9.1 Released](https://www.ruby-forum.com/t/ann-activerecord-jdbc-adapter-0-9-1-released/163145)

<div class="topic-metadata">

**Author:** [@nicksnels](https://www.ruby-forum.com/u/nicksnels)\
**Replies:** 4\
**Last updated:** [March 17, 2009, 9:36pm UTC](https://www.ruby-forum.com/t/ann-activerecord-jdbc-adapter-0-9-1-released/163145 "2009-03-17T21:36:25Z")

</div>

Hi all, we released activerecord-jdbc-adapter 0.9.1 today. This release contains a lot of updates over the previous release, and an upgrade is recommended. In particular, we started to pay renewed attention to running…

---

## [Non-rdb persistence](https://www.ruby-forum.com/t/non-rdb-persistence/163159)

<div class="topic-metadata">

**Author:** [@zakifataya](https://www.ruby-forum.com/u/zakifataya)\
**Replies:** 1\
**Last updated:** [March 17, 2009, 9:35pm UTC](https://www.ruby-forum.com/t/non-rdb-persistence/163159 "2009-03-17T21:35:14Z")

</div>

I’m interested in persistence options for Ruby other than relational databases or simple flat files. I realize this is not necessarily a Ruby question per sé, but I’d prefer a nice Ruby interface/api, and I’d like to…

---

## [How do I get a name translation for a symbolic link inside Ruby?](https://www.ruby-forum.com/t/how-do-i-get-a-name-translation-for-a-symbolic-link-inside-ruby/163161)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 2\
**Last updated:** [March 17, 2009, 9:32pm UTC](https://www.ruby-forum.com/t/how-do-i-get-a-name-translation-for-a-symbolic-link-inside-ruby/163161 "2009-03-17T21:32:53Z")

</div>

So I have the results of the shell command: ln -s 20090317 latest But I only know about ‘latest’. How do I get the 20090317? I know I can do it executing the shell and bringing in the string, but it seems there mus…

---

## [Shoes and Mechanize](https://www.ruby-forum.com/t/shoes-and-mechanize/163012)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 4\
**Last updated:** [March 17, 2009, 8:46pm UTC](https://www.ruby-forum.com/t/shoes-and-mechanize/163012 "2009-03-17T20:46:53Z")

</div>

Did mechanize switch to Nokogiri? Shoes.setup do gem ‘mechanize’ end Fails miserably: ERROR: Failed to build gem native extension. /tmp/selfgz9016/shoes --ruby extconf.rb setup.rb /tmp/selfgz9016/shoes-bin: no suc…

---

## [DRb documentation?](https://www.ruby-forum.com/t/drb-documentation/163155)

<div class="topic-metadata">

**Author:** [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Replies:** 2\
**Last updated:** [March 17, 2009, 8:28pm UTC](https://www.ruby-forum.com/t/drb-documentation/163155 "2009-03-17T20:28:38Z")

</div>

Hi, I’ve found very few documentation pages about DRb… The rdoc pages (http://www.ruby-doc.org/stdlib/libdoc/drb/rdoc/index.html) are poorly documented and most of the web links provided are 404 or Japanese Does someb…

---

## [Ruby training in Atlanta: bring a friend for 1/2 price!](https://www.ruby-forum.com/t/ruby-training-in-atlanta-bring-a-friend-for-1-2-price/163156)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 0\
**Last updated:** [March 17, 2009, 8:20pm UTC](https://www.ruby-forum.com/t/ruby-training-in-atlanta-bring-a-friend-for-1-2-price/163156 "2009-03-17T20:20:23Z")

</div>

Hi all – You can now sign up for Ruby training in Atlanta, April 1-3, and add a friend for half price! Just go to: http://entp.eventwax.com/ruby-training-atlanta/register and use the promo code “friend”. Purchase ON…

---

## [XML to CSV with REXML - I'm sure this should be easy](https://www.ruby-forum.com/t/xml-to-csv-with-rexml-im-sure-this-should-be-easy/163116)

<div class="topic-metadata">

**Author:** [@rhubarbcrumble](https://www.ruby-forum.com/u/rhubarbcrumble)\
**Replies:** 7\
**Last updated:** [March 17, 2009, 8:02pm UTC](https://www.ruby-forum.com/t/xml-to-csv-with-rexml-im-sure-this-should-be-easy/163116 "2009-03-17T20:02:32Z")

</div>

Ok, I’m taking a fairly simple xml file containing a series of events and I want to convert it to csv - nothing new there. However, some events have two or more dates listed and I’d like to display each as individual …

---

## [Problem while installing rdoc-2.4.1 under Ruby 1.9.1](https://www.ruby-forum.com/t/problem-while-installing-rdoc-2-4-1-under-ruby-1-9-1/163022)

<div class="topic-metadata">

**Author:** [@rubina](https://www.ruby-forum.com/u/rubina)\
**Replies:** 3\
**Last updated:** [March 17, 2009, 7:58pm UTC](https://www.ruby-forum.com/t/problem-while-installing-rdoc-2-4-1-under-ruby-1-9-1/163022 "2009-03-17T19:58:36Z")

</div>

Hello team! While installing, via gem, rdo-2.4.1 I ran into an error. Please see bellow. C:\>ruby -v ruby 1.9.1p0 (2009-01-30 revision 21907) \[i386-mingw32\] C:\>gem install rdoc Successfully installed rdoc-2.4.1 1 g…

---

## [Trying to install Fox, FXRuby, and IFMapper on Mac OS X](https://www.ruby-forum.com/t/trying-to-install-fox-fxruby-and-ifmapper-on-mac-os-x/163034)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 11\
**Last updated:** [March 17, 2009, 7:56pm UTC](https://www.ruby-forum.com/t/trying-to-install-fox-fxruby-and-ifmapper-on-mac-os-x/163034 "2009-03-17T19:56:14Z")

</div>

I can’t seem to find a specific answer on this… I’m trying to install FXRuby, which apparently requires Fox to be installed first, in order to run a Ruby program called IFMapper. I’m running Mac OS X 10.5.6 and instal…

---

## [Dynamically extending modules once they have been included](https://www.ruby-forum.com/t/dynamically-extending-modules-once-they-have-been-included/163056)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 13\
**Last updated:** [March 17, 2009, 7:22pm UTC](https://www.ruby-forum.com/t/dynamically-extending-modules-once-they-have-been-included/163056 "2009-03-17T19:22:01Z")

</div>

It doesn’t seem possible to dynamically extend modules once they have already been included into a particular class. By dynamically extend, I mean to include a module within another module. Directly opening up the c…

---

## [Maruku within IronRuby using rexml/document](https://www.ruby-forum.com/t/maruku-within-ironruby-using-rexml-document/162298)

<div class="topic-metadata">

**Author:** [@Grant\_Archibald](https://www.ruby-forum.com/u/Grant_Archibald)\
**Replies:** 1\
**Last updated:** [March 17, 2009, 7:21pm UTC](https://www.ruby-forum.com/t/maruku-within-ironruby-using-rexml-document/162298 "2009-03-17T19:21:25Z")

</div>

Hi, I look to make use of Maruku within IronRuby and it has a dependency rexml/document. Has anyone successfully used rexml/document under IronRuby? Thanks Grant

---

## [Code Review: DMO1](https://www.ruby-forum.com/t/code-review-dmo1/163059)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 2\
**Last updated:** [March 17, 2009, 6:44pm UTC](https://www.ruby-forum.com/t/code-review-dmo1/163059 "2009-03-17T18:44:55Z")

</div>

tfpt review “/shelveset:DMO1;REDMOND\\tomat” Comment : Checks for an invalid number of arguments is passed to an attribute setter/getter or struct field setter/getter. Implements correct splatting of arguments to Del…

---

## [Accessing the return value from a Dsl](https://www.ruby-forum.com/t/accessing-the-return-value-from-a-dsl/162975)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 2\
**Last updated:** [March 17, 2009, 6:40pm UTC](https://www.ruby-forum.com/t/accessing-the-return-value-from-a-dsl/162975 "2009-03-17T18:40:48Z")

</div>

Hi, I am trying to create a Dsl which will have instances that live in individual Dsl .rb files and then run them from the CLR. I want to create and set the values of the Clr object in IronRuby and then somehow have …

---

## [RubyKaigi 2009 CFP deadline extended](https://www.ruby-forum.com/t/rubykaigi-2009-cfp-deadline-extended/163141)

<div class="topic-metadata">

**Author:** [@Leonard\_C](https://www.ruby-forum.com/u/Leonard_C)\
**Replies:** 0\
**Last updated:** [March 17, 2009, 5:49pm UTC](https://www.ruby-forum.com/t/rubykaigi-2009-cfp-deadline-extended/163141 "2009-03-17T17:49:42Z")

</div>

Hi, RubyKaigi is the annual Ruby conference held in Tokyo, Japan. This year, we’re trying to go multi-track with a full English-language track alongside our usual Japanese-language track. We’ve still got some room f…

---

## [Ruby-oci8 1.0.5 and 2.0.1](https://www.ruby-forum.com/t/ruby-oci8-1-0-5-and-2-0-1/163140)

<div class="topic-metadata">

**Author:** [@kubo](https://www.ruby-forum.com/u/kubo)\
**Replies:** 0\
**Last updated:** [March 17, 2009, 5:40pm UTC](https://www.ruby-forum.com/t/ruby-oci8-1-0-5-and-2-0-1/163140 "2009-03-17T17:40:17Z")

</div>

Ruby-oci8 1.0.5 and 2.0.1 are released. These are Oracle modules using OCI8 API. http://rubyforge.org/projects/ruby-oci8/ Ruby-oci8 1.0.5 is a latest stable release. The target ruby version is 1.8. It doesn’t work wi…

---

## [Is this really impossible?](https://www.ruby-forum.com/t/is-this-really-impossible/163135)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 0\
**Last updated:** [March 17, 2009, 4:23pm UTC](https://www.ruby-forum.com/t/is-this-really-impossible/163135 "2009-03-17T16:23:48Z")

</div>

Hi, I’m trying to teach Ninject some new tricks by introducing it to the DLR. So far I’ve got a config DSL in a working state and now I’m looking at making it work with types implemented in a DLR language. I’ve only…

---

## [2 Ruby -Watir positions in columbus, OH](https://www.ruby-forum.com/t/2-ruby-watir-positions-in-columbus-oh/163131)

<div class="topic-metadata">

**Author:** [@leahann](https://www.ruby-forum.com/u/leahann)\
**Replies:** 0\
**Last updated:** [March 17, 2009, 3:41pm UTC](https://www.ruby-forum.com/t/2-ruby-watir-positions-in-columbus-oh/163131 "2009-03-17T15:41:28Z")

</div>

Hello, I am Leah, corporate recruiter with Everest Technologies. One of my direct clients is in need of 2 Watir developers for their Columbus, OH location ASAP. If anyone you know is looking out please have them email …

---

## [Delete any file beginning with some character](https://www.ruby-forum.com/t/delete-any-file-beginning-with-some-character/163121)

<div class="topic-metadata">

**Author:** [@sarika](https://www.ruby-forum.com/u/sarika)\
**Replies:** 2\
**Last updated:** [March 17, 2009, 1:55pm UTC](https://www.ruby-forum.com/t/delete-any-file-beginning-with-some-character/163121 "2009-03-17T13:55:22Z")

</div>

Hi, I am trying to delete files in a folder whichever beginning with any string but not able to do it? Command used in rb file is File.delete(“A\*.jpg”)

---

## [Net::SSH calls hanging](https://www.ruby-forum.com/t/net-ssh-calls-hanging/162425)

<div class="topic-metadata">

**Author:** [@john-anes](https://www.ruby-forum.com/u/john-anes)\
**Replies:** 2\
**Last updated:** [March 17, 2009, 1:51pm UTC](https://www.ruby-forum.com/t/net-ssh-calls-hanging/162425 "2009-03-17T13:51:15Z")

</div>

All, I’m trying to launch a server remotely, but all the Net:SSH calls I try never seem to return…they just hang. My Code: cmd = “nohup ./Servers/BARKSproxy.pl &” Net::SSH.start(host\[:ip\], host\[:user\], :password =\> …

---

## [Reading data files with headers and columns](https://www.ruby-forum.com/t/reading-data-files-with-headers-and-columns/162782)

<div class="topic-metadata">

**Author:** [@Yaj\_Bhattacharya](https://www.ruby-forum.com/u/Yaj_Bhattacharya)\
**Replies:** 5\
**Last updated:** [March 17, 2009, 1:45pm UTC](https://www.ruby-forum.com/t/reading-data-files-with-headers-and-columns/162782 "2009-03-17T13:45:52Z")

</div>

Hello, As a noob to Ruby, I need to read a data file with the first few lines as header, then the rest of the file as columns of different variables as arrays (in this case, 5 columns). After reading in the variables…

---

## [Dealing with piecewise arrays](https://www.ruby-forum.com/t/dealing-with-piecewise-arrays/163122)

<div class="topic-metadata">

**Author:** [@Yaj\_Bhattacharya](https://www.ruby-forum.com/u/Yaj_Bhattacharya)\
**Replies:** 0\
**Last updated:** [March 17, 2009, 1:40pm UTC](https://www.ruby-forum.com/t/dealing-with-piecewise-arrays/163122 "2009-03-17T13:40:33Z")

</div>

I want to perform the following in Ruby, could someone please help translate this pseudocode? Read in a time series in a columnar format from an external file (covered elsewhere in this forum, including for complete…

---

## [PostgreSQL Dump](https://www.ruby-forum.com/t/postgresql-dump/163107)

<div class="topic-metadata">

**Author:** [@saravanankrishnan](https://www.ruby-forum.com/u/saravanankrishnan)\
**Replies:** 1\
**Last updated:** [March 17, 2009, 1:27pm UTC](https://www.ruby-forum.com/t/postgresql-dump/163107 "2009-03-17T13:27:01Z")

</div>

Hi all, I’m using following command to take dump from my sql database. pg\_dump -h localhost -U postgres dbname \> dump.sql Whenever i trying to run this command in command prompt, it always asking password. Here my …

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

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