# Ruby

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

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

---

## [Strange characters... how are they created?](https://www.ruby-forum.com/t/strange-characters-how-are-they-created/128268)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 8\
**Last updated:** [February 7, 2008, 2:10am UTC](https://www.ruby-forum.com/t/strange-characters-how-are-they-created/128268 "2008-02-07T02:10:41Z")

</div>

This isn’t a Ruby-specific question, I suppose, but it’s the language I’m using for this project so I figured I’d ask here. I’ve created a .torrent file, and between the bencoding is a representation of the contents o…

---

## [Cgi.params sometimes empty following post to a form handler with mod\_ruby](https://www.ruby-forum.com/t/cgi-params-sometimes-empty-following-post-to-a-form-handler-with-mod-ruby/128243)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [February 7, 2008, 1:46am UTC](https://www.ruby-forum.com/t/cgi-params-sometimes-empty-following-post-to-a-form-handler-with-mod-ruby/128243 "2008-02-07T01:46:33Z")

</div>

I have a simple form handler in the form of an rhtml file being served by Apache 2 and mod\_ruby. On occasion, the CGI object created with CGI.new will have an empty parameter list even though values were posted from t…

---

## [Pulling elements into a method](https://www.ruby-forum.com/t/pulling-elements-into-a-method/128347)

<div class="topic-metadata">

**Author:** [@grooveska](https://www.ruby-forum.com/u/grooveska)\
**Replies:** 4\
**Last updated:** [February 6, 2008, 11:53pm UTC](https://www.ruby-forum.com/t/pulling-elements-into-a-method/128347 "2008-02-06T23:53:13Z")

</div>

I am new to ruby and I’m having trouble with a script I’m working on. It probably is something simple that I am missing. I am working on a script to delete some files from several directories. Here is the part of the…

---

## [Chat equavant tools](https://www.ruby-forum.com/t/chat-equavant-tools/128348)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 0\
**Last updated:** [February 6, 2008, 11:10pm UTC](https://www.ruby-forum.com/t/chat-equavant-tools/128348 "2008-02-06T23:10:50Z")

</div>

are there any ruby based tools like this http://www.axosoft.com/products/purechat.aspx

---

## [Systemu gem usage](https://www.ruby-forum.com/t/systemu-gem-usage/128342)

<div class="topic-metadata">

**Author:** [@jayson](https://www.ruby-forum.com/u/jayson)\
**Replies:** 0\
**Last updated:** [February 6, 2008, 10:31pm UTC](https://www.ruby-forum.com/t/systemu-gem-usage/128342 "2008-02-06T22:31:18Z")

</div>

Would someone be kind enough to give an overview of the systemu gem, and how it is used. I have looked over the examples, but I am still a bit stumped. Thanks –Jay

---

## [User information through ldap](https://www.ruby-forum.com/t/user-information-through-ldap/127898)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 3\
**Last updated:** [February 6, 2008, 10:10pm UTC](https://www.ruby-forum.com/t/user-information-through-ldap/127898 "2008-02-06T22:10:33Z")

</div>

Hi, i wanna fetch the user information from ldap.If user is authenticated on the basis of there username and password then i wanna fetch more information from ldap server of that particular user can anyone help me ou…

---

## [Alias\_method from singleton\_method\_added](https://www.ruby-forum.com/t/alias-method-from-singleton-method-added/128336)

<div class="topic-metadata">

**Author:** [@ambrice](https://www.ruby-forum.com/u/ambrice)\
**Replies:** 0\
**Last updated:** [February 6, 2008, 9:40pm UTC](https://www.ruby-forum.com/t/alias-method-from-singleton-method-added/128336 "2008-02-06T21:40:09Z")

</div>

I’m trying to alias a method at the point that method is defined. Here is an example that results in the error: NameError: undefined method ‘foo’ for class \`Test’. class Test class \<\< self def singleton\_method\_added…

---

## [Is there an easy way to color/control console output?](https://www.ruby-forum.com/t/is-there-an-easy-way-to-color-control-console-output/128227)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 5\
**Last updated:** [February 6, 2008, 8:17pm UTC](https://www.ruby-forum.com/t/is-there-an-easy-way-to-color-control-console-output/128227 "2008-02-06T20:17:16Z")

</div>

Hello everyone, is there an easy way for me to color my console output? What about updating just a particular x/y coordinate? I don’t have time to learn Tk right now for a graphical GUI but just being able to contro…

---

## [Htauth 1.0.1 Released](https://www.ruby-forum.com/t/htauth-1-0-1-released/128322)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 0\
**Last updated:** [February 6, 2008, 7:29pm UTC](https://www.ruby-forum.com/t/htauth-1-0-1-released/128322 "2008-02-06T19:29:17Z")

</div>

htauth version 1.0.1 has been released. http://copiousfreetime.rubyforge.org/htauth HTAuth is a pure ruby replacement for the Apache support programs htdigest and htpasswd. Command line and API access are provided fo…

---

## [Pattern for "include"ing class methods?](https://www.ruby-forum.com/t/pattern-for-include-ing-class-methods/128247)

<div class="topic-metadata">

**Author:** [@Clifford\_H](https://www.ruby-forum.com/u/Clifford_H)\
**Replies:** 6\
**Last updated:** [February 6, 2008, 7:13pm UTC](https://www.ruby-forum.com/t/pattern-for-include-ing-class-methods/128247 "2008-02-06T19:13:25Z")

</div>

I’m doing some meta-programming where I want to add the same instance and class methods to many other existing classes, which I don’t wish to re-superclass. include works nicely for including instance methods, but t…

---

## [Delegate](https://www.ruby-forum.com/t/delegate/127976)

<div class="topic-metadata">

**Author:** [@kimbrown](https://www.ruby-forum.com/u/kimbrown)\
**Replies:** 18\
**Last updated:** [February 6, 2008, 6:53pm UTC](https://www.ruby-forum.com/t/delegate/127976 "2008-02-06T18:53:58Z")

</div>

Hellow I worte code this code d = System::EventHandler.new { |sender,e| puts “1” } i run code dispay this error wrong number or type of arguments for \`System::EventHandler’ (ArgumentError) The delegate to inform a …

---

## [Anyone use JEdit on Windows?](https://www.ruby-forum.com/t/anyone-use-jedit-on-windows/128257)

<div class="topic-metadata">

**Author:** [@Day](https://www.ruby-forum.com/u/Day)\
**Replies:** 3\
**Last updated:** [February 6, 2008, 5:36pm UTC](https://www.ruby-forum.com/t/anyone-use-jedit-on-windows/128257 "2008-02-06T17:36:43Z")

</div>

I’ve been playing with various editors for working with Ruby and I like JEdit so far with the right plugins, etc… But I am having a bit of a weird problem: I can’t seem to tell the console to associate \*.rb files with…

---

## [Looking for libraries to monitor postgres queries](https://www.ruby-forum.com/t/looking-for-libraries-to-monitor-postgres-queries/128240)

<div class="topic-metadata">

**Author:** [@glacius](https://www.ruby-forum.com/u/glacius)\
**Replies:** 3\
**Last updated:** [February 6, 2008, 5:35pm UTC](https://www.ruby-forum.com/t/looking-for-libraries-to-monitor-postgres-queries/128240 "2008-02-06T17:35:31Z")

</div>

My goal is to display postgres queries as they happen or close to as they happen

---

## [Question about transparent image RMAGIK](https://www.ruby-forum.com/t/question-about-transparent-image-rmagik/128301)

<div class="topic-metadata">

**Author:** [@nephish](https://www.ruby-forum.com/u/nephish)\
**Replies:** 2\
**Last updated:** [February 6, 2008, 5:18pm UTC](https://www.ruby-forum.com/t/question-about-transparent-image-rmagik/128301 "2008-02-06T17:18:28Z")

</div>

Hello there all, i have a simple function to draw an image, but i cannot for the life of me figgure out from the docs how to make it about 20% transparent. def circle\_image(zoom) site = self.site zoomhash = {13 =\> 0…

---

## [How can I use variable as a attribute name](https://www.ruby-forum.com/t/how-can-i-use-variable-as-a-attribute-name/128213)

<div class="topic-metadata">

**Author:** [@ddad01](https://www.ruby-forum.com/u/ddad01)\
**Replies:** 3\
**Last updated:** [February 6, 2008, 5:08pm UTC](https://www.ruby-forum.com/t/how-can-i-use-variable-as-a-attribute-name/128213 "2008-02-06T17:08:19Z")

</div>

I’m unable to use the attribute name (variable) to verify the button with the attribute value exists. I’ve tried the following: #Set Variables $attribute\_nm = “type” $attribute\_val = “submit” #Verify Button Exists …

---

## [Data for eigenclass](https://www.ruby-forum.com/t/data-for-eigenclass/128267)

<div class="topic-metadata">

**Author:** [@Jari\_W](https://www.ruby-forum.com/u/Jari_W)\
**Replies:** 6\
**Last updated:** [February 6, 2008, 4:17pm UTC](https://www.ruby-forum.com/t/data-for-eigenclass/128267 "2008-02-06T16:17:31Z")

</div>

How do I set data at the eigenclass level (data should basically be connected to the class name)? The @@my\_data syntax seems to attach only to the original class in which it was defined, not for any subclasses. And th…

---

## [Bugs in Facets Cloneable?](https://www.ruby-forum.com/t/bugs-in-facets-cloneable/126833)

<div class="topic-metadata">

**Author:** [@sevensoft](https://www.ruby-forum.com/u/sevensoft)\
**Replies:** 5\
**Last updated:** [February 6, 2008, 4:14pm UTC](https://www.ruby-forum.com/t/bugs-in-facets-cloneable/126833 "2008-02-06T16:14:29Z")

</div>

I was just looking at the Cloneable module from the Facets’ library, because it’s useful, and noticed a couple of possible bugs. Is my assessment of this correct? module Cloneable def clone sibling = self.class.new …

---

## [Ruby 1.9 bug, no copy-on-write for MatchData#post\_match](https://www.ruby-forum.com/t/ruby-1-9-bug-no-copy-on-write-for-matchdata-post-match/128296)

<div class="topic-metadata">

**Author:** [@faina](https://www.ruby-forum.com/u/faina)\
**Replies:** 0\
**Last updated:** [February 6, 2008, 3:36pm UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-no-copy-on-write-for-matchdata-post-match/128296 "2008-02-06T15:36:02Z")

</div>

As we found during ruby quiz 155, there is a bug in copy-on-write for Ruby 1.9. The following code size = 100000 \* 100 s = “x” \* size a = \[\] while (m = s.match(/^./)) s = m.post\_match a \<\< s end takes 700 megab…

---

## [CP949 is replica of EUC-KR](https://www.ruby-forum.com/t/cp949-is-replica-of-euc-kr/128274)

<div class="topic-metadata">

**Author:** [@tisphie](https://www.ruby-forum.com/u/tisphie)\
**Replies:** 2\
**Last updated:** [February 6, 2008, 2:39pm UTC](https://www.ruby-forum.com/t/cp949-is-replica-of-euc-kr/128274 "2008-02-06T14:39:53Z")

</div>

ÚÓ ò¹ìÔªÇª¹ CP949ª¬GBKªÎREPLICAªËà÷ªÃªÆª¤ªÞª¹ª¬¡¢CP949ªÎREPLICAêªªÏEUC-KRªÀªÈÞÖª¤ªÞª¹¡£ Index: enc/gbk.c — enc/gbk.c (revision 15376) +++ enc/gbk.c (working copy) @@ -213,4 +213,3 @@ gbk\_is\_allowed\_reverse\_match …

---

## [Ruby Excels not](https://www.ruby-forum.com/t/ruby-excels-not/128288)

<div class="topic-metadata">

**Author:** [@Casimir](https://www.ruby-forum.com/u/Casimir)\
**Replies:** 2\
**Last updated:** [February 6, 2008, 2:20pm UTC](https://www.ruby-forum.com/t/ruby-excels-not/128288 "2008-02-06T14:20:54Z")

</div>

Ok so I wanna play with some spreadsheets. Lets see. Lets copypaste from the pickaxe. require ‘win32ole’ Creates OLE object to Excel excel = WIN32OLE.new(“excel.application”) #and so on… Ruby replies: myExcelApp.…

---

## [Question about mongrel\_cluster in ROR](https://www.ruby-forum.com/t/question-about-mongrel-cluster-in-ror/128290)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 0\
**Last updated:** [February 6, 2008, 1:58pm UTC](https://www.ruby-forum.com/t/question-about-mongrel-cluster-in-ror/128290 "2008-02-06T13:58:53Z")

</div>

Hi all, I wanna know one question about mongrel\_cluster i do’nt know it’s silly question or not cos i am new in ror and apache also. 1: I run the command after configure the mongrel\_cluster like mongrel\_rails cluster…

---

## [Which version do I have then?](https://www.ruby-forum.com/t/which-version-do-i-have-then/128251)

<div class="topic-metadata">

**Author:** [@sebkom](https://www.ruby-forum.com/u/sebkom)\
**Replies:** 3\
**Last updated:** [February 6, 2008, 1:40pm UTC](https://www.ruby-forum.com/t/which-version-do-i-have-then/128251 "2008-02-06T13:40:07Z")

</div>

Hello there! After reading the first half of Chris P.'s online tutorial I decided to buy the book and here I am, preparing my MacBook Pro for my serious studying which I plan to begin in a few hours. However, since I…

---

## [London Ruby User Group - 11th February, 2008](https://www.ruby-forum.com/t/london-ruby-user-group-11th-february-2008/128285)

<div class="topic-metadata">

**Author:** [@Murray\_S](https://www.ruby-forum.com/u/Murray_S)\
**Replies:** 0\
**Last updated:** [February 6, 2008, 12:32pm UTC](https://www.ruby-forum.com/t/london-ruby-user-group-11th-february-2008/128285 "2008-02-06T12:32:51Z")

</div>

Hi all, It’s time once again to dust off your ruby trousers and head on down to trendy Clerkenwell to meet up with the esteemed members of the London Ruby User Group at their February meeting. Date: 11th February, 2…

---

## [Xml/xslt external function](https://www.ruby-forum.com/t/xml-xslt-external-function/128016)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvS\_ue](https://www.ruby-forum.com/u/Une_BSSSSvS_ue)\
**Replies:** 1\
**Last updated:** [February 6, 2008, 12:07pm UTC](https://www.ruby-forum.com/t/xml-xslt-external-function/128016 "2008-02-06T12:07:34Z")

</div>

i want to use an external ruby function "w3ready " within an xsl ssheet in order to transform a given text to unaccentuated. calling the function : \<xsl:template match="/xCard"\> \[…\] \<xsl:for-each select=“GRPS/GRP/\*”\>…

---

## [Testing code that calls a SOAP service with RSpec](https://www.ruby-forum.com/t/testing-code-that-calls-a-soap-service-with-rspec/128281)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 0\
**Last updated:** [February 6, 2008, 11:58am UTC](https://www.ruby-forum.com/t/testing-code-that-calls-a-soap-service-with-rspec/128281 "2008-02-06T11:58:19Z")

</div>

Hey chaps, I have a load of code that is dependent on calling a webservice. Im not sure how to go about writing the tests for it however - presumably I need to mock it somehow? Might someone be able to point me in the…

---

## [How to open an xls file](https://www.ruby-forum.com/t/how-to-open-an-xls-file/128191)

<div class="topic-metadata">

**Author:** [@houdev](https://www.ruby-forum.com/u/houdev)\
**Replies:** 3\
**Last updated:** [February 6, 2008, 10:54am UTC](https://www.ruby-forum.com/t/how-to-open-an-xls-file/128191 "2008-02-06T10:54:00Z")

</div>

Hi, I have a blocking problem and I really need urgent help. i’m very new in ruby and i find it great… I woudl like to open an xls file, but I get the following error : c:/ruby/lib/ruby/site\_ruby/1.8/parseexcel/oles…

---

## [Regexp matching in a block of code](https://www.ruby-forum.com/t/regexp-matching-in-a-block-of-code/128241)

<div class="topic-metadata">

**Author:** [@lmcilwain](https://www.ruby-forum.com/u/lmcilwain)\
**Replies:** 6\
**Last updated:** [February 6, 2008, 10:22am UTC](https://www.ruby-forum.com/t/regexp-matching-in-a-block-of-code/128241 "2008-02-06T10:22:17Z")

</div>

I am trying to create a script that will allow me to compare email addresses with a list of domains to see if they match. If they don’t match then everything is good to go, but if they do match, I want to be able to …

---

## [Implementation of Win32Api with "WNetUseConnection"](https://www.ruby-forum.com/t/implementation-of-win32api-with-wnetuseconnection/128271)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [February 6, 2008, 10:15am UTC](https://www.ruby-forum.com/t/implementation-of-win32api-with-wnetuseconnection/128271 "2008-02-06T10:15:47Z")

</div>

Hi! I am new on RUBY and I have difficulty with the Win32API call. I receive thise message : “rb18.tmp:43:in \`call’: can’t convert NETRESSOURCE into Integer (TypeError)” How I send a struture in the declaration of th…

---

## [ConvertTo vs Cast](https://www.ruby-forum.com/t/convertto-vs-cast/128113)

<div class="topic-metadata">

**Author:** [@Wayne\_K](https://www.ruby-forum.com/u/Wayne_K)\
**Replies:** 8\
**Last updated:** [February 6, 2008, 6:32am UTC](https://www.ruby-forum.com/t/convertto-vs-cast/128113 "2008-02-06T06:32:20Z")

</div>

Consider the following Ruby code: i = 0 while (i \< 1000) i = i + 1 end When run using IronRuby, the (i \< 1000) comparison results in method ConvertToInt32 being invoked to convert local i into an integer, however,…

---

## [Where is the reference document for ruby?](https://www.ruby-forum.com/t/where-is-the-reference-document-for-ruby/128246)

<div class="topic-metadata">

**Author:** [@taowang](https://www.ruby-forum.com/u/taowang)\
**Replies:** 1\
**Last updated:** [February 6, 2008, 5:50am UTC](https://www.ruby-forum.com/t/where-is-the-reference-document-for-ruby/128246 "2008-02-06T05:50:42Z")

</div>

Hi, I was reading topics under http://ruby.activeventure.com/programmingruby/book/win32.html I kept seeing the words “document begining on page XXX”. For example, in above link, “The Win32API module is documented beg…

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

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