# Ruby

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

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

---

## [Generating ERB templates with XMLBuilder](https://www.ruby-forum.com/t/generating-erb-templates-with-xmlbuilder/131261)

<div class="topic-metadata">

**Author:** [@bryanl](https://www.ruby-forum.com/u/bryanl)\
**Replies:** 0\
**Last updated:** [March 7, 2008, 2:00pm UTC](https://www.ruby-forum.com/t/generating-erb-templates-with-xmlbuilder/131261 "2008-03-07T14:00:51Z")

</div>

Is it possible to get XMLBuilder to stop escaping entities for just one tag? I’m trying to generate an ERB template that generates XML: xml.toys do xml.toy do xml.name "\<%= name %\> end end The builder outputs the…

---

## [Cloning a module and isolating it from the clone](https://www.ruby-forum.com/t/cloning-a-module-and-isolating-it-from-the-clone/130929)

<div class="topic-metadata">

**Author:** [@eclubb](https://www.ruby-forum.com/u/eclubb)\
**Replies:** 10\
**Last updated:** [March 7, 2008, 12:09pm UTC](https://www.ruby-forum.com/t/cloning-a-module-and-isolating-it-from-the-clone/130929 "2008-03-07T12:09:09Z")

</div>

I’m trying to find a way to create a copy of a module and then sever all ties to the original. I’ve tried clone and dup, but if anything (e.g class variable) changes in one then it also changes in the other. The res…

---

## [Want to know about logging process](https://www.ruby-forum.com/t/want-to-know-about-logging-process/131145)

<div class="topic-metadata">

**Author:** [@geetha](https://www.ruby-forum.com/u/geetha)\
**Replies:** 2\
**Last updated:** [March 7, 2008, 10:11am UTC](https://www.ruby-forum.com/t/want-to-know-about-logging-process/131145 "2008-03-07T10:11:43Z")

</div>

hi friends, Using logger i am logging the Ruby on rails application messages. In this i want to know , when this logging happen, which process execute this logging. Kindly help me… regards, S.Sangeetha.

---

## [Computing Deltas / Difflib for Ruby](https://www.ruby-forum.com/t/computing-deltas-difflib-for-ruby/131244)

<div class="topic-metadata">

**Author:** [@jh100000](https://www.ruby-forum.com/u/jh100000)\
**Replies:** 1\
**Last updated:** [March 7, 2008, 9:55am UTC](https://www.ruby-forum.com/t/computing-deltas-difflib-for-ruby/131244 "2008-03-07T09:55:46Z")

</div>

I am interested in computing deltas between strings. Difflib looks like a quality library to use (difflib — Helpers for computing deltas — Python 3.11.4 documentation). Is there a Ruby port or equivalent available? T…

---

## [Monitoring a process](https://www.ruby-forum.com/t/monitoring-a-process/131191)

<div class="topic-metadata">

**Author:** [@mihai](https://www.ruby-forum.com/u/mihai)\
**Replies:** 2\
**Last updated:** [March 7, 2008, 6:53am UTC](https://www.ruby-forum.com/t/monitoring-a-process/131191 "2008-03-07T06:53:34Z")

</div>

I want to monitor a process in windows and find the cpu and memory usage. How can i do that?

---

## [How to post data in ruby ? Plz Help!](https://www.ruby-forum.com/t/how-to-post-data-in-ruby-plz-help/131152)

<div class="topic-metadata">

**Author:** [@pradeepta](https://www.ruby-forum.com/u/pradeepta)\
**Replies:** 1\
**Last updated:** [March 7, 2008, 4:05am UTC](https://www.ruby-forum.com/t/how-to-post-data-in-ruby-plz-help/131152 "2008-03-07T04:05:53Z")

</div>

Hi , I am trying to send a json object through ruby whose equivalent code in java script is req.send(jsonobject) , also i want to add headers to the request . I am using the code request.add\_field(“Cookie”,“12345”) …

---

## [Can't start Webrick in Eclipse/RadRails](https://www.ruby-forum.com/t/cant-start-webrick-in-eclipse-radrails/131214)

<div class="topic-metadata">

**Author:** [@ali](https://www.ruby-forum.com/u/ali)\
**Replies:** 1\
**Last updated:** [March 7, 2008, 3:58am UTC](https://www.ruby-forum.com/t/cant-start-webrick-in-eclipse-radrails/131214 "2008-03-07T03:58:40Z")

</div>

I’m getting the following error in the console: “1272” -e:2:in \`load’: no such file to load – script/server (LoadError) from -e:2 I’ve set my Ruby Installed Interpreter to C:\\ruby. Any ideas? Thanks in advance!

---

## [Threading weirdness](https://www.ruby-forum.com/t/threading-weirdness/131229)

<div class="topic-metadata">

**Author:** [@Philip\_Scott](https://www.ruby-forum.com/u/Philip_Scott)\
**Replies:** 2\
**Last updated:** [March 7, 2008, 2:03am UTC](https://www.ruby-forum.com/t/threading-weirdness/131229 "2008-03-07T02:03:21Z")

</div>

Hi guys, I’d be grateful if someone could take a look at the following two test cases I made after noticing some strange behavior with ruby threads. I think the code speaks clearer than I could, but in essence if you…

---

## [Hello, world? (#158)](https://www.ruby-forum.com/t/hello-world-158/130636)

<div class="topic-metadata">

**Author:** [@Matthew\_D\_Moss](https://www.ruby-forum.com/u/Matthew_D_Moss)\
**Replies:** 40\
**Last updated:** [March 7, 2008, 1:00am UTC](https://www.ruby-forum.com/t/hello-world-158/130636 "2008-03-07T01:00:02Z")

</div>

The three rules of Ruby Q. 2: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on this message. Support Ruby Q. 2 by submitting ideas as often as you ca…

---

## [Getting access to run time of a process from Ruby, as opposed to wall clock time](https://www.ruby-forum.com/t/getting-access-to-run-time-of-a-process-from-ruby-as-opposed-to-wall-clock-time/131218)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [March 7, 2008, 12:39am UTC](https://www.ruby-forum.com/t/getting-access-to-run-time-of-a-process-from-ruby-as-opposed-to-wall-clock-time/131218 "2008-03-07T00:39:29Z")

</div>

The C runtime for POSIX includes a clock() function that gives you the amount of time that your process has actually had on the CPU. I’ve googled for a way to get access to this from Ruby, and all I get is the fact t…

---

## [OpenSSL/SOAP - keystore/truststore](https://www.ruby-forum.com/t/openssl-soap-keystore-truststore/131092)

<div class="topic-metadata">

**Author:** [@rubyrubyruby\_onrail](https://www.ruby-forum.com/u/rubyrubyruby_onrail)\
**Replies:** 6\
**Last updated:** [March 7, 2008, 12:20am UTC](https://www.ruby-forum.com/t/openssl-soap-keystore-truststore/131092 "2008-03-07T00:20:42Z")

</div>

I am attempting to connect to a secure SOAP web service and have been provided a password protected keystore, truststore and also a self signed \*.cer file. The server component is implemented in java and the documenta…

---

## [Requiring rubygems](https://www.ruby-forum.com/t/requiring-rubygems/131190)

<div class="topic-metadata">

**Author:** [@tim](https://www.ruby-forum.com/u/tim)\
**Replies:** 3\
**Last updated:** [March 6, 2008, 10:31pm UTC](https://www.ruby-forum.com/t/requiring-rubygems/131190 "2008-03-06T22:31:48Z")

</div>

I’m using the MySQL rubygem. In a code example in the book I’m reading it has: require ‘rubygems’ require ‘mysql’ in order to access the mysql functionality. However I tried it without requiring rubygems and it st…

---

## [Thin 0.7.1 Fancy Pants release](https://www.ruby-forum.com/t/thin-0-7-1-fancy-pants-release/131189)

<div class="topic-metadata">

**Author:** [@macournoyer](https://www.ruby-forum.com/u/macournoyer)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 8:11pm UTC](https://www.ruby-forum.com/t/thin-0-7-1-fancy-pants-release/131189 "2008-03-06T20:11:04Z")

</div>

Hey all, Thin web server version 0.7.1 (codename Fancy Pants) is out! == What’s new? Clean stale PID files when starting as daemon, fixes #53 \[Chu Yeow\] Require EventMachine 0.11.0 for UNIX domain sockets. Until it’s …

---

## [London Ruby User Group - 10th March 2008](https://www.ruby-forum.com/t/london-ruby-user-group-10th-march-2008/131058)

<div class="topic-metadata">

**Author:** [@Murray\_S](https://www.ruby-forum.com/u/Murray_S)\
**Replies:** 1\
**Last updated:** [March 6, 2008, 7:09pm UTC](https://www.ruby-forum.com/t/london-ruby-user-group-10th-march-2008/131058 "2008-03-06T19:09:47Z")

</div>

Hi all, The London Ruby U. Group is having it’s March meeting this coming Monday. Date: Monday, 10th March, 2008 Time: 6:30pm for the talks, 8:00pm for the pub Location: 1 Sekforde Street\[1\] for the talks, The Crown…

---

## [Ruby Basics / define met;hod](https://www.ruby-forum.com/t/ruby-basics-define-met-hod/131154)

<div class="topic-metadata">

**Author:** [@chinnakaruppan](https://www.ruby-forum.com/u/chinnakaruppan)\
**Replies:** 7\
**Last updated:** [March 6, 2008, 6:50pm UTC](https://www.ruby-forum.com/t/ruby-basics-define-met-hod/131154 "2008-03-06T18:50:51Z")

</div>

Hi, I am new to Ruby and This is a very basic question.when I type p self in irb it gives me ‘main’. when I say class what is happening in the backend.since within a class end I am able to call define\_method which is…

---

## [Dir#.glob over accentuated named directories?](https://www.ruby-forum.com/t/dir-glob-over-accentuated-named-directories/131132)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvS\_ue](https://www.ruby-forum.com/u/Une_BSSSSvS_ue)\
**Replies:** 5\
**Last updated:** [March 6, 2008, 6:19pm UTC](https://www.ruby-forum.com/t/dir-glob-over-accentuated-named-directories/131132 "2008-03-06T18:19:35Z")

</div>

over MacOS X the user could have named directories using accentuated characters like : “Défaut” (for Default) when doing a Dir.glob over the parent directory of it i get : De’faut is there a way to get the “right” …

---

## [Better performance than native unix commands?](https://www.ruby-forum.com/t/better-performance-than-native-unix-commands/130868)

<div class="topic-metadata">

**Author:** [@coolboarderguy](https://www.ruby-forum.com/u/coolboarderguy)\
**Replies:** 15\
**Last updated:** [March 6, 2008, 5:30pm UTC](https://www.ruby-forum.com/t/better-performance-than-native-unix-commands/130868 "2008-03-06T17:30:46Z")

</div>

I have an issue with nfs and listing a large amount of files that I am wondering if I can solve with ruby. I know that ruby has better performance in some instances than a bash shell script so I am wondering if anyone…

---

## [Inheritance with Ruby](https://www.ruby-forum.com/t/inheritance-with-ruby/131099)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 4\
**Last updated:** [March 6, 2008, 4:57pm UTC](https://www.ruby-forum.com/t/inheritance-with-ruby/131099 "2008-03-06T16:57:38Z")

</div>

I would like to create a new superclass ‘Super’ for an existing class ‘Sub’ class Sub def new #do something second end end class Super \< Sub def new #do something first end end Is it possible create this new …

---

## [Too slow](https://www.ruby-forum.com/t/too-slow/131106)

<div class="topic-metadata">

**Author:** [@coolgeng\_coolgeng](https://www.ruby-forum.com/u/coolgeng_coolgeng)\
**Replies:** 6\
**Last updated:** [March 6, 2008, 1:56pm UTC](https://www.ruby-forum.com/t/too-slow/131106 "2008-03-06T13:56:04Z")

</div>

Hi, I founded a rails application on ruby 1.8.6 and rails 2.0.2, the database was mysql. When I installed some gems, the speed of loading application page become very slow except the index.rhtml. Did the installatio…

---

## [Gluing handwriting recognition (Windows Vista) and other applications via Ruby?](https://www.ruby-forum.com/t/gluing-handwriting-recognition-windows-vista-and-other-applications-via-ruby/131135)

<div class="topic-metadata">

**Author:** [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Replies:** 1\
**Last updated:** [March 6, 2008, 1:52pm UTC](https://www.ruby-forum.com/t/gluing-handwriting-recognition-windows-vista-and-other-applications-via-ruby/131135 "2008-03-06T13:52:26Z")

</div>

Dear all, now a happy owner of a small handheld computer running Windows Vista, which has a good handwriting recognition tool, I noticed that I cannot use it in OpenOffice or Firefox or Abiword. Do you know whether i…

---

## [Unimplemented builtin methods](https://www.ruby-forum.com/t/unimplemented-builtin-methods/131146)

<div class="topic-metadata">

**Author:** [@Wayne\_K](https://www.ruby-forum.com/u/Wayne_K)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 1:15pm UTC](https://www.ruby-forum.com/t/unimplemented-builtin-methods/131146 "2008-03-06T13:15:39Z")

</div>

I’ve previously posted a list of unimplemented classes and methods from external Ruby libraries. There are also a number of methods of the builtin classes yet to be implemented. The following are the currently unimple…

---

## [Is these possible with ruby?](https://www.ruby-forum.com/t/is-these-possible-with-ruby/131114)

<div class="topic-metadata">

**Author:** [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Replies:** 2\
**Last updated:** [March 6, 2008, 11:04am UTC](https://www.ruby-forum.com/t/is-these-possible-with-ruby/131114 "2008-03-06T11:04:29Z")

</div>

Can we do any of theses (from RoR): access a COM object call loadlibrary receive and send(or post) windows messages access a native dll access a .net dll Thanks, Ratnavel

---

## [Too many open files on OpenBSD](https://www.ruby-forum.com/t/too-many-open-files-on-openbsd/131100)

<div class="topic-metadata">

**Author:** [@vext01](https://www.ruby-forum.com/u/vext01)\
**Replies:** 7\
**Last updated:** [March 6, 2008, 10:43am UTC](https://www.ruby-forum.com/t/too-many-open-files-on-openbsd/131100 "2008-03-06T10:43:09Z")

</div>

Hi, I am the maintainer of the TeXLive typesetting suite for OpenBSD. Each year I must parse a database in order to calculate subsets of the TeXLive system for packaging purposes. The database format changed this yea…

---

## [Erratic result](https://www.ruby-forum.com/t/erratic-result/131131)

<div class="topic-metadata">

**Author:** [@coolgeng\_coolgeng](https://www.ruby-forum.com/u/coolgeng_coolgeng)\
**Replies:** 5\
**Last updated:** [March 6, 2008, 10:42am UTC](https://www.ruby-forum.com/t/erratic-result/131131 "2008-03-06T10:42:39Z")

</div>

Hi I do not know how to explain the different result between the two snippets: First snippet: def dial(digit) puts digit end digits = 0…9 puts digits.each {|digit| dial(digit) } output: 0 1 2 3 4 5 6 7 …

---

## [Define relationschip external database-scheme](https://www.ruby-forum.com/t/define-relationschip-external-database-scheme/131126)

<div class="topic-metadata">

**Author:** [@remco123](https://www.ruby-forum.com/u/remco123)\
**Replies:** 1\
**Last updated:** [March 6, 2008, 10:39am UTC](https://www.ruby-forum.com/t/define-relationschip-external-database-scheme/131126 "2008-03-06T10:39:41Z")

</div>

Hi, i want to use or external database for my rails app. The connention to the external database(no-rais-app) works fine, but how must i define the relationship between this tabels (if possibly no change in the table …

---

## [Determining local variables](https://www.ruby-forum.com/t/determining-local-variables/131117)

<div class="topic-metadata">

**Author:** [@svy](https://www.ruby-forum.com/u/svy)\
**Replies:** 1\
**Last updated:** [March 6, 2008, 7:58am UTC](https://www.ruby-forum.com/t/determining-local-variables/131117 "2008-03-06T07:58:09Z")

</div>

Is there any way to determine what local variables are currently defined? (possibly using binding? thread?) Is there any way similar to how an array of current instance variables can be found? Thanks

---

## [Sprintf("% e", Inf)](https://www.ruby-forum.com/t/sprintf-e-inf/131118)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 7:19am UTC](https://www.ruby-forum.com/t/sprintf-e-inf/131118 "2008-03-06T07:19:28Z")

</div>

e$B$G!"5,3J$G$Oe(B space flag e$B$O8z$/$H$5$l$F$$$k$N$G$9$,!"8z$-$^$;$s!#e(B % ./ruby -ve ‘printf("\[% e\]\\n", 1.0/0.0)’ ruby 1.9.0 (2008-03-06 revision 15711) \[i686-linux\] \[Inf\] e$B$3$3$Oe(B \[ Inf\] e$B$,4|BT$5$l$k=PN…

---

## [\--program-suffix option of configure.bat(mswin32)](https://www.ruby-forum.com/t/program-suffix-option-of-configure-bat-mswin32/131119)

<div class="topic-metadata">

**Author:** [@KIMURA\_Koichi](https://www.ruby-forum.com/u/KIMURA_Koichi)\
**Replies:** 1\
**Last updated:** [March 6, 2008, 7:13am UTC](https://www.ruby-forum.com/t/program-suffix-option-of-configure-bat-mswin32/131119 "2008-03-06T07:13:36Z")

</div>

e$BLZB\<$G$9!#e(B configure.bat e$B$Ge(Bmakefilee$B$r:n@.$9$k$H$-$K!"%X%k%W$G$O=P$F$-$^$;$s$,e(B if “%1” == “–program-suffix” goto :suffix :suffix echo\>\> ~tmp~.mak “RUBY\_SUFFIX=%2” echo\>\>confargs.tmp %1=%2 shif…

---

## [How to create a class in callers context?](https://www.ruby-forum.com/t/how-to-create-a-class-in-callers-context/131077)

<div class="topic-metadata">

**Author:** [@DMisener](https://www.ruby-forum.com/u/DMisener)\
**Replies:** 3\
**Last updated:** [March 6, 2008, 6:25am UTC](https://www.ruby-forum.com/t/how-to-create-a-class-in-callers-context/131077 "2008-03-06T06:25:45Z")

</div>

Here’s a simple example of my predicament: class Factory def self.generate name,\_binding \_name=name.to\_s.capitalize eval %\[ class #{\_name} def to\_s “#{\_name}” end end \],\_binding end end def Factory\_generate …

---

## [Twain devices and rails application](https://www.ruby-forum.com/t/twain-devices-and-rails-application/196604)

<div class="topic-metadata">

**Author:** [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 6:10am UTC](https://www.ruby-forum.com/t/twain-devices-and-rails-application/196604 "2008-03-06T06:10:30Z")

</div>

Any idea how to integrate twain devices with the ror appliations… Thanks, Ratnavel

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

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