# Ruby

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

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

---

## [Re: Trying to download files using WWW::Mechanize](https://www.ruby-forum.com/t/re-trying-to-download-files-using-www-mechanize/95381)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [May 30, 2006, 9:00pm UTC](https://www.ruby-forum.com/t/re-trying-to-download-files-using-www-mechanize/95381 "2006-05-30T21:00:52Z")

</div>

require ‘mechanize’ } } p bodies –Aaron That will work, thanks! Dan This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication …

---

## [Best practices for library development?](https://www.ruby-forum.com/t/best-practices-for-library-development/95363)

<div class="topic-metadata">

**Author:** [@victor123789](https://www.ruby-forum.com/u/victor123789)\
**Replies:** 6\
**Last updated:** [May 30, 2006, 7:09pm UTC](https://www.ruby-forum.com/t/best-practices-for-library-development/95363 "2006-05-30T19:09:08Z")

</div>

Hi all. I’d like somebody to share their experience in organizing library development, including: test-driven development code coverage analysis (through rcov?), which would be automathically performed after each te…

---

## [Newbie Question](https://www.ruby-forum.com/t/newbie-question/95368)

<div class="topic-metadata">

**Author:** [@falcon](https://www.ruby-forum.com/u/falcon)\
**Replies:** 4\
**Last updated:** [May 30, 2006, 6:44pm UTC](https://www.ruby-forum.com/t/newbie-question/95368 "2006-05-30T18:44:00Z")

</div>

All, I was URL’d to this place after asking a XML question. Is this the right place for New to Ruby ? What does a basic Ruby Application look like ? The only hands on expirience with making a GUI was a trial phase w…

---

## [Optparse "invalid option" problem](https://www.ruby-forum.com/t/optparse-invalid-option-problem/61997)

<div class="topic-metadata">

**Author:** [@mrkohrea](https://www.ruby-forum.com/u/mrkohrea)\
**Replies:** 4\
**Last updated:** [May 30, 2006, 6:31pm UTC](https://www.ruby-forum.com/t/optparse-invalid-option-problem/61997 "2006-05-30T18:31:21Z")

</div>

Hi, ‘optparse’ seems to continue parsing even after the first invalid argument. example.rb: require ‘optparse’ ARGV.options do |opts| opts.separator “Required:” opts.on("-f", “–ffmpeg PATH”, String, “ffmpeg’s pat…

---

## [Re: Pathname](https://www.ruby-forum.com/t/re-pathname/95370)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [May 30, 2006, 6:24pm UTC](https://www.ruby-forum.com/t/re-pathname/95370 "2006-05-30T18:24:45Z")

</div>

Daniel B. wrote: way to define % literals in Ruby 1.8 afaik. I’m not sure about 1.9. module Kernel def pn(s) Pathname.new(s) end end pn %{a/b} It almost looks like a % literal. Hm, I suppose I could do that…

---

## [Problem installing ruby in a local (home) directory](https://www.ruby-forum.com/t/problem-installing-ruby-in-a-local-home-directory/61992)

<div class="topic-metadata">

**Author:** [@Jonathan\_M\_Brooks\_J](https://www.ruby-forum.com/u/Jonathan_M_Brooks_J)\
**Replies:** 1\
**Last updated:** [May 30, 2006, 6:18pm UTC](https://www.ruby-forum.com/t/problem-installing-ruby-in-a-local-home-directory/61992 "2006-05-30T18:18:27Z")

</div>

“make test” succeeds, but then I get the following error on “make install” (the install prefix is my home directory): ./miniruby ./ext/extmk.rb --dest-dir="" --make=“make” --mflags="" –make-flags="" --extout=".ext" -…

---

## [Sybase ASE / Active Record](https://www.ruby-forum.com/t/sybase-ase-active-record/61994)

<div class="topic-metadata">

**Author:** [@stuart\_holden](https://www.ruby-forum.com/u/stuart_holden)\
**Replies:** 0\
**Last updated:** [May 30, 2006, 5:44pm UTC](https://www.ruby-forum.com/t/sybase-ase-active-record/61994 "2006-05-30T17:44:07Z")

</div>

Hi, Does anybody have any experience getting Ruby to talk to a Sybase ASE database server? I’m trying to get Active Record working against a Sybase ASE 12.5 database, but can’t figure out what connection information …

---

## [Exception handling](https://www.ruby-forum.com/t/exception-handling/61985)

<div class="topic-metadata">

**Author:** [@nigelh](https://www.ruby-forum.com/u/nigelh)\
**Replies:** 4\
**Last updated:** [May 30, 2006, 4:27pm UTC](https://www.ruby-forum.com/t/exception-handling/61985 "2006-05-30T16:27:01Z")

</div>

I have a(nother) question concerning exception handling. My code retrieves stock data from yahoo like this. require ‘yahoofinance’ tickers = File.new("/home/nigels/financials/symbols") tickers.each\_line do |ticker| …

---

## [Error handling and recovery](https://www.ruby-forum.com/t/error-handling-and-recovery/61976)

<div class="topic-metadata">

**Author:** [@pkspence](https://www.ruby-forum.com/u/pkspence)\
**Replies:** 1\
**Last updated:** [May 30, 2006, 3:43pm UTC](https://www.ruby-forum.com/t/error-handling-and-recovery/61976 "2006-05-30T15:43:29Z")

</div>

I have a module which specifically deals with connections to a MSSQL database. Contained in this module is a method which actually opens the connection. The code contained in the method is wrapped w/in a begin…rescue……

---

## [Object.reference\_count](https://www.ruby-forum.com/t/object-reference-count/61804)

<div class="topic-metadata">

**Author:** [@wirelesspower](https://www.ruby-forum.com/u/wirelesspower)\
**Replies:** 11\
**Last updated:** [May 30, 2006, 1:41pm UTC](https://www.ruby-forum.com/t/object-reference-count/61804 "2006-05-30T13:41:52Z")

</div>

Is there a way to get the current reference count for an object?

---

## [Newsgroup-mailing list bridge](https://www.ruby-forum.com/t/newsgroup-mailing-list-bridge/61945)

<div class="topic-metadata">

**Author:** [@C\_Erler](https://www.ruby-forum.com/u/C_Erler)\
**Replies:** 5\
**Last updated:** [May 30, 2006, 1:26pm UTC](https://www.ruby-forum.com/t/newsgroup-mailing-list-bridge/61945 "2006-05-30T13:26:42Z")

</div>

Google groups and the mailing list share no items, as far as I can tell. When did the newsgroup-mailing list bridge stop working ?

---

## [Toronto RUG meeting Sun 4 June 2006](https://www.ruby-forum.com/t/toronto-rug-meeting-sun-4-june-2006/61970)

<div class="topic-metadata">

**Author:** [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Replies:** 0\
**Last updated:** [May 30, 2006, 12:59pm UTC](https://www.ruby-forum.com/t/toronto-rug-meeting-sun-4-june-2006/61970 "2006-05-30T12:59:07Z")

</div>

The first Sunday of the month is coming up, which means that the Toronto Ruby U. Group will be meeting at the Linux Caffe on Harbord St. around 1pm. See http://www.trug.ca/Sun\_Jun\_04%2C\_2006 for details (actually the …

---

## [Iconv buffer overflow?](https://www.ruby-forum.com/t/iconv-buffer-overflow/61909)

<div class="topic-metadata">

**Author:** [@victor123789](https://www.ruby-forum.com/u/victor123789)\
**Replies:** 4\
**Last updated:** [May 30, 2006, 12:58pm UTC](https://www.ruby-forum.com/t/iconv-buffer-overflow/61909 "2006-05-30T12:58:59Z")

</div>

Hi all. require ‘iconv’ max\_length = 513 str = ’ ’ \* max\_length Iconv.new(‘utf-8’, ‘windows-1252’).iconv(str) Error:in \`Iconv#iconv’: " " (Iconv::BrokenLibrary) If max\_length \<= 512, all is OK. Is it normal? Is i…

---

## [Rcov 0.5.0: code coverage + callsite info, RubyGems, Rant](https://www.ruby-forum.com/t/rcov-0-5-0-code-coverage-callsite-info-rubygems-rant/61969)

<div class="topic-metadata">

**Author:** [@tulkas](https://www.ruby-forum.com/u/tulkas)\
**Replies:** 0\
**Last updated:** [May 30, 2006, 11:58am UTC](https://www.ruby-forum.com/t/rcov-0-5-0-code-coverage-callsite-info-rubygems-rant/61969 "2006-05-30T11:58:03Z")

</div>

Source code, additional information, screenshots… available at eigenclass.org Release information: http://eigenclass.org/hiki.rb?rcov+0.5.0 Sample cross-referenced report generated by rcov: eigenclass.org This rele…

---

## [Gmailer reply](https://www.ruby-forum.com/t/gmailer-reply/95355)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [May 30, 2006, 5:43am UTC](https://www.ruby-forum.com/t/gmailer-reply/95355 "2006-05-30T05:43:07Z")

</div>

Is there a way to reply to a message with the ruby gmailer library? I see that there are “message\_replying” and “thread\_replying” arguments in the “send” function, but I don’t see how to use them to reply to a message…

---

## [New.ruby-lang.org (was: Re: Proposing: A new Ruby Windows in](https://www.ruby-forum.com/t/new-ruby-lang-org-was-re-proposing-a-new-ruby-windows-in/61728)

<div class="topic-metadata">

**Author:** [@Michal\_S](https://www.ruby-forum.com/u/Michal_S)\
**Replies:** 26\
**Last updated:** [May 30, 2006, 5:15am UTC](https://www.ruby-forum.com/t/new-ruby-lang-org-was-re-proposing-a-new-ruby-windows-in/61728 "2006-05-30T05:15:26Z")

</div>

On 5/24/06, James Edward G. II removed\_email\_address@domain.invalid wrote: On May 23, 2006, at 4:46 PM, Douglas L. wrote: There was a nice redesign with some momenutum about it a while back, but it seems to have got…

---

## [Create header (Re: Re: ossl\_cipher.c:124: warning: control](https://www.ruby-forum.com/t/create-header-re-re-ossl-cipher-c-warning-control/60897)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 7\
**Last updated:** [May 30, 2006, 4:02am UTC](https://www.ruby-forum.com/t/create-header-re-re-ossl-cipher-c-warning-control/60897 "2006-05-30T04:02:25Z")

</div>

e$B$J$+$@$G$9!#e(B 06/05/11 e$B$Ke(B Tanaka A.removed\_email\_address@domain.invalid e$B$5$s$O=q$-$^$7$?e(B: e$B$&$%$\`!#9T$,@Z$l$F$7$^$C$?!#e(B e$B$=$&$$$($P!“$3$N!”%3%^%s%I%i%$%s0z?t$Ke(B HAVE\_XXX e$B$H$$$&%^%/%me(B …

---

## [Overriding Time.now](https://www.ruby-forum.com/t/overriding-time-now/61495)

<div class="topic-metadata">

**Author:** [@Robert\_MannI](https://www.ruby-forum.com/u/Robert_MannI)\
**Replies:** 12\
**Last updated:** [May 30, 2006, 2:15am UTC](https://www.ruby-forum.com/t/overriding-time-now/61495 "2006-05-30T02:15:38Z")

</div>

Hello! I have a unit test where I need to simulate a different system time. Hence I need Time.now to return a different time than now, say, now + 1 month How can I do this? I tried aliasing Time now, but I don’t kno…

---

## [It Will Get Better - Article Mini Series](https://www.ruby-forum.com/t/it-will-get-better-article-mini-series/95354)

<div class="topic-metadata">

**Author:** [@zdennis](https://www.ruby-forum.com/u/zdennis)\
**Replies:** 0\
**Last updated:** [May 30, 2006, 2:03am UTC](https://www.ruby-forum.com/t/it-will-get-better-article-mini-series/95354 "2006-05-30T02:03:13Z")

</div>

I am writing a mini-series of articles on my site called “It Will Get Better”. It focuses on the journey that I have followed at MTI (and am following) through my eyes and experiences about agile software development,…

---

## [It Will Get Better - Article Mini Series](https://www.ruby-forum.com/t/it-will-get-better-article-mini-series/61949)

<div class="topic-metadata">

**Author:** [@zdennis](https://www.ruby-forum.com/u/zdennis)\
**Replies:** 0\
**Last updated:** [May 30, 2006, 1:57am UTC](https://www.ruby-forum.com/t/it-will-get-better-article-mini-series/61949 "2006-05-30T01:57:07Z")

</div>

I am writing a mini-series of articles on my site called “It Will Get Better”. It focuses on the journey that I have followed at MTI (and am following) through my eyes and experiences about agile software development,…

---

## [FXRuby - Howto remember some default settings as specified b](https://www.ruby-forum.com/t/fxruby-howto-remember-some-default-settings-as-specified-b/95284)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 8\
**Last updated:** [May 30, 2006, 1:29am UTC](https://www.ruby-forum.com/t/fxruby-howto-remember-some-default-settings-as-specified-b/95284 "2006-05-30T01:29:52Z")

</div>

Dear all, in an FXRuby GUI, I want to give the user many choices and I am searching for a way to let FXRuby remember these upon the next start of the GUI application. To be a bit more concrete, imagine a program tha…

---

## [Saving a PDF locally](https://www.ruby-forum.com/t/saving-a-pdf-locally/61942)

<div class="topic-metadata">

**Author:** [@yoche2001](https://www.ruby-forum.com/u/yoche2001)\
**Replies:** 6\
**Last updated:** [May 30, 2006, 1:21am UTC](https://www.ruby-forum.com/t/saving-a-pdf-locally/61942 "2006-05-30T01:21:31Z")

</div>

Hi Ruby-folks, I am currently working on a small program, which saves copies of website locally to my harddisk. For normal html-pages this works as expected. But now I am struggeling with binary files such as PDFs. H…

---

## [Re: Installation question](https://www.ruby-forum.com/t/re-installation-question/95351)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [May 30, 2006, 12:46am UTC](https://www.ruby-forum.com/t/re-installation-question/95351 "2006-05-30T00:46:36Z")

</div>

I seem to have the main Ruby folder in /usr/lib/ruby. Is that the correct place? You’ve followed a standard installation procedure. Just leave everything in the /usr directory and subdirectories where it is, and m…

---

## [Installation question](https://www.ruby-forum.com/t/installation-question/95346)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 7\
**Last updated:** [May 30, 2006, 12:31am UTC](https://www.ruby-forum.com/t/installation-question/95346 "2006-05-30T00:31:21Z")

</div>

I use Mac OS and have installed Ruby. Sorry for a stupid question but where is Ruby installed?

---

## [PNG to OpenGL Texture (libpng)](https://www.ruby-forum.com/t/png-to-opengl-texture-libpng/61881)

<div class="topic-metadata">

**Author:** [@xavier](https://www.ruby-forum.com/u/xavier)\
**Replies:** 1\
**Last updated:** [May 30, 2006, 12:28am UTC](https://www.ruby-forum.com/t/png-to-opengl-texture-libpng/61881 "2006-05-30T00:28:12Z")

</div>

Hi, I’m trying to load a PNG file into an OpenGL texture using ruby-libpng-0.3.3 I can’t quite figure out how to convert libpng data to the correct format. I’ve dumped png.read\_image to screen and it looks like my p…

---

## [Pickaxe doesn't appear to have anything on "x =3D \[\]", ...?](https://www.ruby-forum.com/t/pickaxe-doesnt-appear-to-have-anything-on-x-3d/61938)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 1\
**Last updated:** [May 30, 2006, 12:03am UTC](https://www.ruby-forum.com/t/pickaxe-doesnt-appear-to-have-anything-on-x-3d/61938 "2006-05-30T00:03:50Z")

</div>

I just ran into this, and I’d like to see something that says what it is. Is there a topic name for it? xc

---

## [Process::Status or exit code from popen3 win32?](https://www.ruby-forum.com/t/process-status-or-exit-code-from-popen3-win32/61273)

<div class="topic-metadata">

**Author:** [@John-Mason\_PSShack](https://www.ruby-forum.com/u/John-Mason_PSShack)\
**Replies:** 1\
**Last updated:** [May 29, 2006, 11:51pm UTC](https://www.ruby-forum.com/t/process-status-or-exit-code-from-popen3-win32/61273 "2006-05-29T23:51:06Z")

</div>

Greetings all, The win32 version of popen3 does not appear to set $? and Process.waitpid2(pid) always seems to fail with “no child process”. Other than Ara’s clever hack at http://groups.google.com/group/comp.lang.ru…

---

## [Re: Installation question](https://www.ruby-forum.com/t/re-installation-question/95349)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [May 29, 2006, 11:50pm UTC](https://www.ruby-forum.com/t/re-installation-question/95349 "2006-05-29T23:50:59Z")

</div>

I seem to have the main Ruby folder in /usr/lib/ruby. Is that the correct place? You’ve followed a standard installation procedure. Just leave everything in the /usr directory and subdirectories where it is, and m…

---

## [Re: Installation question](https://www.ruby-forum.com/t/re-installation-question/61939)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [May 29, 2006, 11:47pm UTC](https://www.ruby-forum.com/t/re-installation-question/61939 "2006-05-29T23:47:52Z")

</div>

I have a ruby file in /usr/local/bin. Why? In the Unix world, to which Mac OS X also belongs, you have all your files under one big file tree starting with /. Now, all the packages which are not maintained by some …

---

## [(DBI::Utils::XMLFormatter) Output results as a string?](https://www.ruby-forum.com/t/dbi-xmlformatter-output-results-as-a-string/60997)

<div class="topic-metadata">

**Author:** [@d0t1q](https://www.ruby-forum.com/u/d0t1q)\
**Replies:** 2\
**Last updated:** [May 29, 2006, 11:40pm UTC](https://www.ruby-forum.com/t/dbi-xmlformatter-output-results-as-a-string/60997 "2006-05-29T23:40:49Z")

</div>

\[xml.rb\] require ‘dbi’ DBI::Utils::XMLFormatter.table(dbh.select\_all(“SELECT \* FROM people”)) \[/xml.rb\] When I run this from the dos prompt, I do get the appropriate output, IE: c:\\scripts\>ruby xml.rb \<?xml versi…

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

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