# Top

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

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

---

## [Setting fields in the USB packet](https://www.ruby-forum.com/t/setting-fields-in-the-usb-packet/91148)

<div class="topic-metadata">

**Author:** [@george\_n](https://www.ruby-forum.com/u/george_n)\
**Replies:** 5\
**Last updated:** [April 7, 2007, 10:36pm UTC](https://www.ruby-forum.com/t/setting-fields-in-the-usb-packet/91148 "2007-04-07T22:36:28Z")

</div>

Heyo, Eric, I think you started to mention something about this last night. But do we want a separate method for setting each field in the USB packet? There are several fields that we won’t ever need to set on our …

---

## [Duda acerca de paginate](https://www.ruby-forum.com/t/duda-acerca-de-paginate/72304)

<div class="topic-metadata">

**Author:** [@ayanami](https://www.ruby-forum.com/u/ayanami)\
**Replies:** 5\
**Last updated:** [October 18, 2006, 1:25pm UTC](https://www.ruby-forum.com/t/duda-acerca-de-paginate/72304 "2006-10-18T13:25:11Z")

</div>

En una consulta paginada, es posible sacar solo el numero de la anterior y siguiente pagina (si existen). Es decir, solo el atributo href de un paginate normal. Gracias

---

## [RJS Change Background Color](https://www.ruby-forum.com/t/rjs-change-background-color/101806)

<div class="topic-metadata">

**Author:** [@davidjrice](https://www.ruby-forum.com/u/davidjrice)\
**Replies:** 5\
**Last updated:** [August 9, 2006, 12:11am UTC](https://www.ruby-forum.com/t/rjs-change-background-color/101806 "2006-08-09T00:11:42Z")

</div>

What’s the page.method to change the background color of a DOM element? I’m trying to change the background color of a couple of styled 's when an Ajax link is clicked. Thanks, David

---

## [Memory use: WEBrick vs Apache](https://www.ruby-forum.com/t/memory-use-webrick-vs-apache/53976)

<div class="topic-metadata">

**Author:** [@ryantate](https://www.ruby-forum.com/u/ryantate)\
**Replies:** 5\
**Last updated:** [February 19, 2006, 2:49pm UTC](https://www.ruby-forum.com/t/memory-use-webrick-vs-apache/53976 "2006-02-19T14:49:48Z")

</div>

Hello, From purely a memory consumption standpoint, is it generally more efficient to run a simple Rails app using WEBrick alongside a separate apache installation or to run Rails under FCGI and use Apache to bridge …

---

## [Array matching question](https://www.ruby-forum.com/t/array-matching-question/245223)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [January 31, 2017, 12:26pm UTC](https://www.ruby-forum.com/t/array-matching-question/245223 "2017-01-31T12:26:49Z")

</div>

Hi, What I am trying to achieve is a .match within an array. array = {Danby:“347”, Jerry:"037, Mary:“221”} #I want to get the numeric value if the text value is found in the array. if(/#input/.match(array) #this doe…

---

## [Can multiple domain points a single nginx host with server\_name?](https://www.ruby-forum.com/t/can-multiple-domain-points-a-single-nginx-host-with-server-name/240736)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [April 29, 2014, 8:31am UTC](https://www.ruby-forum.com/t/can-multiple-domain-points-a-single-nginx-host-with-server-name/240736 "2014-04-29T08:31:00Z")

</div>

Hello list, I am in a process to configure nginx infront of apache. For vhost having single domain like www.mydomain.com & mydomain.com ; there is no issue to configure by server\_name directive. But what to do wher…

---

## [RoR Developer for Berlin besed Company wanted! Permanent Position!](https://www.ruby-forum.com/t/ror-developer-for-berlin-besed-company-wanted-permanent-position/229619)

<div class="topic-metadata">

**Author:** [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Replies:** 0\
**Last updated:** [January 16, 2013, 7:17am UTC](https://www.ruby-forum.com/t/ror-developer-for-berlin-besed-company-wanted-permanent-position/229619 "2013-01-16T07:17:25Z")

</div>

Ruby on Rails Developer My Client is a technology start-up with a simple mission - Helping publishers to deliver their magazines to tablets and mobile devices. Working with him, publishers can automatically convert e…

---

## [ArgumentError: undefined class/module MyClass](https://www.ruby-forum.com/t/argumenterror-undefined-class-module-myclass/205738)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [April 14, 2011, 4:47pm UTC](https://www.ruby-forum.com/t/argumenterror-undefined-class-module-myclass/205738 "2011-04-14T16:47:17Z")

</div>

Hi all, I’m having troubles while trying to run some of the rack tests. Can someone please advice how to fix the following errors: ArgumentError: undefined class/module MyClass ArgumentError (A copy of MyLib::MyClass…

---

## [Gtk::Tooltips](https://www.ruby-forum.com/t/gtk-tooltips/168693)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [May 26, 2009, 1:04pm UTC](https://www.ruby-forum.com/t/gtk-tooltips/168693 "2009-05-26T13:04:47Z")

</div>

Hi, shouldn’t the Gtk::Tooltips API in the wiki been marked as deprecated, with a hint to the new Gtk::Tooltip API in Gtk::Widget and Gtk::Tooltip. Also the link from the main Gtk page should go to Gtk::Tooltip instea…

---

## [Workling+Starling : suivi des jobs](https://www.ruby-forum.com/t/workling-starling-suivi-des-jobs/157817)

<div class="topic-metadata">

**Author:** [@Osaris](https://www.ruby-forum.com/u/Osaris)\
**Replies:** 3\
**Last updated:** [January 18, 2009, 2:11am UTC](https://www.ruby-forum.com/t/workling-starling-suivi-des-jobs/157817 "2009-01-18T02:11:19Z")

</div>

Bonjour, J’utilise Workling + Starling pour exécuter des traitements en tâche de fond dans une application Rails. Tout fonctionne très bien mais je me demande quelle est la meilleure méthode pour afficher l’état de t…

---

## [HEAD now running Rails 2.2](https://www.ruby-forum.com/t/head-now-running-rails-2-2/151079)

<div class="topic-metadata">

**Author:** [@de\_Villamil\_FrSSSSd](https://www.ruby-forum.com/u/de_Villamil_FrSSSSd)\
**Replies:** 3\
**Last updated:** [October 17, 2008, 3:57pm UTC](https://www.ruby-forum.com/t/head-now-running-rails-2-2/151079 "2008-10-17T15:57:53Z")

</div>

Hello list, Thanks to Cyril M.'s great work, we’ve been able to migrate Typo to Rails son to come 2.2, which means 2 things : First, Typo still doesn’t support Rails 2.1 and it won’t. Typo 5.1.3 runs Rails 2.0.2, the…

---

## [Libpango and sample text editor app](https://www.ruby-forum.com/t/libpango-and-sample-text-editor-app/117192)

<div class="topic-metadata">

**Author:** [@Chris\_Rohlf](https://www.ruby-forum.com/u/Chris_Rohlf)\
**Replies:** 3\
**Last updated:** [October 16, 2007, 2:27pm UTC](https://www.ruby-forum.com/t/libpango-and-sample-text-editor-app/117192 "2007-10-16T14:27:32Z")

</div>

I am playing with the sample text editor app from the ruby/gtk2 site which you can find here: http://ruby-gnome2.sourceforge.jp/hiki.cgi?Simple+Text+Editor Im a beginner to ruby (6 months) and a beginning to ruby/gtk2…

---

## [Script/runner + cron job = sad rmagick](https://www.ruby-forum.com/t/script-runner-cron-job-sad-rmagick/85500)

<div class="topic-metadata">

**Author:** [@daveh](https://www.ruby-forum.com/u/daveh)\
**Replies:** 3\
**Last updated:** [April 26, 2007, 5:49pm UTC](https://www.ruby-forum.com/t/script-runner-cron-job-sad-rmagick/85500 "2007-04-26T17:49:12Z")

</div>

Hi, I’m running a cron job to parse some RSS feeds. When running the following from the terminal everything works as expected: antrover:~/Sway/Projects/mi7/trunk/mi7 dave$ script/runner -e development " GetRssData.…

---

## [Model validates twice in tests, produces duplicate errors](https://www.ruby-forum.com/t/model-validates-twice-in-tests-produces-duplicate-errors/93545)

<div class="topic-metadata">

**Author:** [@natec](https://www.ruby-forum.com/u/natec)\
**Replies:** 3\
**Last updated:** [April 8, 2006, 8:22pm UTC](https://www.ruby-forum.com/t/model-validates-twice-in-tests-produces-duplicate-errors/93545 "2006-04-08T20:22:52Z")

</div>

In my unit tests for my User model, I’m testing some validation cases. What is really strange, and driving me crazy, is that in the unit tests, it seems like the save method is causing my validations to execute twice,…

---

## [Rails on emacs - need a working .emacs sample](https://www.ruby-forum.com/t/rails-on-emacs-need-a-working-emacs-sample/54863)

<div class="topic-metadata">

**Author:** [@bakki](https://www.ruby-forum.com/u/bakki)\
**Replies:** 3\
**Last updated:** [March 14, 2006, 11:51pm UTC](https://www.ruby-forum.com/t/rails-on-emacs-need-a-working-emacs-sample/54863 "2006-03-14T23:51:38Z")

</div>

I would like to hear from some one who has ecb, multiple modes with ruby mode + html mode, rails mode all working together and playing well. I had ecb working with Ruby syntax highlighting. That was a no-brainer sinc…

---

## [Habtm and collection\_select question](https://www.ruby-forum.com/t/habtm-and-collection-select-question/49764)

<div class="topic-metadata">

**Author:** [@zerohalo](https://www.ruby-forum.com/u/zerohalo)\
**Replies:** 3\
**Last updated:** [December 9, 2005, 10:36am UTC](https://www.ruby-forum.com/t/habtm-and-collection-select-question/49764 "2005-12-09T10:36:37Z")

</div>

I apologize in advance for my ignorance, but I’m stuck with a problem and after a couple of hours of looking for answers in the documentation and help, I’m still stuck so I was wondering if someone might have the answ…

---

## [Nginx configuration for SemanticScuttle?](https://www.ruby-forum.com/t/nginx-configuration-for-semanticscuttle/242918)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [August 8, 2015, 3:17pm UTC](https://www.ruby-forum.com/t/nginx-configuration-for-semanticscuttle/242918 "2015-08-08T15:17:32Z")

</div>

Greetings, I have several Web applications running on a Centos 6.6 server. I am migrating them from Apache to Nginx. Apache is still running, so I’m running nginx on port 81 for now. The general setup is OK. I ALREAA…

---

## [NGinX Form Input Problem](https://www.ruby-forum.com/t/nginx-form-input-problem/215457)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [January 5, 2012, 10:15am UTC](https://www.ruby-forum.com/t/nginx-form-input-problem/215457 "2012-01-05T10:15:38Z")

</div>

I have just recently set-up a new LEMP in Ubuntu 11.10 (64-bit) and running NGinX ver 1.0.5. the server is running fine but I cannot seem to get any forms to work. On my old server (windows) the forms worked fine, but…

---

## [When will mod\_auth\_mysql in nginx will be available?](https://www.ruby-forum.com/t/when-will-mod-auth-mysql-in-nginx-will-be-available/184238)

<div class="topic-metadata">

**Author:** [@lhmwzy](https://www.ruby-forum.com/u/lhmwzy)\
**Replies:** 7\
**Last updated:** [February 27, 2010, 4:46am UTC](https://www.ruby-forum.com/t/when-will-mod-auth-mysql-in-nginx-will-be-available/184238 "2010-02-27T04:46:19Z")

</div>

I see the post: Posted by Igor S. (Guest) on 16.03.2009 13:40 (Received via mailing list) On Mon, Mar 16, 2009 at 01:19:20PM +0100, Manlio P. wrote: Written from scratch, implementing the MySQL wire protocol? Yes. …

---

## [Creating and raising custom exception in Ruby C extension](https://www.ruby-forum.com/t/creating-and-raising-custom-exception-in-ruby-c-extension/177712)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 7\
**Last updated:** [October 22, 2009, 3:14pm UTC](https://www.ruby-forum.com/t/creating-and-raising-custom-exception-in-ruby-c-extension/177712 "2009-10-22T15:14:22Z")

</div>

Hi, I’m trying to create a CustomError exception in a Ruby C extension and raise it: VALUE class\_standard\_error = rb\_const\_get(rb\_cObject, rb\_intern(“StandardError”)); VALUE class\_custom\_error = rb\_define\_class\_under…

---

## [Protect link with cookies?](https://www.ruby-forum.com/t/protect-link-with-cookies/169839)

<div class="topic-metadata">

**Author:** [@Artifex\_Maximus](https://www.ruby-forum.com/u/Artifex_Maximus)\
**Replies:** 7\
**Last updated:** [June 12, 2009, 11:46am UTC](https://www.ruby-forum.com/t/protect-link-with-cookies/169839 "2009-06-12T11:46:18Z")

</div>

Hello! I am pretty newbie to nginx and having problem on protecting my links. I am using valid\_referers but is it possible using cookies for make it stronger? For example I set cookie uid with nginx’s userid in ‘loca…

---

## [Installare ruby](https://www.ruby-forum.com/t/installare-ruby/156707)

<div class="topic-metadata">

**Author:** [@martignoni-a](https://www.ruby-forum.com/u/martignoni-a)\
**Replies:** 7\
**Last updated:** [January 1, 2009, 11:23pm UTC](https://www.ruby-forum.com/t/installare-ruby/156707 "2009-01-01T23:23:12Z")

</div>

Ciao a tutti… sono nuovo e mi chiaamo andrea… per motivi universitari devo installare ruby on rails sul pc su sistema operativo ubuntu…mi hanno consigliato di installare la versione 1.8.6 qualcuno mi dice come faccio…

---

## [Guarding "params" (for security reasons)](https://www.ruby-forum.com/t/guarding-params-for-security-reasons/156107)

<div class="topic-metadata">

**Author:** [@thabenksta](https://www.ruby-forum.com/u/thabenksta)\
**Replies:** 7\
**Last updated:** [December 22, 2008, 1:15am UTC](https://www.ruby-forum.com/t/guarding-params-for-security-reasons/156107 "2008-12-22T01:15:58Z")

</div>

What’s the most recommended technique for guarding Rails HTTP params? For example, something like this can obviously be dangerous (e.g. SQL injection) user\_account = UserAccount.find(:first, :conditions =\> \[“username …

---

## [Rspec Stories / Selenium Nightmare](https://www.ruby-forum.com/t/rspec-stories-selenium-nightmare/137038)

<div class="topic-metadata">

**Author:** [@joesniff](https://www.ruby-forum.com/u/joesniff)\
**Replies:** 7\
**Last updated:** [May 10, 2008, 5:46am UTC](https://www.ruby-forum.com/t/rspec-stories-selenium-nightmare/137038 "2008-05-10T05:46:08Z")

</div>

I have been using Rspec stories with Webrat feeling very productive and happy. Then I needed to do something with Selenium (Webrat could have done what I needed but it does not yet have the functionality). Selenium-c…

---

## [Passing a variable to a partial](https://www.ruby-forum.com/t/passing-a-variable-to-a-partial/123042)

<div class="topic-metadata">

**Author:** [@rubynuby](https://www.ruby-forum.com/u/rubynuby)\
**Replies:** 7\
**Last updated:** [December 14, 2007, 12:17am UTC](https://www.ruby-forum.com/t/passing-a-variable-to-a-partial/123042 "2007-12-14T00:17:44Z")

</div>

I have a chunk of rhtml that gets reused by several views in several controllers. I make partial out of it \_foo and call it with \<%= render :partial =\>‘bar/foo’ %\> RAILS\_ROOT/app/views/bar/\_foo.rhtml (note I’m not ca…

---

## [Expresiones regulares](https://www.ruby-forum.com/t/expresiones-regulares/117806)

<div class="topic-metadata">

**Author:** [@william](https://www.ruby-forum.com/u/william)\
**Replies:** 7\
**Last updated:** [October 23, 2007, 3:15pm UTC](https://www.ruby-forum.com/t/expresiones-regulares/117806 "2007-10-23T15:15:31Z")

</div>

Buenas, nuevamente mil gracias por toda la ayuda. ahora tengo una de expresiones regulares, yo se que en el foro hay muchos duros en el tema. necesito ingresar en un campo solo valores con estos formatos: AAA## AAA##…

---

## [Change mouse pointer](https://www.ruby-forum.com/t/change-mouse-pointer/117928)

<div class="topic-metadata">

**Author:** [@crazybass](https://www.ruby-forum.com/u/crazybass)\
**Replies:** 1\
**Last updated:** [October 22, 2007, 4:41pm UTC](https://www.ruby-forum.com/t/change-mouse-pointer/117928 "2007-10-22T16:41:34Z")

</div>

I want to change the normal mouse ‘arrow cursor’ to a ‘busy cursor’ and back again. Anyone can help me to do that using rails? Thanks, regards

---

## [Add outside variable to array elements](https://www.ruby-forum.com/t/add-outside-variable-to-array-elements/112776)

<div class="topic-metadata">

**Author:** [@not\_pol\_pot](https://www.ruby-forum.com/u/not_pol_pot)\
**Replies:** 7\
**Last updated:** [August 25, 2007, 9:41am UTC](https://www.ruby-forum.com/t/add-outside-variable-to-array-elements/112776 "2007-08-25T09:41:42Z")

</div>

Hi, I have all of six hours of programming experience, so I hope that youâ€™ll bear with me. Ain’t all that comfortable with terminology and such. I opened a binary file called â€œ16bytesâ€ and read it into a stri…

---

## [Flash in a tag module](https://www.ruby-forum.com/t/flash-in-a-tag-module/92769)

<div class="topic-metadata">

**Author:** [@matthewmurcia](https://www.ruby-forum.com/u/matthewmurcia)\
**Replies:** 7\
**Last updated:** [April 24, 2007, 5:18pm UTC](https://www.ruby-forum.com/t/flash-in-a-tag-module/92769 "2007-04-24T17:18:20Z")

</div>

Hi all, I’m doing some work on an extension, and I’m run into an issue. I’d like to pass validation errors on a form back to the tag that draws the form. ala: module FormTags include Radiant::Taggable desc %{ Di…

---

## [Ajax output not rendering as it should](https://www.ruby-forum.com/t/ajax-output-not-rendering-as-it-should/90939)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 7\
**Last updated:** [April 7, 2007, 4:14am UTC](https://www.ruby-forum.com/t/ajax-output-not-rendering-as-it-should/90939 "2007-04-07T04:14:47Z")

</div>

I had everything rendering properly before the ajax was introduced. Now the javascript is being rendered out to the html page. #Here is the list that the items are to be rendered out to #the controller method calli…

---

## [Eager loading not working well for me](https://www.ruby-forum.com/t/eager-loading-not-working-well-for-me/90261)

<div class="topic-metadata">

**Author:** [@eleo](https://www.ruby-forum.com/u/eleo)\
**Replies:** 7\
**Last updated:** [April 2, 2007, 5:49am UTC](https://www.ruby-forum.com/t/eager-loading-not-working-well-for-me/90261 "2007-04-02T05:49:23Z")

</div>

Man my app is causing me so much grief lately. Okay let’s say I have: class Discussion has\_many :posts end class Post belongs\_to :discussion acts\_as\_tree end Then let’s say I grab a discussion object and try to …

---

## [Any HPC on Ruby?](https://www.ruby-forum.com/t/any-hpc-on-ruby/76480)

<div class="topic-metadata">

**Author:** [@diego\_v](https://www.ruby-forum.com/u/diego_v)\
**Replies:** 7\
**Last updated:** [November 20, 2006, 2:47pm UTC](https://www.ruby-forum.com/t/any-hpc-on-ruby/76480 "2006-11-20T14:47:30Z")

</div>

Hello, I was wondering if someone here has had any experience in programming for HPC with Ruby, or it’s just not feasible. Usually many scientific codes, for example, spend most of their time in only a few functions,…

---

## [Bad for Ruby in RUBY](https://www.ruby-forum.com/t/bad-for-ruby-in-ruby/66290)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 7\
**Last updated:** [August 24, 2006, 10:49pm UTC](https://www.ruby-forum.com/t/bad-for-ruby-in-ruby/66290 "2006-08-24T22:49:15Z")

</div>

…in the topic today Ruby in Ruby…talk about a hacking game using Ruby… DANGER\* while a laud the game engine effort…BUT…to us business types trying to integrate this beautiful language swimming against NIH (not invent…

---

## [Pickaxe](https://www.ruby-forum.com/t/pickaxe/97559)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 7\
**Last updated:** [July 10, 2006, 1:28pm UTC](https://www.ruby-forum.com/t/pickaxe/97559 "2006-07-10T13:28:49Z")

</div>

I’ve been reading the pickaxe book the last few days. As a newbie to both Ruby and programming I have to say it’s packed with an incredible amount of information. I’m still in part 1 and just going through the secti…

---

## [Setup.rb problems and possible fix](https://www.ruby-forum.com/t/setup-rb-problems-and-possible-fix/56686)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 7\
**Last updated:** [April 5, 2006, 4:43pm UTC](https://www.ruby-forum.com/t/setup-rb-problems-and-possible-fix/56686 "2006-04-05T16:43:49Z")

</div>

As I reported earlier there seems to be some issues with setup.rb. After investingating deeper it appears that there may be some very odd bugs lurking within. There’s is a lot of good code in their, but I’m starting t…

---

## [Fixture with multiple lines of text as a field](https://www.ruby-forum.com/t/fixture-with-multiple-lines-of-text-as-a-field/51354)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 1\
**Last updated:** [December 30, 2005, 2:19pm UTC](https://www.ruby-forum.com/t/fixture-with-multiple-lines-of-text-as-a-field/51354 "2005-12-30T14:19:09Z")

</div>

I want to create a fixture that has multiple lines of text as one of the fields. Some of the lines start with “text:” Something like: article: subject: Article content: This is the content something: happens here …

---

## [Serializing an instance with arbitrary methods (in rails)](https://www.ruby-forum.com/t/serializing-an-instance-with-arbitrary-methods-in-rails/48195)

<div class="topic-metadata">

**Author:** [@gavin](https://www.ruby-forum.com/u/gavin)\
**Replies:** 7\
**Last updated:** [November 17, 2005, 8:46pm UTC](https://www.ruby-forum.com/t/serializing-an-instance-with-arbitrary-methods-in-rails/48195 "2005-11-17T20:46:55Z")

</div>

(I know there’s a rails mailing list. For some reason this feels more appropriate to ruby-talk. I’ll go to the other ML if this one fails :slight\_smile: Summary: I’m writing a rails app where I want to save informatio…

---

## [Determine whether year is leap year or not](https://www.ruby-forum.com/t/determine-whether-year-is-leap-year-or-not/245087)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [September 29, 2016, 11:34am UTC](https://www.ruby-forum.com/t/determine-whether-year-is-leap-year-or-not/245087 "2016-09-29T11:34:38Z")

</div>

I have to determine whether a year is a leap year or not when the user inputs the year. Example below: Enter year: 2016 2016 is a leap year Enter year: 2013 2013 is not a leap year I have no idea where to start as…

---

## [Signature/Expires/Access Key ID appearing in URL Params aws paperclip](https://www.ruby-forum.com/t/signature-expires-access-key-id-appearing-in-url-params-aws-paperclip/230884)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [July 11, 2014, 2:11pm UTC](https://www.ruby-forum.com/t/signature-expires-access-key-id-appearing-in-url-params-aws-paperclip/230884 "2014-07-11T14:11:34Z")

</div>

s3 url that expires after 1 hr here is code file\_name\_in\_s3 = “topic\_alerts/”+report\_name s3\_config = YAML.load\_file("#{Rails.root}/config/s3.yml") s3 = AWS::S3.new(:access\_key\_id =\> s3\_config\[‘development’\]\[‘access…

---

## [Need help with running psexec with array](https://www.ruby-forum.com/t/need-help-with-running-psexec-with-array/204322)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [March 12, 2011, 12:53am UTC](https://www.ruby-forum.com/t/need-help-with-running-psexec-with-array/204322 "2011-03-12T00:53:17Z")

</div>

I’m trying to run commands on a remote machine via psexec. The issue that I’m having is when grabbing the IP address from the array it wants to put everything that follows on a separate line. uName = “admin” pWord = …

---

## [Can't modify frozen hash when upgrade to rails 2.3.2](https://www.ruby-forum.com/t/cant-modify-frozen-hash-when-upgrade-to-rails-2-3-2/170656)

<div class="topic-metadata">

**Author:** [@sadeesh](https://www.ruby-forum.com/u/sadeesh)\
**Replies:** 2\
**Last updated:** [June 20, 2009, 6:27pm UTC](https://www.ruby-forum.com/t/cant-modify-frozen-hash-when-upgrade-to-rails-2-3-2/170656 "2009-06-20T18:27:58Z")

</div>

Hi, When I upgraded my rails application to rails 2.3.2 I am getting error ‘can’t modify frozen hash’ on using @something.update\_attribute(params\[:something\]). Can anyone help me who is familiarize with this bug?

---

## [ISO-8859-1 nach UTF-8](https://www.ruby-forum.com/t/iso-8859-1-nach-utf-8/158548)

<div class="topic-metadata">

**Author:** [@mrkohrea](https://www.ruby-forum.com/u/mrkohrea)\
**Replies:** 2\
**Last updated:** [January 24, 2009, 6:35pm UTC](https://www.ruby-forum.com/t/iso-8859-1-nach-utf-8/158548 "2009-01-24T18:35:33Z")

</div>

Hallo, ich versuche gerade Text aus einer ISO-8859-1 codierten in eine sqlite3-Tabelle in UTF-8 zu bekommen. In der Ursprungsdate steht z.B. das Wort: w\\u00F6chentlich Wenn ich das per Iconv converted\_text = Iconv…

---

## [Raising exceptions and "wrong number of arguments" problem](https://www.ruby-forum.com/t/raising-exceptions-and-wrong-number-of-arguments-problem/142884)

<div class="topic-metadata">

**Author:** [@syg6](https://www.ruby-forum.com/u/syg6)\
**Replies:** 2\
**Last updated:** [July 12, 2008, 9:42pm UTC](https://www.ruby-forum.com/t/raising-exceptions-and-wrong-number-of-arguments-problem/142884 "2008-07-12T21:42:06Z")

</div>

Hi everyone - what is the proper way to display error messages when you raise exceptions? For example, the following code… class MyWxRubyClass some code… evt\_button(my\_button) do begin some code… if wrong\_conditi…

---

## [Colouring text in a ComboBoxEntry](https://www.ruby-forum.com/t/colouring-text-in-a-comboboxentry/114407)

<div class="topic-metadata">

**Author:** [@dhstudio](https://www.ruby-forum.com/u/dhstudio)\
**Replies:** 2\
**Last updated:** [September 12, 2007, 4:01pm UTC](https://www.ruby-forum.com/t/colouring-text-in-a-comboboxentry/114407 "2007-09-12T16:01:38Z")

</div>

Hi, I want to react to a user’s text entry by showing the text in red when certain conditions are not met. All that I try results in the text remaining black. Example nugget of code below, which doesn’t work for …

---

## [Two problems with Acts\_as\_paranoid](https://www.ruby-forum.com/t/two-problems-with-acts-as-paranoid/81363)

<div class="topic-metadata">

**Author:** [@schmitr3](https://www.ruby-forum.com/u/schmitr3)\
**Replies:** 2\
**Last updated:** [February 22, 2007, 6:27am UTC](https://www.ruby-forum.com/t/two-problems-with-acts-as-paranoid/81363 "2007-02-22T06:27:35Z")

</div>

Hi, I’ve run into two small problems with acts\_as\_paranoid and wondered if anyone else has experienced them as well (and if yes, if they have any solutions). When using has\_many :through, AAP doesn’t seem to take i…

---

## [Where to Start?](https://www.ruby-forum.com/t/where-to-start/209267)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [July 10, 2011, 3:37am UTC](https://www.ruby-forum.com/t/where-to-start/209267 "2011-07-10T03:37:01Z")

</div>

Hello, I am using the USRP(1): is there a better place to start than the “exploring gnu radio” page here: http://www.gnu.org/software/gnuradio/doc/exploring-gnuradio.html It has many problems as you know. I found a…

---

## [\[quasi OT\] euruko 2012](https://www.ruby-forum.com/t/quasi-ot-euruko-2012/207424)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [May 30, 2011, 2:05pm UTC](https://www.ruby-forum.com/t/quasi-ot-euruko-2012/207424 "2011-05-30T14:05:19Z")

</div>

http://euruko2011.org/2011/05/20/euruko-2012-needs-you.html alcuni rubysti esteri sono determinati per farlo ad amsterdam, e se proponessimo la nostra controparte? Roma o Milano… un tizio (olandese) mi ha scritto che…

---

## [Symbol#to\_proc helping out with #select to beat Scala-s solution](https://www.ruby-forum.com/t/symbol-to-proc-helping-out-with-select-to-beat-scala-s-solution/203732)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [February 26, 2011, 12:36pm UTC](https://www.ruby-forum.com/t/symbol-to-proc-helping-out-with-select-to-beat-scala-s-solution/203732 "2011-02-26T12:36:14Z")

</div>

Hey! I had a discussion with my colleague about Java lacking decent collection API. This is indeed true. One of the main reasons is that there’s no lambda and no closures in Java. The problem has been tried to levera…

---

## [Usrp rev 3](https://www.ruby-forum.com/t/usrp-rev-3/84692)

<div class="topic-metadata">

**Author:** [@danhobbs](https://www.ruby-forum.com/u/danhobbs)\
**Replies:** 8\
**Last updated:** [January 23, 2009, 7:29am UTC](https://www.ruby-forum.com/t/usrp-rev-3/84692 "2009-01-23T07:29:15Z")

</div>

Does the USRP Rev 3 (1-3-2005) not handle the RFX boards? I guess it’s been two years… -Dan

---

## [Caching data in memory](https://www.ruby-forum.com/t/caching-data-in-memory/152743)

<div class="topic-metadata">

**Author:** [@thabenksta](https://www.ruby-forum.com/u/thabenksta)\
**Replies:** 8\
**Last updated:** [November 7, 2008, 4:13pm UTC](https://www.ruby-forum.com/t/caching-data-in-memory/152743 "2008-11-07T16:13:57Z")

</div>

I need to load some read-only lookup data from the database into memory for fast access (i.e. caching). What’s the best way to cache data in memory in Rails apps? For example, should I use global, class or instance v…

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

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