# Top

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

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

---

## [How to distinguish blocks of certain arity in 1.8](https://www.ruby-forum.com/t/how-to-distinguish-blocks-of-certain-arity-in-1-8/166203)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [April 24, 2009, 8:06am UTC](https://www.ruby-forum.com/t/how-to-distinguish-blocks-of-certain-arity-in-1-8/166203 "2009-04-24T08:06:30Z")

</div>

Hi all, I’d like to distinguish the two following blocks by means of their arity, but in Ruby 1.8 I don’t see how to do this as Proc#arity returns the same value. lambda {}.arity =\> -1 lambda {|\*a|}.arity =\> -1 Thi…

---

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

<div class="topic-metadata">

**Author:** [@tobbyd](https://www.ruby-forum.com/u/tobbyd)\
**Replies:** 4\
**Last updated:** [September 11, 2007, 7:39pm UTC](https://www.ruby-forum.com/t/errors/114205 "2007-09-11T19:39:00Z")

</div>

I get these strange error messages no matter which program i run. What is wrong and how do I get it working. Thanks /usr/lib/ruby/1.8/glib2.rb: line 55 GLib-GObject-CRITICAL \*\*:g\_boxed\_type\_register\_static: assertion …

---

## [Interpreter Problems](https://www.ruby-forum.com/t/interpreter-problems/190156)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 5\
**Last updated:** [June 17, 2010, 5:37pm UTC](https://www.ruby-forum.com/t/interpreter-problems/190156 "2010-06-17T17:37:42Z")

</div>

I really aren’t sure why but my interpreter continues to fail after an unknown amount of requests or time on my local (home) computer. I’ve tried following instructions from people who have encountered similar problem…

---

## [Page caching + authentication/flash messages = chaos?](https://www.ruby-forum.com/t/page-caching-authentication-flash-messages-chaos/156703)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 5\
**Last updated:** [January 1, 2009, 5:25pm UTC](https://www.ruby-forum.com/t/page-caching-authentication-flash-messages-chaos/156703 "2009-01-01T17:25:57Z")

</div>

I have run into a bit of a caching problem. I’m building a website that mostly consists of static editable pages. There is a basic authentication system to restrict who is able to edit the pages and so on. If you’re l…

---

## [Ruby onboard documentation disappointment](https://www.ruby-forum.com/t/ruby-onboard-documentation-disappointment/259899)

<div class="topic-metadata">

**Author:** [@rubynewbee](https://www.ruby-forum.com/u/rubynewbee)\
**Replies:** 3\
**Last updated:** [July 1, 2020, 12:47am UTC](https://www.ruby-forum.com/t/ruby-onboard-documentation-disappointment/259899 "2020-07-01T00:47:45Z")

</div>

As installed on Debian 7.3, ri is useless, even with running rdoc in /usr/lib/ruby. Following a recomendation found online I installed the source tree and ran rdoc over that using this command: mike@/deb73:~/tmp/ruby-1.…

---

## [CookieStore and setting an expiration](https://www.ruby-forum.com/t/cookiestore-and-setting-an-expiration/166991)

<div class="topic-metadata">

**Author:** [@etienne](https://www.ruby-forum.com/u/etienne)\
**Replies:** 3\
**Last updated:** [May 5, 2009, 3:23pm UTC](https://www.ruby-forum.com/t/cookiestore-and-setting-an-expiration/166991 "2009-05-05T15:23:44Z")

</div>

hi everyone, i can’t seem to find any help online for this. I’m using CookieStore. What I can’t seem to figure out how to do is set the expiration for the cookie set by CookieStore. Right now it leaves that field …

---

## [Memcached fails to retrieve object in a different controller](https://www.ruby-forum.com/t/memcached-fails-to-retrieve-object-in-a-different-controller/87760)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 3\
**Last updated:** [March 5, 2007, 8:56pm UTC](https://www.ruby-forum.com/t/memcached-fails-to-retrieve-object-in-a-different-controller/87760 "2007-03-05T20:56:25Z")

</div>

All, I’ve successfully set up memcache client in my Rails app. However, when I put something into the cache in one controller, and then attempt to retrieve it in another controller, I get an error. More detail: In …

---

## [Shared Memory Structure?](https://www.ruby-forum.com/t/shared-memory-structure/244558)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [May 4, 2016, 3:41pm UTC](https://www.ruby-forum.com/t/shared-memory-structure/244558 "2016-05-04T15:41:31Z")

</div>

I am storing things in a shared memory zone allocated with ngx\_shared\_memory\_add and allocating each slab with ngx\_slab\_alloc\_locked (as these items don’t need to be locked particularly). The problem I’m having is th…

---

## [Generating random odd integer](https://www.ruby-forum.com/t/generating-random-odd-integer/171800)

<div class="topic-metadata">

**Author:** [@miss\_moviestar](https://www.ruby-forum.com/u/miss_moviestar)\
**Replies:** 1\
**Last updated:** [July 9, 2009, 1:33pm UTC](https://www.ruby-forum.com/t/generating-random-odd-integer/171800 "2009-07-09T13:33:09Z")

</div>

hi how can i generate random odd integers? i want it to refer to user.id thanks

---

## [Production server on passenger - showing all items in public folder](https://www.ruby-forum.com/t/production-server-on-passenger-showing-all-items-in-public-folder/204774)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [March 21, 2011, 5:24pm UTC](https://www.ruby-forum.com/t/production-server-on-passenger-showing-all-items-in-public-folder/204774 "2011-03-21T17:24:33Z")

</div>

I have an Ubuntu 10.10 server running Apache and Passenger on Linode. I am stumped on figuring out why all of the items in the public folder are being displayed instead of the site itself. the web site can be seen at h…

---

## [Subdomain](https://www.ruby-forum.com/t/subdomain/94633)

<div class="topic-metadata">

**Author:** [@prabu](https://www.ruby-forum.com/u/prabu)\
**Replies:** 8\
**Last updated:** [June 7, 2009, 3:17pm UTC](https://www.ruby-forum.com/t/subdomain/94633 "2009-06-07T15:17:54Z")

</div>

hi, how to create a subdomain outside the public directory and how to redirect to the subdomain

---

## [Hashed password, send reminder email...impossible?](https://www.ruby-forum.com/t/hashed-password-send-reminder-email-impossible/62442)

<div class="topic-metadata">

**Author:** [@daniel](https://www.ruby-forum.com/u/daniel)\
**Replies:** 8\
**Last updated:** [January 8, 2009, 10:26am UTC](https://www.ruby-forum.com/t/hashed-password-send-reminder-email-impossible/62442 "2009-01-08T10:26:21Z")

</div>

Is it possible to somehow send an email containing the user password if it is stored as a md5 hash in the database? Is it stupid to save the passwords as clear text strings in the db? Its a web shop. A workaround wou…

---

## [To\_str behavior](https://www.ruby-forum.com/t/to-str-behavior/111907)

<div class="topic-metadata">

**Author:** [@Nasir\_K](https://www.ruby-forum.com/u/Nasir_K)\
**Replies:** 8\
**Last updated:** [August 15, 2007, 12:32am UTC](https://www.ruby-forum.com/t/to-str-behavior/111907 "2007-08-15T00:32:18Z")

</div>

Hi, I have two related questions on to\_str behavior. AFAIK to\_str does automatic coercion to string wherever one is required, it is to be provided for objects that exhibit string like behavior. But this mental model …

---

## [Manipulating CSV files over SSH](https://www.ruby-forum.com/t/manipulating-csv-files-over-ssh/84391)

<div class="topic-metadata">

**Author:** [@dfg59](https://www.ruby-forum.com/u/dfg59)\
**Replies:** 8\
**Last updated:** [February 4, 2007, 8:03pm UTC](https://www.ruby-forum.com/t/manipulating-csv-files-over-ssh/84391 "2007-02-04T20:03:09Z")

</div>

All - I have a nice little script that takes a large CSV document and splits it into 65,000 line chunks which are readable in Excel. However, I currently have a .csv file which I’d like to split that is sitting on a …

---

## [PUT/POST files to akamai CDN](https://www.ruby-forum.com/t/put-post-files-to-akamai-cdn/244068)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [February 29, 2016, 4:20pm UTC](https://www.ruby-forum.com/t/put-post-files-to-akamai-cdn/244068 "2016-02-29T16:20:49Z")

</div>

Hello everyone, i want to use nginx as a simple and effective way to generate mpeg-dash streams and push them to the akamai CDN network. There for i need to push the generated files with the POST Request method to t…

---

## [Proxy\_buffering off causes truncated responses when backend emits response in small chunks](https://www.ruby-forum.com/t/proxy-buffering-off-causes-truncated-responses-when-backend-emits-response-in-small-chunks/216563)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [February 8, 2012, 2:14am UTC](https://www.ruby-forum.com/t/proxy-buffering-off-causes-truncated-responses-when-backend-emits-response-in-small-chunks/216563 "2012-02-08T02:14:33Z")

</div>

We use nginx as both a load-balancer and webserver. This issue is with the nginx functioning as a load-balancer. We reverse proxy to 6 nginx webservers running a number of Unicorn (Rails) application servers, these …

---

## [Keepalive\_timeout, proxy\_send\_timeout, and proxy\_read\_timeout ignored](https://www.ruby-forum.com/t/keepalive-timeout-proxy-send-timeout-and-proxy-read-timeout-ignored/242662)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [July 14, 2015, 5:14am UTC](https://www.ruby-forum.com/t/keepalive-timeout-proxy-send-timeout-and-proxy-read-timeout-ignored/242662 "2015-07-14T05:14:56Z")

</div>

Hi, I’m using AWS Beanstalk with nginx in front of a Puma server serving Ruby on Rails. I have one URL that is for an EventSource so it is kept alive and data is streamed out. I was running into this problem Dropped …

---

## [Rails 4 Postgres Array attribute: how can I ensure that the attribute is an array during validation?](https://www.ruby-forum.com/t/rails-4-postgres-array-attribute-how-can-i-ensure-that-the-attribute-is-an-array-during-validation/240399)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [April 11, 2014, 10:30pm UTC](https://www.ruby-forum.com/t/rails-4-postgres-array-attribute-how-can-i-ensure-that-the-attribute-is-an-array-during-validation/240399 "2014-04-11T22:30:01Z")

</div>

Hi, I just started experimenting with the native Postgress array type in Rails 4, and I’m running into an issue I can’t figure out. I want the app to raise an error if the value for an array attribute is not an array…

---

## [How to create windows service using JRuby](https://www.ruby-forum.com/t/how-to-create-windows-service-using-jruby/198081)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 7\
**Last updated:** [November 5, 2010, 1:11pm UTC](https://www.ruby-forum.com/t/how-to-create-windows-service-using-jruby/198081 "2010-11-05T13:11:48Z")

</div>

How to create Windows service using JRuby? I know there is something win32/service available in Ruby, but what and how about JRuby???

---

## [HAML and SASS - worth the conversion with rails?](https://www.ruby-forum.com/t/haml-and-sass-worth-the-conversion-with-rails/169976)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 7\
**Last updated:** [June 10, 2009, 11:40pm UTC](https://www.ruby-forum.com/t/haml-and-sass-worth-the-conversion-with-rails/169976 "2009-06-10T23:40:17Z")

</div>

Has anyone developed extensive projects with HAML and SASS and is it worth the effort to convert and utilize those markup languages? The reason why I ask is I’m getting ready to dive down into my views and work with C…

---

## [Oracle date problems, and how to make "alter session" work](https://www.ruby-forum.com/t/oracle-date-problems-and-how-to-make-alter-session-work/157301)

<div class="topic-metadata">

**Author:** [@michael\_teter](https://www.ruby-forum.com/u/michael_teter)\
**Replies:** 7\
**Last updated:** [January 9, 2009, 3:26pm UTC](https://www.ruby-forum.com/t/oracle-date-problems-and-how-to-make-alter-session-work/157301 "2009-01-09T15:26:11Z")

</div>

Howdy. Something change recently (Oracle upgrade and/or new gem) that’s causing ActiveRecord to give me very unfriendly dates from Oracle. I believe the old dates I was getting were “YYYY-MM-DD”. The ones I’m gettin…

---

## [Windows tail development.log](https://www.ruby-forum.com/t/windows-tail-development-log/153772)

<div class="topic-metadata">

**Author:** [@rafael](https://www.ruby-forum.com/u/rafael)\
**Replies:** 7\
**Last updated:** [November 21, 2008, 7:16pm UTC](https://www.ruby-forum.com/t/windows-tail-development-log/153772 "2008-11-21T19:16:19Z")

</div>

Hi unfortunately I have to develop on a windows machine from time to time. But there is a little problem, mostly for debugging. How can I get the same output on the console as in a linux box or on the mac? I don’t s…

---

## [Best way to store binary data](https://www.ruby-forum.com/t/best-way-to-store-binary-data/88265)

<div class="topic-metadata">

**Author:** [@amrkamel](https://www.ruby-forum.com/u/amrkamel)\
**Replies:** 7\
**Last updated:** [March 11, 2007, 2:24pm UTC](https://www.ruby-forum.com/t/best-way-to-store-binary-data/88265 "2007-03-11T14:24:43Z")

</div>

Dear all, can any one tell me what is the best way to store binary data “e.g. images, videos …etc” of various sizes in a ROR application? should I store them in mysql database or in file system? Thanks alot :slight\_s…

---

## [Dealing with comment and trackback spam](https://www.ruby-forum.com/t/dealing-with-comment-and-trackback-spam/99775)

<div class="topic-metadata">

**Author:** [@jennyw](https://www.ruby-forum.com/u/jennyw)\
**Replies:** 7\
**Last updated:** [July 26, 2006, 4:48pm UTC](https://www.ruby-forum.com/t/dealing-with-comment-and-trackback-spam/99775 "2006-07-26T16:48:28Z")

</div>

Does anyone have suggestions on how to deal with spam? I’ve been going through my posts and noticed that there are some with hundreds of trackbacks or comments. Deleting each one by hand would not be practical. I coul…

---

## [Mongrel starting Error](https://www.ruby-forum.com/t/mongrel-starting-error/204009)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [March 4, 2011, 8:02am UTC](https://www.ruby-forum.com/t/mongrel-starting-error/204009 "2011-03-04T08:02:51Z")

</div>

Hello friends! When i tried to start my server arising this error, currently i using rails 2.3.2. If any one know what is reason suggestion me. $ mongrel\_rails start !!! Path to log file not valid: log/mongrel.log …

---

## [High CPU Load by php-cgi](https://www.ruby-forum.com/t/high-cpu-load-by-php-cgi/192854)

<div class="topic-metadata">

**Author:** [@sina](https://www.ruby-forum.com/u/sina)\
**Replies:** 4\
**Last updated:** [August 7, 2010, 10:48am UTC](https://www.ruby-forum.com/t/high-cpu-load-by-php-cgi/192854 "2010-08-07T10:48:50Z")

</div>

hello , i configured nginx with php-cgi but a problem is now happening and my CPU Load is high but there is not high requests… rather when visitors start leeching(rapidleech) php-cgi starts making highly loads… look…

---

## [Screen capture to display it or to save it to a file possible?](https://www.ruby-forum.com/t/screen-capture-to-display-it-or-to-save-it-to-a-file-possible/149711)

<div class="topic-metadata">

**Author:** [@liketofindoutwhy](https://www.ruby-forum.com/u/liketofindoutwhy)\
**Replies:** 4\
**Last updated:** [September 30, 2008, 7:45am UTC](https://www.ruby-forum.com/t/screen-capture-to-display-it-or-to-save-it-to-a-file-possible/149711 "2008-09-30T07:45:03Z")

</div>

i would like do screen capture and then to display it in that app’s window, or be able to save the file in hard disk as a GIF or PNG. I wonder if TCL Ruby or RMagick can already do that? Thanks.

---

## [Change input image on hover](https://www.ruby-forum.com/t/change-input-image-on-hover/104379)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [June 5, 2008, 6:31am UTC](https://www.ruby-forum.com/t/change-input-image-on-hover/104379 "2008-06-05T06:31:53Z")

</div>

Hi guys, I’m having troubles getting to change an image on hover using the image\_submit\_tag helper. First of all I don’t know if I should use css for this (as i would for a normal link) or rjs (which i don’t know how…

---

## [Rotating mongrel production logs](https://www.ruby-forum.com/t/rotating-mongrel-production-logs/129134)

<div class="topic-metadata">

**Author:** [@seanb](https://www.ruby-forum.com/u/seanb)\
**Replies:** 4\
**Last updated:** [February 14, 2008, 9:50pm UTC](https://www.ruby-forum.com/t/rotating-mongrel-production-logs/129134 "2008-02-14T21:50:33Z")

</div>

In another thread, I had posted that we rotate our mongrel production logs once a week as a means to keep the performance degradations that happen with large log files at bay. A few of you asked me to post how we do …

---

## [Integrating radiant in existing rails application](https://www.ruby-forum.com/t/integrating-radiant-in-existing-rails-application/120281)

<div class="topic-metadata">

**Author:** [@arpit\_jain](https://www.ruby-forum.com/u/arpit_jain)\
**Replies:** 4\
**Last updated:** [November 22, 2007, 5:24pm UTC](https://www.ruby-forum.com/t/integrating-radiant-in-existing-rails-application/120281 "2007-11-22T17:24:53Z")

</div>

I need to integrate radiant in our existing rails application. We have our own authentication system for our site. I have searched and found some solutions but not upto the mark. I have followed the link http://wiki.…

---

## [Activerecord Relationships: Can children access parents?](https://www.ruby-forum.com/t/activerecord-relationships-can-children-access-parents/114260)

<div class="topic-metadata">

**Author:** [@chris](https://www.ruby-forum.com/u/chris)\
**Replies:** 4\
**Last updated:** [September 10, 2007, 8:03pm UTC](https://www.ruby-forum.com/t/activerecord-relationships-can-children-access-parents/114260 "2007-09-10T20:03:20Z")

</div>

I am having trouble when using a child to reference the parent object in a relationship, it always claims the parent is nil. I could easily be doing something wrong as this is all hazy but I thought I’d ask if anyone…

---

## [Which is the best practices to start a Ruby On Rails project?](https://www.ruby-forum.com/t/which-is-the-best-practices-to-start-a-ruby-on-rails-project/251105)

<div class="topic-metadata">

**Author:** [@inugoloath91](https://www.ruby-forum.com/u/inugoloath91)\
**Replies:** 3\
**Last updated:** [November 24, 2018, 8:21pm UTC](https://www.ruby-forum.com/t/which-is-the-best-practices-to-start-a-ruby-on-rails-project/251105 "2018-11-24T20:21:14Z")

</div>

Hello, I would say that I’m new into Ruby development, but I hope that my experience with Java, JavaScript, HTML, CSS will help me to develop much easily a Rails application. So could you please provide me some best pra…

---

## [Fwd: Twitter bootstrap rails gem not working in production mode](https://www.ruby-forum.com/t/fwd-twitter-bootstrap-rails-gem-not-working-in-production-mode/226659)

<div class="topic-metadata">

**Author:** [@loganathan\_s](https://www.ruby-forum.com/u/loganathan_s)\
**Replies:** 3\
**Last updated:** [February 17, 2013, 10:54am UTC](https://www.ruby-forum.com/t/fwd-twitter-bootstrap-rails-gem-not-working-in-production-mode/226659 "2013-02-17T10:54:26Z")

</div>

Hi All, I am using ‘twitter-bootstrap-rails’ in my rails app where I can run the application with bootstrap provided css successfully in development mode but the css is not taking effect in production mode, I hope som…

---

## [Rails doesn't validate create\_model or build\_model (has\_one association)](https://www.ruby-forum.com/t/rails-doesnt-validate-create-model-or-build-model-has-one-association/222205)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [August 17, 2012, 5:19pm UTC](https://www.ruby-forum.com/t/rails-doesnt-validate-create-model-or-build-model-has-one-association/222205 "2012-08-17T17:19:22Z")

</div>

I’ve got User has\_one Shop. Rails is not validating when I tried create\_shop or build\_shop, neither in the browser nor the rails console. My code: class Shop \< ActiveRecord::Base attr\_protected :user\_id belongs\_to :…

---

## [How to get a nice url hierarchy with slugs and acts\_as\_tree?](https://www.ruby-forum.com/t/how-to-get-a-nice-url-hierarchy-with-slugs-and-acts-as-tree/169209)

<div class="topic-metadata">

**Author:** [@emmek](https://www.ruby-forum.com/u/emmek)\
**Replies:** 3\
**Last updated:** [October 1, 2009, 7:02pm UTC](https://www.ruby-forum.com/t/how-to-get-a-nice-url-hierarchy-with-slugs-and-acts-as-tree/169209 "2009-10-01T19:02:31Z")

</div>

I have a model Page in my application that acts\_as\_tree. I want this model to keep whole structure of website. I have some root nodes: home, contact, articles, etc. and the possibility of adding children to them. I wa…

---

## [Collection\_select validation problem](https://www.ruby-forum.com/t/collection-select-validation-problem/123969)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [December 23, 2007, 11:39pm UTC](https://www.ruby-forum.com/t/collection-select-validation-problem/123969 "2007-12-23T23:39:47Z")

</div>

I’m trying to assign a parent foreign key value using collection\_select from my child “new” form. The problem I’m having is if I do not make a selection, I get the following error instead of the Rails validates\_prese…

---

## [Expected, got Fixnum problem](https://www.ruby-forum.com/t/expected-got-fixnum-problem/61965)

<div class="topic-metadata">

**Author:** [@samonderous](https://www.ruby-forum.com/u/samonderous)\
**Replies:** 3\
**Last updated:** [May 30, 2006, 11:27am UTC](https://www.ruby-forum.com/t/expected-got-fixnum-problem/61965 "2006-05-30T11:27:24Z")

</div>

Hi, I was wondering if anybody knew what ’ expected, got Fixnum’ means? My code looks like the following: begin anevent = Event.new anevent.title = params\[“event”\]\[“title”\] anevent = session\[:user\_id\] com = Commu…

---

## [Hey guys, need your help with a newbie problem! Thank You!](https://www.ruby-forum.com/t/hey-guys-need-your-help-with-a-newbie-problem-thank-you/260799)

<div class="topic-metadata">

**Author:** [@KELN](https://www.ruby-forum.com/u/KELN)\
**Replies:** 6\
**Last updated:** [January 14, 2021, 4:55am UTC](https://www.ruby-forum.com/t/hey-guys-need-your-help-with-a-newbie-problem-thank-you/260799 "2021-01-14T04:55:45Z")

</div>

\#sample.txt First line Second line Last line #code rd\_lines = \[\] input = gets File.open(“sample.txt”) do |line\_reader| rd\_lines = line\_reader.readlines end rev\_lines = rd\_lines.find\_all{|l|l.include?("#{input}"…

---

## [Code::Blocks](https://www.ruby-forum.com/t/code-blocks/240415)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 6\
**Last updated:** [April 13, 2014, 9:44am UTC](https://www.ruby-forum.com/t/code-blocks/240415 "2014-04-13T09:44:56Z")

</div>

Greetings everybody, I have been using Code::Blocks IDE for a while. And I have tried to link GnuRadio in Code:Blocks, but I have not found any “.so” file in Ubuntu, although I have searched via terminal with the com…

---

## [Mvn - tesla plugin pom errors?](https://www.ruby-forum.com/t/mvn-tesla-plugin-pom-errors/239479)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 6\
**Last updated:** [March 1, 2014, 10:55am UTC](https://www.ruby-forum.com/t/mvn-tesla-plugin-pom-errors/239479 "2014-03-01T10:55:43Z")

</div>

Hey! After some I’m trying to build JRuby (9000 - master) locally on a Linux box … I seem to be getting not parseable pom’s for the tesla-polyglot-maven-plugin … tried deleting and re-downloading but it’s kind of th…

---

## [1.6.7 encoding issue while reading CSV file](https://www.ruby-forum.com/t/1-6-7-encoding-issue-while-reading-csv-file/217848)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [March 15, 2012, 3:19pm UTC](https://www.ruby-forum.com/t/1-6-7-encoding-issue-while-reading-csv-file/217848 "2012-03-15T15:19:29Z")

</div>

Hi, I’m reading a csv file which contains utf-8 characters with jruby 1.6.7 in 1.9 mode and I’m getting ASCII-8BIT strings instead of UTF-8 ones. Example: #--------------------------------- CSV.foreach("#{wb\_filepat…

---

## [Ruby Cross Reference](https://www.ruby-forum.com/t/ruby-cross-reference/205682)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [April 16, 2011, 11:13am UTC](https://www.ruby-forum.com/t/ruby-cross-reference/205682 "2011-04-16T11:13:35Z")

</div>

I’m pleased to announce that Ruby Cross Reference has just been rolled out. http://rxr.whitequark.org/ Have you ever wanted to know what exactly VALUE is? Wondered about rb\_str\_new2 implementation? Tried to grep som…

---

## [Can't install mongrel with ruby 1.9.2p136](https://www.ruby-forum.com/t/cant-install-mongrel-with-ruby-1-9-2p136/201900)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [January 21, 2011, 4:26am UTC](https://www.ruby-forum.com/t/cant-install-mongrel-with-ruby-1-9-2p136/201900 "2011-01-21T04:26:54Z")

</div>

Hi, I’m getting this error message when I try to install Mongrel with “gem install mongrel” on Windows 7 x64 gem install mongrel Successfully installed mongrel-1.1.5-x86-mingw32 1 gem installed Installing ri docume…

---

## [SimpleDB on Rails](https://www.ruby-forum.com/t/simpledb-on-rails/133608)

<div class="topic-metadata">

**Author:** [@fesplugas](https://www.ruby-forum.com/u/fesplugas)\
**Replies:** 6\
**Last updated:** [April 2, 2008, 1:57pm UTC](https://www.ruby-forum.com/t/simpledb-on-rails/133608 "2008-04-02T13:57:46Z")

</div>

En Euruko, Fernando Guillén nos hablaba de una aplicación que habia creado con una base de datos muy simple y muy desnormalizada. A quien se le ocurre guardar todas las referencias de un producto dentro del mismo prod…

---

## [OFDM cyclic prefixer](https://www.ruby-forum.com/t/ofdm-cyclic-prefixer/241125)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [May 15, 2014, 2:13am UTC](https://www.ruby-forum.com/t/ofdm-cyclic-prefixer/241125 "2014-05-15T02:13:55Z")

</div>

Hello, My name is Yuri. ​ I very new to GNU Radio, and I’m using GRC 3.7.1.​ I am doing a research, and I need to modulate specific signal in OFDM. I would like to insert cyclic prefix (or guard interval in my projec…

---

## [Caching and Application/Site Controllers](https://www.ruby-forum.com/t/caching-and-application-site-controllers/197881)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 5\
**Last updated:** [October 22, 2010, 4:39am UTC](https://www.ruby-forum.com/t/caching-and-application-site-controllers/197881 "2010-10-22T04:39:39Z")

</div>

I’ve written an extension that needs to do some processing on every call to a page in the cms. Basically, it checks for a cookie and redirects the user if a certain value is present. I’m running into a problem where t…

---

## [Visitor pattern](https://www.ruby-forum.com/t/visitor-pattern/187680)

<div class="topic-metadata">

**Author:** [@lykos](https://www.ruby-forum.com/u/lykos)\
**Replies:** 5\
**Last updated:** [April 28, 2010, 5:00pm UTC](https://www.ruby-forum.com/t/visitor-pattern/187680 "2010-04-28T17:00:11Z")

</div>

Hi, I heard many times that the visitor pattern is useless in Ruby and similar things. However, I’m just writing an interpreter for a small imperative language. I finished the parser and am just beginning to think ab…

---

## [CUDA GPU Vs CELL BE](https://www.ruby-forum.com/t/cuda-gpu-vs-cell-be/171256)

<div class="topic-metadata">

**Author:** [@Vincenzo\_P](https://www.ruby-forum.com/u/Vincenzo_P)\
**Replies:** 5\
**Last updated:** [June 30, 2009, 6:34am UTC](https://www.ruby-forum.com/t/cuda-gpu-vs-cell-be/171256 "2009-06-30T06:34:59Z")

</div>

Hi everybody, I have recently had a look at two possibilities for SWRadio-aimed intensive computing, which i guess are the two main development lanes for our kind of stuff: .:. Cell BE platform .:. CUDA & nVidia GP…

---

## [Problemas en netbeans al ejecutar los tests](https://www.ruby-forum.com/t/problemas-en-netbeans-al-ejecutar-los-tests/149008)

<div class="topic-metadata">

**Author:** [@Fernando\_SSSSSinz](https://www.ruby-forum.com/u/Fernando_SSSSSinz)\
**Replies:** 5\
**Last updated:** [September 21, 2008, 5:40pm UTC](https://www.ruby-forum.com/t/problemas-en-netbeans-al-ejecutar-los-tests/149008 "2008-09-21T17:40:35Z")

</div>

Hola a todos, querÃ­a empezar a escribir en la lista y he pensado que esto podrÃ­a interesaros cuando ejecuto un test dentro de netbeans que incluya la lÃ­nea require ‘test\_helper’ no encuentra el archivo y salta el…

---

## [Path\_info](https://www.ruby-forum.com/t/path-info/126901)

<div class="topic-metadata">

**Author:** [@Dave\_Dash](https://www.ruby-forum.com/u/Dave_Dash)\
**Replies:** 5\
**Last updated:** [January 24, 2008, 2:44am UTC](https://www.ruby-forum.com/t/path-info/126901 "2008-01-24T02:44:45Z")

</div>

PATH\_INFO is supposed to be decoded by the server and then passed to the CGI application. How can I do that from nginx. My PATH\_INFO never gets decoded and it throws off my CGI scripts. best, dd

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

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