# Ruby

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

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

---

## [Ruby and MQSeries](https://www.ruby-forum.com/t/ruby-and-mqseries/128689)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 0\
**Last updated:** [February 10, 2008, 4:35pm UTC](https://www.ruby-forum.com/t/ruby-and-mqseries/128689 "2008-02-10T16:35:47Z")

</div>

Have anyone used or know about an interface between Ruby and IBM MQSeries? Thank you Victor

---

## [Array Practice](https://www.ruby-forum.com/t/array-practice/128352)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 26\
**Last updated:** [February 10, 2008, 3:45pm UTC](https://www.ruby-forum.com/t/array-practice/128352 "2008-02-10T15:45:20Z")

</div>

As some of you may know from previous threads im trying to practice specific areas of ruby. One simple exercise i set myself was taking a elements in an array such as \[1,2,3,1,2,2,4,3,2,1\] and then grouping them toge…

---

## [Identifying](https://www.ruby-forum.com/t/identifying/128653)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 9\
**Last updated:** [February 10, 2008, 12:46pm UTC](https://www.ruby-forum.com/t/identifying/128653 "2008-02-10T12:46:14Z")

</div>

If you have an array which contains a mixture of say intergers and nested arrays, how can you determine whether an element is an array or not ie in psedo code array.each do |x| if x == Array do something end what…

---

## [TreeTop help?](https://www.ruby-forum.com/t/treetop-help/128648)

<div class="topic-metadata">

**Author:** [@Day](https://www.ruby-forum.com/u/Day)\
**Replies:** 4\
**Last updated:** [February 10, 2008, 12:08pm UTC](https://www.ruby-forum.com/t/treetop-help/128648 "2008-02-10T12:08:17Z")

</div>

So I’m building a parser, and I thought I’d give TreeTop a go. I recently got Practical Ruby Projects from Apress and worked through the last chapter, so I feel like I have somewhat of an understanding of what’s going…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/128668)

<div class="topic-metadata">

**Author:** [@ravichandra\_tella](https://www.ruby-forum.com/u/ravichandra_tella)\
**Replies:** 0\
**Last updated:** [February 10, 2008, 5:30am UTC](https://www.ruby-forum.com/t/no-subject/128668 "2008-02-10T05:30:02Z")

</div>

unsubscribe

---

## [Right way to access an array passed as an argument?](https://www.ruby-forum.com/t/right-way-to-access-an-array-passed-as-an-argument/128666)

<div class="topic-metadata">

**Author:** [@laredotornado](https://www.ruby-forum.com/u/laredotornado)\
**Replies:** 1\
**Last updated:** [February 10, 2008, 3:16am UTC](https://www.ruby-forum.com/t/right-way-to-access-an-array-passed-as-an-argument/128666 "2008-02-10T03:16:59Z")

</div>

Hi, In my user model class, I have: class User \< ActiveRecord::Base … def self.search(search) conditions = \[\] if ! search\[:user\_type\_id\].is\_empty? # line 26 conditions \<\< ‘user\_type…

---

## [Recursive array bug?](https://www.ruby-forum.com/t/recursive-array-bug/128656)

<div class="topic-metadata">

**Author:** [@steenslag](https://www.ruby-forum.com/u/steenslag)\
**Replies:** 4\
**Last updated:** [February 10, 2008, 2:00am UTC](https://www.ruby-forum.com/t/recursive-array-bug/128656 "2008-02-10T02:00:17Z")

</div>

I’ve just reinvented the recursive array. a = \["a rose is "\] a \<\< a Expecting the end of the world, or at least my ruby session, I did: a.flatten! But flatten! was just waiting for idiots like me and returned a poli…

---

## [Gruff and SVG](https://www.ruby-forum.com/t/gruff-and-svg/128665)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 0\
**Last updated:** [February 10, 2008, 12:29am UTC](https://www.ruby-forum.com/t/gruff-and-svg/128665 "2008-02-10T00:29:00Z")

</div>

Hi you all, I’m newbie in this graphic stuff. I’ve seen you can create an SVG image (with, for example, Scruffy) and transform it to jpg or png (with Gruff). However, I’ve seen the images are better-looking in Gruff …

---

## [Gemify 0.2](https://www.ruby-forum.com/t/gemify-0-2/128639)

<div class="topic-metadata">

**Author:** [@judofyr](https://www.ruby-forum.com/u/judofyr)\
**Replies:** 1\
**Last updated:** [February 10, 2008, 12:07am UTC](https://www.ruby-forum.com/t/gemify-0-2/128639 "2008-02-10T00:07:03Z")

</div>

= Gemify = == What == I like you. Thanks to NewGem\[http://drnicwilliams.com/2006/10/11/generating-new-gems/\] you have finally learned to share code. By simply running a command you’ll get a filled up directory with…

---

## [Getting and Passing Bindings](https://www.ruby-forum.com/t/getting-and-passing-bindings/128659)

<div class="topic-metadata">

**Author:** [@michaelb](https://www.ruby-forum.com/u/michaelb)\
**Replies:** 0\
**Last updated:** [February 10, 2008, 12:04am UTC](https://www.ruby-forum.com/t/getting-and-passing-bindings/128659 "2008-02-10T00:04:00Z")

</div>

Hello, I’m having quite the annoying problem with bindings. You can see the code, expected output, and actual output at Parked at Loopia. Basically, what I can decude from the code’s results is that the binding from …

---

## [Computer Science Problems](https://www.ruby-forum.com/t/computer-science-problems/128224)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 32\
**Last updated:** [February 9, 2008, 11:05pm UTC](https://www.ruby-forum.com/t/computer-science-problems/128224 "2008-02-09T23:05:06Z")

</div>

Hi all, In part of James’ summary of Making Change (#154) on rubyquiz he states: "This problem actually turns out to be famous in computer science. It’s called the Knapsack Problem. Once you know that you can apply t…

---

## [What will happen with WCF](https://www.ruby-forum.com/t/what-will-happen-with-wcf/128642)

<div class="topic-metadata">

**Author:** [@xjivan](https://www.ruby-forum.com/u/xjivan)\
**Replies:** 0\
**Last updated:** [February 9, 2008, 8:21pm UTC](https://www.ruby-forum.com/t/what-will-happen-with-wcf/128642 "2008-02-09T20:21:29Z")

</div>

Hi Will there be support for WCF in IronRuby or is the proposed way going to be to generate a proxy in C# or something and use that proxy? And writing WCF services should that then happen through subclassing a c# s…

---

## [Mr Bones 1.3.2](https://www.ruby-forum.com/t/mr-bones-1-3-2/128183)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 7\
**Last updated:** [February 9, 2008, 8:00pm UTC](https://www.ruby-forum.com/t/mr-bones-1-3-2/128183 "2008-02-09T20:00:19Z")

</div>

== Mr Bones \<http://codeforpeople.rubyforge.org/bones\> the “Oooh, Pretty Colors!!” release Mr Bones is a handy tool that builds a skeleton for your Ruby projects. The skeleton contains some starter code and a collect…

---

## [Draft chapter of RubyCocoa book](https://www.ruby-forum.com/t/draft-chapter-of-rubycocoa-book/128562)

<div class="topic-metadata">

**Author:** [@bdmcnitt](https://www.ruby-forum.com/u/bdmcnitt)\
**Replies:** 3\
**Last updated:** [February 9, 2008, 7:56pm UTC](https://www.ruby-forum.com/t/draft-chapter-of-rubycocoa-book/128562 "2008-02-09T19:56:12Z")

</div>

I’m writing a book on RubyCocoa for the Pragmatic Bookshelf, publisher of many fine titles. http://www.pragprog.com/titles RubyCocoa lets you build Mac applications in Ruby. I’m ready for people to take a look at a c…

---

## [Ruby1.9 on windows](https://www.ruby-forum.com/t/ruby1-9-on-windows/128622)

<div class="topic-metadata">

**Author:** [@guilherme](https://www.ruby-forum.com/u/guilherme)\
**Replies:** 1\
**Last updated:** [February 9, 2008, 7:36pm UTC](https://www.ruby-forum.com/t/ruby1-9-on-windows/128622 "2008-02-09T19:36:05Z")

</div>

hello, my first post here :smiley: Here, ruby1.8 runs great on Windows. I’m able to compile & develop some extensions, play with gems. Anyway, doing usual things … However I’m not really getting on well with ruby 1.9. …

---

## [Configuration.rb](https://www.ruby-forum.com/t/configuration-rb/128632)

<div class="topic-metadata">

**Author:** [@ara\_howard](https://www.ruby-forum.com/u/ara_howard)\
**Replies:** 0\
**Last updated:** [February 9, 2008, 5:25pm UTC](https://www.ruby-forum.com/t/configuration-rb/128632 "2008-02-09T17:25:57Z")

</div>

NAME configuration.rb SYNOPSIS pure ruby scoped configuration files DESCRIPTION configuration.rb provides a mechanism for configuring ruby programs with ruby configuration files. a configuration.rb file, for exam…

---

## [Re: Im trying to make Thumbnail pics -- any suggestions?](https://www.ruby-forum.com/t/re-im-trying-to-make-thumbnail-pics-any-suggestions/128623)

<div class="topic-metadata">

**Author:** [@stefan](https://www.ruby-forum.com/u/stefan)\
**Replies:** 0\
**Last updated:** [February 9, 2008, 3:06pm UTC](https://www.ruby-forum.com/t/re-im-trying-to-make-thumbnail-pics-any-suggestions/128623 "2008-02-09T15:06:56Z")

</div>

I have just finished simple script which will generate thumbnail of any image. It generates thumbnail on the fly and uses cache to save resized image. You can call /thumb/photo.jpg?w=150&h=150 and get resized version …

---

## [FXRuby dynamic drawing canvas and off-screen image buffer resize](https://www.ruby-forum.com/t/fxruby-dynamic-drawing-canvas-and-off-screen-image-buffer-resize/128482)

<div class="topic-metadata">

**Author:** [@Ranieri\_T](https://www.ruby-forum.com/u/Ranieri_T)\
**Replies:** 2\
**Last updated:** [February 9, 2008, 2:43pm UTC](https://www.ruby-forum.com/t/fxruby-dynamic-drawing-canvas-and-off-screen-image-buffer-resize/128482 "2008-02-09T14:43:18Z")

</div>

How can I use the drawing canvas and its off-screen image buffer, say FXImage, to dynamically resize or have its width and height attributes changed in reply to user interaction with the main window (FXMainWindow)? I…

---

## [Simple ruby proxy server?](https://www.ruby-forum.com/t/simple-ruby-proxy-server/128234)

<div class="topic-metadata">

**Author:** [@gmoniey](https://www.ruby-forum.com/u/gmoniey)\
**Replies:** 12\
**Last updated:** [February 9, 2008, 2:32pm UTC](https://www.ruby-forum.com/t/simple-ruby-proxy-server/128234 "2008-02-09T14:32:09Z")

</div>

I am trying to right at application which will simply record the headers of all get requests made from my browser. It would be ideal to just listen in on port 80, but something tells me that wont work because of secur…

---

## [Support For Referencing Ruby Libs As Embedded Resources?](https://www.ruby-forum.com/t/support-for-referencing-ruby-libs-as-embedded-resources/128591)

<div class="topic-metadata">

**Author:** [@micx](https://www.ruby-forum.com/u/micx)\
**Replies:** 12\
**Last updated:** [February 9, 2008, 2:00pm UTC](https://www.ruby-forum.com/t/support-for-referencing-ruby-libs-as-embedded-resources/128591 "2008-02-09T14:00:58Z")

</div>

A recent inquiry on the Ruby.NET list brought up the question as to whether or not the ability to reference ruby libs as embedded resources is supported or will be supported via IronRuby. e.g., require ‘res://assembl…

---

## [BigDecimal#to\_f precision issue](https://www.ruby-forum.com/t/bigdecimal-to-f-precision-issue/128523)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 3\
**Last updated:** [February 9, 2008, 1:22pm UTC](https://www.ruby-forum.com/t/bigdecimal-to-f-precision-issue/128523 "2008-02-09T13:22:44Z")

</div>

e$B$J$+$@$G$9!#e(B \[ruby-talk:290296\]e$B$NOC$G$9$,!"e(BBigDecimal#to\_fe$B$N@:EY$,IT==J,$J$h$&$G$9!#e(B $ ruby18 -v -rbigdecimal -e ‘printf “%.15f\\n”, BigDecimal.new(“15.25”).to\_f’ ruby 1.8.6 (2008-02-08 revision 1540…

---

## [Problem with ironruby on mono](https://www.ruby-forum.com/t/problem-with-ironruby-on-mono/128617)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [February 9, 2008, 1:10pm UTC](https://www.ruby-forum.com/t/problem-with-ironruby-on-mono/128617 "2008-02-09T13:10:53Z")

</div>

Hi all, I’ve successfully compiled (with rake compile mono=1) IronRuby under Linux with Mono but whe I try to execute some code I get a strange behaviour, for example: $ mono rbx.exe 0.1 Copyright (c) Microsoft Cor…

---

## [Tenjin 0.6.1 - a fast and full-featured template engine](https://www.ruby-forum.com/t/tenjin-0-6-1-a-fast-and-full-featured-template-engine/128411)

<div class="topic-metadata">

**Author:** [@makoto\_kuwata](https://www.ruby-forum.com/u/makoto_kuwata)\
**Replies:** 4\
**Last updated:** [February 9, 2008, 1:07pm UTC](https://www.ruby-forum.com/t/tenjin-0-6-1-a-fast-and-full-featured-template-engine/128411 "2008-02-09T13:07:58Z")

</div>

Hi all, I have released Tenjin 0.6.1. http://www.kuwata-lab.com/tenjin/ changes: http://www.kuwata-lab.com/tenjin/rbtenjin-CHANGES.txt Tenjin is a fast and full-featured template engine similar to eRuby but it has …

---

## [Info on block arguments](https://www.ruby-forum.com/t/info-on-block-arguments/128368)

<div class="topic-metadata">

**Author:** [@meesterfox](https://www.ruby-forum.com/u/meesterfox)\
**Replies:** 20\
**Last updated:** [February 9, 2008, 11:02am UTC](https://www.ruby-forum.com/t/info-on-block-arguments/128368 "2008-02-09T11:02:17Z")

</div>

I’m trying to pick up ruby and I’m impressed by all the cool stuff it does out of the box. I’m reading a few books but i’m finding why’s poignant guide to ruby to be the most helpful and entertaining (http://poignantg…

---

## [Require/load/autoload $B$N(B encoding $B%\*%W%7%g%s(B](https://www.ruby-forum.com/t/require-load-autoload-b-n-b-encoding-b-w-7-g-s-b/128471)

<div class="topic-metadata">

**Author:** [@Hidetoshi\_NAGAI](https://www.ruby-forum.com/u/Hidetoshi_NAGAI)\
**Replies:** 7\
**Last updated:** [February 9, 2008, 10:06am UTC](https://www.ruby-forum.com/t/require-load-autoload-b-n-b-encoding-b-w-7-g-s-b/128471 "2008-02-09T10:06:33Z")

</div>

e$B1J0f!wCNG=!%6e9)Bg$G$9!%e(B e$B8+$D$1$k$3$H$,$G$-$J$+$C$?$N$G5-210c$$$+$b$7$l$J$$$N$G$9$,!$e(B require e$BEy$N:\]$Ke(B encoding e$B$r;XDj$9$k%\*%W%7%g%s$H$$$&OC$,e(B e$B$A$i$C$H=P$F$$$?$h$&$J5$$,$7$^$9!%e(B e$B$3$l$…

---

## [Math.cbrt](https://www.ruby-forum.com/t/math-cbrt/128597)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 1\
**Last updated:** [February 9, 2008, 9:38am UTC](https://www.ruby-forum.com/t/math-cbrt/128597 "2008-02-09T09:38:59Z")

</div>

e$B$D$$$G$Ke(B 3e$B\>h:,$Ne(B Math.cbrt e$B$b:n$C$?$s$G$9$,$I$&$G$7$g$&$+!#e(B cbrt e$B$Oe(B C99 e$B$GDj5A$5$l$F$$$^$9!#e(B Index: math.c — math.c (revision 15410) +++ math.c (working copy) @@ -402,6 +402,20 @@ mat…

---

## [Your own if/else](https://www.ruby-forum.com/t/your-own-if-else/128578)

<div class="topic-metadata">

**Author:** [@marcin\_r](https://www.ruby-forum.com/u/marcin_r)\
**Replies:** 5\
**Last updated:** [February 9, 2008, 7:34am UTC](https://www.ruby-forum.com/t/your-own-if-else/128578 "2008-02-09T07:34:41Z")

</div>

Hello i remeber someone asking fif it’s possible in Ruby - and i have no idea if it was replyied, anyway i wanted to share my idea how to make your own if/else/elsif :slight\_smile: class Object def else self end d…

---

## [Regex dynamic count modifier {min, max}?](https://www.ruby-forum.com/t/regex-dynamic-count-modifier-min-max/128490)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 6\
**Last updated:** [February 9, 2008, 7:25am UTC](https://www.ruby-forum.com/t/regex-dynamic-count-modifier-min-max/128490 "2008-02-09T07:25:53Z")

</div>

Here is an idea and tell me if it could be accomplished by some other means. To parse a logic statement like this: fn:function3(fn:function2(fn:function1(xargs))) Using a regex sorta like so to grep the function-star…

---

## [RoR Programmer Needed](https://www.ruby-forum.com/t/ror-programmer-needed/128598)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 9, 2008, 5:20am UTC](https://www.ruby-forum.com/t/ror-programmer-needed/128598 "2008-02-09T05:20:35Z")

</div>

We are in immediate need of a Ruby on Rails Development team. The team must have at least 2 years demonstrable experience and the drive to keep up with a tight deadline. Please contact me as soon as possible this is a…

---

## [Anyone use eclipse on Windows?](https://www.ruby-forum.com/t/anyone-use-eclipse-on-windows/128493)

<div class="topic-metadata">

**Author:** [@Day](https://www.ruby-forum.com/u/Day)\
**Replies:** 4\
**Last updated:** [February 9, 2008, 5:00am UTC](https://www.ruby-forum.com/t/anyone-use-eclipse-on-windows/128493 "2008-02-09T05:00:41Z")

</div>

If you saw my other post similarly titled, it may become apparent: I’m trying out various editors. I’ve installed eclipse and RDT and subclipse. Things are working well… except (had to be one). For some reason, for th…

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

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