# Ruby

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

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

---

## [Ruby TK and loading PNGs](https://www.ruby-forum.com/t/ruby-tk-and-loading-pngs/73326)

<div class="topic-metadata">

**Author:** [@austin](https://www.ruby-forum.com/u/austin)\
**Replies:** 1\
**Last updated:** [February 26, 2006, 5:50am UTC](https://www.ruby-forum.com/t/ruby-tk-and-loading-pngs/73326 "2006-02-26T05:50:39Z")

</div>

Is there anyway to load PNG files with TK?

---

## [LibXML-Ruby 0.3.6](https://www.ruby-forum.com/t/libxml-ruby-0-3-6/54130)

<div class="topic-metadata">

**Author:** [@ross\_b](https://www.ruby-forum.com/u/ross_b)\
**Replies:** 28\
**Last updated:** [February 26, 2006, 5:01am UTC](https://www.ruby-forum.com/t/libxml-ruby-0-3-6/54130 "2006-02-26T05:01:08Z")

</div>

LibXML-Ruby 0.3.6 is now available from Rubyforge. LibXML-Ruby is (as you may have guessed) a C-language Ruby binding to the Gnome LibXML2 library, supporting a wide range of XML technologies and offering very competi…

---

## [Comments of less.rb appreciated](https://www.ruby-forum.com/t/comments-of-less-rb-appreciated/54180)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 2\
**Last updated:** [February 26, 2006, 2:35am UTC](https://www.ruby-forum.com/t/comments-of-less-rb-appreciated/54180 "2006-02-26T02:35:24Z")

</div>

I’ve had a look at /usr/share/doc/ruby-1.8.4/sample/less.rb and made some comments on the processes where I could. It came with my repos installation of Ruby. Can someone point me in the right direction here, as there…

---

## [Ruby for Rails chapter 4 up now](https://www.ruby-forum.com/t/ruby-for-rails-chapter-4-up-now/54182)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 1\
**Last updated:** [February 25, 2006, 11:26pm UTC](https://www.ruby-forum.com/t/ruby-for-rails-chapter-4-up-now/54182 "2006-02-25T23:26:50Z")

</div>

If you buy the MEAP (Manning’s version of Beta Books), you can now get the first four chapters of David Black book (that’s nearly 25%!). So far, I’ve been really pleased with it. I just grabbed chapter four, and I’l…

---

## [Xpath to attributes](https://www.ruby-forum.com/t/xpath-to-attributes/71692)

<div class="topic-metadata">

**Author:** [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Replies:** 4\
**Last updated:** [February 25, 2006, 9:34pm UTC](https://www.ruby-forum.com/t/xpath-to-attributes/71692 "2006-02-25T21:34:43Z")

</div>

Is there anyway to do generic xpath’s, for both elements and attributes (ie //customer/phone/@type --\> “home”)? REXML can do xpath to fetch elements (rexml\_element.text(’//customer/phone’)) but can’t seem to use xpat…

---

## [Recontextualizing a block (looking for deep magic)](https://www.ruby-forum.com/t/recontextualizing-a-block-looking-for-deep-magic/69382)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 17\
**Last updated:** [February 25, 2006, 8:55pm UTC](https://www.ruby-forum.com/t/recontextualizing-a-block-looking-for-deep-magic/69382 "2006-02-25T20:55:25Z")

</div>

What I’m trying to do probably isn’t possible, but maybe someone knows some deep magic. I’d like something like: def runit &b a = 42 pnew = Proc.new &b, binding pnew.call end runit { puts “a is: #{a}” } #would …

---

## [Simple "pass-thru" SOAP4R web service](https://www.ruby-forum.com/t/simple-pass-thru-soap4r-web-service/73232)

<div class="topic-metadata">

**Author:** [@kturner](https://www.ruby-forum.com/u/kturner)\
**Replies:** 0\
**Last updated:** [February 25, 2006, 6:03pm UTC](https://www.ruby-forum.com/t/simple-pass-thru-soap4r-web-service/73232 "2006-02-25T18:03:56Z")

</div>

I’m trying to write a simple “pass-thru” web service using SOAP4R. This web service will take the message passed and write it as XML to a file. I don’t want the web service to have to understand the format of the inco…

---

## [Win32-clipboard 0.4.0](https://www.ruby-forum.com/t/win32-clipboard-0-4-0/73148)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 2\
**Last updated:** [February 25, 2006, 4:59pm UTC](https://www.ruby-forum.com/t/win32-clipboard-0-4-0/73148 "2006-02-25T16:59:43Z")

</div>

Hi all, The Win32Utils team is happy to announce the release of win32-clipboard 0.4.0. What’s new? This release replaces the C code with a pure Ruby version that uses the Win32API package. It also adds a gemspec, an…

---

## [RMagick-1.10.1 fixes memory leak](https://www.ruby-forum.com/t/rmagick-1-10-1-fixes-memory-leak/54177)

<div class="topic-metadata">

**Author:** [@tim-hunter](https://www.ruby-forum.com/u/tim-hunter)\
**Replies:** 0\
**Last updated:** [February 25, 2006, 4:50pm UTC](https://www.ruby-forum.com/t/rmagick-1-10-1-fixes-memory-leak/54177 "2006-02-25T16:50:40Z")

</div>

I’ve just uploaded a new release of RMagick. This release fixes 3 bugs, including a memory leak in the ImageList#to\_blob method. If you’re using this method in your programs you should upgrade. As usual, RMagick is a…

---

## [Noob: Building Yarv 0.4.0](https://www.ruby-forum.com/t/noob-building-yarv-0-4-0/72894)

<div class="topic-metadata">

**Author:** [@gzoller](https://www.ruby-forum.com/u/gzoller)\
**Replies:** 5\
**Last updated:** [February 25, 2006, 4:05pm UTC](https://www.ruby-forum.com/t/noob-building-yarv-0-4-0/72894 "2006-02-25T16:05:20Z")

</div>

Apologies if this is posed in the wrong forum… I’m having problems building yarv 0.4.0 on Linux. I’ve tried building with stable/production ruby release and with ruby 1.9.0 (last night’s snapshot). Here’s the error I…

---

## [XML, WebService and Character Encoding issue](https://www.ruby-forum.com/t/xml-webservice-and-character-encoding-issue/99551)

<div class="topic-metadata">

**Author:** [@gonchuki](https://www.ruby-forum.com/u/gonchuki)\
**Replies:** 1\
**Last updated:** [February 25, 2006, 1:46pm UTC](https://www.ruby-forum.com/t/xml-webservice-and-character-encoding-issue/99551 "2006-02-25T13:46:21Z")

</div>

I created a Ruby proxy for a FoxPro app that needs to fetch data from a WebService (which returns it in XML) and read it in CSV format (for which i use REXML parser and output the CSV by hand) To do this the WebServic…

---

## [Using resolv.rb](https://www.ruby-forum.com/t/using-resolv-rb/73151)

<div class="topic-metadata">

**Author:** [@SmallFries](https://www.ruby-forum.com/u/SmallFries)\
**Replies:** 1\
**Last updated:** [February 25, 2006, 10:41am UTC](https://www.ruby-forum.com/t/using-resolv-rb/73151 "2006-02-25T10:41:37Z")

</div>

Hello All I am working on developing an application that does mx/a/ns lookups . I was looking into the resolv.rb lib. http://www.eng.dmu.ac.uk/~hgs/ruby/RUBY\_SNAPSHOT\_RDOC/files/lib/ruby/1\_8/resolv\_rb.html Also I wou…

---

## [Select()](https://www.ruby-forum.com/t/select/73077)

<div class="topic-metadata">

**Author:** [@misiek](https://www.ruby-forum.com/u/misiek)\
**Replies:** 3\
**Last updated:** [February 25, 2006, 7:07am UTC](https://www.ruby-forum.com/t/select/73077 "2006-02-25T07:07:30Z")

</div>

I got for now this code html Yes No display I need to transfer this code to ruby some like =\> \<%= select(“property”, “location\_id”,Location.find(:all, :conditions =\> "name != ‘’ ").collect {|p| \[p.name,…

---

## [Ruby, GTK and iconv.dll](https://www.ruby-forum.com/t/ruby-gtk-and-iconv-dll/101481)

<div class="topic-metadata">

**Author:** [@phildobbin](https://www.ruby-forum.com/u/phildobbin)\
**Replies:** 1\
**Last updated:** [February 25, 2006, 6:46am UTC](https://www.ruby-forum.com/t/ruby-gtk-and-iconv-dll/101481 "2006-02-25T06:46:20Z")

</div>

Hi, What’s with the ruby version of iconv.dll? For Windows XP Pro, ruby 1.8.4 (2005-12-24) \[i386-mswin32\] I wanted to try an example today that needed GTK. I installed based on the instructions at: http://ruby-gno…

---

## [\[ANN\] Calgary Ruby Users Society (CRUSERS)](https://www.ruby-forum.com/t/ann-calgary-ruby-users-society-crusers/54104)

<div class="topic-metadata">

**Author:** [@alexeyv](https://www.ruby-forum.com/u/alexeyv)\
**Replies:** 2\
**Last updated:** [February 25, 2006, 4:24am UTC](https://www.ruby-forum.com/t/ann-calgary-ruby-users-society-crusers/54104 "2006-02-25T04:24:19Z")

</div>

Calgary Ruby U. Society (otherwise known as Association of Anonymous Java Programmers, Calgary branch) had it’s first meeting today. After a round of introductions, we discussed our interests and brainstormed possible…

---

## [Re: Huge performance gap](https://www.ruby-forum.com/t/re-huge-performance-gap/72752)

<div class="topic-metadata">

**Author:** [@KroegerS\_Simon\_Sext](https://www.ruby-forum.com/u/KroegerS_Simon_Sext)\
**Replies:** 2\
**Last updated:** [February 25, 2006, 4:18am UTC](https://www.ruby-forum.com/t/re-huge-performance-gap/72752 "2006-02-25T04:18:14Z")

</div>

Hi Alexis, Hi all I’ve ported the following c++ code to ruby. It is a recursive (backtracking) sudoku-solving algorithm. Well, I was rather surprised by the execution time I got: c++ code: 0.33 seconds ruby cod…

---

## [FreeRIDE](https://www.ruby-forum.com/t/freeride/73113)

<div class="topic-metadata">

**Author:** [@zacho](https://www.ruby-forum.com/u/zacho)\
**Replies:** 0\
**Last updated:** [February 25, 2006, 1:35am UTC](https://www.ruby-forum.com/t/freeride/73113 "2006-02-25T01:35:01Z")

</div>

Hi everybody new programmer here. (If this is a bad place to ask about FreeRIDE specifically then let me know.) Well I’m using FreeRide for WindowXP. I type F5 to run. If there are no errors the program runs fine. …

---

## [Creating Ruby Classes from XSD?](https://www.ruby-forum.com/t/creating-ruby-classes-from-xsd/72451)

<div class="topic-metadata">

**Author:** [@vtphysguy](https://www.ruby-forum.com/u/vtphysguy)\
**Replies:** 14\
**Last updated:** [February 24, 2006, 11:55pm UTC](https://www.ruby-forum.com/t/creating-ruby-classes-from-xsd/72451 "2006-02-24T23:55:36Z")

</div>

.NET ships with a tool that will generate classes directly from an XML schema (XSD) file. Does the Ruby standard library have anything similar? It’s a great tool on the .NET side, and I bet Ruby could do it even bette…

---

## [Net::HTTP and submitting forms](https://www.ruby-forum.com/t/net-http-and-submitting-forms/54136)

<div class="topic-metadata">

**Author:** [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Replies:** 2\
**Last updated:** [February 24, 2006, 8:50pm UTC](https://www.ruby-forum.com/t/net-http-and-submitting-forms/54136 "2006-02-24T20:50:59Z")

</div>

I have a little snippet of code I wrote but it doesn’t go to the correct page. The script pulls the data off of index.php but not index.php?pid=fact&person=chuck. What am I doing wrong? require ‘net/http’ res = Net…

---

## [Ruby script to Module/Class refactor](https://www.ruby-forum.com/t/ruby-script-to-module-class-refactor/68667)

<div class="topic-metadata">

**Author:** [@James\_BSByrne](https://www.ruby-forum.com/u/James_BSByrne)\
**Replies:** 13\
**Last updated:** [February 24, 2006, 7:42pm UTC](https://www.ruby-forum.com/t/ruby-script-to-module-class-refactor/68667 "2006-02-24T19:42:00Z")

</div>

I have written my first live ruby script that actually performs useful work as an exercise in syntax discovery. It is very much a straight line utility that could just as easily be written in bash. What I would like…

---

## [How to check if script in a file a method?](https://www.ruby-forum.com/t/how-to-check-if-script-in-a-file-a-method/72944)

<div class="topic-metadata">

**Author:** [@konsu](https://www.ruby-forum.com/u/konsu)\
**Replies:** 0\
**Last updated:** [February 24, 2006, 7:26pm UTC](https://www.ruby-forum.com/t/how-to-check-if-script-in-a-file-a-method/72944 "2006-02-24T19:26:16Z")

</div>

hello, given a text string with ruby code, that my program evaluates at some point inside an anonymous module, is there a way to analyse the code without evaluating it inside a module to tell if it implements a parti…

---

## [Re: RDT - RemoteTestRunner.rb:1: Bus Error](https://www.ruby-forum.com/t/re-rdt-remotetestrunner-rb-bus-error/72942)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 0\
**Last updated:** [February 24, 2006, 7:17pm UTC](https://www.ruby-forum.com/t/re-rdt-remotetestrunner-rb-bus-error/72942 "2006-02-24T19:17:08Z")

</div>

/Applications/eclipse/plugins/org.rubypeople.rdt.testunit\_0.7. 0.601192300PRD/ruby/RemoteTestRunner.rb:1: I am using RDT (0.7) on Mac OS 10.4.5, but using Darwin Ports for Ruby (1.8.4). My version of Eclipse is 3.1.…

---

## [RDT - RemoteTestRunner.rb:1: Bus Error](https://www.ruby-forum.com/t/rdt-remotetestrunner-rb-bus-error/72940)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 24, 2006, 7:11pm UTC](https://www.ruby-forum.com/t/rdt-remotetestrunner-rb-bus-error/72940 "2006-02-24T19:11:00Z")

</div>

Anytime I debug a Ruby file in RDT I get this error: ruby 1.8.4 debugger listens on port 49905 /Applications/eclipse/plugins/org.rubypeople.rdt.testunit\_0.7.0.601192300PRD/ruby/RemoteTestRunner.rb:1: \[BUG\] Bus Error r…

---

## [Rails - Any way to pass state to a component?](https://www.ruby-forum.com/t/rails-any-way-to-pass-state-to-a-component/72937)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [February 24, 2006, 7:11pm UTC](https://www.ruby-forum.com/t/rails-any-way-to-pass-state-to-a-component/72937 "2006-02-24T19:11:00Z")

</div>

I am trying set up a rails app that utilizes components. I need to be able to pass some state (a bunch of name value pairs) from the Main controller to the component. Is there any way to pass this state info using re…

---

## [Install problem:: rdoc/ruport from gem](https://www.ruby-forum.com/t/install-problem-rdoc-ruport-from-gem/54090)

<div class="topic-metadata">

**Author:** [@jansenh](https://www.ruby-forum.com/u/jansenh)\
**Replies:** 6\
**Last updated:** [February 24, 2006, 6:46pm UTC](https://www.ruby-forum.com/t/install-problem-rdoc-ruport-from-gem/54090 "2006-02-24T18:46:22Z")

</div>

Hi group. More newbie stuff… I have the above mentioned problem - ruport fails while installing from gem… ruby(1.8.3/ubuntu) says “no such file to load – rdoc/rdoc”. I have tried to gem rdoc as well, --remote… Then …

---

## [Syntax questions](https://www.ruby-forum.com/t/syntax-questions/71693)

<div class="topic-metadata">

**Author:** [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Replies:** 4\
**Last updated:** [February 24, 2006, 6:46pm UTC](https://www.ruby-forum.com/t/syntax-questions/71693 "2006-02-24T18:46:21Z")

</div>

A few simple syntax questions: Anyway to do use the default arg for nonlast params? Something like: run(xyz, , 3) Veru often I see things like: a, b = meth() Is meth returning two objects? Or is it returning …

---

## [SystemStackError when rb\_define\_module\_function() \* 3](https://www.ruby-forum.com/t/systemstackerror-when-rb-define-module-function-3/69696)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 3\
**Last updated:** [February 24, 2006, 6:46pm UTC](https://www.ruby-forum.com/t/systemstackerror-when-rb-define-module-function-3/69696 "2006-02-24T18:46:18Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I’m getting a “test.rb:46: stack level too deep (SystemStackError)” when defining three or more functions for a module, which is created & given to Ruby via the R…

---

## [Yaml object de-serialisation](https://www.ruby-forum.com/t/yaml-object-de-serialisation/64988)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 9\
**Last updated:** [February 24, 2006, 6:46pm UTC](https://www.ruby-forum.com/t/yaml-object-de-serialisation/64988 "2006-02-24T18:46:12Z")

</div>

i’ve a class “Preferences” which includes other classes for example “Theme” i save an instance of “Preferences” by writing self.to\_yaml into a file. obviously, i want to retrive this instance back by : o=YAML::load(F…

---

## [Indentation vs. "end"s](https://www.ruby-forum.com/t/indentation-vs-end-s/99901)

<div class="topic-metadata">

**Author:** [@rubyist](https://www.ruby-forum.com/u/rubyist)\
**Replies:** 79\
**Last updated:** [February 24, 2006, 6:46pm UTC](https://www.ruby-forum.com/t/indentation-vs-end-s/99901 "2006-02-24T18:46:02Z")

</div>

Hi, I REALLY love Ruby very much. But I always find those "end"s somewhat ugly ( thousands of excuses to Matz ). I sometimes feel myself wishing that Ruby use indentation (as Python does) instead of "end"s. Today, I …

---

## [Class variables and Constants](https://www.ruby-forum.com/t/class-variables-and-constants/54011)

<div class="topic-metadata">

**Author:** [@merc](https://www.ruby-forum.com/u/merc)\
**Replies:** 7\
**Last updated:** [February 24, 2006, 6:45pm UTC](https://www.ruby-forum.com/t/class-variables-and-constants/54011 "2006-02-24T18:45:35Z")

</div>

Hello people, what is the actual difference between class variables and constants? If I write: #!/usr/local/bin/ruby -w class TonyCantCode @@internal=10 def TonyCantCode::something return @@inter…

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

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