# Ruby

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

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

---

## [Pid of self](https://www.ruby-forum.com/t/pid-of-self/133124)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 2\
**Last updated:** [March 28, 2008, 4:25pm UTC](https://www.ruby-forum.com/t/pid-of-self/133124 "2008-03-28T16:25:40Z")

</div>

how to get the pid of the currently running ruby process ie itself in xp.

---

## [Blob to file](https://www.ruby-forum.com/t/blob-to-file/133182)

<div class="topic-metadata">

**Author:** [@jimache](https://www.ruby-forum.com/u/jimache)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 4:13pm UTC](https://www.ruby-forum.com/t/blob-to-file/133182 "2008-03-28T16:13:21Z")

</div>

Hi everyone, I have a bunch of pdf files stored in a database (blob field) and now i am asked to “transform” them into file system. Is there any way to do that; I tried something along the lines of FileObject.find(:…

---

## [Ruby for RedHat Linux Rhel5](https://www.ruby-forum.com/t/ruby-for-redhat-linux-rhel5/133173)

<div class="topic-metadata">

**Author:** [@vijay21](https://www.ruby-forum.com/u/vijay21)\
**Replies:** 1\
**Last updated:** [March 28, 2008, 3:40pm UTC](https://www.ruby-forum.com/t/ruby-for-redhat-linux-rhel5/133173 "2008-03-28T15:40:57Z")

</div>

Hi, Please let me know which version of Ruby is compatible with RedHat Linux RHEL5 (64 Bit). 2.6.18-53.el5 - x86\_64 x86\_64 x86\_64 Thanks in Advance, Vijay.

---

## ["gem list" and "sudo gem list" yield different results](https://www.ruby-forum.com/t/gem-list-and-sudo-gem-list-yield-different-results/133171)

<div class="topic-metadata">

**Author:** [@miken700](https://www.ruby-forum.com/u/miken700)\
**Replies:** 3\
**Last updated:** [March 28, 2008, 3:29pm UTC](https://www.ruby-forum.com/t/gem-list-and-sudo-gem-list-yield-different-results/133171 "2008-03-28T15:29:12Z")

</div>

Hey there, “sudo gem list” shows all my gems, while “gem list” shows no gems. As a result, I have to start mongrel with “sudo script/server”, because without sudo, it can’t find my gems. Any clues? Is this a permiss…

---

## [Send values from one page to another page](https://www.ruby-forum.com/t/send-values-from-one-page-to-another-page/133159)

<div class="topic-metadata">

**Author:** [@hemantaray](https://www.ruby-forum.com/u/hemantaray)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 11:53am UTC](https://www.ruby-forum.com/t/send-values-from-one-page-to-another-page/133159 "2008-03-28T11:53:55Z")

</div>

throug this way we can call a differnt page and also able to send the ruby’s default id \<%= link\_to ‘DETAILS’,:controller =\> ‘cforeport’, :action =\> ‘sv’,:id=\>idd%\> But how I send a particlur value to another page p…

---

## [Join query](https://www.ruby-forum.com/t/join-query/133158)

<div class="topic-metadata">

**Author:** [@hemantaray](https://www.ruby-forum.com/u/hemantaray)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 11:49am UTC](https://www.ruby-forum.com/t/join-query/133158 "2008-03-28T11:49:49Z")

</div>

how to write join query or how to handle more than one table from one controller.plz help with simple code

---

## [Join query](https://www.ruby-forum.com/t/join-query/133157)

<div class="topic-metadata">

**Author:** [@hemantaray](https://www.ruby-forum.com/u/hemantaray)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 11:48am UTC](https://www.ruby-forum.com/t/join-query/133157 "2008-03-28T11:48:04Z")

</div>

how to write join query .plz help with simple code

---

## [Extract data from an array](https://www.ruby-forum.com/t/extract-data-from-an-array/133151)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 3\
**Last updated:** [March 28, 2008, 11:20am UTC](https://www.ruby-forum.com/t/extract-data-from-an-array/133151 "2008-03-28T11:20:49Z")

</div>

Hi I have a while loop as below while count \<= total\_ci\_id\_asso\_types do v = “sd\_ci”+"#{count}" ci\_id\_asso\_type=params\[:"#{v}"\] count=count+1 end for example puts ci\_id\_asso\_type gives id45service\_desk\_ci\_associ…

---

## [What is the use of :var in ruby](https://www.ruby-forum.com/t/what-is-the-use-of-var-in-ruby/133144)

<div class="topic-metadata">

**Author:** [@deepkumarb](https://www.ruby-forum.com/u/deepkumarb)\
**Replies:** 1\
**Last updated:** [March 28, 2008, 9:35am UTC](https://www.ruby-forum.com/t/what-is-the-use-of-var-in-ruby/133144 "2008-03-28T09:35:41Z")

</div>

Hi, I am new to Ruby, I would like to know about :var in ruby. I saw this question in one site but nobody provide any response for this. Please clear my doubt as early as possible. Thanks Pradeep Kumar

---

## [Ruby exception handling while we embedded in C++](https://www.ruby-forum.com/t/ruby-exception-handling-while-we-embedded-in-c/133145)

<div class="topic-metadata">

**Author:** [@chirag\_mistry\_ruby](https://www.ruby-forum.com/u/chirag_mistry_ruby)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 8:49am UTC](https://www.ruby-forum.com/t/ruby-exception-handling-while-we-embedded-in-c/133145 "2008-03-28T08:49:45Z")

</div>

Hi I have embedded Ruby in C++ application and want to handle Ruby exception in C++ application. Please let me know any good reference documents for Ruby exception handling while we embedded in C++. Regards Chirag

---

## [Issues with Ruby trying to parse data passed from Flex app](https://www.ruby-forum.com/t/issues-with-ruby-trying-to-parse-data-passed-from-flex-app/133134)

<div class="topic-metadata">

**Author:** [@rajatgarg](https://www.ruby-forum.com/u/rajatgarg)\
**Replies:** 1\
**Last updated:** [March 28, 2008, 8:32am UTC](https://www.ruby-forum.com/t/issues-with-ruby-trying-to-parse-data-passed-from-flex-app/133134 "2008-03-28T08:32:24Z")

</div>

Hi Guys, I have a Ruby API that is getting called by a Flex app using POST. The problem is as long as data is in the format of - user\[name\]=alsk user\[email\]=klsd user\[pass\]=03493 it is fine. But, when it has say tw…

---

## [Newbie question : private / public methods](https://www.ruby-forum.com/t/newbie-question-private-public-methods/132570)

<div class="topic-metadata">

**Author:** [@krzysieq\_Gazeta.pl](https://www.ruby-forum.com/u/krzysieq_Gazeta.pl)\
**Replies:** 6\
**Last updated:** [March 28, 2008, 8:00am UTC](https://www.ruby-forum.com/t/newbie-question-private-public-methods/132570 "2008-03-28T08:00:31Z")

</div>

Hi, I’m new both to this mailing list and to Ruby. Here’s an example, question will come later. private.rb class PrivateMethodTest private def privateMethod(the\_string) 'haha! ’ + the\_string end public def …

---

## [Need help with singleton!](https://www.ruby-forum.com/t/need-help-with-singleton/132314)

<div class="topic-metadata">

**Author:** [@di3go](https://www.ruby-forum.com/u/di3go)\
**Replies:** 5\
**Last updated:** [March 28, 2008, 7:41am UTC](https://www.ruby-forum.com/t/need-help-with-singleton/132314 "2008-03-28T07:41:09Z")

</div>

Hi :slight\_smile: Yea, again a question to help me building the game XD I have a class called Mob, when i instance a mob from the main i search the name of mob in a list, if the name is there i create it and i call a …

---

## [Ruby intepreter LIne no tracking](https://www.ruby-forum.com/t/ruby-intepreter-line-no-tracking/133057)

<div class="topic-metadata">

**Author:** [@suresh](https://www.ruby-forum.com/u/suresh)\
**Replies:** 2\
**Last updated:** [March 28, 2008, 7:20am UTC](https://www.ruby-forum.com/t/ruby-intepreter-line-no-tracking/133057 "2008-03-28T07:20:34Z")

</div>

Hi , I am rite now creating an IDE that executes and gets results from ruby process. That contains all of the features of normal IDE. I am struck to make MY ide to look for the currently executing line in ruby intepr…

---

## [Shoes | Windows | Gems](https://www.ruby-forum.com/t/shoes-windows-gems/133131)

<div class="topic-metadata">

**Author:** [@kyleh](https://www.ruby-forum.com/u/kyleh)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 5:11am UTC](https://www.ruby-forum.com/t/shoes-windows-gems/133131 "2008-03-28T05:11:40Z")

</div>

Hello, I’ve just recently installed Shoes, and developing my applications interface for it has really been a breeze. Although, my project also uses Mechanize which makes it more of a hassle. On Linux, I just kept cop…

---

## [GC heap size less patch](https://www.ruby-forum.com/t/gc-heap-size-less-patch/133129)

<div class="topic-metadata">

**Author:** [@authorNari](https://www.ruby-forum.com/u/authorNari)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 4:48am UTC](https://www.ruby-forum.com/t/gc-heap-size-less-patch/133129 "2008-03-28T04:48:03Z")

</div>

authorNarie$B$G$9!#e(B e$B$3$NA0$KOC$7$K$“$C$?!”%R!\<%W$N:YJ,2=$N%Q%C%A$r:n$j$^$7$?!#e(B e$B\>:Y$O$3$A$i$K=q$$$F$\*$j$^$9!#e(B http://d.hatena.ne.jp/authorNari/20080328/1206675485 e$B$b$C$H%Y%s%A%^!\<%/MQ$N%3!\<%I$r:n$C$F…

---

## [Improving Code](https://www.ruby-forum.com/t/improving-code/133127)

<div class="topic-metadata">

**Author:** [@eder](https://www.ruby-forum.com/u/eder)\
**Replies:** 1\
**Last updated:** [March 28, 2008, 4:28am UTC](https://www.ruby-forum.com/t/improving-code/133127 "2008-03-28T04:28:07Z")

</div>

Question → How would you improve this code The Error Handling sucks Bad Usage of Net::HTTP Bad Usage of Classes and Hierachy etc Thanks in advance. require ‘rubygems’ require ‘hpricot’ require ‘net/http’ class P…

---

## [Updated the wiki a bit](https://www.ruby-forum.com/t/updated-the-wiki-a-bit/133031)

<div class="topic-metadata">

**Author:** [@Jayme](https://www.ruby-forum.com/u/Jayme)\
**Replies:** 1\
**Last updated:** [March 28, 2008, 2:26am UTC](https://www.ruby-forum.com/t/updated-the-wiki-a-bit/133031 "2008-03-28T02:26:33Z")

</div>

Hey guys, Just giving you a heads up that I’ve made some tweaks to the organization of the wiki. There are several topics I still need to clean up but the main page and most topics have been updated with a little mor…

---

## [PDF::Reader streamed into PDF::Writer](https://www.ruby-forum.com/t/pdf-reader-streamed-into-pdf-writer/133108)

<div class="topic-metadata">

**Author:** [@bluetwin](https://www.ruby-forum.com/u/bluetwin)\
**Replies:** 1\
**Last updated:** [March 28, 2008, 2:19am UTC](https://www.ruby-forum.com/t/pdf-reader-streamed-into-pdf-writer/133108 "2008-03-28T02:19:31Z")

</div>

Hi Folks, Does PDF::Reader integrate at all with PDF::Writer? What I’m attempting to do is read a pdf file while writing it back out in pdf with additional data added(i.e. form fields populated). Essentially this is …

---

## [Multi-dimentional array](https://www.ruby-forum.com/t/multi-dimentional-array/132886)

<div class="topic-metadata">

**Author:** [@joan2kus](https://www.ruby-forum.com/u/joan2kus)\
**Replies:** 6\
**Last updated:** [March 28, 2008, 12:45am UTC](https://www.ruby-forum.com/t/multi-dimentional-array/132886 "2008-03-28T00:45:28Z")

</div>

I need to insert Broad Category value and Topics value into a table, doing something like this (where ‘Police, Crime, Drugs’ are topics values and ‘Crime & Law Enforcement’ is broad category value): obj1 = ‘Police, Cr…

---

## [Fork](https://www.ruby-forum.com/t/fork/133041)

<div class="topic-metadata">

**Author:** [@joeymarchy](https://www.ruby-forum.com/u/joeymarchy)\
**Replies:** 9\
**Last updated:** [March 28, 2008, 12:42am UTC](https://www.ruby-forum.com/t/fork/133041 "2008-03-28T00:42:45Z")

</div>

I want to fork a child process and use instantiated objects from the parent process. Is this possible? obj = Object.new fork do doSomething(obj) end

---

## [Rb\_cv\_set defines class var but doesn't?](https://www.ruby-forum.com/t/rb-cv-set-defines-class-var-but-doesnt/133115)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 12:25am UTC](https://www.ruby-forum.com/t/rb-cv-set-defines-class-var-but-doesnt/133115 "2008-03-28T00:25:06Z")

</div>

I’m using rb\_cv\_set in a C extension to set the value of a class variable. Via gdb I can see that rb\_cv\_set successfully creates the variable. The rb\_cvar\_defined function returns Qtrue and a subsequent call to rb\_cv\_…

---

## [Is possible Ruby to use CRLF instead of LF?](https://www.ruby-forum.com/t/is-possible-ruby-to-use-crlf-instead-of-lf/132900)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 10\
**Last updated:** [March 27, 2008, 11:50pm UTC](https://www.ruby-forum.com/t/is-possible-ruby-to-use-crlf-instead-of-lf/132900 "2008-03-27T23:50:58Z")

</div>

Hi, AFAIK Ruby uses LF = \\n to detect newline. But now I’m coding a parser for a protocol that uses CRLF = \\r\\n for newline. In fact, \\n is not considered a newline. Is it possible to get Ruby working with CRLF instea…

---

## [Embedding ruby (\*not\* extending)](https://www.ruby-forum.com/t/embedding-ruby-not-extending/133056)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 7\
**Last updated:** [March 27, 2008, 11:25pm UTC](https://www.ruby-forum.com/t/embedding-ruby-not-extending/133056 "2008-03-27T23:25:40Z")

</div>

I need to embed a scripting languange in a C++ application. Currently I am evaluating some scripting languages for this purpose. perl (that works, although it needs a big amount of C++ glue code to deal with the perl…

---

## [MAPI Logon](https://www.ruby-forum.com/t/mapi-logon/133036)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 3\
**Last updated:** [March 27, 2008, 11:05pm UTC](https://www.ruby-forum.com/t/mapi-logon/133036 "2008-03-27T23:05:03Z")

</div>

Hello, I’m trying to start up a MAPI session and get my project rolling… However, when I run my code below (it’s supposed to just log in) I get an error telling me that ‘MAPI.Session’ is an unknown OLE server… My cod…

---

## [Help installing fxruby on osx](https://www.ruby-forum.com/t/help-installing-fxruby-on-osx/109468)

<div class="topic-metadata">

**Author:** [@Sharon\_P](https://www.ruby-forum.com/u/Sharon_P)\
**Replies:** 17\
**Last updated:** [March 27, 2008, 10:49pm UTC](https://www.ruby-forum.com/t/help-installing-fxruby-on-osx/109468 "2008-03-27T22:49:11Z")

</div>

Hi, A few weeks ago I tried to install fxruby, went grey, ended up installing fink and darwinports, lost more hair and ended up completely trashing Ruby on my (wife’s) system here. Thanks to some good advice on this …

---

## [How to kill a Thread into GServer "def server(io)" method?](https://www.ruby-forum.com/t/how-to-kill-a-thread-into-gserver-def-server-io-method/133099)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 2\
**Last updated:** [March 27, 2008, 10:13pm UTC](https://www.ruby-forum.com/t/how-to-kill-a-thread-into-gserver-def-server-io-method/133099 "2008-03-27T22:13:36Z")

</div>

Hi, I’m using GServer and in “serve” method I read a string from a TCP socket: line = io.gets("\\n") but it can occur that the TCP connection is closed so “gets” return NIL. In this case I just one to terminate this t…

---

## [Pypes](https://www.ruby-forum.com/t/pypes/133102)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 7\
**Last updated:** [March 27, 2008, 9:44pm UTC](https://www.ruby-forum.com/t/pypes/133102 "2008-03-27T21:44:58Z")

</div>

http://www.voidspace.org.uk/python/weblog/arch\_d7\_2008\_03\_22.shtml#e954 Nice example of what you can do with generators. Is this sort of thing doable efficiently in 1.9? martin

---

## [Can I validate a page that already specifies schema or DTD at top?](https://www.ruby-forum.com/t/can-i-validate-a-page-that-already-specifies-schema-or-dtd-at-top/133104)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 0\
**Last updated:** [March 27, 2008, 7:40pm UTC](https://www.ruby-forum.com/t/can-i-validate-a-page-that-already-specifies-schema-or-dtd-at-top/133104 "2008-03-27T19:40:27Z")

</div>

I’m going to be working with pages that all have their schema or DTD specified at the top such as: Do I need to extract each one, or can I somehow run a version of validate that picks this up instead of taking a dt…

---

## [Why git instead of mercurial?](https://www.ruby-forum.com/t/why-git-instead-of-mercurial/132837)

<div class="topic-metadata">

**Author:** [@princenamor](https://www.ruby-forum.com/u/princenamor)\
**Replies:** 44\
**Last updated:** [March 27, 2008, 5:45pm UTC](https://www.ruby-forum.com/t/why-git-instead-of-mercurial/132837 "2008-03-27T17:45:29Z")

</div>

It seems like the hot new thing these days in Ruby-land is to host your project in git. Cool…I’m very glad distributed vc is finally getting the attention it deserves. However, I’m curious…why are so many in the Ruby …

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

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