# Latest

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

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

---

## [ActiveRecord's pluck gives an un-ordered list?](https://www.ruby-forum.com/t/activerecords-pluck-gives-an-un-ordered-list/235980)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [July 28, 2013, 2:50am UTC](https://www.ruby-forum.com/t/activerecords-pluck-gives-an-un-ordered-list/235980 "2013-07-28T02:50:21Z")

</div>

Hello all! Background: I have a table consisting of roughly 14k rows running on postgresql. I want to do this in a performance friendly way. y TimedAsset.count (1.6ms) SELECT COUNT(\*) FROM “timed\_assets” — 13982 y…

---

## [Calculate input - numbers](https://www.ruby-forum.com/t/calculate-input-numbers/235979)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [July 28, 2013, 12:17am UTC](https://www.ruby-forum.com/t/calculate-input-numbers/235979 "2013-07-28T00:17:06Z")

</div>

Hi user\_input = $stdin.gets.chomp Now the user types: “5 + 5” As string (without the quotes). user\_input is now a string object containing “5 + 5” I would like to give back the result of the operation, which should…

---

## [Using act as votable](https://www.ruby-forum.com/t/using-act-as-votable/245891)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [July 27, 2013, 11:43pm UTC](https://www.ruby-forum.com/t/using-act-as-votable/245891 "2013-07-27T23:43:59Z")

</div>

I am fairly new to RoR and I am working on a project that is a picture contest. The user will post several pictures and then everyone will be able to vote for the their favorite picture. I have several models at play.…

---

## [Duplex daughter](https://www.ruby-forum.com/t/duplex-daughter/235963)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [July 27, 2013, 3:57pm UTC](https://www.ruby-forum.com/t/duplex-daughter/235963 "2013-07-27T15:57:38Z")

</div>

Hi all, I plan to implement duplex with USRP n210. I have a question whether the SBX daughterboard support duplex on the same band? Like transmit at 2.4GHz and at the same time receive at 2.4GHz. Thanks a lot. Bes…

---

## [JOBS - Developer - Ruby on Rails - Austin, TX](https://www.ruby-forum.com/t/jobs-developer-ruby-on-rails-austin-tx/235981)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [July 27, 2013, 3:26pm UTC](https://www.ruby-forum.com/t/jobs-developer-ruby-on-rails-austin-tx/235981 "2013-07-27T15:26:40Z")

</div>

Developer (Ruby on Rails) Full Time (Permanent role) Austin, TX This role offers you the opportunity to make a direct and powerful impact on the development of the systems and processes that will influence the grow…

---

## [JOBS: Mid-Senior Level Software Engineers at NASA (Ruby on Rails)](https://www.ruby-forum.com/t/jobs-mid-senior-level-software-engineers-at-nasa-ruby-on-rails/245871)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [July 27, 2013, 3:26pm UTC](https://www.ruby-forum.com/t/jobs-mid-senior-level-software-engineers-at-nasa-ruby-on-rails/245871 "2013-07-27T15:26:05Z")

</div>

INNOVIM is seeking candidates for a Senior level software engineer role. The SE will perform development team leadership, operations technical support, software process implementation, and software design and developm…

---

## [Rails 3 - Make a “link to” using selected value from collection select](https://www.ruby-forum.com/t/rails-3-make-a-link-to-using-selected-value-from-collection-select/212983)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [July 27, 2013, 3:26pm UTC](https://www.ruby-forum.com/t/rails-3-make-a-link-to-using-selected-value-from-collection-select/212983 "2013-07-27T15:26:05Z")

</div>

Hello everyone. I have a form in my ruby 1.9.2 rails 3.0.9 app, and one of the fields is a “collection select” like this \<%= f.label :provider\_id, "Provider" %\> \<%= collection\_select( :purchase\_document, :provider\_id…

---

## [What would be a good hosting plan for hosting several Rails projects?](https://www.ruby-forum.com/t/what-would-be-a-good-hosting-plan-for-hosting-several-rails-projects/245810)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 7\
**Last updated:** [July 27, 2013, 3:24pm UTC](https://www.ruby-forum.com/t/what-would-be-a-good-hosting-plan-for-hosting-several-rails-projects/245810 "2013-07-27T15:24:19Z")

</div>

I come from the ASP.NET world where I used to get a shared hosting plan at a host and simply deployed various projects to different folders via FTP, assigning various domain names to each folder. Easy, unlimited diffe…

---

## [About the latest submission of usrp\_spectrum\_sense.py](https://www.ruby-forum.com/t/about-the-latest-submission-of-usrp-spectrum-sense-py/235954)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [July 27, 2013, 2:39pm UTC](https://www.ruby-forum.com/t/about-the-latest-submission-of-usrp-spectrum-sense-py/235954 "2013-07-27T14:39:19Z")

</div>

Dear all, I checked your latest submission of “usrp\_spectrum\_sense.py” and I don’t understand why there is a division of the value of each bin by the sampling rate. Also I don’t understand why there is a subtraction…

---

## [How to create object properties tree ctrl in wxRuby](https://www.ruby-forum.com/t/how-to-create-object-properties-tree-ctrl-in-wxruby/235978)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [July 27, 2013, 1:20pm UTC](https://www.ruby-forum.com/t/how-to-create-object-properties-tree-ctrl-in-wxruby/235978 "2013-07-27T13:20:18Z")

</div>

Has some one created object properties tree ctrl in wxRuby? It means that there should be more than one column int the tree, and we can use checkbox, combobox, button, text ctrl in the same column to render and edit t…

---

## [How to install Ruby 2.0.0 locally - stuck](https://www.ruby-forum.com/t/how-to-install-ruby-2-0-0-locally-stuck/245894)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [July 27, 2013, 1:11pm UTC](https://www.ruby-forum.com/t/how-to-install-ruby-2-0-0-locally-stuck/245894 "2013-07-27T13:11:59Z")

</div>

I previously installed Ruby 1.8.7 locally on my HP-UX Unix system, compiling it without any troubles (following the compilation instructions worked perfectly the first time). I’ve now tried multiple times to do the sa…

---

## [Paperclip aws-s3](https://www.ruby-forum.com/t/paperclip-aws-s3/245889)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [July 27, 2013, 12:54pm UTC](https://www.ruby-forum.com/t/paperclip-aws-s3/245889 "2013-07-27T12:54:44Z")

</div>

hello, Please could anybody help me with this error i get this error after i click upload (pdf)button using ubuntu rails 3.2.13, ruby 1.9.3 paperclip with aws s3 storage settings. Errno::ENOENT in CandidatesControll…

---

## [Concerns vs libraries](https://www.ruby-forum.com/t/concerns-vs-libraries/235931)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [July 27, 2013, 12:28pm UTC](https://www.ruby-forum.com/t/concerns-vs-libraries/235931 "2013-07-27T12:28:26Z")

</div>

Hey guys, I think I might be a little confused but I cant really understand exactly when to separate code into a concern, and when to separate it into a library. What’s the exact difference? Where are they avai…

---

## [Callback function called twice](https://www.ruby-forum.com/t/callback-function-called-twice/226977)

<div class="topic-metadata">

**Author:** [@Nemanja\_S](https://www.ruby-forum.com/u/Nemanja_S)\
**Replies:** 7\
**Last updated:** [July 27, 2013, 9:34am UTC](https://www.ruby-forum.com/t/callback-function-called-twice/226977 "2013-07-27T09:34:57Z")

</div>

Hi again GNURADIOers, I have a set member function which is also used as a callback from GRC. It looks like this: void test\_file\_sink::set\_sensitivity(double milisecond) { d\_n\_samples = (unsigned int)(milisecond\*…

---

## [MacPorts and out-of-tree modules](https://www.ruby-forum.com/t/macports-and-out-of-tree-modules/245893)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [July 27, 2013, 6:46am UTC](https://www.ruby-forum.com/t/macports-and-out-of-tree-modules/245893 "2013-07-27T06:46:40Z")

</div>

Hi, I try to use my out-of-tree modules using OS X 10.8 and the MacPorts version of gnuradio. I’m not very experienced with OS X. Gnuradio itself works well when installed using MacPorts. I configure the out-of-tree …

---

## [Value of def-expr](https://www.ruby-forum.com/t/value-of-def-expr/235976)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [July 27, 2013, 6:45am UTC](https://www.ruby-forum.com/t/value-of-def-expr/235976 "2013-07-27T06:45:30Z")

</div>

Issue #3753 has been updated by matz (Yukihiro M.). Assignee changed from matz (Yukihiro M.) to usa (Usaku NAKAMURA) We accept this change for 2.1 in the developers’ meeting on 2013-07-27. We also think define\_method(…

---

## [ANN Rmldonkey FatJar avaliable](https://www.ruby-forum.com/t/ann-rmldonkey-fatjar-avaliable/235973)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [July 27, 2013, 5:20am UTC](https://www.ruby-forum.com/t/ann-rmldonkey-fatjar-avaliable/235973 "2013-07-27T05:20:12Z")

</div>

Hi Some packaging task have been made and now we have a Fat Jar made using JarSlice(with a little manually task on rb libs because tool limitations) this can be run with the only dependence of JRE 7. The exploratio…

---

## [Ruby & windows - fastest way to get going?, what about devkit as gem?](https://www.ruby-forum.com/t/ruby-windows-fastest-way-to-get-going-what-about-devkit-as-gem/235974)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [July 27, 2013, 3:29am UTC](https://www.ruby-forum.com/t/ruby-windows-fastest-way-to-get-going-what-about-devkit-as-gem/235974 "2013-07-27T03:29:13Z")

</div>

Simple example: ruby on Windows and sqlite. How to install? After some googling you can easily find: gem install --platform=ruby sqlite3 which will then try to compile native code - so you need the devkit. Looking it…

---

## [Mechanize with custom REQUEST to POST](https://www.ruby-forum.com/t/mechanize-with-custom-request-to-post/235972)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [July 27, 2013, 3:23am UTC](https://www.ruby-forum.com/t/mechanize-with-custom-request-to-post/235972 "2013-07-27T03:23:56Z")

</div>

Is there a way in Mechanize to add a few custom fields to the REQUEST before POST? I am trying to write a Ruby Script to simulate Browser call to the server. From the Chrome Developer console, I got this { “log”: { …

---

## [What's the version of Qt for the qtbindings-4.8.3.0-x86-mingw32.gem](https://www.ruby-forum.com/t/whats-the-version-of-qt-for-the-qtbindings-4-8-3-0-x86-mingw32-gem/235975)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [July 27, 2013, 3:23am UTC](https://www.ruby-forum.com/t/whats-the-version-of-qt-for-the-qtbindings-4-8-3-0-x86-mingw32-gem/235975 "2013-07-27T03:23:38Z")

</div>

What’s the version of Qt for the qtbindings-4.8.3.0-x86-mingw32.gem? And how can we use qt’s lupdate and lingiust to do internationalization work?

---

## [Nginx changing settings on the fly?](https://www.ruby-forum.com/t/nginx-changing-settings-on-the-fly/235971)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [July 27, 2013, 2:26am UTC](https://www.ruby-forum.com/t/nginx-changing-settings-on-the-fly/235971 "2013-07-27T02:26:41Z")

</div>

We’re currently using CrossRoads for our load balancing needs and are evaluating a switch to Nginx. We are excited by the existence of a pacemaker/heartbeat ocf script. But one of the needs that we have is that our w…

---

## [PYBOMBS Build Failure](https://www.ruby-forum.com/t/pybombs-build-failure/245855)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [July 26, 2013, 11:20pm UTC](https://www.ruby-forum.com/t/pybombs-build-failure/245855 "2013-07-26T23:20:53Z")

</div>

Hi, I’ve been trying out pybombs for building the latest gnuradio. I had a successful build at home last week, but I am having repeated failures in a test environment VM (virtualbox, ubuntu 12.04 x64). I am running…

---

## [GR 3.4.2 sdcc issue](https://www.ruby-forum.com/t/gr-3-4-2-sdcc-issue/235934)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [July 26, 2013, 9:53pm UTC](https://www.ruby-forum.com/t/gr-3-4-2-sdcc-issue/235934 "2013-07-26T21:53:15Z")

</div>

Hi, To get OpenBTS up and running together with the USRP1 I need gnuradio 3.4.2. These instructions here http://gnuradio.org/redmine/projects/gnuradio/wiki/UsingLibusrpWith3\_5 are a good way to go, did this several …

---

## [Index and location not working together properly?](https://www.ruby-forum.com/t/index-and-location-not-working-together-properly/235966)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [July 26, 2013, 9:51pm UTC](https://www.ruby-forum.com/t/index-and-location-not-working-together-properly/235966 "2013-07-26T21:51:30Z")

</div>

Hi all, Still fighting with my nginx configuration. What I want to achieve. If static file exists in “reseller” root, serve from “reseller” root else if static file file exists in “central” root, then serve from “…

---

## [Sample rate can be greater than external clock rate?](https://www.ruby-forum.com/t/sample-rate-can-be-greater-than-external-clock-rate/245866)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [July 26, 2013, 9:37pm UTC](https://www.ruby-forum.com/t/sample-rate-can-be-greater-than-external-clock-rate/245866 "2013-07-26T21:37:29Z")

</div>

Hi dear all I set my USRP N210 clock to “external clock”, which is a 10MHz signal from GPS. I am wondering that can I set sample rate greater than 10Mhz? Like 25Mhz? I am afraid that if I set sample rate over than …

---

## [Using JRuby to Compare Version Behavior](https://www.ruby-forum.com/t/using-jruby-to-compare-version-behavior/235970)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [July 26, 2013, 8:56pm UTC](https://www.ruby-forum.com/t/using-jruby-to-compare-version-behavior/235970 "2013-07-26T20:56:34Z")

</div>

All - Although I haven’t been using JRuby much recently, I’ve found that in the absence of a native 1.8 install, JRuby is really handy for comparing 1.8 and 1.9 behaviors. I just needed to do this for a gem that use…

---

## [Nginx 1.4.x file upload multipart ecoded](https://www.ruby-forum.com/t/nginx-1-4-x-file-upload-multipart-ecoded/235958)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 6\
**Last updated:** [July 26, 2013, 8:39pm UTC](https://www.ruby-forum.com/t/nginx-1-4-x-file-upload-multipart-ecoded/235958 "2013-07-26T20:39:38Z")

</div>

How I can handle multipart data uploads with the latest nginx release? The good old upload module won^t compile anymore. Posted at Nginx Forum:

---

## [Learning how to create and save .rbs](https://www.ruby-forum.com/t/learning-how-to-create-and-save-rbs/235968)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [July 26, 2013, 7:56pm UTC](https://www.ruby-forum.com/t/learning-how-to-create-and-save-rbs/235968 "2013-07-26T19:56:23Z")

</div>

So I am trying to create and run an .rb, a basic stepping stone. After I typed and saved my .rb it ran like this- irb(main):oo1:0) ruby 01hello.rb Syntax Error: (irb):2: syntax error, unexpected tIDENTIFIER, expecting …

---

## [Can't get http authentication to work](https://www.ruby-forum.com/t/cant-get-http-authentication-to-work/245903)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [July 26, 2013, 7:23pm UTC](https://www.ruby-forum.com/t/cant-get-http-authentication-to-work/245903 "2013-07-26T19:23:39Z")

</div>

Hi, I’m trying to implement HTTP authentication as outlined in this article I went through the early steps in the tutorial where it prompts you to create a password. That was fine. I then added the two auth\_basic and …

---

## [Fwd: How can I add freq. offset(related to time index) after IFFT in data symbol in ofdm example?](https://www.ruby-forum.com/t/fwd-how-can-i-add-freq-offset-related-to-time-index-after-ifft-in-data-symbol-in-ofdm-example/235949)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [July 26, 2013, 7:02pm UTC](https://www.ruby-forum.com/t/fwd-how-can-i-add-freq-offset-related-to-time-index-after-ifft-in-data-symbol-in-ofdm-example/235949 "2013-07-26T19:02:37Z")

</div>

for index = 1:PacketLength PacketWithFreqOffset(index) = Packet(index)exp(i2pifΔSampleRateindex); end So is above implementation in matlab similar to that in Gnuradio? No. GNURadio implementation resembles Simulink…

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

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