# Ruby

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

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

---

## [In an ruby c extension, How to link it with a shared library](https://www.ruby-forum.com/t/in-an-ruby-c-extension-how-to-link-it-with-a-shared-library/95861)

<div class="topic-metadata">

**Author:** [@huiliang\_wu](https://www.ruby-forum.com/u/huiliang_wu)\
**Replies:** 1\
**Last updated:** [June 16, 2006, 4:08pm UTC](https://www.ruby-forum.com/t/in-an-ruby-c-extension-how-to-link-it-with-a-shared-library/95861 "2006-06-16T16:08:10Z")

</div>

Hi, I have a simple shared library written in c++ and named libfoo.so, the header files is: #ifndef FOO\_H #define FOO\_H #ifdef \_\_cplusplus extern “C” { #endif void say(const char \*pSentence); #ifdef \_\_cplusplus …

---

## [Symbol#to\_proc Problem](https://www.ruby-forum.com/t/symbol-to-proc-problem/63546)

<div class="topic-metadata">

**Author:** [@curi](https://www.ruby-forum.com/u/curi)\
**Replies:** 10\
**Last updated:** [June 16, 2006, 4:05pm UTC](https://www.ruby-forum.com/t/symbol-to-proc-problem/63546 "2006-06-16T16:05:01Z")

</div>

http://blog.hasmanythrough.com/articles/read/8 this link suggests a way to hack Symbol to allow \[1, 2, 3\].map(&:to\_s) # =\> \[“1”, “2”, “3”\] my question is how to change the hack to work correctly for other methods. …

---

## [Ruby-gnome2 performance](https://www.ruby-forum.com/t/ruby-gnome2-performance/95843)

<div class="topic-metadata">

**Author:** [@digitalpodcast](https://www.ruby-forum.com/u/digitalpodcast)\
**Replies:** 4\
**Last updated:** [June 16, 2006, 3:19pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-performance/95843 "2006-06-16T15:19:46Z")

</div>

Hi guys, I have problems with the performance of ruby-gnome2 bindings on my Windows machine. For example, when I run the following code, it takes at least 1 second for the window to appear: require 'gtk2' Gtk.init …

---

## [A few good articles on Unicode](https://www.ruby-forum.com/t/a-few-good-articles-on-unicode/63502)

<div class="topic-metadata">

**Author:** [@Charles\_O\_Nutter](https://www.ruby-forum.com/u/Charles_O_Nutter)\
**Replies:** 3\
**Last updated:** [June 16, 2006, 3:12pm UTC](https://www.ruby-forum.com/t/a-few-good-articles-on-unicode/63502 "2006-06-16T15:12:45Z")

</div>

To add a little fuel to the discussion (and to help dispel some rumors, myths, and legends about Unicode) I present you with Tim B.'s 4-part trilogy of articles on Unicode, why it’s important, and why you should use …

---

## [Libraries and requiring other files](https://www.ruby-forum.com/t/libraries-and-requiring-other-files/63577)

<div class="topic-metadata">

**Author:** [@SSJSSSSrgen\_PSTjern](https://www.ruby-forum.com/u/SSJSSSSrgen_PSTjern)\
**Replies:** 2\
**Last updated:** [June 16, 2006, 2:31pm UTC](https://www.ruby-forum.com/t/libraries-and-requiring-other-files/63577 "2006-06-16T14:31:34Z")

</div>

Hi! I’ve written a library (for the sake of this email, let’s call it Mylib). The directory structure for it is like this: lib/ |- mylib/ | |- bar.rb | - foo.rb | - mylib.rb Now, in the applications, I d…

---

## [\[ADV\] Ruby / RoR Training Camp, Pune (India)](https://www.ruby-forum.com/t/adv-ruby-ror-training-camp-pune-india/63590)

<div class="topic-metadata">

**Author:** [@dibya](https://www.ruby-forum.com/u/dibya)\
**Replies:** 0\
**Last updated:** [June 16, 2006, 2:24pm UTC](https://www.ruby-forum.com/t/adv-ruby-ror-training-camp-pune-india/63590 "2006-06-16T14:24:26Z")

</div>

Hello, Reevik Technologies Pvt. Ltd. will be conducting a 5-day training camp on Ruby and Ruby on Rails at Pune,India. Seating is limited to 15 people. Seat allocation will be strictly on a first-come-first-serve bas…

---

## [Fastcgi debugging](https://www.ruby-forum.com/t/fastcgi-debugging/63583)

<div class="topic-metadata">

**Author:** [@tma](https://www.ruby-forum.com/u/tma)\
**Replies:** 0\
**Last updated:** [June 16, 2006, 12:45pm UTC](https://www.ruby-forum.com/t/fastcgi-debugging/63583 "2006-06-16T12:45:17Z")

</div>

I’m struggling with debugging my fcgi script. Past experience with Perl says if you want to see the script run you just run it on the command line and you can see the STDOUT and STDERR right there in front of you. Un…

---

## [Best way for ruby to query subversion](https://www.ruby-forum.com/t/best-way-for-ruby-to-query-subversion/63257)

<div class="topic-metadata">

**Author:** [@tobycatlin](https://www.ruby-forum.com/u/tobycatlin)\
**Replies:** 3\
**Last updated:** [June 16, 2006, 10:13am UTC](https://www.ruby-forum.com/t/best-way-for-ruby-to-query-subversion/63257 "2006-06-16T10:13:54Z")

</div>

Hello everybody, I am writing a script to list files that are in a subversion repository. I am only spiking at the moment but am having trouble. Basically i want to execute the svn command “svn list svn://ci.firstcon…

---

## [Where's DHH's slides on new CRUD presented at RubyKaigi2006?](https://www.ruby-forum.com/t/wheres-dhhs-slides-on-new-crud-presented-at-rubykaigi2006/63563)

<div class="topic-metadata">

**Author:** [@Gyoung-Yoon\_N](https://www.ruby-forum.com/u/Gyoung-Yoon_N)\
**Replies:** 0\
**Last updated:** [June 16, 2006, 9:14am UTC](https://www.ruby-forum.com/t/wheres-dhhs-slides-on-new-crud-presented-at-rubykaigi2006/63563 "2006-06-16T09:14:47Z")

</div>

Anxiously finding it…

---

## [Does each over an array bring a counter/index with it?](https://www.ruby-forum.com/t/does-each-over-an-array-bring-a-counter-index-with-it/63461)

<div class="topic-metadata">

**Author:** [@dmorin](https://www.ruby-forum.com/u/dmorin)\
**Replies:** 12\
**Last updated:** [June 16, 2006, 7:37am UTC](https://www.ruby-forum.com/t/does-each-over-an-array-bring-a-counter-index-with-it/63461 "2006-06-16T07:37:56Z")

</div>

If I’m "each"ing over an array, is there a built-in way to get the numeric index of the item that I’m on, or do I have to increment my own counter variable? I saw each\_with\_index but that seems to be for Hash, not Ar…

---

## [Newbie program](https://www.ruby-forum.com/t/newbie-program/95846)

<div class="topic-metadata">

**Author:** [@Logesh\_Pillay](https://www.ruby-forum.com/u/Logesh_Pillay)\
**Replies:** 3\
**Last updated:** [June 16, 2006, 3:49am UTC](https://www.ruby-forum.com/t/newbie-program/95846 "2006-06-16T03:49:39Z")

</div>

I discovered Ruby this week. I was amazed at how easy it was to program in it without a book or any real manual. I’ve written the following program. It looks too much like the python original to be good idiomatic r…

---

## [Using MSScriptControl with Rubyscript](https://www.ruby-forum.com/t/using-msscriptcontrol-with-rubyscript/63240)

<div class="topic-metadata">

**Author:** [@wkc](https://www.ruby-forum.com/u/wkc)\
**Replies:** 3\
**Last updated:** [June 16, 2006, 3:40am UTC](https://www.ruby-forum.com/t/using-msscriptcontrol-with-rubyscript/63240 "2006-06-16T03:40:11Z")

</div>

I am attempting to use the MSScriptcontrol with rubyscript: objShell = WIN32OLE.new("WScript.Shell") com1 = WIN32OLE.new('comobject.name') script = WIN32OLE.new("MSScriptControl.ScriptControl") script.language = "RubyS…

---

## [Running Coach (#82)](https://www.ruby-forum.com/t/running-coach-82/62922)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 7\
**Last updated:** [June 16, 2006, 1:49am UTC](https://www.ruby-forum.com/t/running-coach-82/62922 "2006-06-16T01:49:54Z")

</div>

The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. by submitting ideas as often as you can: …

---

## [Web development w/ ruby](https://www.ruby-forum.com/t/web-development-w-ruby/48331)

<div class="topic-metadata">

**Author:** [@cameron.matheson](https://www.ruby-forum.com/u/cameron.matheson)\
**Replies:** 23\
**Last updated:** [June 16, 2006, 12:23am UTC](https://www.ruby-forum.com/t/web-development-w-ruby/48331 "2006-06-16T00:23:02Z")

</div>

Hi guys, I need to make some simple web-pages at work for internal use (changing svn password, modifying postfix email-aliases, etc). I’d like to use ruby for this. I haven’t really done anything w/ web-development…

---

## [Running applications installed from gems](https://www.ruby-forum.com/t/running-applications-installed-from-gems/63421)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 17\
**Last updated:** [June 15, 2006, 10:49pm UTC](https://www.ruby-forum.com/t/running-applications-installed-from-gems/63421 "2006-06-15T22:49:28Z")

</div>

I suppose rubygems is most often used for packaging libraries, but it can also be used to package applications. I think it would be convenient if something like this were supported. gem run minesweeper Is this being …

---

## [Getting Net/SMTP to work for me](https://www.ruby-forum.com/t/getting-net-smtp-to-work-for-me/63491)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 2\
**Last updated:** [June 15, 2006, 10:25pm UTC](https://www.ruby-forum.com/t/getting-net-smtp-to-work-for-me/63491 "2006-06-15T22:25:08Z")

</div>

I’ve managed to get a simple mail message sent to myself, but, it leaves a lot to be desired. I get an e-mail from my server, to me, but, there’s no body to the mail, even though I created some message text in a “mess…

---

## [Help with SOAP4R and a simple complex type](https://www.ruby-forum.com/t/help-with-soap4r-and-a-simple-complex-type/63509)

<div class="topic-metadata">

**Author:** [@fxn](https://www.ruby-forum.com/u/fxn)\
**Replies:** 1\
**Last updated:** [June 15, 2006, 9:57pm UTC](https://www.ruby-forum.com/t/help-with-soap4r-and-a-simple-complex-type/63509 "2006-06-15T21:57:03Z")

</div>

I am trying to do a remote call with SOAP4R (loading a WSDL), the signature has a parameter of this complex type Passing a Ruby array of strings is not working. I am not 10…

---

## [Forcing some code to run at the end of tests](https://www.ruby-forum.com/t/forcing-some-code-to-run-at-the-end-of-tests/60450)

<div class="topic-metadata">

**Author:** [@Sy\_Ali](https://www.ruby-forum.com/u/Sy_Ali)\
**Replies:** 40\
**Last updated:** [June 15, 2006, 8:29pm UTC](https://www.ruby-forum.com/t/forcing-some-code-to-run-at-the-end-of-tests/60450 "2006-06-15T20:29:38Z")

</div>

I’m playing with some test scripts, and I cannot for the life of me ensure that a block of code is run after every test is run. I can think of some ugly ways to do it… but is there an elegant way which I missed?

---

## [Stdlib logger thread safe?](https://www.ruby-forum.com/t/stdlib-logger-thread-safe/63483)

<div class="topic-metadata">

**Author:** [@ezra\_z](https://www.ruby-forum.com/u/ezra_z)\
**Replies:** 2\
**Last updated:** [June 15, 2006, 8:04pm UTC](https://www.ruby-forum.com/t/stdlib-logger-thread-safe/63483 "2006-06-15T20:04:21Z")

</div>

Hi Friends- Is the Logger class in the stdlib thread safe? If I have a multi threaded application that needs to log stuff from multiple threads do I need a mutex around logger access? Thanks -Ezra

---

## [Comp.lang.ruby FAQ](https://www.ruby-forum.com/t/comp-lang-ruby-faq/102854)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [June 15, 2006, 7:31pm UTC](https://www.ruby-forum.com/t/comp-lang-ruby-faq/102854 "2006-06-15T19:31:57Z")

</div>

RUBY NEWSGROUP FAQ – Welcome to comp.lang.ruby! (Revised 2005-4-14) This FAQ contains information for those who want to: learn more about Ruby, and want to post to comp.lang.ruby or to the ruby-lang mail list, or wan…

---

## [XML/RSS generation](https://www.ruby-forum.com/t/xml-rss-generation/63499)

<div class="topic-metadata">

**Author:** [@Chris\_Watt](https://www.ruby-forum.com/u/Chris_Watt)\
**Replies:** 3\
**Last updated:** [June 15, 2006, 7:12pm UTC](https://www.ruby-forum.com/t/xml-rss-generation/63499 "2006-06-15T19:12:49Z")

</div>

Hi guys, Can anyone point em in the direction of a good tutorial/manual for creating xml files from within ruby? What I want to do is take a bunch of information and output it into a format such as: \<post title="My …

---

## [Ruby folk in SW Florida](https://www.ruby-forum.com/t/ruby-folk-in-sw-florida/63501)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 0\
**Last updated:** [June 15, 2006, 6:16pm UTC](https://www.ruby-forum.com/t/ruby-folk-in-sw-florida/63501 "2006-06-15T18:16:21Z")

</div>

A co-worker of mine is out in Naples Florida for a couple of months, and is looking for a (more or less) local Ruby Brigade to hack with. Any Ruby hackers in south-western Florida?

---

## [Querying for the OS for the list of active processes](https://www.ruby-forum.com/t/querying-for-the-os-for-the-list-of-active-processes/63482)

<div class="topic-metadata">

**Author:** [@digitalpodcast](https://www.ruby-forum.com/u/digitalpodcast)\
**Replies:** 2\
**Last updated:** [June 15, 2006, 5:43pm UTC](https://www.ruby-forum.com/t/querying-for-the-os-for-the-list-of-active-processes/63482 "2006-06-15T17:43:06Z")

</div>

Hi guys, I have a question. Under Linux I know I can get information about active processes by querying the /proc/PID/stat files. But I need this for a cross-platform script, and I have no idea on how to do it in wi…

---

## [Re: A plan for another unicode string hack](https://www.ruby-forum.com/t/re-a-plan-for-another-unicode-string-hack/63401)

<div class="topic-metadata">

**Author:** [@daveh](https://www.ruby-forum.com/u/daveh)\
**Replies:** 12\
**Last updated:** [June 15, 2006, 5:33pm UTC](https://www.ruby-forum.com/t/re-a-plan-for-another-unicode-string-hack/63401 "2006-06-15T17:33:23Z")

</div>

On Jun 14, 2006, at 9:17, Austin Z. wrote: Yes, I undertstand. Making #size and #length return different values is a mistake. Without referring to documentation, how would you know which returns the number of characte…

---

## [A very basic question](https://www.ruby-forum.com/t/a-very-basic-question/63453)

<div class="topic-metadata">

**Author:** [@Tanushree\_B](https://www.ruby-forum.com/u/Tanushree_B)\
**Replies:** 7\
**Last updated:** [June 15, 2006, 5:20pm UTC](https://www.ruby-forum.com/t/a-very-basic-question/63453 "2006-06-15T17:20:24Z")

</div>

Hi…plz reply to this very basic question. What is the syntax(function) for taking user input(numbers not strings ) in ruby. Thanks in advance. Tanushree

---

## [Running Coach (#82)](https://www.ruby-forum.com/t/running-coach-82/95840)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 0\
**Last updated:** [June 15, 2006, 3:48pm UTC](https://www.ruby-forum.com/t/running-coach-82/95840 "2006-06-15T15:48:45Z")

</div>

This quiz turns out to be a little bit of work, if you want to get some decent feedback to the user. Adam S. hammered out a reasonably complete solution though, so let’s have a look at it: $CheerThreshold = 6 #de…

---

## [Rubyrss-1.0](https://www.ruby-forum.com/t/rubyrss-1-0/95698)

<div class="topic-metadata">

**Author:** [@sergey\_t](https://www.ruby-forum.com/u/sergey_t)\
**Replies:** 9\
**Last updated:** [June 15, 2006, 2:18pm UTC](https://www.ruby-forum.com/t/rubyrss-1-0/95698 "2006-06-15T14:18:28Z")

</div>

Dear Ruby community, I’m glad to announce initial release of RubyRSS tool. http://rubyforge.org/projects/rubyrss/ WHAT IS A RUBYRSS Elegant as Ruby RSS parser and generator intended to help you bring together Ruby a…

---

## [Table with pdfwriter](https://www.ruby-forum.com/t/table-with-pdfwriter/63441)

<div class="topic-metadata">

**Author:** [@tele](https://www.ruby-forum.com/u/tele)\
**Replies:** 1\
**Last updated:** [June 15, 2006, 2:15pm UTC](https://www.ruby-forum.com/t/table-with-pdfwriter/63441 "2006-06-15T14:15:01Z")

</div>

hi all, is there a way to do rowspan using table of pdfwriter? i need to create a table like below: +--------------------+ | MYTABLE | -\> tbl.columns\['MYTABLE'\] = PDF::SimpleTable::Column.new(“MYTABLE”) { |col| ±…

---

## [How to use unpacked GEMS](https://www.ruby-forum.com/t/how-to-use-unpacked-gems/63430)

<div class="topic-metadata">

**Author:** [@liquid](https://www.ruby-forum.com/u/liquid)\
**Replies:** 4\
**Last updated:** [June 15, 2006, 2:00pm UTC](https://www.ruby-forum.com/t/how-to-use-unpacked-gems/63430 "2006-06-15T14:00:55Z")

</div>

I have discovered the command unpack for gems. This is very conveinent since I cannot get onto the net at work where I want to install some gems. Once I have unpacked them, what do I do with them?

---

## [Convert](https://www.ruby-forum.com/t/convert/95833)

<div class="topic-metadata">

**Author:** [@joakim](https://www.ruby-forum.com/u/joakim)\
**Replies:** 4\
**Last updated:** [June 15, 2006, 1:16pm UTC](https://www.ruby-forum.com/t/convert/95833 "2006-06-15T13:16:13Z")

</div>

Hello I wonder if there is a simple way to convert all keys in a Hash to member variables in a Class without knowing the key names in the Hash beforehand. example MyHash\[“ada”\] = “yes” MyHash\[“beda”\] = “no” MyHash…

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

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