# Ruby

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

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

---

## [Who's Charles angry at?](https://www.ruby-forum.com/t/whos-charles-angry-at/147808)

<div class="topic-metadata">

**Author:** [@jballanc](https://www.ruby-forum.com/u/jballanc)\
**Replies:** 16\
**Last updated:** [September 6, 2008, 1:58pm UTC](https://www.ruby-forum.com/t/whos-charles-angry-at/147808 "2008-09-06T13:58:47Z")

</div>

Well, I just came across this in my feed reader: Mymymy…such vitriol! Look, I’ve never had anything against JRuby. In fact, I’m very interested (and less involved than I should be) in MacRuby (which, I noticed, did n…

---

## [Redeploy Issue on Tomcat 6](https://www.ruby-forum.com/t/redeploy-issue-on-tomcat-6/147792)

<div class="topic-metadata">

**Author:** [@axelseaa](https://www.ruby-forum.com/u/axelseaa)\
**Replies:** 3\
**Last updated:** [September 6, 2008, 1:53pm UTC](https://www.ruby-forum.com/t/redeploy-issue-on-tomcat-6/147792 "2008-09-06T13:53:30Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I started out asking over on the Tomcat list, then went to the ruby netbeans list, now I’m here! Below is essentially what we are trying to accomplish, and the error’s w…

---

## [\[ANN\] JVMScript](https://www.ruby-forum.com/t/ann-jvmscript/147881)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [September 6, 2008, 1:45pm UTC](https://www.ruby-forum.com/t/ann-jvmscript/147881 "2008-09-06T13:45:17Z")

</div>

In honor of the new project-hosting site kenai.com, I’ve spun off a library I’ve been working on as part of JRuby. I’m hoping to find interested parties to help improve it and test it (I have tests, but testing a libr…

---

## [JVMScript](https://www.ruby-forum.com/t/jvmscript/147880)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [September 6, 2008, 1:42pm UTC](https://www.ruby-forum.com/t/jvmscript/147880 "2008-09-06T13:42:57Z")

</div>

In honor of the new project-hosting site kenai.com, I’ve spun off a library I’ve been working on as part of JRuby. I’m hoping to find interested parties to help improve it and test it (I have tests, but testing a libr…

---

## [Irc.rb](https://www.ruby-forum.com/t/irc-rb/147854)

<div class="topic-metadata">

**Author:** [@KEKEKE](https://www.ruby-forum.com/u/KEKEKE)\
**Replies:** 2\
**Last updated:** [September 6, 2008, 12:56pm UTC](https://www.ruby-forum.com/t/irc-rb/147854 "2008-09-06T12:56:06Z")

</div>

Hi, I’ve created an irc.rb (attached) which mimics IronPython’s pyc.py. It is failing on this line: Microsoft::Scripting::ScriptCode.save\_to\_assembly(outfile, codes.to\_array()) With the following exception… Any help…

---

## [TCPSocket#initialize slow on Windows](https://www.ruby-forum.com/t/tcpsocket-initialize-slow-on-windows/147644)

<div class="topic-metadata">

**Author:** [@Victor\_SZverokS\_She](https://www.ruby-forum.com/u/Victor_SZverokS_She)\
**Replies:** 5\
**Last updated:** [September 6, 2008, 11:48am UTC](https://www.ruby-forum.com/t/tcpsocket-initialize-slow-on-windows/147644 "2008-09-06T11:48:12Z")

</div>

ruby 1.8.7 (2008-08-11 patchlevel 72) \[i386-mswin32\_71\] TCPSocket.new(‘localhost’, 80) takes something like 1.5-2 sec each call. (Test program only consists of profiling of this line with ruby-prof). Can this be a bug…

---

## [Compile Ruby Script](https://www.ruby-forum.com/t/compile-ruby-script/147865)

<div class="topic-metadata">

**Author:** [@acampos](https://www.ruby-forum.com/u/acampos)\
**Replies:** 1\
**Last updated:** [September 6, 2008, 11:30am UTC](https://www.ruby-forum.com/t/compile-ruby-script/147865 "2008-09-06T11:30:06Z")

</div>

Hi, Is there a compile option available for IronRuby so that a script could be compiled and then re-executed repeatedly? The PythonEngine has a compile option that facilitates that and I’m trying to determine if Iron…

---

## [Error when running an exe created with rubyscript2exe](https://www.ruby-forum.com/t/error-when-running-an-exe-created-with-rubyscript2exe/147575)

<div class="topic-metadata">

**Author:** [@rakeshgpai](https://www.ruby-forum.com/u/rakeshgpai)\
**Replies:** 4\
**Last updated:** [September 6, 2008, 10:12am UTC](https://www.ruby-forum.com/t/error-when-running-an-exe-created-with-rubyscript2exe/147575 "2008-09-06T10:12:12Z")

</div>

I am getting the following error when i created an exe from a ruby script. Has any got any idea why this comes? Thanks, Rakesh C:/Users/Pi/eee/eee.livequote1.exe.3/lib/rubygems/custom\_require.rb:27:in gem\_o riginal\_…

---

## [String#\<\< and Ruby threads](https://www.ruby-forum.com/t/string-and-ruby-threads/147838)

<div class="topic-metadata">

**Author:** [@mrkohrea](https://www.ruby-forum.com/u/mrkohrea)\
**Replies:** 3\
**Last updated:** [September 6, 2008, 8:44am UTC](https://www.ruby-forum.com/t/string-and-ruby-threads/147838 "2008-09-06T08:44:29Z")

</div>

This gist code raises java.lang.ArrayOutOfBounds exception: If you change \<\< to += though, the code does not raise. Here’s the stack trace: Does it look like a JRuby problem or am I ignorant about something with Ru…

---

## [How to parse \<pubDate\> in RSS](https://www.ruby-forum.com/t/how-to-parse-pubdate-in-rss/147851)

<div class="topic-metadata">

**Author:** [@ruby\_tl](https://www.ruby-forum.com/u/ruby_tl)\
**Replies:** 2\
**Last updated:** [September 6, 2008, 6:23am UTC](https://www.ruby-forum.com/t/how-to-parse-pubdate-in-rss/147851 "2008-09-06T06:23:35Z")

</div>

Hi Experts, Is there another way to get a valid date from pubDate in RSS like this example: Wed, 23 Feb 2005 16:12:56 GMT …to a format (YYYYMMDD hh:mm:ss) that is recognizable by the parsers? Ruby G.

---

## [Dynamically assigning class constants](https://www.ruby-forum.com/t/dynamically-assigning-class-constants/147849)

<div class="topic-metadata">

**Author:** [@moredip](https://www.ruby-forum.com/u/moredip)\
**Replies:** 4\
**Last updated:** [September 6, 2008, 3:37am UTC](https://www.ruby-forum.com/t/dynamically-assigning-class-constants/147849 "2008-09-06T03:37:34Z")

</div>

Hi folks, I have a class definition as follows: class Level attr\_reader :name, :rank def initialize( name, rank ) @name, @rank = name, rank end TRACE = Comparable.new( :TRACE, 1000 ) DEBUG = Comparable.new( :DEBUG…

---

## [When to use which jar files for calling Ruby from Java](https://www.ruby-forum.com/t/when-to-use-which-jar-files-for-calling-ruby-from-java/147856)

<div class="topic-metadata">

**Author:** [@kampers](https://www.ruby-forum.com/u/kampers)\
**Replies:** 0\
**Last updated:** [September 6, 2008, 2:47am UTC](https://www.ruby-forum.com/t/when-to-use-which-jar-files-for-calling-ruby-from-java/147856 "2008-09-06T02:47:15Z")

</div>

Sometimes I see instructions for including jruby-complete.jar in a Java project that uses JRuby and sometimes jruby.jar How do you know which one you need? What are the differences? To unsubscribe from this list, ple…

---

## [Accessor methods for class methods](https://www.ruby-forum.com/t/accessor-methods-for-class-methods/147836)

<div class="topic-metadata">

**Author:** [@leveille](https://www.ruby-forum.com/u/leveille)\
**Replies:** 5\
**Last updated:** [September 6, 2008, 1:20am UTC](https://www.ruby-forum.com/t/accessor-methods-for-class-methods/147836 "2008-09-06T01:20:43Z")

</div>

It seems odd that cattr\_\* (i.e. cattr\_accessor, cattr\_reader, cattr\_writer) is not in the native Ruby and that you have to require active support and rubygems to get this to work. Including the rails stuff appears to …

---

## [Wordnet 0.0.5](https://www.ruby-forum.com/t/wordnet-0-0-5/147834)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [September 6, 2008, 12:51am UTC](https://www.ruby-forum.com/t/wordnet-0-0-5/147834 "2008-09-06T00:51:27Z")

</div>

Version 0.0.5 of Ruby-WordNet has been released. Ruby-Wordnet is a Ruby implementation of the WordNetÂ® lexical dictionary, an online lexical reference system whose design is inspired by current psycholinguistic theo…

---

## [Singular vs Shared Development of Ruby projects](https://www.ruby-forum.com/t/singular-vs-shared-development-of-ruby-projects/147847)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 0\
**Last updated:** [September 6, 2008, 12:18am UTC](https://www.ruby-forum.com/t/singular-vs-shared-development-of-ruby-projects/147847 "2008-09-06T00:18:28Z")

</div>

Hi there, This may be an awkard question. Should development be “singular”, or should it happen in a very BIG “shared” environment? A somewhat lengthy explanation comes next, in an attempt to make myself, and this q…

---

## [Optimize bigdivrem1](https://www.ruby-forum.com/t/optimize-bigdivrem1/147790)

<div class="topic-metadata">

**Author:** [@TOYOFUKU\_Chikanobu](https://www.ruby-forum.com/u/TOYOFUKU_Chikanobu)\
**Replies:** 1\
**Last updated:** [September 6, 2008, 12:18am UTC](https://www.ruby-forum.com/t/optimize-bigdivrem1/147790 "2008-09-06T00:18:05Z")

</div>

e$BK-J!$G$9!#e(B e$B8e$m$Ne(B zero e$B$,O"$J$C$F$$$kItJ,$N=hM}$r\>J$-$^$9!#e(B Bignum#to\_s e$B$N4p?t$,#2$N$Y$-\>h$N$H$-$KHs\>o$K8z2L$,$“$j$^$9!#e(B e$B!J$b$C$H$be(B rb\_big2str0 e$B$G4p?t$,#2$N$Y$-\>h$N$H$-$rJL=hM}$K$9$l$…

---

## [Closing DialogBox in FXRuby](https://www.ruby-forum.com/t/closing-dialogbox-in-fxruby/147832)

<div class="topic-metadata">

**Author:** [@mawiniarski](https://www.ruby-forum.com/u/mawiniarski)\
**Replies:** 1\
**Last updated:** [September 6, 2008, 12:08am UTC](https://www.ruby-forum.com/t/closing-dialogbox-in-fxruby/147832 "2008-09-06T00:08:43Z")

</div>

Greetings, I’ve got opened MainWindow and DialogBox in which I want to manipulate some data, using entry form and methods. How to close DialogBox to return to MainWindow not using standard “OK” “Cancel” buttons ? Th…

---

## [Anyone having issues with rubyforge at the moment?](https://www.ruby-forum.com/t/anyone-having-issues-with-rubyforge-at-the-moment/147763)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 1\
**Last updated:** [September 5, 2008, 10:35pm UTC](https://www.ruby-forum.com/t/anyone-having-issues-with-rubyforge-at-the-moment/147763 "2008-09-05T22:35:41Z")

</div>

Hi, Is anyone having trouble with rubyforge at the moment? Macintosh:myequity greg$ sudo gem update rails Password: Updating installed gems WARNING: RubyGems 1.2+ index not found for: RubyGems will revert to legac…

---

## [How to search a website](https://www.ruby-forum.com/t/how-to-search-a-website/147807)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 9\
**Last updated:** [September 5, 2008, 8:36pm UTC](https://www.ruby-forum.com/t/how-to-search-a-website/147807 "2008-09-05T20:36:37Z")

</div>

Hi all, I want send a query to a website(which has a search button), wait for the query result, then fetch the webpage. I wonder which library is good for this. Thanks, Li

---

## [\-X:SaveAssemblies](https://www.ruby-forum.com/t/x-saveassemblies/147828)

<div class="topic-metadata">

**Author:** [@KEKEKE](https://www.ruby-forum.com/u/KEKEKE)\
**Replies:** 0\
**Last updated:** [September 5, 2008, 8:02pm UTC](https://www.ruby-forum.com/t/x-saveassemblies/147828 "2008-09-05T20:02:15Z")

</div>

Hi, I find it odd that the ConsoleOptions class only has a single FileName string property. This forces the creation of pyc.py for creating a DLL with one or more files to compile, whereas I believe the functionality…

---

## [Bug in the YAML library: #dump fails for certain multi-line strings](https://www.ruby-forum.com/t/bug-in-the-yaml-library-dump-fails-for-certain-multi-line-strings/147783)

<div class="topic-metadata">

**Author:** [@johnt519](https://www.ruby-forum.com/u/johnt519)\
**Replies:** 1\
**Last updated:** [September 5, 2008, 7:08pm UTC](https://www.ruby-forum.com/t/bug-in-the-yaml-library-dump-fails-for-certain-multi-line-strings/147783 "2008-09-05T19:08:59Z")

</div>

Hey guys, I stumbled across what is a bug in the YAML library. It does not properly encode certain multi-line strings. Fire up irb, and try the following: require ‘yaml’ =\> true s3 = “\\n Do I work?\\nNo indent” …

---

## [Need a 40 LOC (ignoring comments) to be shorter -- suggestions wanted](https://www.ruby-forum.com/t/need-a-40-loc-ignoring-comments-to-be-shorter-suggestions-wanted/147762)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 11\
**Last updated:** [September 5, 2008, 6:59pm UTC](https://www.ruby-forum.com/t/need-a-40-loc-ignoring-comments-to-be-shorter-suggestions-wanted/147762 "2008-09-05T18:59:03Z")

</div>

Hi All, My middle-school granddaughter posed the following challenge to me: Within 10 minutes, Use the digits 3 to 7 in any order to form a three-digit multiplicand and a two-digit multiplier such that their product …

---

## [Ruby based mysql sniffer](https://www.ruby-forum.com/t/ruby-based-mysql-sniffer/147805)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 2\
**Last updated:** [September 5, 2008, 6:15pm UTC](https://www.ruby-forum.com/t/ruby-based-mysql-sniffer/147805 "2008-09-05T18:15:45Z")

</div>

therei sone in perl. i am looking for a equavalent in ruby. i just want to trace the sql statements being executed by mysql as i cannot debug my client app to find out what sql it is sending out to the database. http…

---

## [Experiences building IronRuby from source](https://www.ruby-forum.com/t/experiences-building-ironruby-from-source/147768)

<div class="topic-metadata">

**Author:** [@Hello\_Sticky](https://www.ruby-forum.com/u/Hello_Sticky)\
**Replies:** 6\
**Last updated:** [September 5, 2008, 6:02pm UTC](https://www.ruby-forum.com/t/experiences-building-ironruby-from-source/147768 "2008-09-05T18:02:53Z")

</div>

Hi, I’ve just downloaded the IronRuby source code because I’d like to create something akin to IronPython’s pyc.py which can put one or more ruby files into an Assembly which I can later load into a partial trust doma…

---

## [Why use \_\_FILE\_, \_\_LINE\_\_ in class\_eval?](https://www.ruby-forum.com/t/why-use-file-line-in-class-eval/147821)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 1\
**Last updated:** [September 5, 2008, 5:58pm UTC](https://www.ruby-forum.com/t/why-use-file-line-in-class-eval/147821 "2008-09-05T17:58:46Z")

</div>

I’ve noticed in code that some people do: class\_eval src amd some do class\_eval src, FILE, LINE What exactly is the difference and why should I use one over the other? Thanks for your help.

---

## [Camping web framework question](https://www.ruby-forum.com/t/camping-web-framework-question/147818)

<div class="topic-metadata">

**Author:** [@his2000x](https://www.ruby-forum.com/u/his2000x)\
**Replies:** 0\
**Last updated:** [September 5, 2008, 5:22pm UTC](https://www.ruby-forum.com/t/camping-web-framework-question/147818 "2008-09-05T17:22:14Z")

</div>

hi everone! my camping server is strage. i do typing that camping tutorial’s code. and, enter the next command ‘sudo ruby camping /home/his/blog.rb’ i’ve successfully connected to my server. so, i enter the next ke…

---

## [.png to .jpg with image\_voodoo results in CMYK (not RGB)](https://www.ruby-forum.com/t/png-to-jpg-with-image-voodoo-results-in-cmyk-not-rgb/147816)

<div class="topic-metadata">

**Author:** [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Replies:** 0\
**Last updated:** [September 5, 2008, 5:08pm UTC](https://www.ruby-forum.com/t/png-to-jpg-with-image-voodoo-results-in-cmyk-not-rgb/147816 "2008-09-05T17:08:55Z")

</div>

Using this code, def save\_as\_jpeg(src\_path, dest\_path) ImageVoodoo.with\_image("#{src\_path}") do |img| img.save “#{dest\_path}” end end I’m attempting to convert .png format images (RGB color, by definition, as I un…

---

## [Alias\_accessor](https://www.ruby-forum.com/t/alias-accessor/147812)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 0\
**Last updated:** [September 5, 2008, 4:54pm UTC](https://www.ruby-forum.com/t/alias-accessor/147812 "2008-09-05T16:54:54Z")

</div>

I don’t understand why something like this isn’t in core. class Module def alias\_accessor(new, old) alias\_method(new, old) alias\_method("#{new}=", "#{old}=") end end Is there some other way to handle this…

---

## [Win32 unicode filename support?](https://www.ruby-forum.com/t/win32-unicode-filename-support/85381)

<div class="topic-metadata">

**Author:** [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Replies:** 5\
**Last updated:** [September 5, 2008, 4:10pm UTC](https://www.ruby-forum.com/t/win32-unicode-filename-support/85381 "2008-09-05T16:10:19Z")

</div>

Hi, I’m reading the win32-utils docs ( http://rubyforge.org/docman/?group\_id=85 ) to try to determine whether Unicode filename support is provided by the win32-file module? I didn’t see much mention of unicode, exce…

---

## [How to use a template library class using rubyclr](https://www.ruby-forum.com/t/how-to-use-a-template-library-class-using-rubyclr/147794)

<div class="topic-metadata">

**Author:** [@Harshad\_Wankhede](https://www.ruby-forum.com/u/Harshad_Wankhede)\
**Replies:** 0\
**Last updated:** [September 5, 2008, 3:20pm UTC](https://www.ruby-forum.com/t/how-to-use-a-template-library-class-using-rubyclr/147794 "2008-09-05T15:20:59Z")

</div>

Hi, I have a created a dll using c# .net. The dll contains a few function with accept template while execution. window.Get(SearchCriteria.ByText(“buttonname”)) Where Button is the template which is to be passed to ge…

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

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