# Ruby

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

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

---

## [Singleton class's original class](https://www.ruby-forum.com/t/singleton-classs-original-class/148873)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 9\
**Last updated:** [September 18, 2008, 9:47pm UTC](https://www.ruby-forum.com/t/singleton-classs-original-class/148873 "2008-09-18T21:47:32Z")

</div>

Given a singleton class: irb(main):001:0\> class Foo irb(main):002:1\> def self.singleton\_class irb(main):003:2\> return class \<\< self; self; end irb(main):004:2\> end irb(main):005:1\> end =\> nil irb(main):006…

---

## [Gem program -- cannot install libxslt-ruby-0.3.6.gem](https://www.ruby-forum.com/t/gem-program-cannot-install-libxslt-ruby-0-3-6-gem/148790)

<div class="topic-metadata">

**Author:** [@Robert\_Heller](https://www.ruby-forum.com/u/Robert_Heller)\
**Replies:** 8\
**Last updated:** [September 18, 2008, 9:41pm UTC](https://www.ruby-forum.com/t/gem-program-cannot-install-libxslt-ruby-0-3-6-gem/148790 "2008-09-18T21:41:34Z")

</div>

I am trying to install some version of libxslt-ruby on my CentOS 4.7 Linux system, and I am getting this error: sauron.deepsoft.com% sudo gem install libxslt-ruby-0.3.6.gem Password: Building native extensions. Thi…

---

## [Remove](https://www.ruby-forum.com/t/remove/148977)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [September 18, 2008, 9:25pm UTC](https://www.ruby-forum.com/t/remove/148977 "2008-09-18T21:25:37Z")

</div>

On Thu, Sep 18, 2008 at 1:08 PM, Nick N. removed\_email\_address@domain.invalid wrote: Note: We respect your Online Privacy. This is not an unsolicited mail. This mail cannot be considered Spam as long as we include Co…

---

## [WIN32OLE Question](https://www.ruby-forum.com/t/win32ole-question/148770)

<div class="topic-metadata">

**Author:** [@roxah](https://www.ruby-forum.com/u/roxah)\
**Replies:** 4\
**Last updated:** [September 18, 2008, 8:36pm UTC](https://www.ruby-forum.com/t/win32ole-question/148770 "2008-09-18T20:36:07Z")

</div>

Hello all, I’m currently using the win32ole api to access an application on a Windows machine using the application’s COM interface. I noticed when reading through the documents for the api that the win32ole construc…

---

## [Ruby developer Position @ Midtown , Atlanta - US](https://www.ruby-forum.com/t/ruby-developer-position-midtown-atlanta-us/148967)

<div class="topic-metadata">

**Author:** [@noob2everything](https://www.ruby-forum.com/u/noob2everything)\
**Replies:** 0\
**Last updated:** [September 18, 2008, 7:16pm UTC](https://www.ruby-forum.com/t/ruby-developer-position-midtown-atlanta-us/148967 "2008-09-18T19:16:31Z")

</div>

Please Send resumes to removed\_email\_address@domain.invalid; Please Send resumes to removed\_email\_address@domain.invalid; Position : Ruby developer Location : Midtown , Atlanta Contract-To-Hire Position LOCAL TO GE…

---

## [Integrating with Java inner classes?](https://www.ruby-forum.com/t/integrating-with-java-inner-classes/148833)

<div class="topic-metadata">

**Author:** [@ratchetcat](https://www.ruby-forum.com/u/ratchetcat)\
**Replies:** 10\
**Last updated:** [September 18, 2008, 6:10pm UTC](https://www.ruby-forum.com/t/integrating-with-java-inner-classes/148833 "2008-09-18T18:10:23Z")

</div>

Below is a simple script (using JRuby 1.1.4 on Win2K) that tries to use the StringTemplate JAR. Things seem to work when trying to use Java classes from the JAR that don’t have inner classes. But…I’m rewarded with a …

---

## [Steping back with a debugger](https://www.ruby-forum.com/t/steping-back-with-a-debugger/148929)

<div class="topic-metadata">

**Author:** [@lpc2148](https://www.ruby-forum.com/u/lpc2148)\
**Replies:** 8\
**Last updated:** [September 18, 2008, 5:17pm UTC](https://www.ruby-forum.com/t/steping-back-with-a-debugger/148929 "2008-09-18T17:17:57Z")

</div>

Does ruby have a debugger with the capability of steping back , so that I may see where “trouble” occurs ?

---

## [Ruby Manor, now with confirmed venue and dates](https://www.ruby-forum.com/t/ruby-manor-now-with-confirmed-venue-and-dates/148956)

<div class="topic-metadata">

**Author:** [@nitr0z](https://www.ruby-forum.com/u/nitr0z)\
**Replies:** 0\
**Last updated:** [September 18, 2008, 4:53pm UTC](https://www.ruby-forum.com/t/ruby-manor-now-with-confirmed-venue-and-dates/148956 "2008-09-18T16:53:10Z")

</div>

Hi all, Firstly, apologies if you’ve already got this information, or aren’t interested. Now with that said - this is just a quick note to let you know that we’ve confirmed the date and venue for Ruby Manor (http://…

---

## [xUnit-style output from test/unit?](https://www.ruby-forum.com/t/xunit-style-output-from-test-unit/148850)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 2\
**Last updated:** [September 18, 2008, 4:26pm UTC](https://www.ruby-forum.com/t/xunit-style-output-from-test-unit/148850 "2008-09-18T16:26:01Z")

</div>

Anyone know if there’s a way to transform test/unit output into xUnit XML output? I need to emit something that our continuous integration system (Hudson) can understand. Google hasn’t been my friend in this regard… …

---

## [Why does this prog still stop after exception](https://www.ruby-forum.com/t/why-does-this-prog-still-stop-after-exception/148953)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 1\
**Last updated:** [September 18, 2008, 4:16pm UTC](https://www.ruby-forum.com/t/why-does-this-prog-still-stop-after-exception/148953 "2008-09-18T16:16:32Z")

</div>

i thought i put enough exception handlers for the prog to continue after failure. why does it stop require ‘imDaveAlerts’ require “timeoutx” while(true) puts Time.now begin TimeoutX.timeout(15){ begin a=DaveAler…

---

## [Some odd behaviors of BigDecimal](https://www.ruby-forum.com/t/some-odd-behaviors-of-bigdecimal/147716)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 3\
**Last updated:** [September 18, 2008, 3:52pm UTC](https://www.ruby-forum.com/t/some-odd-behaviors-of-bigdecimal/147716 "2008-09-18T15:52:25Z")

</div>

e$B1sF#$G$9!#e(B BigDecimal e$B$N%F%9%H$r=q$$$F$$$F!"$$$/$D$+5$$K$J$k5sF0$,$"$j$^$7$?!#e(B Infinity e$B$Ne(B n e$B\>h$,\>o$Ke(B NaN e$B$K$J$k$N$O0U?^E\*$G$7$g$&$+!#e(B ruby19 -rbigdecimal -e ‘x = BigDecimal(“Infinity”…

---

## [Getting Ruby to output a windows command to text (log) file](https://www.ruby-forum.com/t/getting-ruby-to-output-a-windows-command-to-text-log-file/148865)

<div class="topic-metadata">

**Author:** [@merc](https://www.ruby-forum.com/u/merc)\
**Replies:** 6\
**Last updated:** [September 18, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/getting-ruby-to-output-a-windows-command-to-text-log-file/148865 "2008-09-18T15:46:01Z")

</div>

Hey folks, I’m trying to create a program to ping one of my company’s computers every minute to measure latency, and output the results to a text file. I’ve been able to figure out / cobble together most of what I n…

---

## [Dbi Timeout expired Sql server 2005 using ADO](https://www.ruby-forum.com/t/dbi-timeout-expired-sql-server-2005-using-ado/148943)

<div class="topic-metadata">

**Author:** [@pabloq](https://www.ruby-forum.com/u/pabloq)\
**Replies:** 0\
**Last updated:** [September 18, 2008, 3:10pm UTC](https://www.ruby-forum.com/t/dbi-timeout-expired-sql-server-2005-using-ado/148943 "2008-09-18T15:10:38Z")

</div>

Hi all, I got this error: Execute OLE error code:80040E31 in Microsoft OLE DB Provider for SQL Server Timeout expired HRESULT error code:0x80020009 Exception occurred. c:/ruby/lib/ruby/site\_ruby/1.8/DBD/ADO/ADO.rb:1…

---

## [Http net PUT](https://www.ruby-forum.com/t/http-net-put/148896)

<div class="topic-metadata">

**Author:** [@macarthy](https://www.ruby-forum.com/u/macarthy)\
**Replies:** 1\
**Last updated:** [September 18, 2008, 2:45pm UTC](https://www.ruby-forum.com/t/http-net-put/148896 "2008-09-18T14:45:18Z")

</div>

i’m trying to mimic a curl command Im using in ruby curl -T file https://url and here is want I’m using in ruby myfile = File.read(“test.txt”) url = URI.parse(uploadUrl) Net::HTTP.version\_1\_1 conn = Net::HTTP.new(u…

---

## [Undefined method \`element\_name', dubble inherit](https://www.ruby-forum.com/t/undefined-method-element-name-dubble-inherit/148930)

<div class="topic-metadata">

**Author:** [@flamingflamingo](https://www.ruby-forum.com/u/flamingflamingo)\
**Replies:** 0\
**Last updated:** [September 18, 2008, 12:57pm UTC](https://www.ruby-forum.com/t/undefined-method-element-name-dubble-inherit/148930 "2008-09-18T12:57:30Z")

</div>

Dear all, I’m making a class that can handle IE as well as FF. This class is used for our scripts. When I call this class I can call own def’s and standard def goto, but, not “link”. I made two “scripts”, first goes…

---

## [Too huge st\_table should raise exception](https://www.ruby-forum.com/t/too-huge-st-table-should-raise-exception/148841)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 2\
**Last updated:** [September 18, 2008, 12:46pm UTC](https://www.ruby-forum.com/t/too-huge-st-table-should-raise-exception/148841 "2008-09-18T12:46:49Z")

</div>

e$B1sF#$G$9!#e(B e$B:#$Ne(B st.c e$B$OMWAG$N?t$,e(B 1073741824 + 85 e$B8D$rD6$($k$He(B e$B$J$s$+JQ$J$3$H$K$J$kM=46$,$7$^$9!#e(B e$B3N$+$a$k$3$H$O$G$-$^$;$s$,!"0J2\<$N$h$&$KNc30$rEj$2$Fe(B e$B$\*$$$F$b$$$$$G$7$g$&$+!#e(…

---

## [The mystery of File::append](https://www.ruby-forum.com/t/the-mystery-of-file-append/148899)

<div class="topic-metadata">

**Author:** [@sentinel](https://www.ruby-forum.com/u/sentinel)\
**Replies:** 4\
**Last updated:** [September 18, 2008, 10:45am UTC](https://www.ruby-forum.com/t/the-mystery-of-file-append/148899 "2008-09-18T10:45:11Z")

</div>

$ ri File::append gives me: File::append( file, str ) Append to a file. CREDIT: George M. $ri File also shows me append as a class method. However, my html documentation does not give this (1.8.6). Trying to …

---

## [$B%G%6%$%s%\_!\<%F%#%s%0(B](https://www.ruby-forum.com/t/b-g-6-s-f-s-0-b/148915)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 0\
**Last updated:** [September 18, 2008, 10:28am UTC](https://www.ruby-forum.com/t/b-g-6-s-f-s-0-b/148915 "2008-09-18T10:28:10Z")

</div>

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B 9e$B7ne(B24e$BF|8aA0e(B11e$B;~$+$ie(BRubye$B%G%6%$%s%\_!\<%F%#%s%0$r9T$&M=Dj$G$9!#e(B e$B:#8e$Ne(BRubye$B$NF08~$K$D$$$F5DO@$9$kNI$$5!2q$G$9!#e(B e$B4X?4$N$"$k?M$O$\<$R;22C$7$F$/$@$5$$!#e(…

---

## [emacs21$B$G(Bruby-mode.el](https://www.ruby-forum.com/t/emacs21-b-g-bruby-mode-el/138637)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 2\
**Last updated:** [September 18, 2008, 8:47am UTC](https://www.ruby-forum.com/t/emacs21-b-g-bruby-mode-el/138637 "2008-09-18T08:47:52Z")

</div>

e$B@\>;3OB9-$G$9!#e(B emacs21e$B$Ge(Bruby-mode.ele$B$,e(B File mode specification error: (void-function run-mode-hooks) e$B$H$J$C$FF0$-$^$;$s!#e(B run-mode-hookse$B$,$J$$$H$-$O0JA0$N$h$&$Ke(Brun-hookse$B$r;H$($P$$$$$H…

---

## [Give me advices about method name](https://www.ruby-forum.com/t/give-me-advices-about-method-name/148889)

<div class="topic-metadata">

**Author:** [@kwatch](https://www.ruby-forum.com/u/kwatch)\
**Replies:** 2\
**Last updated:** [September 18, 2008, 7:13am UTC](https://www.ruby-forum.com/t/give-me-advices-about-method-name/148889 "2008-09-18T07:13:31Z")

</div>

Hi, I’m wondering what method names are appropriate for my library. Could you give me advices? Background: I’m developping Motto-mysql library (not released yet). This library will improve Mysql/Ruby driver. Motto…

---

## [How can one get the Hpricot DOM document from Mechanize?](https://www.ruby-forum.com/t/how-can-one-get-the-hpricot-dom-document-from-mechanize/148507)

<div class="topic-metadata">

**Author:** [@maz](https://www.ruby-forum.com/u/maz)\
**Replies:** 3\
**Last updated:** [September 18, 2008, 7:13am UTC](https://www.ruby-forum.com/t/how-can-one-get-the-hpricot-dom-document-from-mechanize/148507 "2008-09-18T07:13:31Z")

</div>

I was wondering if there were some way of getting the Hpricot DOM (for lack of a better term) from a Mechanize page. For example: agent = WWW:Mechanize.new page = agent.get(http://www.website.com) I am currently do…

---

## [Threads preventing garbage collection?](https://www.ruby-forum.com/t/threads-preventing-garbage-collection/148816)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 11\
**Last updated:** [September 18, 2008, 6:01am UTC](https://www.ruby-forum.com/t/threads-preventing-garbage-collection/148816 "2008-09-18T06:01:34Z")

</div>

I wondered if someone can explain the following behaviour to me. For some reason, in the following code the instances of object Foo are prevented from being garbage collected. def make\_thread Thread.new { sleep 2 } …

---

## [Grammar 0.8.1 - a performance release](https://www.ruby-forum.com/t/grammar-0-8-1-a-performance-release/148898)

<div class="topic-metadata">

**Author:** [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Replies:** 0\
**Last updated:** [September 18, 2008, 4:35am UTC](https://www.ruby-forum.com/t/grammar-0-8-1-a-performance-release/148898 "2008-09-18T04:35:03Z")

</div>

I just uploaded Grammar 0.8.1 here: http://rubyforge.org/projects/grammar/ I mainly put performance into this release. Benchmarking JSON parsers from various parser generators, here is how it looks: 5.04M/s Grammar…

---

## [Forum/Discussion board in Ruby](https://www.ruby-forum.com/t/forum-discussion-board-in-ruby/148892)

<div class="topic-metadata">

**Author:** [@rajatgarg](https://www.ruby-forum.com/u/rajatgarg)\
**Replies:** 1\
**Last updated:** [September 18, 2008, 4:21am UTC](https://www.ruby-forum.com/t/forum-discussion-board-in-ruby/148892 "2008-09-18T04:21:01Z")

</div>

Do you guys know of a good Forum/Discussion board written in Ruby on Rails? There are many written in php. Let me know. Thx, – Rajat G. Ph: 206-499-9495 Add: 16140 SE EastGate Way APT E-204 Bellevue, WA 98008 We…

---

## [Generating a semi-random, but legal, filename](https://www.ruby-forum.com/t/generating-a-semi-random-but-legal-filename/148834)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 5\
**Last updated:** [September 18, 2008, 4:10am UTC](https://www.ruby-forum.com/t/generating-a-semi-random-but-legal-filename/148834 "2008-09-18T04:10:29Z")

</div>

Hi everyone, I thought this would be a fun brain teaser. In short, I need a way to generate a semi-random file name based on a template on MS Windows. The motivation, in case you’re wondering, is that I’m implementing…

---

## [Get a portion of a utf8 encoded string](https://www.ruby-forum.com/t/get-a-portion-of-a-utf8-encoded-string/148695)

<div class="topic-metadata">

**Author:** [@marco](https://www.ruby-forum.com/u/marco)\
**Replies:** 7\
**Last updated:** [September 18, 2008, 4:10am UTC](https://www.ruby-forum.com/t/get-a-portion-of-a-utf8-encoded-string/148695 "2008-09-18T04:10:29Z")

</div>

hi all. ruby 1.8.5 (2006-08-25) \[i386-linux\] puts ‘hÃ¤llo’ hÃ¤llo =\> nil puts ‘hÃ¤llo’\[0, 2\] hâ–’ =\> nil puts ‘hÃ¤llo’\[0, 3\] hÃ¤ =\> nil require ‘iconv’ =\> true puts ‘hÃ¤llo’\[0, 3\] hÃ¤ =\> nil p…

---

## [Jruby-complete.jar for 1.1.4?](https://www.ruby-forum.com/t/jruby-complete-jar-for-1-1-4/148888)

<div class="topic-metadata">

**Author:** [@nabblee](https://www.ruby-forum.com/u/nabblee)\
**Replies:** 2\
**Last updated:** [September 18, 2008, 3:58am UTC](https://www.ruby-forum.com/t/jruby-complete-jar-for-1-1-4/148888 "2008-09-18T03:58:47Z")

</div>

It doesn’t exist at http://dist.codehaus.org/jruby/. Has anyone built it? View this message in context: http://www.nabble.com/jruby-complete.jar-for-1.1.4--tp19543258p19543258.html Sent from the JRuby - User mailing…

---

## [Code Review: lib2](https://www.ruby-forum.com/t/code-review-lib2/148894)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [September 18, 2008, 3:15am UTC](https://www.ruby-forum.com/t/code-review-lib2/148894 "2008-09-18T03:15:59Z")

</div>

tfpt review “/shelveset:lib2;REDMOND\\tomat” More library work (reviewed by John). MutableString now handles frozen and tainted flags. Improves construction, initialization and duplication of built-in classes. Makes …

---

## [Which Class called my Class?](https://www.ruby-forum.com/t/which-class-called-my-class/148876)

<div class="topic-metadata">

**Author:** [@zbrod](https://www.ruby-forum.com/u/zbrod)\
**Replies:** 1\
**Last updated:** [September 17, 2008, 11:08pm UTC](https://www.ruby-forum.com/t/which-class-called-my-class/148876 "2008-09-17T23:08:10Z")

</div>

I have a script that queries servers in our environment to assist with patch-levels etc… I am having an issue and need to backtrace which class called my class. What I currently have print “\\nCollectData Failed 2: in…

---

## [Configatron 2.0.0 Released](https://www.ruby-forum.com/t/configatron-2-0-0-released/148871)

<div class="topic-metadata">

**Author:** [@markbates](https://www.ruby-forum.com/u/markbates)\
**Replies:** 0\
**Last updated:** [September 17, 2008, 9:32pm UTC](https://www.ruby-forum.com/t/configatron-2-0-0-released/148871 "2008-09-17T21:32:16Z")

</div>

The Configatron configuration library has undergone an extensive rewrite making it faster, better, and easier to use than before. Highlights: No longer need deeply nested blocks to set configurations Ability to ‘prot…

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

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