# Latest

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

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

---

## [Appropriate method for no-op AR Query chain](https://www.ruby-forum.com/t/appropriate-method-for-no-op-ar-query-chain/236355)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [August 29, 2013, 12:57am UTC](https://www.ruby-forum.com/t/appropriate-method-for-no-op-ar-query-chain/236355 "2013-08-29T00:57:02Z")

</div>

With Rails 3, we had a number of method-defined scopes along these lines: def self.with\_name(name) if name.present? where(name: name) else scoped end end In Rails 4, Model#scoped is obviously deprecated and reco…

---

## [Pg gem: LoadError](https://www.ruby-forum.com/t/pg-gem-loaderror/236328)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [August 28, 2013, 10:52pm UTC](https://www.ruby-forum.com/t/pg-gem-loaderror/236328 "2013-08-28T22:52:31Z")

</div>

Hello, I spent a good deal of time trying to get the “pg” installed on my Mac OSX 10.6.8. I finally got it successfully installed and using require ‘pg’ in irb returns true: require ‘pg’ =\> true However, when I…

---

## [Mongrel hangs with 100% CPU / EBADF (Bad file descriptor)](https://www.ruby-forum.com/t/mongrel-hangs-with-100-cpu-ebadf-bad-file-descriptor/147341)

<div class="topic-metadata">

**Author:** [@frontline](https://www.ruby-forum.com/u/frontline)\
**Replies:** 10\
**Last updated:** [August 28, 2013, 10:11pm UTC](https://www.ruby-forum.com/t/mongrel-hangs-with-100-cpu-ebadf-bad-file-descriptor/147341 "2013-08-28T22:11:19Z")

</div>

I posted this at the mongrel forum, but got no response., I believe the problems isn’t in mongrel itself, so maybe somebody here has some info on this. Anyway, here is the message: We have a server with 10 running mon…

---

## [Fake Basic Auth](https://www.ruby-forum.com/t/fake-basic-auth/246073)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 5\
**Last updated:** [August 28, 2013, 8:18pm UTC](https://www.ruby-forum.com/t/fake-basic-auth/246073 "2013-08-28T20:18:57Z")

</div>

Hello, I am new to nginx and have following problem: Nginx should be used as a reverse proxy and configured for client certificate authentication. Backoffice application supports basic auth only. Apache 2.4 solution…

---

## [Faster primality testing and factorization methods in Ruby](https://www.ruby-forum.com/t/faster-primality-testing-and-factorization-methods-in-ruby/235519)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 7\
**Last updated:** [August 28, 2013, 6:46pm UTC](https://www.ruby-forum.com/t/faster-primality-testing-and-factorization-methods-in-ruby/235519 "2013-08-28T18:46:45Z")

</div>

I have created various implementations of methods to replace prime? and prime\_division (from the standard lib file prime.rb) based on a class of mathematical operators I’ve developed called prime generators (PG).Using …

---

## [Choppy audio and underrun (aUaU) with simple audio test](https://www.ruby-forum.com/t/choppy-audio-and-underrun-auau-with-simple-audio-test/236353)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [August 28, 2013, 6:15pm UTC](https://www.ruby-forum.com/t/choppy-audio-and-underrun-auau-with-simple-audio-test/236353 "2013-08-28T18:15:42Z")

</div>

I am using gnuradio companion to run a simple test, in which I just connect a signal source to an audio sink. They have the same sample rate, and the signal source is a sine wave, amplitude is 0.1, frequency 1kHz, o…

---

## [Recursive folder source](https://www.ruby-forum.com/t/recursive-folder-source/246097)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [August 28, 2013, 4:17pm UTC](https://www.ruby-forum.com/t/recursive-folder-source/246097 "2013-08-28T16:17:07Z")

</div>

Hi all guys again, I wonder if somebody was implementing signal source that is able to read multyple files from specified folder? If not, i would like to hear ur opinion about that idea and maybe suggestions, cause I…

---

## [504 Gateway Time-out when calling curl\_exec() in PHP with SSL peer verification (CURLOPT\_SSL\_VERIFYP](https://www.ruby-forum.com/t/504-gateway-time-out-when-calling-curl-exec-in-php-with-ssl-peer-verification-curlopt-ssl-verifyp/246084)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 9\
**Last updated:** [August 28, 2013, 3:45pm UTC](https://www.ruby-forum.com/t/504-gateway-time-out-when-calling-curl-exec-in-php-with-ssl-peer-verification-curlopt-ssl-verifyp/246084 "2013-08-28T15:45:34Z")

</div>

Hello, I’m seeing a strange problem with nginx (1.5.2 on Windows) and PHP (5.4.8 on Windows). Whenever I make a cURL request with PHP’s curl\_exec() function to a secure URL (https protocol), and I disable peer verifi…

---

## [Store Data for a family tree?](https://www.ruby-forum.com/t/store-data-for-a-family-tree/236350)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [August 28, 2013, 2:33pm UTC](https://www.ruby-forum.com/t/store-data-for-a-family-tree/236350 "2013-08-28T14:33:36Z")

</div>

Hi, I want to to store some data for a family tree, but I cannot figure out which way i should take. So after a few ides (that have not worked very well) I came up with this: \[\[Genotyp\],\[parents\],\[gender\],\[affected\]\]…

---

## [502-Error but nothing in error.log (anymore)](https://www.ruby-forum.com/t/502-error-but-nothing-in-error-log-anymore/246130)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [August 28, 2013, 2:28pm UTC](https://www.ruby-forum.com/t/502-error-but-nothing-in-error-log-anymore/246130 "2013-08-28T14:28:28Z")

</div>

Hi there, I’m using nginx on my arm5 to run a seafile-server and ran into a couple of problems just now. when I open a page that embeds a picture from a certain folder the picture won’t show. When I copy the picture…

---

## [Sync\_interpolator](https://www.ruby-forum.com/t/sync-interpolator/246104)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 6\
**Last updated:** [August 28, 2013, 2:08pm UTC](https://www.ruby-forum.com/t/sync-interpolator/246104 "2013-08-28T14:08:02Z")

</div>

Hi Guys, I do not understand how set\_history and fixed rate blocks are interacting. Supposedly, the scheduler can figure out a static schedule for sync blocks. However, the sync\_interpolator is forcasting this int s…

---

## [Understanding array/hash](https://www.ruby-forum.com/t/understanding-array-hash/236347)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [August 28, 2013, 12:57pm UTC](https://www.ruby-forum.com/t/understanding-array-hash/236347 "2013-08-28T12:57:20Z")

</div>

Hello, I’m having little hard time understanding following code conf = { :hash\_key =\> { 'hash\_string' =\> { :hash1 =\> 'get\_me', …

---

## [Regarding ofdm blocks in gnuradio-3.7](https://www.ruby-forum.com/t/regarding-ofdm-blocks-in-gnuradio-3-7/236345)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [August 28, 2013, 11:47am UTC](https://www.ruby-forum.com/t/regarding-ofdm-blocks-in-gnuradio-3-7/236345 "2013-08-28T11:47:14Z")

</div>

hi community, i tried using the examples provided in gr-digital/examples/ofdm. when i use them i couldn’t able to get the peaks at the output of Schmidl&cox block but if i change the tx\_ofdm.grc in such a way that on…

---

## [Problem running burst detect](https://www.ruby-forum.com/t/problem-running-burst-detect/236336)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [August 28, 2013, 11:05am UTC](https://www.ruby-forum.com/t/problem-running-burst-detect/236336 "2013-08-28T11:05:10Z")

</div>

Hi guys, I am facing problem when starting uhd\_burst\_detector.py. It won’t start because address is wrong, but since I am using usrp1, I don’t know what to put. Thanks,

---

## [Gestire le dipendenze in un deploy](https://www.ruby-forum.com/t/gestire-le-dipendenze-in-un-deploy/236340)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 6\
**Last updated:** [August 28, 2013, 10:49am UTC](https://www.ruby-forum.com/t/gestire-le-dipendenze-in-un-deploy/236340 "2013-08-28T10:49:22Z")

</div>

Sto grattando la testa pensando al modo migliore di includere una libreria abbastanza pesante nei nostri deploy. La cosa migliore sarebbe stato avere un pacchetto .deb tramite un PPA o qualcosa del genere, ma non ne …

---

## [Do anyone know how to add pilot to sub-carrier in benchmark ofdm example?](https://www.ruby-forum.com/t/do-anyone-know-how-to-add-pilot-to-sub-carrier-in-benchmark-ofdm-example/236333)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [August 28, 2013, 9:17am UTC](https://www.ruby-forum.com/t/do-anyone-know-how-to-add-pilot-to-sub-carrier-in-benchmark-ofdm-example/236333 "2013-08-28T09:17:40Z")

</div>

Hi guys, Thanks in advance. I am currently using Gnuradio 3.6. I want to use pilot to trace the phase offset in each ofdm symbol. However, I cannot see any pilot is added in ofdm benchmark example. Is there any e…

---

## [Tools.rb:328:in \`require': cannot load such file -- JSON (LoadError)](https://www.ruby-forum.com/t/tools-rbin-require-cannot-load-such-file-json-loaderror/246118)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [August 28, 2013, 9:05am UTC](https://www.ruby-forum.com/t/tools-rbin-require-cannot-load-such-file-json-loaderror/246118 "2013-08-28T09:05:22Z")

</div>

Hi there, I am trying to get dashing to work well. Please let me know what system details will be helpful to post. root@ce-lab1:~/sweet\_dashboard\_project# ruby -v ruby 1.9.3p194 (2012-04-20 revision 35410) \[x86\_64-…

---

## [WX FFT in 3.7 (master)](https://www.ruby-forum.com/t/wx-fft-in-3-7-master/236325)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [August 28, 2013, 3:53am UTC](https://www.ruby-forum.com/t/wx-fft-in-3-7-master/236325 "2013-08-28T03:53:26Z")

</div>

Anyone else seeing weirdness in WX FFT under 3.7? I’m running a simple baseband loopback test on development hardware using BasicRX/BasicTX, passing CW’s out and back again. When I use my normal flow graph that’s WX G…

---

## [Antennas](https://www.ruby-forum.com/t/antennas/246092)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [August 28, 2013, 3:31am UTC](https://www.ruby-forum.com/t/antennas/246092 "2013-08-28T03:31:14Z")

</div>

Hi everyone, Apologies if this is slightly OT but I am new to gnu-radio, radio and SDR. I am interested in what people are doing for antennas, I was thinking that some kind of modular antenna would be cool, basically…

---

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

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [August 28, 2013, 2:41am UTC](https://www.ruby-forum.com/t/dtas-duct-tape-audio-suite-for-nix/236314 "2013-08-28T02:41:32Z")

</div>

http://dtas.80x24.org/README http://dtas.80x24.org/INSTALL http://dtas.80x24.org/dtas-player.txt git clone git://80x24.org/dtas From the README: Free Software command-line tools for audio playback, mastering, and wha…

---

## [How to resolve? uninitialized constant PLATFORM (NameError)](https://www.ruby-forum.com/t/how-to-resolve-uninitialized-constant-platform-nameerror/236342)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [August 28, 2013, 1:49am UTC](https://www.ruby-forum.com/t/how-to-resolve-uninitialized-constant-platform-nameerror/236342 "2013-08-28T01:49:12Z")

</div>

Hi, I ran into a situation where it complains about the: uninitialized constant PLATFORM (NameError), I’m not sure how to resolve it. What is the workaround? I’ve reinstalled ruby already. I just cant see to figure o…

---

## [Problem with cmake not finding includes](https://www.ruby-forum.com/t/problem-with-cmake-not-finding-includes/236301)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 15\
**Last updated:** [August 27, 2013, 10:52pm UTC](https://www.ruby-forum.com/t/problem-with-cmake-not-finding-includes/236301 "2013-08-27T22:52:42Z")

</div>

Hi, I’m porting my real time Doppler correction block from 3.6 to 3.7 but have come across an issue that when I try to cmake it, I get an error saying it cannot find the runtime includes. To replicate this I created …

---

## [Need help in Hash](https://www.ruby-forum.com/t/need-help-in-hash/236341)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [August 27, 2013, 9:10pm UTC](https://www.ruby-forum.com/t/need-help-in-hash/236341 "2013-08-27T21:10:40Z")

</div>

Hello Everyone, I am a newbie in Ruby and I am trying to learn Ruby these day. I was going through Hash today and I got stuck in problem related to Hash I have the following Hash {“key1” =\> \[“param\_1”,“param\_2”\], “ke…

---

## [Gnuradio on ARM: gr\_vmcircbuf\_sysv\_shm: shmat (3): Invalid argument](https://www.ruby-forum.com/t/gnuradio-on-arm-gr-vmcircbuf-sysv-shm-shmat-3-invalid-argument/228322)

<div class="topic-metadata">

**Author:** [@Monahan-MitchellS\_T](https://www.ruby-forum.com/u/Monahan-MitchellS_T)\
**Replies:** 11\
**Last updated:** [August 27, 2013, 7:56pm UTC](https://www.ruby-forum.com/t/gnuradio-on-arm-gr-vmcircbuf-sysv-shm-shmat-3-invalid-argument/228322 "2013-08-27T19:56:11Z")

</div>

gnuradio maint branch, v.3.6.4.1 ‘make test’ fails, due to gr-core-test-all failing. At first, I was getting an error due to the “shmat (2)” line above where this error occurs, but it has settled on (3). I added a co…

---

## [What the hack](https://www.ruby-forum.com/t/what-the-hack/236334)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 6\
**Last updated:** [August 27, 2013, 7:36pm UTC](https://www.ruby-forum.com/t/what-the-hack/236334 "2013-08-27T19:36:53Z")

</div>

Hi, could someone please explain me what the hack is happening here? $ irb irb(main):001:0\> 2.718281828459045 =\> 2.718281828459045 irb(main):002:0\> Math.tan(2.718281828459045) =\> -0.4505495340698077 irb(main):003:…

---

## [Help needed NGINX reverse proxy to NODE.JS](https://www.ruby-forum.com/t/help-needed-nginx-reverse-proxy-to-node-js/246102)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [August 27, 2013, 7:15pm UTC](https://www.ruby-forum.com/t/help-needed-nginx-reverse-proxy-to-node-js/246102 "2013-08-27T19:15:15Z")

</div>

Hi, I’ve tried this with NGINX 1.4.1-1ppa1~precise and node v0.10.17 and just can’t get it to work. What I’ve tried / what happens : (a) Yes, I have tested this direct between client code and node listening on 0.0.0…

---

## [Gqrx in MacPorts Updated](https://www.ruby-forum.com/t/gqrx-in-macports-updated/246119)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [August 27, 2013, 6:48pm UTC](https://www.ruby-forum.com/t/gqrx-in-macports-updated/246119 "2013-08-27T18:48:21Z")

</div>

I’ve updated gqrx within MacPorts to the latest commits from this past weekend, adding in the +portaudio variant; see also \< https://trac.macports.org/changeset/110113 \>. If you use this port, I’d love to hear from y…

---

## [Why NaN.class throws NameError?](https://www.ruby-forum.com/t/why-nan-class-throws-nameerror/236331)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 11\
**Last updated:** [August 27, 2013, 5:41pm UTC](https://www.ruby-forum.com/t/why-nan-class-throws-nameerror/236331 "2013-08-27T17:41:04Z")

</div>

Here is my sample code: class Foo Bar = 10 end Foo::Bar # =\> 10 Foo::Bar.class # =\> Fixnum 10.class # =\> Fixnum Float::NAN # =\> NaN Float::NAN.class # =\> Float NaN.class uninitialized constant NaN (NameError)

---

## [答复: 答复: unsubscribe](https://www.ruby-forum.com/t/unsubscribe/236337)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [August 27, 2013, 4:02pm UTC](https://www.ruby-forum.com/t/unsubscribe/236337 "2013-08-27T16:02:51Z")

</div>

I tried but looks like it doesn’t work now. Actually I’ve successfully unsubscribed but it still sends to me now! 发自我的 Windows Phone -----原始邮件----- 发件人: “Masafumi Y.” removed\_email\_address@domain.invalid 发送时间: ‎2013…

---

## [Zero size buf in output(Bug?)](https://www.ruby-forum.com/t/zero-size-buf-in-output-bug/223561)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 15\
**Last updated:** [August 27, 2013, 3:37pm UTC](https://www.ruby-forum.com/t/zero-size-buf-in-output-bug/223561 "2013-08-27T15:37:42Z")

</div>

Hi. After update from 1.0.14 to 1.2.3, strange alerts starts to appears in error.log: 2012/10/08 23:44:07 \[alert\] 25551#0: \*79037 zero size buf in output t:0 r:0 f:0 000000000D31F3F0 000000000D31F3F0-000000000D3273F0 …

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

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