# Ruby

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

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

---

## [Distressing Doc](https://www.ruby-forum.com/t/distressing-doc/182366)

<div class="topic-metadata">

**Author:** [@lalawawa](https://www.ruby-forum.com/u/lalawawa)\
**Replies:** 10\
**Last updated:** [January 30, 2010, 7:04pm UTC](https://www.ruby-forum.com/t/distressing-doc/182366 "2010-01-30T19:04:42Z")

</div>

I was reading www.ruby-lang.org, and under “To Ruby From C and C++” it said As of Ruby 1.8, code is interpreted at run-time rather than compiled to any sort of machine- or byte-code. which sounds like a huge disadva…

---

## [Code Review: FixLiquid](https://www.ruby-forum.com/t/code-review-fixliquid/182596)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [January 30, 2010, 6:54pm UTC](https://www.ruby-forum.com/t/code-review-fixliquid/182596 "2010-01-30T18:54:09Z")

</div>

tfpt review “/shelveset:FixLiquid;REDMOND\\tomat” Fixes target object boxing in singleton method definition. Tomas

---

## [GServer and SSL](https://www.ruby-forum.com/t/gserver-and-ssl/182536)

<div class="topic-metadata">

**Author:** [@barorg](https://www.ruby-forum.com/u/barorg)\
**Replies:** 1\
**Last updated:** [January 30, 2010, 5:33pm UTC](https://www.ruby-forum.com/t/gserver-and-ssl/182536 "2010-01-30T17:33:50Z")

</div>

I’ve got some code that uses GServer rather heavily, and I’m wondering, if I need to use secure sockets, is there any example of how to use GServer with and SSL layer?

---

## [\[Bug #1072\] Ripper#filename](https://www.ruby-forum.com/t/bug-1072-ripper-filename/158967)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 3\
**Last updated:** [January 30, 2010, 1:57pm UTC](https://www.ruby-forum.com/t/bug-1072-ripper-filename/158967 "2010-01-30T13:57:29Z")

</div>

Bug #1072: Ripper#filename http://redmine.ruby-lang.org/issues/show/1072 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: ext Reproducible Version: trunk, ruby -v: ruby 1…

---

## [Regex group match](https://www.ruby-forum.com/t/regex-group-match/182585)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 1\
**Last updated:** [January 30, 2010, 1:14pm UTC](https://www.ruby-forum.com/t/regex-group-match/182585 "2010-01-30T13:14:10Z")

</div>

At www.rubular.com/ the regular expression: SID=(\[\\s\\S\]?)LSID=(\[\\s\\S\]?)Auth=(\[\\s\\S\]\*) run against the string below results in three captures. How do I replicate these results from Ruby? Part of the trick being that …

---

## [Displaying the html from a ruby .cgi script](https://www.ruby-forum.com/t/displaying-the-html-from-a-ruby-cgi-script/180612)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 4\
**Last updated:** [January 30, 2010, 11:48am UTC](https://www.ruby-forum.com/t/displaying-the-html-from-a-ruby-cgi-script/180612 "2010-01-30T11:48:15Z")

</div>

I have a script, foobar.cgi I can load it into my browser, as in http://localhost/foobar.cgi It generates html code. I am using Apache on Linux here, everything is local only. My question is: Is there an easy way t…

---

## [Code Review: YY1](https://www.ruby-forum.com/t/code-review-yy1/182572)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [January 30, 2010, 4:00am UTC](https://www.ruby-forum.com/t/code-review-yy1/182572 "2010-01-30T04:00:00Z")

</div>

tfpt review “/shelveset:YY1;REDMOND\\tomat” Comment : Fixes: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3306 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3307 http://ironruby.codeplex.c…

---

## [How to debug capistrano?](https://www.ruby-forum.com/t/how-to-debug-capistrano/182551)

<div class="topic-metadata">

**Author:** [@trapper](https://www.ruby-forum.com/u/trapper)\
**Replies:** 9\
**Last updated:** [January 30, 2010, 12:16am UTC](https://www.ruby-forum.com/t/how-to-debug-capistrano/182551 "2010-01-30T00:16:05Z")

</div>

I have a hard authentication problem with capistrano and want to track it down using the ruby debugger. (Using cap -d is not sufficient) How to start capistrano in the ruby debugger?

---

## [Newbie question: Accessiong non-Windows DLL's](https://www.ruby-forum.com/t/newbie-question-accessiong-non-windows-dlls/182560)

<div class="topic-metadata">

**Author:** [@iceburgh](https://www.ruby-forum.com/u/iceburgh)\
**Replies:** 9\
**Last updated:** [January 29, 2010, 11:24pm UTC](https://www.ruby-forum.com/t/newbie-question-accessiong-non-windows-dlls/182560 "2010-01-29T23:24:27Z")

</div>

Hello, I am very new to Ruby, as in about 1 week new. General Ruby programming is going well. However, I am having trouble accessing functions in non-Windows DLL’s. We have custom DLL’s used to talk to test equipme…

---

## [Multi line regex by default?](https://www.ruby-forum.com/t/multi-line-regex-by-default/182553)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [January 29, 2010, 10:27pm UTC](https://www.ruby-forum.com/t/multi-line-regex-by-default/182553 "2010-01-29T22:27:42Z")

</div>

For some reason I thought that to have a multiline regex, /m needed to be used, but… “a\\rb” =~ /a.b/ =\> 0 ??? -rp

---

## [Code Review: dash\_r](https://www.ruby-forum.com/t/code-review-dash-r/182558)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 0\
**Last updated:** [January 29, 2010, 9:47pm UTC](https://www.ruby-forum.com/t/code-review-dash-r/182558 "2010-01-29T21:47:13Z")

</div>

tfpt review “/shelveset:dash\_r;REDMOND\\sborde” Comment : Config::CONFIG\[“libdir”\] was not normalized in non-dev environments. This was causing “igem install” to install bat files for the gems to a less than ideal lo…

---

## [\[ANN\] rest-client 1.3.0](https://www.ruby-forum.com/t/ann-rest-client-1-3-0/182555)

<div class="topic-metadata">

**Author:** [@archiloque](https://www.ruby-forum.com/u/archiloque)\
**Replies:** 0\
**Last updated:** [January 29, 2010, 9:08pm UTC](https://www.ruby-forum.com/t/ann-rest-client-1-3-0/182555 "2010-01-29T21:08:29Z")

</div>

Hi all, I’m pleased to announce that rest-client 1.3.0 has been released rest-client is a simple HTTP and REST client for Ruby, inspired by the Sinatraâ€™s microframework style of specifying actions: get, put, post, …

---

## [Bless roger's gnuplot as official?](https://www.ruby-forum.com/t/bless-rogers-gnuplot-as-official/182504)

<div class="topic-metadata">

**Author:** [@bwv549](https://www.ruby-forum.com/u/bwv549)\
**Replies:** 3\
**Last updated:** [January 29, 2010, 8:38pm UTC](https://www.ruby-forum.com/t/bless-rogers-gnuplot-as-official/182504 "2010-01-29T20:38:09Z")

</div>

I really like the original rgplot (aka ‘gnuplot’ gem). It is a great gem. Unfortunately, its development has been abanded by its author (or so it would seem). Roger P. put it up on github about a half year ago after…

---

## [Kerberos context binding, segfault in test](https://www.ruby-forum.com/t/kerberos-context-binding-segfault-in-test/182543)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [January 29, 2010, 5:03pm UTC](https://www.ruby-forum.com/t/kerberos-context-binding-segfault-in-test/182543 "2010-01-29T17:03:53Z")

</div>

Hi, Ruby 1.8.7-p243 test-unit 2.0.6 Snow Leopard I’m wrapping a Kerberos context object, but I’m getting a segfault. Specifically, one test in particular (an expected error test) seems to be causing the segfault. H…

---

## [Tk Text box](https://www.ruby-forum.com/t/tk-text-box/182510)

<div class="topic-metadata">

**Author:** [@Philliam\_A](https://www.ruby-forum.com/u/Philliam_A)\
**Replies:** 2\
**Last updated:** [January 29, 2010, 5:02pm UTC](https://www.ruby-forum.com/t/tk-text-box/182510 "2010-01-29T17:02:07Z")

</div>

Is there any way I can create a text box in Tk that the user cannot edit, but the program can edit the value of? I have tried doing state (‘disabled’) on a TkText but this makes it not editable at all. Also, is there …

---

## [Rubygems-sing 1.2.0 Released](https://www.ruby-forum.com/t/rubygems-sing-1-2-0-released/182447)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 3\
**Last updated:** [January 29, 2010, 3:30pm UTC](https://www.ruby-forum.com/t/rubygems-sing-1-2-0-released/182447 "2010-01-29T15:30:14Z")

</div>

rubygems-sing version 1.2.0 has been released! http://rubyforge.org/projects/seattlerb “Sings” a gem’s implementation. Changes: 1.2.0 / 2010-01-27 3 minor enhancements: Added --verbose, to print more like a pla…

---

## [Bug report for Ruby 1.9.1](https://www.ruby-forum.com/t/bug-report-for-ruby-1-9-1/182528)

<div class="topic-metadata">

**Author:** [@LAMBEAU\_Bernard](https://www.ruby-forum.com/u/LAMBEAU_Bernard)\
**Replies:** 2\
**Last updated:** [January 29, 2010, 1:24pm UTC](https://www.ruby-forum.com/t/bug-report-for-ruby-1-9-1/182528 "2010-01-29T13:24:22Z")

</div>

Hi, A small chunk of code (a serious introspection hack, I confess) of mine leads to a enjoying backtrace under ruby 1.9.1 (works in both ruby 1.8.6 and 1.8.7) with the following message: You may encounter a bug of …

---

## ["igem install rake" raise an System.UnauthorizedAccessException (Windows 7)](https://www.ruby-forum.com/t/igem-install-rake-raise-an-system-unauthorizedaccessexception-windows-7/182220)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 33\
**Last updated:** [January 29, 2010, 9:58am UTC](https://www.ruby-forum.com/t/igem-install-rake-raise-an-system-unauthorizedaccessexception-windows-7/182220 "2010-01-29T09:58:55Z")

</div>

Hello, doing my first real test on Windows 7 - I installed the latest IronRuby (using the MSI installer) and igem install rake issues the following error: ERROR: While executing gem … (SystemCallError) unknown scen…

---

## [Big problem with simultaneous requests and jRuby](https://www.ruby-forum.com/t/big-problem-with-simultaneous-requests-and-jruby/182480)

<div class="topic-metadata">

**Author:** [@maartenm](https://www.ruby-forum.com/u/maartenm)\
**Replies:** 6\
**Last updated:** [January 29, 2010, 9:39am UTC](https://www.ruby-forum.com/t/big-problem-with-simultaneous-requests-and-jruby/182480 "2010-01-29T09:39:01Z")

</div>

Hello, I am using jRuby 1.4.0 and encountered a big problem. If anyone could help you’d save my skin: My Rails app does the following: User logs in A Java class is used to create a Connection from these parameter…

---

## [ActiveRecord::Rollback Config Help](https://www.ruby-forum.com/t/activerecord-rollback-config-help/182468)

<div class="topic-metadata">

**Author:** [@kels0n](https://www.ruby-forum.com/u/kels0n)\
**Replies:** 1\
**Last updated:** [January 29, 2010, 9:24am UTC](https://www.ruby-forum.com/t/activerecord-rollback-config-help/182468 "2010-01-29T09:24:23Z")

</div>

I’m struggling with why ActiveRecord isn’t rolling back my transactions. I’ve ran the same code at my home machine and it works but on my work machine it doesn’t and I’m hoping will see the glaringly obvious configur…

---

## [Can't install gems (Windows)](https://www.ruby-forum.com/t/cant-install-gems-windows/181758)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 22\
**Last updated:** [January 29, 2010, 8:27am UTC](https://www.ruby-forum.com/t/cant-install-gems-windows/181758 "2010-01-29T08:27:01Z")

</div>

I am unable to install any gems now on my Windows 7 machine running Ruby 1.9.1. Earlier today I was updating a gem and it failed. Since then, I can’t install or update ANY gems. I tried un/reinstalling ruby with no lu…

---

## [Gsub not working to replace a 'Chinese' Charater](https://www.ruby-forum.com/t/gsub-not-working-to-replace-a-chinese-charater/182474)

<div class="topic-metadata">

**Author:** [@dissolved](https://www.ruby-forum.com/u/dissolved)\
**Replies:** 11\
**Last updated:** [January 29, 2010, 6:13am UTC](https://www.ruby-forum.com/t/gsub-not-working-to-replace-a-chinese-charater/182474 "2010-01-29T06:13:30Z")

</div>

gsub not works for me when replace ‘DBCS’(double byte character set) character, using last version ruby 1.8.6 when “strÂºÂºÃ—Ã–end”.gsub(/ÂºÂºÃ—Ã–/,“hanzi”), output still is: strÂºÂºÃ—Ã–end , but not strhanziend whic…

---

## [Hamurabi (#223)](https://www.ruby-forum.com/t/hamurabi-223/178254)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 22\
**Last updated:** [January 29, 2010, 6:03am UTC](https://www.ruby-forum.com/t/hamurabi-223/178254 "2010-01-29T06:03:37Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have elapsed from the time this m…

---

## [\[bug:trunk\] SEGV by autoload after removing load method](https://www.ruby-forum.com/t/bug-trunk-segv-by-autoload-after-removing-load-method/182509)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [January 29, 2010, 5:04am UTC](https://www.ruby-forum.com/t/bug-trunk-segv-by-autoload-after-removing-load-method/182509 "2010-01-29T05:04:30Z")

</div>

e$B0J2\<$N$h$&$K$9$k$He(B SEGV e$B$7$^$9!#e(B % cat a.rb load “b.rb” % cat b.rb module Kernel remove\_method :load end autoload :foo, Object.new % ./ruby a.rb b.rb:4: \[BUG\] Segmentation fault ruby 1.9.2dev (2010-…

---

## [Code Review: Y2](https://www.ruby-forum.com/t/code-review-y2/182502)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [January 29, 2010, 2:06am UTC](https://www.ruby-forum.com/t/code-review-y2/182502 "2010-01-29T02:06:34Z")

</div>

tfpt review “/shelveset:Y2;REDMOND\\tomat” Comment : Fixes http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3307 and related issues. Improves YAML error reporting. Tomas

---

## [Updated Rails instructions](https://www.ruby-forum.com/t/updated-rails-instructions/181637)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 17\
**Last updated:** [January 29, 2010, 1:31am UTC](https://www.ruby-forum.com/t/updated-rails-instructions/181637 "2010-01-29T01:31:27Z")

</div>

All, IronRuby.net / has been updated to show instructions for running Rails 2.3.5 on IronRuby, including using the official activerecord-sqlserver-adapter (v2.3). Thanks to Ivan for his work on ironruby-dbi! The ste…

---

## [Utf8-mac: Conditional jump or move depends on uninitialised value(s)](https://www.ruby-forum.com/t/utf8-mac-conditional-jump-or-move-depends-on-uninitialised-value-s/182499)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [January 29, 2010, 12:51am UTC](https://www.ruby-forum.com/t/utf8-mac-conditional-jump-or-move-depends-on-uninitialised-value-s/182499 "2010-01-29T00:51:01Z")

</div>

“\\u05DB\\u05BF”.encode(“UTF-8”, “UTF8-MAC”) e$B$H$9$k$HJQ$JCM$r85$K\>r7oJ,4te(B e$B$7$F$$$k$h$&$J$s$G$9$,!"$$$$$s$G$7$g$&$+!#e(B % valgrind ./ruby -ve ‘"\\u05DB\\u05BF".encode(“UTF-8”, “UTF8-MAC”)’ ==10637== Memcheck, a …

---

## [Storing connection objects in rails session](https://www.ruby-forum.com/t/storing-connection-objects-in-rails-session/181104)

<div class="topic-metadata">

**Author:** [@maartenm](https://www.ruby-forum.com/u/maartenm)\
**Replies:** 5\
**Last updated:** [January 29, 2010, 12:01am UTC](https://www.ruby-forum.com/t/storing-connection-objects-in-rails-session/181104 "2010-01-29T00:01:16Z")

</div>

Hello, I am developing a JRuby on Rails project. I communicate with a backend that delivers me some .jar files which I can use to initiate connections, and call Java routines. Basically, I receive an Application ob…

---

## [What am I doing wrong?](https://www.ruby-forum.com/t/what-am-i-doing-wrong/182488)

<div class="topic-metadata">

**Author:** [@ast](https://www.ruby-forum.com/u/ast)\
**Replies:** 5\
**Last updated:** [January 28, 2010, 10:54pm UTC](https://www.ruby-forum.com/t/what-am-i-doing-wrong/182488 "2010-01-28T22:54:37Z")

</div>

I didn’t see a beginners forum - hope it’s ok to post this here. I feel so daft as this must be the simplest question you’ve probably been asked! Anyway I’m new to Ruby and want to create a very simple script that ge…

---

## [Sandbox options?](https://www.ruby-forum.com/t/sandbox-options/182493)

<div class="topic-metadata">

**Author:** [@dbrady010](https://www.ruby-forum.com/u/dbrady010)\
**Replies:** 1\
**Last updated:** [January 28, 2010, 10:48pm UTC](https://www.ruby-forum.com/t/sandbox-options/182493 "2010-01-28T22:48:41Z")

</div>

I’m interesting in providing my clients the ability to upload expressions that I can evaluate to determine the values of various components of some business calculations. Eval’ing the expressions is the simplest solut…

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

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