# Ruby

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

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

---

## [Getting docs on openssl in ruby](https://www.ruby-forum.com/t/getting-docs-on-openssl-in-ruby/191645)

<div class="topic-metadata">

**Author:** [@mjgp2](https://www.ruby-forum.com/u/mjgp2)\
**Replies:** 2\
**Last updated:** [July 15, 2010, 8:03pm UTC](https://www.ruby-forum.com/t/getting-docs-on-openssl-in-ruby/191645 "2010-07-15T20:03:34Z")

</div>

I’ve been digging around trying to find some documentation on using openssl in ruby, and having a terrible time of it. The openssl sections of the standard library docs at ruby-doc.org are empty, I don’t see anything…

---

## [Sending packets over TCP server](https://www.ruby-forum.com/t/sending-packets-over-tcp-server/191642)

<div class="topic-metadata">

**Author:** [@hikayu](https://www.ruby-forum.com/u/hikayu)\
**Replies:** 6\
**Last updated:** [July 15, 2010, 6:49pm UTC](https://www.ruby-forum.com/t/sending-packets-over-tcp-server/191642 "2010-07-15T18:49:17Z")

</div>

I’m making a TCP server in Ruby, and I still haven’t figured out how I can send packets the way it should be sent. I know how to receive packets and such though… For example, one of the packets I need to send looks li…

---

## [Can't change the value of self](https://www.ruby-forum.com/t/cant-change-the-value-of-self/191627)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 1\
**Last updated:** [July 15, 2010, 6:39pm UTC](https://www.ruby-forum.com/t/cant-change-the-value-of-self/191627 "2010-07-15T18:39:04Z")

</div>

Ok … I’ve googled this error and I see stome explanations about usnig destructive methods … I don’t get it. Consider class UD\_Config attr\_accessor :container\_list attr\_accessor :screen\_x, :screen\_y, :screen\_width,…

---

## [OptionParser mandatory versus optional arguments](https://www.ruby-forum.com/t/optionparser-mandatory-versus-optional-arguments/191641)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [July 15, 2010, 6:23pm UTC](https://www.ruby-forum.com/t/optionparser-mandatory-versus-optional-arguments/191641 "2010-07-15T18:23:26Z")

</div>

I am trying, without success obviously, to check for a mandatory argument switch using OptionParser. I have this code: opts.on("-m", "--mapfile=FILE", "Set data mapping file name", " (default) '…

---

## [What gems are available for Acceptance Testing Using IronRuby](https://www.ruby-forum.com/t/what-gems-are-available-for-acceptance-testing-using-ironruby/191637)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 2\
**Last updated:** [July 15, 2010, 6:15pm UTC](https://www.ruby-forum.com/t/what-gems-are-available-for-acceptance-testing-using-ironruby/191637 "2010-07-15T18:15:49Z")

</div>

Hi, I know that I cannot use WatiR because of its C implementation but what other tools (gems) are available which can be used for acceptance testing (browser, winforms, wpf) applications. Has anyone successfully in…

---

## [Sinatra](https://www.ruby-forum.com/t/sinatra/191630)

<div class="topic-metadata">

**Author:** [@denno](https://www.ruby-forum.com/u/denno)\
**Replies:** 1\
**Last updated:** [July 15, 2010, 5:19pm UTC](https://www.ruby-forum.com/t/sinatra/191630 "2010-07-15T17:19:37Z")

</div>

May not be the best place to ask, but… …anyone got experenice with Sinatra? Does anyone know how to send this to webrick via sinatra? server = HTTPServer.new {:DoNotReverseLookup =\> true, …} Thanks, Dennis

---

## [New version 2.5.5 of IBM\_DB gem now available](https://www.ruby-forum.com/t/new-version-2-5-5-of-ibm-db-gem-now-available/191631)

<div class="topic-metadata">

**Author:** [@praveen](https://www.ruby-forum.com/u/praveen)\
**Replies:** 0\
**Last updated:** [July 15, 2010, 4:50pm UTC](https://www.ruby-forum.com/t/new-version-2-5-5-of-ibm-db-gem-now-available/191631 "2010-07-15T16:50:20Z")

</div>

Hi All, New version 2.5.5 of the IBM\_DB gem, the Rails Adapter/Ruby Driver for IBM DB2 and IBM Informix is now available. This release of the gem adds support for Graphic/Vargraphic and Bigint (in adapter) datatype. T…

---

## [Can I install Ruby from a cd w/out the internet?](https://www.ruby-forum.com/t/can-i-install-ruby-from-a-cd-w-out-the-internet/191624)

<div class="topic-metadata">

**Author:** [@connor](https://www.ruby-forum.com/u/connor)\
**Replies:** 2\
**Last updated:** [July 15, 2010, 3:29pm UTC](https://www.ruby-forum.com/t/can-i-install-ruby-from-a-cd-w-out-the-internet/191624 "2010-07-15T15:29:32Z")

</div>

Hi all, I’d like to program using Ruby in a secure environment, i.e. one that has no internet access. I am using the latest version of Ubuntu. What do I need to burn in order to install Ruby on a strange Windows compu…

---

## [How to install 1.9.2 on windows 7](https://www.ruby-forum.com/t/how-to-install-1-9-2-on-windows-7/191488)

<div class="topic-metadata">

**Author:** [@bartee](https://www.ruby-forum.com/u/bartee)\
**Replies:** 3\
**Last updated:** [July 15, 2010, 12:13pm UTC](https://www.ruby-forum.com/t/how-to-install-1-9-2-on-windows-7/191488 "2010-07-15T12:13:00Z")

</div>

I am somewhat a noob ! Used windows installer to get 1.9.1 on windows. I am getting errors using Rails 3 and 1.9.1 as described by many. Would like to get 1.9.2 on my win machine. Any pointers would be appreciated.

---

## [Differnce between .nil? , .empty?, .blank?](https://www.ruby-forum.com/t/differnce-between-nil-empty-blank/143974)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 10\
**Last updated:** [July 15, 2010, 9:42am UTC](https://www.ruby-forum.com/t/differnce-between-nil-empty-blank/143974 "2010-07-15T09:42:56Z")

</div>

Hi Could you please tell me when to use .nil? , .empty?, .blank? .What are the difference between them… For example I have params\[:company\]\[:whichCompany\] And to check for it is null I first attempted all these and …

---

## [\[Bug #3568\] /(?\<=a).\*b/ =~ "aab" doesn't match](https://www.ruby-forum.com/t/bug-3568-a-b-aab-doesnt-match/191542)

<div class="topic-metadata">

**Author:** [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Replies:** 1\
**Last updated:** [July 15, 2010, 8:57am UTC](https://www.ruby-forum.com/t/bug-3568-a-b-aab-doesnt-match/191542 "2010-07-15T08:57:15Z")

</div>

Bug #3568: /(?\<=a).\*b/ =~ “aab” doesn’t match http://redmine.ruby-lang.org/issues/show/3568 e$B5/I\<\<Te(B: Yui NARUSE e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Yui NARUSE, e$B%+%F%4%je(B: core, Target…

---

## [Console-based Pixel Editor (#231)](https://www.ruby-forum.com/t/console-based-pixel-editor-231/187089)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 3\
**Last updated:** [July 15, 2010, 7:17am UTC](https://www.ruby-forum.com/t/console-based-pixel-editor-231/187089 "2010-07-15T07:17:11Z")

</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…

---

## [Cpp Complier](https://www.ruby-forum.com/t/cpp-complier/191590)

<div class="topic-metadata">

**Author:** [@internet2cash](https://www.ruby-forum.com/u/internet2cash)\
**Replies:** 7\
**Last updated:** [July 15, 2010, 6:45am UTC](https://www.ruby-forum.com/t/cpp-complier/191590 "2010-07-15T06:45:36Z")

</div>

I am trying to figure out which would be the best C++ compiler to install on my system. I am forced to develop on windows for my job, and I wanted to look into developing a ruby extension and apache mod. I was deba…

---

## [\[Backport #3573\] include/ruby/ruby.h $B$G(B rb\_cRandom $B$r@k8@$7K:$l$F$$$k(B](https://www.ruby-forum.com/t/backport-3573-include-ruby-ruby-h-b-g-b-rb-crandom-b-r-k8-7k-l-f-k-b/191601)

<div class="topic-metadata">

**Author:** [@Kenta\_M](https://www.ruby-forum.com/u/Kenta_M)\
**Replies:** 0\
**Last updated:** [July 15, 2010, 5:30am UTC](https://www.ruby-forum.com/t/backport-3573-include-ruby-ruby-h-b-g-b-rb-crandom-b-r-k8-7k-l-f-k-b/191601 "2010-07-15T05:30:07Z")

</div>

Backport #3573: include/ruby/ruby.h e$B$Ge(B rb\_cRandom e$B$r@k8@$7K:$l$F$$$ke(B http://redmine.ruby-lang.org/issues/show/3573 e$B5/I\<\<Te(B: Kenta M. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: core …

---

## [Bug in TkComm::list?](https://www.ruby-forum.com/t/bug-in-tkcomm-list/191594)

<div class="topic-metadata">

**Author:** [@glub](https://www.ruby-forum.com/u/glub)\
**Replies:** 1\
**Last updated:** [July 15, 2010, 1:40am UTC](https://www.ruby-forum.com/t/bug-in-tkcomm-list/191594 "2010-07-15T01:40:43Z")

</div>

I’m running into a weird behavior while using TkComm::list and TkComm::tk\_tcl2ruby ruby-1.9.1-p378 \> data = “2.00 21 2” =\> “2.00 21 2” ruby-1.9.1-p378 \> TkComm::list(data) =\> \[2.0, 21, 2\] ruby-1.9.1-p378 \> TkComm::…

---

## [Trouble waiting X minutes](https://www.ruby-forum.com/t/trouble-waiting-x-minutes/191573)

<div class="topic-metadata">

**Author:** [@teedubb](https://www.ruby-forum.com/u/teedubb)\
**Replies:** 2\
**Last updated:** [July 14, 2010, 10:54pm UTC](https://www.ruby-forum.com/t/trouble-waiting-x-minutes/191573 "2010-07-14T22:54:57Z")

</div>

I am making a constant network connection that is feeding me information, i want to take that information and place into nested / two-dimensional array for 1 minute, below is the code that’s not working. class Test d…

---

## [Chance your life click thear](https://www.ruby-forum.com/t/chance-your-life-click-thear/191586)

<div class="topic-metadata">

**Author:** [@senthi](https://www.ruby-forum.com/u/senthi)\
**Replies:** 0\
**Last updated:** [July 14, 2010, 9:05pm UTC](https://www.ruby-forum.com/t/chance-your-life-click-thear/191586 "2010-07-14T21:05:34Z")

</div>

---

## [Hiii](https://www.ruby-forum.com/t/hiii/191550)

<div class="topic-metadata">

**Author:** [@vinumams](https://www.ruby-forum.com/u/vinumams)\
**Replies:** 1\
**Last updated:** [July 14, 2010, 8:43pm UTC](https://www.ruby-forum.com/t/hiii/191550 "2010-07-14T20:43:54Z")

</div>

Hi Everyone… Can any one help me out for the below mentioned problem. I need to build a script using RUBY. I am very newer to this tool. I need to click on image button which doesn’t have any ID or unique name. it co…

---

## [Stdout as IO object](https://www.ruby-forum.com/t/stdout-as-io-object/191539)

<div class="topic-metadata">

**Author:** [@jnb](https://www.ruby-forum.com/u/jnb)\
**Replies:** 4\
**Last updated:** [July 14, 2010, 8:30pm UTC](https://www.ruby-forum.com/t/stdout-as-io-object/191539 "2010-07-14T20:30:49Z")

</div>

Okay, real simple question, but somehow I am missing it in the API: how do create an IO object that represents stdout? I’m using a certain function that receives writable IO objects and I wanted to pass in the standar…

---

## [Classpath conflict?](https://www.ruby-forum.com/t/classpath-conflict/191582)

<div class="topic-metadata">

**Author:** [@dany](https://www.ruby-forum.com/u/dany)\
**Replies:** 0\
**Last updated:** [July 14, 2010, 8:22pm UTC](https://www.ruby-forum.com/t/classpath-conflict/191582 "2010-07-14T20:22:18Z")

</div>

Sorry in advance for the long email. It is hard to be concise when you don’t know what you are talking about… My goal is to do basic scripting of a java swing GUI application, using jruby with jemmy. I am a tester, …

---

## [RbConfig::CONFIG\['CPP'\] question](https://www.ruby-forum.com/t/rbconfig-config-cpp-question/191578)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [July 14, 2010, 7:55pm UTC](https://www.ruby-forum.com/t/rbconfig-config-cpp-question/191578 "2010-07-14T19:55:44Z")

</div>

Currently we have this: require ‘rbconfig’ RbConfig::CONFIG\[‘CC’\] =\> “gcc” RbConfig::CONFIG\[‘CPP’\] =\> “gcc -E” The first one I understand–it’s the C compiler. The second one I don’t though-- “-E” just means…

---

## [How to add the debugger to source build](https://www.ruby-forum.com/t/how-to-add-the-debugger-to-source-build/191574)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [July 14, 2010, 6:59pm UTC](https://www.ruby-forum.com/t/how-to-add-the-debugger-to-source-build/191574 "2010-07-14T18:59:21Z")

</div>

Anybody know the magic ant incantation to include its packaged gems, like ruby-debug, in a source build? By default a require ‘ruby-debug’ fails. Thanks! -r

---

## [How to update Ruby \>\>\> CentOS](https://www.ruby-forum.com/t/how-to-update-ruby-centos/191537)

<div class="topic-metadata">

**Author:** [@indexsrv](https://www.ruby-forum.com/u/indexsrv)\
**Replies:** 3\
**Last updated:** [July 14, 2010, 6:33pm UTC](https://www.ruby-forum.com/t/how-to-update-ruby-centos/191537 "2010-07-14T18:33:19Z")

</div>

Hello, my data center has installed Ruby for me it is: ruby 1.8.7 (2009-06-08 patchlevel 173) \[i686-linux\] i want to have it updated for 1.9.1 I am waiting for help, Thanks alot.

---

## [How could I post request with out parameters using curb](https://www.ruby-forum.com/t/how-could-i-post-request-with-out-parameters-using-curb/191552)

<div class="topic-metadata">

**Author:** [@tda1557](https://www.ruby-forum.com/u/tda1557)\
**Replies:** 2\
**Last updated:** [July 14, 2010, 4:40pm UTC](https://www.ruby-forum.com/t/how-could-i-post-request-with-out-parameters-using-curb/191552 "2010-07-14T16:40:28Z")

</div>

Through command line request: curl POST -u login:pass --url http://test/item/176/start and follow code doesn’t work for me: c= Curl::Easy.new(‘http://test/item/176/start’) c.username = ‘login’ c.password = ‘pass’ …

---

## [What's proble with ruby-mysql-prepare?](https://www.ruby-forum.com/t/whats-proble-with-ruby-mysql-prepare/191553)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 3\
**Last updated:** [July 14, 2010, 2:31pm UTC](https://www.ruby-forum.com/t/whats-proble-with-ruby-mysql-prepare/191553 "2010-07-14T14:31:16Z")

</div>

when i run p1 ,i can get something like: Zimmer Holdings, Inc. Zion Oil & Gas Inc Zions Bancorporation Zions Bancorporation Zions Bancorporation Zions Bancorporation Zweig Fund, Inc. (The) Zweig Total Return Fund…

---

## [I have some questions about this modified String class](https://www.ruby-forum.com/t/i-have-some-questions-about-this-modified-string-class/191551)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 2\
**Last updated:** [July 14, 2010, 1:59pm UTC](https://www.ruby-forum.com/t/i-have-some-questions-about-this-modified-string-class/191551 "2010-07-14T13:59:23Z")

</div>

I have the following script that I just have only slight changes in the hash from “Why’s poignant guide to Ruby” book: http://pastie.org/private/ojmcfglofwloqemqmuhra I have those questions regarding the script: 1- I…

---

## [\[Bug #3571\] \[BUG\] if rb\_notimplement() is called in an anonymous block called by rb\_block\_call()](https://www.ruby-forum.com/t/bug-3571-bug-if-rb-notimplement-is-called-in-an-anonymous-block-called-by-rb-block-call/191547)

<div class="topic-metadata">

**Author:** [@Usaku\_NAKAMURA](https://www.ruby-forum.com/u/Usaku_NAKAMURA)\
**Replies:** 1\
**Last updated:** [July 14, 2010, 1:27pm UTC](https://www.ruby-forum.com/t/bug-3571-bug-if-rb-notimplement-is-called-in-an-anonymous-block-called-by-rb-block-call/191547 "2010-07-14T13:27:41Z")

</div>

Bug #3571: \[BUG\] if rb\_notimplement() is called in an anonymous block called by rb\_block\_call() http://redmine.ruby-lang.org/issues/show/3571 e$B5/I\<\<Te(B: Usaku NAKAMURA e$B%9%F!\<%?%9e(B: Assigned, e$BM%@hEYe(B: Nor…

---

## [Ruby garabage collector](https://www.ruby-forum.com/t/ruby-garabage-collector/191508)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 21\
**Last updated:** [July 14, 2010, 11:14am UTC](https://www.ruby-forum.com/t/ruby-garabage-collector/191508 "2010-07-14T11:14:49Z")

</div>

In the “Why’s poignant guide to Ruby” book, it states the following: “If you can’t get to an object through a variable, then Ruby will figure you are done with it and will get rid of it. Periodically, Ruby sends out i…

---

## [Programming TCP-protocol Server (MineCraft)](https://www.ruby-forum.com/t/programming-tcp-protocol-server-minecraft/191493)

<div class="topic-metadata">

**Author:** [@hikayu](https://www.ruby-forum.com/u/hikayu)\
**Replies:** 2\
**Last updated:** [July 14, 2010, 10:19am UTC](https://www.ruby-forum.com/t/programming-tcp-protocol-server-minecraft/191493 "2010-07-14T10:19:09Z")

</div>

There’s this game called Minecraft (http://www.minecraft.net/) Read this site first: What I want to do is to create a custom Minecraft Server in Ruby. There are several in other languages: But I’d like to make it …

---

## [Shouldn't this be called a global constant?](https://www.ruby-forum.com/t/shouldnt-this-be-called-a-global-constant/191499)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 6\
**Last updated:** [July 14, 2010, 10:13am UTC](https://www.ruby-forum.com/t/shouldnt-this-be-called-a-global-constant/191499 "2010-07-14T10:13:30Z")

</div>

In “why’s poignant guide to Ruby” book, it mentioned that: $LOAD\_PATH is a global variable. Isn’t this a global “constant”?

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

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