# Ruby

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

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

---

## [Defining a "followed by" operator or function in Ruby](https://www.ruby-forum.com/t/defining-a-followed-by-operator-or-function-in-ruby/163615)

<div class="topic-metadata">

**Author:** [@latte](https://www.ruby-forum.com/u/latte)\
**Replies:** 2\
**Last updated:** [March 24, 2009, 6:35am UTC](https://www.ruby-forum.com/t/defining-a-followed-by-operator-or-function-in-ruby/163615 "2009-03-24T06:35:43Z")

</div>

Hi all - As part of doing a parsing lib in Ruby, I want to create a “followed by” operator or function. In other words, I want to be able to specify that (say) “foo” must be followed by n or more occurrences of “bar”. …

---

## [Problem writing a text file](https://www.ruby-forum.com/t/problem-writing-a-text-file/163701)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 2\
**Last updated:** [March 24, 2009, 6:25am UTC](https://www.ruby-forum.com/t/problem-writing-a-text-file/163701 "2009-03-24T06:25:43Z")

</div>

Hi, I imported some test data from Excel as a CSV file. I massaged that data and tried to write it out as CSV text file. However, no file was created on the file system. I’ve put out a snippet of the relevant code an…

---

## [Windows : Retrive Quick Launch toolbar items](https://www.ruby-forum.com/t/windows-retrive-quick-launch-toolbar-items/163624)

<div class="topic-metadata">

**Author:** [@ak3003](https://www.ruby-forum.com/u/ak3003)\
**Replies:** 4\
**Last updated:** [March 24, 2009, 5:26am UTC](https://www.ruby-forum.com/t/windows-retrive-quick-launch-toolbar-items/163624 "2009-03-24T05:26:17Z")

</div>

How can I get Quick Launch toolbar items, present in the explorer/ desktop area? (Where you can see “Show Desktop” menu item) Regards, –AK

---

## [Comparing xml](https://www.ruby-forum.com/t/comparing-xml/163672)

<div class="topic-metadata">

**Author:** [@ahoward](https://www.ruby-forum.com/u/ahoward)\
**Replies:** 10\
**Last updated:** [March 24, 2009, 3:53am UTC](https://www.ruby-forum.com/t/comparing-xml/163672 "2009-03-24T03:53:13Z")

</div>

this is a rough start care to improve? kind regards. a @ http://codeforpeople.com/

---

## [Ruby tkentry tkvariable with class wrappers problem](https://www.ruby-forum.com/t/ruby-tkentry-tkvariable-with-class-wrappers-problem/163673)

<div class="topic-metadata">

**Author:** [@branco](https://www.ruby-forum.com/u/branco)\
**Replies:** 5\
**Last updated:** [March 24, 2009, 3:42am UTC](https://www.ruby-forum.com/t/ruby-tkentry-tkvariable-with-class-wrappers-problem/163673 "2009-03-24T03:42:06Z")

</div>

I try to create a tkEntry with a tkVariable attached in the class startupinterface and create a callback to startupinterfacecontroller but it doesn’t work : it says that themember variable supposed to hold a link to t…

---

## [Code review - Fix backtrace and 1.9 support for RubyClass/RubyMethod attributes](https://www.ruby-forum.com/t/code-review-fix-backtrace-and-1-9-support-for-rubyclass-rubymethod-attributes/163471)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 1\
**Last updated:** [March 24, 2009, 3:16am UTC](https://www.ruby-forum.com/t/code-review-fix-backtrace-and-1-9-support-for-rubyclass-rubymethod-attributes/163471 "2009-03-24T03:16:54Z")

</div>

Assuming you have done “git clone git://github.com/shri/ironruby.git” before and run Languages\\Ruby\\Scripts\\dev.bat, git pull GitDiff.bat ce7438b4c038dc8937f59758f33c387e139aea6a 8cf29c0704af4d3fdf51069aa6cbf034b297…

---

## [Debugging ruby code in a host](https://www.ruby-forum.com/t/debugging-ruby-code-in-a-host/163675)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 7\
**Last updated:** [March 24, 2009, 2:56am UTC](https://www.ruby-forum.com/t/debugging-ruby-code-in-a-host/163675 "2009-03-24T02:56:59Z")

</div>

Hi With my IronRubyMVC implementation I’m far enough to figure out that I need to be able to put breakpoints in my ruby code :slight\_smile: Now the question is how, because I think I tried all of the ways that are …

---

## [Nokogiri 1.2.3 Released](https://www.ruby-forum.com/t/nokogiri-1-2-3-released/163607)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 6\
**Last updated:** [March 23, 2009, 11:44pm UTC](https://www.ruby-forum.com/t/nokogiri-1-2-3-released/163607 "2009-03-23T23:44:02Z")

</div>

nokogiri version 1.2.3 has been released! http://nokogiri.rubyforge.org/ http://github.com/tenderlove/nokogiri/wikis http://github.com/tenderlove/nokogiri/tree/master http://rubyforge.org/mailman/listinfo/nokogiri-talk …

---

## [Rdoc, link to another class instance method](https://www.ruby-forum.com/t/rdoc-link-to-another-class-instance-method/163555)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 1\
**Last updated:** [March 23, 2009, 10:51pm UTC](https://www.ruby-forum.com/t/rdoc-link-to-another-class-instance-method/163555 "2009-03-23T22:51:53Z")

</div>

Hi, Is it possible that rdoc generates a link to an instance method that is in another class? I tried MyClass#instance\_method and MyClass.instance\_method, but both just generated raw text. Thank you.

---

## [Jruby tutorial required](https://www.ruby-forum.com/t/jruby-tutorial-required/161219)

<div class="topic-metadata">

**Author:** [@nekapoor](https://www.ruby-forum.com/u/nekapoor)\
**Replies:** 1\
**Last updated:** [March 23, 2009, 10:50pm UTC](https://www.ruby-forum.com/t/jruby-tutorial-required/161219 "2009-03-23T22:50:21Z")

</div>

If anyone has useful basic tutorials for learning jruby then please share. any pdf or link.

---

## [Ruby GUI Libs](https://www.ruby-forum.com/t/ruby-gui-libs/163547)

<div class="topic-metadata">

**Author:** [@coolboarderguy](https://www.ruby-forum.com/u/coolboarderguy)\
**Replies:** 11\
**Last updated:** [March 23, 2009, 10:45pm UTC](https://www.ruby-forum.com/t/ruby-gui-libs/163547 "2009-03-23T22:45:26Z")

</div>

Is there a nicer GUI framework for Ruby other than RubyGoo? I’m sure this question gets asked a lot, but has anyone used QT for their GUI library with Ruby? Also, what is the best way to bundle a Ruby app into an exec…

---

## [How to build with proper readline version](https://www.ruby-forum.com/t/how-to-build-with-proper-readline-version/157417)

<div class="topic-metadata">

**Author:** [@mfaine](https://www.ruby-forum.com/u/mfaine)\
**Replies:** 6\
**Last updated:** [March 23, 2009, 10:25pm UTC](https://www.ruby-forum.com/t/how-to-build-with-proper-readline-version/157417 "2009-03-23T22:25:27Z")

</div>

Hello, I am trying to build Ruby 1.9 on Mac OSX x86 Tiger. This first requires an update to readline. I have updated my readline but installed it to /usr/local since I do not want to update the original binaries. T…

---

## [JRuby in GSoC updates](https://www.ruby-forum.com/t/jruby-in-gsoc-updates/163682)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [March 23, 2009, 10:16pm UTC](https://www.ruby-forum.com/t/jruby-in-gsoc-updates/163682 "2009-03-23T22:16:38Z")

</div>

Ok, so RubyCentral didn’t get into GSoC. That means you’ll want to apply through Codehaus or Rails as a student/mentor. Set up a profile here: http://socghop.appspot.com/ And then click the “Apply to be a Mentor” link…

---

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

<div class="topic-metadata">

**Author:** [@rgreen](https://www.ruby-forum.com/u/rgreen)\
**Replies:** 0\
**Last updated:** [March 23, 2009, 9:37pm UTC](https://www.ruby-forum.com/t/1-9-1/163678 "2009-03-23T21:37:51Z")

</div>

I tried to instal Ruby 1.9.1 based on the instructions at hivelogic.com but after completing the process I discovered that the Ruby.h file was missing (Discovered when I tried to install Rmagick.). I fired up Textmate…

---

## [\[patch\] rake file path issue](https://www.ruby-forum.com/t/patch-rake-file-path-issue/163657)

<div class="topic-metadata">

**Author:** [@Jb\_Evain](https://www.ruby-forum.com/u/Jb_Evain)\
**Replies:** 4\
**Last updated:** [March 23, 2009, 8:03pm UTC](https://www.ruby-forum.com/t/patch-rake-file-path-issue/163657 "2009-03-23T20:03:28Z")

</div>

Hey, This patch fixes a case issue when building with rake. Could it be applied? Thanks,

---

## [Sliding Puzzle (#196)](https://www.ruby-forum.com/t/sliding-puzzle-196/162774)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 3\
**Last updated:** [March 23, 2009, 7:55pm UTC](https://www.ruby-forum.com/t/sliding-puzzle-196/162774 "2009-03-23T19:55:48Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have elapsed from the time this m…

---

## [\[ANN\] ActiveRecord Oracle enhanced adapter now supports JRuby](https://www.ruby-forum.com/t/ann-activerecord-oracle-enhanced-adapter-now-supports-jruby/163660)

<div class="topic-metadata">

**Author:** [@Raimonds\_Simanovski](https://www.ruby-forum.com/u/Raimonds_Simanovski)\
**Replies:** 1\
**Last updated:** [March 23, 2009, 7:04pm UTC](https://www.ruby-forum.com/t/ann-activerecord-oracle-enhanced-adapter-now-supports-jruby/163660 "2009-03-23T19:04:29Z")

</div>

I wanted to announce that ActiveRecord Oracle enhanced adapter (which initially was fork of original Oracle adapter for MRI) now also works on JRuby / JDBC as well as on Ruby 1.9.1 - http://blog.rayapps.com/2009/03/23…

---

## [Mspec errors. Where should I start contributing?](https://www.ruby-forum.com/t/mspec-errors-where-should-i-start-contributing/163639)

<div class="topic-metadata">

**Author:** [@Adam\_Kahtava](https://www.ruby-forum.com/u/Adam_Kahtava)\
**Replies:** 4\
**Last updated:** [March 23, 2009, 6:33pm UTC](https://www.ruby-forum.com/t/mspec-errors-where-should-i-start-contributing/163639 "2009-03-23T18:33:20Z")

</div>

When running mspec (mspec -ci core\\array\\append) I get the following error: \\Libraries.LCA\_RESTRICTED\\Builtis\\FileOps.cs:524:in \`ExpandPath’: Invalid argument - ~/.mspecrc (Errno::EINVAL) Should I be getting this er…

---

## [Is this how you start a hash?](https://www.ruby-forum.com/t/is-this-how-you-start-a-hash/163302)

<div class="topic-metadata">

**Author:** [@arghx1](https://www.ruby-forum.com/u/arghx1)\
**Replies:** 6\
**Last updated:** [March 23, 2009, 5:02pm UTC](https://www.ruby-forum.com/t/is-this-how-you-start-a-hash/163302 "2009-03-23T17:02:00Z")

</div>

I’m looking at the code below but still not clear about how this hash forms! The author of a ruby book I read claimed that the code forms hash. Is it? #not complete code, if you try to use it, it won’t work! requir…

---

## [Run a Ruby script (.rbw) from a dock shortcut in Mac OS X (Leopard)?](https://www.ruby-forum.com/t/run-a-ruby-script-rbw-from-a-dock-shortcut-in-mac-os-x-leopard/163523)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 8\
**Last updated:** [March 23, 2009, 4:13pm UTC](https://www.ruby-forum.com/t/run-a-ruby-script-rbw-from-a-dock-shortcut-in-mac-os-x-leopard/163523 "2009-03-23T16:13:08Z")

</div>

I can’t seem to find out how to do this… Thanks for any help. I have Ruby installed on my Mac (OS X Leopard) and it works fine from the terminal window. I’d like to create a dock shortcut or be able to just double-c…

---

## [\[ANN\] RMagick4J 0.3.7 Happy Birthmonth released](https://www.ruby-forum.com/t/ann-rmagick4j-0-3-7-happy-birthmonth-released/163600)

<div class="topic-metadata">

**Author:** [@Serabe](https://www.ruby-forum.com/u/Serabe)\
**Replies:** 1\
**Last updated:** [March 23, 2009, 3:41pm UTC](https://www.ruby-forum.com/t/ann-rmagick4j-0-3-7-happy-birthmonth-released/163600 "2009-03-23T15:41:50Z")

</div>

RMagick4J 0.3.7 Happy Birthmonth has been released! RMagick is a Ruby binding to ImageMagick and GraphicsMagick. RMagick4J implements ImageMagick functionality and the C portions of RMagick for use with JRuby. Curren…

---

## [Deleting Cookies](https://www.ruby-forum.com/t/deleting-cookies/163644)

<div class="topic-metadata">

**Author:** [@indium](https://www.ruby-forum.com/u/indium)\
**Replies:** 0\
**Last updated:** [March 23, 2009, 3:05pm UTC](https://www.ruby-forum.com/t/deleting-cookies/163644 "2009-03-23T15:05:31Z")

</div>

Hi All, My requirement is deleting cookies and cache. I tried with the following code CODE: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Dir.chdir(“C:\\Documents and Settings\\venkat\\Local Settings\\Temporary Internet F…

---

## [Monitoring the directory](https://www.ruby-forum.com/t/monitoring-the-directory/196923)

<div class="topic-metadata">

**Author:** [@loganathan](https://www.ruby-forum.com/u/loganathan)\
**Replies:** 2\
**Last updated:** [March 23, 2009, 1:23pm UTC](https://www.ruby-forum.com/t/monitoring-the-directory/196923 "2009-03-23T13:23:31Z")

</div>

Hi Is there any pre-defined module available in ruby to monitor a given directory. monitoring in the sense, \* When ever a new file is created or removed inside that directory \* When ever a new directory is created …

---

## [Regular expression](https://www.ruby-forum.com/t/regular-expression/163617)

<div class="topic-metadata">

**Author:** [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Replies:** 7\
**Last updated:** [March 23, 2009, 1:22pm UTC](https://www.ruby-forum.com/t/regular-expression/163617 "2009-03-23T13:22:34Z")

</div>

Hi, I know that what i’m going to ask is for the solution for a simple problem. But as I’m new to Ruby I have not learnt a lot about regular expressions in Ruby. Can anybody tell me how to extract all the contents wh…

---

## [Loading offline html files with mechanize](https://www.ruby-forum.com/t/loading-offline-html-files-with-mechanize/163631)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 0\
**Last updated:** [March 23, 2009, 12:43pm UTC](https://www.ruby-forum.com/t/loading-offline-html-files-with-mechanize/163631 "2009-03-23T12:43:24Z")

</div>

this may be a dumb simple question yet ive googled and cant find out what im doing wrong in my unit tests i want to use offline html pages otherwise live pages content will change and cause my tests to fail. How do i…

---

## [Re: Problem getting IronRuby running - it won't compile](https://www.ruby-forum.com/t/re-problem-getting-ironruby-running-it-wont-compile/163568)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 4\
**Last updated:** [March 23, 2009, 11:17am UTC](https://www.ruby-forum.com/t/re-problem-getting-ironruby-running-it-wont-compile/163568 "2009-03-23T11:17:40Z")

</div>

Open ruby.sln. IronRuby.sln is deprecated, and should be deleted (I thought it was). Are you using the old SVN sources? If so you should be using the Git repo, or the binary we just released at Rubyforge. JD

---

## [Can rubygems do rdoc on update?](https://www.ruby-forum.com/t/can-rubygems-do-rdoc-on-update/163619)

<div class="topic-metadata">

**Author:** [@arvliet](https://www.ruby-forum.com/u/arvliet)\
**Replies:** 2\
**Last updated:** [March 23, 2009, 9:44am UTC](https://www.ruby-forum.com/t/can-rubygems-do-rdoc-on-update/163619 "2009-03-23T09:44:58Z")

</div>

I’ve added the following to my .gemrc file: gem: --rdoc rdoc: --fmt ajax --charset utf8 --exclude .generator. – exclude .test. --exclude .spec. This automatically builds rdocs on gem install, and gives me the ajax- …

---

## [Reg IO class](https://www.ruby-forum.com/t/reg-io-class/163613)

<div class="topic-metadata">

**Author:** [@abirami](https://www.ruby-forum.com/u/abirami)\
**Replies:** 2\
**Last updated:** [March 23, 2009, 9:37am UTC](https://www.ruby-forum.com/t/reg-io-class/163613 "2009-03-23T09:37:48Z")

</div>

Hi, Should we close the file after reading it? Please see the code below… data = IO.readlines(“test.txt”,“r”) diskfile = File.open(“test.xml”,“w+”) data.each do |line| line.chomp! diskfile.puts(line) if line.lengt…

---

## [\[Bug #1310\] HEAP\_SIZE $B$GIT6q9g!)(B](https://www.ruby-forum.com/t/bug-1310-heap-size-b-git6q9g-b/163583)

<div class="topic-metadata">

**Author:** [@Narihiro\_N](https://www.ruby-forum.com/u/Narihiro_N)\
**Replies:** 3\
**Last updated:** [March 23, 2009, 4:57am UTC](https://www.ruby-forum.com/t/bug-1310-heap-size-b-git6q9g-b/163583 "2009-03-23T04:57:46Z")

</div>

e$B%A%1%C%He(B #1310 e$B$,99?7$5$l$^$7$?!#e(B (by Narihiro N.) narie$B$G$9!%e(B e$B$I$&$d$ie(B HEAP\_SIZE e$B$,Bg$-$9$.$k$H!$DI2C$9$ke(B heap\_slot e$B?t$N7W;;$,$\*$+$7$/$J$k$h$&$G$9!%e(B e$B0J2\<$NMM$K=$@5$9$k$HD\>$j$^$7…

---

## [Cond: Resolve errors without unwinding the stack](https://www.ruby-forum.com/t/cond-resolve-errors-without-unwinding-the-stack/163606)

<div class="topic-metadata">

**Author:** [@noagenda](https://www.ruby-forum.com/u/noagenda)\
**Replies:** 0\
**Last updated:** [March 23, 2009, 3:32am UTC](https://www.ruby-forum.com/t/cond-resolve-errors-without-unwinding-the-stack/163606 "2009-03-23T03:32:09Z")

</div>

Hello – Here is a portion of the readme for this new project. For those unfamiliar with condition systems, I recommend watching a few minutes of Seibel in the video mentioned below. = Cond == Description Resolve e…

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

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