# Ruby

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

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

---

## [ODBC Error: dyld: Symbol not found: \_SQLConfigDataSource](https://www.ruby-forum.com/t/odbc-error-dyld-symbol-not-found-sqlconfigdatasource/125883)

<div class="topic-metadata">

**Author:** [@Diego\_B](https://www.ruby-forum.com/u/Diego_B)\
**Replies:** 1\
**Last updated:** [January 17, 2008, 5:51pm UTC](https://www.ruby-forum.com/t/odbc-error-dyld-symbol-not-found-sqlconfigdatasource/125883 "2008-01-17T17:51:28Z")

</div>

Hi all, I am trying to use DBI to connect from OS X to a SQL Server Database running under Windows XP. When trying the following in irb: require ‘rubygems’ require ‘dbi’ DBI.connect(‘DBI:ODBC:MY\_DAN’, ‘sa’, ‘passwor…

---

## [Kill Process by it's name](https://www.ruby-forum.com/t/kill-process-by-its-name/126335)

<div class="topic-metadata">

**Author:** [@arevert](https://www.ruby-forum.com/u/arevert)\
**Replies:** 4\
**Last updated:** [January 17, 2008, 5:46pm UTC](https://www.ruby-forum.com/t/kill-process-by-its-name/126335 "2008-01-17T17:46:11Z")

</div>

Hi everybody, i’m working on Microsoft Windows XP, and i want to make a program to kill windows process by the name of the process, not by the PID, like EXCEL.EXE to kill microsoft excel or IEXPLORE.EXE to kill Intern…

---

## [Fxruby gem problem](https://www.ruby-forum.com/t/fxruby-gem-problem/126152)

<div class="topic-metadata">

**Author:** [@tarazed](https://www.ruby-forum.com/u/tarazed)\
**Replies:** 9\
**Last updated:** [January 17, 2008, 5:08pm UTC](https://www.ruby-forum.com/t/fxruby-gem-problem/126152 "2008-01-17T17:08:00Z")

</div>

Dear ruby acolytes ruby 1.8.5 I am floundering here, again. Having more or less decided to switch from rubytk to fxruby I have installed FOX and the fxruby-1.4.7 gem in Mandriva 2007. The simple test program from D…

---

## [File upload works fine in FF, Crashes server in IE](https://www.ruby-forum.com/t/file-upload-works-fine-in-ff-crashes-server-in-ie/126284)

<div class="topic-metadata">

**Author:** [@sinaiman](https://www.ruby-forum.com/u/sinaiman)\
**Replies:** 1\
**Last updated:** [January 17, 2008, 4:53pm UTC](https://www.ruby-forum.com/t/file-upload-works-fine-in-ff-crashes-server-in-ie/126284 "2008-01-17T16:53:03Z")

</div>

I made a file upload system. It works perfectly in Firefox, with both large and small files (Tempfiles and StringIO) being copied into the appropriate server directory. The uploading works the same in IE too, for sma…

---

## [Ruby-oci8-1.0.0 rowid](https://www.ruby-forum.com/t/ruby-oci8-1-0-0-rowid/126123)

<div class="topic-metadata">

**Author:** [@Amos](https://www.ruby-forum.com/u/Amos)\
**Replies:** 1\
**Last updated:** [January 17, 2008, 4:44pm UTC](https://www.ruby-forum.com/t/ruby-oci8-1-0-0-rowid/126123 "2008-01-17T16:44:28Z")

</div>

I noticed this apparently unanswered thread: http://groups.google.com/group/comp.lang.ruby/browse\_frm/thread/2ae6af9717678d39/cf37b223d5f7231f It would seem that this is still a problem? I’m trying to port some old co…

---

## [How to force a copy over a read-only file](https://www.ruby-forum.com/t/how-to-force-a-copy-over-a-read-only-file/126049)

<div class="topic-metadata">

**Author:** [@martinos](https://www.ruby-forum.com/u/martinos)\
**Replies:** 2\
**Last updated:** [January 17, 2008, 3:51pm UTC](https://www.ruby-forum.com/t/how-to-force-a-copy-over-a-read-only-file/126049 "2008-01-17T15:51:33Z")

</div>

I want to copy a folder over an existing one. Some files are read-only. When I do it I get the following error: C:/Ruby/lib/ruby/1.8/fileutils.rb:1246:in \`initialize’: Permission denied - Folder2/./coco.txt (Errno::EA…

---

## [The encoding of StringIO.new](https://www.ruby-forum.com/t/the-encoding-of-stringio-new/126337)

<div class="topic-metadata">

**Author:** [@sheepman](https://www.ruby-forum.com/u/sheepman)\
**Replies:** 0\
**Last updated:** [January 17, 2008, 3:18pm UTC](https://www.ruby-forum.com/t/the-encoding-of-stringio-new/126337 "2008-01-17T15:18:02Z")

</div>

e$B$3$s$P$s$Oe(B sheepman e$B$G$9!#e(B e$B%9%/%j%W%H$G07$&J8;zNs$N%(%s%3!\<%G%#%s%0$Oe(B default\_external e$B$r2\>Dj$9$k$3$H$,e(B e$BB?$$$G$7$g$&!#$J$N$G0z?t$J$7$Ne(B StringIO.new e$B$,JV$9J8;zNs$N%(%s%3!\<%G%#%s%0$be(…

---

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

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 3\
**Last updated:** [January 17, 2008, 3:09pm UTC](https://www.ruby-forum.com/t/ruby-books/126259 "2008-01-17T15:09:11Z")

</div>

I was just wondering if anybody has a Ruby book that deals with strictly Ruby and how to program in the language. Perferably a book that has good examples and one where some kind of good size project is tackled to show …

---

## [Foxit ole object](https://www.ruby-forum.com/t/foxit-ole-object/126329)

<div class="topic-metadata">

**Author:** [@flamingflamingo](https://www.ruby-forum.com/u/flamingflamingo)\
**Replies:** 0\
**Last updated:** [January 17, 2008, 2:42pm UTC](https://www.ruby-forum.com/t/foxit-ole-object/126329 "2008-01-17T14:42:55Z")

</div>

Hi all. I’m looking for a way to make an ole object for Foxit (free pdf reader). Has anyone even done this befor? oFX = WIN32OLE.new(‘Foxit.App’) doesn’t work… thanks for your help. Cheers, Flaming F.

---

## [Regular expression](https://www.ruby-forum.com/t/regular-expression/126235)

<div class="topic-metadata">

**Author:** [@johnsmith](https://www.ruby-forum.com/u/johnsmith)\
**Replies:** 10\
**Last updated:** [January 17, 2008, 1:56pm UTC](https://www.ruby-forum.com/t/regular-expression/126235 "2008-01-17T13:56:08Z")

</div>

hi there i wanting to write a regular expression which matches words which contain the vowels \[aeiou\] in alphabetical order im not sure where to start so any help would be greatly appreciated thans

---

## [XML-RPC with client certificate](https://www.ruby-forum.com/t/xml-rpc-with-client-certificate/126323)

<div class="topic-metadata">

**Author:** [@sergio](https://www.ruby-forum.com/u/sergio)\
**Replies:** 0\
**Last updated:** [January 17, 2008, 1:00pm UTC](https://www.ruby-forum.com/t/xml-rpc-with-client-certificate/126323 "2008-01-17T13:00:45Z")

</div>

Hi I am struggling with the standard xmlrpc library and cannot figure out how to configure an XMLRPC::Client in order to use a SSL Client Certificate. Can somebody provide me with some sample code that would help me …

---

## [From "int cfunc(char \*data,int \*num) " how can I get the value of 'num' in ruby/dl](https://www.ruby-forum.com/t/from-int-cfunc-char-data-int-num-how-can-i-get-the-value-of-num-in-ruby-dl/126320)

<div class="topic-metadata">

**Author:** [@bbmerong](https://www.ruby-forum.com/u/bbmerong)\
**Replies:** 0\
**Last updated:** [January 17, 2008, 12:46pm UTC](https://www.ruby-forum.com/t/from-int-cfunc-char-data-int-num-how-can-i-get-the-value-of-num-in-ruby-dl/126320 "2008-01-17T12:46:34Z")

</div>

I have a question about “ruby/dl”. I define the function in “ruby/dl” like the belows require ‘dl’ LIB=DL.dlopen(‘libfunc.dll’) cfunc=LIB\[‘cfunc’,‘ISi’\] # int cfunc(char \*data,int \*num) After typing in irb, I typed…

---

## [TMail 1.2.1](https://www.ruby-forum.com/t/tmail-1-2-1/125698)

<div class="topic-metadata">

**Author:** [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Replies:** 10\
**Last updated:** [January 17, 2008, 11:55am UTC](https://www.ruby-forum.com/t/tmail-1-2-1/125698 "2008-01-17T11:55:42Z")

</div>

TMail is The Mail Handling Library for Ruby! TMail is the Ruby Mail handler used in the Ruby on Rails and Nitro web frame works as well as many others (now including, the Ruby Talk mail gateway!). TMail is now a gem…

---

## [Iterating through the registry](https://www.ruby-forum.com/t/iterating-through-the-registry/126299)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 3\
**Last updated:** [January 17, 2008, 10:17am UTC](https://www.ruby-forum.com/t/iterating-through-the-registry/126299 "2008-01-17T10:17:30Z")

</div>

I want to iterate through the registry, getting results similar to “reg query”; what can I do with the “do |reg|”, it seems that I need to pass something through the “chute”: C:\\code\\reg\> C:\\code\\reg\>type reg.rb req…

---

## [1.9.0 $B$r%3%s%Q%$%k$7$F$\_$?(B](https://www.ruby-forum.com/t/1-9-0-b-r-3-s-q-k-7-f-b/126199)

<div class="topic-metadata">

**Author:** [@Shin-ichiro\_HARA](https://www.ruby-forum.com/u/Shin-ichiro_HARA)\
**Replies:** 2\
**Last updated:** [January 17, 2008, 8:39am UTC](https://www.ruby-forum.com/t/1-9-0-b-r-3-s-q-k-7-f-b/126199 "2008-01-17T08:39:56Z")

</div>

e$B86$G$9!#e(B 1.9.0.0 e$B$r%3%s%Q%$%k$7$F$\_$^$7$?!#e(B ruby e$B$r%3%s%Q%$%k$9$k$J$s$F2?G/$V$j$+$7$i!#$:$$$V$s;~4V$,$+$+$k$N$G!"$S$C$/$je(B e$B$7$^$7$?!#%^%7%s$NB.EY$N8~\>e$h$j!"%Q%C%1!\<%8$NBg$-$5$NA}2C$NJ}$,\>!$C$F$$$…

---

## ["int cfunc(void) " how can I call this function with "ruby/dl'](https://www.ruby-forum.com/t/int-cfunc-void-how-can-i-call-this-function-with-ruby-dl/126298)

<div class="topic-metadata">

**Author:** [@bbmerong](https://www.ruby-forum.com/u/bbmerong)\
**Replies:** 0\
**Last updated:** [January 17, 2008, 5:41am UTC](https://www.ruby-forum.com/t/int-cfunc-void-how-can-i-call-this-function-with-ruby-dl/126298 "2008-01-17T05:41:49Z")

</div>

In ruby/dl (win32) I define the function like the belows. require ‘dl’ libc=DL.open(“libfunc.dll”) func=libc\[‘func\_test’,‘IO’\] # int func\_test(void); Then, I typed in irb like the belows. func.call() But the er…

---

## [Native threads in ruby](https://www.ruby-forum.com/t/native-threads-in-ruby/126211)

<div class="topic-metadata">

**Author:** [@rpflaum](https://www.ruby-forum.com/u/rpflaum)\
**Replies:** 6\
**Last updated:** [January 17, 2008, 2:18am UTC](https://www.ruby-forum.com/t/native-threads-in-ruby/126211 "2008-01-17T02:18:33Z")

</div>

Is there anyway possible, one can make use of native threads in Ruby? Maybe by interfacing with C or Java?

---

## [Problem with IPAddr](https://www.ruby-forum.com/t/problem-with-ipaddr/126189)

<div class="topic-metadata">

**Author:** [@roxah](https://www.ruby-forum.com/u/roxah)\
**Replies:** 7\
**Last updated:** [January 17, 2008, 1:01am UTC](https://www.ruby-forum.com/t/problem-with-ipaddr/126189 "2008-01-17T01:01:07Z")

</div>

Hello all, I’m having a problem with IPAddr, and I’m hoping someone can explain it to me. I’ve done the following test, and I get the results shown below. irb(main):001:0\> require ‘ipaddr’ =\> true irb(main):002:0\> …

---

## [IronRuby with Silverlight, already possible?](https://www.ruby-forum.com/t/ironruby-with-silverlight-already-possible/126202)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 3\
**Last updated:** [January 16, 2008, 11:46pm UTC](https://www.ruby-forum.com/t/ironruby-with-silverlight-already-possible/126202 "2008-01-16T23:46:03Z")

</div>

Hi, just curious here, and willing to try out things! Is there any way - even complicated - to code Silverlight bits with IronRuby today ? – Thibaut

---

## [Spatial search & search radius circumference with Geokit](https://www.ruby-forum.com/t/spatial-search-search-radius-circumference-with-geokit/124884)

<div class="topic-metadata">

**Author:** [@samuelzx](https://www.ruby-forum.com/u/samuelzx)\
**Replies:** 7\
**Last updated:** [January 16, 2008, 11:40pm UTC](https://www.ruby-forum.com/t/spatial-search-search-radius-circumference-with-geokit/124884 "2008-01-16T23:40:33Z")

</div>

I am using Geokit to search for points within X miles of a location. I would like to show this search region as a circular polygon in Google Maps. For this I need a number of points around the circle’s circumference. …

---

## [Zlib, hidden classes and modules](https://www.ruby-forum.com/t/zlib-hidden-classes-and-modules/126280)

<div class="topic-metadata">

**Author:** [@kryptonator](https://www.ruby-forum.com/u/kryptonator)\
**Replies:** 0\
**Last updated:** [January 16, 2008, 11:31pm UTC](https://www.ruby-forum.com/t/zlib-hidden-classes-and-modules/126280 "2008-01-16T23:31:28Z")

</div>

Hello, I am pretty new to ruby although I am a quick learner and have the benefit of help from a pretty experienced scripter, however with my tutor being abscent from the forum and IRC channels I think maybe it’s time…

---

## [Loading MIBS for Ruby SNMP](https://www.ruby-forum.com/t/loading-mibs-for-ruby-snmp/126261)

<div class="topic-metadata">

**Author:** [@jackster](https://www.ruby-forum.com/u/jackster)\
**Replies:** 2\
**Last updated:** [January 16, 2008, 11:22pm UTC](https://www.ruby-forum.com/t/loading-mibs-for-ruby-snmp/126261 "2008-01-16T23:22:17Z")

</div>

I’m finally able to recieve traps from my Cisco devices and access the variables from my script. I’m now at the point that I need the MIBs to decode the OIDs into messages that make sense. In the documentation provid…

---

## [Overridding A Method Via A Mixin](https://www.ruby-forum.com/t/overridding-a-method-via-a-mixin/126135)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 16\
**Last updated:** [January 16, 2008, 11:13pm UTC](https://www.ruby-forum.com/t/overridding-a-method-via-a-mixin/126135 "2008-01-16T23:13:31Z")

</div>

Hi Everyone, I believe one can add methods to a class by including a module but not override existing methods. Indeed Dr Nic said as much here: http://ruby.tie-rack.org/6/safely-overriding-method\_missing-in-a- class…

---

## ["Henceforth the world will be governed by the Anglo-Saxon peoples, who, in turn, are swayed by thei](https://www.ruby-forum.com/t/henceforth-the-world-will-be-governed-by-the-anglo-saxon-peoples-who-in-turn-are-swayed-by-thei/126254)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [January 16, 2008, 10:07pm UTC](https://www.ruby-forum.com/t/henceforth-the-world-will-be-governed-by-the-anglo-saxon-peoples-who-in-turn-are-swayed-by-thei/126254 "2008-01-16T22:07:07Z")

</div>

“Henceforth the world will be governed by the Anglo-Saxon peoples, who, in turn, are swayed by their Jewish elements”.

---

## [Littl' question about the build process](https://www.ruby-forum.com/t/littl-question-about-the-build-process/126086)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 26\
**Last updated:** [January 16, 2008, 9:59pm UTC](https://www.ruby-forum.com/t/littl-question-about-the-build-process/126086 "2008-01-16T21:59:03Z")

</div>

I need some clarifications for my readers: I believe we have three ways of compiling IronRuby today: through the rake compile task (is it the preferred way ?) through IronRuby.sln (for 2005) through Ruby.sln (for 2008…

---

## [How to get peeraddr](https://www.ruby-forum.com/t/how-to-get-peeraddr/126188)

<div class="topic-metadata">

**Author:** [@rookie](https://www.ruby-forum.com/u/rookie)\
**Replies:** 1\
**Last updated:** [January 16, 2008, 9:58pm UTC](https://www.ruby-forum.com/t/how-to-get-peeraddr/126188 "2008-01-16T21:58:24Z")

</div>

Hi. How can I get peeraddr (client hostname and ipaddress) in a simple server like the following? Thanks. #!/usr/bin/ruby --debug require ‘soap/rpc/standaloneServer’ PS = ‘passphrase’ class MyClass … end class…

---

## [Automatic conversion of bool to int](https://www.ruby-forum.com/t/automatic-conversion-of-bool-to-int/125720)

<div class="topic-metadata">

**Author:** [@editkid](https://www.ruby-forum.com/u/editkid)\
**Replies:** 3\
**Last updated:** [January 16, 2008, 9:49pm UTC](https://www.ruby-forum.com/t/automatic-conversion-of-bool-to-int/125720 "2008-01-16T21:49:57Z")

</div>

In irb we have: 1 + true =\> TypeError: true can’t be coerced into Fixnum In rbx we have: 1 + true =\> 2 There are the following methods for + in Fixnum: public static object Add(int self, int other) public stat…

---

## [Installing the openssl exntsion for ruby](https://www.ruby-forum.com/t/installing-the-openssl-exntsion-for-ruby/126164)

<div class="topic-metadata">

**Author:** [@zakufob](https://www.ruby-forum.com/u/zakufob)\
**Replies:** 1\
**Last updated:** [January 16, 2008, 9:41pm UTC](https://www.ruby-forum.com/t/installing-the-openssl-exntsion-for-ruby/126164 "2008-01-16T21:41:22Z")

</div>

Hi, Ruby-newbie here. I’ve exhausted google and I’ve yet to find a solution to this problem. I might be just reading the solutions wrong, but when I try to install the openssl extension for ruby (in order to use the …

---

## [RegexpBench 0.5.2 Released](https://www.ruby-forum.com/t/regexpbench-0-5-2-released/126180)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [January 16, 2008, 8:58pm UTC](https://www.ruby-forum.com/t/regexpbench-0-5-2-released/126180 "2008-01-16T20:58:55Z")

</div>

RegexpBench version 0.5.2 has been released! Interactive testing and experimentation with regular expressions. To start, type ‘regexp-bench’ First command: help. Current nicest feature: saving and restoring test stri…

---

## [MountainWest RubyConf 2008 speakers and registration](https://www.ruby-forum.com/t/mountainwest-rubyconf-2008-speakers-and-registration/126149)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 1\
**Last updated:** [January 16, 2008, 8:51pm UTC](https://www.ruby-forum.com/t/mountainwest-rubyconf-2008-speakers-and-registration/126149 "2008-01-16T20:51:49Z")

</div>

MountainWest Ruby, LLC is happy to announce that registration is open for MountainWest RubyConf 2008 (to be held Mar 28 and 29 in Salt Lake City, Utah). For just $100 you get 2 days of awesome Rubyness (2 keynotes, 1…

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

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