# Ruby

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

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

---

## [Lafcadio 0.9.3: PostgreSQL support, eager loading, more](https://www.ruby-forum.com/t/lafcadio-0-9-3-postgresql-support-eager-loading-more/55576)

<div class="topic-metadata">

**Author:** [@Francis\_H](https://www.ruby-forum.com/u/Francis_H)\
**Replies:** 0\
**Last updated:** [March 22, 2006, 6:13am UTC](https://www.ruby-forum.com/t/lafcadio-0-9-3-postgresql-support-eager-loading-more/55576 "2006-03-22T06:13:57Z")

</div>

The newest development release of Lafcadio, 0.9.3, now supports PostgreSQL, adds eager loading, and has a few more additions. As always, odd-numbered releases should be considered beta. If you want to play it safe, us…

---

## [Newbie: .Net =\> Ruby Questions](https://www.ruby-forum.com/t/newbie-net-ruby-questions/55563)

<div class="topic-metadata">

**Author:** [@dru](https://www.ruby-forum.com/u/dru)\
**Replies:** 4\
**Last updated:** [March 22, 2006, 5:33am UTC](https://www.ruby-forum.com/t/newbie-net-ruby-questions/55563 "2006-03-22T05:33:20Z")

</div>

If I am a .Net developer and I want to build a windows GUI I use System.Windows.Forms . What do I use in ruby? In .Net there are namespaces. What is the equivilent in Ruby? What is out there to support Web Services fo…

---

## [Ruby high on Computer Language Shootout scores!](https://www.ruby-forum.com/t/ruby-high-on-computer-language-shootout-scores/55556)

<div class="topic-metadata">

**Author:** [@igouy](https://www.ruby-forum.com/u/igouy)\
**Replies:** 2\
**Last updated:** [March 22, 2006, 5:09am UTC](https://www.ruby-forum.com/t/ruby-high-on-computer-language-shootout-scores/55556 "2006-03-22T05:09:32Z")

</div>

Now that we’re using GZip source code bytes as an indicator of program size, Ruby is high up on The Computer Language Shootout scores. No doubt Ruby will be at the top once someone contributes those 2 missing programs…

---

## [Help with Ruby/TK install on Mandriva2006](https://www.ruby-forum.com/t/help-with-ruby-tk-install-on-mandriva2006/84703)

<div class="topic-metadata">

**Author:** [@randy\_k](https://www.ruby-forum.com/u/randy_k)\
**Replies:** 3\
**Last updated:** [March 22, 2006, 4:31am UTC](https://www.ruby-forum.com/t/help-with-ruby-tk-install-on-mandriva2006/84703 "2006-03-22T04:31:25Z")

</div>

My Ruby install on Mandriva2006 (from, iirc, the Mandriva package(s)) appears to be borked. One symptom: require ‘tk’ in irb returns “LoadError: No such file to load – tk …” Is anybody here using Ruby and TK succes…

---

## ['failed to allocate memory' with Mp3Info module](https://www.ruby-forum.com/t/failed-to-allocate-memory-with-mp3info-module/55566)

<div class="topic-metadata">

**Author:** [@firejdl](https://www.ruby-forum.com/u/firejdl)\
**Replies:** 0\
**Last updated:** [March 22, 2006, 4:27am UTC](https://www.ruby-forum.com/t/failed-to-allocate-memory-with-mp3info-module/55566 "2006-03-22T04:27:17Z")

</div>

Hey all: I’m pretty new to Ruby \[this is my second script\], but I’m trying to write a little playlist generator script to scan a few directories every once in a while \[probably in a cron job\], and update a .m3u playli…

---

## [Undefined method \`add\_assertion' for nil:NilClass](https://www.ruby-forum.com/t/undefined-method-add-assertion-for-nil-nilclass/55557)

<div class="topic-metadata">

**Author:** [@PaatschS\_Bernd](https://www.ruby-forum.com/u/PaatschS_Bernd)\
**Replies:** 1\
**Last updated:** [March 22, 2006, 3:04am UTC](https://www.ruby-forum.com/t/undefined-method-add-assertion-for-nil-nilclass/55557 "2006-03-22T03:04:46Z")

</div>

Hello, I tried to use assertion’s the first time in my code and had absolutely now success. I always get following error: TEST FAILED.undefined method add\_assertion' for nil:NilClass c:/ruby/lib/ruby/1.8/test/unit/te…

---

## [Error trying to use sybct in windows](https://www.ruby-forum.com/t/error-trying-to-use-sybct-in-windows/55560)

<div class="topic-metadata">

**Author:** [@dplante](https://www.ruby-forum.com/u/dplante)\
**Replies:** 0\
**Last updated:** [March 22, 2006, 2:59am UTC](https://www.ruby-forum.com/t/error-trying-to-use-sybct-in-windows/55560 "2006-03-22T02:59:04Z")

</div>

“LoadError: 127: The specified procedure could not be found. - Init\_sybct” I was able to build the library sybct-ruby-0.2.8 on my windows xp machine (this library should enable connectivity to a sybase ASE 12.5 dat…

---

## [Newbie: Better way to check a magic number on a file?](https://www.ruby-forum.com/t/newbie-better-way-to-check-a-magic-number-on-a-file/84965)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 4\
**Last updated:** [March 22, 2006, 1:18am UTC](https://www.ruby-forum.com/t/newbie-better-way-to-check-a-magic-number-on-a-file/84965 "2006-03-22T01:18:29Z")

</div>

All, I am trying to determine if I am dealing with an Excel file that I upload to a Web server. Here is the first test - to verify the magic number of the file that I have: #Check the magic number first to see if it…

---

## [Newbie: Printing hex formatted string using printf](https://www.ruby-forum.com/t/newbie-printing-hex-formatted-string-using-printf/84964)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 8\
**Last updated:** [March 22, 2006, 12:38am UTC](https://www.ruby-forum.com/t/newbie-printing-hex-formatted-string-using-printf/84964 "2006-03-22T00:38:36Z")

</div>

I am trying to print the hex representation of a string using printf. $stderr.print “Magic number is: #{magic\_number}.printf(’%X’)\\n” Why does this not work? The output is: Magic number is: %PDF-1.3.printf(’%X’)

---

## [Newbie: How do I get hex formatted bytes from a file?](https://www.ruby-forum.com/t/newbie-how-do-i-get-hex-formatted-bytes-from-a-file/84960)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 8\
**Last updated:** [March 22, 2006, 12:13am UTC](https://www.ruby-forum.com/t/newbie-how-do-i-get-hex-formatted-bytes-from-a-file/84960 "2006-03-22T00:13:18Z")

</div>

I want to do: File.open(path\_to\_file, “r”) do |f| magic\_number = f.read(8) $stderr.print “Magic number is: #{magic\_number}\\n” end but I want to print the bytes as HEX values - how do I do that? Thanks, Wes

---

## [Jedit ruby plug in](https://www.ruby-forum.com/t/jedit-ruby-plug-in/55535)

<div class="topic-metadata">

**Author:** [@itsme213](https://www.ruby-forum.com/u/itsme213)\
**Replies:** 0\
**Last updated:** [March 21, 2006, 11:48pm UTC](https://www.ruby-forum.com/t/jedit-ruby-plug-in/55535 "2006-03-21T23:48:57Z")

</div>

Is there a way for the structure view to display things other than “def …” e.g. attr\_… or my\_class\_method … Thanks.

---

## [Setup.rb and rubygems](https://www.ruby-forum.com/t/setup-rb-and-rubygems/84749)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 1\
**Last updated:** [March 21, 2006, 11:44pm UTC](https://www.ruby-forum.com/t/setup-rb-and-rubygems/84749 "2006-03-21T23:44:25Z")

</div>

I’ve reported a bug concering setup.rb to this list and directly to Minero with no response. I have another bug to report now too. This was over a week ago. I’ve done similarly with Rubygems too. Again no response. W…

---

## [SOAP Problem](https://www.ruby-forum.com/t/soap-problem/84961)

<div class="topic-metadata">

**Author:** [@Jeff\_LaMarche](https://www.ruby-forum.com/u/Jeff_LaMarche)\
**Replies:** 0\
**Last updated:** [March 21, 2006, 11:38pm UTC](https://www.ruby-forum.com/t/soap-problem/84961 "2006-03-21T23:38:47Z")

</div>

I’m using the SOAP::RPC::Driver to access a web service for which I don’t have a WSDL (actually, there is one, but it’s not well formed and it the WSDLDriverFactory chokes on it). So, I create the driver: QUERY\_URL =…

---

## [FreeRIDE problem ("Failing to load")](https://www.ruby-forum.com/t/freeride-problem-failing-to-load/55471)

<div class="topic-metadata">

**Author:** [@Tobias\_J](https://www.ruby-forum.com/u/Tobias_J)\
**Replies:** 4\
**Last updated:** [March 21, 2006, 9:21pm UTC](https://www.ruby-forum.com/t/freeride-problem-failing-to-load/55471 "2006-03-21T21:21:11Z")

</div>

Hello, I had to reinstall ruby recently, along with everything else, due to a HD formatting. Now freeride used to work pretty well before, and I don’t recall seeing this problem first time around - I suspect I might…

---

## [Re: "str1" == "STR1" case insensitive](https://www.ruby-forum.com/t/re-str1-str1-case-insensitive/84882)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [March 21, 2006, 9:10pm UTC](https://www.ruby-forum.com/t/re-str1-str1-case-insensitive/84882 "2006-03-21T21:10:22Z")

</div>

self.casecmp(arg ) == 0 puts “Test”.eq(“test”) true Or you could say ‘$= = true’ Deprecated and evil, but possible. Regards, Dan

---

## [Once again looking for my module methods](https://www.ruby-forum.com/t/once-again-looking-for-my-module-methods/55364)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 25\
**Last updated:** [March 21, 2006, 9:08pm UTC](https://www.ruby-forum.com/t/once-again-looking-for-my-module-methods/55364 "2006-03-21T21:08:58Z")

</div>

Gee. Once again I want my module methods inherited.

---

## [Find.find bug in 1.8.4?](https://www.ruby-forum.com/t/find-find-bug-in-1-8-4/55512)

<div class="topic-metadata">

**Author:** [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Replies:** 0\
**Last updated:** [March 21, 2006, 7:45pm UTC](https://www.ruby-forum.com/t/find-find-bug-in-1-8-4/55512 "2006-03-21T19:45:01Z")

</div>

Hi all, I’ve just had a problem with Find.find: I was using it to recurse through a directory tree and calculate the total size of all files. That works fine, however, in one situation, a record is deleted before the …

---

## [\[BUG\] rb\_gc\_mark()](https://www.ruby-forum.com/t/bug-rb-gc-mark/54965)

<div class="topic-metadata">

**Author:** [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Replies:** 3\
**Last updated:** [March 21, 2006, 7:03pm UTC](https://www.ruby-forum.com/t/bug-rb-gc-mark/54965 "2006-03-21T19:03:33Z")

</div>

I’m getting the following error quite frequently. What additional info can I supply to get it fixed? BTW, I am using FxRuby. \[BUG\] rb\_gc\_mark(): unknown data type 0x18(0xf9163c4) non object ruby 1.8.4 (2005-12-24) \[i3…

---

## [Problem with Why's Poignants guide code..help](https://www.ruby-forum.com/t/problem-with-whys-poignants-guide-code-help/55477)

<div class="topic-metadata">

**Author:** [@aftershock](https://www.ruby-forum.com/u/aftershock)\
**Replies:** 7\
**Last updated:** [March 21, 2006, 6:49pm UTC](https://www.ruby-forum.com/t/problem-with-whys-poignants-guide-code-help/55477 "2006-03-21T18:49:00Z")

</div>

Trying to follow the code on chapter 4 ( http://poignantguide.net/ruby/chapter-4.html ) and I cannot get the section called Making the swap’c code to work. this is saved as wordlist.rb: code\_words = { ‘starmonkeys’…

---

## [Traits](https://www.ruby-forum.com/t/traits/84746)

<div class="topic-metadata">

**Author:** [@itsme213](https://www.ruby-forum.com/u/itsme213)\
**Replies:** 1\
**Last updated:** [March 21, 2006, 6:33pm UTC](https://www.ruby-forum.com/t/traits/84746 "2006-03-21T18:33:05Z")

</div>

Does Ara’s traits package offer similar capabilities to http://code.enthought.com/traits/ ? Any (past, present, or likely future) relation?

---

## [! and ? in function name](https://www.ruby-forum.com/t/and-in-function-name/55499)

<div class="topic-metadata">

**Author:** [@tony](https://www.ruby-forum.com/u/tony)\
**Replies:** 4\
**Last updated:** [March 21, 2006, 6:18pm UTC](https://www.ruby-forum.com/t/and-in-function-name/55499 "2006-03-21T18:18:42Z")

</div>

Hi Ruby-rulez ! I often look at some code, for example un rails/active\_record, where functions name end with a ? or a ! Is this a special notation, meaning that the func or args or whatever have some treatment before…

---

## [Re: traits](https://www.ruby-forum.com/t/re-traits/84748)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [March 21, 2006, 5:49pm UTC](https://www.ruby-forum.com/t/re-traits/84748 "2006-03-21T17:49:50Z")

</div>

relation? It looks to me like some sort of strange mix of delegation, observer, module and the Schaerli concept of traits, with a GUI to boot. I don’t think there’s any relation to Ara’s traits package. Traits (th…

---

## [POLS violation? /\\s\*/ no match at StringScanner end](https://www.ruby-forum.com/t/pols-violation-s-no-match-at-stringscanner-end/55464)

<div class="topic-metadata">

**Author:** [@capnregex](https://www.ruby-forum.com/u/capnregex)\
**Replies:** 3\
**Last updated:** [March 21, 2006, 5:44pm UTC](https://www.ruby-forum.com/t/pols-violation-s-no-match-at-stringscanner-end/55464 "2006-03-21T17:44:25Z")

</div>

Hi, I’ve been bitten by this discrepancy on some occasions: irb(main):003:0\> StringScanner.new("").match?(/\\s\*/) =\> nil irb(main):004:0\> /\\s\*/ =~ “” =\> 0 Running: ruby 1.8.4 (2005-12-24) \[i686-linux\] Is it a bug o…

---

## [OpenSSL for public/private key encryption](https://www.ruby-forum.com/t/openssl-for-public-private-key-encryption/55478)

<div class="topic-metadata">

**Author:** [@Douglas\_SSJSDe\_Co](https://www.ruby-forum.com/u/Douglas_SSJSDe_Co)\
**Replies:** 2\
**Last updated:** [March 21, 2006, 5:10pm UTC](https://www.ruby-forum.com/t/openssl-for-public-private-key-encryption/55478 "2006-03-21T17:10:14Z")

</div>

Hi, I want to use the OpenSSL bindings to do some public/private key encryption with an RSA keypair. I also want to be able to load the keys from disk or a string. But I can’t figure out what functions to call, as t…

---

## [Parsing JSP files and adding a Line](https://www.ruby-forum.com/t/parsing-jsp-files-and-adding-a-line/55392)

<div class="topic-metadata">

**Author:** [@thedapp](https://www.ruby-forum.com/u/thedapp)\
**Replies:** 1\
**Last updated:** [March 21, 2006, 4:34pm UTC](https://www.ruby-forum.com/t/parsing-jsp-files-and-adding-a-line/55392 "2006-03-21T16:34:45Z")

</div>

Basically, I’m still pretty much freshmeat when it comes to Ruby, but I’m intrigued by the language and wanted to start playing around w/ it for the J2EE project that I’m on. I wrote some Ruby Code that would find all…

---

## [SimpleDelegator vs. simple variable?](https://www.ruby-forum.com/t/simpledelegator-vs-simple-variable/54797)

<div class="topic-metadata">

**Author:** [@churp](https://www.ruby-forum.com/u/churp)\
**Replies:** 9\
**Last updated:** [March 21, 2006, 4:28pm UTC](https://www.ruby-forum.com/t/simpledelegator-vs-simple-variable/54797 "2006-03-21T16:28:58Z")

</div>

Hello all, Can someone explain to me the reason for SimpleDelegator over using “just a variable”. Thanks!

---

## [Library for Mocking](https://www.ruby-forum.com/t/library-for-mocking/55367)

<div class="topic-metadata">

**Author:** [@thiagoalessio](https://www.ruby-forum.com/u/thiagoalessio)\
**Replies:** 4\
**Last updated:** [March 21, 2006, 3:52pm UTC](https://www.ruby-forum.com/t/library-for-mocking/55367 "2006-03-21T15:52:54Z")

</div>

Rubysts, I am looking for a library for mocking objects. I am aware of FlexMock and Test::Unit::Mock (seems like RubyMock turned into Test::Unit::Mock, am I right?), but what I am looking for would be something more …

---

## [Class (not instance) initializers](https://www.ruby-forum.com/t/class-not-instance-initializers/55465)

<div class="topic-metadata">

**Author:** [@Bhrgunatha\_Deva](https://www.ruby-forum.com/u/Bhrgunatha_Deva)\
**Replies:** 7\
**Last updated:** [March 21, 2006, 3:18pm UTC](https://www.ruby-forum.com/t/class-not-instance-initializers/55465 "2006-03-21T15:18:56Z")

</div>

Newbie question: Is there an equivalent to a static constructor in ruby? something like: class MyClass want this to run before any instances of MyClass are created def class\_initialize self.some\_complex\_initialisati…

---

## [Re: iterate chars in a string](https://www.ruby-forum.com/t/re-iterate-chars-in-a-string/84296)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 17\
**Last updated:** [March 21, 2006, 3:04pm UTC](https://www.ruby-forum.com/t/re-iterate-chars-in-a-string/84296 "2006-03-21T15:04:27Z")

</div>

Maybe it’s a problem with Ruby docs? Or maybe it is just counter-intuitive - I would expect each() iterate over bytes, and provide each\_lines() to iterate over lines instead. Mike http://www.rubycentral.com/ref/ …

---

## [Web server recommendations?](https://www.ruby-forum.com/t/web-server-recommendations/55438)

<div class="topic-metadata">

**Author:** [@Mark\_J.Reed](https://www.ruby-forum.com/u/Mark_J.Reed)\
**Replies:** 3\
**Last updated:** [March 21, 2006, 2:34pm UTC](https://www.ruby-forum.com/t/web-server-recommendations/55438 "2006-03-21T14:34:32Z")

</div>

I want my website to include a mixture of static HTML pages, RAILS apps, some simpler dynamic pages using eruby, and maybe even the occasional PHP page (gasp! horror! no!). Definitely care most about the Ruby support…

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

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