# Ruby

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

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

---

## [Run the program and return immediately](https://www.ruby-forum.com/t/run-the-program-and-return-immediately/129918)

<div class="topic-metadata">

**Author:** [@Victor\_SZverokS\_She](https://www.ruby-forum.com/u/Victor_SZverokS_She)\
**Replies:** 2\
**Last updated:** [February 22, 2008, 6:23pm UTC](https://www.ruby-forum.com/t/run-the-program-and-return-immediately/129918 "2008-02-22T18:23:20Z")

</div>

Hi all. The question first seemed simple for me, but after hour of manual-reading and googling I still have no answer. The question: on Windows, how do I run some program and return immediately? I mean, something l…

---

## [What does \*args do?](https://www.ruby-forum.com/t/what-does-args-do/129642)

<div class="topic-metadata">

**Author:** [@stedwick](https://www.ruby-forum.com/u/stedwick)\
**Replies:** 13\
**Last updated:** [February 22, 2008, 5:55pm UTC](https://www.ruby-forum.com/t/what-does-args-do/129642 "2008-02-22T17:55:39Z")

</div>

I sometimes see funcs declared with def fun (blah, \*args) What does the \*args do? Thanks!

---

## [Compare and find newer gems](https://www.ruby-forum.com/t/compare-and-find-newer-gems/129914)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 2\
**Last updated:** [February 22, 2008, 5:36pm UTC](https://www.ruby-forum.com/t/compare-and-find-newer-gems/129914 "2008-02-22T17:36:12Z")

</div>

hello is there a way to query gems and find if there are updates to the currently installed gems.

---

## [Problem when passing a VALUE as parameter](https://www.ruby-forum.com/t/problem-when-passing-a-value-as-parameter/129915)

<div class="topic-metadata">

**Author:** [@mag](https://www.ruby-forum.com/u/mag)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 5:30pm UTC](https://www.ruby-forum.com/t/problem-when-passing-a-value-as-parameter/129915 "2008-02-22T17:30:32Z")

</div>

Hi, I’m new to Ruby and I’m currently working on embedding Ruby-VTK within C++. Ruby-Vtk is a patch to add on VTK (Visualization ToolKit) to use from Ruby. I want to get a pointer from an VALUE object with the metho…

---

## [32bit vs 64bit vs UML performance](https://www.ruby-forum.com/t/32bit-vs-64bit-vs-uml-performance/129699)

<div class="topic-metadata">

**Author:** [@Lionel\_B](https://www.ruby-forum.com/u/Lionel_B)\
**Replies:** 16\
**Last updated:** [February 22, 2008, 4:14pm UTC](https://www.ruby-forum.com/t/32bit-vs-64bit-vs-uml-performance/129699 "2008-02-22T16:14:23Z")

</div>

I’ve run the QUIZ benchmark on several systems to check their relative performance and had quite a surprise. I’ll take Frank’s algorithm as reference for simplicity as it spends roughly the same time for each point di…

---

## [XMF 2.0 Open Source](https://www.ruby-forum.com/t/xmf-2-0-open-source/129903)

<div class="topic-metadata">

**Author:** [@Tony\_Clark](https://www.ruby-forum.com/u/Tony_Clark)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 4:09pm UTC](https://www.ruby-forum.com/t/xmf-2-0-open-source/129903 "2008-02-22T16:09:06Z")

</div>

XMF is a state of the art dynamic programming language that provides an excellent basis for the construction of a broad range of applications including: Data Intelligence, DSLs and Software and System modeling. XMF ha…

---

## [Require error in gems](https://www.ruby-forum.com/t/require-error-in-gems/129885)

<div class="topic-metadata">

**Author:** [@BENI](https://www.ruby-forum.com/u/BENI)\
**Replies:** 4\
**Last updated:** [February 22, 2008, 1:11pm UTC](https://www.ruby-forum.com/t/require-error-in-gems/129885 "2008-02-22T13:11:07Z")

</div>

I have installed rubyzip gems . I have it jolly well in C:\\ruby\\lib\\ruby\\gems\\1.8\\gems\\rubyzip-0.9.1 Now in irb i get C:\\ruby\>irb irb(main):001:0\> require ‘rubyzip’ LoadError: no such file to load – rubyzip from …

---

## [How to digitally sign the assemblies?](https://www.ruby-forum.com/t/how-to-digitally-sign-the-assemblies/129894)

<div class="topic-metadata">

**Author:** [@Fernando\_Correia](https://www.ruby-forum.com/u/Fernando_Correia)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 1:06pm UTC](https://www.ruby-forum.com/t/how-to-digitally-sign-the-assemblies/129894 "2008-02-22T13:06:56Z")

</div>

I want to try IronRuby on a project that has its assemblies signed. So, the IronRuby’s assemblies must be signed as well. I’ve tried with Visual Studio 2005 and 2008 to set the projects up for signing, and created t…

---

## [Web Development Project](https://www.ruby-forum.com/t/web-development-project/129707)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 4\
**Last updated:** [February 22, 2008, 10:31am UTC](https://www.ruby-forum.com/t/web-development-project/129707 "2008-02-22T10:31:28Z")

</div>

Hey guys, I am interested in knowing, what new Web D. projects you are doing, curious to know, what data base you use, and if you are using Linux or Windows platform. Also, will like to know, if there are any alterna…

---

## [Howto insert data into a database?](https://www.ruby-forum.com/t/howto-insert-data-into-a-database/126358)

<div class="topic-metadata">

**Author:** [@philpeterman](https://www.ruby-forum.com/u/philpeterman)\
**Replies:** 4\
**Last updated:** [February 22, 2008, 10:11am UTC](https://www.ruby-forum.com/t/howto-insert-data-into-a-database/126358 "2008-02-22T10:11:24Z")

</div>

Hi all, I can’t seem to figure this out and I would appreciate any help. I have a ruby script that I want to cron on a server. This script will scrape data from a website and then insert the data into a MySQL database…

---

## [Beginner help - txt dungeon](https://www.ruby-forum.com/t/beginner-help-txt-dungeon/128600)

<div class="topic-metadata">

**Author:** [@ezrick](https://www.ruby-forum.com/u/ezrick)\
**Replies:** 19\
**Last updated:** [February 22, 2008, 9:53am UTC](https://www.ruby-forum.com/t/beginner-help-txt-dungeon/128600 "2008-02-22T09:53:12Z")

</div>

Hi. I have tried to learn other programming languages before and ruby was the first one that really stuck. Anyways, I own both Prgramming Ruby & Beginning Ruby. The later has a tutorial for making a text dungeon. …

---

## [SIGTERM signal is ignored by a process run using Ruby](https://www.ruby-forum.com/t/sigterm-signal-is-ignored-by-a-process-run-using-ruby/121650)

<div class="topic-metadata">

**Author:** [@luca](https://www.ruby-forum.com/u/luca)\
**Replies:** 2\
**Last updated:** [February 22, 2008, 9:08am UTC](https://www.ruby-forum.com/t/sigterm-signal-is-ignored-by-a-process-run-using-ruby/121650 "2008-02-22T09:08:53Z")

</div>

Hello Everybody, I am using Ruby 1.8.5 in a Rails 1.2.5 environment. My code starts a dhcp-3.1.0 service taken from http://www.isc.org/products/DHCP Once started the dhcpd process cannot be stopped using the normal …

---

## [Unsubscribe confirmation request (ruby-talk ML)](https://www.ruby-forum.com/t/unsubscribe-confirmation-request-ruby-talk-ml/196600)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 7:39am UTC](https://www.ruby-forum.com/t/unsubscribe-confirmation-request-ruby-talk-ml/196600 "2008-02-22T07:39:29Z")

</div>

This email contains confidential information for the sole use of the intended recipient/s. If you are not the intended recipient, please contact the sender, delete this email and maintain the confidentiality of what …

---

## [Help - Linux?](https://www.ruby-forum.com/t/help-linux/129736)

<div class="topic-metadata">

**Author:** [@Knute\_Johnson](https://www.ruby-forum.com/u/Knute_Johnson)\
**Replies:** 10\
**Last updated:** [February 22, 2008, 6:04am UTC](https://www.ruby-forum.com/t/help-linux/129736 "2008-02-22T06:04:55Z")

</div>

Would somebody please try this on Linux for me. It works fine on Windows but hangs on Fedora. Thanks, #!/usr/bin/ruby require ‘net/ftp’ def getMetar(id) metar = Array.new i = 0 ftp = Net::FTP.new(‘tgftp.nws.noaa…

---

## [Interactive apps with Ruby](https://www.ruby-forum.com/t/interactive-apps-with-ruby/129863)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 5:01am UTC](https://www.ruby-forum.com/t/interactive-apps-with-ruby/129863 "2008-02-22T05:01:40Z")

</div>

Folks, I am trying to build an interactive test application. I would like to generate interactive commands to an existing server(ftpd) so commands like ftp 192.68.20.1 ace\>login: xxxx ace \>password : yyyy I should…

---

## [Unsubscribe confirmation request (ruby-talk ML)](https://www.ruby-forum.com/t/unsubscribe-confirmation-request-ruby-talk-ml/129861)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 4:59am UTC](https://www.ruby-forum.com/t/unsubscribe-confirmation-request-ruby-talk-ml/129861 "2008-02-22T04:59:20Z")

</div>

This email contains confidential information for the sole use of the intended recipient/s. If you are not the intended recipient, please contact the sender, delete this email and maintain the confidentiality of what …

---

## [Net::HTTP, Threads and AJAX](https://www.ruby-forum.com/t/net-http-threads-and-ajax/129860)

<div class="topic-metadata">

**Author:** [@skuunk](https://www.ruby-forum.com/u/skuunk)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 4:01am UTC](https://www.ruby-forum.com/t/net-http-threads-and-ajax/129860 "2008-02-22T04:01:18Z")

</div>

Hello, I was wondering if anyone had solved this issue before. Basically I am calling a 3rd party information service using Net::HTTP which I would like to proxy through my Rails app so that I can access it via an xm…

---

## [Character encodings differ: US-ASCII and dummy encoding](https://www.ruby-forum.com/t/character-encodings-differ-us-ascii-and-dummy-encoding/129807)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 6\
**Last updated:** [February 22, 2008, 3:41am UTC](https://www.ruby-forum.com/t/character-encodings-differ-us-ascii-and-dummy-encoding/129807 "2008-02-22T03:41:18Z")

</div>

e$B@\>;3OB9-$G$9!#e(B irbe$B\>e$Ge(B"".force\_encoding(“iso-2022-jp”)e$B$,e(B ArgumentError: character encodings differ: US-ASCII and ISO-2022-JP e$B$Ge(BMaybe IRB bug!!e$B$H$J$k860x$rD4$Y$F$\_$?$H$3$m!"e(Bdummy encoding…

---

## [Efficient file downloading](https://www.ruby-forum.com/t/efficient-file-downloading/129855)

<div class="topic-metadata">

**Author:** [@kyleh](https://www.ruby-forum.com/u/kyleh)\
**Replies:** 4\
**Last updated:** [February 22, 2008, 3:34am UTC](https://www.ruby-forum.com/t/efficient-file-downloading/129855 "2008-02-22T03:34:24Z")

</div>

Hello, I’m using open-uri to download files using a buffer. It seems very inefficient in terms of resource usage (CPU is ~10-20% in usage). If possible, I’d like some suggestions for downloading a file which names th…

---

## [Empty\_string.ascii\_only?](https://www.ruby-forum.com/t/empty-string-ascii-only/129810)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 1\
**Last updated:** [February 22, 2008, 3:14am UTC](https://www.ruby-forum.com/t/empty-string-ascii-only/129810 "2008-02-22T03:14:16Z")

</div>

e$B@\>;3OB9-$G$9!#e(B e$B6uJ8;zNs$Ne(B ascii\_only? e$B$,e(B false e$B$K$J$k$3$H$,$"$k$N$Oe(B e$B0U?^$7$F$$$k$N$G$7$g$&$+e(B? % ruby-trunk -ve ‘p(("\\u3042"\*0).ascii\_only?)’ ruby 1.9.0 (2008-02-20 revision 15565) \[i686-…

---

## [Create record into Oracle DB](https://www.ruby-forum.com/t/create-record-into-oracle-db/129457)

<div class="topic-metadata">

**Author:** [@sad](https://www.ruby-forum.com/u/sad)\
**Replies:** 7\
**Last updated:** [February 22, 2008, 2:44am UTC](https://www.ruby-forum.com/t/create-record-into-oracle-db/129457 "2008-02-22T02:44:57Z")

</div>

Hello all, there is part of my code : folder = Folder1.new() folder.ID = @id folder.CLIENT\_NAME = @un folder.TREE\_NAME = @tn folder.save() when i test it on mySql all work right, but when i try it with Oracle i go…

---

## [Creme Rappel](https://www.ruby-forum.com/t/creme-rappel/129849)

<div class="topic-metadata">

**Author:** [@Hans\_F](https://www.ruby-forum.com/u/Hans_F)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 2:05am UTC](https://www.ruby-forum.com/t/creme-rappel/129849 "2008-02-22T02:05:39Z")

</div>

It reminds you to do things, but it won’t nag you. It uses Growl (so yes, OS X-specific for now, until someone bothers to patch it for Mumbles or libnotify). Its timespecs are like at(1)s but better. It doesn’t depend…

---

## [Shadowing outer local variable](https://www.ruby-forum.com/t/shadowing-outer-local-variable/129792)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [February 22, 2008, 1:27am UTC](https://www.ruby-forum.com/t/shadowing-outer-local-variable/129792 "2008-02-22T01:27:29Z")

</div>

e$B$k$S$-$A$G$9!#e(B e$B7Y9p!Ve(Bshadowing outer local variablee$B!W$O$J$/$9$Y$-$@$H;W$$$^$9!#e(B e$B$=$b$=$b860x$Oe(B1.8e$B$^$G$N%V%m%C%/0z?t$N;EMM$,$R$I$+$C$?$+$i$G$9!#e(B e$B7Y9p$r\>C$9$K$Oe(B1.8e$B$^$GF1MM$?$H$(e(…

---

## [Kernel#putc vs. $stdout#putc](https://www.ruby-forum.com/t/kernel-putc-vs-stdout-putc/129688)

<div class="topic-metadata">

**Author:** [@gordon321](https://www.ruby-forum.com/u/gordon321)\
**Replies:** 3\
**Last updated:** [February 22, 2008, 12:21am UTC](https://www.ruby-forum.com/t/kernel-putc-vs-stdout-putc/129688 "2008-02-22T00:21:05Z")

</div>

I was under the impression that Kernel#putc was an alias, or wrapper around $stdout#putc, but I was mistaken. It turns out they’re both implemented separately in C, and both pass to $stdout.write. I’m trying to rede…

---

## [More efficient comparing](https://www.ruby-forum.com/t/more-efficient-comparing/129831)

<div class="topic-metadata">

**Author:** [@kyleh](https://www.ruby-forum.com/u/kyleh)\
**Replies:** 3\
**Last updated:** [February 22, 2008, 12:14am UTC](https://www.ruby-forum.com/t/more-efficient-comparing/129831 "2008-02-22T00:14:14Z")

</div>

Hello, I’ve got an array that holds urls. Example Element: http://bla.random.com/bla.jpg. I also have images in a directory. I’d like my script to compare the bla.jpg from the URL with all files in a directory to mak…

---

## [Where does instance\_eval \_magically\_ set the variable to?](https://www.ruby-forum.com/t/where-does-instance-eval-magically-set-the-variable-to/129822)

<div class="topic-metadata">

**Author:** [@aginghipster](https://www.ruby-forum.com/u/aginghipster)\
**Replies:** 12\
**Last updated:** [February 22, 2008, 12:06am UTC](https://www.ruby-forum.com/t/where-does-instance-eval-magically-set-the-variable-to/129822 "2008-02-22T00:06:23Z")

</div>

Hi, I use the instance\_eval to merge template file and parameter files. cat param.txt name=“John” cat tmpl.txt my name is: \<%= name %\> cat template.rb #!/usr/bin/env ruby require ‘erb’ instance\_eval(File.rea…

---

## [GC error?](https://www.ruby-forum.com/t/gc-error/129301)

<div class="topic-metadata">

**Author:** [@piotrs](https://www.ruby-forum.com/u/piotrs)\
**Replies:** 25\
**Last updated:** [February 21, 2008, 10:38pm UTC](https://www.ruby-forum.com/t/gc-error/129301 "2008-02-21T22:38:01Z")

</div>

Run this program and observe memory usage. def leaker a = “” 10000.times do a = a + “buble” end a = “” end loop do leaker end

---

## [FW: Our team is growing!](https://www.ruby-forum.com/t/fw-our-team-is-growing/129829)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 0\
**Last updated:** [February 21, 2008, 10:14pm UTC](https://www.ruby-forum.com/t/fw-our-team-is-growing/129829 "2008-02-21T22:14:18Z")

</div>

FYI, we’re hiring! See below. From: removed\_email\_address@domain.invalid \[mailto:removed\_email\_address@domain.invalid\] On Behalf Of Dino Viehland Sent: Wednesday, February 20, 2008 11:57 AM To: Discussion of IronPyth…

---

## [Rubylexer 0.7.0 Released](https://www.ruby-forum.com/t/rubylexer-0-7-0-released/129826)

<div class="topic-metadata">

**Author:** [@pandemic](https://www.ruby-forum.com/u/pandemic)\
**Replies:** 0\
**Last updated:** [February 21, 2008, 10:11pm UTC](https://www.ruby-forum.com/t/rubylexer-0-7-0-released/129826 "2008-02-21T22:11:21Z")

</div>

rubylexer version 0.7.0 has been released! http://rubyforge.org/projects/rubylexer RubyLexer is a lexer library for Ruby, written in Ruby. Rubylexer is meant as a lexer for Ruby that’s complete and correct; all legal…

---

## [Win32ole, how to detect docfile is already opened?](https://www.ruby-forum.com/t/win32ole-how-to-detect-docfile-is-already-opened/129708)

<div class="topic-metadata">

**Author:** [@Gilbert\_R](https://www.ruby-forum.com/u/Gilbert_R)\
**Replies:** 1\
**Last updated:** [February 21, 2008, 8:46pm UTC](https://www.ruby-forum.com/t/win32ole-how-to-detect-docfile-is-already-opened/129708 "2008-02-21T20:46:08Z")

</div>

Hi, running ruby 1.8.4 on Win2000, some word scripting with Office 2003 require ‘win32ole’ word = WIN32OLE.new(‘Word.Application’) doc = word.Documents.Open(‘c:/foobar.doc’) Question = i want to do a text search a…

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

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