# Ruby

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

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

---

## [Serializable Proc](https://www.ruby-forum.com/t/serializable-proc/146291)

<div class="topic-metadata">

**Author:** [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Replies:** 6\
**Last updated:** [August 20, 2008, 7:21pm UTC](https://www.ruby-forum.com/t/serializable-proc/146291 "2008-08-20T19:21:46Z")

</div>

Hi, For my current project I need to be able to write an object to disk and retrieve it later. However, the object contains references to Procs, which cannot be serialized. Are there any gems out there that let me se…

---

## [Latest r134 commit should solve Mono file pathname case sensitivity problem](https://www.ruby-forum.com/t/latest-r134-commit-should-solve-mono-file-pathname-case-sensitivity-problem/146264)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 6\
**Last updated:** [August 20, 2008, 6:51pm UTC](https://www.ruby-forum.com/t/latest-r134-commit-should-solve-mono-file-pathname-case-sensitivity-problem/146264 "2008-08-20T18:51:20Z")

</div>

Can folks verify and report back please? Thanks, -John

---

## [Shortest Ruby crash #49](https://www.ruby-forum.com/t/shortest-ruby-crash-49/146299)

<div class="topic-metadata">

**Author:** [@Limo\_D](https://www.ruby-forum.com/u/Limo_D)\
**Replies:** 14\
**Last updated:** [August 20, 2008, 6:39pm UTC](https://www.ruby-forum.com/t/shortest-ruby-crash-49/146299 "2008-08-20T18:39:36Z")

</div>

My contribution to the contest: 567 This baby throws “Errno::EBADF: Bad file descriptor”, which I think deserves a medal for being the least intuitive error message of 2008! And now, for the real question… Why is th…

---

## [Mapping betwing a standard type and a user defined type with SWIG](https://www.ruby-forum.com/t/mapping-betwing-a-standard-type-and-a-user-defined-type-with-swig/146394)

<div class="topic-metadata">

**Author:** [@lyes](https://www.ruby-forum.com/u/lyes)\
**Replies:** 2\
**Last updated:** [August 20, 2008, 6:05pm UTC](https://www.ruby-forum.com/t/mapping-betwing-a-standard-type-and-a-user-defined-type-with-swig/146394 "2008-08-20T18:05:34Z")

</div>

Hello! I’ve wrote a C library where I redefined (with typedef) the “char” and I gave it the name “my\_char”. Every things worked well when I gave constant strings to my wrapped functions which takes a “my\_char \*” as a…

---

## [Viewing documentation for installed modules](https://www.ruby-forum.com/t/viewing-documentation-for-installed-modules/146361)

<div class="topic-metadata">

**Author:** [@Benjamin\_Walkenhors](https://www.ruby-forum.com/u/Benjamin_Walkenhors)\
**Replies:** 2\
**Last updated:** [August 20, 2008, 5:54pm UTC](https://www.ruby-forum.com/t/viewing-documentation-for-installed-modules/146361 "2008-08-20T17:54:59Z")

</div>

Hello everyone, This is probably a stupid question, but it has been a while since I last used Ruby, and I need to refresh my memory. I have consulted the search engine of my choice, but without useful results. (Altho…

---

## [Passing a variable from a block back to the method](https://www.ruby-forum.com/t/passing-a-variable-from-a-block-back-to-the-method/146220)

<div class="topic-metadata">

**Author:** [@jimdeuc](https://www.ruby-forum.com/u/jimdeuc)\
**Replies:** 5\
**Last updated:** [August 20, 2008, 5:04pm UTC](https://www.ruby-forum.com/t/passing-a-variable-from-a-block-back-to-the-method/146220 "2008-08-20T17:04:39Z")

</div>

I have several files that I have to read, check the contents, and then write any changes. I overloaded the File class to help me out with this: class File def self.change(filename) # read the file, execute a block…

---

## [Cut a string if length \> n](https://www.ruby-forum.com/t/cut-a-string-if-length-n/146266)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 14\
**Last updated:** [August 20, 2008, 4:11pm UTC](https://www.ruby-forum.com/t/cut-a-string-if-length-n/146266 "2008-08-20T16:11:24Z")

</div>

What’s the best way to cut a string if the length is above n characters? Is it slice, or is there any other convenient method? Trying to understand the string class from the docs but not sure which one to use.

---

## [Grabbing html from pages that require login](https://www.ruby-forum.com/t/grabbing-html-from-pages-that-require-login/146251)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 4\
**Last updated:** [August 20, 2008, 3:34pm UTC](https://www.ruby-forum.com/t/grabbing-html-from-pages-that-require-login/146251 "2008-08-20T15:34:48Z")

</div>

Hi ive searched the forums already but couldnt come up with any concrete information. Ive written a script that accesses certain pages on ebay and scapes information. Its using open-uri to grab html and just standard …

---

## [Faking username to "install" for build system](https://www.ruby-forum.com/t/faking-username-to-install-for-build-system/146389)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 0\
**Last updated:** [August 20, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/faking-username-to-install-for-build-system/146389 "2008-08-20T15:31:23Z")

</div>

A few packages insist on installing itsell as name “root” instead of the more generic UID 0 during “make install” phase. This very seldomly creates a few, neglectable, but still slightly troubling problems when someon…

---

## [Ruby callback for a SWIG wrapped C function](https://www.ruby-forum.com/t/ruby-callback-for-a-swig-wrapped-c-function/146272)

<div class="topic-metadata">

**Author:** [@lyes](https://www.ruby-forum.com/u/lyes)\
**Replies:** 2\
**Last updated:** [August 20, 2008, 3:16pm UTC](https://www.ruby-forum.com/t/ruby-callback-for-a-swig-wrapped-c-function/146272 "2008-08-20T15:16:02Z")

</div>

Hello list! I successfully wrapped using swig a library I wrote in ruby, all its simple functions works very well. I said simple because I have a function that takes a callback function as argument, and I look for …

---

## [Help with creating gem](https://www.ruby-forum.com/t/help-with-creating-gem/146386)

<div class="topic-metadata">

**Author:** [@wujciol](https://www.ruby-forum.com/u/wujciol)\
**Replies:** 0\
**Last updated:** [August 20, 2008, 2:49pm UTC](https://www.ruby-forum.com/t/help-with-creating-gem/146386 "2008-08-20T14:49:58Z")

</div>

Can you told me howto create gem which will add containing files into ruby/bin and ruby/share ?

---

## [Rope for Facets](https://www.ruby-forum.com/t/rope-for-facets/146163)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 4\
**Last updated:** [August 20, 2008, 2:29pm UTC](https://www.ruby-forum.com/t/rope-for-facets/146163 "2008-08-20T14:29:03Z")

</div>

I’d like to add a Rope implementation to Ruby F.s. Is there a good implementation out there? (Btw, Are Ruby Q. solution listed in any special order?) Thanks, T.

---

## [Ruby help](https://www.ruby-forum.com/t/ruby-help/196786)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 1\
**Last updated:** [August 20, 2008, 1:49pm UTC](https://www.ruby-forum.com/t/ruby-help/196786 "2008-08-20T13:49:14Z")

</div>

Can someone enlighten me about \* Public Instance Methods. \* Public Class Methods. \* What is the root class for all Ruby Classes if there is one.

---

## [Inter process communication](https://www.ruby-forum.com/t/inter-process-communication/146374)

<div class="topic-metadata">

**Author:** [@jazcyk](https://www.ruby-forum.com/u/jazcyk)\
**Replies:** 1\
**Last updated:** [August 20, 2008, 1:36pm UTC](https://www.ruby-forum.com/t/inter-process-communication/146374 "2008-08-20T13:36:22Z")

</div>

Hi, please advise on the following. Need to implement execution of tasks in serial and parallel mode together with daemons within Ruby. Scenario: The main program starts with a fork - it executes in the child proces…

---

## [Cuca Web Framework - v0.05](https://www.ruby-forum.com/t/cuca-web-framework-v0-05/146377)

<div class="topic-metadata">

**Author:** [@pytlik](https://www.ruby-forum.com/u/pytlik)\
**Replies:** 0\
**Last updated:** [August 20, 2008, 1:35pm UTC](https://www.ruby-forum.com/t/cuca-web-framework-v0-05/146377 "2008-08-20T13:35:46Z")

</div>

Version 0.05 - First announcement == About Cuca is a light widget-based web application framework that supports pretty url’s, sessions, partials and layouts. It can interface with any webserver using cgi and fastcg…

---

## [Help with Ruby under cygwin](https://www.ruby-forum.com/t/help-with-ruby-under-cygwin/140284)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 22\
**Last updated:** [August 20, 2008, 1:07pm UTC](https://www.ruby-forum.com/t/help-with-ruby-under-cygwin/140284 "2008-08-20T13:07:31Z")

</div>

In order to use git on my laptop (MS XPproSP3) I ended up installing the cygwin environment. I tried MSysGit but it failed to run and the maintainer was, shall we say, less than enthusiastic with my bug report. Now, …

---

## [JRuby & Netbeans For Noobs/Dummies](https://www.ruby-forum.com/t/jruby-netbeans-for-noobs-dummies/146123)

<div class="topic-metadata">

**Author:** [@paulf](https://www.ruby-forum.com/u/paulf)\
**Replies:** 8\
**Last updated:** [August 20, 2008, 12:09pm UTC](https://www.ruby-forum.com/t/jruby-netbeans-for-noobs-dummies/146123 "2008-08-20T12:09:37Z")

</div>

After spending far too much time googling for assistance in using Netbeans and JRuby I have decided to try a different approach. In my blog http://paulfraser.blogspot.com/ I have started a series to try and bring toge…

---

## [JS.Class 2.0](https://www.ruby-forum.com/t/js-class-2-0/146314)

<div class="topic-metadata">

**Author:** [@james-calivar](https://www.ruby-forum.com/u/james-calivar)\
**Replies:** 2\
**Last updated:** [August 20, 2008, 10:33am UTC](https://www.ruby-forum.com/t/js-class-2-0/146314 "2008-08-20T10:33:25Z")

</div>

Hello list, Do please forgive me if this is a little too off-topic but I thought some folks here might be interested. I recently released version 2.0 of JS.Class, my JavaScript library that implements some of Ruby’s…

---

## [Some method help ... not really sure about proper title](https://www.ruby-forum.com/t/some-method-help-not-really-sure-about-proper-title/146304)

<div class="topic-metadata">

**Author:** [@lpc2148](https://www.ruby-forum.com/u/lpc2148)\
**Replies:** 2\
**Last updated:** [August 20, 2008, 9:30am UTC](https://www.ruby-forum.com/t/some-method-help-not-really-sure-about-proper-title/146304 "2008-08-20T09:30:37Z")

</div>

Hi guys! I’m kinda new to ruby , and was wondering about the following stuff , assume the following code : Shoes.app { button(“Press Me”) { alert(“You pressed me”) } } how could I write code like that , so that whe…

---

## [Memory Leak running Mongrel?](https://www.ruby-forum.com/t/memory-leak-running-mongrel/146237)

<div class="topic-metadata">

**Author:** [@sharkie](https://www.ruby-forum.com/u/sharkie)\
**Replies:** 3\
**Last updated:** [August 20, 2008, 8:34am UTC](https://www.ruby-forum.com/t/memory-leak-running-mongrel/146237 "2008-08-20T08:34:57Z")

</div>

I have 3 processes of Mongrel running with 600MB heap each. Eventually after a few hours (few 10,000 processes) the memory consumption would grow and fills the heap entirely. Then, I would get that Java out of memory …

---

## [Io-reactor 1.0.4](https://www.ruby-forum.com/t/io-reactor-1-0-4/146335)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [August 20, 2008, 8:30am UTC](https://www.ruby-forum.com/t/io-reactor-1-0-4/146335 "2008-08-20T08:30:52Z")

</div>

Version 1.0.4 of IO-Reactor has been released. IO-Reactor is a pure-Ruby implementation of an asynchronous multiplexed IO Reactor which is based on the Reactor design pattern found in Pattern-Oriented Software Archi…

---

## [Find element in array of hashes](https://www.ruby-forum.com/t/find-element-in-array-of-hashes/146275)

<div class="topic-metadata">

**Author:** [@adler1](https://www.ruby-forum.com/u/adler1)\
**Replies:** 6\
**Last updated:** [August 20, 2008, 7:40am UTC](https://www.ruby-forum.com/t/find-element-in-array-of-hashes/146275 "2008-08-20T07:40:26Z")

</div>

Dear all, i am trying to find my way in Ruby, but i am just a bignner. Here is my problem: I have two array of hashes: \_DownloadData \<\< { :FileName =\> splitLine\[0\] , :Size =\> splitLine\[4\].to\_i } \_FilesD…

---

## [Marshal/Serialization Question](https://www.ruby-forum.com/t/marshal-serialization-question/146313)

<div class="topic-metadata">

**Author:** [@roxah](https://www.ruby-forum.com/u/roxah)\
**Replies:** 1\
**Last updated:** [August 20, 2008, 7:30am UTC](https://www.ruby-forum.com/t/marshal-serialization-question/146313 "2008-08-20T07:30:30Z")

</div>

Hello all, I’m trying to Marshal some Ruby objects to file and I have a question about parent classes. Say I have the following: class Device @@id = 0 @@id\_map = Hash.new @@device\_map = Hash.new def i…

---

## [CAP DEPLOY problem](https://www.ruby-forum.com/t/cap-deploy-problem/146226)

<div class="topic-metadata">

**Author:** [@palani](https://www.ruby-forum.com/u/palani)\
**Replies:** 1\
**Last updated:** [August 20, 2008, 7:27am UTC](https://www.ruby-forum.com/t/cap-deploy-problem/146226 "2008-08-20T07:27:34Z")

</div>

Any one please help me to solve the problem.when i try to the cap deploy it doesn’t work. It ask the password 3 times. even i gave the correct password it throws the error. Here is the output i faced when i try to de…

---

## [Immutable, Interned strings?](https://www.ruby-forum.com/t/immutable-interned-strings/146135)

<div class="topic-metadata">

**Author:** [@Mayuresh\_K](https://www.ruby-forum.com/u/Mayuresh_K)\
**Replies:** 3\
**Last updated:** [August 20, 2008, 7:04am UTC](https://www.ruby-forum.com/t/immutable-interned-strings/146135 "2008-08-20T07:04:45Z")

</div>

Hello, I’m learning Ruby via the “The Ruby P.ming Language”. The first chapter has the following statements; Ruby’s hashes can use any object as a key, but Symbol objects are the most commonly used. Symbols are immu…

---

## [Problem with rapt](https://www.ruby-forum.com/t/problem-with-rapt/146346)

<div class="topic-metadata">

**Author:** [@bishal](https://www.ruby-forum.com/u/bishal)\
**Replies:** 0\
**Last updated:** [August 20, 2008, 6:36am UTC](https://www.ruby-forum.com/t/problem-with-rapt/146346 "2008-08-20T06:36:51Z")

</div>

test\>rapt install ym4r\_gm Error: RaPT currently does not work outside of a Rails application directory. Please change to the top level of a Rails application and try again. how to get rid of this annoying message wh…

---

## [Security in use of contants](https://www.ruby-forum.com/t/security-in-use-of-contants/146094)

<div class="topic-metadata">

**Author:** [@Kless](https://www.ruby-forum.com/u/Kless)\
**Replies:** 39\
**Last updated:** [August 20, 2008, 6:35am UTC](https://www.ruby-forum.com/t/security-in-use-of-contants/146094 "2008-08-20T06:35:31Z")

</div>

Is secure use constants? I come from Python and it isn’t recommended there.

---

## [Jruby-complete.jar and rails gem](https://www.ruby-forum.com/t/jruby-complete-jar-and-rails-gem/146324)

<div class="topic-metadata">

**Author:** [@Vivek\_P](https://www.ruby-forum.com/u/Vivek_P)\
**Replies:** 4\
**Last updated:** [August 20, 2008, 6:34am UTC](https://www.ruby-forum.com/t/jruby-complete-jar-and-rails-gem/146324 "2008-08-20T06:34:21Z")

</div>

In GlassFish v3 I am using JRuby APIs to instantiate JRuby and Rails runtime. I am using maven to write a unit test for rails. My maven dependency is on jruby-complete.jar. However when my test tries to loadup the ra…

---

## [Complex & Rational](https://www.ruby-forum.com/t/complex-rational/146076)

<div class="topic-metadata">

**Author:** [@Tadayoshi\_F](https://www.ruby-forum.com/u/Tadayoshi_F)\
**Replies:** 5\
**Last updated:** [August 20, 2008, 6:09am UTC](https://www.ruby-forum.com/t/complex-rational/146076 "2008-08-20T06:09:47Z")

</div>

1.9 (1.9.1 e$B$K8~$1$Fe(B) e$B$G!"e(BComplexe$B!"e(BRational e$B$K$D$$$F\<c43$NJQ99$r$7$?$$$He(B e$B;W$$$^$9!#e(B Complex#/ e$B$N?6Iq$$$re(B quo e$BAjEv$K$7$^$9!#e(B e$B0JA0$N5DO@$G!“35$M9g0U$G$-$F$$$?$H;W$$$^$9!#$3$N…

---

## [Overprinting characters](https://www.ruby-forum.com/t/overprinting-characters/146322)

<div class="topic-metadata">

**Author:** [@bouldr-matt](https://www.ruby-forum.com/u/bouldr-matt)\
**Replies:** 5\
**Last updated:** [August 20, 2008, 6:03am UTC](https://www.ruby-forum.com/t/overprinting-characters/146322 "2008-08-20T06:03:21Z")

</div>

I have a script that does things to large files \> 1Gb and I want to be able to show the percentage through the current file. I know exactly how I will get the percentage, but I want to know how to display it in the te…

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

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