# Ruby

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

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

---

## [Rawr 1.1.2](https://www.ruby-forum.com/t/rawr-1-1-2/155804)

<div class="topic-metadata">

**Author:** [@Logan\_B](https://www.ruby-forum.com/u/Logan_B)\
**Replies:** 0\
**Last updated:** [December 17, 2008, 1:20am UTC](https://www.ruby-forum.com/t/rawr-1-1-2/155804 "2008-12-17T01:20:01Z")

</div>

Rawr 1.1.2 has been released! Rawr is a packaging and deployment tool for JRuby that lets you compile your JRuby project into a jar, exe, or .app. http://rawr.rubyforge.org/ This is mostly some XP/Vista fixes, and a …

---

## [Invoking Ruby code from a low-level language?](https://www.ruby-forum.com/t/invoking-ruby-code-from-a-low-level-language/155456)

<div class="topic-metadata">

**Author:** [@absolute-beginner](https://www.ruby-forum.com/u/absolute-beginner)\
**Replies:** 10\
**Last updated:** [December 17, 2008, 1:03am UTC](https://www.ruby-forum.com/t/invoking-ruby-code-from-a-low-level-language/155456 "2008-12-17T01:03:02Z")

</div>

Hi, my sincerest apologies if this question has already been answered somewhere, but google didn’t turn anything up… I’m working on a small university research project which is trying to create a network weathermap by…

---

## [Blur on transparent images with RMagick](https://www.ruby-forum.com/t/blur-on-transparent-images-with-rmagick/155769)

<div class="topic-metadata">

**Author:** [@leethal](https://www.ruby-forum.com/u/leethal)\
**Replies:** 1\
**Last updated:** [December 16, 2008, 11:42pm UTC](https://www.ruby-forum.com/t/blur-on-transparent-images-with-rmagick/155769 "2008-12-16T23:42:09Z")

</div>

Hello, Let’s start with some code. http://pastie.org/340438 . If you run it (after changing the font on line 33), you get a neat image with the text appearing two times. One flat, the other with a blur. Now, set the …

---

## [Rubygems install confusion - beginner problems](https://www.ruby-forum.com/t/rubygems-install-confusion-beginner-problems/155615)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 3\
**Last updated:** [December 16, 2008, 11:39pm UTC](https://www.ruby-forum.com/t/rubygems-install-confusion-beginner-problems/155615 "2008-12-16T23:39:54Z")

</div>

Yesterday I compiled ruby 1.8.7, and have verified that it’s now resident on my Kubuntu Linux 8.10 OS. All’s well, except that I’m in a bit of a muddle with rubygems. It appears that something or other (Philip Gawlows…

---

## [Persistent Objects with Ruby - simple beginning](https://www.ruby-forum.com/t/persistent-objects-with-ruby-simple-beginning/226032)

<div class="topic-metadata">

**Author:** [@Casimir\_P](https://www.ruby-forum.com/u/Casimir_P)\
**Replies:** 2\
**Last updated:** [December 16, 2008, 10:32pm UTC](https://www.ruby-forum.com/t/persistent-objects-with-ruby-simple-beginning/226032 "2008-12-16T22:32:19Z")

</div>

Object persistence, I want it, without SQL or other schemes that could be implemented in ruby and somewhat automated instead. Smalltalk and Squeak inspired. Objects exist, no CRUD or ‘saving’ or ‘writes’. So, as an a…

---

## [Marshal\_load, marshal\_dump](https://www.ruby-forum.com/t/marshal-load-marshal-dump/155583)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 6\
**Last updated:** [December 16, 2008, 8:04pm UTC](https://www.ruby-forum.com/t/marshal-load-marshal-dump/155583 "2008-12-16T20:04:05Z")

</div>

Currently RMagick uses the old \_dump and \_load methods to marshal/unmarshal images. I’d like to start using the new marshal\_load and marshal\_dump methods. What is the impact of switching? Can I just replace \_dump and …

---

## [SVN, Git, Rubyspec, Ironruby-Tags updated](https://www.ruby-forum.com/t/svn-git-rubyspec-ironruby-tags-updated/155743)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 1\
**Last updated:** [December 16, 2008, 7:57pm UTC](https://www.ruby-forum.com/t/svn-git-rubyspec-ironruby-tags-updated/155743 "2008-12-16T19:57:37Z")

</div>

I’ve pushed out new versions of SVN, Git, Rubyspec and IronRuby-tags. Sorry about the dry spell, I’ll try to keep up the daily releases. Enjoy! JD

---

## [RSay GEM (rtranslate clone)](https://www.ruby-forum.com/t/rsay-gem-rtranslate-clone/155783)

<div class="topic-metadata">

**Author:** [@mekdigital](https://www.ruby-forum.com/u/mekdigital)\
**Replies:** 0\
**Last updated:** [December 16, 2008, 7:29pm UTC](https://www.ruby-forum.com/t/rsay-gem-rtranslate-clone/155783 "2008-12-16T19:29:56Z")

</div>

HI! I was in the mood for packing my first gem for educational purpose and I created RSay (Google Code Archive - Long-term storage for Google Code Project Hosting.) a better\* implementation of rtranslate, but my exec…

---

## [Headers problem installing hpricot](https://www.ruby-forum.com/t/headers-problem-installing-hpricot/155781)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 1\
**Last updated:** [December 16, 2008, 7:13pm UTC](https://www.ruby-forum.com/t/headers-problem-installing-hpricot/155781 "2008-12-16T19:13:38Z")

</div>

I just tried (on OS X 10.5) an install of hpricot, and was told that it couldn’t be compiled because the ruby headers could not be found. Curiously, I can install it on my notebook, which is also OS X 10.5. Anyone kno…

---

## [URI path is not taking parameters](https://www.ruby-forum.com/t/uri-path-is-not-taking-parameters/155757)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 3\
**Last updated:** [December 16, 2008, 5:59pm UTC](https://www.ruby-forum.com/t/uri-path-is-not-taking-parameters/155757 "2008-12-16T17:59:21Z")

</div>

myurl = “http://twitter.com/statuses/friends\_timeline.json?since\_id=1060198339” uri = URI.parse(myurl) puts uri.path =\> http://twitter.com/statuses/friends\_timeline.json Where has “?since\_id=1060198339” gone? uri.p…

---

## [Implementing python's os.walk](https://www.ruby-forum.com/t/implementing-pythons-os-walk/155758)

<div class="topic-metadata">

**Author:** [@Brad\_V](https://www.ruby-forum.com/u/Brad_V)\
**Replies:** 5\
**Last updated:** [December 16, 2008, 4:35pm UTC](https://www.ruby-forum.com/t/implementing-pythons-os-walk/155758 "2008-12-16T16:35:10Z")

</div>

Hello, I seem to be having some difficulty creating a version of python’s os.walk() for ruby, and I was hoping for some pointers. As some background, python’s os.walk() \[1\] is a generator function. It is passed the t…

---

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

<div class="topic-metadata">

**Author:** [@archanab25](https://www.ruby-forum.com/u/archanab25)\
**Replies:** 3\
**Last updated:** [December 16, 2008, 4:27pm UTC](https://www.ruby-forum.com/t/ruby-encryption/155648 "2008-12-16T16:27:33Z")

</div>

I want to translate exactly the below php code into ruby for encryption. echo up\_getEncrypted(‘mypassword’, 1); function up\_getEncrypted($password, $user\_id) { srand(); $td = mcrypt\_module\_open('rijndael-128', '…

---

## [\[Bug #891\] MiniTest::Assertions#assert\_instance\_of should use Object#instance\_of?](https://www.ruby-forum.com/t/bug-891-minitest-assertions-assert-instance-of-should-use-object-instance-of/155740)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 6\
**Last updated:** [December 16, 2008, 3:24pm UTC](https://www.ruby-forum.com/t/bug-891-minitest-assertions-assert-instance-of-should-use-object-instance-of/155740 "2008-12-16T15:24:04Z")

</div>

Bug #891: MiniTest::Assertions#assert\_instance\_of should use Object#instance\_of? http://redmine.ruby-lang.org/issues/show/891 e$B5/I\<\<Te(B: okkez \_ e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: lib e…

---

## [Xna+IronRuby+RubyNewb=headache](https://www.ruby-forum.com/t/xna-ironruby-rubynewb-headache/153309)

<div class="topic-metadata">

**Author:** [@grios](https://www.ruby-forum.com/u/grios)\
**Replies:** 18\
**Last updated:** [December 16, 2008, 2:50pm UTC](https://www.ruby-forum.com/t/xna-ironruby-rubynewb-headache/153309 "2008-12-16T14:50:46Z")

</div>

Hi I’m tiring to run a whole XNA game from IronRuby but I’m having some trouble translating the code from c# to ruby. That might be because I’m really new at Ruby. here is what I wrote so far Game = Microsoft::Xna::…

---

## [Help with an "easy" regular expression substitution](https://www.ruby-forum.com/t/help-with-an-easy-regular-expression-substitution/155619)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 15\
**Last updated:** [December 16, 2008, 1:17pm UTC](https://www.ruby-forum.com/t/help-with-an-easy-regular-expression-substitution/155619 "2008-12-16T13:17:48Z")

</div>

Hi, I’m getting crazy to get a theorically easy substitution: I’ve a file with a header: X-Level: \*\*\* where the number of “\*” is variable (from 0 up to 10). And I just want to replace “\*” by “X”, so get: X-Level: XX…

---

## [Re: Re: IO Error](https://www.ruby-forum.com/t/re-re-io-error/155765)

<div class="topic-metadata">

**Author:** [@Jay\_McGaffigan](https://www.ruby-forum.com/u/Jay_McGaffigan)\
**Replies:** 0\
**Last updated:** [December 16, 2008, 1:14pm UTC](https://www.ruby-forum.com/t/re-re-io-error/155765 "2008-12-16T13:14:52Z")

</div>

I might have seen this recently. However I'm in the middle of tracking down a multithreaded issue (not sure if it's rails 2.2. or Jruby... I'm thinking rails but I'm having a bugger of a time tracking it down and I'm…

---

## [Optparse with regexp](https://www.ruby-forum.com/t/optparse-with-regexp/155754)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [December 16, 2008, 10:56am UTC](https://www.ruby-forum.com/t/optparse-with-regexp/155754 "2008-12-16T10:56:01Z")

</div>

e$B$k$S$-$A$G$9!#e(B optparsee$B$G%\*%W%7%g%s0z?t$K%^%C%A$9$Y$-@55,I=8=$r;XDj$7$?\>l9g$N5sF0$,JQ$o$C$F$$$^$9!#e(B #!/usr/local/bin/ruby require ‘optparse’ opts = {} ARGV.options do |o| o.on("-T \[level\]", /^\[0-4\]$/) {…

---

## [Unique values in hash?](https://www.ruby-forum.com/t/unique-values-in-hash/155746)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 4\
**Last updated:** [December 16, 2008, 10:20am UTC](https://www.ruby-forum.com/t/unique-values-in-hash/155746 "2008-12-16T10:20:33Z")

</div>

Hi, I have a hash that contains duplicate data, for example, :username =\> “alex” comes many times. I want to loop around and print their names just once (only unique). In simple loop it would print “alex” repeatedly. …

---

## [Ruby methods and Properties](https://www.ruby-forum.com/t/ruby-methods-and-properties/155737)

<div class="topic-metadata">

**Author:** [@talib](https://www.ruby-forum.com/u/talib)\
**Replies:** 2\
**Last updated:** [December 16, 2008, 9:37am UTC](https://www.ruby-forum.com/t/ruby-methods-and-properties/155737 "2008-12-16T09:37:58Z")

</div>

Dear Experts, I am new to Ruby, could you please let me know where I can find list of Classes, objects,properties and methods used in Ruby scripting. Foe example: method1(arg1, arg2… argN) with small example snippets …

---

## [How to create PDF documents from MS word doc using Ruby](https://www.ruby-forum.com/t/how-to-create-pdf-documents-from-ms-word-doc-using-ruby/155662)

<div class="topic-metadata">

**Author:** [@talib](https://www.ruby-forum.com/u/talib)\
**Replies:** 2\
**Last updated:** [December 16, 2008, 7:43am UTC](https://www.ruby-forum.com/t/how-to-create-pdf-documents-from-ms-word-doc-using-ruby/155662 "2008-12-16T07:43:46Z")

</div>

Hi Experts, Could you please tell me how to create PDF documents from MS word doc using Ruby? I have no. of documents (Word Files) which I need to convert to .PDF. TIA, Talib H.

---

## [Wierd error on Tomcat](https://www.ruby-forum.com/t/wierd-error-on-tomcat/154984)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 14\
**Last updated:** [December 16, 2008, 5:43am UTC](https://www.ruby-forum.com/t/wierd-error-on-tomcat/154984 "2008-12-16T05:43:38Z")

</div>

Has anyone seen an error like this before ? org.jruby.rack.RackInitializationException: /usr/local/tomcat/webapps/testapp/WEB-INF/config/environment.rb (Too many open files)

---

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

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 3\
**Last updated:** [December 16, 2008, 5:34am UTC](https://www.ruby-forum.com/t/code-review-gitintegration2/155722 "2008-12-16T05:34:16Z")

</div>

tfpt review “/shelveset:gitintegration2;REDMOND\\jdeville” Comment : Context.rb Add helpers for mono and rake version changed the is\_test? method to rely on the presence of the test environment variable instead of t…

---

## [How to use ReXML "in the wild"?](https://www.ruby-forum.com/t/how-to-use-rexml-in-the-wild/155727)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 2\
**Last updated:** [December 16, 2008, 4:51am UTC](https://www.ruby-forum.com/t/how-to-use-rexml-in-the-wild/155727 "2008-12-16T04:51:01Z")

</div>

I’d very much like to use ReXML’s XPATH features to extract info from Google’s financial info pages, but find that Rexml chokes on the Javascript, here’s the result of trying to read in a page with this bit of code: r…

---

## [Google translate ruby client 1.0](https://www.ruby-forum.com/t/google-translate-ruby-client-1-0/155731)

<div class="topic-metadata">

**Author:** [@Dingding\_Ye](https://www.ruby-forum.com/u/Dingding_Ye)\
**Replies:** 0\
**Last updated:** [December 16, 2008, 4:49am UTC](https://www.ruby-forum.com/t/google-translate-ruby-client-1-0/155731 "2008-12-16T04:49:16Z")

</div>

Hi. I have just updated the google translate ruby client based on some comments. The main changes of 1.0 are: using the Google AJAX Language API instead of scrape add the batch translation support refactor Also, mo…

---

## [Struggling with array searches/queries](https://www.ruby-forum.com/t/struggling-with-array-searches-queries/155724)

<div class="topic-metadata">

**Author:** [@sclarke](https://www.ruby-forum.com/u/sclarke)\
**Replies:** 2\
**Last updated:** [December 16, 2008, 3:29am UTC](https://www.ruby-forum.com/t/struggling-with-array-searches-queries/155724 "2008-12-16T03:29:08Z")

</div>

I am reading delimited lines of data stored in array eg 123 name address date product I perform an array.each and then run an if statement based on the ID (123). What I wish to do now is say if you f…

---

## [Tables word problem in Ruby](https://www.ruby-forum.com/t/tables-word-problem-in-ruby/155535)

<div class="topic-metadata">

**Author:** [@hai\_l](https://www.ruby-forum.com/u/hai_l)\
**Replies:** 3\
**Last updated:** [December 16, 2008, 3:28am UTC](https://www.ruby-forum.com/t/tables-word-problem-in-ruby/155535 "2008-12-16T03:28:45Z")

</div>

My problem is about table in Word. With Ruby I can access, modify, save as… word document to txt document. But I don’t find the code to work with tables. I see that every tables is destroyed its format if I save as wo…

---

## [Re: Mix and Match (#186)](https://www.ruby-forum.com/t/re-mix-and-match-186/155686)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [December 16, 2008, 3:08am UTC](https://www.ruby-forum.com/t/re-mix-and-match-186/155686 "2008-12-16T03:08:03Z")

</div>

Is it possible to post a solution already? (I guess the question is poetical, just strange that no one posted one yet - was it so hard, or no one has time amidst the pre-XMas craze, or… ?) Cheers, Peter http://scr…

---

## [Re: Mix and Match (#186)](https://www.ruby-forum.com/t/re-mix-and-match-186/155726)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [December 16, 2008, 1:18am UTC](https://www.ruby-forum.com/t/re-mix-and-match-186/155726 "2008-12-16T01:18:08Z")

</div>

On 2008.12.12., at 19:36, Matthew M. wrote: -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q. 2: Please do not post any solutions or spoiler discussion for this quiz u…

---

## [Running an RB file causes IRB to flash and close?](https://www.ruby-forum.com/t/running-an-rb-file-causes-irb-to-flash-and-close/155721)

<div class="topic-metadata">

**Author:** [@shortnose](https://www.ruby-forum.com/u/shortnose)\
**Replies:** 1\
**Last updated:** [December 16, 2008, 12:44am UTC](https://www.ruby-forum.com/t/running-an-rb-file-causes-irb-to-flash-and-close/155721 "2008-12-16T00:44:47Z")

</div>

Hi, i’m a newbie to ruby, and i’m testing a script that simply does: puts “Test String” Although it works just fine, I barely have time to read it, as it flashes and closes almost imidiatly, I just cant seem to figure…

---

## [Need quick check on my rubygems install procedure](https://www.ruby-forum.com/t/need-quick-check-on-my-rubygems-install-procedure/155537)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 7\
**Last updated:** [December 16, 2008, 12:12am UTC](https://www.ruby-forum.com/t/need-quick-check-on-my-rubygems-install-procedure/155537 "2008-12-16T00:12:36Z")

</div>

I’m running Kubuntu Linux 8.10 - a fresh install. I’m setting up Ruby now. I’ve done this before, but it takes very little for me to be in over my head, so I need a quick review from someone who actually ‘has a clue’. …

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

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