# Ruby

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

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

---

## [Windows question](https://www.ruby-forum.com/t/windows-question/180283)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 6\
**Last updated:** [December 16, 2009, 6:49pm UTC](https://www.ruby-forum.com/t/windows-question/180283 "2009-12-16T18:49:21Z")

</div>

Anybody else get this? C:\>gem install redcar --pre JRuby limited openssl loaded. gem install jruby-openssl for full support. http://jruby.kenai.com/pages/JRuby\_Builtin\_OpenSSL ERROR: While executing gem … (IOError) …

---

## [Serialize io exception](https://www.ruby-forum.com/t/serialize-io-exception/180128)

<div class="topic-metadata">

**Author:** [@jasonfs](https://www.ruby-forum.com/u/jasonfs)\
**Replies:** 1\
**Last updated:** [December 16, 2009, 6:24pm UTC](https://www.ruby-forum.com/t/serialize-io-exception/180128 "2009-12-16T18:24:38Z")

</div>

Dear all, Most of the time serialization of webclient and page works, but sometimes it bombs out with an io exception This is one case where I am getting the execption - any ideas on how get serialization working for…

---

## [Searching for Comparison Search](https://www.ruby-forum.com/t/searching-for-comparison-search/180252)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 4\
**Last updated:** [December 16, 2009, 5:38pm UTC](https://www.ruby-forum.com/t/searching-for-comparison-search/180252 "2009-12-16T17:38:05Z")

</div>

Hello all, Please bear with me. I’m work on my third month with Ruby on Rails. I’m looking to find or create a comparison search. It must take a small paragraph and search another model column of the same name and re…

---

## [\[Bug #2481\] cannot install 1.8.7 on Win32](https://www.ruby-forum.com/t/bug-2481-cannot-install-1-8-7-on-win32/180223)

<div class="topic-metadata">

**Author:** [@Usaku\_NAKAMURA](https://www.ruby-forum.com/u/Usaku_NAKAMURA)\
**Replies:** 1\
**Last updated:** [December 16, 2009, 12:01pm UTC](https://www.ruby-forum.com/t/bug-2481-cannot-install-1-8-7-on-win32/180223 "2009-12-16T12:01:16Z")

</div>

Bug #2481: cannot install 1.8.7 on Win32 http://redmine.ruby-lang.org/issues/show/2481 e$B5/I\<\<Te(B: Usaku NAKAMURA e$B%9%F!\<%?%9e(B: Assigned, e$BM%@hEYe(B: High e$BC4Ev\<Te(B: Shyouhei U., e$B%+%F%4%je(B: build rub…

---

## [Marshal documentation](https://www.ruby-forum.com/t/marshal-documentation/180231)

<div class="topic-metadata">

**Author:** [@lapajko](https://www.ruby-forum.com/u/lapajko)\
**Replies:** 4\
**Last updated:** [December 16, 2009, 11:20am UTC](https://www.ruby-forum.com/t/marshal-documentation/180231 "2009-12-16T11:20:53Z")

</div>

Hi, is there any specification or documentation of Marshal dumping and restoring? I’d like to write a tool, which will be compatibile with it. Thank you

---

## [Trisha Navel](https://www.ruby-forum.com/t/trisha-navel/180275)

<div class="topic-metadata">

**Author:** [@pistol](https://www.ruby-forum.com/u/pistol)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 10:57am UTC](https://www.ruby-forum.com/t/trisha-navel/180275 "2009-12-16T10:57:29Z")

</div>

Trisha Navel. See hot sexy telugu tamil actress trisha romantic navel at http://hotsexyphotosandvideos.blogspot.com/2009/12/blog-post.html

---

## [What happens?](https://www.ruby-forum.com/t/what-happens/180273)

<div class="topic-metadata">

**Author:** [@msan](https://www.ruby-forum.com/u/msan)\
**Replies:** 2\
**Last updated:** [December 16, 2009, 10:25am UTC](https://www.ruby-forum.com/t/what-happens/180273 "2009-12-16T10:25:18Z")

</div>

For all the day I’ve had this problem: jgem update Updating installed gems ERROR: http://gems.rubyforge.org/ does not appear to be a repository ERROR: While executing gem … (Gem::RemoteFetcher::FetchError) Errno::…

---

## [A program error](https://www.ruby-forum.com/t/a-program-error/180272)

<div class="topic-metadata">

**Author:** [@diabolator2](https://www.ruby-forum.com/u/diabolator2)\
**Replies:** 5\
**Last updated:** [December 16, 2009, 9:39am UTC](https://www.ruby-forum.com/t/a-program-error/180272 "2009-12-16T09:39:03Z")

</div>

hi, all! my compiler doesn’t like the “minus” in line 21, it’s like: /home/cristi/NetBeansProjects/RubyApplication3/lib/helic.rb:21: undefined method \`-’ for “”:String (NoMethodError) 1 require “init.rb” 2 3 shots…

---

## [\[ANN\] openssl-nonblock 0.2.1: moving towards compatibility with Ruby 1.9.2](https://www.ruby-forum.com/t/ann-openssl-nonblock-0-2-1-moving-towards-compatibility-with-ruby-1-9-2/180270)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 3\
**Last updated:** [December 16, 2009, 8:31am UTC](https://www.ruby-forum.com/t/ann-openssl-nonblock-0-2-1-moving-towards-compatibility-with-ruby-1-9-2/180270 "2009-12-16T08:31:10Z")

</div>

openssl-nonblock is a gem which enables non-blocking support in Ruby’s OpenSSL classes by monkeypatching into the heart of some of its C code. It’s vile, it’s nasty, but it works! Install it with: gem install openssl-…

---

## [What does this do?](https://www.ruby-forum.com/t/what-does-this-do/180213)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 4\
**Last updated:** [December 16, 2009, 6:57am UTC](https://www.ruby-forum.com/t/what-does-this-do/180213 "2009-12-16T06:57:32Z")

</div>

“abcd”\[0…2\] = ‘ggg’ =\> “ggg” What is going on here, anybody have any ideas? -r

---

## [Swapping tags & deleting tags via nokogiri](https://www.ruby-forum.com/t/swapping-tags-deleting-tags-via-nokogiri/180265)

<div class="topic-metadata">

**Author:** [@pablitoman](https://www.ruby-forum.com/u/pablitoman)\
**Replies:** 2\
**Last updated:** [December 16, 2009, 6:25am UTC](https://www.ruby-forum.com/t/swapping-tags-deleting-tags-via-nokogiri/180265 "2009-12-16T06:25:21Z")

</div>

let’s say I have an xml document like this some text blah blah is there a simple method in nokogiri to: step 1: convert all tags to something else (e.g., ) creating this… some text bl…

---

## [Native extensions and how to handle them](https://www.ruby-forum.com/t/native-extensions-and-how-to-handle-them/180255)

<div class="topic-metadata">

**Author:** [@moredip](https://www.ruby-forum.com/u/moredip)\
**Replies:** 3\
**Last updated:** [December 16, 2009, 6:04am UTC](https://www.ruby-forum.com/t/native-extensions-and-how-to-handle-them/180255 "2009-12-16T06:04:17Z")

</div>

I am attempting to install Refinery CMS and ran into issues installing the unicode and slim\_scrooge gems. Both apparently use native extensions and both refer me to the wiki for further information. I can see anythi…

---

## [Stable find.rb](https://www.ruby-forum.com/t/stable-find-rb/179878)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 4\
**Last updated:** [December 16, 2009, 5:37am UTC](https://www.ruby-forum.com/t/stable-find-rb/179878 "2009-12-16T05:37:56Z")

</div>

ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã‚’å†å¸°çš„ã«ãŸã©ã£ãŸçµæžœã‚’æ¯”è¼ƒã™ã‚‹ã“ã¨ãŒã‚ã£ãŸã®ã§ã™ãŒã€ find.rb ã‚’ä½¿ã†ã¨ã€yield ã•ã‚Œã‚‹ãƒ•ã‚¡ã‚¤ãƒ«åã®é †åºãŒ readdir ã®æŒ™å‹•ã«ä¾å­˜ã—ã¦ ä¸å®šãªãŸã‚ã«ä…

---

## [Handling ruby types and CallSiteStorage in std library](https://www.ruby-forum.com/t/handling-ruby-types-and-callsitestorage-in-std-library/179538)

<div class="topic-metadata">

**Author:** [@dmarkow](https://www.ruby-forum.com/u/dmarkow)\
**Replies:** 3\
**Last updated:** [December 16, 2009, 5:01am UTC](https://www.ruby-forum.com/t/handling-ruby-types-and-callsitestorage-in-std-library/179538 "2009-12-16T05:01:21Z")

</div>

I’m working on adding code to the OpenSSL extension of the standard library and I need to understand the design for invoking and typing Ruby code. I read the ‘Modifying the sources’ github page and it mentions using …

---

## [Bug on Ruby extension](https://www.ruby-forum.com/t/bug-on-ruby-extension/180253)

<div class="topic-metadata">

**Author:** [@denommus](https://www.ruby-forum.com/u/denommus)\
**Replies:** 2\
**Last updated:** [December 15, 2009, 11:18pm UTC](https://www.ruby-forum.com/t/bug-on-ruby-extension/180253 "2009-12-15T23:18:22Z")

</div>

I’m trying to make a glue code for ODE 0.9 on Ruby 1.8.7. This is my code: #include “ruby.h” #include “ode/ode.h” VALUE ode\_init(VALUE self) { dWorldID mWorldID = dWorldCreate(); rb\_iv\_set(self, “@world”, (VALUE)m…

---

## [Gtk2 crash: bug or abuse?](https://www.ruby-forum.com/t/gtk2-crash-bug-or-abuse/180251)

<div class="topic-metadata">

**Author:** [@ohplease](https://www.ruby-forum.com/u/ohplease)\
**Replies:** 0\
**Last updated:** [December 15, 2009, 9:46pm UTC](https://www.ruby-forum.com/t/gtk2-crash-bug-or-abuse/180251 "2009-12-15T21:46:24Z")

</div>

Hi there. I am running Ruby 1.8.7 (debian lenny/i386) and the following program crashes the ruby vm with a Segmentation Fault (when closing the window): #!/usr/bin/env ruby =begin rubycalc - Ruby/GTK first sample sc…

---

## [Multithread TCPServer not dequeueing packets](https://www.ruby-forum.com/t/multithread-tcpserver-not-dequeueing-packets/180220)

<div class="topic-metadata">

**Author:** [@davidjrice](https://www.ruby-forum.com/u/davidjrice)\
**Replies:** 6\
**Last updated:** [December 15, 2009, 9:20pm UTC](https://www.ruby-forum.com/t/multithread-tcpserver-not-dequeueing-packets/180220 "2009-12-15T21:20:59Z")

</div>

Hi All I am moving a software from ruby 1.8.5 to 1.9.1. We have a multi thread TCP server and the code looks like: @csock = TCPServer.new(@host, port) @server\_thread\_id = Thread.new { server() } def server() while …

---

## [Regexp to pars a HTML tag value](https://www.ruby-forum.com/t/regexp-to-pars-a-html-tag-value/180239)

<div class="topic-metadata">

**Author:** [@sepehr](https://www.ruby-forum.com/u/sepehr)\
**Replies:** 5\
**Last updated:** [December 15, 2009, 8:55pm UTC](https://www.ruby-forum.com/t/regexp-to-pars-a-html-tag-value/180239 "2009-12-15T20:55:55Z")

</div>

I want to replace the value inside a HTML tag with another value using gsub function and regexp,what is the best regexp for this purpose? puts MyStr.gsub(/“What Should Be the Regex?”/, “NewValue”) example: \<span id=“…

---

## [\[OT\] bash "wait for previous to finish" option?](https://www.ruby-forum.com/t/ot-bash-wait-for-previous-to-finish-option/180214)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 5\
**Last updated:** [December 15, 2009, 4:42pm UTC](https://www.ruby-forum.com/t/ot-bash-wait-for-previous-to-finish-option/180214 "2009-12-15T16:42:19Z")

</div>

Anybody know if something like this exists. two terminals open hack hack hack \[start long running process\] hack hack \[type in the name of a command which should be run immediately after long running process in termin…

---

## [Introspecting Method Arguments with Method.arity](https://www.ruby-forum.com/t/introspecting-method-arguments-with-method-arity/133213)

<div class="topic-metadata">

**Author:** [@paul-au](https://www.ruby-forum.com/u/paul-au)\
**Replies:** 4\
**Last updated:** [December 15, 2009, 4:30pm UTC](https://www.ruby-forum.com/t/introspecting-method-arguments-with-method-arity/133213 "2009-12-15T16:30:26Z")

</div>

Is there a way to return the number of required arguments, the number of optional arguments and whether or not a splat is present for a method? The closest I’ve managed to find is Method.arity which will return a num…

---

## [Debug IRB session](https://www.ruby-forum.com/t/debug-irb-session/180222)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 2\
**Last updated:** [December 15, 2009, 4:20pm UTC](https://www.ruby-forum.com/t/debug-irb-session/180222 "2009-12-15T16:20:12Z")

</div>

Hi, Recently IRB has been leaking memory until it consumes all I have available(8GB). I can’t figure out why - I don’t use anything other than the core classes, and the odd time classes in Standard Library. During my…

---

## [NoMethodError (undefined method \`save' for #\<HashWithIndifferentAccess:0x1032677e0\>](https://www.ruby-forum.com/t/nomethoderror-undefined-method-save-for-hashwithindifferentaccess-0x1032677e0/179382)

<div class="topic-metadata">

**Author:** [@miles](https://www.ruby-forum.com/u/miles)\
**Replies:** 1\
**Last updated:** [December 15, 2009, 3:21pm UTC](https://www.ruby-forum.com/t/nomethoderror-undefined-method-save-for-hashwithindifferentaccess-0x1032677e0/179382 "2009-12-15T15:21:09Z")

</div>

Hello- I’m sending an object to RubyAMF from Actionscript, and getting an unexpected error that I can’t figure out. Here’s what it looks like: =========== Processing AmfsearchesController#save (for 127.0.0.1 at 2009-…

---

## [Mongrel service vs mongrel in command shell](https://www.ruby-forum.com/t/mongrel-service-vs-mongrel-in-command-shell/180237)

<div class="topic-metadata">

**Author:** [@rabarama](https://www.ruby-forum.com/u/rabarama)\
**Replies:** 1\
**Last updated:** [December 15, 2009, 1:56pm UTC](https://www.ruby-forum.com/t/mongrel-service-vs-mongrel-in-command-shell/180237 "2009-12-15T13:56:53Z")

</div>

Hi I have to deploy a ruby app on a win2003 server. If i star a mongrel server from shell, my app works with no problems, if i start a service with mongrel\_service my apps stops in few seconds with this message: T…

---

## [Meta-programming](https://www.ruby-forum.com/t/meta-programming/180230)

<div class="topic-metadata">

**Author:** [@Rajinder\_Y](https://www.ruby-forum.com/u/Rajinder_Y)\
**Replies:** 6\
**Last updated:** [December 15, 2009, 12:16pm UTC](https://www.ruby-forum.com/t/meta-programming/180230 "2009-12-15T12:16:48Z")

</div>

I am just starting to expand my Ruby knowledge into the area of meta-programming. I want to be able to create a class dynamically. Lets call it, class Person, and then I want to add methods to it dynamically. From a …

---

## [How can IronRuby replace XML?](https://www.ruby-forum.com/t/how-can-ironruby-replace-xml/180228)

<div class="topic-metadata">

**Author:** [@shayfriedman](https://www.ruby-forum.com/u/shayfriedman)\
**Replies:** 10\
**Last updated:** [December 15, 2009, 11:29am UTC](https://www.ruby-forum.com/t/how-can-ironruby-replace-xml/180228 "2009-12-15T11:29:59Z")

</div>

Hi there, Jimmy wrote in one of his latests posts that Ruby can replace XML. I didn’t understand this statement because XML files are static configuration files (and Ruby also has an equivalent - YAML)… How can Rub…

---

## [One-liner for lowercasing files](https://www.ruby-forum.com/t/one-liner-for-lowercasing-files/180198)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 7\
**Last updated:** [December 15, 2009, 11:13am UTC](https://www.ruby-forum.com/t/one-liner-for-lowercasing-files/180198 "2009-12-15T11:13:35Z")

</div>

Hi, Can someone please suggest a simple Ruby one-liner to lowercase a filename (in a directory)? I’ve perused, with Google, a bunch of good Ruby one-liner sites, but, I can’t find any lowercasing examples. Thanks a l…

---

## [Does module have instance\_methods?](https://www.ruby-forum.com/t/does-module-have-instance-methods/180224)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 3\
**Last updated:** [December 15, 2009, 11:03am UTC](https://www.ruby-forum.com/t/does-module-have-instance-methods/180224 "2009-12-15T11:03:03Z")

</div>

I’m still confused, since module can’t be instantiated, why it has the instance methods? irb(main):162:0\> module Mymod irb(main):163:1\> def myway;end irb(main):164:1\> end =\> nil irb(main):165:0\> Mymod.respond\_to?…

---

## [What does \\s\* means?](https://www.ruby-forum.com/t/what-does-s-means/180233)

<div class="topic-metadata">

**Author:** [@kgovinda](https://www.ruby-forum.com/u/kgovinda)\
**Replies:** 2\
**Last updated:** [December 15, 2009, 10:43am UTC](https://www.ruby-forum.com/t/what-does-s-means/180233 "2009-12-15T10:43:08Z")

</div>

what does the .\\s\* means in the following commad class String def sentences gsub(/\\n|\\r/, ’ ').split(/.\\s\*/) end end

---

## [Flog 2.4.0 Released](https://www.ruby-forum.com/t/flog-2-4-0-released/180234)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [December 15, 2009, 10:26am UTC](https://www.ruby-forum.com/t/flog-2-4-0-released/180234 "2009-12-15T10:26:09Z")

</div>

flog version 2.4.0 has been released! http://ruby.sadi.st/ http://rubyforge.org/projects/seattlerb Flog reports the most tortured code in an easy to read pain report. The higher the score, the more pain the code is i…

---

## [About class and module](https://www.ruby-forum.com/t/about-class-and-module/180188)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 6\
**Last updated:** [December 15, 2009, 3:17am UTC](https://www.ruby-forum.com/t/about-class-and-module/180188 "2009-12-15T03:17:10Z")

</div>

Hello, Coz Ruby’s class and module are close to Perl’s, I think it’s not hard to understand for them. I wrote a note below for learning them, if I’m not correct, please point it out, thanks. class is defined with t…

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

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