# Ruby

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

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

---

## [$B%3%s%Q%$%k%(%i!\<(B](https://www.ruby-forum.com/t/b-3-s-q-k-i-b/175740)

<div class="topic-metadata">

**Author:** [@Yutaka\_K](https://www.ruby-forum.com/u/Yutaka_K)\
**Replies:** 1\
**Last updated:** [September 20, 2009, 12:19pm UTC](https://www.ruby-forum.com/t/b-3-s-q-k-i-b/175740 "2009-09-20T12:19:20Z")

</div>

é‡‘æœ¬ã¨ç”³ã—ã¾ã™ã€‚ ä»Štrunkã‚’AIXã§ã‚³ãƒ³ãƒ‘ã‚¤ãƒ«ã™ã‚‹ã¨dln.cã®ã‚³ãƒ³ãƒ‘ã‚¤ãƒ«ã«å¤±æ•—ã—ã¾ã™ã€‚ % make gcc -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wno-missing-field-initializers -Wpointer-…

---

## [Instead of MySql, use ActiveRecord or other ORM](https://www.ruby-forum.com/t/instead-of-mysql-use-activerecord-or-other-orm/175811)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 1\
**Last updated:** [September 20, 2009, 11:28am UTC](https://www.ruby-forum.com/t/instead-of-mysql-use-activerecord-or-other-orm/175811 "2009-09-20T11:28:25Z")

</div>

While it’s trivial to connect to the db with ActiveRecord: This call creates a connection to our database. ActiveRecord::Base.establish\_connection( :adapter =\> “mysql”, :host =\> “127.0.0.1”, :username =\> “ruby”, …

---

## [Ruby and C++ exe](https://www.ruby-forum.com/t/ruby-and-c-exe/175450)

<div class="topic-metadata">

**Author:** [@george\_thomas](https://www.ruby-forum.com/u/george_thomas)\
**Replies:** 4\
**Last updated:** [September 20, 2009, 10:31am UTC](https://www.ruby-forum.com/t/ruby-and-c-exe/175450 "2009-09-20T10:31:03Z")

</div>

Hi, I am new to Ruby , but have a few years of experience in C++. My requirement is to create automated test (scripts) that will do the testing (mainly acceptance test) of our application (an Exe project created o…

---

## [Undefined method for a gem?](https://www.ruby-forum.com/t/undefined-method-for-a-gem/175806)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 1\
**Last updated:** [September 20, 2009, 8:29am UTC](https://www.ruby-forum.com/t/undefined-method-for-a-gem/175806 "2009-09-20T08:29:18Z")

</div>

I’m thinking that the API for this gem has changed, hence the error? I’m looking into the documentation. Else, I’m not sure how to approach an undefined method. I pulled the code from: Practical Ruby Gems http://w…

---

## [Regexp question difference between ^ and \\A](https://www.ruby-forum.com/t/regexp-question-difference-between-and-a/175798)

<div class="topic-metadata">

**Author:** [@Hunt\_J](https://www.ruby-forum.com/u/Hunt_J)\
**Replies:** 3\
**Last updated:** [September 20, 2009, 8:09am UTC](https://www.ruby-forum.com/t/regexp-question-difference-between-and-a/175798 "2009-09-20T08:09:24Z")

</div>

Hi I’m trying to find good use examples to show a difference between ^ and \\A in Ruby regular expressions. \\A is for beginning of a string ^ beginning of a line or string As a regular expression runs one line by lin…

---

## [Install a gem gives: Unhandled special](https://www.ruby-forum.com/t/install-a-gem-gives-unhandled-special/175805)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 0\
**Last updated:** [September 20, 2009, 7:23am UTC](https://www.ruby-forum.com/t/install-a-gem-gives-unhandled-special/175805 "2009-09-20T07:23:09Z")

</div>

since this only concerns the documentation, is this message concerning? root@ARRAKIS:~# root@ARRAKIS:~# gem install feedtools FeedTool’s caching schema has changed to allow Feed objects to be serialized to the cache.…

---

## [Problem with soap4r+httpclient from within a jar](https://www.ruby-forum.com/t/problem-with-soap4r-httpclient-from-within-a-jar/175766)

<div class="topic-metadata">

**Author:** [@brianwisti](https://www.ruby-forum.com/u/brianwisti)\
**Replies:** 1\
**Last updated:** [September 20, 2009, 6:14am UTC](https://www.ruby-forum.com/t/problem-with-soap4r-httpclient-from-within-a-jar/175766 "2009-09-20T06:14:05Z")

</div>

Hi all, I’m attempting to package up my JRuby soap4r client application into a jar, but I’m not having much luck getting it working. I’ve tried using both rawr and Netbeans to build the jar but I get the same result…

---

## [Wxruby problem](https://www.ruby-forum.com/t/wxruby-problem/175788)

<div class="topic-metadata">

**Author:** [@Haris\_BogdanoviS\_S](https://www.ruby-forum.com/u/Haris_BogdanoviS_S)\
**Replies:** 4\
**Last updated:** [September 19, 2009, 8:30pm UTC](https://www.ruby-forum.com/t/wxruby-problem/175788 "2009-09-19T20:30:32Z")

</div>

Hi.Line 2 produces an error:1 require “wx” 2 include Wx after starting I get this: uninitialized constant Wx (NameError) from wx.rb:1:in \`require’ from wx.rb:1 Exit code: 1 Can you tell me why is this happening ?…

---

## [Random segmentation faults](https://www.ruby-forum.com/t/random-segmentation-faults/175790)

<div class="topic-metadata">

**Author:** [@roddik](https://www.ruby-forum.com/u/roddik)\
**Replies:** 0\
**Last updated:** [September 19, 2009, 7:49pm UTC](https://www.ruby-forum.com/t/random-segmentation-faults/175790 "2009-09-19T19:49:19Z")

</div>

Hello. I have recently written some complex ruby script that eventually fails with segfaults in random time and in random places, like nokogiri, mechanize, iconv, timeout. I’ve tried it under 1.9.1 p 129, 1.8.6 p 369 …

---

## [Sudoku Difficulty](https://www.ruby-forum.com/t/sudoku-difficulty/175773)

<div class="topic-metadata">

**Author:** [@vipulkelkar](https://www.ruby-forum.com/u/vipulkelkar)\
**Replies:** 3\
**Last updated:** [September 19, 2009, 3:53pm UTC](https://www.ruby-forum.com/t/sudoku-difficulty/175773 "2009-09-19T15:53:05Z")

</div>

Hi guys I am trying to develop a sudoku app in ruby. I want to have the difficulty levels…say easy Medium and hard What decides the level of difficulty.How should i place my numbers depending upon the difficulty leve…

---

## [Retrofitting tests](https://www.ruby-forum.com/t/retrofitting-tests/175782)

<div class="topic-metadata">

**Author:** [@caiwangqin](https://www.ruby-forum.com/u/caiwangqin)\
**Replies:** 0\
**Last updated:** [September 19, 2009, 2:38pm UTC](https://www.ruby-forum.com/t/retrofitting-tests/175782 "2009-09-19T14:38:22Z")

</div>

I posted this in Test, where it’s not clear if anyone would find it. http://www.ruby-forum.com/topic/195641 Thank you.

---

## [How can I cache param-based Enumerator call results?](https://www.ruby-forum.com/t/how-can-i-cache-param-based-enumerator-call-results/175695)

<div class="topic-metadata">

**Author:** [@Shot\_SPiotr\_S.S](https://www.ruby-forum.com/u/Shot_SPiotr_S.S)\
**Replies:** 1\
**Last updated:** [September 19, 2009, 12:05pm UTC](https://www.ruby-forum.com/t/how-can-i-cache-param-based-enumerator-call-results/175695 "2009-09-19T12:05:24Z")

</div>

Iâ€™m trying to cache a lazy-evaluated, param-based Enumerator calls. Considering the following code: def arith a, b Enumerator.new do |yielder| \[‘+’, ‘\*’\].each do |oper| sleep 1 # simulates a param-based, long-runn…

---

## [Proxysite open facebook ,myaspace,.....etc](https://www.ruby-forum.com/t/proxysite-open-facebook-myaspace-etc/175772)

<div class="topic-metadata">

**Author:** [@mido\_mido](https://www.ruby-forum.com/u/mido_mido)\
**Replies:** 0\
**Last updated:** [September 19, 2009, 9:05am UTC](https://www.ruby-forum.com/t/proxysite-open-facebook-myaspace-etc/175772 "2009-09-19T09:05:42Z")

</div>

Proxysite open facebook ,myaspace,…etc http://proxypop.110mb.com/

---

## [Value isn't appended in puts statement(appears on next line)](https://www.ruby-forum.com/t/value-isnt-appended-in-puts-statement-appears-on-next-line/175691)

<div class="topic-metadata">

**Author:** [@mrmaster](https://www.ruby-forum.com/u/mrmaster)\
**Replies:** 12\
**Last updated:** [September 19, 2009, 8:35am UTC](https://www.ruby-forum.com/t/value-isnt-appended-in-puts-statement-appears-on-next-line/175691 "2009-09-19T08:35:51Z")

</div>

Hello, I have a small script which reads each line from a txt file and appends it to the puts statement. My problem is that the last single quotation mark appears on a new line. How would I make it appear on the same …

---

## [Time.new.utc Question](https://www.ruby-forum.com/t/time-new-utc-question/175764)

<div class="topic-metadata">

**Author:** [@dbf](https://www.ruby-forum.com/u/dbf)\
**Replies:** 1\
**Last updated:** [September 19, 2009, 8:23am UTC](https://www.ruby-forum.com/t/time-new-utc-question/175764 "2009-09-19T08:23:33Z")

</div>

Can anyone explain the following? local = Time.new; utc = Time.new.utc =\> Sat Sep 19 02:42:40 UTC 2009 local =\> Fri Sep 18 20:42:40 -0600 2009 utc =\> Sat Sep 19 02:42:40 UTC 2009 local.strftime(’%s’).to\_i …

---

## [Catching "File Saved" or CMD-W Signal?](https://www.ruby-forum.com/t/catching-file-saved-or-cmd-w-signal/175765)

<div class="topic-metadata">

**Author:** [@viatropos](https://www.ruby-forum.com/u/viatropos)\
**Replies:** 2\
**Last updated:** [September 19, 2009, 7:51am UTC](https://www.ruby-forum.com/t/catching-file-saved-or-cmd-w-signal/175765 "2009-09-19T07:51:01Z")

</div>

Hey, How does git/svn know to to finish committing your changes after you close the commit message (assuming you open it in TextMate or something)? I would like to create something similar, where you run a command, …

---

## [Jruby-complete.jar](https://www.ruby-forum.com/t/jruby-complete-jar/170953)

<div class="topic-metadata">

**Author:** [@jahu](https://www.ruby-forum.com/u/jahu)\
**Replies:** 1\
**Last updated:** [September 19, 2009, 6:37am UTC](https://www.ruby-forum.com/t/jruby-complete-jar/170953 "2009-09-19T06:37:38Z")

</div>

Hi all, I am new to jruby and immediately stumbled over some problems when using jruby-complete.jar. In my programme I make use of DRb, which does not seem to work with jruby-complete. When I call a method on a remot…

---

## [Subprocessing with popen or popen3?](https://www.ruby-forum.com/t/subprocessing-with-popen-or-popen3/175729)

<div class="topic-metadata">

**Author:** [@revenantphoenix](https://www.ruby-forum.com/u/revenantphoenix)\
**Replies:** 2\
**Last updated:** [September 19, 2009, 5:28am UTC](https://www.ruby-forum.com/t/subprocessing-with-popen-or-popen3/175729 "2009-09-19T05:28:34Z")

</div>

Currently I have a class MyServer that extends IO, and then I call: server = MyServer.popen(COMMAND, 'r+) The only problem is I need to separate stderr and stdout. I contemplated popen3, but I don’t see how I can make…

---

## [How to derive from DateTime?](https://www.ruby-forum.com/t/how-to-derive-from-datetime/175748)

<div class="topic-metadata">

**Author:** [@luisealvarezb](https://www.ruby-forum.com/u/luisealvarezb)\
**Replies:** 5\
**Last updated:** [September 19, 2009, 4:15am UTC](https://www.ruby-forum.com/t/how-to-derive-from-datetime/175748 "2009-09-19T04:15:59Z")

</div>

Hi, everybody: I have been tring to derive a class from DateTime and in doing so have come across some nasty problems: it turns out overriding the constructor is not straight forward at all. I was looking for some po…

---

## [Mucking about with dynamically adding methods to objects](https://www.ruby-forum.com/t/mucking-about-with-dynamically-adding-methods-to-objects/175672)

<div class="topic-metadata">

**Author:** [@azgar](https://www.ruby-forum.com/u/azgar)\
**Replies:** 11\
**Last updated:** [September 19, 2009, 4:14am UTC](https://www.ruby-forum.com/t/mucking-about-with-dynamically-adding-methods-to-objects/175672 "2009-09-19T04:14:24Z")

</div>

I’ve been toying with Ruby for a while, but only now am I beginning to understand some of the amazing properties Ruby has. I was simply floored when I realise you could add methods to an object dynamically. So I saw …

---

## [Unicorn 0.92.0](https://www.ruby-forum.com/t/unicorn-0-92-0/175753)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [September 19, 2009, 12:21am UTC](https://www.ruby-forum.com/t/unicorn-0-92-0/175753 "2009-09-19T00:21:15Z")

</div>

Unicorn is a Rack HTTP server for Unix and fast clients Small fixes and documentation are the focus of this release. James Golick reported and helped me track down a bug that caused SIGHUP to drop the default listener…

---

## [Ri\_cal 0.8.4 Released](https://www.ruby-forum.com/t/ri-cal-0-8-4-released/175752)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 0\
**Last updated:** [September 18, 2009, 11:36pm UTC](https://www.ruby-forum.com/t/ri-cal-0-8-4-released/175752 "2009-09-18T23:36:10Z")

</div>

ri\_cal version 0.8.4 has been released! http://ri-cal.rubyforge.org/ A new Ruby implementation of RFC2445 iCalendar. The existing Ruby iCalendar libraries (e.g. icalendar, vpim) provide for parsing and generating…

---

## [Compare 2 files with different names (checksum?)](https://www.ruby-forum.com/t/compare-2-files-with-different-names-checksum/175735)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 4\
**Last updated:** [September 18, 2009, 10:55pm UTC](https://www.ruby-forum.com/t/compare-2-files-with-different-names-checksum/175735 "2009-09-18T22:55:33Z")

</div>

Hey all I’ve been using File.compare to see if two files are the same, but now i have the case where one is a renamed copy of the other. I’d like to treat these two as the same in this case. Can anyone suggest a tes…

---

## [AUTO: Joe Grastara is out of the office (returning 09/19/2009)](https://www.ruby-forum.com/t/auto-joe-grastara-is-out-of-the-office-returning-09-19-2009/175742)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [September 18, 2009, 8:36pm UTC](https://www.ruby-forum.com/t/auto-joe-grastara-is-out-of-the-office-returning-09-19-2009/175742 "2009-09-18T20:36:30Z")

</div>

I am out of the office until 09/19/2009. Please send mail to removed\_email\_address@domain.invalid for help with any issues. Note: This is an automated response to your message “Value isn’t appended in puts statement…

---

## [NetBeans 6.7.1 update1 for ruby-debug-ide19 released](https://www.ruby-forum.com/t/netbeans-6-7-1-update1-for-ruby-debug-ide19-released/175738)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 0\
**Last updated:** [September 18, 2009, 7:42pm UTC](https://www.ruby-forum.com/t/netbeans-6-7-1-update1-for-ruby-debug-ide19-released/175738 "2009-09-18T19:42:05Z")

</div>

NetBeans-6.7.1-update1 has been released. This enables the “jump” command running with Ruby 1.9.x. See: http://wiki.github.com/mark-moseley/ruby-debug/netbeans-671-ide-updates

---

## [\[Bug #2118\] SUN $B$N(B cc (SunStudio11 C 5.8 $B%3%s%Q%$%i(B) $B$G(B dir.c $B$N%3%s%Q%$%k$K\<:](https://www.ruby-forum.com/t/bug-2118-sun-b-n-b-cc-sunstudio11-c-5-8-b-3-s-q-i-b-b-g-b-dir-c-b-n-3-s-q-k-k/175726)

<div class="topic-metadata">

**Author:** [@Naohisa\_G](https://www.ruby-forum.com/u/Naohisa_G)\
**Replies:** 0\
**Last updated:** [September 18, 2009, 1:50pm UTC](https://www.ruby-forum.com/t/bug-2118-sun-b-n-b-cc-sunstudio11-c-5-8-b-3-s-q-i-b-b-g-b-dir-c-b-n-3-s-q-k-k/175726 "2009-09-18T13:50:15Z")

</div>

Bug #2118: SUN e$B$Ne(B cc (SunStudio11 C 5.8 e$B%3%s%Q%$%ie(B) e$B$Ge(B dir.c e$B$N%3%s%Q%$%k$K\<:GT$9$ke(B http://redmine.ruby-lang.org/issues/show/2118 e$B5/I\<\<Te(B: Naohisa G. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B:…

---

## [Block issues](https://www.ruby-forum.com/t/block-issues/175640)

<div class="topic-metadata">

**Author:** [@revenantphoenix](https://www.ruby-forum.com/u/revenantphoenix)\
**Replies:** 16\
**Last updated:** [September 18, 2009, 1:35pm UTC](https://www.ruby-forum.com/t/block-issues/175640 "2009-09-18T13:35:02Z")

</div>

In the following block, each plugin in the constant hash PLUGINS is supposed to take two parameters, server and config. The only problem here is that: rmss.rb:175:in start\_plugins': undefined methodplugin’ for main:O…

---

## [Repeatedly open file or save entire file to memory?](https://www.ruby-forum.com/t/repeatedly-open-file-or-save-entire-file-to-memory/175682)

<div class="topic-metadata">

**Author:** [@leveille](https://www.ruby-forum.com/u/leveille)\
**Replies:** 8\
**Last updated:** [September 18, 2009, 11:18am UTC](https://www.ruby-forum.com/t/repeatedly-open-file-or-save-entire-file-to-memory/175682 "2009-09-18T11:18:01Z")

</div>

I want to make sure I do what is most efficient when dealing with multiple and potentially large files. I need to take row(n) and row(n+1) from a file and use the data to do things in other parts of my program. Then t…

---

## [Best-First Algorithm in Ruby?](https://www.ruby-forum.com/t/best-first-algorithm-in-ruby/175709)

<div class="topic-metadata">

**Author:** [@masonkessinger](https://www.ruby-forum.com/u/masonkessinger)\
**Replies:** 1\
**Last updated:** [September 18, 2009, 11:07am UTC](https://www.ruby-forum.com/t/best-first-algorithm-in-ruby/175709 "2009-09-18T11:07:29Z")

</div>

I am writing a Best-First Search program in Ruby but I have never done tree searches before and so am a bit lost. This routine is being applied to the 8-puzzle problem of moving 8 tiles plus a blank space in an 3 x …

---

## [REXML::Formatters::Pretty wrap width?](https://www.ruby-forum.com/t/rexml-pretty-wrap-width/175719)

<div class="topic-metadata">

**Author:** [@scrajesh](https://www.ruby-forum.com/u/scrajesh)\
**Replies:** 0\
**Last updated:** [September 18, 2009, 10:51am UTC](https://www.ruby-forum.com/t/rexml-pretty-wrap-width/175719 "2009-09-18T10:51:40Z")

</div>

Hey all, So I am doing something like this: out = REXML::Formatters::Pretty.new(4) out.width = 5000 # arbitrarily large value out.compact = true puts out.write(tmtheme.root,“”) Yet long lines are getting broken sti…

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

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