# Ruby

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

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

---

## [Does ruby have a similar functions to the Python dir and hel](https://www.ruby-forum.com/t/does-ruby-have-a-similar-functions-to-the-python-dir-and-hel/89883)

<div class="topic-metadata">

**Author:** [@pypypy](https://www.ruby-forum.com/u/pypypy)\
**Replies:** 5\
**Last updated:** [March 24, 2007, 9:55am UTC](https://www.ruby-forum.com/t/does-ruby-have-a-similar-functions-to-the-python-dir-and-hel/89883 "2007-03-24T09:55:33Z")

</div>

In python during runtime, or in the python shell you can type: dir() or dir(\<some\_object\>) and get a list of variables, methods etc that exist for that object. Also there is help(\<some\_object\>), or help(\<some\_object…

---

## [Documented practical debugger workflow / tools?](https://www.ruby-forum.com/t/documented-practical-debugger-workflow-tools/89950)

<div class="topic-metadata">

**Author:** [@Demetrius\_G](https://www.ruby-forum.com/u/Demetrius_G)\
**Replies:** 0\
**Last updated:** [March 24, 2007, 4:55am UTC](https://www.ruby-forum.com/t/documented-practical-debugger-workflow-tools/89950 "2007-03-24T04:55:18Z")

</div>

I am looking for practical examples of effective debugging workflow in ruby that is documented. Currently, I see ruby documentation explain installation and running ruby, starting with the most ancient standard input …

---

## [What is the problem with this module function](https://www.ruby-forum.com/t/what-is-the-problem-with-this-module-function/89773)

<div class="topic-metadata">

**Author:** [@SunRaySon](https://www.ruby-forum.com/u/SunRaySon)\
**Replies:** 6\
**Last updated:** [March 24, 2007, 4:54am UTC](https://www.ruby-forum.com/t/what-is-the-problem-with-this-module-function/89773 "2007-03-24T04:54:18Z")

</div>

I have a simple class A declared as follows: class A def foo p “A::foo” end def boo p “A::boo” end end Then I have a simple module ModuleA declared as follows: module ModuleA def module\_a\_foo p ‘ModuleA::modu…

---

## [Getting uncompressed size of zipfile with Rubyzip](https://www.ruby-forum.com/t/getting-uncompressed-size-of-zipfile-with-rubyzip/89846)

<div class="topic-metadata">

**Author:** [@stian](https://www.ruby-forum.com/u/stian)\
**Replies:** 1\
**Last updated:** [March 24, 2007, 2:11am UTC](https://www.ruby-forum.com/t/getting-uncompressed-size-of-zipfile-with-rubyzip/89846 "2007-03-24T02:11:09Z")

</div>

This should be really easy and obvious, but I have been looking around, at Rubyzip documentation, googling etc, and I haven’t found a very obvious answer. All I want is to get the uncompressed size of an entire zipfil…

---

## [Problem in Extending ruby](https://www.ruby-forum.com/t/problem-in-extending-ruby/89629)

<div class="topic-metadata">

**Author:** [@ravinder](https://www.ruby-forum.com/u/ravinder)\
**Replies:** 2\
**Last updated:** [March 23, 2007, 11:11pm UTC](https://www.ruby-forum.com/t/problem-in-extending-ruby/89629 "2007-03-23T23:11:28Z")

</div>

I want to call C code from my ruby class. I am using SWIG for doing this. I am able to compile the code and also able to invoke a C function from ruby, but am unable to access a variable. I have declared the variable …

---

## [Issues with pack/write on WinXP compared to Linux](https://www.ruby-forum.com/t/issues-with-pack-write-on-winxp-compared-to-linux/89920)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [March 23, 2007, 10:32pm UTC](https://www.ruby-forum.com/t/issues-with-pack-write-on-winxp-compared-to-linux/89920 "2007-03-23T22:32:23Z")

</div>

I’m sure that this has to do with CR/LF on DOS/Windows filesystems, but I’m not sure how to fix: File.open(‘test’, ‘w’) do |file| file.write(\[10\].pack(‘n’)) #=\> 2 \[bytes\] end On Linux, the file comes out as having …

---

## [Count distinct values in csv](https://www.ruby-forum.com/t/count-distinct-values-in-csv/89851)

<div class="topic-metadata">

**Author:** [@caefer](https://www.ruby-forum.com/u/caefer)\
**Replies:** 3\
**Last updated:** [March 23, 2007, 7:26pm UTC](https://www.ruby-forum.com/t/count-distinct-values-in-csv/89851 "2007-03-23T19:26:02Z")

</div>

Hi, i’m new to ruby. How could i read a tab-delimted textfile with two columns + header row and count the distinct values from the 2.column? my first experiments missed because i have to elimnate the header row!?…

---

## [How to share a collection of model files across many apps?](https://www.ruby-forum.com/t/how-to-share-a-collection-of-model-files-across-many-apps/89895)

<div class="topic-metadata">

**Author:** [@eblatt](https://www.ruby-forum.com/u/eblatt)\
**Replies:** 3\
**Last updated:** [March 23, 2007, 6:44pm UTC](https://www.ruby-forum.com/t/how-to-share-a-collection-of-model-files-across-many-apps/89895 "2007-03-23T18:44:58Z")

</div>

Hi, I’ve got three files that (a.rb, b.rb, c.rb) that currently live in app/models. I’d like these models to shared by multiple rails apps. These models are associated with a separate database. My rails projects are…

---

## [Are comments objects?](https://www.ruby-forum.com/t/are-comments-objects/89903)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [March 23, 2007, 5:50pm UTC](https://www.ruby-forum.com/t/are-comments-objects/89903 "2007-03-23T17:50:50Z")

</div>

Are comment blocks objects? I want to be able to access all (or just one) the comment blocks for an object. Then I can make a .help for each object. a=“a” puts a.help #{list all methods maybe?} puts a.help(:split) …

---

## [Uploading a file with net/HTTP](https://www.ruby-forum.com/t/uploading-a-file-with-net-http/89885)

<div class="topic-metadata">

**Author:** [@Nicholas\_W](https://www.ruby-forum.com/u/Nicholas_W)\
**Replies:** 1\
**Last updated:** [March 23, 2007, 5:35pm UTC](https://www.ruby-forum.com/t/uploading-a-file-with-net-http/89885 "2007-03-23T17:35:46Z")

</div>

puts Net::HTTP.post\_form(URI.parse(‘http://example.com/upload.php’), { ‘username’ =\> ‘foo’, ‘password’ =\> ‘bar’, ‘Filedata’ =\> File.new (‘way\_home.wmv’, ‘r’).read + ‘\\r\\n’ }) the result is a pipe error … irb(main):01…

---

## [\[ANN\] Ruby Hoedown 2007 - the Ruby conference down south](https://www.ruby-forum.com/t/ann-ruby-hoedown-2007-the-ruby-conference-down-south/89900)

<div class="topic-metadata">

**Author:** [@Jeremy\_McAnally](https://www.ruby-forum.com/u/Jeremy_McAnally)\
**Replies:** 0\
**Last updated:** [March 23, 2007, 4:37pm UTC](https://www.ruby-forum.com/t/ann-ruby-hoedown-2007-the-ruby-conference-down-south/89900 "2007-03-23T16:37:06Z")

</div>

Hello, I’m proud to announce the first ever regional Ruby conference in the south: Ruby Hoedown 2007. Ruby Hoedown, a joint effort between Raleigh.rb, Atlanta.rb, and myself, is going to be held at the Red Hat HQ in…

---

## [Getting a n-th key-value pair from a hash](https://www.ruby-forum.com/t/getting-a-n-th-key-value-pair-from-a-hash/89882)

<div class="topic-metadata">

**Author:** [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Replies:** 3\
**Last updated:** [March 23, 2007, 3:12pm UTC](https://www.ruby-forum.com/t/getting-a-n-th-key-value-pair-from-a-hash/89882 "2007-03-23T15:12:32Z")

</div>

Hi! suppose I have this hash: data = { “a” =\> 1, “b” =\> 2, “c” =\> 3 } I’d like to get a random pair from the hash. so data.get\_pair(data.rand) should return \[“b”, 2\] for example. How could this be done? I cannot f…

---

## [Prog/lang/platform google readership last 40 hours](https://www.ruby-forum.com/t/prog-lang-platform-google-readership-last-40-hours/89886)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 23, 2007, 3:06pm UTC](https://www.ruby-forum.com/t/prog-lang-platform-google-readership-last-40-hours/89886 "2007-03-23T15:06:50Z")

</div>

This is it. Summary: comp.lang.ruby in 9th place behind C. Python in general a strong ally. msft a juggernaut. Java web gluecode offering nonexistent, attention mostly google toolkit (ajax concerns), but bea…

---

## [How do I properly spawn an external process on OS X from Rub](https://www.ruby-forum.com/t/how-do-i-properly-spawn-an-external-process-on-os-x-from-rub/89819)

<div class="topic-metadata">

**Author:** [@luke](https://www.ruby-forum.com/u/luke)\
**Replies:** 6\
**Last updated:** [March 23, 2007, 2:25pm UTC](https://www.ruby-forum.com/t/how-do-i-properly-spawn-an-external-process-on-os-x-from-rub/89819 "2007-03-23T14:25:46Z")

</div>

I’ve been struggling with this for quite a long time now (weeks?) and figure it’s time to get some advice from folks that know what they’re doing. Essentially, I am trying to launch an OSX GUI application (The Adobe …

---

## [How to read table's cell in ruby?](https://www.ruby-forum.com/t/how-to-read-tables-cell-in-ruby/89876)

<div class="topic-metadata">

**Author:** [@deepak](https://www.ruby-forum.com/u/deepak)\
**Replies:** 2\
**Last updated:** [March 23, 2007, 2:01pm UTC](https://www.ruby-forum.com/t/how-to-read-tables-cell-in-ruby/89876 "2007-03-23T14:01:41Z")

</div>

Hello, Can anyone tell me how to read cells of a table on a webpage? plz tell me methods. Thanks in Advance Deepak

---

## [Gems was working but not anymore](https://www.ruby-forum.com/t/gems-was-working-but-not-anymore/89874)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [March 23, 2007, 1:51pm UTC](https://www.ruby-forum.com/t/gems-was-working-but-not-anymore/89874 "2007-03-23T13:51:39Z")

</div>

I installed Ruby, Gems, Rails etc. following the instructions on (Me: using Intel, 10.4, all other settings and versions same as that website) Gems was working as I was able to install Rails, Mongrel, Capistrano and…

---

## [Newbie templating question: how to combine multiple files](https://www.ruby-forum.com/t/newbie-templating-question-how-to-combine-multiple-files/89852)

<div class="topic-metadata">

**Author:** [@frocco](https://www.ruby-forum.com/u/frocco)\
**Replies:** 9\
**Last updated:** [March 23, 2007, 1:45pm UTC](https://www.ruby-forum.com/t/newbie-templating-question-how-to-combine-multiple-files/89852 "2007-03-23T13:45:37Z")

</div>

Hi, I use ERB for some very basic HTML templating (no Rails!). In essence, I have normal HTML pages produced by Adobe GoLive (the WORST HTML editor ever) with a couple of simple tags along the lines of \<%= @myProduct…

---

## [OLE double values in Ruby](https://www.ruby-forum.com/t/ole-double-values-in-ruby/89861)

<div class="topic-metadata">

**Author:** [@tkejzlar](https://www.ruby-forum.com/u/tkejzlar)\
**Replies:** 0\
**Last updated:** [March 23, 2007, 12:05pm UTC](https://www.ruby-forum.com/t/ole-double-values-in-ruby/89861 "2007-03-23T12:05:39Z")

</div>

Hi, I have a Ruby app which uses WIN32OLE to connect and work with one OLE application (it’s a CRM software). I’ve run into a littpe problem: when I try to set some data that (according to dhe docs of the CRM SW) have …

---

## [Fwd: gembundles](https://www.ruby-forum.com/t/fwd-gembundles/89776)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 23, 2007, 8:14am UTC](https://www.ruby-forum.com/t/fwd-gembundles/89776 "2007-03-23T08:14:00Z")

</div>

\---------- Forwarded message ---------- From: TRANS removed\_email\_address@domain.invalid Date: Mar 20, 2007 9:39 PM Subject: gembundles To: removed\_email\_address@domain.invalid Hi– A few days back I brought up some…

---

## [Help with Errno.EBADF](https://www.ruby-forum.com/t/help-with-errno-ebadf/89843)

<div class="topic-metadata">

**Author:** [@RubyCrazy](https://www.ruby-forum.com/u/RubyCrazy)\
**Replies:** 1\
**Last updated:** [March 23, 2007, 7:30am UTC](https://www.ruby-forum.com/t/help-with-errno-ebadf/89843 "2007-03-23T07:30:58Z")

</div>

Hello all, I am referring to the thread here - Can someone throw more light on what’s Errno::EBADF in the code - begin Read stuff etc. rescue Errno::EBADF Whatever end Thanks.

---

## [Rake bug on Windows](https://www.ruby-forum.com/t/rake-bug-on-windows/89814)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 2\
**Last updated:** [March 23, 2007, 6:18am UTC](https://www.ruby-forum.com/t/rake-bug-on-windows/89814 "2007-03-23T06:18:53Z")

</div>

I can’t find out where to file this: Rake returns 0 exit status on Windows, even after failure. rake -V c:0:Warning: require\_gem is obsolete. Use gem instead. rake, version 0.7.2 ruby -v ruby 1.8.5 (2006-08-25)…

---

## [Compiling ruby on linux](https://www.ruby-forum.com/t/compiling-ruby-on-linux/87320)

<div class="topic-metadata">

**Author:** [@rpm13](https://www.ruby-forum.com/u/rpm13)\
**Replies:** 9\
**Last updated:** [March 23, 2007, 5:30am UTC](https://www.ruby-forum.com/t/compiling-ruby-on-linux/87320 "2007-03-23T05:30:51Z")

</div>

I need to use ruby 1.8.5 whereas the linux I am using – ubuntu edgy – gives 1.8.4. Tried to download sources and compile. Seemed to go fine but when I tried to setup gem it barfed saying the zlib library is not avail…

---

## [\#define alternative for Ruby](https://www.ruby-forum.com/t/define-alternative-for-ruby/88452)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 32\
**Last updated:** [March 23, 2007, 2:27am UTC](https://www.ruby-forum.com/t/define-alternative-for-ruby/88452 "2007-03-23T02:27:40Z")

</div>

Hello all, Does Ruby have something like “#define” for C/C++? Especially with arguments like “#define foo(x) (something\_done\_with\_x(x))”. Please don’t say that “def” do the same. It doesn’t. Thanks, Michael

---

## [Ruby load path and gems](https://www.ruby-forum.com/t/ruby-load-path-and-gems/89832)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [March 23, 2007, 12:11am UTC](https://www.ruby-forum.com/t/ruby-load-path-and-gems/89832 "2007-03-23T00:11:26Z")

</div>

Hi, I’m a relative newbie to ruby and linux, so please excuse this if it seems a little naive. Also please accept thanks for all the work that has gone into a great language. I thought that if ‘/usr/lib/ruby/1.8’ wa…

---

## [Code completion for Ruby - Net Beans, RDT, and more](https://www.ruby-forum.com/t/code-completion-for-ruby-net-beans-rdt-and-more/89816)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 2\
**Last updated:** [March 22, 2007, 10:58pm UTC](https://www.ruby-forum.com/t/code-completion-for-ruby-net-beans-rdt-and-more/89816 "2007-03-22T22:58:44Z")

</div>

Code completion for Ruby is on its way. I’m concerned that the recently popular style of using hashes to fake named params will keep us in the dark, though. And anyway, Ruby wants to get named params. How about thi…

---

## [Reading binary file written by C program](https://www.ruby-forum.com/t/reading-binary-file-written-by-c-program/89798)

<div class="topic-metadata">

**Author:** [@Yacao\_Wang](https://www.ruby-forum.com/u/Yacao_Wang)\
**Replies:** 4\
**Last updated:** [March 22, 2007, 10:49pm UTC](https://www.ruby-forum.com/t/reading-binary-file-written-by-c-program/89798 "2007-03-22T22:49:43Z")

</div>

Hi all, I’ve learned some basic of Ruby and I need to write a program that can read data from binary files written by a C program. I was supposed to use the company library to do this using C++ but I really feel that…

---

## [MySQL/Ruby: More documentation or examples?](https://www.ruby-forum.com/t/mysql-ruby-more-documentation-or-examples/89737)

<div class="topic-metadata">

**Author:** [@Phillip\_G](https://www.ruby-forum.com/u/Phillip_G)\
**Replies:** 4\
**Last updated:** [March 22, 2007, 9:46pm UTC](https://www.ruby-forum.com/t/mysql-ruby-more-documentation-or-examples/89737 "2007-03-22T21:46:28Z")

</div>

Hello, list. I’m digging my way through the MySQL/Ruby documentation\[0\], which is, sadly, a bit lacking, at least for my still weak understanding of Ruby and MySQL. I can’t check the Japanese version, as I don’t speak…

---

## [Ruby equivalent of filepart](https://www.ruby-forum.com/t/ruby-equivalent-of-filepart/89781)

<div class="topic-metadata">

**Author:** [@siddharthdawara](https://www.ruby-forum.com/u/siddharthdawara)\
**Replies:** 1\
**Last updated:** [March 22, 2007, 9:30pm UTC](https://www.ruby-forum.com/t/ruby-equivalent-of-filepart/89781 "2007-03-22T21:30:26Z")

</div>

I’m looking for a Ruby equivalent of Java’s Jakarta HTTP FilePart. I basically need to send out a post request that contains an uploaded file to a REST API. Now the client code that they normally use is Jakarta HTTP. …

---

## [eRuby and CSS](https://www.ruby-forum.com/t/eruby-and-css/89702)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 6\
**Last updated:** [March 22, 2007, 9:09pm UTC](https://www.ruby-forum.com/t/eruby-and-css/89702 "2007-03-22T21:09:22Z")

</div>

Does eRuby parse CSS ? I’d like to be able to create style sheets that use variables for repeated values like colors and borders. I’m curious if eRuby currently has this functionality or not. Is there some method to …

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/89800)

<div class="topic-metadata">

**Author:** [@FlSSSSvio\_Alves\_Gra](https://www.ruby-forum.com/u/FlSSSSvio_Alves_Gra)\
**Replies:** 0\
**Last updated:** [March 22, 2007, 8:48pm UTC](https://www.ruby-forum.com/t/no-subject/89800 "2007-03-22T20:48:19Z")

</div>

unsubscribe – Consultoria em Software Livre: (31) 9145 7109 Desenvolvimento de sistemas web, desktop, montagem de servidores e redes. http://microbiocity.blogspot.com melhor blog que existe. “Computers are like a…

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

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