# Ruby

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

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

---

## [When to Run the garbage collector?](https://www.ruby-forum.com/t/when-to-run-the-garbage-collector/107992)

<div class="topic-metadata">

**Author:** [@gpygood](https://www.ruby-forum.com/u/gpygood)\
**Replies:** 6\
**Last updated:** [June 29, 2007, 5:29pm UTC](https://www.ruby-forum.com/t/when-to-run-the-garbage-collector/107992 "2007-06-29T17:29:45Z")

</div>

hi,I want to use ruby’s garbage collector GC.start but when use it,and when not use it?

---

## [DBI, and SQLite Problems](https://www.ruby-forum.com/t/dbi-and-sqlite-problems/108111)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 5\
**Last updated:** [June 29, 2007, 5:25pm UTC](https://www.ruby-forum.com/t/dbi-and-sqlite-problems/108111 "2007-06-29T17:25:44Z")

</div>

Uhoh! I need to work with MySQL databases, and my job is to enter in maybe 7000 entries into various tables. Since I’m getting paid by the hour, entering the data in by hand would be a great way to save for college b…

---

## [Java ByteArrayOutputStream alternative in ruby](https://www.ruby-forum.com/t/java-bytearrayoutputstream-alternative-in-ruby/108148)

<div class="topic-metadata">

**Author:** [@Googy](https://www.ruby-forum.com/u/Googy)\
**Replies:** 3\
**Last updated:** [June 29, 2007, 4:58pm UTC](https://www.ruby-forum.com/t/java-bytearrayoutputstream-alternative-in-ruby/108148 "2007-06-29T16:58:41Z")

</div>

Hi, I am porting a library from java to ruby. My problem is simulating ByteArrayOutputStream in ruby. I want to pack bytes integers and all other kinds of data in to a stream buffer then get it as a packed string a…

---

## [Stuck While "Bulk updating Gem source index for: http://gems](https://www.ruby-forum.com/t/stuck-while-bulk-updating-gem-source-index-for-http-gems/107762)

<div class="topic-metadata">

**Author:** [@Isarian](https://www.ruby-forum.com/u/Isarian)\
**Replies:** 2\
**Last updated:** [June 29, 2007, 4:54pm UTC](https://www.ruby-forum.com/t/stuck-while-bulk-updating-gem-source-index-for-http-gems/107762 "2007-06-29T16:54:41Z")

</div>

Hi all, I have a small server which I want to get Ruby on Rails working on. I’ve installed Ruby and RubyGems, but when I try to install any package through RubyGems, the server load climbs out of control, and the ins…

---

## [: compile error (SyntaxError)](https://www.ruby-forum.com/t/compile-error-syntaxerror/108166)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [June 29, 2007, 4:03pm UTC](https://www.ruby-forum.com/t/compile-error-syntaxerror/108166 "2007-06-29T16:03:36Z")

</div>

e$B0J2\<$N$h$&$K!"e(Byield e$B$r\<B9T$9$k$H!"e(Bcompile error e$B$H$J$j$^$9$,!"e(B e$B$=$Ne(B compile error e$B$N9T$N@hF,$N%3%m%s$NA0$K2?$+I=\<($5$l$k$3e(B e$B$H$,0U?^$5$l$F$$$k$h$&$K;W$($k$N$O5$$N$;$$$G$7$g$&$+!#e(B % …

---

## [Installation query!](https://www.ruby-forum.com/t/installation-query/108134)

<div class="topic-metadata">

**Author:** [@Ujjwal\_T](https://www.ruby-forum.com/u/Ujjwal_T)\
**Replies:** 2\
**Last updated:** [June 29, 2007, 3:12pm UTC](https://www.ruby-forum.com/t/installation-query/108134 "2007-06-29T15:12:29Z")

</div>

Hey all, I tried installing Rails on Windows through Gems… I am getting this error: ERROR: While executing gem … Gem::RemoteFetcher::FetchError Getaddrinfo: no address associated with hostname.\<SocketError\> Any cl…

---

## [Current Binding.of\_caller](https://www.ruby-forum.com/t/current-binding-of-caller/108100)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 2\
**Last updated:** [June 29, 2007, 3:11pm UTC](https://www.ruby-forum.com/t/current-binding-of-caller/108100 "2007-06-29T15:11:29Z")

</div>

Is there are current Binding.of\_caller? Thanks, T.

---

## [Rake::Application#run question](https://www.ruby-forum.com/t/rake-application-run-question/108162)

<div class="topic-metadata">

**Author:** [@gendag](https://www.ruby-forum.com/u/gendag)\
**Replies:** 0\
**Last updated:** [June 29, 2007, 2:58pm UTC](https://www.ruby-forum.com/t/rake-application-run-question/108162 "2007-06-29T14:58:27Z")

</div>

Hi all, I can’t figure out what this means (taken from rake rdoc documentation): Rake::Application#run() Run the Rake application. The run method performs the following three steps: Initialize the command line opti…

---

## [SQL Parser](https://www.ruby-forum.com/t/sql-parser/108147)

<div class="topic-metadata">

**Author:** [@gkogler](https://www.ruby-forum.com/u/gkogler)\
**Replies:** 1\
**Last updated:** [June 29, 2007, 2:26pm UTC](https://www.ruby-forum.com/t/sql-parser/108147 "2007-06-29T14:26:21Z")

</div>

Hi I’m looking for a SQL parser written in Ruby. The parser should handle the full SQL92 spec, including subselects and the like. I’m only interested in SELECT-Statements though. The parser should deliver at least a…

---

## [Line number in Proc#inspect](https://www.ruby-forum.com/t/line-number-in-proc-inspect/108152)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [June 29, 2007, 2:24pm UTC](https://www.ruby-forum.com/t/line-number-in-proc-inspect/108152 "2007-06-29T14:24:21Z")

</div>

lambda e$B$rI=\<($7$?;~!"9THV9f$,e(B 0 e$B$K$J$k$N$G$9$,$3$l$O0U?^$;$6e(B e$B$k$b$N$G$O$J$$$G$7$g$&$+!#e(B % ./ruby -ve 'p lambda {} p lambda {} p lambda {} ’ ruby 1.9.0 (2007-06-29 patchlevel 0) \[i686-linux\] #\<Pro…

---

## [Modules and Class --- what is that ? --](https://www.ruby-forum.com/t/modules-and-class-what-is-that/108129)

<div class="topic-metadata">

**Author:** [@nightingale2k1](https://www.ruby-forum.com/u/nightingale2k1)\
**Replies:** 4\
**Last updated:** [June 29, 2007, 1:13pm UTC](https://www.ruby-forum.com/t/modules-and-class-what-is-that/108129 "2007-06-29T13:13:10Z")

</div>

Hi … I am newb in Ruby world. I am get used with PHP and Java before, therefore I got confused when I learn ruby syntax I have a question what is the difference between Modules and Class ? Also, how to know all meth…

---

## [Include\_class,how to define it?](https://www.ruby-forum.com/t/include-class-how-to-define-it/108133)

<div class="topic-metadata">

**Author:** [@gpygood](https://www.ruby-forum.com/u/gpygood)\
**Replies:** 2\
**Last updated:** [June 29, 2007, 10:34am UTC](https://www.ruby-forum.com/t/include-class-how-to-define-it/108133 "2007-06-29T10:34:11Z")

</div>

Hey,I like ruby’s mixin with “include” method,now I want to include\_class, but,how to define it? thanks class Module def include\_class(klass) end end class Foo def foo end end class Bar include\_class Foo en…

---

## [Calling private method in ruby](https://www.ruby-forum.com/t/calling-private-method-in-ruby/108132)

<div class="topic-metadata">

**Author:** [@chucky](https://www.ruby-forum.com/u/chucky)\
**Replies:** 5\
**Last updated:** [June 29, 2007, 9:57am UTC](https://www.ruby-forum.com/t/calling-private-method-in-ruby/108132 "2007-06-29T09:57:43Z")

</div>

Hi there, I have a little problem regarding private methods in Ruby. I have the following case: class MyClass private def my\_method puts “something from my method” end end myClass = MyClass.new begin myClass.m…

---

## [Dynamic sort\_by criteria, making it DRY](https://www.ruby-forum.com/t/dynamic-sort-by-criteria-making-it-dry/108017)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 4\
**Last updated:** [June 29, 2007, 8:15am UTC](https://www.ruby-forum.com/t/dynamic-sort-by-criteria-making-it-dry/108017 "2007-06-29T08:15:39Z")

</div>

I am presently using a sort\_by on my array =\> buddies = user\_buddies.sort\_by {|item| item.last\_seen\_at} I would like to be able to do the same , based on a variable @criteria set to the item key to be used @crit…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/108127)

<div class="topic-metadata">

**Author:** [@Beatrix\_Willius](https://www.ruby-forum.com/u/Beatrix_Willius)\
**Replies:** 0\
**Last updated:** [June 29, 2007, 7:53am UTC](https://www.ruby-forum.com/t/no-subject/108127 "2007-06-29T07:53:35Z")

</div>

unsubscribe

---

## [SEGV with -Ku](https://www.ruby-forum.com/t/segv-with-ku/246511)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [June 29, 2007, 7:47am UTC](https://www.ruby-forum.com/t/segv-with-ku/246511 "2007-06-29T07:47:34Z")

</div>

\-Ku e$B$Ge(B test e$B$rF0$+$9$He(B SEGV e$B$7$^$9!#e(B % ./ruby -vKu test/runner.rb net ruby 1.9.0 (2007-06-29 patchlevel 0) \[i686-linux\] /home/akr/ruby/yarvo0/ruby/test/net/http/test\_http.rb:4: – control frame -----…

---

## [RUBY\_LIB, RUBY\_ARCHLIB unavailable?](https://www.ruby-forum.com/t/ruby-lib-ruby-archlib-unavailable/108124)

<div class="topic-metadata">

**Author:** [@adambeazley](https://www.ruby-forum.com/u/adambeazley)\
**Replies:** 2\
**Last updated:** [June 29, 2007, 7:10am UTC](https://www.ruby-forum.com/t/ruby-lib-ruby-archlib-unavailable/108124 "2007-06-29T07:10:31Z")

</div>

Hello, Is there a reason why the following constants aren’t defined for the ruby runtime? Is there another way to access them that I’m not finding? Thanks, -Adam Index: version.c — version.c (revision 12654) +…

---

## [Net/smtp TLS auth?](https://www.ruby-forum.com/t/net-smtp-tls-auth/108101)

<div class="topic-metadata">

**Author:** [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Replies:** 4\
**Last updated:** [June 29, 2007, 6:59am UTC](https://www.ruby-forum.com/t/net-smtp-tls-auth/108101 "2007-06-29T06:59:30Z")

</div>

i’m trying to do some net/smtp operations and my smtp server requires TLS authentication. is that possible with net/smtp? Thanks.

---

## [Double colon in class definition?](https://www.ruby-forum.com/t/double-colon-in-class-definition/108118)

<div class="topic-metadata">

**Author:** [@rlorimor](https://www.ruby-forum.com/u/rlorimor)\
**Replies:** 1\
**Last updated:** [June 29, 2007, 6:26am UTC](https://www.ruby-forum.com/t/double-colon-in-class-definition/108118 "2007-06-29T06:26:28Z")

</div>

What does the double colon mean in a class definition. e.g. ActiveRecord::Base ? I couldn’t locate it in the docs. I suspect it’s akin to a category or a namespace. The only documentation on double-colon that I h…

---

## [Inline C and Memory](https://www.ruby-forum.com/t/inline-c-and-memory/108120)

<div class="topic-metadata">

**Author:** [@chillexistence](https://www.ruby-forum.com/u/chillexistence)\
**Replies:** 0\
**Last updated:** [June 29, 2007, 5:53am UTC](https://www.ruby-forum.com/t/inline-c-and-memory/108120 "2007-06-29T05:53:36Z")

</div>

So the more objects you store in ruby the longer mark and sweep takes for GC because there are more objects to iterate over. Makes sense. If you have a machine with 8 gigs of RAM and want to fill up all the memory to…

---

## [Chinese Search Parameters/Unicode Support](https://www.ruby-forum.com/t/chinese-search-parameters-unicode-support/108117)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 0\
**Last updated:** [June 29, 2007, 4:53am UTC](https://www.ruby-forum.com/t/chinese-search-parameters-unicode-support/108117 "2007-06-29T04:53:04Z")

</div>

Okay a preface, I wish to keep this as simple as possible, so I’m trying to work off the basic ruby library with no gems installed (would not have a problem with this however) Basically, I wish to have the program pro…

---

## [Playing with $stdout](https://www.ruby-forum.com/t/playing-with-stdout/108112)

<div class="topic-metadata">

**Author:** [@daworm](https://www.ruby-forum.com/u/daworm)\
**Replies:** 1\
**Last updated:** [June 29, 2007, 3:26am UTC](https://www.ruby-forum.com/t/playing-with-stdout/108112 "2007-06-29T03:26:12Z")

</div>

Hi, I’m trying to create a library of functions for programs that use a command line interface. One feature I’d like to implement is a date\_selector. What I’d like to have is the $stdout display todays date with one …

---

## [Htree tutorial](https://www.ruby-forum.com/t/htree-tutorial/108107)

<div class="topic-metadata">

**Author:** [@vpredoehl](https://www.ruby-forum.com/u/vpredoehl)\
**Replies:** 0\
**Last updated:** [June 29, 2007, 2:29am UTC](https://www.ruby-forum.com/t/htree-tutorial/108107 "2007-06-29T02:29:08Z")

</div>

I would like to use HTree for use in mouseHole, but I can’t find any good tutorials or anything… I would rather not learn from the reference page. Where can I find something that shows how to use HTree?

---

## [Using resolv.rb](https://www.ruby-forum.com/t/using-resolv-rb/108093)

<div class="topic-metadata">

**Author:** [@barjunk](https://www.ruby-forum.com/u/barjunk)\
**Replies:** 2\
**Last updated:** [June 29, 2007, 2:14am UTC](https://www.ruby-forum.com/t/using-resolv-rb/108093 "2007-06-29T02:14:08Z")

</div>

Can someone point me to some documentation that shows me with examples how to use that ruby library? I was just trying to point the resolver at a specific DNS server, but had trouble figuring out how to do it. I foun…

---

## [\[SOLUTION\] LSRC Name Picker (#129)](https://www.ruby-forum.com/t/solution-lsrc-name-picker-129/108108)

<div class="topic-metadata">

**Author:** [@jameskelly](https://www.ruby-forum.com/u/jameskelly)\
**Replies:** 0\
**Last updated:** [June 29, 2007, 2:08am UTC](https://www.ruby-forum.com/t/solution-lsrc-name-picker-129/108108 "2007-06-29T02:08:07Z")

</div>

Here is my solution to this week’s Ruby quiz. It is my first program to use Ruby/Tk, and, after using it, will probably be my last. The picker’s main procedure as follows: Upon startup, the program creates a pseudo t…

---

## [ActiveRecord (not necessarily rails)](https://www.ruby-forum.com/t/activerecord-not-necessarily-rails/107958)

<div class="topic-metadata">

**Author:** [@nephish](https://www.ruby-forum.com/u/nephish)\
**Replies:** 12\
**Last updated:** [June 29, 2007, 12:09am UTC](https://www.ruby-forum.com/t/activerecord-not-necessarily-rails/107958 "2007-06-29T00:09:58Z")

</div>

Hello all, i have been using ActiveRecord in a couple of GUI applications recently and it is working really well. i was wondering though, if it is possible to have a class defined that i can change one of the has\_m…

---

## [Accessing the value chosen in a dropdown menu](https://www.ruby-forum.com/t/accessing-the-value-chosen-in-a-dropdown-menu/108086)

<div class="topic-metadata">

**Author:** [@james](https://www.ruby-forum.com/u/james)\
**Replies:** 1\
**Last updated:** [June 29, 2007, 12:03am UTC](https://www.ruby-forum.com/t/accessing-the-value-chosen-in-a-dropdown-menu/108086 "2007-06-29T00:03:58Z")

</div>

I have an array of frame colors called @frame\_color and I created a dropdown menu that triggers a remote\_function when the value is changed. The problem is that I can’t seem to figure out how to pass the value of the …

---

## [HELP.. wanna learn ruby](https://www.ruby-forum.com/t/help-wanna-learn-ruby/108047)

<div class="topic-metadata">

**Author:** [@ti-mara](https://www.ruby-forum.com/u/ti-mara)\
**Replies:** 2\
**Last updated:** [June 29, 2007, 12:01am UTC](https://www.ruby-forum.com/t/help-wanna-learn-ruby/108047 "2007-06-29T00:01:58Z")

</div>

I am a second year degree student studying for on information systems who is interested in programming and open source software solutions… I am looking for a ruby project to get involved in which could actually use da…

---

## [Zlib::Deflate.deflate problem](https://www.ruby-forum.com/t/zlib-deflate-deflate-problem/108090)

<div class="topic-metadata">

**Author:** [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Replies:** 1\
**Last updated:** [June 28, 2007, 11:51pm UTC](https://www.ruby-forum.com/t/zlib-deflate-deflate-problem/108090 "2007-06-28T23:51:54Z")

</div>

Hey all, I’m using Zlib::Deflate.deflate to deflate a response from an HTTP request to return back to the browser. The requests accept gzip,deflate but when I return the deflated data the browser is not handling it c…

---

## [Good Ruby Rails Web Forum?](https://www.ruby-forum.com/t/good-ruby-rails-web-forum/108053)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 3\
**Last updated:** [June 28, 2007, 11:47pm UTC](https://www.ruby-forum.com/t/good-ruby-rails-web-forum/108053 "2007-06-28T23:47:56Z")

</div>

I am starting with Ruby R., and I need to ask a feq questions. Which of the many Web Forums are good for a seasoned programmer but a novice in the Rails system? Thanks

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

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