# Latest

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

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

---

## [How to implement auto-correction of sample rate in flow graph?](https://www.ruby-forum.com/t/how-to-implement-auto-correction-of-sample-rate-in-flow-graph/237959)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 8\
**Last updated:** [January 14, 2014, 9:36am UTC](https://www.ruby-forum.com/t/how-to-implement-auto-correction-of-sample-rate-in-flow-graph/237959 "2014-01-14T09:36:48Z")

</div>

I have external device streaming data at fixed sample rate and my GNU Radio source block for this device, which feeds flow graph containing some hardware sink operating at same sample rate (e.g. audio sink). My sourc…

---

## [TCP Socket Server](https://www.ruby-forum.com/t/tcp-socket-server/238494)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [January 14, 2014, 9:30am UTC](https://www.ruby-forum.com/t/tcp-socket-server/238494 "2014-01-14T09:30:57Z")

</div>

I am working on learning ruby and I am presently going over TCPSocket using the required ‘socket’. I have successfully opened a server, and gotten a client to connect, but I am still running into some issues. The issue…

---

## [Video and audio upload](https://www.ruby-forum.com/t/video-and-audio-upload/238215)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [January 14, 2014, 8:11am UTC](https://www.ruby-forum.com/t/video-and-audio-upload/238215 "2014-01-14T08:11:31Z")

</div>

Hi, In my rails application i have an option of uploading video's and audio’s. everything is working good. Problem here is in the index/show page video and audio get autoplay . It should not happen, can anybody hel…

---

## [Using Ruby to Generate SoX Commands](https://www.ruby-forum.com/t/using-ruby-to-generate-sox-commands/238484)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 5\
**Last updated:** [January 14, 2014, 7:18am UTC](https://www.ruby-forum.com/t/using-ruby-to-generate-sox-commands/238484 "2014-01-14T07:18:57Z")

</div>

This may seem crazy, but I am hoping to use Ruby as the source of a rather long chain of tools. I want to use Ruby to generate a shell script to run a long (LONG) series of commands for SoX. SoX is a general purpose c…

---

## [\[JOB\] - Position open to manage/improve existing RoR database on ActiveAdmin](https://www.ruby-forum.com/t/job-position-open-to-manage-improve-existing-ror-database-on-activeadmin/238487)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [January 14, 2014, 7:09am UTC](https://www.ruby-forum.com/t/job-position-open-to-manage-improve-existing-ror-database-on-activeadmin/238487 "2014-01-14T07:09:36Z")

</div>

We have an existing database which is supporting an iPad app we developed. There are several upgrades that need to be performed on the database and we are also looking for ongoing support. Let me know if you are in…

---

## [Expose complex dynamic queries over REST](https://www.ruby-forum.com/t/expose-complex-dynamic-queries-over-rest/238457)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [January 14, 2014, 5:05am UTC](https://www.ruby-forum.com/t/expose-complex-dynamic-queries-over-rest/238457 "2014-01-14T05:05:47Z")

</div>

I’m trying to build a web application for data analysis. The client can send ad-hoc queries to my back-end data service. For example: (foo \>= 10 OR bar == ‘baz’) AND bat \< 10 Is there a rails/activerecord standard for…

---

## [Counter with lambda syntax error](https://www.ruby-forum.com/t/counter-with-lambda-syntax-error/238476)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [January 14, 2014, 4:54am UTC](https://www.ruby-forum.com/t/counter-with-lambda-syntax-error/238476 "2014-01-14T04:54:06Z")

</div>

When I run this exercise: def counter(start) -\>(start) { start++ } end count = counter 0 (1…10).each do |i| puts “#{count.call(i)}\\n” end … I get this error: ex1.rb:2: syntax error, unexpected ‘}’ ex1.rb:8: syn…

---

## [ANN: span v0.1.0](https://www.ruby-forum.com/t/ann-span-v0-1-0/238495)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 6\
**Last updated:** [January 14, 2014, 3:02am UTC](https://www.ruby-forum.com/t/ann-span-v0-1-0/238495 "2014-01-14T03:02:32Z")

</div>

Span: a gem to calculate the calendar-correct difference between two dates http://rubygems.org/gems/span Backstory and motivation: I’d love feedback, code review, and/or bug reports :slight\_smile: Thanks, Ryan

---

## [Modificare le query ActiveRecord](https://www.ruby-forum.com/t/modificare-le-query-activerecord/238463)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [January 14, 2014, 3:01am UTC](https://www.ruby-forum.com/t/modificare-le-query-activerecord/238463 "2014-01-14T03:01:22Z")

</div>

Utilizzo il seguente codice per popolare una tabella contenente un model Movie che a sua volta contiene delle relazioni movies = Movie.order("#{sort\_column}") def sort\_column columns = %w\[created\_at author.name\] col…

---

## [File rename - permision denied](https://www.ruby-forum.com/t/file-rename-permision-denied/238481)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [January 14, 2014, 1:14am UTC](https://www.ruby-forum.com/t/file-rename-permision-denied/238481 "2014-01-14T01:14:59Z")

</div>

Hi I want to change the filename with File.rename but I get “Permission denied” eve if I change the file with File.chmod(-777, “path/filename”) I want to do this, to change the name of the image uploaded by Paperclip…

---

## [ANN: span v0.1.0](https://www.ruby-forum.com/t/ann-span-v0-1-0/238492)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [January 13, 2014, 11:56pm UTC](https://www.ruby-forum.com/t/ann-span-v0-1-0/238492 "2014-01-13T23:56:43Z")

</div>

Span: a gem to calculate the calendar-correct difference between two dates http://rubygems.org/gems/span Backstory and motivation: I’d love feedback, code review, and/or bug reports :slight\_smile: Thanks, Ryan

---

## [Fedora 20 and Boost 1.54](https://www.ruby-forum.com/t/fedora-20-and-boost-1-54/238489)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [January 13, 2014, 9:35pm UTC](https://www.ruby-forum.com/t/fedora-20-and-boost-1-54/238489 "2014-01-13T21:35:07Z")

</div>

Has anybody ran into issues with or had success with installing Gnuradio on Fedora 20 with Boost 1.54? I am currently updating my system from Fedora 19 and Boost 1.53 and am running into build errors on Gnuradio mast…

---

## [QPSK Voice Tx/Rx](https://www.ruby-forum.com/t/qpsk-voice-tx-rx/238490)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [January 13, 2014, 9:30pm UTC](https://www.ruby-forum.com/t/qpsk-voice-tx-rx/238490 "2014-01-13T21:30:53Z")

</div>

Hello, I am working on a real time voice Tx/Rx using GNU Radio as software and a USRP E110. I’m trying to do a QPSK Modulation and I have consulted several models and forums and it seems everything is okay, however at…

---

## [Splitting on a backtick](https://www.ruby-forum.com/t/splitting-on-a-backtick/238488)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [January 13, 2014, 9:12pm UTC](https://www.ruby-forum.com/t/splitting-on-a-backtick/238488 "2014-01-13T21:12:18Z")

</div>

Hi everyone. I am trying to process a text file in which someone used a backtick ( \` ) to separate fields of each line. I can’t seem to “escape” the backtick in my code when trying to use the split() functionali…

---

## [Calculating and compensating the group delay of filters, and channel models](https://www.ruby-forum.com/t/calculating-and-compensating-the-group-delay-of-filters-and-channel-models/238486)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [January 13, 2014, 6:39pm UTC](https://www.ruby-forum.com/t/calculating-and-compensating-the-group-delay-of-filters-and-channel-models/238486 "2014-01-13T18:39:29Z")

</div>

Good morning, I am trying to use the channel models provided by GNU Radio to simulate the behaviour of the BER. I read in this same forum that symmetric filters have a group delay of (N-1)/2, where N is the number of …

---

## [Channel Model omits first 3 samples](https://www.ruby-forum.com/t/channel-model-omits-first-3-samples/235699)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [January 13, 2014, 4:53pm UTC](https://www.ruby-forum.com/t/channel-model-omits-first-3-samples/235699 "2014-01-13T16:53:00Z")

</div>

Hi All, I’ve been working on calculating BER for simulated transmitter/recieved pair and have noticed that the channel\_model eats the first 3 samples. Thus to correctly align the data input and output from channel\_mod…

---

## [Simple reporting gem in rails](https://www.ruby-forum.com/t/simple-reporting-gem-in-rails/238470)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [January 13, 2014, 4:47pm UTC](https://www.ruby-forum.com/t/simple-reporting-gem-in-rails/238470 "2014-01-13T16:47:04Z")

</div>

Hi, I need to generate few basic reports in rails (generated on the basis of some SQLs fired on MySQL) which can be viewed in HTML5 and then if a user wants, he should be able to download a pdf file for the report. C…

---

## [Warble: problem requiring a file](https://www.ruby-forum.com/t/warble-problem-requiring-a-file/238482)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [January 13, 2014, 3:12pm UTC](https://www.ruby-forum.com/t/warble-problem-requiring-a-file/238482 "2014-01-13T15:12:25Z")

</div>

Hi, I’ve developed an application with JRuby, and would like to package it with warbler. I have this structure of directories /bin/dashboard.rb -\> script to be executed /lib/ -\> all jars are in here, some under su…

---

## [Confusion with the setter method return value](https://www.ruby-forum.com/t/confusion-with-the-setter-method-return-value/238399)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 11\
**Last updated:** [January 13, 2014, 2:22pm UTC](https://www.ruby-forum.com/t/confusion-with-the-setter-method-return-value/238399 "2014-01-13T14:22:45Z")

</div>

I was writing some code, and there I found something odd, which made me surprised : class Object def bar #“I got #{@bar}” end def bar=(bar) ‘return’ end end self.bar = 10 # =\> 10 \<~~ why not the value ‘return’,…

---

## [Method explanation](https://www.ruby-forum.com/t/method-explanation/238474)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 6\
**Last updated:** [January 13, 2014, 2:18pm UTC](https://www.ruby-forum.com/t/method-explanation/238474 "2014-01-13T14:18:39Z")

</div>

Hello, This is a beginner question, am going through a book where it gives an example to show encapsulation, however, within the example itself it uses concepts that it hasn’t previously explained properly, leaving me …

---

## [Re: Connecting "PDU to tagged stream" to modulator](https://www.ruby-forum.com/t/re-connecting-pdu-to-tagged-stream-to-modulator/238479)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [January 13, 2014, 1:51pm UTC](https://www.ruby-forum.com/t/re-connecting-pdu-to-tagged-stream-to-modulator/238479 "2014-01-13T13:51:12Z")

</div>

Thanks Martin, The problem with connecting the tagged stream directly to the modulator, is then how do you align bits to the byte boundary etc. after the demodulator, which is the main issue I was thinking with that. …

---

## [Ruby Gold & Platinum Certifications](https://www.ruby-forum.com/t/ruby-gold-platinum-certifications/238478)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [January 13, 2014, 12:13pm UTC](https://www.ruby-forum.com/t/ruby-gold-platinum-certifications/238478 "2014-01-13T12:13:58Z")

</div>

Hi all ! Are these two certifications officially dead ? Thanx, Sébastien

---

## [Fiber ignores ensure clause](https://www.ruby-forum.com/t/fiber-ignores-ensure-clause/238480)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [January 13, 2014, 12:02pm UTC](https://www.ruby-forum.com/t/fiber-ignores-ensure-clause/238480 "2014-01-13T12:02:29Z")

</div>

Задача #595 была обновлена (Yura Sokolov). What about this ticket? Guaranteed ensure inside of Fiber and Fiber.raise (as complement for Thread.raise) will be usefull for full coroutine based environment ala python’s …

---

## [Issue with running rails application on MySQL2 AWS RDS instance](https://www.ruby-forum.com/t/issue-with-running-rails-application-on-mysql2-aws-rds-instance/238477)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [January 13, 2014, 10:51am UTC](https://www.ruby-forum.com/t/issue-with-running-rails-application-on-mysql2-aws-rds-instance/238477 "2014-01-13T10:51:46Z")

</div>

Hi, While trying to access my rails application on AWS, I get following error related to MySQL: Access denied for user ‘aa58hsbjqdy3se’@‘172.31.29.107’ (using password: YES) (Mysql2::Error) /usr/share/ruby/1.9/gem…

---

## [Changing partial without reloading page](https://www.ruby-forum.com/t/changing-partial-without-reloading-page/238469)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [January 13, 2014, 10:20am UTC](https://www.ruby-forum.com/t/changing-partial-without-reloading-page/238469 "2014-01-13T10:20:48Z")

</div>

There is blog. Could you tell me how can I make editable posts and comments just like on Facebook?

---

## [Route name - leggerlo nel controller](https://www.ruby-forum.com/t/route-name-leggerlo-nel-controller/238336)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [January 13, 2014, 10:08am UTC](https://www.ruby-forum.com/t/route-name-leggerlo-nel-controller/238336 "2014-01-13T10:08:29Z")

</div>

Salve a tutti, è possibile leggere, ad esempio in un controller, il nome della route che sis sta utilizzando? Dato che ho una stessa vista, new\_programma, chiamata da due route diverse, software\_url e newprogramma\_ur…

---

## [Connecting "PDU to tagged stream" to modulator](https://www.ruby-forum.com/t/connecting-pdu-to-tagged-stream-to-modulator/238471)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [January 13, 2014, 9:24am UTC](https://www.ruby-forum.com/t/connecting-pdu-to-tagged-stream-to-modulator/238471 "2014-01-13T09:24:41Z")

</div>

Hi, I’m trying to work out the best way to connect a “PDU to tagged stream” block to a modulator. I presume you can’t simply attach the “PDU to tagged stream” directly to a modulator. So I was thinking of doing: T…

---

## [ActiveRecord + self.site dynamic url value](https://www.ruby-forum.com/t/activerecord-self-site-dynamic-url-value/238475)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [January 13, 2014, 8:30am UTC](https://www.ruby-forum.com/t/activerecord-self-site-dynamic-url-value/238475 "2014-01-13T08:30:21Z")

</div>

Hello Everyone, I am using rails 4 version and i am using ActiveRecord to GET and POST data to other rails application. Below is my product model code // product.rb require ‘active\_resource’ class Product \< Active…

---

## [Nginx port for socket.io](https://www.ruby-forum.com/t/nginx-port-for-socket-io/238473)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [January 13, 2014, 5:05am UTC](https://www.ruby-forum.com/t/nginx-port-for-socket-io/238473 "2014-01-13T05:05:51Z")

</div>

I have a node application that uses websockets. I’m using a custom config file like this. However, when I post to the application, the post isn’t appearing in the client side of the application. Since it’s using web…

---

## [Connection reset by peer and other problems](https://www.ruby-forum.com/t/connection-reset-by-peer-and-other-problems/235595)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [January 12, 2014, 2:58pm UTC](https://www.ruby-forum.com/t/connection-reset-by-peer-and-other-problems/235595 "2014-01-12T14:58:19Z")

</div>

Hi guys, I’m getting a lot of errors on logs right now and we’ve already tried everything to solve the problem without success. Everything was running just fine until last week. We use nginx and php-fpm. nginx versi…

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

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