# Ruby

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

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

---

## [JRuby on Rails heap/memory problems](https://www.ruby-forum.com/t/jruby-on-rails-heap-memory-problems/149581)

<div class="topic-metadata">

**Author:** [@Anders\_SSSSstergaar](https://www.ruby-forum.com/u/Anders_SSSSstergaar)\
**Replies:** 1\
**Last updated:** [September 26, 2008, 6:40pm UTC](https://www.ruby-forum.com/t/jruby-on-rails-heap-memory-problems/149581 "2008-09-26T18:40:17Z")

</div>

Hi there, I have a Ruby on Rails application that I am attempting porting to JRuby running in a Tomcat container. I use the latest stable Tomcat, JRuby 1.1.4, and a proper warble setup. Previously, the application ha…

---

## [JRuby team at JVM Lang Summit](https://www.ruby-forum.com/t/jruby-team-at-jvm-lang-summit/149606)

<div class="topic-metadata">

**Author:** [@headius](https://www.ruby-forum.com/u/headius)\
**Replies:** 0\
**Last updated:** [September 26, 2008, 6:14pm UTC](https://www.ruby-forum.com/t/jruby-team-at-jvm-lang-summit/149606 "2008-09-26T18:14:20Z")

</div>

Sorry for the quiet list and delay in responding to emails folks; a substantial portion of the JRuby team is in California this week attending the JVM Languages Summit. We’ll be back and responsive again after today, …

---

## [How to get terminal dimensions without using curses or ncurses?](https://www.ruby-forum.com/t/how-to-get-terminal-dimensions-without-using-curses-or-ncurses/149540)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 8\
**Last updated:** [September 26, 2008, 5:51pm UTC](https://www.ruby-forum.com/t/how-to-get-terminal-dimensions-without-using-curses-or-ncurses/149540 "2008-09-26T17:51:23Z")

</div>

I’d like to be able to print to terminal and do some reasonable formatting, without going to the trouble of learning curses. I simply need to know the dimensions of the terminal, but that info doesn’t appear to be ava…

---

## [Start ruby process](https://www.ruby-forum.com/t/start-ruby-process/149586)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 3\
**Last updated:** [September 26, 2008, 5:40pm UTC](https://www.ruby-forum.com/t/start-ruby-process/149586 "2008-09-26T17:40:45Z")

</div>

how to start a ruby process that is not dependent on the process initiaing it. i tried doing system(‘ruby myCron.rb’) but as soon as my process ended, the mycron.rb process disappeared. any ideas

---

## [Rcairo 1.8.0](https://www.ruby-forum.com/t/rcairo-1-8-0/149596)

<div class="topic-metadata">

**Author:** [@Kouhei\_S](https://www.ruby-forum.com/u/Kouhei_S)\
**Replies:** 0\
**Last updated:** [September 26, 2008, 5:21pm UTC](https://www.ruby-forum.com/t/rcairo-1-8-0/149596 "2008-09-26T17:21:14Z")

</div>

Hi, I released rcairo(\*1) 1.8.0 that supports cairo(\*2) 1.8.0 released at today: http://raa.ruby-lang.org/project/rcairo/ (\*1) A library to use cairo from Ruby. (\*2) A 2D graphics library that is used by GTK+/Firef…

---

## [Short question on regex in Ruby](https://www.ruby-forum.com/t/short-question-on-regex-in-ruby/149587)

<div class="topic-metadata">

**Author:** [@crenner](https://www.ruby-forum.com/u/crenner)\
**Replies:** 6\
**Last updated:** [September 26, 2008, 4:44pm UTC](https://www.ruby-forum.com/t/short-question-on-regex-in-ruby/149587 "2008-09-26T16:44:24Z")

</div>

Hi, I have a little problem with a regex in Ruby: I have twos strings: string1 = “He is the 20th.” string2 = “25th” I wrote this to “extract” the place (20 or 25 respectively): place1 = string1.gsub(/.(\\d+)th./,’\\1…

---

## [Ruby](https://www.ruby-forum.com/t/ruby/149557)

<div class="topic-metadata">

**Author:** [@chaitanya](https://www.ruby-forum.com/u/chaitanya)\
**Replies:** 1\
**Last updated:** [September 26, 2008, 4:25pm UTC](https://www.ruby-forum.com/t/ruby/149557 "2008-09-26T16:25:46Z")

</div>

how do i get started with Ruby and Rails

---

## [Should I be able to access compiled Groovy classes from JRuby?](https://www.ruby-forum.com/t/should-i-be-able-to-access-compiled-groovy-classes-from-jruby/149521)

<div class="topic-metadata">

**Author:** [@nabblee](https://www.ruby-forum.com/u/nabblee)\
**Replies:** 2\
**Last updated:** [September 26, 2008, 4:17pm UTC](https://www.ruby-forum.com/t/should-i-be-able-to-access-compiled-groovy-classes-from-jruby/149521 "2008-09-26T16:17:32Z")

</div>

Nevermind the perversity of the question. Shouldn’t it be possible? If Groovy compiles to bytecode, why can’t I use the class from JRuby? In the jar I’ve included, I can access all of the Java classes, but none of t…

---

## [Json for extjs (without rails)](https://www.ruby-forum.com/t/json-for-extjs-without-rails/147922)

<div class="topic-metadata">

**Author:** [@gurpal2000](https://www.ruby-forum.com/u/gurpal2000)\
**Replies:** 13\
**Last updated:** [September 26, 2008, 4:11pm UTC](https://www.ruby-forum.com/t/json-for-extjs-without-rails/147922 "2008-09-26T16:11:04Z")

</div>

Hi I trying to generate some simple json for extjs use without rails. Now say if i have a array of MyObject. Do i have to define my own to\_json? Is there a library that would say convert an array of objects to json …

---

## [Win32OLE](https://www.ruby-forum.com/t/win32ole/149582)

<div class="topic-metadata">

**Author:** [@Masaki\_S](https://www.ruby-forum.com/u/Masaki_S)\
**Replies:** 0\
**Last updated:** [September 26, 2008, 3:02pm UTC](https://www.ruby-forum.com/t/win32ole/149582 "2008-09-26T15:02:47Z")

</div>

e$B=uED$G$9!#e(B e$B$A$g$C$H=PCY$l$^$7$?!#e(B e$B$I$3$^$G=$@5$9$kI,MW$,$"$k$+GD0.$7$-$l$F$$$J$$$N$G$9$,!“e(B Encoding.default\_internale$B$NF3F~$KH\<$$e(BWin32OLEe$BB&$K$be(B e$B\<j$r2C$($?J}$,$h$$e(B(e$B\<j$r2C$($kI,MW$…

---

## [When running the application in parallel threads, lot of time is spent in making a java method call](https://www.ruby-forum.com/t/when-running-the-application-in-parallel-threads-lot-of-time-is-spent-in-making-a-java-method-call/149579)

<div class="topic-metadata">

**Author:** [@rajg](https://www.ruby-forum.com/u/rajg)\
**Replies:** 0\
**Last updated:** [September 26, 2008, 2:48pm UTC](https://www.ruby-forum.com/t/when-running-the-application-in-parallel-threads-lot-of-time-is-spent-in-making-a-java-method-call/149579 "2008-09-26T14:48:41Z")

</div>

Hello, We are using jruby in our application.While working on the performance issue of our application It was found out that one of the reasons where time is being taken is while making calls to java method from th…

---

## [One-Liners Mashup (#177)](https://www.ruby-forum.com/t/one-liners-mashup-177/149551)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 5\
**Last updated:** [September 26, 2008, 12:05pm UTC](https://www.ruby-forum.com/t/one-liners-mashup-177/149551 "2008-09-26T12:05:52Z")

</div>

Thanks to everyone who joined in on the one-liners mashup. I think part of the challenge to the mashup was coming up with new problems. It seems that, unless you’ve already solved the problem, it takes a bit of intuit…

---

## [\[Feature #494\] Errno.const\_missing](https://www.ruby-forum.com/t/feature-494-errno-const-missing/146782)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 2\
**Last updated:** [September 26, 2008, 10:27am UTC](https://www.ruby-forum.com/t/feature-494-errno-const-missing/146782 "2008-09-26T10:27:47Z")

</div>

Feature #494: Errno.const\_missing http://redmine.ruby-lang.org/issues/show/494 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal #493 \[ruby-dev:35957\]e$B$N%(%i!\<%a%C%;!\<%8$Ge(BErrno::NOME…

---

## [Invocation of ruby interpreter for .rb files under bash](https://www.ruby-forum.com/t/invocation-of-ruby-interpreter-for-rb-files-under-bash/149500)

<div class="topic-metadata">

**Author:** [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Replies:** 6\
**Last updated:** [September 26, 2008, 10:16am UTC](https://www.ruby-forum.com/t/invocation-of-ruby-interpreter-for-rb-files-under-bash/149500 "2008-09-26T10:16:03Z")

</div>

Hello, this is not really related to the core language by itself but I don’t remember how to have the interpreter launched when typing foo.rb or foo (if foo is the name of the script) under bash ? I remember that I ha…

---

## [Ruby\_debug bug: breakpoint may break in inappropriate files](https://www.ruby-forum.com/t/ruby-debug-bug-breakpoint-may-break-in-inappropriate-files/149567)

<div class="topic-metadata">

**Author:** [@toddlc](https://www.ruby-forum.com/u/toddlc)\
**Replies:** 0\
**Last updated:** [September 26, 2008, 10:12am UTC](https://www.ruby-forum.com/t/ruby-debug-bug-breakpoint-may-break-in-inappropriate-files/149567 "2008-09-26T10:12:26Z")

</div>

FYI, I have encountered the following bug with ruby\_debug breakpoints: A breakpoint will break in any file being executed for which the current line number matches the breakpoint line number and the breakpoint filenam…

---

## [Is there a way to find the class methods of a class, just like 'methods' finds the instance methods?](https://www.ruby-forum.com/t/is-there-a-way-to-find-the-class-methods-of-a-class-just-like-methods-finds-the-instance-methods/149552)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 5\
**Last updated:** [September 26, 2008, 9:59am UTC](https://www.ruby-forum.com/t/is-there-a-way-to-find-the-class-methods-of-a-class-just-like-methods-finds-the-instance-methods/149552 "2008-09-26T09:59:02Z")

</div>

The subject says it all, really. Thanks, Ken

---

## [Win32 unicode commandline and console](https://www.ruby-forum.com/t/win32-unicode-commandline-and-console/149554)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 0\
**Last updated:** [September 26, 2008, 7:07am UTC](https://www.ruby-forum.com/t/win32-unicode-commandline-and-console/149554 "2008-09-26T07:07:18Z")

</div>

e$B$3$s$K$A$O!"$J$+$\`$ie(B(e$B$&e(B)e$B$G$9!#e(B feature freezee$B$G$9$,!"e(BWindowse$B$K$$1$ke(BUnicodee$B%3%^%s%I%i%$%s5Ze(B e$B$Se(BUnicodee$B%3%s%=!\<%k=PNO$K$D$$$F$b!"e(BEncoding.default\_internal e$B$N5DO@$N?d0$r…

---

## [freeze$BMn$AJf=&$$(B](https://www.ruby-forum.com/t/freeze-bmn-ajf-b/149547)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 2\
**Last updated:** [September 26, 2008, 4:59am UTC](https://www.ruby-forum.com/t/freeze-bmn-ajf-b/149547 "2008-09-26T04:59:14Z")

</div>

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B e$B%3!\<%I%U%j!\<%:$K4V$K9g$o$J$+$C$?$b$N$,$$$/$D$+$"$j$^$9$N$G!“e(B e$B%j%j!\<%9%^%M!\<%8%c$NH=CG$r$”$\*$0I,MW$,$"$j$^$9!#e(B Encoding.default\_internal e$B\<h$j9~$$^$9!#e(BYuguie$B$5$s$…

---

## [Add "Error" suffix for Encoding Exceptions](https://www.ruby-forum.com/t/add-error-suffix-for-encoding-exceptions/148796)

<div class="topic-metadata">

**Author:** [@sugie](https://www.ruby-forum.com/u/sugie)\
**Replies:** 17\
**Last updated:** [September 26, 2008, 4:44am UTC](https://www.ruby-forum.com/t/add-error-suffix-for-encoding-exceptions/148796 "2008-09-26T04:44:37Z")

</div>

e$B:XF#$H?=$7$^$9!#e(B Encodinge$B%/%i%9$K$O!";0$D$NNc30%/%i%9e(B ConversionUndefined InvalidByteSequence NoConverter e$B$,$"$j$^$9$,!"$3$l$i$O:G8e$K!Ve(BErrore$B!W$,IU$$$F$$$^$;$s!#e(B e$B$\[$H$s$I$NAH$\_9~$\_Nc30%/%i…

---

## [Web framework camping's problem](https://www.ruby-forum.com/t/web-framework-campings-problem/149553)

<div class="topic-metadata">

**Author:** [@his2000x](https://www.ruby-forum.com/u/his2000x)\
**Replies:** 0\
**Last updated:** [September 26, 2008, 4:20am UTC](https://www.ruby-forum.com/t/web-framework-campings-problem/149553 "2008-09-26T04:20:50Z")

</div>

hi all, sorry, i know that this site is ruby forum. but , i don’t find that camping’s forum or mailing list. camping and rails’s code style is similar. i want create table and column . and it’s just i want to print …

---

## [Is snapshot.tar.gz broken?](https://www.ruby-forum.com/t/is-snapshot-tar-gz-broken/149461)

<div class="topic-metadata">

**Author:** [@KIMURA\_Koichi](https://www.ruby-forum.com/u/KIMURA_Koichi)\
**Replies:** 3\
**Last updated:** [September 26, 2008, 3:26am UTC](https://www.ruby-forum.com/t/is-snapshot-tar-gz-broken/149461 "2008-09-26T03:26:46Z")

</div>

e$BLZB\<$G$9!#e(B e$BK\\F|AaD+e(B(JST)e$B@8@.$Ne(B snapshot.tar.gz e$B$\*$h$Se(B stable-snapshot.tar.gze$B$G$9$,e(B e$B$I$A$i$b%@%&%s%m!\<%I$9$k$H!"e(B45e$B%P%$%H$7$+$J$$$N$G$9$,$3$A$i$NLdBj$G$7$g$&e(B e$B$+e(B? hexdump…

---

## [How to run a standalone Ruby application in Windows XP?](https://www.ruby-forum.com/t/how-to-run-a-standalone-ruby-application-in-windows-xp/149537)

<div class="topic-metadata">

**Author:** [@thiel](https://www.ruby-forum.com/u/thiel)\
**Replies:** 2\
**Last updated:** [September 26, 2008, 12:59am UTC](https://www.ruby-forum.com/t/how-to-run-a-standalone-ruby-application-in-windows-xp/149537 "2008-09-26T00:59:21Z")

</div>

I am new to Ruby and I made a Ruby application that have to run as as a standalone application under Windows XP. Can anyone help me to explain how to do that? Thanks in advance, Thiel Ps By the way, I love the Ruby …

---

## [How to wrap a long string](https://www.ruby-forum.com/t/how-to-wrap-a-long-string/149511)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 4\
**Last updated:** [September 26, 2008, 12:44am UTC](https://www.ruby-forum.com/t/how-to-wrap-a-long-string/149511 "2008-09-26T00:44:44Z")

</div>

Hi all, I need to wrap a long string into several small segments. I search the forum and see a few solutions for that. I copy one script and run it on my Vista(with very small change) and here are the output: C:\\Doc…

---

## [How to read a PIPE in unbuffered way?](https://www.ruby-forum.com/t/how-to-read-a-pipe-in-unbuffered-way/149453)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 3\
**Last updated:** [September 26, 2008, 12:03am UTC](https://www.ruby-forum.com/t/how-to-read-a-pipe-in-unbuffered-way/149453 "2008-09-26T00:03:48Z")

</div>

Hi, I’d like to know the Ruby equivalent to the following Perl code: open(PIPE,“ngrep dst port 80 |”); select(PIPE); $| = 1; # make unbuffered select(STDOUT); $| = 1; # make unbuffered while() { chomp($\_); s/ …

---

## [Can JRuby override a Java class's methods?](https://www.ruby-forum.com/t/can-jruby-override-a-java-classs-methods/149530)

<div class="topic-metadata">

**Author:** [@nabblee](https://www.ruby-forum.com/u/nabblee)\
**Replies:** 4\
**Last updated:** [September 25, 2008, 11:29pm UTC](https://www.ruby-forum.com/t/can-jruby-override-a-java-classs-methods/149530 "2008-09-25T23:29:14Z")

</div>

I would like to use JRuby to change the behavior of a Java class already deployed in a JVM by overriding its methods and inserting my own JRuby code in its place. (FWIW, I am really trying to override the method of a …

---

## [Getting the right class with inheritance and super()](https://www.ruby-forum.com/t/getting-the-right-class-with-inheritance-and-super/149443)

<div class="topic-metadata">

**Author:** [@kyle\_s](https://www.ruby-forum.com/u/kyle_s)\
**Replies:** 11\
**Last updated:** [September 25, 2008, 9:31pm UTC](https://www.ruby-forum.com/t/getting-the-right-class-with-inheritance-and-super/149443 "2008-09-25T21:31:19Z")

</div>

I’m wondering what the right way is to go about getting the right class with inheritance and super() Take the following class I’m using for a graphing tool: Like the name says, it creates a fixed size array. The \<\< o…

---

## [This prog keeps stopping again and again](https://www.ruby-forum.com/t/this-prog-keeps-stopping-again-and-again/149438)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 2\
**Last updated:** [September 25, 2008, 5:15pm UTC](https://www.ruby-forum.com/t/this-prog-keeps-stopping-again-and-again/149438 "2008-09-25T17:15:56Z")

</div>

i have put enough exception handlers. but this prog keeps stalling after some time. how do i fix it. Wed Sep 24 10:30:16 -0700 2008 Wed Sep 24 10:30:22 -0700 2008 c:/ruby/lib/ruby/1.8/openssl/buffering.rb:35:in sysre…

---

## [Ruby https post](https://www.ruby-forum.com/t/ruby-https-post/149508)

<div class="topic-metadata">

**Author:** [@cristianprodan](https://www.ruby-forum.com/u/cristianprodan)\
**Replies:** 1\
**Last updated:** [September 25, 2008, 4:45pm UTC](https://www.ruby-forum.com/t/ruby-https-post/149508 "2008-09-25T16:45:59Z")

</div>

Hello, I’m trying to make a post request to a server. This is the code I use: require ‘net/http’ require ‘uri’ res = Net::HTTP.post\_form(URI.parse(‘https://someValidURL’), {:trans\_id =\> “123456”, :amount =\> “20.00”…

---

## [\[Feature:1.9\] pack format 'm' based on RFC 4648](https://www.ruby-forum.com/t/feature-1-9-pack-format-m-based-on-rfc-4648/146477)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 13\
**Last updated:** [September 25, 2008, 3:42pm UTC](https://www.ruby-forum.com/t/feature-1-9-pack-format-m-based-on-rfc-4648/146477 "2008-09-25T15:42:57Z")

</div>

e$B1sF#$G$9!#e(B Python e$B$Ne(B base64.py e$B$Oe(B RFC 3548 e$B=5r$G$9$,!"e(BRuby e$B$Ne(B pack e$B$Ne(B m e$B$O8=:\_e(B RFC 2045 e$B=5r$G!"$A$g$C$H8E$$$G$9!#e(B e$B$=$3$Ge(B RFC 4648 e$B$K=\`5r$9$k$N$O$I$&$G$7$g$&$+!#e(…

---

## [Famous Ruby Personalities: Who do you recommend?](https://www.ruby-forum.com/t/famous-ruby-personalities-who-do-you-recommend/149478)

<div class="topic-metadata">

**Author:** [@indianguru](https://www.ruby-forum.com/u/indianguru)\
**Replies:** 1\
**Last updated:** [September 25, 2008, 3:22pm UTC](https://www.ruby-forum.com/t/famous-ruby-personalities-who-do-you-recommend/149478 "2008-09-25T15:22:57Z")

</div>

RubyLearning pays tribute to the Famous Ruby Personalities (Rock Stars and Rising Stars) that have helped Ruby developers and enthusiasts have fun, joy and be happy while programming! Who do you recommend? Satish …

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

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