# Ruby

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

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

---

## [Convert PNG to hex](https://www.ruby-forum.com/t/convert-png-to-hex/163597)

<div class="topic-metadata">

**Author:** [@heldopslippers](https://www.ruby-forum.com/u/heldopslippers)\
**Replies:** 19\
**Last updated:** [March 23, 2009, 2:49am UTC](https://www.ruby-forum.com/t/convert-png-to-hex/163597 "2009-03-23T02:49:20Z")

</div>

Hey people! … I have a question … I have to convert a png to hex (#FFFFFF). I searched now for over 2 hours but can’t find anything that works (like png library or RMagick). Here is some sample code i made but doesn’…

---

## [RMagick error: " no such file to load -- RMagick"](https://www.ruby-forum.com/t/rmagick-error-no-such-file-to-load-rmagick/163603)

<div class="topic-metadata">

**Author:** [@heldopslippers](https://www.ruby-forum.com/u/heldopslippers)\
**Replies:** 2\
**Last updated:** [March 23, 2009, 1:26am UTC](https://www.ruby-forum.com/t/rmagick-error-no-such-file-to-load-rmagick/163603 "2009-03-23T01:26:18Z")

</div>

Hee people (again today :P) … So I want to use RMagick but it doesn’t work … I installed it as told in the FAQ of the site of RMagick (http://rmagick.rubyforge.org/install-faq.html) sudo port install tiff -macosx im…

---

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

<div class="topic-metadata">

**Author:** [@ilan](https://www.ruby-forum.com/u/ilan)\
**Replies:** 0\
**Last updated:** [March 23, 2009, 12:48am UTC](https://www.ruby-forum.com/t/re-ann-rmagick4j-0-3-7-happy-birthmonth-released/163601 "2009-03-23T00:48:43Z")

</div>

This is hot. Can’t wait to give this bad boy a whirl. Ikai To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage\_email

---

## [How #{} works](https://www.ruby-forum.com/t/how-works/163584)

<div class="topic-metadata">

**Author:** [@zerohalo](https://www.ruby-forum.com/u/zerohalo)\
**Replies:** 3\
**Last updated:** [March 22, 2009, 8:01pm UTC](https://www.ruby-forum.com/t/how-works/163584 "2009-03-22T20:01:14Z")

</div>

Can anyone explain this? a = \[“b”\] =\> \[“b”\] a == “b” =\> false “#{a}” == “b” =\> true Since a is an array, how come the last statement evaluates as true?

---

## [REG: A link containing ruby programs](https://www.ruby-forum.com/t/reg-a-link-containing-ruby-programs/163585)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [March 22, 2009, 4:18pm UTC](https://www.ruby-forum.com/t/reg-a-link-containing-ruby-programs/163585 "2009-03-22T16:18:49Z")

</div>

Hi, Can anybody suggest a link which contains more programs on ruby. Thanks, Anil kumar

---

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

<div class="topic-metadata">

**Author:** [@Hikari\_AIKAWA](https://www.ruby-forum.com/u/Hikari_AIKAWA)\
**Replies:** 0\
**Last updated:** [March 22, 2009, 2:38pm UTC](https://www.ruby-forum.com/t/bug-1310-heap-size-b-git6q9g-b/163579 "2009-03-22T14:38:36Z")

</div>

Bug #1310: HEAP\_SIZE e$B$GIT6q9g!)e(B http://redmine.ruby-lang.org/issues/show/1310 e$B5/I\<\<Te(B: Hikari AIKAWA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.9.2dev (2009-03-22) \[i686-linux\] e$B$O$8$a…

---

## [Ruby-GetText-Package-2.0.0](https://www.ruby-forum.com/t/ruby-gettext-package-2-0-0/163581)

<div class="topic-metadata">

**Author:** [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Replies:** 0\
**Last updated:** [March 22, 2009, 2:29pm UTC](https://www.ruby-forum.com/t/ruby-gettext-package-2-0-0/163581 "2009-03-22T14:29:49Z")

</div>

Hi, Ruby-GetText-Package-2.0.0 is now available. Ruby-GetText-Package now separate 2 base libraries and 3 libraries which support Ruby on Rails 2.3.2. For all libraries/applications: locale - Management Locale IDs g…

---

## [INeedzPrepend](https://www.ruby-forum.com/t/ineedzprepend/163433)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 13\
**Last updated:** [March 22, 2009, 11:50am UTC](https://www.ruby-forum.com/t/ineedzprepend/163433 "2009-03-22T11:50:10Z")

</div>

Ruby’s gone too long now without something --anything, in the way of this: http://groups.google.com/group/ruby-core-google/browse\_thread/thread/bf71070dc26a60bb/cf49db443e8352f6?hl=en#cf49db443e8352f6 A long time ago …

---

## [Installing ruby](https://www.ruby-forum.com/t/installing-ruby/163540)

<div class="topic-metadata">

**Author:** [@daveh0](https://www.ruby-forum.com/u/daveh0)\
**Replies:** 2\
**Last updated:** [March 22, 2009, 10:50am UTC](https://www.ruby-forum.com/t/installing-ruby/163540 "2009-03-22T10:50:24Z")

</div>

i just got a new computer with vista home premium, and was wondering if i will have any problems installing ruby on it? Thanks. Da…

---

## [Passing a named function instead of a code block?](https://www.ruby-forum.com/t/passing-a-named-function-instead-of-a-code-block/163417)

<div class="topic-metadata">

**Author:** [@dohmer](https://www.ruby-forum.com/u/dohmer)\
**Replies:** 12\
**Last updated:** [March 22, 2009, 9:19am UTC](https://www.ruby-forum.com/t/passing-a-named-function-instead-of-a-code-block/163417 "2009-03-22T09:19:44Z")

</div>

Hello, I have a question about ruby’s feature that when you call a method, you can pass in a block of code after the last argument. Instead of writing a code block, suppose I already have a def’d method that would wor…

---

## [Executing an Ironruby file from a console app](https://www.ruby-forum.com/t/executing-an-ironruby-file-from-a-console-app/163549)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 2\
**Last updated:** [March 22, 2009, 4:51am UTC](https://www.ruby-forum.com/t/executing-an-ironruby-file-from-a-console-app/163549 "2009-03-22T04:51:29Z")

</div>

Hi all, I have the following ruby code which runs in a console application: require File.dirname(FILE) + ‘/lib/horn’ require File.dirname(FILE) + ‘/lib/dsl’ The file is named hornbuild.rb. The main ruby file has a r…

---

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

<div class="topic-metadata">

**Author:** [@gmichelson](https://www.ruby-forum.com/u/gmichelson)\
**Replies:** 0\
**Last updated:** [March 22, 2009, 2:03am UTC](https://www.ruby-forum.com/t/problem-getting-ironruby-running-it-wont-compile/163565 "2009-03-22T02:03:20Z")

</div>

I would like to play around with IronRuby and am following the series here http://www.rubyinside.com/ironruby-tutorials-by-justin-etheredge-964.html and am getting stumped on step 2 (compile IronRuby) I open IronRuby…

---

## [Ruby monitoring websites, databases and more on windows](https://www.ruby-forum.com/t/ruby-monitoring-websites-databases-and-more-on-windows/163273)

<div class="topic-metadata">

**Author:** [@di3go](https://www.ruby-forum.com/u/di3go)\
**Replies:** 3\
**Last updated:** [March 22, 2009, 12:27am UTC](https://www.ruby-forum.com/t/ruby-monitoring-websites-databases-and-more-on-windows/163273 "2009-03-22T00:27:10Z")

</div>

Im happy now, hehe, the company im working only using .net technology and i convinced my boss to give me a small project to prove how can ruby could help the company. Now the project! I need keep track of the status…

---

## [How to know where ERB stopped?](https://www.ruby-forum.com/t/how-to-know-where-erb-stopped/163481)

<div class="topic-metadata">

**Author:** [@matt\_neuburg](https://www.ruby-forum.com/u/matt_neuburg)\
**Replies:** 2\
**Last updated:** [March 21, 2009, 10:16pm UTC](https://www.ruby-forum.com/t/how-to-know-where-erb-stopped/163481 "2009-03-21T22:16:02Z")

</div>

Let’s say I’ve got an ERB template: text1 \<%= thing1() %\> text2 \<%= thing2() %\> text3 \<%= thing3() %\> text4 But let’s say we get an error (exception) during the execution of thing2(). How can I find out that thi…

---

## [GemsOnRuby v 0.0.0 (vaporware release / RFP)](https://www.ruby-forum.com/t/gemsonruby-v-0-0-0-vaporware-release-rfp/163544)

<div class="topic-metadata">

**Author:** [@churp](https://www.ruby-forum.com/u/churp)\
**Replies:** 3\
**Last updated:** [March 21, 2009, 9:48pm UTC](https://www.ruby-forum.com/t/gemsonruby-v-0-0-0-vaporware-release-rfp/163544 "2009-03-21T21:48:33Z")

</div>

Hello All, I am pleased to announce the vaporware release of GemsOnRuby gem, currently v. 0.0.0 This is a fork of Dr. Nic’s GemsOnRails, indended for providing the same gem-freezing functionality to a ruby applicati…

---

## [RE: 100% AOT compiled jruby with spring](https://www.ruby-forum.com/t/re-100-aot-compiled-jruby-with-spring/163552)

<div class="topic-metadata">

**Author:** [@Peter\_K\_Chan](https://www.ruby-forum.com/u/Peter_K_Chan)\
**Replies:** 0\
**Last updated:** [March 21, 2009, 9:47pm UTC](https://www.ruby-forum.com/t/re-100-aot-compiled-jruby-with-spring/163552 "2009-03-21T21:47:21Z")

</div>

I have done some precompilation of Rails core. Here are my current experiences: Some parts of Rails are loaded by listing files in a directory, which obviously does not work in a precompiled app. You will have to pa…

---

## [100% AOT compiled jruby with spring](https://www.ruby-forum.com/t/100-aot-compiled-jruby-with-spring/163209)

<div class="topic-metadata">

**Author:** [@M\_Suresh](https://www.ruby-forum.com/u/M_Suresh)\
**Replies:** 1\
**Last updated:** [March 21, 2009, 7:21pm UTC](https://www.ruby-forum.com/t/100-aot-compiled-jruby-with-spring/163209 "2009-03-21T19:21:35Z")

</div>

Hi, I am trying to create a 100 % AOT jruby app integrated with springframework. I am using jruby-1.2.0. For performance reasons our goal is to have the ruby app with all the dependencies compiled into jar files wit…

---

## [JRuby + javasand](https://www.ruby-forum.com/t/jruby-javasand/163207)

<div class="topic-metadata">

**Author:** [@bramSS](https://www.ruby-forum.com/u/bramSS)\
**Replies:** 1\
**Last updated:** [March 21, 2009, 7:20pm UTC](https://www.ruby-forum.com/t/jruby-javasand/163207 "2009-03-21T19:20:24Z")

</div>

Hello, I’ve been actively searching to get javasand/Sandbox working on jruby 1.1.5. After a while i found a patch applied it a rebuild it using ant.(The version that is available through jruby gem doesnt seem patche…

---

## [Directory monitoring](https://www.ruby-forum.com/t/directory-monitoring/163513)

<div class="topic-metadata">

**Author:** [@loganathan](https://www.ruby-forum.com/u/loganathan)\
**Replies:** 1\
**Last updated:** [March 21, 2009, 3:55pm UTC](https://www.ruby-forum.com/t/directory-monitoring/163513 "2009-03-21T15:55:58Z")

</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 …

---

## [Tracing method definition in core and stdlibs?](https://www.ruby-forum.com/t/tracing-method-definition-in-core-and-stdlibs/163448)

<div class="topic-metadata">

**Author:** [@princenamor](https://www.ruby-forum.com/u/princenamor)\
**Replies:** 5\
**Last updated:** [March 21, 2009, 11:20am UTC](https://www.ruby-forum.com/t/tracing-method-definition-in-core-and-stdlibs/163448 "2009-03-21T11:20:42Z")

</div>

Hi guys, I’m interested in tracing method definition in core and stdlibs. However, I’m not sure how to hook in the process at such an early stage. For example, if I put the following code in trace.rb: \[Class, Module…

---

## [\[ATTN\] IronRuby 0.3 Released](https://www.ruby-forum.com/t/attn-ironruby-0-3-released/163504)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 1\
**Last updated:** [March 21, 2009, 10:40am UTC](https://www.ruby-forum.com/t/attn-ironruby-0-3-released/163504 "2009-03-21T10:40:53Z")

</div>

I’m pleased to announce a new release of IronRuby, IronRuby 0.3! Download IronRuby 0.3 http://ironruby.net/Download (Note: if the download fails, just try again … RubyForge may still be propagating the package) Rele…

---

## [YAML config files with environment specific settings](https://www.ruby-forum.com/t/yaml-config-files-with-environment-specific-settings/163506)

<div class="topic-metadata">

**Author:** [@calvin98115](https://www.ruby-forum.com/u/calvin98115)\
**Replies:** 3\
**Last updated:** [March 21, 2009, 4:28am UTC](https://www.ruby-forum.com/t/yaml-config-files-with-environment-specific-settings/163506 "2009-03-21T04:28:37Z")

</div>

I need to store settings by environment but started off simply with my config file at: \\config\\config.yml. The only setting I had was this: attachment\_volume: \\attach\\transfers With this, cod I’m able to load the fil…

---

## [Difference between 1.8.6(7) RDOC and 1.9.1](https://www.ruby-forum.com/t/difference-between-1-8-6-7-rdoc-and-1-9-1/163458)

<div class="topic-metadata">

**Author:** [@rubina](https://www.ruby-forum.com/u/rubina)\
**Replies:** 2\
**Last updated:** [March 21, 2009, 3:11am UTC](https://www.ruby-forum.com/t/difference-between-1-8-6-7-rdoc-and-1-9-1/163458 "2009-03-21T03:11:06Z")

</div>

Team, Is there any way to know, by looking the rdoc site RDoc Documentation what’s new in 1.9.1? I just want to be able to tell if I am using a new feature introduced by 1.9.1. Thank you

---

## [ERROR: GlassFish gem needs Java ver. 6.0 or higher!](https://www.ruby-forum.com/t/error-glassfish-gem-needs-java-ver-6-0-or-higher/163498)

<div class="topic-metadata">

**Author:** [@mickeymike](https://www.ruby-forum.com/u/mickeymike)\
**Replies:** 2\
**Last updated:** [March 21, 2009, 12:49am UTC](https://www.ruby-forum.com/t/error-glassfish-gem-needs-java-ver-6-0-or-higher/163498 "2009-03-21T00:49:38Z")

</div>

Hi, I’m currently trying to install a jruby/merb/glassfish environment but i have this issue : $ jruby -S glassfish ERROR: You are running, Java version: 1.5.0\_16. ERROR: GlassFish gem needs Java ver. 6.0 or higher! …

---

## [Display computation time in IRB](https://www.ruby-forum.com/t/display-computation-time-in-irb/163464)

<div class="topic-metadata">

**Author:** [@leveille](https://www.ruby-forum.com/u/leveille)\
**Replies:** 4\
**Last updated:** [March 20, 2009, 11:50pm UTC](https://www.ruby-forum.com/t/display-computation-time-in-irb/163464 "2009-03-20T23:50:33Z")

</div>

Is there an easy way to display the time it takes to compute any function from within IRB?

---

## [Hash sort](https://www.ruby-forum.com/t/hash-sort/163473)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 1\
**Last updated:** [March 20, 2009, 9:50pm UTC](https://www.ruby-forum.com/t/hash-sort/163473 "2009-03-20T21:50:06Z")

</div>

I am trying to sort a hash and it seams to be working, the issue is that the sort goes from Z-A. Is there a way to make it sort A-Z? My code is pretty straight foward, I have a hash - @users - and I just say @hash.sor…

---

## [Self.inherited but wait until subclass is fully defined?](https://www.ruby-forum.com/t/self-inherited-but-wait-until-subclass-is-fully-defined/163466)

<div class="topic-metadata">

**Author:** [@matt\_neuburg](https://www.ruby-forum.com/u/matt_neuburg)\
**Replies:** 6\
**Last updated:** [March 20, 2009, 8:23pm UTC](https://www.ruby-forum.com/t/self-inherited-but-wait-until-subclass-is-fully-defined/163466 "2009-03-20T20:23:44Z")

</div>

Howdy. I am a class. There are certain rules for what you are supposed to do when you subclass me, so as a sanity check I wish to introspect your subclass to make sure it’s obeying the contract. However, my problem is…

---

## [Wrapping applications in Ruby](https://www.ruby-forum.com/t/wrapping-applications-in-ruby/163300)

<div class="topic-metadata">

**Author:** [@jphastings](https://www.ruby-forum.com/u/jphastings)\
**Replies:** 8\
**Last updated:** [March 20, 2009, 7:08pm UTC](https://www.ruby-forum.com/t/wrapping-applications-in-ruby/163300 "2009-03-20T19:08:06Z")

</div>

Variants on this theme have been posted time and again, but I can’t find a solution for this specific problem: Say I have a program I need to use that performs a task for a given amount of time then finishes, all the …

---

## [REST vs Parameters (Rails)](https://www.ruby-forum.com/t/rest-vs-parameters-rails/163443)

<div class="topic-metadata">

**Author:** [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Replies:** 3\
**Last updated:** [March 20, 2009, 7:05pm UTC](https://www.ruby-forum.com/t/rest-vs-parameters-rails/163443 "2009-03-20T19:05:45Z")

</div>

I’m still trying to get my head around REST based URIs vs slightly more conventional cgi script with ?parameters. I think I’m probably making heavier weather of it than I need to, but I was hoping one of you could hel…

---

## [Ruby-odbc and OUTPUT params not working](https://www.ruby-forum.com/t/ruby-odbc-and-output-params-not-working/163476)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 0\
**Last updated:** [March 20, 2009, 6:53pm UTC](https://www.ruby-forum.com/t/ruby-odbc-and-output-params-not-working/163476 "2009-03-20T18:53:41Z")

</div>

connecting to an SQLExpress database to run a stored procedure, and output parameters are not working. If anyone has any help they can give, it would be greatly appreciated. require ‘rubygems’ require ‘odbc’ CREATE…

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

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