# Ruby

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

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

---

## [Rake task writing question](https://www.ruby-forum.com/t/rake-task-writing-question/173542)

<div class="topic-metadata">

**Author:** [@marfarma](https://www.ruby-forum.com/u/marfarma)\
**Replies:** 0\
**Last updated:** [August 11, 2009, 6:50am UTC](https://www.ruby-forum.com/t/rake-task-writing-question/173542 "2009-08-11T06:50:55Z")

</div>

rake question: given code like: Cucumber::Rake::Task.new({:ok =\> ‘db:test:prepare’}, ‘Run features that should pass’) do |t| How would I add an additional instruction to the {:ok =\> ‘db:test:prepare’} section? I’d l…

---

## [Tyrantmanager 1.1.0 Released](https://www.ruby-forum.com/t/tyrantmanager-1-1-0-released/173533)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 0\
**Last updated:** [August 11, 2009, 4:53am UTC](https://www.ruby-forum.com/t/tyrantmanager-1-1-0-released/173533 "2009-08-11T04:53:17Z")

</div>

tyrantmanager version 1.1.0 has been released. {{ Release notes for Version 1.1.0 }} change ‘status’ command to ‘process-status’ add ‘replication-status’ command fix gem dependencies http://copiousfreetime.rub…

---

## [\[Bug #1919\] sparc-solaris-2.10 $B$G(B 1.9.2-preview1 $B$,%S%k%I$G$-$J$$(B](https://www.ruby-forum.com/t/bug-1919-sparc-solaris-2-10-b-g-b-1-9-2-preview1-b-s-k-i-g-j-b/173502)

<div class="topic-metadata">

**Author:** [@Naohisa\_G](https://www.ruby-forum.com/u/Naohisa_G)\
**Replies:** 1\
**Last updated:** [August 11, 2009, 4:42am UTC](https://www.ruby-forum.com/t/bug-1919-sparc-solaris-2-10-b-g-b-1-9-2-preview1-b-s-k-i-g-j-b/173502 "2009-08-11T04:42:45Z")

</div>

Bug #1919: sparc-solaris-2.10 e$B$Ge(B 1.9.2-preview1 e$B$,%S%k%I$G$-$J$$e(B http://redmine.ruby-lang.org/issues/show/1919 e$B5/I\<\<Te(B: Naohisa G. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal ruby -v: ruby 1.9.2dev…

---

## [Warble an ruby app for tomcat](https://www.ruby-forum.com/t/warble-an-ruby-app-for-tomcat/173529)

<div class="topic-metadata">

**Author:** [@jackycheung](https://www.ruby-forum.com/u/jackycheung)\
**Replies:** 0\
**Last updated:** [August 11, 2009, 4:38am UTC](https://www.ruby-forum.com/t/warble-an-ruby-app-for-tomcat/173529 "2009-08-11T04:38:22Z")

</div>

Hello All Getting error uninitialized constant Rack::Head from innate.rb… Check the innate code and Rack::Head is Rack::Head Removes the body of the response for HEAD requests. It does not make sense… The ruby app w…

---

## [Error in Vista](https://www.ruby-forum.com/t/error-in-vista/173507)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 2\
**Last updated:** [August 11, 2009, 4:25am UTC](https://www.ruby-forum.com/t/error-in-vista/173507 "2009-08-11T04:25:46Z")

</div>

When creating a ruby script (using Watir) on XP then using rubyscript2exe.rb to create it as an EXE, I receive the following error on the Vista machine: C:\\Users\\Bob.Smyph\\Documents\>Ruby AccessWeb.rb c:/ruby/lib/ruby…

---

## [ActiveRecord to\_json encoding](https://www.ruby-forum.com/t/activerecord-to-json-encoding/173512)

<div class="topic-metadata">

**Author:** [@calvin98115](https://www.ruby-forum.com/u/calvin98115)\
**Replies:** 4\
**Last updated:** [August 11, 2009, 3:25am UTC](https://www.ruby-forum.com/t/activerecord-to-json-encoding/173512 "2009-08-11T03:25:29Z")

</div>

Question: Hi, our company is using Ruby 1.8.6 with Rails 2.2.2. Does anyone know we can explicitly specify what encoding to use when calling Description: We have some multibyte characters in our database. For examp…

---

## [Calling another Ruby script](https://www.ruby-forum.com/t/calling-another-ruby-script/173488)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 7\
**Last updated:** [August 11, 2009, 2:16am UTC](https://www.ruby-forum.com/t/calling-another-ruby-script/173488 "2009-08-11T02:16:24Z")

</div>

Hi, Can someone please tell me how you can can call out another Ruby script? I have a lot of image processing scripts. Sometimes, rarely, they’ll simply fail because some of the images might be bad. But, I need to kno…

---

## [Mod\_ruby alternative?](https://www.ruby-forum.com/t/mod-ruby-alternative/173519)

<div class="topic-metadata">

**Author:** [@chutsu](https://www.ruby-forum.com/u/chutsu)\
**Replies:** 2\
**Last updated:** [August 11, 2009, 12:09am UTC](https://www.ruby-forum.com/t/mod-ruby-alternative/173519 "2009-08-11T00:09:21Z")

</div>

So basically I was wondering what alternative do I have from mod\_ruby? My goal is to embed some simple ruby scripts within the html of the website. It is not complicated enough to become a ruby web app (where Ruby on …

---

## [Dnssd 1.1.0 Released](https://www.ruby-forum.com/t/dnssd-1-1-0-released/173520)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 0\
**Last updated:** [August 10, 2009, 10:45pm UTC](https://www.ruby-forum.com/t/dnssd-1-1-0-released/173520 "2009-08-10T22:45:39Z")

</div>

(On behalf of Eric H.) dnssd version 1.1.0 has been released! http://rubyforge.org/projects/dnssd http://github.com/tenderlove/dnssd DNS Service Discovery (aka Bonjour, MDNS) API for Ruby. Implements browsing, res…

---

## [Libxml in production](https://www.ruby-forum.com/t/libxml-in-production/173153)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 6\
**Last updated:** [August 10, 2009, 9:14pm UTC](https://www.ruby-forum.com/t/libxml-in-production/173153 "2009-08-10T21:14:19Z")

</div>

I’m having an issue loading libxml in production. On the same machine: Loading production environment (Rails 2.3.3) require ‘libxml’ =\> false Loading development environment (Rails 2.3.3) require ‘libxml’ =\> …

---

## [Linking text with regex](https://www.ruby-forum.com/t/linking-text-with-regex/173503)

<div class="topic-metadata">

**Author:** [@peterbe](https://www.ruby-forum.com/u/peterbe)\
**Replies:** 2\
**Last updated:** [August 10, 2009, 8:35pm UTC](https://www.ruby-forum.com/t/linking-text-with-regex/173503 "2009-08-10T20:35:02Z")

</div>

Hi This is probably a silly question, but I’m wondering what the best way is to scan a string for regular expression matches, and then link to it. It would be great to do it in one line, like this: \<% text.sub!(/#\[-'…

---

## [Newbie has trouble understanding a Why example](https://www.ruby-forum.com/t/newbie-has-trouble-understanding-a-why-example/173498)

<div class="topic-metadata">

**Author:** [@cjosephson](https://www.ruby-forum.com/u/cjosephson)\
**Replies:** 4\
**Last updated:** [August 10, 2009, 8:15pm UTC](https://www.ruby-forum.com/t/newbie-has-trouble-understanding-a-why-example/173498 "2009-08-10T20:15:12Z")

</div>

I’m just learning ruby, so I am working my way through ‘Why’s Poignant Guide to Ruby’ I’m on the 5th chapter, and I came across this example: class ArrayMine \< Array Build a string from this array, formatting each en…

---

## [Making Hash a first-class citizen](https://www.ruby-forum.com/t/making-hash-a-first-class-citizen/173461)

<div class="topic-metadata">

**Author:** [@Erik\_Michaels-Ober](https://www.ruby-forum.com/u/Erik_Michaels-Ober)\
**Replies:** 5\
**Last updated:** [August 10, 2009, 8:01pm UTC](https://www.ruby-forum.com/t/making-hash-a-first-class-citizen/173461 "2009-08-10T20:01:12Z")

</div>

I’ve noticed a couple inconsistencies in the way Ruby hashes are treated (compared to, say, arrays). While I’ve been able to monkey-patch solutions, I thought I would bring these inconsistencies to the attention of t…

---

## [How to "source" a file?](https://www.ruby-forum.com/t/how-to-source-a-file/173377)

<div class="topic-metadata">

**Author:** [@kfmfe04](https://www.ruby-forum.com/u/kfmfe04)\
**Replies:** 6\
**Last updated:** [August 10, 2009, 7:01pm UTC](https://www.ruby-forum.com/t/how-to-source-a-file/173377 "2009-08-10T19:01:26Z")

</div>

I have a bash file ~/.myenv that contains environmental variables like: export EDITOR=vi export FOO=bar … How do I source this file from within a ruby script that starts like? #!/usr/bin/ruby I could source the fil…

---

## [Generate binary sequences of length n?](https://www.ruby-forum.com/t/generate-binary-sequences-of-length-n/173460)

<div class="topic-metadata">

**Author:** [@tomtoday](https://www.ruby-forum.com/u/tomtoday)\
**Replies:** 7\
**Last updated:** [August 10, 2009, 6:33pm UTC](https://www.ruby-forum.com/t/generate-binary-sequences-of-length-n/173460 "2009-08-10T18:33:55Z")

</div>

I’m rather new to Ruby. I feel this should be very simple, but I’m having trouble: I’d like to write a script to work through all possible binary sequences of length n. The script would work as follows: mylength = …

---

## [Localmemcache-0.4.2: Improves append performance](https://www.ruby-forum.com/t/localmemcache-0-4-2-improves-append-performance/173504)

<div class="topic-metadata">

**Author:** [@Sven\_CSKoehler](https://www.ruby-forum.com/u/Sven_CSKoehler)\
**Replies:** 0\
**Last updated:** [August 10, 2009, 5:08pm UTC](https://www.ruby-forum.com/t/localmemcache-0-4-2-improves-append-performance/173504 "2009-08-10T17:08:27Z")

</div>

I have noticed that Localmemcache can become extremely slow when keeping a hash that has growing values. It seems that the allocator ends up with a ever growing list of unusable free blocks. So version 0.4.2 is the…

---

## [Soft realtime with EventMachine and timer resolution](https://www.ruby-forum.com/t/soft-realtime-with-eventmachine-and-timer-resolution/173413)

<div class="topic-metadata">

**Author:** [@macario](https://www.ruby-forum.com/u/macario)\
**Replies:** 3\
**Last updated:** [August 10, 2009, 5:07pm UTC](https://www.ruby-forum.com/t/soft-realtime-with-eventmachine-and-timer-resolution/173413 "2009-08-10T17:07:17Z")

</div>

Hi, I trying to do music livecoding with Ruby but I am having problems with event scheduling, I shold have known before. My question is how to increse timer resolution for EventMachine timer. Thing is I have a more or…

---

## [What is "stack level too deep (SystemStackError)" error](https://www.ruby-forum.com/t/what-is-stack-level-too-deep-systemstackerror-error/173402)

<div class="topic-metadata">

**Author:** [@mrmaster](https://www.ruby-forum.com/u/mrmaster)\
**Replies:** 7\
**Last updated:** [August 10, 2009, 4:09pm UTC](https://www.ruby-forum.com/t/what-is-stack-level-too-deep-systemstackerror-error/173402 "2009-08-10T16:09:19Z")

</div>

Hi, I’ve created a binary search using code from wiki and when i run it i get there error stated below. I’m only using 10 entries so i’m not sure why it would give me that error. How can I modify my code to handle 100…

---

## [Flush HTML head](https://www.ruby-forum.com/t/flush-html-head/173487)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 2\
**Last updated:** [August 10, 2009, 2:02pm UTC](https://www.ruby-forum.com/t/flush-html-head/173487 "2009-08-10T14:02:35Z")

</div>

Hi Guys, What command I should use to flush html head to client in my layout.rhtml? I’ve tried “$stdout.flush” but weird, the CSS total time seems to be longer after using the flush. Thanks! Arthur

---

## [RJB and Null: Fail: unknown method name](https://www.ruby-forum.com/t/rjb-and-null-fail-unknown-method-name/173485)

<div class="topic-metadata">

**Author:** [@reisswolf](https://www.ruby-forum.com/u/reisswolf)\
**Replies:** 0\
**Last updated:** [August 10, 2009, 12:07pm UTC](https://www.ruby-forum.com/t/rjb-and-null-fail-unknown-method-name/173485 "2009-08-10T12:07:33Z")

</div>

Hello, I’m in trouble with the Ruby-Java-Bridge. The Java code snippet is: KEMListEditor subConceptListKEM = kemConcept.getSubConcepts(null, null, Boolean.FALSE); kemConcept.getSubConcepts has parameters: KEMAbstra…

---

## [Loops vs blocks](https://www.ruby-forum.com/t/loops-vs-blocks/173477)

<div class="topic-metadata">

**Author:** [@kookjr](https://www.ruby-forum.com/u/kookjr)\
**Replies:** 1\
**Last updated:** [August 10, 2009, 11:11am UTC](https://www.ruby-forum.com/t/loops-vs-blocks/173477 "2009-08-10T11:11:18Z")

</div>

It seems like the convention is to use blocks instead of more procedural loops. I’m really used to blocks now, but are there situations where a ‘for’ or ‘while’ loop is a more suitable choice? The only situation whe…

---

## [Font selector using radio button](https://www.ruby-forum.com/t/font-selector-using-radio-button/173472)

<div class="topic-metadata">

**Author:** [@tdellaringa](https://www.ruby-forum.com/u/tdellaringa)\
**Replies:** 2\
**Last updated:** [August 10, 2009, 11:09am UTC](https://www.ruby-forum.com/t/font-selector-using-radio-button/173472 "2009-08-10T11:09:03Z")

</div>

I have looked all around to try and find an answer to this. I have the Agile book and although it has lots of information, it has relatively little on radio buttons. I have a website in which I want users to be able t…

---

## [Status ruby phonon bindings](https://www.ruby-forum.com/t/status-ruby-phonon-bindings/173478)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 0\
**Last updated:** [August 10, 2009, 10:33am UTC](https://www.ruby-forum.com/t/status-ruby-phonon-bindings/173478 "2009-08-10T10:33:11Z")

</div>

Hi all, Does anyone know what the status of the ruby phonon bindings is? I can’t find much about it so I’m fearing the worst :slight\_smile:

---

## [Rdoc\_chm 2.4.0 Released](https://www.ruby-forum.com/t/rdoc-chm-2-4-0-released/173473)

<div class="topic-metadata">

**Author:** [@gordon321](https://www.ruby-forum.com/u/gordon321)\
**Replies:** 0\
**Last updated:** [August 10, 2009, 9:09am UTC](https://www.ruby-forum.com/t/rdoc-chm-2-4-0-released/173473 "2009-08-10T09:09:01Z")

</div>

rdoc\_chm version 2.4.0 has been released! \<{RDoc\_CHM Project Page}\[GitHub - vertiginous/rdoc\_chm: A Microsoft Compiled HTML Help generator for RDoc.\]\> \<{RDoc\_CHM Bug Tracker}\[Issues · vertiginous/rdoc\_chm · GitHub\]\> A…

---

## [Ruby wrapper for xmlsec?](https://www.ruby-forum.com/t/ruby-wrapper-for-xmlsec/158350)

<div class="topic-metadata">

**Author:** [@piegut](https://www.ruby-forum.com/u/piegut)\
**Replies:** 2\
**Last updated:** [August 10, 2009, 7:09am UTC](https://www.ruby-forum.com/t/ruby-wrapper-for-xmlsec/158350 "2009-08-10T07:09:37Z")

</div>

Hi All, If there’s support for XML signing in Ruby out there, I can’t find it (& apparently neither can anyone on RailsForum (http://railsforum.com/viewtopic.php?id=26227). So, I was thinking of writing a Ruby wrappe…

---

## [svn.ruby-lang.org$B$NJQ992U=jI=\<((B](https://www.ruby-forum.com/t/svn-ruby-lang-org-b-njq992u-ji-b/173430)

<div class="topic-metadata">

**Author:** [@Takahiro\_K](https://www.ruby-forum.com/u/Takahiro_K)\
**Replies:** 2\
**Last updated:** [August 10, 2009, 3:06am UTC](https://www.ruby-forum.com/t/svn-ruby-lang-org-b-njq992u-ji-b/173430 "2009-08-10T03:06:07Z")

</div>

e$B$3$s$P$s$O!#e(B e$B$^$@!"I|5l$NES\>e$+$b$7$l$^$;$s$,!"e(Bsvn.ruby-lang.orge$B$GJQ992U=j$rI=\<($7$he(B e$B$&$H$9$k$H!"e(B diff: illegal option – L usage: diff \[-bitw\] \[-c | -e | -f | -h | -n | -u\] file1 file2 diff \[…

---

## [Lone Star Ruby Conference 2009 - 18 More Days till Showdown](https://www.ruby-forum.com/t/lone-star-ruby-conference-2009-18-more-days-till-showdown/173468)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [August 10, 2009, 1:38am UTC](https://www.ruby-forum.com/t/lone-star-ruby-conference-2009-18-more-days-till-showdown/173468 "2009-08-10T01:38:54Z")

</div>

Greetings from Austin - Home of the Lone Star Ruby Conference. This year we are catering to your every desire. In addition to the customary luxuries you have come to expect at LSRC, like the awesome food or the power…

---

## [Nfc 2.0.0 Released](https://www.ruby-forum.com/t/nfc-2-0-0-released/173412)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 1\
**Last updated:** [August 9, 2009, 11:05pm UTC](https://www.ruby-forum.com/t/nfc-2-0-0-released/173412 "2009-08-09T23:05:34Z")

</div>

nfc version 2.0.0 has been released! http://seattlerb.rubyforge.org NFC is a ruby wrapper for the Near Field Communication library. The Near Field Communication library works with many USB RFID readers, so this ge…

---

## [How Come Ruby is Text-Oriented?](https://www.ruby-forum.com/t/how-come-ruby-is-text-oriented/172941)

<div class="topic-metadata">

**Author:** [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Replies:** 45\
**Last updated:** [August 9, 2009, 10:24pm UTC](https://www.ruby-forum.com/t/how-come-ruby-is-text-oriented/172941 "2009-08-09T22:24:35Z")

</div>

I’ve just been re-reading Byte August 1981 - an edition dedicated to Smalltalk-80. Often people say Ruby has roots in Smalltalk (amongst other things) but the thing you notice is Smalltalk is visual ie it has a graphi…

---

## [Tkar](https://www.ruby-forum.com/t/tkar/173459)

<div class="topic-metadata">

**Author:** [@Joel\_VanderWerf](https://www.ruby-forum.com/u/Joel_VanderWerf)\
**Replies:** 0\
**Last updated:** [August 9, 2009, 7:16pm UTC](https://www.ruby-forum.com/t/tkar/173459 "2009-08-09T19:16:09Z")

</div>

Hi, all, Tkar aims to be the gnuplot of animation — a quick and dirty way to get data from a stream or file into a window to see what is happening. It is more suited to animating discrete objects rather than numerical …

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

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