# Latest

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

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

---

## [If statements, string manipulation and file detection](https://www.ruby-forum.com/t/if-statements-string-manipulation-and-file-detection/245846)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [July 18, 2013, 8:50pm UTC](https://www.ruby-forum.com/t/if-statements-string-manipulation-and-file-detection/245846 "2013-07-18T20:50:28Z")

</div>

Hi, I’d like to use some if statements in a config. I know if in nginx is evil, but I think it’s what I want. Here is the pseudo-nginx-conf-code for what I need: http://pastebin.com/BxrtZ695 — can someone please help…

---

## [Help needed with configuration](https://www.ruby-forum.com/t/help-needed-with-configuration/235832)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [July 18, 2013, 8:39pm UTC](https://www.ruby-forum.com/t/help-needed-with-configuration/235832 "2013-07-18T20:39:22Z")

</div>

Hi All, I am trying to set up Nginx for a reseller scenario. The reseller will get his own root, and be able to create his versions of any file on the site, or, by leaving the file out, simply have the basic one use…

---

## [Call a method with block on distributed object (drb)](https://www.ruby-forum.com/t/call-a-method-with-block-on-distributed-object-drb/245764)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [July 18, 2013, 8:38pm UTC](https://www.ruby-forum.com/t/call-a-method-with-block-on-distributed-object-drb/245764 "2013-07-18T20:38:12Z")

</div>

Hi. I’ve the follow class for a distributed object: class Counter def initialize(i = 0) @index = i end def increment @index += 1 end def current return @index end def each(n = 1) threads …

---

## [Dev call on Youtube](https://www.ruby-forum.com/t/dev-call-on-youtube/245808)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [July 18, 2013, 8:17pm UTC](https://www.ruby-forum.com/t/dev-call-on-youtube/245808 "2013-07-18T20:17:10Z")

</div>

To watch the dev call live, follow this link: Tom

---

## [Dev call](https://www.ruby-forum.com/t/dev-call/235836)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [July 18, 2013, 6:43pm UTC](https://www.ruby-forum.com/t/dev-call/235836 "2013-07-18T18:43:06Z")

</div>

July’s developers call will be starting in a few minutes. Make sure you get your microphone/speakers set up, the Google+ hangout plugin installed, and can find your way over to the GNU Radio group’s page. This is my f…

---

## [Edit account is not working in rails4(when using devise)](https://www.ruby-forum.com/t/edit-account-is-not-working-in-rails4-when-using-devise/245839)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [July 18, 2013, 6:41pm UTC](https://www.ruby-forum.com/t/edit-account-is-not-working-in-rails4-when-using-devise/245839 "2013-07-18T18:41:21Z")

</div>

I am using devise.when i use rails3 the edit account is working fine even add some new fields.But in rails4 it is not working. If anyone have the solution.let me know… Thanking you

---

## [Fwd: decode problem in benchmark--NCO?](https://www.ruby-forum.com/t/fwd-decode-problem-in-benchmark-nco/245825)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [July 18, 2013, 6:06pm UTC](https://www.ruby-forum.com/t/fwd-decode-problem-in-benchmark-nco/245825 "2013-07-18T18:06:17Z")

</div>

For BPSK, not using differential, is there any way to keep track of the rotating so as to understand exactly what happened to each bit? Only after understanding what happens to each bit in a single series of data, I…

---

## [Not able add nginx upload module to nginx 1.2.8](https://www.ruby-forum.com/t/not-able-add-nginx-upload-module-to-nginx-1-2-8/235833)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [July 18, 2013, 5:54pm UTC](https://www.ruby-forum.com/t/not-able-add-nginx-upload-module-to-nginx-1-2-8/235833 "2013-07-18T17:54:35Z")

</div>

Hi, I am trying add the nginx upload module 2.2.0 with nginx 1.2.8 and getting below error. after./configure --add-module= and make this one fails make install make -f objs/Makefile install make\[1\]: Entering d…

---

## [Pre-cog Simple MAC Error](https://www.ruby-forum.com/t/pre-cog-simple-mac-error/235835)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [July 18, 2013, 5:47pm UTC](https://www.ruby-forum.com/t/pre-cog-simple-mac-error/235835 "2013-07-18T17:47:35Z")

</div>

Hello I am using the Pre-cog library for sending a simple data file from one usrp N210 to another USRP N210. I have replaced the TCP Block with a file source and a stream to blob block in the GRC. When I disable th…

---

## [Get part of matrix](https://www.ruby-forum.com/t/get-part-of-matrix/245798)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 6\
**Last updated:** [July 18, 2013, 5:29pm UTC](https://www.ruby-forum.com/t/get-part-of-matrix/245798 "2013-07-18T17:29:47Z")

</div>

Hi! I’m looking for a way to get part of matix: eg: my matrix: \[10, 11, 12, 13, 14, 15, 16, 17, 18, 19\] \[20, 21, 22, 23, 24, 25, 26, 27, 28, 29\] \[30, 31, 32, 33, 34, 35, 36, 37, 38, 39\] \[40, 41, 42, 43, 44, 45, 46,…

---

## [Cannot find Sphinx manual in 3.7](https://www.ruby-forum.com/t/cannot-find-sphinx-manual-in-3-7/245791)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [July 18, 2013, 5:17pm UTC](https://www.ruby-forum.com/t/cannot-find-sphinx-manual-in-3-7/245791 "2013-07-18T17:17:45Z")

</div>

Hi, I have just upgraded my GNU Radio version from 3.6.5 to 3.7. I am getting trouble in finding the Sphinx manual for documentation of GRC blocks e.g. I cannot find the genindex.html file in my system. Am I missing …

---

## [Question about failure and fail-over](https://www.ruby-forum.com/t/question-about-failure-and-fail-over/245815)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [July 18, 2013, 4:28pm UTC](https://www.ruby-forum.com/t/question-about-failure-and-fail-over/245815 "2013-07-18T16:28:40Z")

</div>

Hi all, I have a general question about server failure and failover within an upstream group to ensure I understand it correctly. Lets say I have the configuration: proxy\_next\_upstream timeout; proxy\_connect\_timeout …

---

## [Valgrind error in a readline test](https://www.ruby-forum.com/t/valgrind-error-in-a-readline-test/235834)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [July 18, 2013, 4:02pm UTC](https://www.ruby-forum.com/t/valgrind-error-in-a-readline-test/235834 "2013-07-18T16:02:22Z")

</div>

Issue #8644 has been updated by akr (Akira T.). File readline-fix-invalid-read.patch added とりあえず、close されたかどうかは元々の IO オブジェクトが close されたかどうかで判断するようなパッチを書いてみたんですが、 どうですかね。 なお、やってみて気がついたのですが、 isatty して EBADF になることを確認す…

---

## [Strange log file behavior](https://www.ruby-forum.com/t/strange-log-file-behavior/235768)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 11\
**Last updated:** [July 18, 2013, 3:55pm UTC](https://www.ruby-forum.com/t/strange-log-file-behavior/235768 "2013-07-18T15:55:21Z")

</div>

I noticed that most of my rotated nginx log files are empty (0 bytes). My only access\_log directive is in nginx.conf: access\_log /var/log/nginx/localhost.access\_log combined; Also nginx is currently logging to /var/l…

---

## [Proxy\_cache calculating size error under SSD drive but not SATA drive](https://www.ruby-forum.com/t/proxy-cache-calculating-size-error-under-ssd-drive-but-not-sata-drive/245841)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 4\
**Last updated:** [July 18, 2013, 2:32pm UTC](https://www.ruby-forum.com/t/proxy-cache-calculating-size-error-under-ssd-drive-but-not-sata-drive/245841 "2013-07-18T14:32:59Z")

</div>

Hello: I think I am on the right way, but not sure… The scenario: Have 2 drives: → SSD drive - XFS - default options (with noatime, discard) - almost empty → SATA drive - XFS - default options - almost empty …

---

## [Scheduler Issues with Branch Prediction](https://www.ruby-forum.com/t/scheduler-issues-with-branch-prediction/235786)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 9\
**Last updated:** [July 18, 2013, 1:56pm UTC](https://www.ruby-forum.com/t/scheduler-issues-with-branch-prediction/235786 "2013-07-18T13:56:11Z")

</div>

Hello everyone, I’ve been having the same issue with the scheduler for the past 2 months or so and I’m starting to unravel what I believe is occurring. Let me describe my flowgraph first, then describe what’s happen…

---

## [Allowing a character through Addressable::URI unescaped](https://www.ruby-forum.com/t/allowing-a-character-through-addressable-uri-unescaped/245794)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [July 18, 2013, 1:21pm UTC](https://www.ruby-forum.com/t/allowing-a-character-through-addressable-uri-unescaped/245794 "2013-07-18T13:21:41Z")

</div>

I have some code which used to work a few months ago but appears to have broken since then. It’s a URI builder which uses the pipe “|” character as a separator for multiple values. I use Addressable::URI.parse( my\_uri…

---

## [Help regarding internationalization for bootstrap button](https://www.ruby-forum.com/t/help-regarding-internationalization-for-bootstrap-button/245797)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 11\
**Last updated:** [July 18, 2013, 1:07pm UTC](https://www.ruby-forum.com/t/help-regarding-internationalization-for-bootstrap-button/245797 "2013-07-18T13:07:03Z")

</div>

Hi, I am trying to convert my application in hindi, I am stuck in the renaming submit button name, It works fine for hindi but not working for english, it gives syntax error, here is my submit button code \<%= f.su…

---

## [Valgrind error in a readline test](https://www.ruby-forum.com/t/valgrind-error-in-a-readline-test/245853)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [July 18, 2013, 12:49pm UTC](https://www.ruby-forum.com/t/valgrind-error-in-a-readline-test/245853 "2013-07-18T12:49:30Z")

</div>

Issue #8644 has been updated by akr (Akira T.). 調べてみると、テストにある、Readline.output に設定した IO オブジェクトを close した場合だけでなく、 Readline.input に設定した IO オブジェクトを close した場合にも Invalid read が起こるようです。 以下のようにして確認できます。 % valgrind ./ruby …

---

## [Nginx caching successive requests to reduce server load](https://www.ruby-forum.com/t/nginx-caching-successive-requests-to-reduce-server-load/245821)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [July 18, 2013, 12:34pm UTC](https://www.ruby-forum.com/t/nginx-caching-successive-requests-to-reduce-server-load/245821 "2013-07-18T12:34:17Z")

</div>

Hi, I couldn’t find what I was looking for in the search option. For a page that displays current time when refreshed, when the client presses and holds refresh button, nginx should serve a cached version of the page…

---

## [Setting Keepalive\_timeout for specific location](https://www.ruby-forum.com/t/setting-keepalive-timeout-for-specific-location/235830)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [July 18, 2013, 12:15pm UTC](https://www.ruby-forum.com/t/setting-keepalive-timeout-for-specific-location/235830 "2013-07-18T12:15:34Z")

</div>

Hi I’d like to know if setting keepalive for a specific location is possible. Right now I have only managed to get it working on server {} directive but not location {} directive. Thanks, Kim Y.

---

## [\[ruby-trunk - Bug #8655\]\[Open\] シンボル名 Init pack が複数ファイルで定義されている](https://www.ruby-forum.com/t/ruby-trunk-bug-8655-open-init-pack/245820)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [July 18, 2013, 11:25am UTC](https://www.ruby-forum.com/t/ruby-trunk-bug-8655-open-init-pack/245820 "2013-07-18T11:25:54Z")

</div>

Issue #8655 has been reported by ngoto (Naohisa G.). Bug #8655: シンボル名 Init\_pack が複数ファイルで定義されている Author: ngoto (Naohisa G.) Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 2.1.0de…

---

## [RailsCamp Germany](https://www.ruby-forum.com/t/railscamp-germany/235831)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [July 18, 2013, 11:19am UTC](https://www.ruby-forum.com/t/railscamp-germany/235831 "2013-07-18T11:19:51Z")

</div>

Join up to 200 fellow Rails developers in Cologne for the 5th edition of RailsCamp Germany next week! Meet old and new friends, learn, teach, exchange ideas and experiences, and have tons of fun and games at this crow…

---

## [Subir N imagenes Drag and Drog](https://www.ruby-forum.com/t/subir-n-imagenes-drag-and-drog/245790)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [July 18, 2013, 11:03am UTC](https://www.ruby-forum.com/t/subir-n-imagenes-drag-and-drog/245790 "2013-07-18T11:03:06Z")

</div>

Hace poco empece a desarrollar un proyecto con RoR, y me ha ido bastante bien, me tope ante un requerimiento que es de subir fotos arrastrandolas al browser las que el usuario desee, tal como lo hace gmail o 500px rea…

---

## [Using rvm for ruby-scripts running with nautilus](https://www.ruby-forum.com/t/using-rvm-for-ruby-scripts-running-with-nautilus/235829)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [July 18, 2013, 10:59am UTC](https://www.ruby-forum.com/t/using-rvm-for-ruby-scripts-running-with-nautilus/235829 "2013-07-18T10:59:39Z")

</div>

I use Ubuntu 13.04. It has ruby 1.9 preinstalled. I’ve installed rvm with a /curl command from the rvm.io and installed ruby 2.0 with it. So the system has ruby 1.9 and rvm has one ruby - 2.0. I’ve created a file .rb …

---

## [Valgrind error in a readline test](https://www.ruby-forum.com/t/valgrind-error-in-a-readline-test/235828)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [July 18, 2013, 10:42am UTC](https://www.ruby-forum.com/t/valgrind-error-in-a-readline-test/235828 "2013-07-18T10:42:38Z")

</div>

Issue #8644 has been updated by akr (Akira T.). Description updated SEGV のログは長すぎたので issue の本文からは消しました。 Bug #8644: valgrind error in a readline test Author: akr (Akira T.) Status: Open Priority: Normal Assignee: …

---

## [Trouble with $uri in subrequest](https://www.ruby-forum.com/t/trouble-with-uri-in-subrequest/245843)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [July 18, 2013, 10:40am UTC](https://www.ruby-forum.com/t/trouble-with-uri-in-subrequest/245843 "2013-07-18T10:40:18Z")

</div>

Hi there, i’m having trouble getting the request\_uri via lua in a subrequest. ngx.var.uri will always return the uri of the parent request whereas something like ngx.req.get\_uri\_args will return the correct args for t…

---

## [Rufus Scheduler](https://www.ruby-forum.com/t/rufus-scheduler/235826)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [July 18, 2013, 8:00am UTC](https://www.ruby-forum.com/t/rufus-scheduler/235826 "2013-07-18T08:00:49Z")

</div>

Hello All, I am using rufus-scheduler in rails application. Rails - 3.2.8 & ruby - 1.9.3p194. rufus-scheduler is working fine in development & production mode. But, when i starting in daemon mode. It stops working. …

---

## [\[ruby-trunk - Bug #8652\]\[Open\] gem で rb secure(4) を使用するとビルドエラーとなる](https://www.ruby-forum.com/t/ruby-trunk-bug-8652-open-gem-rb-secure-4/235827)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 7\
**Last updated:** [July 18, 2013, 7:49am UTC](https://www.ruby-forum.com/t/ruby-trunk-bug-8652-open-gem-rb-secure-4/235827 "2013-07-18T07:49:42Z")

</div>

Issue #8652 has been reported by hsbt (Hiroshi SHIBATA). Bug #8652: gem で rb\_secure(4) を使用するとビルドエラーとなる Author: hsbt (Hiroshi SHIBATA) Status: Open Priority: High Assignee: shugo (Shugo M.) Category: core Target …

---

## [Decode problem in benchmark](https://www.ruby-forum.com/t/decode-problem-in-benchmark/245803)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [July 18, 2013, 5:35am UTC](https://www.ruby-forum.com/t/decode-problem-in-benchmark/245803 "2013-07-18T05:35:56Z")

</div>

Hi everyone, I have a question about benchmark decoding. I’m using bpsk mod and demod. In order to understand what’s happening in the demodulation process, I added a file sink after time\_recov block and after unpack …

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

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