# Latest

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

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

---

## [Audio rate and quadrature rate in gnuradio](https://www.ruby-forum.com/t/audio-rate-and-quadrature-rate-in-gnuradio/246452)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [October 21, 2013, 12:58pm UTC](https://www.ruby-forum.com/t/audio-rate-and-quadrature-rate-in-gnuradio/246452 "2013-10-21T12:58:25Z")

</div>

Hello everyone,

---

## [Expires headers for url rewrite rules](https://www.ruby-forum.com/t/expires-headers-for-url-rewrite-rules/237039)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [October 21, 2013, 12:52pm UTC](https://www.ruby-forum.com/t/expires-headers-for-url-rewrite-rules/237039 "2013-10-21T12:52:35Z")

</div>

In my config I have some url rewrite rules for images as seen below: location / { rewrite ^/custom/path/(.)/(.)-(.\*).jpg$ /media/images/products/$1/$3.jpg last; } They work just fine. I’m also trying to set Expire h…

---

## [What does the thread do in usrp\_spectrum\_sense.py?](https://www.ruby-forum.com/t/what-does-the-thread-do-in-usrp-spectrum-sense-py/237038)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [October 21, 2013, 11:32am UTC](https://www.ruby-forum.com/t/what-does-the-thread-do-in-usrp-spectrum-sense-py/237038 "2013-10-21T11:32:41Z")

</div>

When I read the code in usrp\_spectrum\_sense.py,I ran into some troubles in understanding the code. 1.It define a thread but the thread seems do nothing,so what is the purpose of it 2.what is the process of signal pro…

---

## [.exe creation](https://www.ruby-forum.com/t/exe-creation/246453)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 8\
**Last updated:** [October 21, 2013, 10:20am UTC](https://www.ruby-forum.com/t/exe-creation/246453 "2013-10-21T10:20:04Z")

</div>

Hi , i am trying to create a .exe for my application using rubyscript2exe. and it is showing following error when i run the command ruby rubyscript2exe.rb application.rb . Tracing intello erp … intello erp.rb does…

---

## [Gr.file\_sink Issue](https://www.ruby-forum.com/t/gr-file-sink-issue/237033)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [October 21, 2013, 9:29am UTC](https://www.ruby-forum.com/t/gr-file-sink-issue/237033 "2013-10-21T09:29:13Z")

</div>

I looked everywhere for information pertaining to this question, but nothing worked. I am starting with a sample for recording information from my USRP (N210), but I am running into issues with: self.gr\_file\_sink = …

---

## [Warning message](https://www.ruby-forum.com/t/warning-message/237040)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [October 21, 2013, 9:09am UTC](https://www.ruby-forum.com/t/warning-message/237040 "2013-10-21T09:09:21Z")

</div>

hi all i am getting warning message while running grc Warning: Block key “blocks\_ctrlport\_monitor\_performance” not found when loading category tree. Warning: Block key “blocks\_ctrlport\_monitor\_performance” not found …

---

## [Number of lines in a text file](https://www.ruby-forum.com/t/number-of-lines-in-a-text-file/237026)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 9\
**Last updated:** [October 21, 2013, 8:17am UTC](https://www.ruby-forum.com/t/number-of-lines-in-a-text-file/237026 "2013-10-21T08:17:24Z")

</div>

If I want the number of lines of the text file , I may use File.readlines().size but this builds an useless extra Array, or %x(wc -l ).to\_i but this needs to be on a \*nix system (or have a system command wc.exe …

---

## [Complex to bits](https://www.ruby-forum.com/t/complex-to-bits/237024)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [October 21, 2013, 7:58am UTC](https://www.ruby-forum.com/t/complex-to-bits/237024 "2013-10-21T07:58:03Z")

</div>

Hi everyone. Thanks for all the replies on my previous thread. I did some tests and found out that the FFT and IFFT do not add noise to my audio signal. It works perfectly! The noise is coming from another part of my …

---

## [Install GNU Radio 3.7.1: Gruel error, where should I replace GNURADIO\_CORE with GNURADIO\_RUNTIME\_?](https://www.ruby-forum.com/t/install-gnu-radio-3-7-1-gruel-error-where-should-i-replace-gnuradio-core-with-gnuradio-runtime/237034)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [October 21, 2013, 6:47am UTC](https://www.ruby-forum.com/t/install-gnu-radio-3-7-1-gruel-error-where-should-i-replace-gnuradio-core-with-gnuradio-runtime/237034 "2013-10-21T06:47:54Z")

</div>

Dear Sir, I was using GNU Radio 3.6.5.1 but now try migrating to version 3.7.1. So I remove all existing installation, then start using the latest “build-gnuradio” script. This error comes out: Building extra modul…

---

## ["A" Grade SSL/TLS with Nginx and StartSSL](https://www.ruby-forum.com/t/a-grade-ssl-tls-with-nginx-and-startssl/246439)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 6\
**Last updated:** [October 20, 2013, 11:12pm UTC](https://www.ruby-forum.com/t/a-grade-ssl-tls-with-nginx-and-startssl/246439 "2013-10-20T23:12:50Z")

</div>

Hi Nginx folks, I spent some time hacking on my SSL conf recently. Nothing new, but I figured I’d share it with the group: Feel free to comment here. Cheers – Julien Vehent http://jve.linuxwall.info

---

## [Which 404 file does nginx calls?](https://www.ruby-forum.com/t/which-404-file-does-nginx-calls/237030)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [October 20, 2013, 11:12pm UTC](https://www.ruby-forum.com/t/which-404-file-does-nginx-calls/237030 "2013-10-20T23:12:15Z")

</div>

Somewhere something happened. I am not able to fix it. error\_page 404 404.html During the test, i had this line in the site.conf file. 404.html had “File not found.” Later i created a proper error page and changed t…

---

## [Render html withouts assets](https://www.ruby-forum.com/t/render-html-withouts-assets/246480)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [October 20, 2013, 8:22pm UTC](https://www.ruby-forum.com/t/render-html-withouts-assets/246480 "2013-10-20T20:22:13Z")

</div>

Hi, Is there a way to render template without assets from application.js and application.css? In my project I use html rendered by controllers. This data is received by ajax and added to current page interactively…

---

## [Rails 4 - I got NoMethodError undefined method. Please help](https://www.ruby-forum.com/t/rails-4-i-got-nomethoderror-undefined-method-please-help/246435)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [October 20, 2013, 8:14pm UTC](https://www.ruby-forum.com/t/rails-4-i-got-nomethoderror-undefined-method-please-help/246435 "2013-10-20T20:14:02Z")

</div>

I got a NoMethodError when i called \<%= @post.admin\_user.name %\>, don’t know how to fix it. Extracted source (around line #4): \<h1\>\<%= @post.title %\>\</h1\> \<p\>\<%= @post.body %\>\</p\> \<small\>Post created at \<%= @post.crea…

---

## [ActiveRecord and model question](https://www.ruby-forum.com/t/activerecord-and-model-question/237031)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [October 20, 2013, 7:46pm UTC](https://www.ruby-forum.com/t/activerecord-and-model-question/237031 "2013-10-20T19:46:34Z")

</div>

Hy, I have some table in my DB like following: Post(id, title, content, created\_at, updated\_at) First question, what type ActiveRecord returns? For example if i do something like: @posts = Post.all, through debugger …

---

## [Gnuradio installation](https://www.ruby-forum.com/t/gnuradio-installation/237032)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [October 20, 2013, 7:23pm UTC](https://www.ruby-forum.com/t/gnuradio-installation/237032 "2013-10-20T19:23:11Z")

</div>

im following sumits video on utube installation of gnuradio from source…, but i have encoutered an error in the last part i-e 7th. i get this gnuradio grc\_gnuradio pmt volk\_modtool instead of gnuradio grc\_gnuradio g…

---

## [Any sources for Saucy Salamander? (Ubuntu 13.10)](https://www.ruby-forum.com/t/any-sources-for-saucy-salamander-ubuntu-13-10/246488)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [October 20, 2013, 4:24pm UTC](https://www.ruby-forum.com/t/any-sources-for-saucy-salamander-ubuntu-13-10/246488 "2013-10-20T16:24:24Z")

</div>

I seem to be “stuck” on the 5 month old nginx 1.4.1 on my Ubuntu 13.04. But reading the 13.10 (Saucy Salamander) Ubuntu repo notes, I see it’s STILL that version. So I found this post: http://www.devcu.com/forums/to…

---

## [AM Modulation Index](https://www.ruby-forum.com/t/am-modulation-index/237029)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [October 20, 2013, 12:54pm UTC](https://www.ruby-forum.com/t/am-modulation-index/237029 "2013-10-20T12:54:32Z")

</div>

Simple question. How do I find the modulation index of an AM signal in GRC? I believe I have to create my own block but I am stuck at making the block find E min of the mod signal. Any tips? Thank you Top Leo.

---

## [Why in top level self assigned some times to Object or main?](https://www.ruby-forum.com/t/why-in-top-level-self-assigned-some-times-to-object-or-main/237020)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 11\
**Last updated:** [October 20, 2013, 12:33pm UTC](https://www.ruby-forum.com/t/why-in-top-level-self-assigned-some-times-to-object-or-main/237020 "2013-10-20T12:33:24Z")

</div>

Hi, I write the code below on top level : module A def bar self end end include A # =\> Object bar # =\> main Now it seems to me that on top level the self changes to either Object(in case of call to method Modul…

---

## [Dir.mktmpdir in IRB vs Pry](https://www.ruby-forum.com/t/dir-mktmpdir-in-irb-vs-pry/237027)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 3\
**Last updated:** [October 20, 2013, 6:21am UTC](https://www.ruby-forum.com/t/dir-mktmpdir-in-irb-vs-pry/237027 "2013-10-20T06:21:54Z")

</div>

When I call Dir.mktmpdir in Pry, it works. I get =\> “/tmp/d20131019-7589-9g9zxs” But when I call it in IRB, it doesn’t. I get NoMethodError: undefined method \`mktmpdir’ for Dir:Class Other Dir methods work in IRB. Wh…

---

## [Yahns - sleepy application server for Ruby (tech preview)](https://www.ruby-forum.com/t/yahns-sleepy-application-server-for-ruby-tech-preview/237016)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [October 20, 2013, 3:07am UTC](https://www.ruby-forum.com/t/yahns-sleepy-application-server-for-ruby-tech-preview/237016 "2013-10-20T03:07:29Z")

</div>

Hi all, pushed out yahns 0.0.0TP1 (tech preview 1) to RubyGems.org $ gem install --pre yahns $ git clone git://yhbt.net/yahns we like plain-text email removed\_email\_address@domain.invalid yahns - sleepy, multi-threa…

---

## [Embedded Ruby: UTF-8 strings not working right](https://www.ruby-forum.com/t/embedded-ruby-utf-8-strings-not-working-right/236998)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [October 20, 2013, 12:59am UTC](https://www.ruby-forum.com/t/embedded-ruby-utf-8-strings-not-working-right/236998 "2013-10-20T00:59:14Z")

</div>

Hi! I have the ruby vm embedded via the public ruby\_\* functions and execute scripts via rb\_eval\_string\_protect. The version I am using is ruby 2.1.0dev (2013-09-27 trunk 43059), and I’m working on 64bit Linux (Fedora…

---

## [Re: How to make modified uhd/host/examples](https://www.ruby-forum.com/t/re-how-to-make-modified-uhd-host-examples/237015)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [October 19, 2013, 10:42pm UTC](https://www.ruby-forum.com/t/re-how-to-make-modified-uhd-host-examples/237015 "2013-10-19T22:42:37Z")

</div>

I have to add some instructions for test purpose into some files of /uhd/host/examples Could you show me how to make the new files, or send me the link of How to instructions. BTW, I never used CMake before. If there…

---

## [Re: Quick performance deterioration when No. of clients increases](https://www.ruby-forum.com/t/re-quick-performance-deterioration-when-no-of-clients-increases/246472)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [October 19, 2013, 8:11pm UTC](https://www.ruby-forum.com/t/re-quick-performance-deterioration-when-no-of-clients-increases/246472 "2013-10-19T20:11:18Z")

</div>

This is a slight oversimplification as processes in waitio are also adding to the load average. Use of programs like top, iotop, mytop etc will give you a clearer idea of what is going on, and where your bottleneck li…

---

## [Specified 'sqlite3' for database adapter, but the gem is not loaded. Add \`gem 'sqlite3'\` to your Gem](https://www.ruby-forum.com/t/specified-sqlite3-for-database-adapter-but-the-gem-is-not-loaded-add-gem-sqlite3-to-your-gem/237028)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [October 19, 2013, 3:41pm UTC](https://www.ruby-forum.com/t/specified-sqlite3-for-database-adapter-but-the-gem-is-not-loaded-add-gem-sqlite3-to-your-gem/237028 "2013-10-19T15:41:25Z")

</div>

Hola cuando intento abrir la pagina con el servidor de ruby me dice esto Specified ‘sqlite3’ for database adapter, but the gem is not loaded. Add gem 'sqlite3' to your Gemfile. Como podría hacer para solucionarlo?? G…

---

## [Quick performance deterioration when No. of clients increases](https://www.ruby-forum.com/t/quick-performance-deterioration-when-no-of-clients-increases/236923)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 11\
**Last updated:** [October 19, 2013, 1:56pm UTC](https://www.ruby-forum.com/t/quick-performance-deterioration-when-no-of-clients-increases/236923 "2013-10-19T13:56:47Z")

</div>

Hello, I am trying to migrate a Joomla 2.5.8 website from Apache to NGINX 1.4.2 with php-fpm 5.3.3 (and MySQL 5.5.34) on a CentOS 6.4 x86\_64 Virtual Machine (running under KMS). The goal is to achieve better peak per…

---

## [Config Mail Proxy for POP3/SMTP microsoft exchange](https://www.ruby-forum.com/t/config-mail-proxy-for-pop3-smtp-microsoft-exchange/236967)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 8\
**Last updated:** [October 19, 2013, 11:37am UTC](https://www.ruby-forum.com/t/config-mail-proxy-for-pop3-smtp-microsoft-exchange/236967 "2013-10-19T11:37:39Z")

</div>

Hi there, Is NGINX support Microsoft Exchange POP3 / SMTP ??? If yes, can anyone help me to config NGINX as reverse proxy for MS Exchange. Followed the link : IMAP Proxy Example | NGINX but I could still dont under…

---

## [Dtas 0.6.0 - duct tape audio suite for \*nix](https://www.ruby-forum.com/t/dtas-0-6-0-duct-tape-audio-suite-for-nix/237022)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [October 19, 2013, 10:04am UTC](https://www.ruby-forum.com/t/dtas-0-6-0-duct-tape-audio-suite-for-nix/237022 "2013-10-19T10:04:09Z")

</div>

Free Software command-line tools for audio playback, mastering, and whatever else related to audio. dtas follows the worse-is-better philosophy and acts as duct tape to combine existing command-line tools for flexibi…

---

## [RubyMine 5.4 - stable enough?](https://www.ruby-forum.com/t/rubymine-5-4-stable-enough/237023)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [October 19, 2013, 9:59am UTC](https://www.ruby-forum.com/t/rubymine-5-4-stable-enough/237023 "2013-10-19T09:59:37Z")

</div>

Hi there, A small team in our company will likely to be involved in Ruby related development. We think of using the latest version of RubyMine (5.4) and wonder if it is stable enough or should we stick with the previ…

---

## [Before\_action - performing an action to prevent](https://www.ruby-forum.com/t/before-action-performing-an-action-to-prevent/246445)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [October 19, 2013, 7:08am UTC](https://www.ruby-forum.com/t/before-action-performing-an-action-to-prevent/246445 "2013-10-19T07:08:17Z")

</div>

class WebsocketController \< WebsocketRails::BaseController private def authenticate? unless current\_user.token == message\[:token\] current\_redirect\_to ‘home/index’ false # that here we need to do to stop the further …

---

## [Sequel vs. RDBI vs. DBI](https://www.ruby-forum.com/t/sequel-vs-rdbi-vs-dbi/227055)

<div class="topic-metadata">

**Author:** [@jim-harris](https://www.ruby-forum.com/u/jim-harris)\
**Replies:** 6\
**Last updated:** [October 19, 2013, 5:03am UTC](https://www.ruby-forum.com/t/sequel-vs-rdbi-vs-dbi/227055 "2013-10-19T05:03:48Z")

</div>

So it looks like RDBI hasn’t been touched in a while and DBI appears dormant, so I’ve been looking at Sequel . I like what I’ve seen so far and I’m just wondering if this would be considered “the way to do database pr…

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

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