# Ruby

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

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

---

## [Exiting a DialogBox created with FoxGUIb](https://www.ruby-forum.com/t/exiting-a-dialogbox-created-with-foxguib/78765)

<div class="topic-metadata">

**Author:** [@e\_aldaz](https://www.ruby-forum.com/u/e_aldaz)\
**Replies:** 5\
**Last updated:** [December 9, 2006, 10:52pm UTC](https://www.ruby-forum.com/t/exiting-a-dialogbox-created-with-foxguib/78765 "2006-12-09T22:52:15Z")

</div>

Dear All I am new to FOX and FoxGUIb. I have found FoxGUIb very useful and I have created an application with menus, one of which calls a DialogBox for the user to enter some values. After finishing the user will pre…

---

## [CoolOptions 1.0.3 has been released](https://www.ruby-forum.com/t/cooloptions-1-0-3-has-been-released/78882)

<div class="topic-metadata">

**Author:** [@ntalbott](https://www.ruby-forum.com/u/ntalbott)\
**Replies:** 0\
**Last updated:** [December 9, 2006, 9:28pm UTC](https://www.ruby-forum.com/t/cooloptions-1-0-3-has-been-released/78882 "2006-12-09T21:28:07Z")

</div>

CoolOptions version 1.0.3 has been released! http://cooloptions.rubyforge.org/ CoolOptions is a simple wrapper around optparse that provides less configuration and more convenience for doing command-line option handl…

---

## [File.yaml?(fname)](https://www.ruby-forum.com/t/file-yaml-fname/78873)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 5\
**Last updated:** [December 9, 2006, 9:08pm UTC](https://www.ruby-forum.com/t/file-yaml-fname/78873 "2006-12-09T21:08:01Z")

</div>

what’s the best way to determine if a file is yaml? thanks, t.

---

## [Module issue](https://www.ruby-forum.com/t/module-issue/78794)

<div class="topic-metadata">

**Author:** [@vinsonizer](https://www.ruby-forum.com/u/vinsonizer)\
**Replies:** 5\
**Last updated:** [December 9, 2006, 8:47pm UTC](https://www.ruby-forum.com/t/module-issue/78794 "2006-12-09T20:47:59Z")

</div>

Disclaimer: Ruby N. Source module Test # (filename my\_test.rb) def test puts “\\n\\ntest fired\\n\\n” end end class OfferRenewalController \< ApplicationController def payment\_made require ‘my\_test’ Test.test end E…

---

## [Dynamically Create Singleton Method](https://www.ruby-forum.com/t/dynamically-create-singleton-method/78855)

<div class="topic-metadata">

**Author:** [@pachl](https://www.ruby-forum.com/u/pachl)\
**Replies:** 5\
**Last updated:** [December 9, 2006, 6:39pm UTC](https://www.ruby-forum.com/t/dynamically-create-singleton-method/78855 "2006-12-09T18:39:47Z")

</div>

I’m not sure how to explain what I’m looking for so I will show you: this works, but not quite the functionality I need def simulate\_cgi\_upload class \<\< cgi\_file = Tempfile.new(‘simulate-cgi’) def content\_type() ‘imag…

---

## [Autotest broken on winxp?](https://www.ruby-forum.com/t/autotest-broken-on-winxp/78842)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 5\
**Last updated:** [December 9, 2006, 6:33pm UTC](https://www.ruby-forum.com/t/autotest-broken-on-winxp/78842 "2006-12-09T18:33:46Z")

</div>

I haven’t tried autotest on windows for a long time, but I thought it worked back then. Now, I get this error: C:\\dev\\row\>autotest c:/program files/ruby/lib/ruby/gems/1.8/gems/ZenTest-3.4.2/lib/autotest.rb:294:in e…

---

## [Array changing after concat function](https://www.ruby-forum.com/t/array-changing-after-concat-function/78662)

<div class="topic-metadata">

**Author:** [@wkc](https://www.ruby-forum.com/u/wkc)\
**Replies:** 16\
**Last updated:** [December 9, 2006, 5:21pm UTC](https://www.ruby-forum.com/t/array-changing-after-concat-function/78662 "2006-12-09T17:21:38Z")

</div>

Can someone shed some light on this problem. In the example, I am attempting to concatenate two arrays together. However it appears that the contents of the first array is being altered after using the concat function…

---

## [Apache2 + ubuntu edgy + ruby](https://www.ruby-forum.com/t/apache2-ubuntu-edgy-ruby/78816)

<div class="topic-metadata">

**Author:** [@sweb](https://www.ruby-forum.com/u/sweb)\
**Replies:** 5\
**Last updated:** [December 9, 2006, 3:15pm UTC](https://www.ruby-forum.com/t/apache2-ubuntu-edgy-ruby/78816 "2006-12-09T15:15:23Z")

</div>

I’m running Ubuntu edgy linux, apache2, php5, and ruby 1.8.4 I’ve been able to get apache2 to run php scripts easily but am having problems getting ruby to do so. I’ve read references to eruby, libapache2-mod-ruby, fa…

---

## [Am I missing something about BER-compressed integer?](https://www.ruby-forum.com/t/am-i-missing-something-about-ber-compressed-integer/78751)

<div class="topic-metadata">

**Author:** [@blackhedd](https://www.ruby-forum.com/u/blackhedd)\
**Replies:** 11\
**Last updated:** [December 9, 2006, 2:00pm UTC](https://www.ruby-forum.com/t/am-i-missing-something-about-ber-compressed-integer/78751 "2006-12-09T14:00:51Z")

</div>

All: The following: p \[9999\].pack(“w”) gives: “\\316\\017” but I expected to get: “\\047\\017” Notice the correct bit pattern for the upper octet (100111) appears in the octet generated by Ruby (11001110) but shifted…

---

## [SMTP proxy in Ruby, anybody?](https://www.ruby-forum.com/t/smtp-proxy-in-ruby-anybody/78849)

<div class="topic-metadata">

**Author:** [@Jeffrey\_SjfS\_Lim](https://www.ruby-forum.com/u/Jeffrey_SjfS_Lim)\
**Replies:** 1\
**Last updated:** [December 9, 2006, 10:07am UTC](https://www.ruby-forum.com/t/smtp-proxy-in-ruby-anybody/78849 "2006-12-09T10:07:06Z")

</div>

hi list, has anybody made any progress, or given out any code for this? Basically, i am looking for something like qpsmtpd (http://smtpd.develooper.com/), only written in Ruby, so that i can modify it as i please, and…

---

## [Exit](https://www.ruby-forum.com/t/exit/78731)

<div class="topic-metadata">

**Author:** [@ao\_tianlong](https://www.ruby-forum.com/u/ao_tianlong)\
**Replies:** 4\
**Last updated:** [December 9, 2006, 10:01am UTC](https://www.ruby-forum.com/t/exit/78731 "2006-12-09T10:01:05Z")

</div>

how can i exit

---

## [Marshal::dump error on PowerBook G4](https://www.ruby-forum.com/t/marshal-dump-error-on-powerbook-g4/78804)

<div class="topic-metadata">

**Author:** [@emmett](https://www.ruby-forum.com/u/emmett)\
**Replies:** 6\
**Last updated:** [December 9, 2006, 6:10am UTC](https://www.ruby-forum.com/t/marshal-dump-error-on-powerbook-g4/78804 "2006-12-09T06:10:53Z")

</div>

I’ve written code for a Splay tree in Ruby, and I’m trying to serialize it using Marshal::dump. If I create a tree with 1,000 or 10,000 nodes, Marshal::dump works perfectly. When I get up to 100,000 nodes, Marshal::du…

---

## [YAML extension not honouring the options passed to .to\_yaml](https://www.ruby-forum.com/t/yaml-extension-not-honouring-the-options-passed-to-to-yaml/78845)

<div class="topic-metadata">

**Author:** [@builderchad](https://www.ruby-forum.com/u/builderchad)\
**Replies:** 2\
**Last updated:** [December 9, 2006, 4:04am UTC](https://www.ruby-forum.com/t/yaml-extension-not-honouring-the-options-passed-to-to-yaml/78845 "2006-12-09T04:04:09Z")

</div>

As outlined on http://yaml4r.sourceforge.net/doc/ I triesd setting some options in the hash passed to .to\_yaml and nothing seems to be making any difference: out\_file.puts newmaster.to\_yaml(:SortKeys =\> true) newmast…

---

## [Lib/irb/locale.rb uses File.exists?](https://www.ruby-forum.com/t/lib-irb-locale-rb-uses-file-exists/78822)

<div class="topic-metadata">

**Author:** [@Yutaka\_K](https://www.ruby-forum.com/u/Yutaka_K)\
**Replies:** 1\
**Last updated:** [December 9, 2006, 3:30am UTC](https://www.ruby-forum.com/t/lib-irb-locale-rb-uses-file-exists/78822 "2006-12-09T03:30:47Z")

</div>

e$B6bK$H$b$&$7$^$9!#e(B e$B$\*$;$o$K$J$j$^$9!#e(B e$B$9$G$K$5$$E$-$+$b$7$l$^$;$s$,!"e(B1.9e$B$Ne(Birbe$B$G$$3$i$l$^$7$?!#e(B /home/ykane/r19/lib/ruby/1.9/irb/locale.rb:156:in search\_file': undefined methodexists?’ for …

---

## [Beginners question about Array#assoc](https://www.ruby-forum.com/t/beginners-question-about-array-assoc/78823)

<div class="topic-metadata">

**Author:** [@builderchad](https://www.ruby-forum.com/u/builderchad)\
**Replies:** 6\
**Last updated:** [December 9, 2006, 2:39am UTC](https://www.ruby-forum.com/t/beginners-question-about-array-assoc/78823 "2006-12-09T02:39:12Z")

</div>

Hi, I am new to Ruby and still finding it very strange even though I am enjoying learning it immensely. I have this code: if an\_array.assoc(tag\_name) == nil … and of course it doesn’t work because I either get an ar…

---

## [Beginner Q: Kernel#puts, STDOUT, $stdout relation](https://www.ruby-forum.com/t/beginner-q-kernel-puts-stdout-stdout-relation/78833)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [December 9, 2006, 1:50am UTC](https://www.ruby-forum.com/t/beginner-q-kernel-puts-stdout-stdout-relation/78833 "2006-12-09T01:50:38Z")

</div>

Can anybody help me understanding the relation between Kernel#puts, STDOUT and $stdout? I thought ‘puts’ is equivalent to ‘$stdout.puts’. Why ‘puts’ doesn’t give same result as ‘STDOUT.puts’? class \<\< STDOUT def p…

---

## [Net-ping 1.2.0](https://www.ruby-forum.com/t/net-ping-1-2-0/78832)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 1\
**Last updated:** [December 9, 2006, 1:30am UTC](https://www.ruby-forum.com/t/net-ping-1-2-0/78832 "2006-12-09T01:30:35Z")

</div>

Hi all, I’m happy to announce the release of net-ping 1.2.0. This release has some major, but backwards compatible, changes. What’s New? First and foremost there’s now a Ping::ICMP class. Many thanks go to Jos B. …

---

## [Rubinius interview with Evan Phoenix](https://www.ruby-forum.com/t/rubinius-interview-with-evan-phoenix/78686)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 8\
**Last updated:** [December 9, 2006, 1:14am UTC](https://www.ruby-forum.com/t/rubinius-interview-with-evan-phoenix/78686 "2006-12-09T01:14:33Z")

</div>

With all the recent buzz around rubinius, it was serendipitous that Evan and I had nearly finished an interview. We wrapped it up over lunch, and it’s posted at: On Ruby: Rubinius Interview Happy reading.

---

## [Tagging Ruby pictures and videos](https://www.ruby-forum.com/t/tagging-ruby-pictures-and-videos/78827)

<div class="topic-metadata">

**Author:** [@AnSSS\_bal](https://www.ruby-forum.com/u/AnSSS_bal)\
**Replies:** 0\
**Last updated:** [December 8, 2006, 10:26pm UTC](https://www.ruby-forum.com/t/tagging-ruby-pictures-and-videos/78827 "2006-12-08T22:26:12Z")

</div>

Hello, RubyCorner has been slowly (but continually) growing as bloggers writing about Ruby and Rails join it. Rigth now we have 286 blogs, and 379 users registered at RubyCorner. We just began to display RoR tagged P…

---

## [Sourcing bash aliases with Ruby](https://www.ruby-forum.com/t/sourcing-bash-aliases-with-ruby/78817)

<div class="topic-metadata">

**Author:** [@kampers](https://www.ruby-forum.com/u/kampers)\
**Replies:** 6\
**Last updated:** [December 8, 2006, 8:56pm UTC](https://www.ruby-forum.com/t/sourcing-bash-aliases-with-ruby/78817 "2006-12-08T20:56:00Z")

</div>

I’m trying to build a script that automates the sourcing of multiple bash alias files using ruby. I’m running into problems in that it while my alias files get run, the terminal session doesn’t recognize any of the a…

---

## [Using Ruby to change printer preferences in Win32](https://www.ruby-forum.com/t/using-ruby-to-change-printer-preferences-in-win32/78782)

<div class="topic-metadata">

**Author:** [@Anders](https://www.ruby-forum.com/u/Anders)\
**Replies:** 3\
**Last updated:** [December 8, 2006, 8:15pm UTC](https://www.ruby-forum.com/t/using-ruby-to-change-printer-preferences-in-win32/78782 "2006-12-08T20:15:50Z")

</div>

Our Windows XP sys admins recently changed things so that every day, our networked printer preferences are reset using a script. Rather than changing the preferences by hand every day so they suit my work needs, I’d …

---

## [Trouble using rubygems config file on windows](https://www.ruby-forum.com/t/trouble-using-rubygems-config-file-on-windows/78803)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [December 8, 2006, 7:47pm UTC](https://www.ruby-forum.com/t/trouble-using-rubygems-config-file-on-windows/78803 "2006-12-08T19:47:47Z")

</div>

Hey All, I’m trying to get rubygems to use my .gemrc file on windows and having trouble–dig it: C:\\ruby\\bin\>gem environment Failed to load C:\\Documents and Settings\\pardre1/.gemrc Rubygems Environment: VERSION: 0.…

---

## ['ruby' not recognized as internal](https://www.ruby-forum.com/t/ruby-not-recognized-as-internal/78792)

<div class="topic-metadata">

**Author:** [@parvg](https://www.ruby-forum.com/u/parvg)\
**Replies:** 2\
**Last updated:** [December 8, 2006, 5:56pm UTC](https://www.ruby-forum.com/t/ruby-not-recognized-as-internal/78792 "2006-12-08T17:56:16Z")

</div>

Newbie question (s) /problem: I have ruby 1.8.5 on windows xp. when i type “ruby -v” in command line i keep getting the message: “‘ruby’ is not recognized as an internal or external command, operable program or batch…

---

## [Execute environment - rake aborted! - no such file to load -](https://www.ruby-forum.com/t/execute-environment-rake-aborted-no-such-file-to-load/102619)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [December 8, 2006, 5:35pm UTC](https://www.ruby-forum.com/t/execute-environment-rake-aborted-no-such-file-to-load/102619 "2006-12-08T17:35:15Z")

</div>

Env: Ruby 1.8.5, Linux Any help would be greatly appreciated with this issue Thanks This post contains: rake --trace db:schema:load gem list --local environment.rb 1.////////////////////////////////////////////////…

---

## [Slave-1.2.0.rb](https://www.ruby-forum.com/t/slave-1-2-0-rb/78791)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [December 8, 2006, 5:21pm UTC](https://www.ruby-forum.com/t/slave-1-2-0-rb/78791 "2006-12-08T17:21:11Z")

</div>

\*\*\* THIS IS A CODE CLEANUP RELEASE ONLY \*\*\* SYNOPSIS the Slave class forks a process and starts a drb server in the child using any object as the server. the process is detached so it is not required (nor possible…

---

## [Re: IEEE-488 (GP-IB) Interface Lib for Ruby](https://www.ruby-forum.com/t/re-ieee-488-gp-ib-interface-lib-for-ruby/78787)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 0\
**Last updated:** [December 8, 2006, 4:47pm UTC](https://www.ruby-forum.com/t/re-ieee-488-gp-ib-interface-lib-for-ruby/78787 "2006-12-08T16:47:06Z")

</div>

Thank you all very much for the leads. I’ll check them out and see what I can get to work. I greatly appreciate all of your suggestions. Cheers, John Dr. John J. LIMS Manager Division of Consolidated Laboratory…

---

## [Mac OS X Leopard and Ruby](https://www.ruby-forum.com/t/mac-os-x-leopard-and-ruby/78786)

<div class="topic-metadata">

**Author:** [@clung](https://www.ruby-forum.com/u/clung)\
**Replies:** 1\
**Last updated:** [December 8, 2006, 4:41pm UTC](https://www.ruby-forum.com/t/mac-os-x-leopard-and-ruby/78786 "2006-12-08T16:41:03Z")

</div>

Has anyone seen this yet from Apple: “To open up the benefits of the Cocoa frameworks to a wider developer audience, Leopard embraces two other highly dynamic languages for use in building Cocoa applications: Ruby and…

---

## [Math3D: fixes](https://www.ruby-forum.com/t/math3d-fixes/78752)

<div class="topic-metadata">

**Author:** [@bartb](https://www.ruby-forum.com/u/bartb)\
**Replies:** 1\
**Last updated:** [December 8, 2006, 4:22pm UTC](https://www.ruby-forum.com/t/math3d-fixes/78752 "2006-12-08T16:22:58Z")

</div>

I have been trying to use Math3D (on my Linux system) and I encountered some problems. It’s only fair to post fixes here too, as I can happily use the library now. I also mailed these patches to the author, I hope he…

---

## [Passing the module name into the method definition](https://www.ruby-forum.com/t/passing-the-module-name-into-the-method-definition/78405)

<div class="topic-metadata">

**Author:** [@shinji](https://www.ruby-forum.com/u/shinji)\
**Replies:** 2\
**Last updated:** [December 8, 2006, 4:15pm UTC](https://www.ruby-forum.com/t/passing-the-module-name-into-the-method-definition/78405 "2006-12-08T16:15:09Z")

</div>

I’ve been building a harness for running watir tests it looks lke this currently- module CVLibrary def CVLibrary.cv\_login(testinstance, testaddress, testuser, testpass, testldap) # opens ie, goes to Central Vision a…

---

## [Parsing information from a forwarded e-mail](https://www.ruby-forum.com/t/parsing-information-from-a-forwarded-e-mail/78650)

<div class="topic-metadata">

**Author:** [@soulchild](https://www.ruby-forum.com/u/soulchild)\
**Replies:** 2\
**Last updated:** [December 8, 2006, 4:06pm UTC](https://www.ruby-forum.com/t/parsing-information-from-a-forwarded-e-mail/78650 "2006-12-08T16:06:49Z")

</div>

Is there an easy way to parse out the information in a forwarded e-mail from Outlook on a MAPI server ABOUT the original message? e.g. The date, time, and e-mail address of the original sender, not the person who forw…

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

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