# Ruby

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

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

---

## [Term meaning "Class or Module"](https://www.ruby-forum.com/t/term-meaning-class-or-module/192881)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 7\
**Last updated:** [August 8, 2010, 1:46am UTC](https://www.ruby-forum.com/t/term-meaning-class-or-module/192881 "2010-08-08T01:46:10Z")

</div>

Anyone have a term, for an attribute name, meaning “Class or Module”. I probably would just use #class but that’s a keyword so that’s out. So far I’ve tried #scope and #namespace, but neither seem quite right. Any sug…

---

## [Error: could not coerce to class java.lang.Object](https://www.ruby-forum.com/t/error-could-not-coerce-to-class-java-lang-object/192863)

<div class="topic-metadata">

**Author:** [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Replies:** 4\
**Last updated:** [August 7, 2010, 9:23pm UTC](https://www.ruby-forum.com/t/error-could-not-coerce-to-class-java-lang-object/192863 "2010-08-07T21:23:55Z")

</div>

Should this program work? import org.jruby.embed.ScriptingContainer; import org.jruby.javasupport.JavaEmbedUtils; import org.jruby.javasupport.JavaEmbedUtils.EvalUnit; import org.jruby.runtime.builtin.IRubyObject; p…

---

## [Trouble with mysqldump](https://www.ruby-forum.com/t/trouble-with-mysqldump/192893)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 1\
**Last updated:** [August 7, 2010, 8:59pm UTC](https://www.ruby-forum.com/t/trouble-with-mysqldump/192893 "2010-08-07T20:59:55Z")

</div>

when i try program=“C:\\Program Files\\MySQL\\MySQL Server 5.1\\bin \\mysqldump.exe” irb(main):008:0\> system(program) Usage: mysqldump \[OPTIONS\] database \[tables\] OR mysqldump \[OPTIONS\] --databases \[OPTIONS\] DB1 \[DB2…

---

## [java.lang.LinkageError help me!](https://www.ruby-forum.com/t/java-lang-linkageerror-help-me/192813)

<div class="topic-metadata">

**Author:** [@hai\_l](https://www.ruby-forum.com/u/hai_l)\
**Replies:** 2\
**Last updated:** [August 7, 2010, 5:39pm UTC](https://www.ruby-forum.com/t/java-lang-linkageerror-help-me/192813 "2010-08-07T17:39:10Z")

</div>

Hi all, I use NetBean 6.9.1 to run Depot Application demo but it does not run. Here is the error message SEVERE: library socket' could not be loaded: java.lang.LinkageError: loader (instance of java/net/URLClassLoader…

---

## [Parse a Date From a String](https://www.ruby-forum.com/t/parse-a-date-from-a-string/192830)

<div class="topic-metadata">

**Author:** [@arti\_singh](https://www.ruby-forum.com/u/arti_singh)\
**Replies:** 3\
**Last updated:** [August 7, 2010, 5:27pm UTC](https://www.ruby-forum.com/t/parse-a-date-from-a-string/192830 "2010-08-07T17:27:53Z")

</div>

Help!! I get a float when I try to parse a date from a string. The date from the string is in the format “Thu Aug 05 15:00:36 2010” I try date\_var=“Thu Aug 05 15:00:36 2010” date\_var.strptime("%a %b %d %I:%M:%S %Y") …

---

## [Search on text](https://www.ruby-forum.com/t/search-on-text/192882)

<div class="topic-metadata">

**Author:** [@learningruby](https://www.ruby-forum.com/u/learningruby)\
**Replies:** 3\
**Last updated:** [August 7, 2010, 4:41pm UTC](https://www.ruby-forum.com/t/search-on-text/192882 "2010-08-07T16:41:43Z")

</div>

I have a text ........ site.imageList = { images: \[\['http://site/1.jpg', 'http://site/2.jpg', 'http://site/3.jpg'\]\] }; .............. I get this text through Nokogiri::HTML(open(@url)) Full text of this fu…

---

## [Regexp help - substring of a backreference](https://www.ruby-forum.com/t/regexp-help-substring-of-a-backreference/192880)

<div class="topic-metadata">

**Author:** [@iamnotahorse](https://www.ruby-forum.com/u/iamnotahorse)\
**Replies:** 4\
**Last updated:** [August 7, 2010, 4:08pm UTC](https://www.ruby-forum.com/t/regexp-help-substring-of-a-backreference/192880 "2010-08-07T16:08:25Z")

</div>

I’m putting together a web forum and want to parse web addresses that are part of messages into clickable links. This is my attempt, I’m not claiming its perfect but it works: text.gsub!(/http:?/\*(\\w+\[\\w-./~?%&=#;,+:@…

---

## [Win32::Screenshot 0.0.6](https://www.ruby-forum.com/t/win32-screenshot-0-0-6/192876)

<div class="topic-metadata">

**Author:** [@juuser](https://www.ruby-forum.com/u/juuser)\
**Replies:** 0\
**Last updated:** [August 7, 2010, 3:00pm UTC](https://www.ruby-forum.com/t/win32-screenshot-0-0-6/192876 "2010-08-07T15:00:31Z")

</div>

Hello! I’m happy to announce that new version of Win32::Screenshot got just released! You can get it by “gem install win32screenshot”! Win32::Screenshot - Capture Screenshots on Windows with Ruby = 0.0.6 2010-08-07 …

---

## [A problem with "puts"](https://www.ruby-forum.com/t/a-problem-with-puts/192870)

<div class="topic-metadata">

**Author:** [@amiref](https://www.ruby-forum.com/u/amiref)\
**Replies:** 2\
**Last updated:** [August 7, 2010, 1:09pm UTC](https://www.ruby-forum.com/t/a-problem-with-puts/192870 "2010-08-07T13:09:53Z")

</div>

Hi Considering that , “puts” always return “nil” why in below code the highlighted part of code just print the contents of “first,second,third,forth” variable ? for example content of “first” variable is “nil” and wh…

---

## [Class definition outside module](https://www.ruby-forum.com/t/class-definition-outside-module/192866)

<div class="topic-metadata">

**Author:** [@raj\_plays](https://www.ruby-forum.com/u/raj_plays)\
**Replies:** 2\
**Last updated:** [August 7, 2010, 10:27am UTC](https://www.ruby-forum.com/t/class-definition-outside-module/192866 "2010-08-07T10:27:13Z")

</div>

Hi, I have 2 classes, Parser and Util in parser.rb and util.rb respectively. Each has a lot of methods. I want to put them both inside one module but keep the class definition in separate files. So basically there w…

---

## [Memory leak issue after restart of rails application in tomcat](https://www.ruby-forum.com/t/memory-leak-issue-after-restart-of-rails-application-in-tomcat/192300)

<div class="topic-metadata">

**Author:** [@rakeshahuja](https://www.ruby-forum.com/u/rakeshahuja)\
**Replies:** 11\
**Last updated:** [August 7, 2010, 9:02am UTC](https://www.ruby-forum.com/t/memory-leak-issue-after-restart-of-rails-application-in-tomcat/192300 "2010-08-07T09:02:54Z")

</div>

Hello, I am debugging a memory leak issue after the restart of my rails application in tomcat. I am using tomcat manager to stop and start the application. Memory usage goes up after every restart and it becomes unus…

---

## [\[Bug #3468\]\[Closed\] .cvsignore](https://www.ruby-forum.com/t/bug-3468-closed-cvsignore/192868)

<div class="topic-metadata">

**Author:** [@nobu](https://www.ruby-forum.com/u/nobu)\
**Replies:** 0\
**Last updated:** [August 7, 2010, 7:47am UTC](https://www.ruby-forum.com/t/bug-3468-closed-cvsignore/192868 "2010-08-07T07:47:25Z")

</div>

e$B%A%1%C%He(B #3468 e$B$,99?7$5$l$^$7$?!#e(B (by Nobuyoshi N.) e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B This issue was solved with changeset r28898. Kazuhiro, thank y…

---

## [\[bug:trunk\] call File.lchmod via rb\_funcall \[BUG\] vm\_call0: unsupported method type (7)](https://www.ruby-forum.com/t/bug-trunk-call-file-lchmod-via-rb-funcall-bug-vm-call0-unsupported-method-type-7/192856)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 2\
**Last updated:** [August 7, 2010, 6:37am UTC](https://www.ruby-forum.com/t/bug-trunk-call-file-lchmod-via-rb-funcall-bug-vm-call0-unsupported-method-type-7/192856 "2010-08-07T06:37:47Z")

</div>

unimplemented method e$B$re(B rb\_funcall e$B$G8F$S=P$9$He(B \[BUG\] e$B$K$J$k$h$&$G$9!#e(B pathname e$B$Ge(B Pathname#lchmod e$B$r\<BAu$9$k$N$Ke(B File.lchmod e$B$r8F$S=P$=$&$H$7$Fe(B rb\_funcall(rb\_cFile, rb\_intern(“lch…

---

## [Failed to install 'rubynode' gem after Snow Leopard upgrade](https://www.ruby-forum.com/t/failed-to-install-rubynode-gem-after-snow-leopard-upgrade/192860)

<div class="topic-metadata">

**Author:** [@r-a-mueller](https://www.ruby-forum.com/u/r-a-mueller)\
**Replies:** 2\
**Last updated:** [August 7, 2010, 5:46am UTC](https://www.ruby-forum.com/t/failed-to-install-rubynode-gem-after-snow-leopard-upgrade/192860 "2010-08-07T05:46:17Z")

</div>

Hi, I’ve just upgraded to Mac OS X 10.6, and was following the instructions on the Rails blog (Ruby on Rails — Upgrading to Snow Leopard) to upgrade my gems etc. This seemed to work OK, with the exception of the ‘ru…

---

## [How do I include my own java classes?](https://www.ruby-forum.com/t/how-do-i-include-my-own-java-classes/192864)

<div class="topic-metadata">

**Author:** [@audreylee88](https://www.ruby-forum.com/u/audreylee88)\
**Replies:** 2\
**Last updated:** [August 7, 2010, 4:45am UTC](https://www.ruby-forum.com/t/how-do-i-include-my-own-java-classes/192864 "2010-08-07T04:45:25Z")

</div>

Hello List, Today I am learning how to mix .java files with JRuby. I want to jump a barrier which should be fairly low for most of you. I have a file: MyClass.java Here is what is in it: public class MyClass {} I c…

---

## [Expecr error help!](https://www.ruby-forum.com/t/expecr-error-help/192806)

<div class="topic-metadata">

**Author:** [@bloodniece](https://www.ruby-forum.com/u/bloodniece)\
**Replies:** 4\
**Last updated:** [August 6, 2010, 11:05pm UTC](https://www.ruby-forum.com/t/expecr-error-help/192806 "2010-08-06T23:05:00Z")

</div>

Hi Ruby folks! Any ideas? Output and error is below at OUT Also I am fairly new to Ruby…coming from Perl, so what does the w\_f.sync do? thank u! #!/usr/bin/env ruby -w require ‘pty’ require ‘expect’ DN = “/usr/lo…

---

## [Problem with return value](https://www.ruby-forum.com/t/problem-with-return-value/192833)

<div class="topic-metadata">

**Author:** [@amiref](https://www.ruby-forum.com/u/amiref)\
**Replies:** 3\
**Last updated:** [August 6, 2010, 9:49pm UTC](https://www.ruby-forum.com/t/problem-with-return-value/192833 "2010-08-06T21:49:52Z")

</div>

Hi In this code : def test\_method(name) puts name 3+5 end return\_value = test\_method(“James”) puts return\_value why when the last statement executed , “puts” does not return “nil” and return 8?

---

## [Comparing two arrays, too slow](https://www.ruby-forum.com/t/comparing-two-arrays-too-slow/192831)

<div class="topic-metadata">

**Author:** [@joe\_chesak](https://www.ruby-forum.com/u/joe_chesak)\
**Replies:** 5\
**Last updated:** [August 6, 2010, 7:21pm UTC](https://www.ruby-forum.com/t/comparing-two-arrays-too-slow/192831 "2010-08-06T19:21:09Z")

</div>

I don’t have access to the database, but everyday I get a csv dump of all live customer listings. There are around 15,000 live listings. A record contains 3 fields: id, name, description Everyday some new accounts a…

---

## [Connecting to SQL Server 2005](https://www.ruby-forum.com/t/connecting-to-sql-server-2005/192818)

<div class="topic-metadata">

**Author:** [@parulg2386](https://www.ruby-forum.com/u/parulg2386)\
**Replies:** 2\
**Last updated:** [August 6, 2010, 4:03pm UTC](https://www.ruby-forum.com/t/connecting-to-sql-server-2005/192818 "2010-08-06T16:03:51Z")

</div>

I need to connect to SQL server 2005 using Ruby. I went through some posts but did not found much help. It would be great if anyone can help me with this.

---

## [Lt operator on class object, checking a class' superclasses](https://www.ruby-forum.com/t/lt-operator-on-class-object-checking-a-class-superclasses/192821)

<div class="topic-metadata">

**Author:** [@fmwr](https://www.ruby-forum.com/u/fmwr)\
**Replies:** 6\
**Last updated:** [August 6, 2010, 3:14pm UTC](https://www.ruby-forum.com/t/lt-operator-on-class-object-checking-a-class-superclasses/192821 "2010-08-06T15:14:40Z")

</div>

Hi! Do you know a good way to check whether a class is a subclass of a certain class (given the class object, not an instance)? one way would be to check all of klass.superclass, klass.superclass.superclass till nil …

---

## [Converting a website to ruby](https://www.ruby-forum.com/t/converting-a-website-to-ruby/192791)

<div class="topic-metadata">

**Author:** [@kaspir](https://www.ruby-forum.com/u/kaspir)\
**Replies:** 7\
**Last updated:** [August 6, 2010, 1:26pm UTC](https://www.ruby-forum.com/t/converting-a-website-to-ruby/192791 "2010-08-06T13:26:16Z")

</div>

I’m pretty new to ruby, and I’ve been grasping everything that I’ve read pretty well. Now I want to convert my website to ruby (not rails yet) so I can use ruby to create forms with the cgi library. My web hosting doe…

---

## [Project name ownership and conflict](https://www.ruby-forum.com/t/project-name-ownership-and-conflict/192778)

<div class="topic-metadata">

**Author:** [@bizot](https://www.ruby-forum.com/u/bizot)\
**Replies:** 12\
**Last updated:** [August 6, 2010, 1:20pm UTC](https://www.ruby-forum.com/t/project-name-ownership-and-conflict/192778 "2010-08-06T13:20:30Z")

</div>

I recently had a discussion with a fellow Ruby developer that revealed a significant variance in our views about project names. In 2008 I published a Ruby project on GitHub with an MIT license and registered a RubyFor…

---

## [Abstracting exception handling](https://www.ruby-forum.com/t/abstracting-exception-handling/192779)

<div class="topic-metadata">

**Author:** [@himdel](https://www.ruby-forum.com/u/himdel)\
**Replies:** 14\
**Last updated:** [August 6, 2010, 1:02pm UTC](https://www.ruby-forum.com/t/abstracting-exception-handling/192779 "2010-08-06T13:02:07Z")

</div>

Hello, I am interested in abstracting exception handling so it can be included to any script from some external file. First, I want to setup signal handling, and last I want to deal with exceptions. Now, in this littl…

---

## [My script just read one line?](https://www.ruby-forum.com/t/my-script-just-read-one-line/192383)

<div class="topic-metadata">

**Author:** [@junhuiliao](https://www.ruby-forum.com/u/junhuiliao)\
**Replies:** 18\
**Last updated:** [August 6, 2010, 12:25pm UTC](https://www.ruby-forum.com/t/my-script-just-read-one-line/192383 "2010-08-06T12:25:52Z")

</div>

Dear all, My script tried to read from one original tsv file and distribute into new multiple tsv files. Each line of the original file is like this: time\_1, signal\_1, time\_2, signal\_2… time\_4096, signal\_4096. I wou…

---

## [Ruby committers Q&A at RubyKaigi](https://www.ruby-forum.com/t/ruby-committers-q-a-at-rubykaigi/192653)

<div class="topic-metadata">

**Author:** [@Shugo\_M](https://www.ruby-forum.com/u/Shugo_M)\
**Replies:** 10\
**Last updated:** [August 6, 2010, 9:25am UTC](https://www.ruby-forum.com/t/ruby-committers-q-a-at-rubykaigi/192653 "2010-08-06T09:25:46Z")

</div>

e$BA0ED$G$9!#e(B RubyKaigie$B$Ge(BRubye$B%3%\_%C%?e(BQ&Ae$B$H$$$&4k2h$r9T$&M=Dj$G$9!#e(B 日本Ruby会議 2010, 8月27日〜29日 e$B4pK\\E\*$K$O!“2q\>l$+$i%3%%C%?$K\<ALd$r$7$F$$$?$@$$$F!"CE\>e$N%3%%C%?$,$=$l$KEz$($k!“e(B e$B$H$$$&7A\<0$rM…

---

## [Audio Files length](https://www.ruby-forum.com/t/audio-files-length/192804)

<div class="topic-metadata">

**Author:** [@jcubed](https://www.ruby-forum.com/u/jcubed)\
**Replies:** 1\
**Last updated:** [August 6, 2010, 8:58am UTC](https://www.ruby-forum.com/t/audio-files-length/192804 "2010-08-06T08:58:39Z")

</div>

I’m modifying a Radio Automation program that I built with tkSnack for Ruby (which does not work on my computer), to work with Rubygame… One main problem is that I can not find a method to determine how long an audio …

---

## [August Phoenix Ruby User Group Meeting](https://www.ruby-forum.com/t/august-phoenix-ruby-user-group-meeting/192812)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [August 6, 2010, 4:29am UTC](https://www.ruby-forum.com/t/august-phoenix-ruby-user-group-meeting/192812 "2010-08-06T04:29:35Z")

</div>

August Phoenix Ruby U. Group Meeting When: Monday, August 9, 2010 6:30pm door open. Laptop power and WiFi available. 7:00pm Show time 8:30pm Migrate to Four Peaks Brewery Topic: The R Programming Language Ray…

---

## [Ruby watir on Win2008R2](https://www.ruby-forum.com/t/ruby-watir-on-win2008r2/192747)

<div class="topic-metadata">

**Author:** [@debuke](https://www.ruby-forum.com/u/debuke)\
**Replies:** 4\
**Last updated:** [August 5, 2010, 7:20pm UTC](https://www.ruby-forum.com/t/ruby-watir-on-win2008r2/192747 "2010-08-05T19:20:26Z")

</div>

is this possible? i’m running in to LoadErrors and i’ve done all of the things that are suppose to get around this problem…

---

## [Send Text w/ Ruby](https://www.ruby-forum.com/t/send-text-w-ruby/192759)

<div class="topic-metadata">

**Author:** [@matthewmurcia](https://www.ruby-forum.com/u/matthewmurcia)\
**Replies:** 10\
**Last updated:** [August 5, 2010, 7:03pm UTC](https://www.ruby-forum.com/t/send-text-w-ruby/192759 "2010-08-05T19:03:27Z")

</div>

I’m curious if it is possible to send text to a window or web application. I am using the firewatir library, but I don’t think you can do it with that, so just wondering if it is possible with Ruby itself. Thanks!

---

## [Re\[jruby-user\] quest hangs in mysql driver for 15 minutes](https://www.ruby-forum.com/t/re-jruby-user-quest-hangs-in-mysql-driver-for-15-minutes/192032)

<div class="topic-metadata">

**Author:** [@pardeeb](https://www.ruby-forum.com/u/pardeeb)\
**Replies:** 6\
**Last updated:** [August 5, 2010, 6:40pm UTC](https://www.ruby-forum.com/t/re-jruby-user-quest-hangs-in-mysql-driver-for-15-minutes/192032 "2010-08-05T18:40:36Z")

</div>

We have an issue with our web app where occasionally a request will hang in the mysql driver for 15 minutes until we get an idle thread timeout after 900 seconds and the request finally completes after 935 seconds. …

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

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