# Ruby

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

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

---

## [\[ANN\] Rassmalog 2.1.1](https://www.ruby-forum.com/t/ann-rassmalog-2-1-1/79758)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 3\
**Last updated:** [December 26, 2006, 8:40pm UTC](https://www.ruby-forum.com/t/ann-rassmalog-2-1-1/79758 "2006-12-26T20:40:36Z")

</div>

Rassmalog is a static blog engine based on RSS 2.0, YAML, and Textile. It features an extensible blog formatting mechanism, easy configuration, and automatic tagging, archiving, syntax coloring, and table of contents. …

---

## [Getting Screen Resolution in Windows with Ruby](https://www.ruby-forum.com/t/getting-screen-resolution-in-windows-with-ruby/80436)

<div class="topic-metadata">

**Author:** [@Felipe\_N](https://www.ruby-forum.com/u/Felipe_N)\
**Replies:** 2\
**Last updated:** [December 26, 2006, 7:52pm UTC](https://www.ruby-forum.com/t/getting-screen-resolution-in-windows-with-ruby/80436 "2006-12-26T19:52:17Z")

</div>

Hi, somebody knows how i can get Screen Resolution in Windows with Ruby ? Anything stable please! And WinXp, Win98, Win95 compatible. Cheers

---

## [Libxml-Ruby 0.4.0pre01](https://www.ruby-forum.com/t/libxml-ruby-0-4-0pre01/80438)

<div class="topic-metadata">

**Author:** [@ross\_b](https://www.ruby-forum.com/u/ross_b)\
**Replies:** 0\
**Last updated:** [December 26, 2006, 6:56pm UTC](https://www.ruby-forum.com/t/libxml-ruby-0-4-0pre01/80438 "2006-12-26T18:56:08Z")

</div>

Libxml-Ruby 0.4.0pre01 is now available from the Libxml-Ruby project on rubyforge (http://rubyforge.org). This is a developmental source-only snapshot taken from the current 0.4 development effort, and is intended for…

---

## [YAML problem with serializing of nested object structures](https://www.ruby-forum.com/t/yaml-problem-with-serializing-of-nested-object-structures/80429)

<div class="topic-metadata">

**Author:** [@Kjetil\_Orbekk](https://www.ruby-forum.com/u/Kjetil_Orbekk)\
**Replies:** 2\
**Last updated:** [December 26, 2006, 5:35pm UTC](https://www.ruby-forum.com/t/yaml-problem-with-serializing-of-nested-object-structures/80429 "2006-12-26T17:35:49Z")

</div>

Hi! I’m making a graph tool, and i have some problem with the serialization of my graphs. The problem comes when i try to load a graph i earlier serialized with YAML. In the objects i serialize, I have two instance v…

---

## [Hwadapt 1.0 -- Hardware profile manager](https://www.ruby-forum.com/t/hwadapt-1-0-hardware-profile-manager/80352)

<div class="topic-metadata">

**Author:** [@Bertram\_S](https://www.ruby-forum.com/u/Bertram_S)\
**Replies:** 1\
**Last updated:** [December 26, 2006, 2:57pm UTC](https://www.ruby-forum.com/t/hwadapt-1-0-hardware-profile-manager/80352 "2006-12-26T14:57:29Z")

</div>

Hi Rubyists, Hwadapt – a small Ruby script to manage hardware profiles on your laptop. http://opensource.bertram-scharpf.de/distfiles/hwadapt-1.0.tar.gz Gentoo users may use the portage overlay (in case it is not …

---

## [RubyCocoa 0.9.0 developer preview](https://www.ruby-forum.com/t/rubycocoa-0-9-0-developer-preview/80426)

<div class="topic-metadata">

**Author:** [@Laurent\_S](https://www.ruby-forum.com/u/Laurent_S)\
**Replies:** 0\
**Last updated:** [December 26, 2006, 1:19pm UTC](https://www.ruby-forum.com/t/rubycocoa-0-9-0-developer-preview/80426 "2006-12-26T13:19:23Z")

</div>

Hi, We have been working on a new code base since several months to prepare the foundations of RubyCocoa 1.0, and today we are honored to share with you the first pre-release: RubyCocoa 0.9.0. RubyCocoa is a Mac OS X…

---

## [A problem about replacing a string in a template](https://www.ruby-forum.com/t/a-problem-about-replacing-a-string-in-a-template/80367)

<div class="topic-metadata">

**Author:** [@kuuul](https://www.ruby-forum.com/u/kuuul)\
**Replies:** 12\
**Last updated:** [December 26, 2006, 9:35am UTC](https://www.ruby-forum.com/t/a-problem-about-replacing-a-string-in-a-template/80367 "2006-12-26T09:35:12Z")

</div>

File 1: test.tpl Hello,#{name}! File 2: test.rb name = “jack” f = File.open(“test.tpl”) puts f.read puts “Hello,#{name}” f.close And the result is: Hello,#{name}! Hello,jack! How to change the “#{name}” to “ja…

---

## [Does YAML::Syck::MergeKey have to\_sym?](https://www.ruby-forum.com/t/does-yaml-mergekey-have-to-sym/80408)

<div class="topic-metadata">

**Author:** [@dean](https://www.ruby-forum.com/u/dean)\
**Replies:** 0\
**Last updated:** [December 26, 2006, 7:51am UTC](https://www.ruby-forum.com/t/does-yaml-mergekey-have-to-sym/80408 "2006-12-26T07:51:08Z")

</div>

Hi, I have a stock gentoo ruby/rails installation and am running into an error with YAML::Syck::MergeKey. 0 wicked www/ror % ruby --version ruby 1.8.5 (2006-12-04 patchlevel 2) \[i686-linux\] (gentoo ebuild 1.8.5\_p2) …

---

## [Installing a signal handler](https://www.ruby-forum.com/t/installing-a-signal-handler/80404)

<div class="topic-metadata">

**Author:** [@Gerardo\_SSGSSS\_mez](https://www.ruby-forum.com/u/Gerardo_SSGSSS_mez)\
**Replies:** 0\
**Last updated:** [December 26, 2006, 3:08am UTC](https://www.ruby-forum.com/t/installing-a-signal-handler/80404 "2006-12-26T03:08:59Z")

</div>

Is it safe to install a signal handler for SIGINT from a C extension using signal()? Should I take care of something special?

---

## [Windows bat file help needed for rubygems](https://www.ruby-forum.com/t/windows-bat-file-help-needed-for-rubygems/80401)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 4\
**Last updated:** [December 26, 2006, 1:26am UTC](https://www.ruby-forum.com/t/windows-bat-file-help-needed-for-rubygems/80401 "2006-12-26T01:26:54Z")

</div>

How do I get a windows .bat file to return a proper exit code? RubyGems build stubs that look something like this: “c:\\ruby\\bin\\ruby” -x “%~f0” %\* goto endofruby #!/bin/ruby abort ‘boom’ END :endofruby But if I r…

---

## [BigDecimal#!=](https://www.ruby-forum.com/t/bigdecimal/80371)

<div class="topic-metadata">

**Author:** [@Minero\_A](https://www.ruby-forum.com/u/Minero_A)\
**Replies:** 5\
**Last updated:** [December 26, 2006, 1:22am UTC](https://www.ruby-forum.com/t/bigdecimal/80371 "2006-12-26T01:22:53Z")

</div>

e$B@DLZ$G$9!#e(B e$B0J2\<$N$h$&$K!"e(BBigDecimal#!= e$B$,Dj5A$5$l$F$7$^$C$F$$$^$9!#e(B ~ % forall-ruby -rbigdecimal -e ‘p BigDecimal.method\_defined?("!=")’ ruby 1.8.0 (2003-08-04) \[x86\_64-linux\] true ruby 1.8.1 (2003…

---

## [Searching Stings with Arrays?](https://www.ruby-forum.com/t/searching-stings-with-arrays/80041)

<div class="topic-metadata">

**Author:** [@basic](https://www.ruby-forum.com/u/basic)\
**Replies:** 13\
**Last updated:** [December 25, 2006, 11:10pm UTC](https://www.ruby-forum.com/t/searching-stings-with-arrays/80041 "2006-12-25T23:10:34Z")

</div>

Hi, I’ve been having a little problem with this. most of my ruby is from rails and both are shaky. okay what I’ve got is a string (which is a browser user agent) and I would like to search that string with a predefine…

---

## [Ruby Reports 0.7.0](https://www.ruby-forum.com/t/ruby-reports-0-7-0/80396)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [December 25, 2006, 10:56pm UTC](https://www.ruby-forum.com/t/ruby-reports-0-7-0/80396 "2006-12-25T22:56:32Z")

</div>

Ruby Reports 0.7.0 : The St. Nick Edition Ruport now has a brand new formatting system, some massive cleanup in the internals, and merry chunky bacon for all! == What is Ruby Reports? == Ruport is a framework special…

---

## [Regexp Question: Checking for \[joe\]\[/joe\] pairs](https://www.ruby-forum.com/t/regexp-question-checking-for-joe-joe-pairs/80015)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 20\
**Last updated:** [December 25, 2006, 9:26pm UTC](https://www.ruby-forum.com/t/regexp-question-checking-for-joe-joe-pairs/80015 "2006-12-25T21:26:20Z")

</div>

Hey, I’ve got some text in @x and want there to be at least 1 and at most 3 \[joe\]\[/joe\] pairs, each having at least one character between the beginning \[joe\] and the ending \[/joe\]. This is what I have now, and it seem…

---

## [A Ruby IDE with GUI capabilities](https://www.ruby-forum.com/t/a-ruby-ide-with-gui-capabilities/80297)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 10\
**Last updated:** [December 25, 2006, 9:18pm UTC](https://www.ruby-forum.com/t/a-ruby-ide-with-gui-capabilities/80297 "2006-12-25T21:18:17Z")

</div>

So far, as far as I can tell, there is no Ruby IDE with GUI capabilities. What I want to understand is: How can there be Gambas and yet Ruby lacks a GUI interface? I’ve been reading about Ruby and considering learnin…

---

## [Class design](https://www.ruby-forum.com/t/class-design/80394)

<div class="topic-metadata">

**Author:** [@spitfire](https://www.ruby-forum.com/u/spitfire)\
**Replies:** 2\
**Last updated:** [December 25, 2006, 9:04pm UTC](https://www.ruby-forum.com/t/class-design/80394 "2006-12-25T21:04:13Z")

</div>

How do I design a class such that it can never be instantiated? Say for example a class containing static members alone, which requires no instantiation!

---

## [Dynamic changes!](https://www.ruby-forum.com/t/dynamic-changes/80391)

<div class="topic-metadata">

**Author:** [@spitfire](https://www.ruby-forum.com/u/spitfire)\
**Replies:** 3\
**Last updated:** [December 25, 2006, 8:56pm UTC](https://www.ruby-forum.com/t/dynamic-changes/80391 "2006-12-25T20:56:12Z")

</div>

These are the sequence of actions I performed in irb. class Dumber def sayHello puts "Hello!" end end db = Dumber.new() db.sayHello ## executes sayHello method! Class Dumber def sayHi puts "Hi" end end db.sa…

---

## [Strange about Array#each\_index](https://www.ruby-forum.com/t/strange-about-array-each-index/80392)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 6\
**Last updated:** [December 25, 2006, 8:52pm UTC](https://www.ruby-forum.com/t/strange-about-array-each-index/80392 "2006-12-25T20:52:11Z")

</div>

Hi all, Happy holidays! I query Ruby about Array#each\_index and here are what Ruby returns: --------------------------------------------------- Array#each\_index array.each\_index {|index| block } -\> array Same as +A…

---

## [Help with a ruby idiom](https://www.ruby-forum.com/t/help-with-a-ruby-idiom/80296)

<div class="topic-metadata">

**Author:** [@twaters](https://www.ruby-forum.com/u/twaters)\
**Replies:** 17\
**Last updated:** [December 25, 2006, 6:58pm UTC](https://www.ruby-forum.com/t/help-with-a-ruby-idiom/80296 "2006-12-25T18:58:04Z")

</div>

From the O’Reilly Cookbook there is code that keeps call functions in a hash as a subscriber/listener type pattern. What I don’t understand (or I don’t understand how it works is the line: (@EventDispatcher\_listeners\[…

---

## [Value returned from code block](https://www.ruby-forum.com/t/value-returned-from-code-block/80388)

<div class="topic-metadata">

**Author:** [@spitfire](https://www.ruby-forum.com/u/spitfire)\
**Replies:** 3\
**Last updated:** [December 25, 2006, 6:26pm UTC](https://www.ruby-forum.com/t/value-returned-from-code-block/80388 "2006-12-25T18:26:01Z")

</div>

I’ve read that in Ruby the value returned from a code block is the value of the last expression executed. Is it so? If Yes, I don’t understand the value returned by the following code block! def clistIter clist = \[1,…

---

## [Event.rb line 434 : problem occurs while repeated creating a](https://www.ruby-forum.com/t/event-rb-line-434-problem-occurs-while-repeated-creating-a/77161)

<div class="topic-metadata">

**Author:** [@teeshift](https://www.ruby-forum.com/u/teeshift)\
**Replies:** 4\
**Last updated:** [December 25, 2006, 11:41am UTC](https://www.ruby-forum.com/t/event-rb-line-434-problem-occurs-while-repeated-creating-a/77161 "2006-12-25T11:41:34Z")

</div>

Well… I have built a tiny canvas program using Ruby/Tk. Essentially it has many rectangles on the canvas. With mouse ‘enter’ a rectangle, I would show a info about it and when mouse ‘leave’ the rectangle. The info w…

---

## [1.8.5 $B$N(B svn $B0\\9T$G$A$g$C$HLdBj(B](https://www.ruby-forum.com/t/1-8-5-b-n-b-svn-b0-9t-g-a-g-c-hldbj-b/80281)

<div class="topic-metadata">

**Author:** [@Urabe\_S](https://www.ruby-forum.com/u/Urabe_S)\
**Replies:** 4\
**Last updated:** [December 25, 2006, 9:33am UTC](https://www.ruby-forum.com/t/1-8-5-b-n-b-svn-b0-9t-g-a-g-c-hldbj-b/80281 "2006-12-25T09:33:22Z")

</div>

e$BKNIt$G$9!#e(B e$B$H$$$&$o$1$Ge(BSubversione$B$K$$$m$$$m0$C$?$o$1$G$9$,!"$J$s$+e(B{cvs,svn} export e$B$7$?$N$re(Bdiffe$B$H$C$F8+$?$i7k9=JQ$o$C$F$k$s$G$9$h!#%-!\<%o!\<%ICV49$N2s$j$,!#e(B e$B$^$"%3%a%s%H$NCf$K$R$C$=$je…

---

## [Merry Christmas!](https://www.ruby-forum.com/t/merry-christmas/80349)

<div class="topic-metadata">

**Author:** [@cneuhaus](https://www.ruby-forum.com/u/cneuhaus)\
**Replies:** 1\
**Last updated:** [December 25, 2006, 3:40am UTC](https://www.ruby-forum.com/t/merry-christmas/80349 "2006-12-25T03:40:55Z")

</div>

In the spirit of ruby-talk:172428 and ruby-talk:124391… eval “IyBUaGFua3MgZm9yIGxvb2tpbmcgYXQgbXkgY29kZS4KIwojIENvcHlyaWdodCAoQy kgMjAwMiwgMjAwNCwgMjAwNiAgQ2hyaXN0aWFuIE5ldWtpcmNoZW4gPGNobmV1a2lyY2hlbk Bn …

---

## [Re: Merry Christmas!](https://www.ruby-forum.com/t/re-merry-christmas/80350)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 2\
**Last updated:** [December 24, 2006, 10:46pm UTC](https://www.ruby-forum.com/t/re-merry-christmas/80350 "2006-12-24T22:46:35Z")

</div>

From: Christian N. \[mailto:removed\_email\_address@domain.invalid\] In the spirit of ruby-talk:172428 and ruby-talk:124391… Very nice! I particularly like the nod to those looking at the code :slight\_smile:

---

## [Method equality; setting instance variables on Method instan](https://www.ruby-forum.com/t/method-equality-setting-instance-variables-on-method-instan/80355)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 1\
**Last updated:** [December 24, 2006, 9:26pm UTC](https://www.ruby-forum.com/t/method-equality-setting-instance-variables-on-method-instan/80355 "2006-12-24T21:26:32Z")

</div>

A few questions about the code below: Why do m1 and m2 have different IDs but compare as equal? Why does m2 invoke the same old functionality when run? Why did my instance\_variable\_set not ‘take’? I suspect all answer…

---

## [How Old is Ruby](https://www.ruby-forum.com/t/how-old-is-ruby/79538)

<div class="topic-metadata">

**Author:** [@i039345](https://www.ruby-forum.com/u/i039345)\
**Replies:** 4\
**Last updated:** [December 24, 2006, 7:02pm UTC](https://www.ruby-forum.com/t/how-old-is-ruby/79538 "2006-12-24T19:02:19Z")

</div>

Hi guys I am bit curious to know how did ruby come in to existense . Woulds be great if somebody could provide some history about this Thnks in advance rajesh k

---

## [Ruby and Cygwin](https://www.ruby-forum.com/t/ruby-and-cygwin/80278)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 11\
**Last updated:** [December 24, 2006, 6:02pm UTC](https://www.ruby-forum.com/t/ruby-and-cygwin/80278 "2006-12-24T18:02:12Z")

</div>

Hi all, I install a Ruby version from within Cygwin. 1) How do I use Interreactive ruby from Cygwin? 2) How do I query Ruby from Cygwin? 3) Which text editor do you guys prefer when working under Cygwin? Thanks, Li …

---

## [&#8230; unencoding troubles with FeedTools](https://www.ruby-forum.com/t/8230-unencoding-troubles-with-feedtools/80313)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 4\
**Last updated:** [December 24, 2006, 5:56pm UTC](https://www.ruby-forum.com/t/8230-unencoding-troubles-with-feedtools/80313 "2006-12-24T17:56:21Z")

</div>

I’ve hunted around for a solution to this one, but it’s really hard to find, because the string gets munched in google - try searching for … ! When using FeedTools, I’m finding that some feeds are giving me encoded s…

---

## [Why private is not private](https://www.ruby-forum.com/t/why-private-is-not-private/79647)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 8\
**Last updated:** [December 24, 2006, 4:19pm UTC](https://www.ruby-forum.com/t/why-private-is-not-private/79647 "2006-12-24T16:19:41Z")

</div>

Hi all, I add a private method to class Object and try to call it from outside the class. I am confused that it works. Any comments? Thanks, Li class Object private def method1(arg1) arg1 end end puts “call p…

---

## [MSC version unmatch](https://www.ruby-forum.com/t/msc-version-unmatch/80317)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [December 24, 2006, 2:45pm UTC](https://www.ruby-forum.com/t/msc-version-unmatch/80317 "2006-12-24T14:45:54Z")

</div>

So, I’m writing a program which uses SWIG to interface between C++ and Ruby, and I just upgraded my Ruby version from an older version (I think 1.8.2) to the current stable release (1.8.5). Now when I compile (in MSV…

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

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