# Ruby

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

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

---

## [Simple ruby web server](https://www.ruby-forum.com/t/simple-ruby-web-server/116388)

<div class="topic-metadata">

**Author:** [@Filipe](https://www.ruby-forum.com/u/Filipe)\
**Replies:** 6\
**Last updated:** [October 6, 2007, 3:35am UTC](https://www.ruby-forum.com/t/simple-ruby-web-server/116388 "2007-10-06T03:35:37Z")

</div>

Hi all, I’m looking for a simple webserver that could handle basic requests (mostly from a localhost) outputing html files. It should also be able to get the input from forms. Rails seems too powerful to perform such …

---

## [Refering to an object's 'parent'](https://www.ruby-forum.com/t/refering-to-an-objects-parent/116445)

<div class="topic-metadata">

**Author:** [@tobyr](https://www.ruby-forum.com/u/tobyr)\
**Replies:** 5\
**Last updated:** [October 6, 2007, 2:55am UTC](https://www.ruby-forum.com/t/refering-to-an-objects-parent/116445 "2007-10-06T02:55:51Z")

</div>

I’d like to check an object’s “parent” to see if it has a certain method, so for example, given … class House(type) attr\_accessor :rooms, :type\_of\_house @rooms = \[\] … def type\_of\_house type end end class Room …

---

## [Stratego program for Linux in Ruby](https://www.ruby-forum.com/t/stratego-program-for-linux-in-ruby/116491)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 6, 2007, 2:50am UTC](https://www.ruby-forum.com/t/stratego-program-for-linux-in-ruby/116491 "2007-10-06T02:50:35Z")

</div>

Hi all! S7r47e50 is a project that I am attempting to build in Ruby. I am a 26 year old computer professional with an I.T. management degree and am looking to recruit software developers who are interested in 3d rend…

---

## [IronRuby community and communications](https://www.ruby-forum.com/t/ironruby-community-and-communications/116132)

<div class="topic-metadata">

**Author:** [@John\_LSSDLR](https://www.ruby-forum.com/u/John_LSSDLR)\
**Replies:** 30\
**Last updated:** [October 6, 2007, 2:06am UTC](https://www.ruby-forum.com/t/ironruby-community-and-communications/116132 "2007-10-06T02:06:43Z")

</div>

Wow. I was enjoying my day off with my family and my brother who was in town visiting when I discovered this thread on my phone. It was fun reading things go by, but there was no way that I was going to try and respon…

---

## [Solaris, FastCGI, Apache, and "timeout.rb:52: Segmentation fault"](https://www.ruby-forum.com/t/solaris-fastcgi-apache-and-timeout-rb-segmentation-fault/116449)

<div class="topic-metadata">

**Author:** [@Trevor\_W](https://www.ruby-forum.com/u/Trevor_W)\
**Replies:** 9\
**Last updated:** [October 6, 2007, 1:45am UTC](https://www.ruby-forum.com/t/solaris-fastcgi-apache-and-timeout-rb-segmentation-fault/116449 "2007-10-06T01:45:06Z")

</div>

Just installed Ruby 1.8.6-p110. There seems to be a bug related to net/http, FastCGI, and Apache (1 or 2). I’m seeing this with a Rails- based application that has no problems with Mongrel, Webrick, Lighttpd, or Apach…

---

## [ERB or other Templating libraries/frameworks](https://www.ruby-forum.com/t/erb-or-other-templating-libraries-frameworks/116488)

<div class="topic-metadata">

**Author:** [@venkat](https://www.ruby-forum.com/u/venkat)\
**Replies:** 2\
**Last updated:** [October 6, 2007, 1:10am UTC](https://www.ruby-forum.com/t/erb-or-other-templating-libraries-frameworks/116488 "2007-10-06T01:10:30Z")

</div>

Is there a tutorial for erb or any other templating classes. Rails is the predominant framework used to write web applications. But, I am thinking of developing web applications using a templating system that generat…

---

## [Migrations in Oracle9 to Oracle schema with existing tables](https://www.ruby-forum.com/t/migrations-in-oracle9-to-oracle-schema-with-existing-tables/116487)

<div class="topic-metadata">

**Author:** [@wumic](https://www.ruby-forum.com/u/wumic)\
**Replies:** 0\
**Last updated:** [October 6, 2007, 12:24am UTC](https://www.ruby-forum.com/t/migrations-in-oracle9-to-oracle-schema-with-existing-tables/116487 "2007-10-06T00:24:57Z")

</div>

Hello, I’m trying to use the same Oracle schema for development and test configurations to go through the Shoplet example in Ola B.'s Practical JRuby book. I specified different active record table name prefixes for …

---

## [Cant find irb](https://www.ruby-forum.com/t/cant-find-irb/116471)

<div class="topic-metadata">

**Author:** [@William\_Lidinsky](https://www.ruby-forum.com/u/William_Lidinsky)\
**Replies:** 1\
**Last updated:** [October 5, 2007, 10:54pm UTC](https://www.ruby-forum.com/t/cant-find-irb/116471 "2007-10-05T22:54:20Z")

</div>

I just installed ruby on Fedora 7, but I can’t bring up irb. Details Using the Fedora7 Software Installer I installed ruby-libs-1.8.6-2.fc7.i386.rpm Then I installed ruby-1.8.6-2.fc7.i386.rpm As a result rub…

---

## [Problems building from source](https://www.ruby-forum.com/t/problems-building-from-source/116462)

<div class="topic-metadata">

**Author:** [@lennylmiller](https://www.ruby-forum.com/u/lennylmiller)\
**Replies:** 2\
**Last updated:** [October 5, 2007, 9:02pm UTC](https://www.ruby-forum.com/t/problems-building-from-source/116462 "2007-10-05T21:02:34Z")

</div>

Does anyone have any clues as to what this may be? This is with a fresh checkout of the JRuby trunk. ant jar-complete Buildfile: build.xml init: prepare: compile.tasks: \[copy\] Copying 1 file to /Users/Shared/jru…

---

## [New RubyGems Indexer](https://www.ruby-forum.com/t/new-rubygems-indexer/116461)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 2\
**Last updated:** [October 5, 2007, 8:28pm UTC](https://www.ruby-forum.com/t/new-rubygems-indexer/116461 "2007-10-05T20:28:37Z")

</div>

Tom C. has just deployed my new RubyGems indexer in preparation for a RubyGems beta. You should see fewer bulk index updates, and no more missing gems that you know are there. It’s supposed to be fully backwards-comp…

---

## [Getting "DRb fails to bind to socket " JRuby code fix](https://www.ruby-forum.com/t/getting-drb-fails-to-bind-to-socket-jruby-code-fix/116463)

<div class="topic-metadata">

**Author:** [@Ken\_Hilton](https://www.ruby-forum.com/u/Ken_Hilton)\
**Replies:** 0\
**Last updated:** [October 5, 2007, 8:14pm UTC](https://www.ruby-forum.com/t/getting-drb-fails-to-bind-to-socket-jruby-code-fix/116463 "2007-10-05T20:14:00Z")

</div>

Hi all, I’m a “long time” Ruby developer, new to JRuby. I ran into a JRuby bug that was fixed in commit 12347171 and is reported to be in JRuby 1.2.0 and 1.0.2 but I can’t figure out how to get either of those builds…

---

## [HTTP head request](https://www.ruby-forum.com/t/http-head-request/115399)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 4\
**Last updated:** [October 5, 2007, 8:00pm UTC](https://www.ruby-forum.com/t/http-head-request/115399 "2007-10-05T20:00:16Z")

</div>

Hmm… how do a HTTP head request? Does ‘open\_uri’ have something for this? T.

---

## [ANN: JRuby module on GlassFish Update Center (blog + screencast)](https://www.ruby-forum.com/t/ann-jruby-module-on-glassfish-update-center-blog-screencast/116458)

<div class="topic-metadata">

**Author:** [@arung](https://www.ruby-forum.com/u/arung)\
**Replies:** 0\
**Last updated:** [October 5, 2007, 7:25pm UTC](https://www.ruby-forum.com/t/ann-jruby-module-on-glassfish-update-center-blog-screencast/116458 "2007-10-05T19:25:59Z")

</div>

If you are an existing GlassFish user and would like to deploy your Rails application on it, then a JRuby module is now available at the GlassFish Update Center. Read more details at: http://blogs.sun.com/pramodg/ent…

---

## [Is there a Status Bar in Tk Ruby](https://www.ruby-forum.com/t/is-there-a-status-bar-in-tk-ruby/116453)

<div class="topic-metadata">

**Author:** [@jayson](https://www.ruby-forum.com/u/jayson)\
**Replies:** 0\
**Last updated:** [October 5, 2007, 6:19pm UTC](https://www.ruby-forum.com/t/is-there-a-status-bar-in-tk-ruby/116453 "2007-10-05T18:19:48Z")

</div>

Does Tk have a status bar?

---

## [Hash assignment (what's happening?)](https://www.ruby-forum.com/t/hash-assignment-whats-happening/116443)

<div class="topic-metadata">

**Author:** [@hector](https://www.ruby-forum.com/u/hector)\
**Replies:** 3\
**Last updated:** [October 5, 2007, 4:33pm UTC](https://www.ruby-forum.com/t/hash-assignment-whats-happening/116443 "2007-10-05T16:33:39Z")

</div>

From within irb, I’m creating a hash and populating it with the following data. irb(main):007:0\> {:QHector =\> 1967, :WKelly =\> 2551, :ECron =\> 0220, :VLaura =\> 4003, :LWalter =\> 1188} Why is the value for the ‘:ECron…

---

## [Force IRB into interactive mode (to display prompt)?](https://www.ruby-forum.com/t/force-irb-into-interactive-mode-to-display-prompt/116337)

<div class="topic-metadata">

**Author:** [@rpierry](https://www.ruby-forum.com/u/rpierry)\
**Replies:** 5\
**Last updated:** [October 5, 2007, 4:04pm UTC](https://www.ruby-forum.com/t/force-irb-into-interactive-mode-to-display-prompt/116337 "2007-10-05T16:04:33Z")

</div>

I’m implementing a front end for irb that involves running it in a background process. I have it working such that I can collect input from my program and write it to the redirected stdin of irb and then read the out…

---

## [JRuby + Goldspike on tomcat5 on ubuntu](https://www.ruby-forum.com/t/jruby-goldspike-on-tomcat5-on-ubuntu/116442)

<div class="topic-metadata">

**Author:** [@Stefan\_Magnus\_Landr](https://www.ruby-forum.com/u/Stefan_Magnus_Landr)\
**Replies:** 0\
**Last updated:** [October 5, 2007, 3:58pm UTC](https://www.ruby-forum.com/t/jruby-goldspike-on-tomcat5-on-ubuntu/116442 "2007-10-05T15:58:24Z")

</div>

Hi there, I had to deactivate the java security manager in order to get my rails app up and running on tomcat on ubuntu. In “/etc/default/tomcat5” I set the following. Use the Java security manager? (yes/no, default…

---

## [Making 'new' private in a C extension](https://www.ruby-forum.com/t/making-new-private-in-a-c-extension/115700)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [October 5, 2007, 3:57pm UTC](https://www.ruby-forum.com/t/making-new-private-in-a-c-extension/115700 "2007-10-05T15:57:49Z")

</div>

Hello all, I’m writing a C extension, one of the classes I define can only be instantiated via a defined ‘get\_instance’ singleton method. This method will only ever return one instance, that is, successive calls will…

---

## [Reference vs. Reference](https://www.ruby-forum.com/t/reference-vs-reference/116019)

<div class="topic-metadata">

**Author:** [@robkuz](https://www.ruby-forum.com/u/robkuz)\
**Replies:** 33\
**Last updated:** [October 5, 2007, 3:56pm UTC](https://www.ruby-forum.com/t/reference-vs-reference/116019 "2007-10-05T15:56:38Z")

</div>

I feel there is a subtle point that needs clarification. Unfortunately the term “reference” does not have an unambiguous meaning in our field. I know at least these meanings R. is a general term for any programming…

---

## [Which Image Generation Library?](https://www.ruby-forum.com/t/which-image-generation-library/116389)

<div class="topic-metadata">

**Author:** [@winter](https://www.ruby-forum.com/u/winter)\
**Replies:** 5\
**Last updated:** [October 5, 2007, 3:36pm UTC](https://www.ruby-forum.com/t/which-image-generation-library/116389 "2007-10-05T15:36:41Z")

</div>

I need to create a small program that generates images and “animations” (i can cheat on the animation) of Petri nets. Something like the wikipedia page’s (Petri net - Wikipedia) examples, but automatically generated b…

---

## [Sizeof(Object)](https://www.ruby-forum.com/t/sizeof-object/116435)

<div class="topic-metadata">

**Author:** [@Nikolay\_Kurtov](https://www.ruby-forum.com/u/Nikolay_Kurtov)\
**Replies:** 1\
**Last updated:** [October 5, 2007, 3:22pm UTC](https://www.ruby-forum.com/t/sizeof-object/116435 "2007-10-05T15:22:37Z")

</div>

I search the group and found a topic about sizeof(Class)/ sizeof(Object). But there isn’t an answer, how can I implement sizeof(Object) in Ruby. Maybe someone has some ideas about that?

---

## [Question about looking up classes](https://www.ruby-forum.com/t/question-about-looking-up-classes/116371)

<div class="topic-metadata">

**Author:** [@BallS\_Donald\_A\_Jr\_S](https://www.ruby-forum.com/u/BallS_Donald_A_Jr_S)\
**Replies:** 3\
**Last updated:** [October 5, 2007, 2:10pm UTC](https://www.ruby-forum.com/t/question-about-looking-up-classes/116371 "2007-10-05T14:10:33Z")

</div>

Hi folks. I’ve run into some behavior in a rails app that I don’t understand. I don’t think it’s specific to rails, but feel free to redirect me if I’m off-topic. I wanted to manually invoke the rails router path reco…

---

## [OpenURI charset $B$NB(DjCM$NLdBj(B](https://www.ruby-forum.com/t/openuri-charset-b-nb-djcm-nldbj-b/116432)

<div class="topic-metadata">

**Author:** [@drenovac](https://www.ruby-forum.com/u/drenovac)\
**Replies:** 1\
**Last updated:** [October 5, 2007, 2:09pm UTC](https://www.ruby-forum.com/t/openuri-charset-b-nb-djcm-nldbj-b/116432 "2007-10-05T14:09:23Z")

</div>

e$BEDCf$5$s!"$3$s$K$A$O!#e(B e$BEDCf$5$s$,:n$C$?$H$F$bJXMx$Je(B open-uri e$B$r;H$\*$&$H$7$?$H$3$m!“e(B e$B5$$K$J$C$?$3$H$,0l$D$”$j$^$7$?!#e(Bcharset e$B$H$$$&e(B method e$B$Ge(B e$B\<!$NDL$j$K=q$$$F$"$j$^$9e(B: …

---

## [Mechanize click button](https://www.ruby-forum.com/t/mechanize-click-button/116429)

<div class="topic-metadata">

**Author:** [@pradeepr](https://www.ruby-forum.com/u/pradeepr)\
**Replies:** 1\
**Last updated:** [October 5, 2007, 1:09pm UTC](https://www.ruby-forum.com/t/mechanize-click-button/116429 "2007-10-05T13:09:01Z")

</div>

Hi All, I’m using “agent = WWW::Mechanize.new” I have 3 buttons in a page with ‘value’ attribute. But I do not have ‘name’ attribute. How to click on a particular button? ? No submit button present in that form. Can…

---

## [(Newbie) Override \* on Array](https://www.ruby-forum.com/t/newbie-override-on-array/116314)

<div class="topic-metadata">

**Author:** [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Replies:** 9\
**Last updated:** [October 5, 2007, 10:53am UTC](https://www.ruby-forum.com/t/newbie-override-on-array/116314 "2007-10-05T10:53:50Z")

</div>

Hi, I’ve written a simplistic override of the \* operator for Arrays so that \[2,4,6\]\*\[2,2,2\] = \[4,8,12\] class Array def \*(other) each\_with\_index do |x,i| self\[i\]= x \* other\[i\] end end end It assumes that the arr…

---

## [Binary data, command output, and Ruby](https://www.ruby-forum.com/t/binary-data-command-output-and-ruby/116022)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 9\
**Last updated:** [October 5, 2007, 9:59am UTC](https://www.ruby-forum.com/t/binary-data-command-output-and-ruby/116022 "2007-10-05T09:59:13Z")

</div>

I have a script that pulls pages from our wiki server. It was working using Net:HTTP and open-uri with basic\_authentication, but our sysadmin disabled basic authentication and left NTLM as the only authentication meth…

---

## [@continuation vs callcc {}](https://www.ruby-forum.com/t/continuation-vs-callcc/116260)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 7\
**Last updated:** [October 5, 2007, 9:42am UTC](https://www.ruby-forum.com/t/continuation-vs-callcc/116260 "2007-10-05T09:42:48Z")

</div>

http://pastie.caboo.se/102022 Greg Brown and I wrote this at Ruby East. It uses a continuation. The thing is, the purpose of this code is to allow you to pop out of irb into vi (or emacs, or TextMate, etc.) so you can…

---

## [Human readable file sizes](https://www.ruby-forum.com/t/human-readable-file-sizes/116311)

<div class="topic-metadata">

**Author:** [@JesSSSSs\_Gabriel\_y\_S](https://www.ruby-forum.com/u/JesSSSSs_Gabriel_y_S)\
**Replies:** 7\
**Last updated:** [October 5, 2007, 8:25am UTC](https://www.ruby-forum.com/t/human-readable-file-sizes/116311 "2007-10-05T08:25:34Z")

</div>

Hi, I have a list of files and I need to produce a string containing the size of each file, but in human readable format. With that I mean something like what df -h does: make an approximation to the nearest unit (B,…

---

## [Please i am just new to Ruby](https://www.ruby-forum.com/t/please-i-am-just-new-to-ruby/116391)

<div class="topic-metadata">

**Author:** [@Emperor\_of\_thought](https://www.ruby-forum.com/u/Emperor_of_thought)\
**Replies:** 5\
**Last updated:** [October 5, 2007, 7:32am UTC](https://www.ruby-forum.com/t/please-i-am-just-new-to-ruby/116391 "2007-10-05T07:32:21Z")

</div>

Please i am just new to Ruby and i will like to know how i can go about in web development. I am migrating from PHP and Ruby web environment does not look very familiar. Please can anyone help me on how to go about st…

---

## [Curses](https://www.ruby-forum.com/t/curses/116170)

<div class="topic-metadata">

**Author:** [@shawn\_2008](https://www.ruby-forum.com/u/shawn_2008)\
**Replies:** 5\
**Last updated:** [October 5, 2007, 7:30am UTC](https://www.ruby-forum.com/t/curses/116170 "2007-10-05T07:30:06Z")

</div>

I am an elementary user of ruby,i meet a problem about ruby curses. source code as follow: require “curses” include Curses init\_screen begin crmode echo ch = getstr #problem occurred here noecho ensure close\_s…

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

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