# Ruby

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

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

---

## [Want to use Ruby/GTK2 + rcairo on Windows](https://www.ruby-forum.com/t/want-to-use-ruby-gtk2-rcairo-on-windows/194114)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [August 30, 2010, 7:36pm UTC](https://www.ruby-forum.com/t/want-to-use-ruby-gtk2-rcairo-on-windows/194114 "2010-08-30T19:36:28Z")

</div>

Hi folks, I’d like to use ruby-gtk2 package and rcairo on my Windows 7 laptop. I’m using ruby 1.9.2p0 (2010-08-18) \[i386-mingw32\] installed by RubyInstaller for Windows. I could install rcairo very well with gem like…

---

## [Rice 1.4.0](https://www.ruby-forum.com/t/rice-1-4-0/194122)

<div class="topic-metadata">

**Author:** [@jruyle](https://www.ruby-forum.com/u/jruyle)\
**Replies:** 0\
**Last updated:** [August 30, 2010, 6:40pm UTC](https://www.ruby-forum.com/t/rice-1-4-0/194122 "2010-08-30T18:40:47Z")

</div>

Rice: Ruby Interface for C++ Extensions What is Rice? Rice is a C++ interface to Ruby’s C API. It provides a type-safe and exception-safe interface in order to make embedding Ruby and writing Ruby extensions with C++…

---

## [Rb++ / RbGCCXML 1.0](https://www.ruby-forum.com/t/rb-rbgccxml-1-0/194121)

<div class="topic-metadata">

**Author:** [@jruyle](https://www.ruby-forum.com/u/jruyle)\
**Replies:** 0\
**Last updated:** [August 30, 2010, 6:40pm UTC](https://www.ruby-forum.com/t/rb-rbgccxml-1-0/194121 "2010-08-30T18:40:11Z")

</div>

What is rb++ / rbgccxml? Rb++, rbgccxml, and rice compose a suite of tools that make wrapping C++ libraries into Ruby extensions as simple as possible. This is built as a replacement for SWIG-Ruby. What’s New Full…

---

## [Jruby error from ManyVarsDynamicScope.java:71](https://www.ruby-forum.com/t/jruby-error-from-manyvarsdynamicscope-java-71/193986)

<div class="topic-metadata">

**Author:** [@jahu](https://www.ruby-forum.com/u/jahu)\
**Replies:** 4\
**Last updated:** [August 30, 2010, 6:19pm UTC](https://www.ruby-forum.com/t/jruby-error-from-manyvarsdynamicscope-java-71/193986 "2010-08-30T18:19:42Z")

</div>

Dear all, I stumbled over a nasty error when using jruby. Luckily I could reproduce it with a minimal example.

---

## [Pass an array to a new instance of a class](https://www.ruby-forum.com/t/pass-an-array-to-a-new-instance-of-a-class/194105)

<div class="topic-metadata">

**Author:** [@grauenwolf](https://www.ruby-forum.com/u/grauenwolf)\
**Replies:** 5\
**Last updated:** [August 30, 2010, 5:08pm UTC](https://www.ruby-forum.com/t/pass-an-array-to-a-new-instance-of-a-class/194105 "2010-08-30T17:08:51Z")

</div>

I am having trouble passing values to an array of a new instance of the class Item that I have created. The following codse does not fille the flags array with the value ‘container’. class Item attr\_accessor :inum, :…

---

## [How to make a ruby script listining for interactivity?](https://www.ruby-forum.com/t/how-to-make-a-ruby-script-listining-for-interactivity/193983)

<div class="topic-metadata">

**Author:** [@boeboe](https://www.ruby-forum.com/u/boeboe)\
**Replies:** 2\
**Last updated:** [August 30, 2010, 4:57pm UTC](https://www.ruby-forum.com/t/how-to-make-a-ruby-script-listining-for-interactivity/193983 "2010-08-30T16:57:08Z")

</div>

Hi folks, I would like to know if I can make a ruby script interactive. I don’t mean using IRB, but I would like to be able to interact within my scripts after I press a certain ‘magic’ key. So far I have been looking …

---

## [Isitjruby.com dead?](https://www.ruby-forum.com/t/isitjruby-com-dead/194096)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [August 30, 2010, 4:36pm UTC](https://www.ruby-forum.com/t/isitjruby-com-dead/194096 "2010-08-30T16:36:03Z")

</div>

Does anybody know what has happened to isitjruby.com? Somebody just told me that has been offline for a month or so :frowning:

---

## [Unable to click using div(:text)](https://www.ruby-forum.com/t/unable-to-click-using-div-text/194104)

<div class="topic-metadata">

**Author:** [@vibhavari](https://www.ruby-forum.com/u/vibhavari)\
**Replies:** 0\
**Last updated:** [August 30, 2010, 1:39pm UTC](https://www.ruby-forum.com/t/unable-to-click-using-div-text/194104 "2010-08-30T13:39:43Z")

</div>

My application has a PowerGrid Control. The table has a text ‘CBSU50’ in the grid, I passed the following line but it is not getting clicked. $ie.div(:text,“CBSU50”).click I am not getting an error though. Please he…

---

## [Ruby-ldap in Netbeans](https://www.ruby-forum.com/t/ruby-ldap-in-netbeans/193994)

<div class="topic-metadata">

**Author:** [@CraftyTech](https://www.ruby-forum.com/u/CraftyTech)\
**Replies:** 1\
**Last updated:** [August 30, 2010, 12:09pm UTC](https://www.ruby-forum.com/t/ruby-ldap-in-netbeans/193994 "2010-08-30T12:09:38Z")

</div>

Hello All, I'm a newbie at Ruby and I have the following issue. I need to start writing Ruby code to manipulate Active Directory entries. When I do "import ‘ldap’ " it doesn’t work since I don’t have the ldap gem …

---

## [Downloading corrupted files](https://www.ruby-forum.com/t/downloading-corrupted-files/194028)

<div class="topic-metadata">

**Author:** [@uddun](https://www.ruby-forum.com/u/uddun)\
**Replies:** 2\
**Last updated:** [August 30, 2010, 11:11am UTC](https://www.ruby-forum.com/t/downloading-corrupted-files/194028 "2010-08-30T11:11:45Z")

</div>

Hello, I have created small program to download files from website. I am using netbeans and JRuby. When I run program, it downloads files no problem, however, if I run it outside netbeans, it downloads files of simila…

---

## [Web Hosting](https://www.ruby-forum.com/t/web-hosting/91540)

<div class="topic-metadata">

**Author:** [@manohar\_amrutkar](https://www.ruby-forum.com/u/manohar_amrutkar)\
**Replies:** 9\
**Last updated:** [August 30, 2010, 9:04am UTC](https://www.ruby-forum.com/t/web-hosting/91540 "2010-08-30T09:04:05Z")

</div>

Hi, Does ruby support to implement a web hosting website like godaddy.com or namecheap.com? Is there are any APIs in ruby for Registration of Domain, Transfer of Domain? If anybody know something please give reply…

---

## [Confirmation](https://www.ruby-forum.com/t/confirmation/194091)

<div class="topic-metadata">

**Author:** [@raja\_jeyam](https://www.ruby-forum.com/u/raja_jeyam)\
**Replies:** 0\
**Last updated:** [August 30, 2010, 8:25am UTC](https://www.ruby-forum.com/t/confirmation/194091 "2010-08-30T08:25:27Z")

</div>

confirm 20100830150641163941261635843 raja j=

---

## [Reading Peter Cooper's book; about regular expressions](https://www.ruby-forum.com/t/reading-peter-coopers-book-about-regular-expressions/194090)

<div class="topic-metadata">

**Author:** [@marlon](https://www.ruby-forum.com/u/marlon)\
**Replies:** 1\
**Last updated:** [August 30, 2010, 7:31am UTC](https://www.ruby-forum.com/t/reading-peter-coopers-book-about-regular-expressions/194090 "2010-08-30T07:31:37Z")

</div>

x = \<\<MY\_DELIMITER We like Ruby They adore Ruby Everyone loves Ruby MY\_DELIMITER #changes the first line only (from 'We’to ‘Do you’) puts x.sub(/^…/, ‘Do you’) puts #ALSO changes the first line only, but anchors …

---

## [Ruby Versions in Common Use (Or, Can we bury 1.8.6 yet?)](https://www.ruby-forum.com/t/ruby-versions-in-common-use-or-can-we-bury-1-8-6-yet/194032)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 1\
**Last updated:** [August 30, 2010, 5:14am UTC](https://www.ruby-forum.com/t/ruby-versions-in-common-use-or-can-we-bury-1-8-6-yet/194032 "2010-08-30T05:14:05Z")

</div>

I am curious if Ruby 1.8.6 is still widely used? Have most people made the jump to 1.8.7 by now? I ask b/c 1.8.6 lacks support for passing blocks thru blocks, e.g. lambda { |&b| … } I realized that sometime over the …

---

## [Web Hosting, Reseller Hosting, and Dedicated Hosting!](https://www.ruby-forum.com/t/web-hosting-reseller-hosting-and-dedicated-hosting/164094)

<div class="topic-metadata">

**Author:** [@ufi02](https://www.ruby-forum.com/u/ufi02)\
**Replies:** 1\
**Last updated:** [August 30, 2010, 4:56am UTC](https://www.ruby-forum.com/t/web-hosting-reseller-hosting-and-dedicated-hosting/164094 "2010-08-30T04:56:18Z")

</div>

PREMIUM WORDPRESS BLOG HOSTING!! -Word press Hosting -Unlimited Domains -Panel Hosting -Unlimited Blogs -$7,95 per month http://minyurl.com/237

---

## [Gsub blank](https://www.ruby-forum.com/t/gsub-blank/194082)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 3\
**Last updated:** [August 30, 2010, 3:25am UTC](https://www.ruby-forum.com/t/gsub-blank/194082 "2010-08-30T03:25:13Z")

</div>

irb(main):011:0\> " gk".gsub("\\s",“h”) =\> “hhhhhgk” irb(main):012:0\> " gk".gsub("\\s+",“h”) =\> " gk" how can i make " gk" into “hgk”?

---

## [Broken alias behavior in Ruby 1.9.2?](https://www.ruby-forum.com/t/broken-alias-behavior-in-ruby-1-9-2/194075)

<div class="topic-metadata">

**Author:** [@tron](https://www.ruby-forum.com/u/tron)\
**Replies:** 4\
**Last updated:** [August 30, 2010, 2:51am UTC](https://www.ruby-forum.com/t/broken-alias-behavior-in-ruby-1-9-2/194075 "2010-08-30T02:51:51Z")

</div>

The following code works in Ruby 1.8.7 but not in 1.9.2, instead, I get the error: NoMethodError: undefined method \`old\_encode64’ for Base64:Module Can someone please shed some light on this. Thanks in advance, Tron …

---

## [In Shoes, whye does ask\_open\_file run a shoes app?](https://www.ruby-forum.com/t/in-shoes-whye-does-ask-open-file-run-a-shoes-app/194070)

<div class="topic-metadata">

**Author:** [@Ed\_Howland](https://www.ruby-forum.com/u/Ed_Howland)\
**Replies:** 1\
**Last updated:** [August 29, 2010, 9:10pm UTC](https://www.ruby-forum.com/t/in-shoes-whye-does-ask-open-file-run-a-shoes-app/194070 "2010-08-29T21:10:00Z")

</div>

If I have a bit of code inside Shoes.app block, like this keypress do |k| case k … when :alt\_o @contents = File.read(ask\_open\_file) end end it runs the file (if it is a shoes app). Otherwise, it seems to do noth…

---

## [Pcaprub on Windows](https://www.ruby-forum.com/t/pcaprub-on-windows/194049)

<div class="topic-metadata">

**Author:** [@crenner](https://www.ruby-forum.com/u/crenner)\
**Replies:** 1\
**Last updated:** [August 29, 2010, 6:14pm UTC](https://www.ruby-forum.com/t/pcaprub-on-windows/194049 "2010-08-29T18:14:59Z")

</div>

I am trying to use Ruby on Windows to perform some low level packet sniffing and manipulation. I have looked at pcaprub and can’t seem to get it compiled on Windows using Cygwin or Devkit. I am open to using other l…

---

## [Delete char](https://www.ruby-forum.com/t/delete-char/194055)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 6\
**Last updated:** [August 29, 2010, 4:26pm UTC](https://www.ruby-forum.com/t/delete-char/194055 "2010-08-29T16:26:41Z")

</div>

i want to make ‘gkhj\*&()’ into ‘gkhj’,here is my code item=‘gkhj\*&()’ item=item.map{|echar| if /\[a-z\]/=~ echar then echar=echar else echar=’’ end} puts item why i can’t get what i want? Any advice appriciated.

---

## [If input contains](https://www.ruby-forum.com/t/if-input-contains/193796)

<div class="topic-metadata">

**Author:** [@humandictionary](https://www.ruby-forum.com/u/humandictionary)\
**Replies:** 8\
**Last updated:** [August 29, 2010, 2:36pm UTC](https://www.ruby-forum.com/t/if-input-contains/193796 "2010-08-29T14:36:03Z")

</div>

I’m making a secure password generator, where the user inputs a word and it translates it to something more secure, so if they entered “book” it would return “b00k”. I just don’t know how to say like if input contains…

---

## [Initialize instance variable problem](https://www.ruby-forum.com/t/initialize-instance-variable-problem/194033)

<div class="topic-metadata">

**Author:** [@cameron1inm](https://www.ruby-forum.com/u/cameron1inm)\
**Replies:** 4\
**Last updated:** [August 29, 2010, 10:12am UTC](https://www.ruby-forum.com/t/initialize-instance-variable-problem/194033 "2010-08-29T10:12:40Z")

</div>

Why does this return nil for @city? class Url def initialize(city,quary,catagory,minask,maxask) @city = city @quary = quary @cat = catagory @min = minask @max = maxask end puts @city end a = Url.new(‘spokane’,…

---

## [Select tr\>3 with nokogiri](https://www.ruby-forum.com/t/select-tr-3-with-nokogiri/193993)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 12\
**Last updated:** [August 29, 2010, 8:54am UTC](https://www.ruby-forum.com/t/select-tr-3-with-nokogiri/193993 "2010-08-29T08:54:15Z")

</div>

i want to get row which it contains more than 3 columns how to write xpath with nokogiri require ‘rubygems’ require ‘nokogiri’ item=‘sometext’ doc = Nokogiri::HTML.parse(open(item)) data=doc.xpath(’/html/body/…

---

## [Problem with Digest::Class.digest](https://www.ruby-forum.com/t/problem-with-digest-class-digest/194051)

<div class="topic-metadata">

**Author:** [@Luke\_F](https://www.ruby-forum.com/u/Luke_F)\
**Replies:** 2\
**Last updated:** [August 29, 2010, 6:01am UTC](https://www.ruby-forum.com/t/problem-with-digest-class-digest/194051 "2010-08-29T06:01:39Z")

</div>

Hi, I am trying to get an application running on Google App Engine. I’m hitting a stumbling block with the OAuth gem. Minimal steps to reproduce: require ‘rubygems’ require ‘oauth’ Digest::HMAC.digest(“foo”, “bar”…

---

## [\[Bug #3657\] make clean$B$,%U%!%$%k$r:o=|$7$9$.(B](https://www.ruby-forum.com/t/bug-3657-make-clean-b-u-k-r-o-7-9-b/192770)

<div class="topic-metadata">

**Author:** [@Takahiro\_K](https://www.ruby-forum.com/u/Takahiro_K)\
**Replies:** 7\
**Last updated:** [August 29, 2010, 2:37am UTC](https://www.ruby-forum.com/t/bug-3657-make-clean-b-u-k-r-o-7-9-b/192770 "2010-08-29T02:37:22Z")

</div>

Bug #3657: make cleane$B$,%U%!%$%k$r:o=|$7$9$.e(B http://redmine.ruby-lang.org/issues/show/3657 e$B5/I\<\<Te(B: Takahiro K. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: build, Target version: 1.9.2 rub…

---

## [Rcairo 1.8.5](https://www.ruby-forum.com/t/rcairo-1-8-5/194047)

<div class="topic-metadata">

**Author:** [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Replies:** 0\
**Last updated:** [August 29, 2010, 1:35am UTC](https://www.ruby-forum.com/t/rcairo-1-8-5/194047 "2010-08-29T01:35:20Z")

</div>

Hi, I released rcairo(\*1) 1.8.5 that fixes build related problems in 1.8.3+ http://raa.ruby-lang.org/project/rcairo/ (\*1) A library to use cairo(\*2) from Ruby. (\*2) A 2D graphics library that is used by GTK+/Firefo…

---

## [Simulating a TTY?](https://www.ruby-forum.com/t/simulating-a-tty/193859)

<div class="topic-metadata">

**Author:** [@quintus](https://www.ruby-forum.com/u/quintus)\
**Replies:** 5\
**Last updated:** [August 29, 2010, 12:08am UTC](https://www.ruby-forum.com/t/simulating-a-tty/193859 "2010-08-29T00:08:06Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi there, I’m trying to write something like a terminal emulator for use inside a wxRuby GUI as a debugging console in the current context or just as a possibility to is…

---

## [Stopping ruby from escaping characters](https://www.ruby-forum.com/t/stopping-ruby-from-escaping-characters/194040)

<div class="topic-metadata">

**Author:** [@Shef](https://www.ruby-forum.com/u/Shef)\
**Replies:** 1\
**Last updated:** [August 28, 2010, 10:07pm UTC](https://www.ruby-forum.com/t/stopping-ruby-from-escaping-characters/194040 "2010-08-28T22:07:31Z")

</div>

I’m trying to open a file with variables encased inside the interpolation operator, but when I open the file it escapes the # character. I try and gsub it but it reinserts the escape character anyway. Is there anyway …

---

## [Rainbows! 0.97.0 - a sleepy HTTP server](https://www.ruby-forum.com/t/rainbows-0-97-0-a-sleepy-http-server/194041)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [August 28, 2010, 10:06pm UTC](https://www.ruby-forum.com/t/rainbows-0-97-0-a-sleepy-http-server/194041 "2010-08-28T22:06:21Z")

</div>

Rainbows! is an HTTP server for sleepy Rack applications. It is based on Unicorn, but designed to handle applications that expect long request/response times and/or slow clients. http://rainbows.rubyforge.org/ remo…

---

## [Charset Detection](https://www.ruby-forum.com/t/charset-detection/191088)

<div class="topic-metadata">

**Author:** [@voxom](https://www.ruby-forum.com/u/voxom)\
**Replies:** 2\
**Last updated:** [August 28, 2010, 7:48pm UTC](https://www.ruby-forum.com/t/charset-detection/191088 "2010-08-28T19:48:11Z")

</div>

Is there any existing functions or external gems that can take a generic string and parse for charset markers, converting that parts of the string to their appropriate charsets? For example, theres an email with the h…

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

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