# Ruby

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

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

---

## [Win32 environment for ruby extension work](https://www.ruby-forum.com/t/win32-environment-for-ruby-extension-work/79053)

<div class="topic-metadata">

**Author:** [@ross\_b](https://www.ruby-forum.com/u/ross_b)\
**Replies:** 4\
**Last updated:** [December 14, 2006, 12:33pm UTC](https://www.ruby-forum.com/t/win32-environment-for-ruby-extension-work/79053 "2006-12-14T12:33:29Z")

</div>

Hi, I’ve recently been attempting to look at Win32 compatibility on the various C extensions I work on, but in my ignorance I’m getting a bit confused (Microsoft’s site seems designed to promote that :frowning: ). I c…

---

## [How to always write Windows style newlines to a file?](https://www.ruby-forum.com/t/how-to-always-write-windows-style-newlines-to-a-file/79266)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 7\
**Last updated:** [December 14, 2006, 12:17pm UTC](https://www.ruby-forum.com/t/how-to-always-write-windows-style-newlines-to-a-file/79266 "2006-12-14T12:17:26Z")

</div>

I need to write a CSV file and I know that I always want Windows style newlines on it (for import into Excel). I want to make sure that every line is terminated with “\\r\\n” (CRLF) regardless of platform. How do I wri…

---

## [Broken output of irb --help](https://www.ruby-forum.com/t/broken-output-of-irb-help/79336)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 0\
**Last updated:** [December 14, 2006, 10:17am UTC](https://www.ruby-forum.com/t/broken-output-of-irb-help/79336 "2006-12-14T10:17:14Z")

</div>

e$B$3$s$K$A$O!"$J$+$\`$ie(B(e$B$&e(B)e$B$G$9!#e(B trunke$B$G$Ne(Birb --helpe$B$NI=\<($,2u$l$F$$$^$9!#e(B e$B$J$\*!"e(B1.8e$B$@$HLdBj$O5/$-$^$;$s$,!“F1$8e(Btypoe$B$,$”$j$^$9!#e(B Index: lib/irb/locale.rb RCS file: /home/c…

---

## [Question about ruby's licence](https://www.ruby-forum.com/t/question-about-rubys-licence/79335)

<div class="topic-metadata">

**Author:** [@yuesefa](https://www.ruby-forum.com/u/yuesefa)\
**Replies:** 1\
**Last updated:** [December 14, 2006, 10:09am UTC](https://www.ruby-forum.com/t/question-about-rubys-licence/79335 "2006-12-14T10:09:14Z")

</div>

can ruby codes be mixed up(for some protection purpose) so that it can be distributed and licensed? just like the php code Thank you :slight\_smile:

---

## [Rubyzip problem / question](https://www.ruby-forum.com/t/rubyzip-problem-question/72511)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 1\
**Last updated:** [December 14, 2006, 9:37am UTC](https://www.ruby-forum.com/t/rubyzip-problem-question/72511 "2006-12-14T09:37:11Z")

</div>

Hi, I’m fairly new to ruby and am trying to use the rubyzip library (I downloaded the latest gem) to change a directory name in a zipped file. The code below seems to work (i.e. the directory names show as changed in…

---

## [How to overload the operator !=?](https://www.ruby-forum.com/t/how-to-overload-the-operator/79212)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 8\
**Last updated:** [December 14, 2006, 8:21am UTC](https://www.ruby-forum.com/t/how-to-overload-the-operator/79212 "2006-12-14T08:21:05Z")

</div>

I overload ==, \>, \<, \>=, \<=successfully, however I can’t overload != . How to overload operator !=?

---

## [Ruby PDQ?](https://www.ruby-forum.com/t/ruby-pdq/77611)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 5\
**Last updated:** [December 14, 2006, 7:19am UTC](https://www.ruby-forum.com/t/ruby-pdq/77611 "2006-12-14T07:19:03Z")

</div>

Hi all, I happened across this book at the store tonight: Analyzing Computer System Performance with Perl::PDQ. PDQ is an acronym for “Pretty Damn Quick” that appears to be used for systems performance modeling. It…

---

## [Re: openstruct oddity](https://www.ruby-forum.com/t/re-openstruct-oddity/78693)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [December 14, 2006, 5:52am UTC](https://www.ruby-forum.com/t/re-openstruct-oddity/78693 "2006-12-14T05:52:54Z")

</div>

This is surely an anomaly too, is it not? Pardon my ignorance. I wasn’t aware that the mixin module at top level causes all its methods become globally available for all levels below. Although, some comment on the ex…

---

## [Job posting: Sr Systems Programmer needed](https://www.ruby-forum.com/t/job-posting-sr-systems-programmer-needed/79312)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [December 14, 2006, 5:20am UTC](https://www.ruby-forum.com/t/job-posting-sr-systems-programmer-needed/79312 "2006-12-14T05:20:50Z")

</div>

AGCO, Jackson Operations is nestled in the picturesque Des Moines River Valley—in the welcoming town of Jackson, Minnesota (56143). Jackson is a town of approximately 3600 neighbors, and is centrally located between t…

---

## [Runtime Error Installing Ruby 1.8.5](https://www.ruby-forum.com/t/runtime-error-installing-ruby-1-8-5/79106)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [December 14, 2006, 4:50am UTC](https://www.ruby-forum.com/t/runtime-error-installing-ruby-1-8-5/79106 "2006-12-14T04:50:47Z")

</div>

Hi there, I’m trying to get amaroK installed on my minimalist Slackware 10.2 machine. I know: “minimalist” and “amaroK” might not be intuitively concurrent. Still, I thought I’d give it a whirl. Of the three mandat…

---

## [No docs from facets gem installation](https://www.ruby-forum.com/t/no-docs-from-facets-gem-installation/79310)

<div class="topic-metadata">

**Author:** [@twp](https://www.ruby-forum.com/u/twp)\
**Replies:** 0\
**Last updated:** [December 14, 2006, 4:40am UTC](https://www.ruby-forum.com/t/no-docs-from-facets-gem-installation/79310 "2006-12-14T04:40:44Z")

</div>

Hi, I recently did a remote gem installation of facets-core and was disappointed to find that neither ri or rdoc docs were installed. Checking the gemspec for facets-core, I found that this was because the has\_rdoc f…

---

## [Kwala v0.1 Release](https://www.ruby-forum.com/t/kwala-v0-1-release/79237)

<div class="topic-metadata">

**Author:** [@Zev\_B](https://www.ruby-forum.com/u/Zev_B)\
**Replies:** 3\
**Last updated:** [December 14, 2006, 4:18am UTC](https://www.ruby-forum.com/t/kwala-v0-1-release/79237 "2006-12-14T04:18:38Z")

</div>

This is the first public release of Kwala. http://kwala.rubyforge.org Kwala is a command line build tool to check the “quality” of Ruby source code. It is composed of various actions that perform different types of …

---

## [Ruby telnet issue when target platform is SuSE9.2](https://www.ruby-forum.com/t/ruby-telnet-issue-when-target-platform-is-suse9-2/63207)

<div class="topic-metadata">

**Author:** [@saga](https://www.ruby-forum.com/u/saga)\
**Replies:** 1\
**Last updated:** [December 14, 2006, 4:03am UTC](https://www.ruby-forum.com/t/ruby-telnet-issue-when-target-platform-is-suse9-2/63207 "2006-12-14T04:03:32Z")

</div>

Hi, When I use Net/telnet module on target platform SuSE9.2, I got an error message like “Tset: Unknown terminal type network”. I also tried to replace “login” fuction with “Waitfor” fuction, but it is still the case…

---

## [How to improve my Ruby skills?](https://www.ruby-forum.com/t/how-to-improve-my-ruby-skills/79217)

<div class="topic-metadata">

**Author:** [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Replies:** 11\
**Last updated:** [December 14, 2006, 3:02am UTC](https://www.ruby-forum.com/t/how-to-improve-my-ruby-skills/79217 "2006-12-14T03:02:31Z")

</div>

Hello there… Like many others I’ve discovered Ruby when I started using RoR. It’s been 10 months now. I’ve covered most basic parts of the language even if mastering the language have not been my main goal. Now, I wo…

---

## [Mysql-ruby 2.7.2 not compile with ruby 1.9](https://www.ruby-forum.com/t/mysql-ruby-2-7-2-not-compile-with-ruby-1-9/78898)

<div class="topic-metadata">

**Author:** [@fgfgfg](https://www.ruby-forum.com/u/fgfgfg)\
**Replies:** 1\
**Last updated:** [December 14, 2006, 12:28am UTC](https://www.ruby-forum.com/t/mysql-ruby-2-7-2-not-compile-with-ruby-1-9/78898 "2006-12-14T00:28:17Z")

</div>

Hello, Following changes in the RSTRING structure of ruby 1.9 (CVS), the mysql-ruby 2.7.2 library doesn’t compile anymore. Is there a newer version of mysql-ruby? Or else it will make a nice week end project for me :…

---

## [FasterCSV - Writing to File Question](https://www.ruby-forum.com/t/fastercsv-writing-to-file-question/79294)

<div class="topic-metadata">

**Author:** [@dfg59](https://www.ruby-forum.com/u/dfg59)\
**Replies:** 4\
**Last updated:** [December 13, 2006, 11:22pm UTC](https://www.ruby-forum.com/t/fastercsv-writing-to-file-question/79294 "2006-12-13T23:22:02Z")

</div>

Based on a previous thread, I gave FasterCSV a try and I’ve been very impressed with the performance increases. However, something about the syntax for writing to a file bothers me. Is there any way to create a “write…

---

## [Assigning constant as an unbound dynamic method](https://www.ruby-forum.com/t/assigning-constant-as-an-unbound-dynamic-method/79185)

<div class="topic-metadata">

**Author:** [@asherwood](https://www.ruby-forum.com/u/asherwood)\
**Replies:** 3\
**Last updated:** [December 13, 2006, 8:51pm UTC](https://www.ruby-forum.com/t/assigning-constant-as-an-unbound-dynamic-method/79185 "2006-12-13T20:51:26Z")

</div>

Disclaimer: I am new to Ruby, and am not a professional programmer. I work in Network Support, and have used Perl in the past for various scripting tasks. On a lark I picked up the ‘pickaxe’ book and wanted to try my …

---

## [How to add a method\_missing method into ActiveRecord](https://www.ruby-forum.com/t/how-to-add-a-method-missing-method-into-activerecord/79193)

<div class="topic-metadata">

**Author:** [@ao\_tianlong](https://www.ruby-forum.com/u/ao_tianlong)\
**Replies:** 6\
**Last updated:** [December 13, 2006, 8:45pm UTC](https://www.ruby-forum.com/t/how-to-add-a-method-missing-method-into-activerecord/79193 "2006-12-13T20:45:25Z")

</div>

i want to write a plugin that support like following Book.search\_by\_author\_and\_description(keyword) i must hold method\_missing to dynamic find books but ActiveRecord already used method\_missing . how can i add onoth…

---

## [Ruby, Windows XP, and CMD.exe](https://www.ruby-forum.com/t/ruby-windows-xp-and-cmd-exe/79092)

<div class="topic-metadata">

**Author:** [@snowdall](https://www.ruby-forum.com/u/snowdall)\
**Replies:** 7\
**Last updated:** [December 13, 2006, 8:33pm UTC](https://www.ruby-forum.com/t/ruby-windows-xp-and-cmd-exe/79092 "2006-12-13T20:33:21Z")

</div>

Hello all, I am developing a SOAP server running on a Windows XP machine. When contacted from the outside, it will launch a windows executable at the command line. The problem is this executable takes a long time. …

---

## [Ri search question](https://www.ruby-forum.com/t/ri-search-question/79253)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 4\
**Last updated:** [December 13, 2006, 6:41pm UTC](https://www.ruby-forum.com/t/ri-search-question/79253 "2006-12-13T18:41:05Z")

</div>

Hi all, I try to find a methed(File.basename) using ri but it doesn’t work. Any comments? Thanks, Li C:\>ri File.basename More than one method matched your request. You can refine your search by asking for informa…

---

## [Milwaukee Ruby Users Group Meeting Tonight 12/13 @ 5:30 - 7:](https://www.ruby-forum.com/t/milwaukee-ruby-users-group-meeting-tonight-12-13-5-30-7/79264)

<div class="topic-metadata">

**Author:** [@tomjerry](https://www.ruby-forum.com/u/tomjerry)\
**Replies:** 0\
**Last updated:** [December 13, 2006, 6:29pm UTC](https://www.ruby-forum.com/t/milwaukee-ruby-users-group-meeting-tonight-12-13-5-30-7/79264 "2006-12-13T18:29:01Z")

</div>

We will be meeting in the usual place. http://www.mkerb.org/index.php/Meeting\_12/13/2006 I look forward to see you there. Thanks, – Tom. – “Nothing will ever be attempted, if all possible objections must first be …

---

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

<div class="topic-metadata">

**Author:** [@dav](https://www.ruby-forum.com/u/dav)\
**Replies:** 14\
**Last updated:** [December 13, 2006, 6:26pm UTC](https://www.ruby-forum.com/t/newbie-questions/79003 "2006-12-13T18:26:58Z")

</div>

Hello, I’m quite new to this whole Ruby malarky and I’m having some real trouble with more intermediate features. You will probally laugh at how simple this stuff is but I really can’t figure it out. The online manual…

---

## [Ruby crashes my boss' desktop](https://www.ruby-forum.com/t/ruby-crashes-my-boss-desktop/79242)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 2\
**Last updated:** [December 13, 2006, 5:53pm UTC](https://www.ruby-forum.com/t/ruby-crashes-my-boss-desktop/79242 "2006-12-13T17:53:07Z")

</div>

To all…my ruby program developed in v182.1 runs to completion on my Win2k srvcpak4 but crashes on my boss’ Win2k srvpak2 machine with Ruby v184 ntuser.dat file is updated after a message saying that ruby is logging t…

---

## [How do I run WEBrick as a daemon?](https://www.ruby-forum.com/t/how-do-i-run-webrick-as-a-daemon/79236)

<div class="topic-metadata">

**Author:** [@Ashley\_M](https://www.ruby-forum.com/u/Ashley_M)\
**Replies:** 4\
**Last updated:** [December 13, 2006, 5:36pm UTC](https://www.ruby-forum.com/t/how-do-i-run-webrick-as-a-daemon/79236 "2006-12-13T17:36:50Z")

</div>

Hi I’m trying to make a simple web server to provide decryption to a C# app that can’t access OpenSSL libraries. It has to run on a FreeBSD server so I need to make it run as a daemon, but I can’t work out how. The …

---

## [Ext/readline](https://www.ruby-forum.com/t/ext-readline/79255)

<div class="topic-metadata">

**Author:** [@Takahiro\_K](https://www.ruby-forum.com/u/Takahiro_K)\
**Replies:** 0\
**Last updated:** [December 13, 2006, 5:16pm UTC](https://www.ruby-forum.com/t/ext-readline/79255 "2006-12-13T17:16:47Z")

</div>

e$B$3$s$P$s$O!#e(B Ruby 1.8e$B$N%V%i%s%Ae(B(2006/12/05)e$B$Ne(Bext/readlinee$B$,e(BNetBSD currente$B$G%3%s%Q%$e(B e$B%k$G$-$J$$\>l9g$,$"$j$^$9!#e(B ext/readline/extconf.rbe$B$G$O!"e(B have\_readline\_var(“rl\_filename\_c…

---

## [Connect to MySQL Database](https://www.ruby-forum.com/t/connect-to-mysql-database/79138)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 7\
**Last updated:** [December 13, 2006, 5:14pm UTC](https://www.ruby-forum.com/t/connect-to-mysql-database/79138 "2006-12-13T17:14:47Z")

</div>

Hello list, I run Mac OS X Tiger, ruby 1.8.4 (from sources) and MySQL 5.0.27 (from sources). I wan’t to create a script which is called by pure-ftpd’s uploadscript functionality - clamav scans each uploaded file - an…

---

## [Capitalization](https://www.ruby-forum.com/t/capitalization/78805)

<div class="topic-metadata">

**Author:** [@vinsonizer](https://www.ruby-forum.com/u/vinsonizer)\
**Replies:** 11\
**Last updated:** [December 13, 2006, 4:50pm UTC](https://www.ruby-forum.com/t/capitalization/78805 "2006-12-13T16:50:43Z")

</div>

Disclaimer : Ruby N. and I don’t know RegEx basically at all. I know RegEx is the answer, just don’t know where to start. Current Source: str.split(’ ‘).each {|w| w.capitalize!}.join(’ ') Text: ADDITIONAL SPA (ONLY…

---

## [Is there a class that is equivalent to Properties in Java](https://www.ruby-forum.com/t/is-there-a-class-that-is-equivalent-to-properties-in-java/79227)

<div class="topic-metadata">

**Author:** [@oliviabean](https://www.ruby-forum.com/u/oliviabean)\
**Replies:** 3\
**Last updated:** [December 13, 2006, 3:46pm UTC](https://www.ruby-forum.com/t/is-there-a-class-that-is-equivalent-to-properties-in-java/79227 "2006-12-13T15:46:36Z")

</div>

Is there a class in the ruby lib that is equivalent to Properties class in Java?

---

## [Howw to delete session data](https://www.ruby-forum.com/t/howw-to-delete-session-data/102621)

<div class="topic-metadata">

**Author:** [@jhonny](https://www.ruby-forum.com/u/jhonny)\
**Replies:** 0\
**Last updated:** [December 13, 2006, 3:29pm UTC](https://www.ruby-forum.com/t/howw-to-delete-session-data/102621 "2006-12-13T15:29:52Z")

</div>

hi friends i had a serious issue for my project actualy as u all know whenever we login a entry is added in the sessions tableof our database and it re3amins there till we log off but in case the user clicks the close…

---

## [Directory Size and bolding Excel cells](https://www.ruby-forum.com/t/directory-size-and-bolding-excel-cells/79143)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 10\
**Last updated:** [December 13, 2006, 2:36pm UTC](https://www.ruby-forum.com/t/directory-size-and-bolding-excel-cells/79143 "2006-12-13T14:36:21Z")

</div>

Does anyone know any commands that will tell me the size of a directory? My program needs to scan every user in a OU and inform me how large their roaming profile is. I currently use: result\_of\_locdsquery = dsquery us…

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

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