# Latest

**URL:** https://www.ruby-forum.com/latest.md?page=492

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

---

## [Address already in use - bind(2) (Errno::EADDRINUSE)](https://www.ruby-forum.com/t/address-already-in-use-bind-2-errno-eaddrinuse/207100)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 9\
**Last updated:** [November 26, 2013, 4:47am UTC](https://www.ruby-forum.com/t/address-already-in-use-bind-2-errno-eaddrinuse/207100 "2013-11-26T04:47:21Z")

</div>

I made a new rails app and when i started the server ,it gave following error message. =\> Booting Mongrel =\> Rails 2.3.8 application starting on http://0.0.0.0:3000 =\> Call with -d to detach =\> Ctrl-C to shutdown se…

---

## [Weird malloc/free crash in pm\_remez.cc](https://www.ruby-forum.com/t/weird-malloc-free-crash-in-pm-remez-cc/237697)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [November 26, 2013, 4:14am UTC](https://www.ruby-forum.com/t/weird-malloc-free-crash-in-pm-remez-cc/237697 "2013-11-26T04:14:02Z")

</div>

Hi all, Ive got an annoying crash in the current head of gnuradio. Its reproducible with the GRC file up at: http://www.joshisanerd.com/am\_demod\_crash.grc Does this crash for anyone else? If nobody else can repro, …

---

## [User name translation missing: pt-br.activemodel.errors.models](https://www.ruby-forum.com/t/user-name-translation-missing-pt-br-activemodel-errors-models/237706)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [November 25, 2013, 11:15pm UTC](https://www.ruby-forum.com/t/user-name-translation-missing-pt-br-activemodel-errors-models/237706 "2013-11-25T23:15:05Z")

</div>

All of sudden I began to experience this error below. I doubled check all keys and they are fine. The second model “ShopAddress” is working fine, but I cannot find what is wrong with “ShopUser”. What else could it be? …

---

## [Modules](https://www.ruby-forum.com/t/modules/237708)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [November 25, 2013, 11:10pm UTC](https://www.ruby-forum.com/t/modules/237708 "2013-11-25T23:10:47Z")

</div>

Hey, I just found out that you can also create Modules in Ruby. But I didn't quite understand what's the purpose of them. Can someone please help me how to use a module? Marvin

---

## [Blank page on some micro-cached pages](https://www.ruby-forum.com/t/blank-page-on-some-micro-cached-pages/237671)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 6\
**Last updated:** [November 25, 2013, 9:46pm UTC](https://www.ruby-forum.com/t/blank-page-on-some-micro-cached-pages/237671 "2013-11-25T21:46:06Z")

</div>

Running Nginx 1.5.7 on Freebsd 9.1 with php-pfm 5.5.3 a wordpress site is “micro-cached” , but for some strange reason and not always , some pages ( wordpress post or pages even 3 or 7 days after their publication) …

---

## [Tork 19.4.0 - test with fork](https://www.ruby-forum.com/t/tork-19-4-0-test-with-fork/237707)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [November 25, 2013, 8:14pm UTC](https://www.ruby-forum.com/t/tork-19-4-0-test-with-fork/237707 "2013-11-25T20:14:57Z")

</div>

Tork runs your tests as they change, in parallel: Absorbs test execution overhead into a master process. Forks to inherit overhead and run test files in parallel. Avoids running unchanged tests inside changed te…

---

## [Merge\_slashes and decoding of the path](https://www.ruby-forum.com/t/merge-slashes-and-decoding-of-the-path/237703)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [November 25, 2013, 6:49pm UTC](https://www.ruby-forum.com/t/merge-slashes-and-decoding-of-the-path/237703 "2013-11-25T18:49:06Z")

</div>

On my site, I accept full URL-encoded URLs as part of the path, for example: http://www.mysite.com/search/http%3A%2F%2Fexample.com%2F I recently moved my site to nginx and I found that it was decoding and collapsing …

---

## [Sorting an array based on user input](https://www.ruby-forum.com/t/sorting-an-array-based-on-user-input/237693)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [November 25, 2013, 5:56pm UTC](https://www.ruby-forum.com/t/sorting-an-array-based-on-user-input/237693 "2013-11-25T17:56:43Z")

</div>

Hey, I have just finished the chapter “Ordering your Library” so I want to experiment a little more with arrays and sorting. I wrote some code that gets the user’s input on how many cities he’d like to have alphabetiz…

---

## [A good alternative for Ezcap DVB-T Dongle?](https://www.ruby-forum.com/t/a-good-alternative-for-ezcap-dvb-t-dongle/237553)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [November 25, 2013, 5:54pm UTC](https://www.ruby-forum.com/t/a-good-alternative-for-ezcap-dvb-t-dongle/237553 "2013-11-25T17:54:09Z")

</div>

Hi, What are the options for a good alternative for Ezcap DVB-T dongle? We need some RTL SDR dongles, for setting up experiments for undergraduate communication lab course. We were planning to buy some RTL SDR compa…

---

## [Simple program with error message](https://www.ruby-forum.com/t/simple-program-with-error-message/237702)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 11\
**Last updated:** [November 25, 2013, 5:16pm UTC](https://www.ruby-forum.com/t/simple-program-with-error-message/237702 "2013-11-25T17:16:37Z")

</div>

My task is to write a full name greeting program (from how to program eBook by Chris pine) This is the error msg I’m getting: full\_greeting.rb:7: syntax error, unexpected $end …and your surname is’ + s\_name + ^ Any …

---

## [Compile NGINX with Openssl statically](https://www.ruby-forum.com/t/compile-nginx-with-openssl-statically/237652)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [November 25, 2013, 5:04pm UTC](https://www.ruby-forum.com/t/compile-nginx-with-openssl-statically/237652 "2013-11-25T17:04:27Z")

</div>

Hi members… I need your help. I’m trying to compile NGINX 1.4.4 with openssl 1.0.1e statically but the make process fail. Step 1: ./configure --prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf –sbin-path=/usr/bi…

---

## [Headers at the html page](https://www.ruby-forum.com/t/headers-at-the-html-page/237682)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [November 25, 2013, 3:21pm UTC](https://www.ruby-forum.com/t/headers-at-the-html-page/237682 "2013-11-25T15:21:01Z")

</div>

Hello All, I have erlang web application with cowboy web server and i launched it behind nginx reverse proxy. My nginx configuration: server { listen 9090; location /test { proxy\_pass http://localhost:8080; proxy…

---

## [Access\_log both compressed and uncompressed](https://www.ruby-forum.com/t/access-log-both-compressed-and-uncompressed/237690)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [November 25, 2013, 3:05pm UTC](https://www.ruby-forum.com/t/access-log-both-compressed-and-uncompressed/237690 "2013-11-25T15:05:14Z")

</div>

In my “vhost” declaration I have: access\_log /WEBSITE\_DIR/logs/access.log.gz combined gzip; Problem is I get 2 files, an access.log.gz and an access.log Why? I want just the .log.gz one…

---

## [Abstract behavior of nginx](https://www.ruby-forum.com/t/abstract-behavior-of-nginx/237651)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [November 25, 2013, 2:32pm UTC](https://www.ruby-forum.com/t/abstract-behavior-of-nginx/237651 "2013-11-25T14:32:31Z")

</div>

Hi, I can’t understand behavior of nginx. Version 1.2.1 on Debian Wheezy from official repository. I send requests to cdn.some\_domain.pl server, and in log /var/log/nginx/cdn.some\_domain.pl/test.log I see: image/gif…

---

## [Can't use ControlPort in gnuradio 3.7](https://www.ruby-forum.com/t/cant-use-controlport-in-gnuradio-3-7/237677)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 7\
**Last updated:** [November 25, 2013, 2:07pm UTC](https://www.ruby-forum.com/t/cant-use-controlport-in-gnuradio-3-7/237677 "2013-11-25T14:07:24Z")

</div>

Hi People, My system: Ubuntu 13.04 GNURADIO 3.7 I wanted to use ControlPort, but can’t: When I run .py file: from gnuradio.ctrlport.monitor import \* ImportError: No module named ctrlport.monitor Or from gnura…

---

## [Override String.to\_f method](https://www.ruby-forum.com/t/override-string-to-f-method/237700)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [November 25, 2013, 1:58pm UTC](https://www.ruby-forum.com/t/override-string-to-f-method/237700 "2013-11-25T13:58:19Z")

</div>

Hi, I’m trying to override the .to\_f method in String class in order to trunk strings with more than 10 decimals: class String def to\_f if self.size \> 10 aux = self\[0…9\] return aux.to\_f else super end end end …

---

## [Instance variable access from 1 module to another module](https://www.ruby-forum.com/t/instance-variable-access-from-1-module-to-another-module/237699)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [November 25, 2013, 1:51pm UTC](https://www.ruby-forum.com/t/instance-variable-access-from-1-module-to-another-module/237699 "2013-11-25T13:51:58Z")

</div>

I have 2 modules,each having 1 class which contains instance variables & methods. I want to access instance variables of 1 class from another class of another module without calling method. Please help.

---

## [Ruby on Rails - Database or excel](https://www.ruby-forum.com/t/ruby-on-rails-database-or-excel/237701)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [November 25, 2013, 9:33am UTC](https://www.ruby-forum.com/t/ruby-on-rails-database-or-excel/237701 "2013-11-25T09:33:20Z")

</div>

I am currently doing a project in Ruby on Rails and I have been presented with a dilemma. The dilemma is that the users of my system will be uploading an excel spreadsheet. The issue is should I just read straight fr…

---

## [Omniauth-facebook CSRF vulnerability](https://www.ruby-forum.com/t/omniauth-facebook-csrf-vulnerability/237487)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [November 25, 2013, 9:01am UTC](https://www.ruby-forum.com/t/omniauth-facebook-csrf-vulnerability/237487 "2013-11-25T09:01:10Z")

</div>

Hanno trovato una vulnerabilità in questa gemma. Se qualcuno la usa ne faccia l’aggiornamento alla 1.5.0 http://www.openwall.com/lists/oss-security/2013/11/12/5

---

## [Install failing on Ubuntu 12.04/AMD64](https://www.ruby-forum.com/t/install-failing-on-ubuntu-12-04-amd64/237696)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [November 25, 2013, 6:44am UTC](https://www.ruby-forum.com/t/install-failing-on-ubuntu-12-04-amd64/237696 "2013-11-25T06:44:29Z")

</div>

I have tried to install GNU Radio on my Ubuntu 12.04 AMD64 laptop. Reading http://gnuradio.org/redmine/projects/gnuradio/wiki/InstallingGR I have run: $ sudo apt-get install gnuradio Reading package lists… Done Bui…

---

## ["if statement" return based on source of script file](https://www.ruby-forum.com/t/if-statement-return-based-on-source-of-script-file/237691)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [November 25, 2013, 2:11am UTC](https://www.ruby-forum.com/t/if-statement-return-based-on-source-of-script-file/237691 "2013-11-25T02:11:08Z")

</div>

I’m fairly new to Ruby, so I’m hoping this is a simple issue, but I can’t quite seem to get it to work. I simply want an if statement in a method to return a value based on the location of the running script file. I’…

---

## [RubyInstaller 2.0.0-p353 released](https://www.ruby-forum.com/t/rubyinstaller-2-0-0-p353-released/237698)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [November 25, 2013, 12:41am UTC](https://www.ruby-forum.com/t/rubyinstaller-2-0-0-p353-released/237698 "2013-11-25T00:41:26Z")

</div>

I’m very pleased to announce the release of RubyInstaller packages for Ruby 2.0.0-p353 Upgrade to this version is extremely recommended as contains security fixes. Due increased reports of issues with existing downl…

---

## [RubyInstaller 1.9.3-p484 released](https://www.ruby-forum.com/t/rubyinstaller-1-9-3-p484-released/237695)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [November 25, 2013, 12:39am UTC](https://www.ruby-forum.com/t/rubyinstaller-1-9-3-p484-released/237695 "2013-11-25T00:39:06Z")

</div>

I’m very pleased to announce the release of RubyInstaller packages for Ruby 1.9.3-p484 Upgrade to this version is extremely recommended as contains security fixes. Due increased reports of issues with existing downl…

---

## [Mime-types 1.25.1 Released](https://www.ruby-forum.com/t/mime-types-1-25-1-released/237694)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [November 25, 2013, 12:01am UTC](https://www.ruby-forum.com/t/mime-types-1-25-1-released/237694 "2013-11-25T00:01:43Z")

</div>

mime-types version 1.25.1 has been released! home: http://mime-types.rubyforge.org/ code: https://github.com/halostatue/mime-types/ bugs: https://github.com/halostatue/mime-types/issues rdoc: http://mime-types.rubyf…

---

## [Clean-URL rewrite rule with nested "location" and alias directive](https://www.ruby-forum.com/t/clean-url-rewrite-rule-with-nested-location-and-alias-directive/237572)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 13\
**Last updated:** [November 24, 2013, 10:32pm UTC](https://www.ruby-forum.com/t/clean-url-rewrite-rule-with-nested-location-and-alias-directive/237572 "2013-11-24T22:32:20Z")

</div>

Hi! I am attempting to serve a staging website from a directory that is outside of the web-server’s document root, while at the same time making the site accessible at a URL that “appears” to be a subdirectory of the …

---

## [Ruby Kata FizzBuzz](https://www.ruby-forum.com/t/ruby-kata-fizzbuzz/237679)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [November 24, 2013, 9:52pm UTC](https://www.ruby-forum.com/t/ruby-kata-fizzbuzz/237679 "2013-11-24T21:52:37Z")

</div>

Ciao a tutti, nel mio tempo libero sto studiando ruby e inoltre, per fare pratica con TDD, ho deciso di addrentrarmi nel mondo dei Kata. Ho implementato una soluzione in Ruby del FizzBuzz Kata. La potete trovare qui…

---

## [Arrays \[i + 1\]?](https://www.ruby-forum.com/t/arrays-i-1/237625)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 9\
**Last updated:** [November 24, 2013, 8:09pm UTC](https://www.ruby-forum.com/t/arrays-i-1/237625 "2013-11-24T20:09:45Z")

</div>

Hi guys, i don’t understand why this happen. Exist another way to use math expression in arrays? expected: \[\[" ", “X”, “X”, “X”, " ", “X”, “X”, “X”\], \[“X”, “X”, “X”, “X”, " ", " ", “X”, “X”\], \[“X”, “X”, “X”, “X”, “A”,…

---

## [Esercizio di programmazione](https://www.ruby-forum.com/t/esercizio-di-programmazione/237688)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [November 24, 2013, 6:52pm UTC](https://www.ruby-forum.com/t/esercizio-di-programmazione/237688 "2013-11-24T18:52:43Z")

</div>

Ciao a tutti intanto voglio ringraziare tutto il forum per gli aiuti. Volevo chiedervi un altro help dal momento che continuo a cimentarmi con il fantastico mondo della programmazione: il dubbio riguarda l’utilizzo de…

---

## [Print Raw data](https://www.ruby-forum.com/t/print-raw-data/237683)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [November 24, 2013, 6:07pm UTC](https://www.ruby-forum.com/t/print-raw-data/237683 "2013-11-24T18:07:31Z")

</div>

Salve ragazzi, sono stato costretto, dal mio webhosting, all’aggiornamento delle applicazioni da Rails2 a Rails3 e ho avuto qualche problemino sui dati e sul routing. In particolare nel db ho sempre salvato nei campi…

---

## [Why am I getting - "\`force\_encoding': can't modify frozen String (RuntimeError)"](https://www.ruby-forum.com/t/why-am-i-getting-force-encoding-cant-modify-frozen-string-runtimeerror/237689)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [November 24, 2013, 5:57pm UTC](https://www.ruby-forum.com/t/why-am-i-getting-force-encoding-cant-modify-frozen-string-runtimeerror/237689 "2013-11-24T17:57:36Z")

</div>

encoding: ascii-8bit arr = { ‘1p’ =\> 1, ‘2p’ =\> 2, ‘5p’ =\> 5, ‘10p’ =\> 10, ‘20p’ =\> 20, ‘50p’ =\> 50, ‘£1’ =\> 100, ‘£2’ =\> 200 } arr.keys =\> \[“1p”, “2p”, “5p”, “10p”, “20p”, “50p”, “\\xC2\\xA31”, “\\xC2\\xA32”\] arr…

[Previous page](https://www.ruby-forum.com/latest.md?page=491)

[Next page](https://www.ruby-forum.com/latest.md?page=493)
