# Top

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

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

---

## [Problems with Rails server/mysql2 gem](https://www.ruby-forum.com/t/problems-with-rails-server-mysql2-gem/211555)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [September 9, 2011, 6:38am UTC](https://www.ruby-forum.com/t/problems-with-rails-server-mysql2-gem/211555 "2011-09-09T06:38:59Z")

</div>

Environment: Windows 7 64bit (Home Premium) Ruby 1.9.2 p290 (2011-07-09) \[i386-mingw32\] Rails 3.0.10 MySQL 5.5 The task at hand: Teaching myself web-based database stuff through the Ruby on Rails Framework - I have…

---

## [It's a jruby problem?](https://www.ruby-forum.com/t/its-a-jruby-problem/203892)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [March 1, 2011, 1:04pm UTC](https://www.ruby-forum.com/t/its-a-jruby-problem/203892 "2011-03-01T13:04:28Z")

</div>

I’m using jruby-1.6.0.rc2 and rails 3. I’ve installed gem web-app-them and run: jruby -S rails g web\_app\_theme:theme --theme=“drastic-dark” –engine=haml --app-name=“MyApp” I’ve this error: org/jruby/RubyFile.java:42…

---

## [Reading from windows mapped drive](https://www.ruby-forum.com/t/reading-from-windows-mapped-drive/199494)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 3\
**Last updated:** [December 1, 2010, 8:04pm UTC](https://www.ruby-forum.com/t/reading-from-windows-mapped-drive/199494 "2010-12-01T20:04:10Z")

</div>

I have a jruby app that reads a file. The app is deployed on windows xp and runs as a service. I am able to read the file when the path is: c:\\my\_file\\my\_file.txt but when I try and read from the network drive: z:\\…

---

## [Hotlink protection for wordpress](https://www.ruby-forum.com/t/hotlink-protection-for-wordpress/182674)

<div class="topic-metadata">

**Author:** [@max](https://www.ruby-forum.com/u/max)\
**Replies:** 3\
**Last updated:** [February 4, 2010, 8:55am UTC](https://www.ruby-forum.com/t/hotlink-protection-for-wordpress/182674 "2010-02-04T08:55:53Z")

</div>

Hello, I tried to add some rewrite rule to block hotlinking from other web sites. But the rules don’t work, I go to my site (e.g. domain1.com), the images won’t load at all (using wordpress as the cms). Is there anyt…

---

## [Render partial with nested attributes in different model](https://www.ruby-forum.com/t/render-partial-with-nested-attributes-in-different-model/197104)

<div class="topic-metadata">

**Author:** [@Ryan\_Tinsley](https://www.ruby-forum.com/u/Ryan_Tinsley)\
**Replies:** 0\
**Last updated:** [October 14, 2009, 5:00pm UTC](https://www.ruby-forum.com/t/render-partial-with-nested-attributes-in-different-model/197104 "2009-10-14T17:00:23Z")

</div>

Hi everyone, My previous question was posted herehttp://groups.google.com/group/rubyonrails-talk/browse\_thread/thread/dddaeb075789d4b5. I’m starting a new topic as the problems have shifted. I have a rails applicatio…

---

## [Strange email syntax issue with ActionMailer](https://www.ruby-forum.com/t/strange-email-syntax-issue-with-actionmailer/176938)

<div class="topic-metadata">

**Author:** [@zaczheng](https://www.ruby-forum.com/u/zaczheng)\
**Replies:** 3\
**Last updated:** [October 8, 2009, 5:53pm UTC](https://www.ruby-forum.com/t/strange-email-syntax-issue-with-actionmailer/176938 "2009-10-08T17:53:13Z")

</div>

I am getting a peculiar syntax error with when setting the from email address in an ActionMailer class, like this: from ‘Email removed\_email\_address@domain.invalid’ This is a valid email address as shown on ActionMai…

---

## [Paperclip - when validation fails, hold onto attachments](https://www.ruby-forum.com/t/paperclip-when-validation-fails-hold-onto-attachments/173868)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 3\
**Last updated:** [September 18, 2009, 11:53am UTC](https://www.ruby-forum.com/t/paperclip-when-validation-fails-hold-onto-attachments/173868 "2009-09-18T11:53:22Z")

</div>

I’ve seen this with paperclip before I think, anyone know how to fix it? When my validation fails the form is re-rendered with the validation error messages, all fine. However, the paperclip attachments that were prev…

---

## [Fcntl not supported on this platform](https://www.ruby-forum.com/t/fcntl-not-supported-on-this-platform/167708)

<div class="topic-metadata">

**Author:** [@Barbara\_R](https://www.ruby-forum.com/u/Barbara_R)\
**Replies:** 3\
**Last updated:** [July 28, 2009, 10:44am UTC](https://www.ruby-forum.com/t/fcntl-not-supported-on-this-platform/167708 "2009-07-28T10:44:20Z")

</div>

Hello, I understand that this particular issue with fcntl might be fixed in trunk (and the next RC of 1.3). When/how might I get a hold of that? Since 1.3.ORC1 was just released May 1st, It may be a while before I se…

---

## [Rake + eval](https://www.ruby-forum.com/t/rake-eval/169359)

<div class="topic-metadata">

**Author:** [@destiney](https://www.ruby-forum.com/u/destiney)\
**Replies:** 3\
**Last updated:** [June 4, 2009, 3:14pm UTC](https://www.ruby-forum.com/t/rake-eval/169359 "2009-06-04T15:14:45Z")

</div>

I have a rake task that contains an eval call. namespace :db do namespace :load do desc ‘Loads factories into db’ task :factories =\> :environment do ActiveRecord::Base.establish\_connection( ENV\[ ‘RAILS\_ENV’ \] ) FAC…

---

## [Cucumber 0.3.3 - Examples:](https://www.ruby-forum.com/t/cucumber-0-3-3-examples/167723)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 3\
**Last updated:** [May 12, 2009, 2:12pm UTC](https://www.ruby-forum.com/t/cucumber-0-3-3-examples/167723 "2009-05-12T14:12:53Z")

</div>

Am I correct when I infer that the “Examples” keyword is now only valid in a Scenario Outline? If so, in what version did this change take place?

---

## [Problema con request.xml\_http\_request?](https://www.ruby-forum.com/t/problema-con-request-xml-http-request/166831)

<div class="topic-metadata">

**Author:** [@jsponja](https://www.ruby-forum.com/u/jsponja)\
**Replies:** 3\
**Last updated:** [April 30, 2009, 2:04pm UTC](https://www.ruby-forum.com/t/problema-con-request-xml-http-request/166831 "2009-04-30T14:04:56Z")

</div>

No se porque cuando hago una llamada xml:\_http\_request con un link\_remote\_to siempre me devuelve falso. Esto es el cÃ³digo de la vista index del controlador. \<%= if request.xml\_http\_request? render :partial =\> “list…

---

## [Ruby on Windows beyong 1.8.6 how to install?](https://www.ruby-forum.com/t/ruby-on-windows-beyong-1-8-6-how-to-install/165864)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 3\
**Last updated:** [April 20, 2009, 9:05am UTC](https://www.ruby-forum.com/t/ruby-on-windows-beyong-1-8-6-how-to-install/165864 "2009-04-20T09:05:47Z")

</div>

on page http://www.ruby-lang.org/en/downloads/ for Ruby 1.8.7 and beyond, there is no one-click installer, so how do we install it? by unzipping it and setting some path in autoexec.bat or something like that? is …

---

## [OutOfMemory Errors](https://www.ruby-forum.com/t/outofmemory-errors/162801)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 3\
**Last updated:** [March 13, 2009, 10:19pm UTC](https://www.ruby-forum.com/t/outofmemory-errors/162801 "2009-03-13T22:19:02Z")

</div>

Starting to see a lot of strange OutOfMemory errors with 1.1.6… any ideas here ? Charles is this that same Caching bug in 1.1.6 ? SEVERE: Servlet.service() for servlet default threw exception java.lang.OutOfMemoryErr…

---

## [LIBXML and LibXSLT](https://www.ruby-forum.com/t/libxml-and-libxslt/151396)

<div class="topic-metadata">

**Author:** [@phudson1442](https://www.ruby-forum.com/u/phudson1442)\
**Replies:** 3\
**Last updated:** [January 24, 2009, 4:50pm UTC](https://www.ruby-forum.com/t/libxml-and-libxslt/151396 "2009-01-24T16:50:46Z")

</div>

Hi, I installed libxml-ruby and libxslt-ruby. It took a while but it’s running now. However, on the libxml site (http://libxml.rubyforge.org/install.xml) it says: "…libxml requires a few other libraries to be instal…

---

## [Cucumber Problems with setup selenium/webrat + languages](https://www.ruby-forum.com/t/cucumber-problems-with-setup-selenium-webrat-languages/154104)

<div class="topic-metadata">

**Author:** [@Alberto\_P](https://www.ruby-forum.com/u/Alberto_P)\
**Replies:** 3\
**Last updated:** [November 27, 2008, 12:47am UTC](https://www.ruby-forum.com/t/cucumber-problems-with-setup-selenium-webrat-languages/154104 "2008-11-27T00:47:56Z")

</div>

Hi all, i’ve gotten started with cucumber thanks to Fernando and Raimond who gave a brilliant talk about cucumber at the Conferencia Rails in Madrid a few weeks ago. Congratulations again guys! Thanks also to Joseph …

---

## [Really old dates in rails](https://www.ruby-forum.com/t/really-old-dates-in-rails/153078)

<div class="topic-metadata">

**Author:** [@MartOn](https://www.ruby-forum.com/u/MartOn)\
**Replies:** 3\
**Last updated:** [November 11, 2008, 11:49pm UTC](https://www.ruby-forum.com/t/really-old-dates-in-rails/153078 "2008-11-11T23:49:19Z")

</div>

Hello Im planning to store really old dates, but it seems Rails are having trouble with that. Are there any date types I can use that support dates older than for instance 1900? /MartOn

---

## [How to set up data before story runner steps?](https://www.ruby-forum.com/t/how-to-set-up-data-before-story-runner-steps/130302)

<div class="topic-metadata">

**Author:** [@Bei](https://www.ruby-forum.com/u/Bei)\
**Replies:** 3\
**Last updated:** [October 9, 2008, 3:25pm UTC](https://www.ruby-forum.com/t/how-to-set-up-data-before-story-runner-steps/130302 "2008-10-09T15:25:11Z")

</div>

Hi I'm using story runner of RSpec now. What I'm trying to do is initializing the @selenium before any steps of one story is executing, and stop @selenium after any story is finished. just as @BeforeClass and @After…

---

## [Plugins ACL](https://www.ruby-forum.com/t/plugins-acl/150161)

<div class="topic-metadata">

**Author:** [@ebougerolle](https://www.ruby-forum.com/u/ebougerolle)\
**Replies:** 3\
**Last updated:** [October 7, 2008, 5:14pm UTC](https://www.ruby-forum.com/t/plugins-acl/150161 "2008-10-07T17:14:43Z")

</div>

Salut, J’aimerais savoir quel plugin vous utilisez pour gérer des profils utilisateurs ? Je pensais partir sur Restful Authentication + ACL System, mais ce dernier n’a pas été porté sous git, et j’aime bien gérer mes…

---

## [Optional Rails app functionality](https://www.ruby-forum.com/t/optional-rails-app-functionality/138140)

<div class="topic-metadata">

**Author:** [@djmook](https://www.ruby-forum.com/u/djmook)\
**Replies:** 3\
**Last updated:** [May 22, 2008, 2:26pm UTC](https://www.ruby-forum.com/t/optional-rails-app-functionality/138140 "2008-05-22T14:26:32Z")

</div>

Hi, I’ve got this idea and/or requirement-with-no-known-solution-so-I-made-one-up. Here’s my problem: Say I’ve got a rails app that does a bunch of stuff. Great. Now I want to create an admin section to maintain use…

---

## [Control end-user access to a page](https://www.ruby-forum.com/t/control-end-user-access-to-a-page/136466)

<div class="topic-metadata">

**Author:** [@luigi](https://www.ruby-forum.com/u/luigi)\
**Replies:** 3\
**Last updated:** [May 13, 2008, 4:02pm UTC](https://www.ruby-forum.com/t/control-end-user-access-to-a-page/136466 "2008-05-13T16:02:02Z")

</div>

Hello. Has been developed an extension or a solution to allow from the admin interface to control access of end-usersto a given page/tree? What I’d like to do is to create a “reserved” part of the site (page which cou…

---

## [Different view for desktop and mobile browser](https://www.ruby-forum.com/t/different-view-for-desktop-and-mobile-browser/127231)

<div class="topic-metadata">

**Author:** [@pph](https://www.ruby-forum.com/u/pph)\
**Replies:** 3\
**Last updated:** [January 27, 2008, 3:10pm UTC](https://www.ruby-forum.com/t/different-view-for-desktop-and-mobile-browser/127231 "2008-01-27T15:10:35Z")

</div>

Hi, I am just beginning with RoR and I need to add into existing RoR application version for mobile device-concretely iPhone. I need to change layer for it and a lot of view because I need different display on the iP…

---

## [Create a windows installer for " Ruby + GTK + SQLite " app](https://www.ruby-forum.com/t/create-a-windows-installer-for-ruby-gtk-sqlite-app/126283)

<div class="topic-metadata">

**Author:** [@1000tonlab](https://www.ruby-forum.com/u/1000tonlab)\
**Replies:** 3\
**Last updated:** [January 23, 2008, 9:18pm UTC](https://www.ruby-forum.com/t/create-a-windows-installer-for-ruby-gtk-sqlite-app/126283 "2008-01-23T21:18:17Z")

</div>

Someone know how install a "Ruby + GTK + SQLite " Application on Windows, this is developed on GNU/Linux and i want install on Windows. I need rubyscript2exe but Wath more need to do this?

---

## [SQL-Server Rails 2.0 and Nulls](https://www.ruby-forum.com/t/sql-server-rails-2-0-and-nulls/122906)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [December 26, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/sql-server-rails-2-0-and-nulls/122906 "2007-12-26T19:30:33Z")

</div>

will the patch in Ticket #8886 be applied to the sqlserver gem. also since the gems are hosted on the rails sites how can i get more information on the communities that are updating them?

---

## [How to implement a block derived from gr\_block](https://www.ruby-forum.com/t/how-to-implement-a-block-derived-from-gr-block/91545)

<div class="topic-metadata">

**Author:** [@george\_b](https://www.ruby-forum.com/u/george_b)\
**Replies:** 3\
**Last updated:** [April 11, 2007, 7:54am UTC](https://www.ruby-forum.com/t/how-to-implement-a-block-derived-from-gr-block/91545 "2007-04-11T07:54:53Z")

</div>

I created a block from gr\_sync\_block and later found that it does not work properly since gr\_sync\_\* requires that the input and output rate are synchronous, e.g. having 1:1, 1:N, N:1 fixed ratio. However, my block ha…

---

## [Configuration of Radiant Mental with MySql & Litespeed ver 3](https://www.ruby-forum.com/t/configuration-of-radiant-mental-with-mysql-litespeed-ver-3/90709)

<div class="topic-metadata">

**Author:** [@benni](https://www.ruby-forum.com/u/benni)\
**Replies:** 3\
**Last updated:** [March 31, 2007, 6:47pm UTC](https://www.ruby-forum.com/t/configuration-of-radiant-mental-with-mysql-litespeed-ver-3/90709 "2007-03-31T18:47:46Z")

</div>

Hi All, After several runthroughs of the Radiant Mental with MySql, Apache and Mongrel, I diverted to MySql and Litespeed for stability and a much lower memory footprint/overhead on a 256MB Slice. Following Sean’s i…

---

## [Dealing with special characters](https://www.ruby-forum.com/t/dealing-with-special-characters/85163)

<div class="topic-metadata">

**Author:** [@j-merrill](https://www.ruby-forum.com/u/j-merrill)\
**Replies:** 3\
**Last updated:** [February 10, 2007, 11:14pm UTC](https://www.ruby-forum.com/t/dealing-with-special-characters/85163 "2007-02-10T23:14:05Z")

</div>

hi all, what is the best way to deal with non-english characters? for example, I have a field withthe value “joÃƒÂ£o” after saving the value “JoÃ£o”. How do I deal with this issue? Thnaks

---

## [Retrieving an object by it's id](https://www.ruby-forum.com/t/retrieving-an-object-by-its-id/83670)

<div class="topic-metadata">

**Author:** [@samoht](https://www.ruby-forum.com/u/samoht)\
**Replies:** 3\
**Last updated:** [January 28, 2007, 7:55pm UTC](https://www.ruby-forum.com/t/retrieving-an-object-by-its-id/83670 "2007-01-28T19:55:26Z")

</div>

Hello, how can I write a method f which fullfills the following specification? The function f has one Fixnum argument oi. f(oi) == \[true, obj\], if there’s an object obj with obj.object\_id == oi; f(oi) == \[false, nil…

---

## [Validation enhancements -- reflection, overriding, and schem](https://www.ruby-forum.com/t/validation-enhancements-reflection-overriding-and-schem/72632)

<div class="topic-metadata">

**Author:** [@Yossef\_M](https://www.ruby-forum.com/u/Yossef_M)\
**Replies:** 3\
**Last updated:** [October 22, 2006, 12:32am UTC](https://www.ruby-forum.com/t/validation-enhancements-reflection-overriding-and-schem/72632 "2006-10-22T00:32:54Z")

</div>

I’ve been looking at getting more and more information from the underlying database and automatically inserting that into my models. I’ve read many of the arguments, thoughts, and ideas about this. I understand the d…

---

## [Servidor IRC?](https://www.ruby-forum.com/t/servidor-irc/72591)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 3\
**Last updated:** [October 21, 2006, 9:28pm UTC](https://www.ruby-forum.com/t/servidor-irc/72591 "2006-10-21T21:28:50Z")

</div>

Hola Saben de algun servidor de IRC donde haya algun canal para hablar de RoR en espaÃ±ol? Gracias

---

## [Gem installer and scripts](https://www.ruby-forum.com/t/gem-installer-and-scripts/69579)

<div class="topic-metadata">

**Author:** [@tedx](https://www.ruby-forum.com/u/tedx)\
**Replies:** 3\
**Last updated:** [September 22, 2006, 11:54pm UTC](https://www.ruby-forum.com/t/gem-installer-and-scripts/69579 "2006-09-22T23:54:36Z")

</div>

Is there a way to get gem to run a script during an install similar to rpms pre/post-install? How do others deal with needing to copy files or create links etc. during a gem install? Ted

---

## [Getting the name of arguments a method takes](https://www.ruby-forum.com/t/getting-the-name-of-arguments-a-method-takes/61960)

<div class="topic-metadata">

**Author:** [@didier-prophete](https://www.ruby-forum.com/u/didier-prophete)\
**Replies:** 3\
**Last updated:** [May 3, 2006, 6:59pm UTC](https://www.ruby-forum.com/t/getting-the-name-of-arguments-a-method-takes/61960 "2006-05-03T18:59:04Z")

</div>

I am wondering if there is a way to programatically get the name of the arguments a function take. Say, I have this code: class MyClass def my\_fct(a, b, c) end end Now, I can easily get a handle to the method ‘my\_…

---

## [Ruby/Tk : Accessing a Checkbox](https://www.ruby-forum.com/t/ruby-tk-accessing-a-checkbox/72313)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [February 23, 2006, 6:09pm UTC](https://www.ruby-forum.com/t/ruby-tk-accessing-a-checkbox/72313 "2006-02-23T18:09:45Z")

</div>

How can I find out whether a Checkbox is checked or unchecked in Ruby? Here is my Checkbox definition (hope it is correct): $bpmto\_check=TkCheckButton.new(bpmto\_frame); How can I find the state of the checkbox? I trie…

---

## [Days in this month](https://www.ruby-forum.com/t/days-in-this-month/53337)

<div class="topic-metadata">

**Author:** [@misiek](https://www.ruby-forum.com/u/misiek)\
**Replies:** 3\
**Last updated:** [February 1, 2006, 11:34pm UTC](https://www.ruby-forum.com/t/days-in-this-month/53337 "2006-02-01T23:34:18Z")

</div>

How to get int of how many days got this month ?

---

## [Using acts\_as\_tree and belongs\_to together](https://www.ruby-forum.com/t/using-acts-as-tree-and-belongs-to-together/49503)

<div class="topic-metadata">

**Author:** [@nmkolev](https://www.ruby-forum.com/u/nmkolev)\
**Replies:** 3\
**Last updated:** [December 6, 2005, 9:30am UTC](https://www.ruby-forum.com/t/using-acts-as-tree-and-belongs-to-together/49503 "2005-12-06T09:30:30Z")

</div>

Hi all, I sat down to rework one of my first rails apps which was a very, very simple store. The organisation of the products in the store was rather flat: class Category \< AR:B has\_many :products end class Produc…

---

## [Hide raw regular expression from $\_SERVER](https://www.ruby-forum.com/t/hide-raw-regular-expression-from-server/236074)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 5\
**Last updated:** [August 4, 2013, 11:40am UTC](https://www.ruby-forum.com/t/hide-raw-regular-expression-from-server/236074 "2013-08-04T11:40:15Z")

</div>

I am using a regular expression in a server\_name: server\_name ~^(?!web2\\.)(?\<account\>.+)\\.mydomain\\.com$; In PHP, or any language for that matter, if I: echo $\_SERVER\['server\_name'\]; //~^(?!web2\\.)(?.+)\\.…

---

## [Ruby "visionary" code](https://www.ruby-forum.com/t/ruby-visionary-code/229939)

<div class="topic-metadata">

**Author:** [@francesco\_v](https://www.ruby-forum.com/u/francesco_v)\
**Replies:** 5\
**Last updated:** [February 15, 2013, 5:22pm UTC](https://www.ruby-forum.com/t/ruby-visionary-code/229939 "2013-02-15T17:22:44Z")

</div>

I found that code in the actual codebase of a web app I’m working on. What do you think about that? def is\_a\_feature? self.featured? end def is\_not\_a\_feature? !self.featured? end I just want to know who written t…

---

## [Remove USRP filters](https://www.ruby-forum.com/t/remove-usrp-filters/221134)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [July 4, 2012, 2:23am UTC](https://www.ruby-forum.com/t/remove-usrp-filters/221134 "2012-07-04T02:23:06Z")

</div>

Hello all, Not sure if this belongs here, but I found an old wireless gameboy messager ( ) and would like to intercept the messages. It uses a CC1020 RF modem in the 915MHz band. The problem is it uses FHSS in a 26M…

---

## [502 Bad Gateway](https://www.ruby-forum.com/t/502-bad-gateway/218255)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [May 18, 2012, 1:34am UTC](https://www.ruby-forum.com/t/502-bad-gateway/218255 "2012-05-18T01:34:28Z")

</div>

Hi all, I have a simple setup with Nginx in front Apache, under debian wheezy (nginx for static content, apache for php) Since the last Nginx update (1.1.17-2 via apt-get), every night after daily crons i have a 502 …

---

## [Limit requests per resource](https://www.ruby-forum.com/t/limit-requests-per-resource/212772)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [March 25, 2012, 7:16pm UTC](https://www.ruby-forum.com/t/limit-requests-per-resource/212772 "2012-03-25T19:16:18Z")

</div>

Hi, is there a way to limit the number of concurent requests per resource (eg. maximum 3 requests / backend, others waiting on frontend)?

---

## [Global variable -- last expression](https://www.ruby-forum.com/t/global-variable-last-expression/213063)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [October 23, 2011, 1:34am UTC](https://www.ruby-forum.com/t/global-variable-last-expression/213063 "2011-10-23T01:34:41Z")

</div>

Hi, In IRB the last expression is in \_ . But if you are in a ruby program how to get the last expression. Thanks Basha

---

## [Speeding up rails boot time in development?](https://www.ruby-forum.com/t/speeding-up-rails-boot-time-in-development/209127)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [July 7, 2011, 11:30am UTC](https://www.ruby-forum.com/t/speeding-up-rails-boot-time-in-development/209127 "2011-07-07T11:30:38Z")

</div>

I recently switched from REE to ruby 1.9.2 and I was shocked by how long it takes for rails to startup. This isn’t as much of an issue in production, but in development and test environments it’s almost unusable bec…

---

## [Why {} is much faster than Hash.new?](https://www.ruby-forum.com/t/why-is-much-faster-than-hash-new/201722)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [January 13, 2011, 11:03pm UTC](https://www.ruby-forum.com/t/why-is-much-faster-than-hash-new/201722 "2011-01-13T23:03:37Z")

</div>

Hi, a simple benchmark: Benchmark.realtime { 1000000.times { @m = Hash.new } } =\> 0.6552023887634277 Benchmark.realtime { 1000000.times { @m = {} } } =\> 0.17668819427490234 I would like to know why {} is so much fas…

---

## [Jruby-rack and --faster](https://www.ruby-forum.com/t/jruby-rack-and-faster/197541)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 5\
**Last updated:** [October 15, 2010, 10:44pm UTC](https://www.ruby-forum.com/t/jruby-rack-and-faster/197541 "2010-10-15T22:44:02Z")

</div>

Came across the --faster option yesterday and decided to give it a try because it sounded as if it would make things faster :-). I am using trinidad to run a sinatra app and ran into an error with jruby-rack org.jrub…

---

## [Permanent Redirect](https://www.ruby-forum.com/t/permanent-redirect/187341)

<div class="topic-metadata">

**Author:** [@openstream](https://www.ruby-forum.com/u/openstream)\
**Replies:** 5\
**Last updated:** [April 25, 2010, 3:54pm UTC](https://www.ruby-forum.com/t/permanent-redirect/187341 "2010-04-25T15:54:17Z")

</div>

Hi there, I’m trying to permanently redirect various outdated URLs to the domain’s home page like so: location /phpshop { rewrite ^ http://www.my-domain.com permanent; } which results e.g. in http://www.my-domain.…

---

## [Re: question regarding usrp\_fft.py](https://www.ruby-forum.com/t/re-question-regarding-usrp-fft-py/171949)

<div class="topic-metadata">

**Author:** [@fmalem](https://www.ruby-forum.com/u/fmalem)\
**Replies:** 5\
**Last updated:** [September 11, 2009, 6:58am UTC](https://www.ruby-forum.com/t/re-question-regarding-usrp-fft-py/171949 "2009-09-11T06:58:51Z")

</div>

Hi, — On Sat, 7/11/09, adib\_sairi removed\_email\_address@domain.invalid wrote: so if the bin of fft is treated as individual, what is the relationship \> between fft\_size and the db calculation? what is the usage of fft…

---

## [A basic but critical problem in beginning of python code](https://www.ruby-forum.com/t/a-basic-but-critical-problem-in-beginning-of-python-code/174980)

<div class="topic-metadata">

**Author:** [@nansai\_hu](https://www.ruby-forum.com/u/nansai_hu)\
**Replies:** 5\
**Last updated:** [September 5, 2009, 8:17pm UTC](https://www.ruby-forum.com/t/a-basic-but-critical-problem-in-beginning-of-python-code/174980 "2009-09-05T20:17:38Z")

</div>

When run a python script file, as we know main function will be run first. We send the class to a object “tb”,for instance. Then we have two ways to let the program run. One is call tb.run() function,and other is ca…

---

## [Redirect gets to get input from a file insted of from the us](https://www.ruby-forum.com/t/redirect-gets-to-get-input-from-a-file-insted-of-from-the-us/169664)

<div class="topic-metadata">

**Author:** [@kga85](https://www.ruby-forum.com/u/kga85)\
**Replies:** 5\
**Last updated:** [June 9, 2009, 1:55pm UTC](https://www.ruby-forum.com/t/redirect-gets-to-get-input-from-a-file-insted-of-from-the-us/169664 "2009-06-09T13:55:31Z")

</div>

I have this small program, or something like it as this just bigger: test.rb def testing t = gets puts t k = gets puts k end test2.rb testing When I run test2.rb it asks for user input. But I want the program t…

---

## [Bug when daemonizing](https://www.ruby-forum.com/t/bug-when-daemonizing/161962)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [April 26, 2009, 12:00pm UTC](https://www.ruby-forum.com/t/bug-when-daemonizing/161962 "2009-04-26T12:00:44Z")

</div>

e$B$k$S$-$A$G$9!#e(B e$B860xITL@$J$N$G%“%W%j%1!\<%7%g%s$NNc$G?=$7Lu$”$j$^$;$s!#e(B rcodetools (gem install rcodetools) e$BFb$Ke(B rct-fork / rct-fork-client e$B$H$$$&%i%$%V%i%j%m!\<%I$N%\*!\<%P!\<%X%C%I$rM^@)$9$k%9%/%j%W%…

---

## [Double Quotes Problem in mysql](https://www.ruby-forum.com/t/double-quotes-problem-in-mysql/165228)

<div class="topic-metadata">

**Author:** [@salil](https://www.ruby-forum.com/u/salil)\
**Replies:** 5\
**Last updated:** [April 11, 2009, 10:48am UTC](https://www.ruby-forum.com/t/double-quotes-problem-in-mysql/165228 "2009-04-11T10:48:42Z")

</div>

Hi All, I am using following code to find the artist @actual\_artist=Artist.find\_by\_name(params\[:record\]\[:artist\_name\]) —Line A my problem is that i receive da ta like params\[:record\]\[:artist\_name\]=“Acg”" so my appl…

---

## [Validation for a non active record input field](https://www.ruby-forum.com/t/validation-for-a-non-active-record-input-field/163388)

<div class="topic-metadata">

**Author:** [@railslist](https://www.ruby-forum.com/u/railslist)\
**Replies:** 5\
**Last updated:** [March 25, 2009, 4:39pm UTC](https://www.ruby-forum.com/t/validation-for-a-non-active-record-input-field/163388 "2009-03-25T16:39:40Z")

</div>

I am developing a classifieds type application. It has a Classified Model, Classified controller and a “show” view. When viewing an ad, it has an option to reply to the advertiser through action mailer. This reply is…

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

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