# Top

**URL:** https://www.ruby-forum.com/top.md?page=1477

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

---

## [Having lot of waiting connection will cause high CPU usage?](https://www.ruby-forum.com/t/having-lot-of-waiting-connection-will-cause-high-cpu-usage/224446)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [December 6, 2012, 5:03pm UTC](https://www.ruby-forum.com/t/having-lot-of-waiting-connection-will-cause-high-cpu-usage/224446 "2012-12-06T17:03:26Z")

</div>

Hi, In one of my server, the nginx status return the following Active connections: 3595 server accepts handled requests 95329528 95329528 118118629 Reading: 334 Writing: 49 Waiting: 3212 There are a lot of “Waiting…

---

## [Magical 57.6 minutes in Time](https://www.ruby-forum.com/t/magical-57-6-minutes-in-time/224617)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [November 19, 2012, 5:32pm UTC](https://www.ruby-forum.com/t/magical-57-6-minutes-in-time/224617 "2012-11-19T17:32:15Z")

</div>

irb(main):80:0\> RUBY\_VERSION =\> “1.9.3” irb(main):81:0\> system(“uname -a”) Linux krank 3.5.0-18-generic #29-Ubuntu SMP Fri Oct 19 10:27:31 UTC 2012 i686 i686 i686 GNU/Linux =\> true irb(main):82:0\> require ‘date’ =\>…

---

## [Database design, working but looking for better ways](https://www.ruby-forum.com/t/database-design-working-but-looking-for-better-ways/223673)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [October 13, 2012, 10:35am UTC](https://www.ruby-forum.com/t/database-design-working-but-looking-for-better-ways/223673 "2012-10-13T10:35:56Z")

</div>

Rails 3.1.3 Hi. I have designed the database used for my travel plan application. You should be able to look at the diagram in the link below, hopefully. (“belongs\_to” is omitted since it’s obvious) Basically, the …

---

## [I'd like a way to download the ruby core referance docs](https://www.ruby-forum.com/t/id-like-a-way-to-download-the-ruby-core-referance-docs/217977)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [March 22, 2012, 6:31am UTC](https://www.ruby-forum.com/t/id-like-a-way-to-download-the-ruby-core-referance-docs/217977 "2012-03-22T06:31:01Z")

</div>

1:would please make a way to download the ruby core referance docs because I work off a library computer I tried just saving all the web pages but after 3 hours I gave up. 2: thanks to Chris pine for the tutorial it r…

---

## [Building 3.5.1 release with Cmake](https://www.ruby-forum.com/t/building-3-5-1-release-with-cmake/216068)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [January 24, 2012, 4:39pm UTC](https://www.ruby-forum.com/t/building-3-5-1-release-with-cmake/216068 "2012-01-24T16:39:15Z")

</div>

I would like to use Cmake to build the 3.5.1 release, however the tarball has no CMakeLists.txt files. The project AFAICT seems generally to be Cmake enabled, is there a reason for excluding the tarballs? Any help wo…

---

## [\[ruby-trunk - Bug #5533\]\[Assigned\] Pathname's raising "invalid sequence"](https://www.ruby-forum.com/t/ruby-trunk-bug-5533-assigned-pathnames-raising-invalid-sequence/213405)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [November 2, 2011, 4:57pm UTC](https://www.ruby-forum.com/t/ruby-trunk-bug-5533-assigned-pathnames-raising-invalid-sequence/213405 "2011-11-02T16:57:51Z")

</div>

Issue #5533 has been reported by Shyouhei U… Bug #5533: Pathname’s raising “invalid sequence” Author: Shyouhei U. Status: Assigned Priority: Normal Assignee: Yui NARUSE Category: M17N Target version: 1.9.3 ruby…

---

## [Cheap portable antenna for SSB + CW w/ USRP1?](https://www.ruby-forum.com/t/cheap-portable-antenna-for-ssb-cw-w-usrp1/212586)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [October 8, 2011, 9:24pm UTC](https://www.ruby-forum.com/t/cheap-portable-antenna-for-ssb-cw-w-usrp1/212586 "2011-10-08T21:24:37Z")

</div>

Hi all, Just curious if anyone might have some suggestions for a cheap (ideally \< $100) portable antenna for receiving (not transmitting) SSB + CW? Something that can easily fit into a carryon bag, can be used indoors …

---

## [Memory usage of fresh nginx](https://www.ruby-forum.com/t/memory-usage-of-fresh-nginx/208370)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [June 17, 2011, 10:13am UTC](https://www.ruby-forum.com/t/memory-usage-of-fresh-nginx/208370 "2011-06-17T10:13:00Z")

</div>

I installed nginx (0.8.7) by rpm on Centos with php-fpm. The total memory used was about 45K I installed nginx (1.0.4) from source on the same conditions, but the total memory used is about 90K as I compared the memo…

---

## [No such file to load only in ruby 1.9.2](https://www.ruby-forum.com/t/no-such-file-to-load-only-in-ruby-1-9-2/206957)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [May 14, 2011, 2:34am UTC](https://www.ruby-forum.com/t/no-such-file-to-load-only-in-ruby-1-9-2/206957 "2011-05-14T02:34:52Z")

</div>

I am making a gem and i have three files: gem\_name.rb gem\_name/ version.rb server.rb in gem\_name.rb it requires the other two files but for some reason on ruby 1.9.2 i can’t find server but on 1.8.7 it can. I am us…

---

## [Where's the best place to dynamically add singleton method?](https://www.ruby-forum.com/t/wheres-the-best-place-to-dynamically-add-singleton-method/206343)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [May 6, 2011, 10:19pm UTC](https://www.ruby-forum.com/t/wheres-the-best-place-to-dynamically-add-singleton-method/206343 "2011-05-06T22:19:17Z")

</div>

Hi, If I’ve got a simple bit of initialisation code def initialize( blah ) @listener = Blah.new blah end and I’d like to add a singleton method to instance (because I don’t want to monkey patch the Blah library) wh…

---

## [Can I use MacRuby without knowing Objective-C](https://www.ruby-forum.com/t/can-i-use-macruby-without-knowing-objective-c/204902)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [March 24, 2011, 9:02pm UTC](https://www.ruby-forum.com/t/can-i-use-macruby-without-knowing-objective-c/204902 "2011-03-24T21:02:51Z")

</div>

Hi, Do I need to know Objective-C to use MacRuby? How similar is Ruby to Objective–C? In other words How hard would that be to learn Objective-C after learning Ruby? Thanks a lot!

---

## [How to use authlogic](https://www.ruby-forum.com/t/how-to-use-authlogic/201919)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [January 18, 2011, 2:49am UTC](https://www.ruby-forum.com/t/how-to-use-authlogic/201919 "2011-01-18T02:49:24Z")

</div>

hi, i’m new to rails i duno how to use authlogic plugin in rails 3,can anybody help me with sample app

---

## [Unitialized constant controller](https://www.ruby-forum.com/t/unitialized-constant-controller/195686)

<div class="topic-metadata">

**Author:** [@binbash-x](https://www.ruby-forum.com/u/binbash-x)\
**Replies:** 4\
**Last updated:** [September 28, 2010, 4:19pm UTC](https://www.ruby-forum.com/t/unitialized-constant-controller/195686 "2010-09-28T16:19:46Z")

</div>

Hey guys, Here’s an error I get after I hit the submit button on the editing page: NameError in ClassifiedsController#update uninitialized constant ClassifiedsController Help would be appreciated. Thanks

---

## [Running other vhosts beside the catc-all default vhost](https://www.ruby-forum.com/t/running-other-vhosts-beside-the-catc-all-default-vhost/190319)

<div class="topic-metadata">

**Author:** [@Nedim\_Hadzimahmutov](https://www.ruby-forum.com/u/Nedim_Hadzimahmutov)\
**Replies:** 4\
**Last updated:** [June 22, 2010, 11:02am UTC](https://www.ruby-forum.com/t/running-other-vhosts-beside-the-catc-all-default-vhost/190319 "2010-06-22T11:02:51Z")

</div>

I have a catchall default vhost, cat /etc/nginx/sites-available/default : server { listen 80 default; server\_name \_; server\_name\_in\_redirect off; resolver 127.0.0.1; www. redirect - all domains starting wit…

---

## [Text Fighting (Gladitorial) Sim](https://www.ruby-forum.com/t/text-fighting-gladitorial-sim/186688)

<div class="topic-metadata">

**Author:** [@wizofozz](https://www.ruby-forum.com/u/wizofozz)\
**Replies:** 4\
**Last updated:** [April 12, 2010, 2:43pm UTC](https://www.ruby-forum.com/t/text-fighting-gladitorial-sim/186688 "2010-04-12T14:43:56Z")

</div>

I am attempting to create a gladitorial fighting sim. It will be able to pit two players (computer controlled) and based on stats, weapons, armor and some randomness will attack, deal damage, dodge and counter attack. …

---

## [How to calculate per\_page value based on browser window size for will\_paginate](https://www.ruby-forum.com/t/how-to-calculate-per-page-value-based-on-browser-window-size-for-will-paginate/185826)

<div class="topic-metadata">

**Author:** [@RVRoadie](https://www.ruby-forum.com/u/RVRoadie)\
**Replies:** 4\
**Last updated:** [March 27, 2010, 12:06am UTC](https://www.ruby-forum.com/t/how-to-calculate-per-page-value-based-on-browser-window-size-for-will-paginate/185826 "2010-03-27T00:06:18Z")

</div>

def self.per\_page 20 end Any suggestion on how I can calculate this value base on the size of the browser window? Thanks

---

## [Article: "No-knob" radio: the future of Warfighter communications?](https://www.ruby-forum.com/t/article-no-knob-radio-the-future-of-warfighter-communications/183400)

<div class="topic-metadata">

**Author:** [@Ken\_N9VV](https://www.ruby-forum.com/u/Ken_N9VV)\
**Replies:** 4\
**Last updated:** [February 13, 2010, 4:51am UTC](https://www.ruby-forum.com/t/article-no-knob-radio-the-future-of-warfighter-communications/183400 "2010-02-13T04:51:45Z")

</div>

\<URL: “No-knob” radio: the future of Warfighter communications? Jan 27, 2010 By Sharon Rushen, CERDEC Public Affairs FORT MONMOUTH, N.J. - U.S. Army engineers in collaboration with their Navy counterparts hope to …

---

## [If set variable unfamiliar language](https://www.ruby-forum.com/t/if-set-variable-unfamiliar-language/180460)

<div class="topic-metadata">

**Author:** [@nerdgrind](https://www.ruby-forum.com/u/nerdgrind)\
**Replies:** 4\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/if-set-variable-unfamiliar-language/180460 "2009-12-19T15:25:42Z")

</div>

I’ve seen code for virtual domains in the nginx.conf to handle setups with WP Super Cache using an if condition that appears to assign a variable value with “set” as shown in the example below. Could someone provide m…

---

## [Error: nested-routes with nested-model having foreign keys](https://www.ruby-forum.com/t/error-nested-routes-with-nested-model-having-foreign-keys/177789)

<div class="topic-metadata">

**Author:** [@nin\_d](https://www.ruby-forum.com/u/nin_d)\
**Replies:** 4\
**Last updated:** [October 24, 2009, 2:37pm UTC](https://www.ruby-forum.com/t/error-nested-routes-with-nested-model-having-foreign-keys/177789 "2009-10-24T14:37:33Z")

</div>

Hi, I have this Test, User and Project models where every test belongs\_to a project and project has\_many tests. Test also belongs\_to User as ‘owner’. Then i followed railcast#139 to create nested route as - map.reso…

---

## [Where is \_why (not the code)?](https://www.ruby-forum.com/t/where-is-why-not-the-code/174804)

<div class="topic-metadata">

**Author:** [@EustSSSSquio\_Rangel](https://www.ruby-forum.com/u/EustSSSSquio_Rangel)\
**Replies:** 4\
**Last updated:** [September 5, 2009, 2:12am UTC](https://www.ruby-forum.com/t/where-is-why-not-the-code/174804 "2009-09-05T02:12:55Z")

</div>

Hey, I’m noticing that people are recovering the \_why code etc but where and more important - how - is \_why, the guy? Does somebody knows his phone and can make a call to check if everything is ok? Code can bem recov…

---

## [Hoe is complaining about the README.markdown file](https://www.ruby-forum.com/t/hoe-is-complaining-about-the-readme-markdown-file/170321)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 4\
**Last updated:** [June 16, 2009, 5:20am UTC](https://www.ruby-forum.com/t/hoe-is-complaining-about-the-readme-markdown-file/170321 "2009-06-16T05:20:03Z")

</div>

I have released a gem on github. http://github.com/neerajdotname/javascript\_lab/tree/master sudo gem install neerajdotname-javascript\_lab $\> javascript\_lab This gem works. However hoe failed somewhere in README.markd…

---

## [Table less model](https://www.ruby-forum.com/t/table-less-model/169310)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 4\
**Last updated:** [June 3, 2009, 9:07am UTC](https://www.ruby-forum.com/t/table-less-model/169310 "2009-06-03T09:07:49Z")

</div>

I want to have a simple model without a table for ACL purposes because there aren’t going to be many methods at all. How could I have a Model like… ControllerMethod securitylevel users\_list 8 reports\_ar …

---

## [Test](https://www.ruby-forum.com/t/test/164205)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 4\
**Last updated:** [March 30, 2009, 1:52pm UTC](https://www.ruby-forum.com/t/test/164205 "2009-03-30T13:52:35Z")

</div>

testing my ability to create a new topic on RubyTalk, please ignore.

---

## [Executing a generator on the browser](https://www.ruby-forum.com/t/executing-a-generator-on-the-browser/159916)

<div class="topic-metadata">

**Author:** [@bbtosurf](https://www.ruby-forum.com/u/bbtosurf)\
**Replies:** 4\
**Last updated:** [February 10, 2009, 6:12pm UTC](https://www.ruby-forum.com/t/executing-a-generator-on-the-browser/159916 "2009-02-10T18:12:51Z")

</div>

Hi I currently have a generator which creates a directory of files. I want clients on my app to be able to execute that generator and save those files in their personal folder on the server. The thing is that I have …

---

## [Is there any better way to do this?](https://www.ruby-forum.com/t/is-there-any-better-way-to-do-this/156834)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 4\
**Last updated:** [January 4, 2009, 8:57am UTC](https://www.ruby-forum.com/t/is-there-any-better-way-to-do-this/156834 "2009-01-04T08:57:14Z")

</div>

Is there any better way to do this? \>

---

## [ParseTree 3.0.2 Released](https://www.ruby-forum.com/t/parsetree-3-0-2-released/152544)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 4\
**Last updated:** [December 11, 2008, 7:06am UTC](https://www.ruby-forum.com/t/parsetree-3-0-2-released/152544 "2008-12-11T07:06:51Z")

</div>

ParseTree version 3.0.2 has been released! http://rubyforge.org/projects/parsetree/ http://www.zenspider.com/ZSS/Products/ParseTree/ removed\_email\_address@domain.invalid ParseTree is a C extension (using RubyInline) t…

---

## [Easiest RoR - PDF solution (based on HTML and CSS)](https://www.ruby-forum.com/t/easiest-ror-pdf-solution-based-on-html-and-css/152179)

<div class="topic-metadata">

**Author:** [@paco.onrails](https://www.ruby-forum.com/u/paco.onrails)\
**Replies:** 4\
**Last updated:** [November 4, 2008, 7:46pm UTC](https://www.ruby-forum.com/t/easiest-ror-pdf-solution-based-on-html-and-css/152179 "2008-11-04T19:46:33Z")

</div>

Hello, what solution you can recommend me?

---

## [Map.root doesn't run controller logic?](https://www.ruby-forum.com/t/map-root-doesnt-run-controller-logic/151263)

<div class="topic-metadata">

**Author:** [@chrisjo](https://www.ruby-forum.com/u/chrisjo)\
**Replies:** 4\
**Last updated:** [October 19, 2008, 12:08pm UTC](https://www.ruby-forum.com/t/map-root-doesnt-run-controller-logic/151263 "2008-10-19T12:08:36Z")

</div>

I have this in my routes.rb: map.resources :events … map.root :controller =\> “events”, :action =\> :index Surely enough, accessing http://localhost:3000/ renders the events/index.html.erb template. However, accessing …

---

## [Ruby PHP and Apache](https://www.ruby-forum.com/t/ruby-php-and-apache/148545)

<div class="topic-metadata">

**Author:** [@FryShadow](https://www.ruby-forum.com/u/FryShadow)\
**Replies:** 4\
**Last updated:** [September 15, 2008, 4:10am UTC](https://www.ruby-forum.com/t/ruby-php-and-apache/148545 "2008-09-15T04:10:05Z")

</div>

Hi guys :slight\_smile: 1st of all I’m still new with ruby and just following some tutorial to build with ruby language and ruby on rails. Before this I just bootup the webrick web server for development. Things come …

---

## [Catching (or saving) errors](https://www.ruby-forum.com/t/catching-or-saving-errors/145014)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 4\
**Last updated:** [August 5, 2008, 4:48pm UTC](https://www.ruby-forum.com/t/catching-or-saving-errors/145014 "2008-08-05T16:48:55Z")

</div>

So, I am currently working on an Interactive Fiction like game in Ruby, and have stumbled across a bit of a problem. The ‘move’ function makes a call to the room’s ‘exits’ variable (exits\[:north\], for instance) but I …

---

## [Emacs-mode for ruby?](https://www.ruby-forum.com/t/emacs-mode-for-ruby/142432)

<div class="topic-metadata">

**Author:** [@defn\_noob](https://www.ruby-forum.com/u/defn_noob)\
**Replies:** 4\
**Last updated:** [July 8, 2008, 5:18am UTC](https://www.ruby-forum.com/t/emacs-mode-for-ruby/142432 "2008-07-08T05:18:39Z")

</div>

I dont find anything useful while googling. is there an emacsmode for ruby? i want syntaxhighlighting and be able to run the interpreter under emacs.

---

## [Consulta sobre autenticacion](https://www.ruby-forum.com/t/consulta-sobre-autenticacion/139726)

<div class="topic-metadata">

**Author:** [@jmcervera](https://www.ruby-forum.com/u/jmcervera)\
**Replies:** 4\
**Last updated:** [June 12, 2008, 2:51pm UTC](https://www.ruby-forum.com/t/consulta-sobre-autenticacion/139726 "2008-06-12T14:51:03Z")

</div>

Hola compaÃ±eros. El tema que me estoy planteando me ocasiona una serie de dudas. Tal vez me pueda alguien dar alguna idea de como resolverlo. El tema es desarrollar un aplicacion cliente con ruby que pueda ejecutar …

---

## [How can install Tk8.5 to Ruby1.8.6](https://www.ruby-forum.com/t/how-can-install-tk8-5-to-ruby1-8-6/136147)

<div class="topic-metadata">

**Author:** [@try4rb](https://www.ruby-forum.com/u/try4rb)\
**Replies:** 4\
**Last updated:** [April 30, 2008, 4:11am UTC](https://www.ruby-forum.com/t/how-can-install-tk8-5-to-ruby1-8-6/136147 "2008-04-30T04:11:17Z")

</div>

I am a newbie for Ruby, I d/l one-click of Ruby1.8.6 and install ,then it well used, I have learn ruby with GUI pratice , and found that TK8.5 is available ,but after installation, I try to simple run code with RDE ed…

---

## [Problem with Webrick/HTTProxy](https://www.ruby-forum.com/t/problem-with-webrick-httproxy/132119)

<div class="topic-metadata">

**Author:** [@eunhyeon](https://www.ruby-forum.com/u/eunhyeon)\
**Replies:** 4\
**Last updated:** [March 17, 2008, 11:06pm UTC](https://www.ruby-forum.com/t/problem-with-webrick-httproxy/132119 "2008-03-17T23:06:29Z")

</div>

I installed ruby 1.8.6 for Windows(Vista Home Premium). And wrote some code like below. require ‘webrick’ require ‘webrick/httpproxy’ s = WEBrick::HTTPProxyServer.new( :BindAddress =\> ‘0.0.0.0’, :Port =\> 8080, :L…

---

## [Console ShowASTs not working?](https://www.ruby-forum.com/t/console-showasts-not-working/131667)

<div class="topic-metadata">

**Author:** [@xjivan](https://www.ruby-forum.com/u/xjivan)\
**Replies:** 4\
**Last updated:** [March 12, 2008, 12:24pm UTC](https://www.ruby-forum.com/t/console-showasts-not-working/131667 "2008-03-12T12:24:02Z")

</div>

Hi I tried to view what AST’s was being generated when I executed a very simple class with the following command line rbx -X:ShowASTs test.rb class HelloWorld def initialize @msg = “hello world” end def print p…

---

## [Query](https://www.ruby-forum.com/t/query/126965)

<div class="topic-metadata">

**Author:** [@dotty](https://www.ruby-forum.com/u/dotty)\
**Replies:** 4\
**Last updated:** [January 23, 2008, 9:49pm UTC](https://www.ruby-forum.com/t/query/126965 "2008-01-23T21:49:02Z")

</div>

Hello everyone, I’m learning RoR by creating a small web app that I use for work. I have the main model with which is Project(s) which has many Task(s) (of course belongs to Project) then a few other controller/models…

---

## [Where to put constants](https://www.ruby-forum.com/t/where-to-put-constants/126388)

<div class="topic-metadata">

**Author:** [@Pito](https://www.ruby-forum.com/u/Pito)\
**Replies:** 4\
**Last updated:** [January 18, 2008, 7:14pm UTC](https://www.ruby-forum.com/t/where-to-put-constants/126388 "2008-01-18T19:14:46Z")

</div>

I have a column in my database which is a code, kind of a record type. For example, in model Vehicle, I use a 1 for CAR and a 2 for BOAT in the database. I want to have constants accessible so that the mapping to 1 a…

---

## [Regex help partial code](https://www.ruby-forum.com/t/regex-help-partial-code/125928)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 4\
**Last updated:** [January 14, 2008, 7:00pm UTC](https://www.ruby-forum.com/t/regex-help-partial-code/125928 "2008-01-14T19:00:10Z")

</div>

Hello I have with great effort started on teh regex implemention and am stuck at one point. here is my code (add)\\s+\\S+\\s+\[i|s|f\]\\s+\[pei\]?\\s+ The string is as follows and the tokens are equavalent to 1 token=Add 2…

---

## [JRuby on a huge project](https://www.ruby-forum.com/t/jruby-on-a-huge-project/111335)

<div class="topic-metadata">

**Author:** [@Dafi-Duck](https://www.ruby-forum.com/u/Dafi-Duck)\
**Replies:** 4\
**Last updated:** [September 27, 2007, 4:20pm UTC](https://www.ruby-forum.com/t/jruby-on-a-huge-project/111335 "2007-09-27T16:20:12Z")

</div>

Hi, I am working on a new project built on websphere portal. I need to be able to have about 2 million concurrent users. If I use JRuby, will it work? Can JRuby work well on websphere portal? Can JRuby work with por…

---

## [Regarding Constants](https://www.ruby-forum.com/t/regarding-constants/110284)

<div class="topic-metadata">

**Author:** [@hbotadra](https://www.ruby-forum.com/u/hbotadra)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 11:01pm UTC](https://www.ruby-forum.com/t/regarding-constants/110284 "2007-09-25T23:01:20Z")

</div>

Hi, I am having some difficulty in the use of constants in Ruby. I’ve a module: eg. Module Constants MY\_CONST = “hello” end I include this module in my model. Further, the name of the constant (MY\_CONST) would be…

---

## [Problems getting Mechanize working](https://www.ruby-forum.com/t/problems-getting-mechanize-working/112856)

<div class="topic-metadata">

**Author:** [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Replies:** 4\
**Last updated:** [August 24, 2007, 9:55pm UTC](https://www.ruby-forum.com/t/problems-getting-mechanize-working/112856 "2007-08-24T21:55:28Z")

</div>

i am trying to get mechanize to work, but i am getting the following error… does anyone have any ideas? this happens in irb and while running scripts… if i do an agent.methods, i get not ‘get’ in the list either… ve…

---

## [Object evaluation](https://www.ruby-forum.com/t/object-evaluation/87925)

<div class="topic-metadata">

**Author:** [@Pierre-Alexandre\_M](https://www.ruby-forum.com/u/Pierre-Alexandre_M)\
**Replies:** 4\
**Last updated:** [March 7, 2007, 12:24am UTC](https://www.ruby-forum.com/t/object-evaluation/87925 "2007-03-07T00:24:51Z")

</div>

Hey, Whenever I want to DRY some code, I want to do the following: irb(main):001:0\> @my\_first\_var = ‘RoR rocks!’ =\> “RoR rocks!” irb(main):002:0\> \[‘first’\].each do |attr| irb(main):003:1\* puts @my\_"#{attr}"\_var ir…

---

## [Triming string to fit a specific width](https://www.ruby-forum.com/t/triming-string-to-fit-a-specific-width/72828)

<div class="topic-metadata">

**Author:** [@femto\_gary](https://www.ruby-forum.com/u/femto_gary)\
**Replies:** 4\
**Last updated:** [October 19, 2006, 9:06am UTC](https://www.ruby-forum.com/t/triming-string-to-fit-a-specific-width/72828 "2006-10-19T09:06:10Z")

</div>

hello all, I have a requirement to trim a string to fit a specific width. This data is displayed under some table column, and need to fit the column width. Since I can’t tell the exact pixel in html. so we needn’t be…

---

## [Caching and optimizations](https://www.ruby-forum.com/t/caching-and-optimizations/65539)

<div class="topic-metadata">

**Author:** [@Frederico\_Oliveira](https://www.ruby-forum.com/u/Frederico_Oliveira)\
**Replies:** 4\
**Last updated:** [August 21, 2006, 5:35pm UTC](https://www.ruby-forum.com/t/caching-and-optimizations/65539 "2006-08-21T17:35:43Z")

</div>

Hey guys, I looked around and it seems like this hasn’t been asked before, but one of my major concerns with Radiant (which I’ve been using for quite some time now) is its caching mechanism. Here’s my problem: I plan…

---

## [Installation Problems](https://www.ruby-forum.com/t/installation-problems/94862)

<div class="topic-metadata">

**Author:** [@patryk](https://www.ruby-forum.com/u/patryk)\
**Replies:** 4\
**Last updated:** [May 16, 2006, 9:09pm UTC](https://www.ruby-forum.com/t/installation-problems/94862 "2006-05-16T21:09:07Z")

</div>

I’m new to ruby, and attempting to install it for the first time. Running as root under CentOS 4, I downloaded the sources, configure, make, and make install, all with no apparent errors. However, whenever I attempt t…

---

## [Still Stumbled on First things in trying RubyOnRails](https://www.ruby-forum.com/t/still-stumbled-on-first-things-in-trying-rubyonrails/59985)

<div class="topic-metadata">

**Author:** [@Ling](https://www.ruby-forum.com/u/Ling)\
**Replies:** 4\
**Last updated:** [May 10, 2006, 7:50pm UTC](https://www.ruby-forum.com/t/still-stumbled-on-first-things-in-trying-rubyonrails/59985 "2006-05-10T19:50:29Z")

</div>

Still Stumbled on First things in trying RubyOnRails http://instantrails.rubyforge.org/tutorial/index.html http://rails.homelinux.org/ I had tried the first of the top 12 tutorials and got stuck after adding a ne…

---

## [Plugin type discovery/registration - How do I discover what](https://www.ruby-forum.com/t/plugin-type-discovery-registration-how-do-i-discover-what/74278)

<div class="topic-metadata">

**Author:** [@jbell38](https://www.ruby-forum.com/u/jbell38)\
**Replies:** 4\
**Last updated:** [February 27, 2006, 10:20pm UTC](https://www.ruby-forum.com/t/plugin-type-discovery-registration-how-do-i-discover-what/74278 "2006-02-27T22:20:25Z")

</div>

In my current project I am in need of a standard plugin mechanism where I discover what plugins are available by what exists in a directory. I was able to easily simply ‘require’ these ruby files in. However I want to …

---

## [Syntax questions](https://www.ruby-forum.com/t/syntax-questions/71693)

<div class="topic-metadata">

**Author:** [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Replies:** 4\
**Last updated:** [February 24, 2006, 6:46pm UTC](https://www.ruby-forum.com/t/syntax-questions/71693 "2006-02-24T18:46:21Z")

</div>

A few simple syntax questions: Anyway to do use the default arg for nonlast params? Something like: run(xyz, , 3) Veru often I see things like: a, b = meth() Is meth returning two objects? Or is it returning …

---

## [Page caching feeds and cache file extensions](https://www.ruby-forum.com/t/page-caching-feeds-and-cache-file-extensions/53425)

<div class="topic-metadata">

**Author:** [@csn](https://www.ruby-forum.com/u/csn)\
**Replies:** 4\
**Last updated:** [February 5, 2006, 8:43pm UTC](https://www.ruby-forum.com/t/page-caching-feeds-and-cache-file-extensions/53425 "2006-02-05T20:43:15Z")

</div>

I have a feeds controller which generates RSS and Atom pages. I put ‘caches\_page :show’ in it. The problem is that the pages are saved with an html extension. As a result, browsers display the cached feeds as HTML rat…

---

## [A dumb question on extracting a value from a hash](https://www.ruby-forum.com/t/a-dumb-question-on-extracting-a-value-from-a-hash/53307)

<div class="topic-metadata">

**Author:** [@soderic](https://www.ruby-forum.com/u/soderic)\
**Replies:** 4\
**Last updated:** [February 1, 2006, 1:25am UTC](https://www.ruby-forum.com/t/a-dumb-question-on-extracting-a-value-from-a-hash/53307 "2006-02-01T01:25:08Z")

</div>

Hi, I have the following code fragment; @comm\_type = Communication.find\_by\_sql(‘select id from communication\_types where upper(description) = “EMAIL”’) Which results in @comm\_type =\> \[#\<Communication:0x39a0f60 @a…

[Previous page](https://www.ruby-forum.com/top.md?page=1476&per_page=50)

[Next page](https://www.ruby-forum.com/top.md?page=1478&per_page=50)
