# Ruby

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

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

---

## [Time, Date and DateTime](https://www.ruby-forum.com/t/time-date-and-datetime/184288)

<div class="topic-metadata">

**Author:** [@Rajinder\_Y](https://www.ruby-forum.com/u/Rajinder_Y)\
**Replies:** 4\
**Last updated:** [March 3, 2010, 5:35pm UTC](https://www.ruby-forum.com/t/time-date-and-datetime/184288 "2010-03-03T17:35:49Z")

</div>

Hi, I am trying to understand the key differences between Time, Date and DateTime classes. When should one use one over the other? Does anyone know of a good post that explains each of these classes and post on how t…

---

## [Rubygems(.org) timing out all the time](https://www.ruby-forum.com/t/rubygems-org-timing-out-all-the-time/184492)

<div class="topic-metadata">

**Author:** [@valafar](https://www.ruby-forum.com/u/valafar)\
**Replies:** 6\
**Last updated:** [March 3, 2010, 3:52pm UTC](https://www.ruby-forum.com/t/rubygems-org-timing-out-all-the-time/184492 "2010-03-03T15:52:16Z")

</div>

Why is that nowdays, when using rubygems 1.3.6, I get following error most of the time when trying to install or update gems: ERROR: While executing gem … (Gem::RemoteFetcher::FetchError) timed out (http://rubygems.o…

---

## [Require java class seems to fail when dploying as .war](https://www.ruby-forum.com/t/require-java-class-seems-to-fail-when-dploying-as-war/184485)

<div class="topic-metadata">

**Author:** [@maartenm](https://www.ruby-forum.com/u/maartenm)\
**Replies:** 3\
**Last updated:** [March 3, 2010, 3:41pm UTC](https://www.ruby-forum.com/t/require-java-class-seems-to-fail-when-dploying-as-war/184485 "2010-03-03T15:41:41Z")

</div>

Dir\[“lib/extensions/\*.jar”\].each do |jar| puts jar val = require jar puts val.to\_s end require ‘lib/classes.jar’ require ‘exceptions’ class ApplicationController \< ActionController::Base include Java include Exc…

---

## [Question about mysql gem](https://www.ruby-forum.com/t/question-about-mysql-gem/184500)

<div class="topic-metadata">

**Author:** [@msiles](https://www.ruby-forum.com/u/msiles)\
**Replies:** 1\
**Last updated:** [March 3, 2010, 3:40pm UTC](https://www.ruby-forum.com/t/question-about-mysql-gem/184500 "2010-03-03T15:40:30Z")

</div>

Hi all, sorry if this question shouldn’t be here, but when I tried to install the mysql gem I getting the following error When I ran gem install mysql gem install mysql ERROR: While executing gem … (Errno::EACCES) …

---

## [Re: Consuming DynamicObjects in IronRuby](https://www.ruby-forum.com/t/re-consuming-dynamicobjects-in-ironruby/184473)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 2\
**Last updated:** [March 3, 2010, 3:39pm UTC](https://www.ruby-forum.com/t/re-consuming-dynamicobjects-in-ironruby/184473 "2010-03-03T15:39:20Z")

</div>

Ironruby-core mailing list removed\_email\_address@domain.invalid http://rubyforge.org/mailman/listinfo/ironruby-core

---

## [Error when running system("jruby ...") twice within jirb?](https://www.ruby-forum.com/t/error-when-running-system-jruby-twice-within-jirb/183764)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 7\
**Last updated:** [March 3, 2010, 3:15pm UTC](https://www.ruby-forum.com/t/error-when-running-system-jruby-twice-within-jirb/183764 "2010-03-03T15:15:20Z")

</div>

Within a jruby project, if I open jirb and do the following system(“jruby -S spec plugins/edit\_view/spec/edit\_view/document\_spec.rb --backtrace”) system(“jruby -S spec plugins/edit\_view/spec/edit\_view/document\_spec.r…

---

## [JRuby Memory Usage](https://www.ruby-forum.com/t/jruby-memory-usage/184499)

<div class="topic-metadata">

**Author:** [@gaja\_s.r](https://www.ruby-forum.com/u/gaja_s.r)\
**Replies:** 2\
**Last updated:** [March 3, 2010, 3:14pm UTC](https://www.ruby-forum.com/t/jruby-memory-usage/184499 "2010-03-03T15:14:09Z")

</div>

Hi, I am runnning a rails application using JRuby 1.2 + Apache Tomcat. But my application runs out of memory and throws an ‘Heap:Out of memory exception’ after serving a few requests. The problem persists even after…

---

## [Jrubyc problem](https://www.ruby-forum.com/t/jrubyc-problem/183013)

<div class="topic-metadata">

**Author:** [@fla](https://www.ruby-forum.com/u/fla)\
**Replies:** 7\
**Last updated:** [March 3, 2010, 2:48pm UTC](https://www.ruby-forum.com/t/jrubyc-problem/183013 "2010-03-03T14:48:23Z")

</div>

Hallo, I installed Bioruby with jruby setup.rb. then I run this script with jruby #!/usr/bin/env jruby require ‘bio’ creating a Bio::Sequence::NA object containing ambiguous alphabets ambiguous\_seq = Bio::Sequence::…

---

## [Class.forName class not found exception](https://www.ruby-forum.com/t/class-forname-class-not-found-exception/184483)

<div class="topic-metadata">

**Author:** [@anbusivakani](https://www.ruby-forum.com/u/anbusivakani)\
**Replies:** 1\
**Last updated:** [March 3, 2010, 2:47pm UTC](https://www.ruby-forum.com/t/class-forname-class-not-found-exception/184483 "2010-03-03T14:47:13Z")

</div>

require ‘java’ module JavaLang include\_package ‘java.lang’ end module JavaSql include\_package ‘java.sql’ end JavaLang::Class.forName(“com.mysql.jdbc.Driver”).newInstance … . . . … This is the code that i tri…

---

## [Win32ole excel "links to other workbooks"](https://www.ruby-forum.com/t/win32ole-excel-links-to-other-workbooks/184454)

<div class="topic-metadata">

**Author:** [@zak](https://www.ruby-forum.com/u/zak)\
**Replies:** 3\
**Last updated:** [March 3, 2010, 2:45pm UTC](https://www.ruby-forum.com/t/win32ole-excel-links-to-other-workbooks/184454 "2010-03-03T14:45:27Z")

</div>

Hi! I use win32ole to access excel-workbooks. When ruby opens a workbook with links to other workbooks an alert box pops up and you have to confirm whether you want to keep those links or not. This is very annoying …

---

## [Application initialization failed: no such file to load -- time](https://www.ruby-forum.com/t/application-initialization-failed-no-such-file-to-load-time/184482)

<div class="topic-metadata">

**Author:** [@maartenm](https://www.ruby-forum.com/u/maartenm)\
**Replies:** 1\
**Last updated:** [March 3, 2010, 2:41pm UTC](https://www.ruby-forum.com/t/application-initialization-failed-no-such-file-to-load-time/184482 "2010-03-03T14:41:22Z")

</div>

I’m trying to understand deployment under Tomcat. I have a working configuration under an Eclipse tomcat. I simply copied the whole structure into the webapps directory of a standalone tomcat. And copied the jruby-ra…

---

## [Extension of java class throws internal jruby exception: HELP](https://www.ruby-forum.com/t/extension-of-java-class-throws-internal-jruby-exception-help/184413)

<div class="topic-metadata">

**Author:** [@Jonathan\_Shore](https://www.ruby-forum.com/u/Jonathan_Shore)\
**Replies:** 3\
**Last updated:** [March 3, 2010, 2:32pm UTC](https://www.ruby-forum.com/t/extension-of-java-class-throws-internal-jruby-exception-help/184413 "2010-03-03T14:32:34Z")

</div>

Ok, there is a bug/feature in jruby such that the # of arguments to a ruby class ctor must equal the number of args for the java superclass, assuming one is extending a java super-class. In: http://jira.codehaus.org…

---

## [Ext/openssl $B$N(Bbuildfix$B$K$D$$$F(B](https://www.ruby-forum.com/t/ext-openssl-b-n-bbuildfix-b-k-d-f-b/184462)

<div class="topic-metadata">

**Author:** [@KOSAKI\_Motohiro](https://www.ruby-forum.com/u/KOSAKI_Motohiro)\
**Replies:** 1\
**Last updated:** [March 3, 2010, 12:19pm UTC](https://www.ruby-forum.com/t/ext-openssl-b-n-bbuildfix-b-k-d-f-b/184462 "2010-03-03T12:19:41Z")

</div>

---

## [How to call the garbage collector?](https://www.ruby-forum.com/t/how-to-call-the-garbage-collector/184481)

<div class="topic-metadata">

**Author:** [@alby](https://www.ruby-forum.com/u/alby)\
**Replies:** 1\
**Last updated:** [March 3, 2010, 10:44am UTC](https://www.ruby-forum.com/t/how-to-call-the-garbage-collector/184481 "2010-03-03T10:44:18Z")

</div>

Believe me, I’ve googled it, but didn’t find. I’ve seen gazillion of times how to call the GC. But now it’s the first time in my life I want to do it… and I can’t find how to do it.

---

## [Cannot get backtick to work on Windows](https://www.ruby-forum.com/t/cannot-get-backtick-to-work-on-windows/184351)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 6\
**Last updated:** [March 3, 2010, 8:54am UTC](https://www.ruby-forum.com/t/cannot-get-backtick-to-work-on-windows/184351 "2010-03-03T08:54:51Z")

</div>

Hello, I spotted a difference between MRI and JRuby while working on windows. The following works on MRI, not on JRuby: wmic PROCESS get Processid,CommandLine wmic is a built-in Windows tool to achieve all sorts of …

---

## [How to register on the IRC channel ? + Missing jgem.bat (JRuby 1.4.0)](https://www.ruby-forum.com/t/how-to-register-on-the-irc-channel-missing-jgem-bat-jruby-1-4-0/184450)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 9\
**Last updated:** [March 3, 2010, 8:46am UTC](https://www.ruby-forum.com/t/how-to-register-on-the-irc-channel-missing-jgem-bat-jruby-1-4-0/184450 "2010-03-03T08:46:39Z")

</div>

Hi, I noticed that jruby 1.4.0 apparently doesn’t have jgem.bat (it has jgem, but not the .bat version). Is it a known issue ? (I’m using jruby -S gem install instead but it’s been a bit puzzling at first). I want…

---

## [Find and replace with values from array with gsub](https://www.ruby-forum.com/t/find-and-replace-with-values-from-array-with-gsub/184465)

<div class="topic-metadata">

**Author:** [@Allan](https://www.ruby-forum.com/u/Allan)\
**Replies:** 5\
**Last updated:** [March 3, 2010, 4:46am UTC](https://www.ruby-forum.com/t/find-and-replace-with-values-from-array-with-gsub/184465 "2010-03-03T04:46:06Z")

</div>

Hello, I may be over thinking this situation, so I need another person to give me a hint. I have an app that has a database of baseball players. I’m trying to create a feature where you can copy and paste your blog t…

---

## [Training](https://www.ruby-forum.com/t/training/75929)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [March 3, 2010, 4:42am UTC](https://www.ruby-forum.com/t/training/75929 "2010-03-03T04:42:51Z")

</div>

I’m looking for someone that is a very good presenter/teacher and is very adept with Ruby and Ruby on Rails who would be willing to offer personal training. The person would preferably be using Mac OS X, although it …

---

## [Random integer within a range?](https://www.ruby-forum.com/t/random-integer-within-a-range/184386)

<div class="topic-metadata">

**Author:** [@xxreiichixx](https://www.ruby-forum.com/u/xxreiichixx)\
**Replies:** 9\
**Last updated:** [March 3, 2010, 4:05am UTC](https://www.ruby-forum.com/t/random-integer-within-a-range/184386 "2010-03-03T04:05:08Z")

</div>

I must create a little game; the one who play it must choose 2 numbers, the beginning and the end of a range, and the program generate a secret random number within that range, so the player must guess it! But the pro…

---

## [Html/JavaScript/CSS code ouput in TextArea-- Best Ways](https://www.ruby-forum.com/t/html-javascript-css-code-ouput-in-textarea-best-ways/184470)

<div class="topic-metadata">

**Author:** [@smarter](https://www.ruby-forum.com/u/smarter)\
**Replies:** 1\
**Last updated:** [March 3, 2010, 3:33am UTC](https://www.ruby-forum.com/t/html-javascript-css-code-ouput-in-textarea-best-ways/184470 "2010-03-03T03:33:18Z")

</div>

Hello: What would be the best way to Output Code in TextArea for a UI component? The Rails App View is pure HTML and JavaScript. render in text for controller action and the text is the code string. The \< and \> et…

---

## [Here's a filtered file/dir copy, FWIW](https://www.ruby-forum.com/t/heres-a-filtered-file-dir-copy-fwiw/183208)

<div class="topic-metadata">

**Author:** [@nicksnels](https://www.ruby-forum.com/u/nicksnels)\
**Replies:** 11\
**Last updated:** [March 3, 2010, 2:35am UTC](https://www.ruby-forum.com/t/heres-a-filtered-file-dir-copy-fwiw/183208 "2010-03-03T02:35:59Z")

</div>

I had a need to do a filtered directory-tree copy, but didn’t see anything in the std lib docs (or from googling) other than FileUtils.cp\_r which doesn’t do filtering, so I made alternate versions of that and FileUtil…

---

## [Spec Installation in RC2](https://www.ruby-forum.com/t/spec-installation-in-rc2/184459)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 3\
**Last updated:** [March 2, 2010, 11:31pm UTC](https://www.ruby-forum.com/t/spec-installation-in-rc2/184459 "2010-03-02T23:31:10Z")

</div>

I know in RC1 I had to manually copy the following files: copy C:\\ironruby\\lib\\ironruby\\gems\\bin\\spec C:\\ironruby\\bin\\ispec copy C:\\ironruby\\lib\\ironruby\\gems\\bin\\spec.bat C:\\ironruby\\bin\\ispec.bat But in RC2 do I ha…

---

## [Can't install sqlite3 on Windows XP: Please Help!](https://www.ruby-forum.com/t/cant-install-sqlite3-on-windows-xp-please-help/184404)

<div class="topic-metadata">

**Author:** [@vaughajj](https://www.ruby-forum.com/u/vaughajj)\
**Replies:** 7\
**Last updated:** [March 2, 2010, 9:08pm UTC](https://www.ruby-forum.com/t/cant-install-sqlite3-on-windows-xp-please-help/184404 "2010-03-02T21:08:56Z")

</div>

I am trying to install ruby on windows with gem sqlite3 version 1.2.3 I have followed all the instructions here: http://wiki.devchix.com/index.php?title=Server\_2003 and get stuck on the sqlite install: here is the err…

---

## [Rcov report includes jruby core classes](https://www.ruby-forum.com/t/rcov-report-includes-jruby-core-classes/183648)

<div class="topic-metadata">

**Author:** [@pyr0](https://www.ruby-forum.com/u/pyr0)\
**Replies:** 6\
**Last updated:** [March 2, 2010, 8:54pm UTC](https://www.ruby-forum.com/t/rcov-report-includes-jruby-core-classes/183648 "2010-03-02T20:54:51Z")

</div>

When I run rcov using jruby, my reports contain all of the jruby core classes along with strange classes like (eval), (recognized\_optimized), (erb), and others. The same thing does not occur when i switch over to c r…

---

## [Step through debugging for jruby?](https://www.ruby-forum.com/t/step-through-debugging-for-jruby/182936)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 13\
**Last updated:** [March 2, 2010, 8:47pm UTC](https://www.ruby-forum.com/t/step-through-debugging-for-jruby/182936 "2010-03-02T20:47:15Z")

</div>

Anybody know of a step through debugger for jruby? It looks like you can use the pure ruby version: jruby --debug -rdebug go.rb but what do people out there use besides that? -r

---

## [Specify java settings within ruby?](https://www.ruby-forum.com/t/specify-java-settings-within-ruby/183954)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 4\
**Last updated:** [March 2, 2010, 8:27pm UTC](https://www.ruby-forum.com/t/specify-java-settings-within-ruby/183954 "2010-03-02T20:27:56Z")

</div>

Is it possible to set java properties from within ruby? like setting the XULRunnerPath in this example jruby --server --fast -J-Dorg.eclipse.swt.browser.XULRunnerPath=“e:\\installs\\xulrunner” but within a .rb file? T…

---

## [Declaring fields without assigning a (non-null) value?](https://www.ruby-forum.com/t/declaring-fields-without-assigning-a-non-null-value/183765)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 4\
**Last updated:** [March 2, 2010, 8:26pm UTC](https://www.ruby-forum.com/t/declaring-fields-without-assigning-a-non-null-value/183765 "2010-03-02T20:26:45Z")

</div>

xraid (sorry, I don’t know your real name) tried to clean up examples/fields.duby by having the constructor assign a new ArrayList. However the existing syntax was my attempt to do a type declaration + assignment to n…

---

## [Unable to load again](https://www.ruby-forum.com/t/unable-to-load-again/184027)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [March 2, 2010, 8:19pm UTC](https://www.ruby-forum.com/t/unable-to-load-again/184027 "2010-03-02T20:19:44Z")

</div>

Got this recently… E:\\installs\\ruby191p376\\lib\\ruby\\gems\\1.9.1\\gems\\redcar-0.3.2dev\>e:\\dev\\ruby\\downloads\\jruby\\bin\\jruby.EXE –server --fast -J-Dorg.eclipse.swt.browser.XULRunnerPath=“e:\\installs\\xulrunner” E:\\instal…

---

## [MainExitException](https://www.ruby-forum.com/t/mainexitexception/184130)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [March 2, 2010, 8:00pm UTC](https://www.ruby-forum.com/t/mainexitexception/184130 "2010-03-02T20:00:59Z")

</div>

Saw this once. Main.java:117:in run': java.lang.NoClassDefFoundError: org/jruby/exceptions/MainExitException from Main.java:97:inmain’ Anybody seen anything like it?

---

## [Ruby container glassfish v3 - library problem](https://www.ruby-forum.com/t/ruby-container-glassfish-v3-library-problem/184123)

<div class="topic-metadata">

**Author:** [@dalton](https://www.ruby-forum.com/u/dalton)\
**Replies:** 4\
**Last updated:** [March 2, 2010, 7:57pm UTC](https://www.ruby-forum.com/t/ruby-container-glassfish-v3-library-problem/184123 "2010-03-02T19:57:29Z")

</div>

Hello there, I asked in irc a few hours ago, but no one could solve my problem. I deploy a JRoR app which depends on several jar-files in glassfish v3. Deploying as a war is not a problem. I tried out the option “Ruby …

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

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