# Latest

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

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

---

## [Read and write to files](https://www.ruby-forum.com/t/read-and-write-to-files/236931)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [October 12, 2013, 6:10pm UTC](https://www.ruby-forum.com/t/read-and-write-to-files/236931 "2013-10-12T18:10:38Z")

</div>

Hi, I want to open a file and then I want to read the first the line, play a bit with it and give a changed line to the same place back. I tried it with for each\_line etc. or while line = gets but I all does not work.…

---

## [An official yum repo for 1.5x](https://www.ruby-forum.com/t/an-official-yum-repo-for-1-5x/246428)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [October 12, 2013, 3:24pm UTC](https://www.ruby-forum.com/t/an-official-yum-repo-for-1-5x/246428 "2013-10-12T15:24:59Z")

</div>

\[nginx\] name=nginx repo baseurl=http://nginx.org/packages/centos/6/$basearch/ gpgcheck=0 enabled=1 Is the 1.4x branch. Is it possible to get an official 1.5x repo? Thanks. Posted at Nginx Forum:

---

## [Dynamically set sample rate](https://www.ruby-forum.com/t/dynamically-set-sample-rate/236892)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [October 12, 2013, 12:57pm UTC](https://www.ruby-forum.com/t/dynamically-set-sample-rate/236892 "2013-10-12T12:57:45Z")

</div>

This might be a trivial question, but I did some searching around and could not find anything. Is there any way to dynamically set the sample rate in a “top\_block” file without stopping the program and restarting it…

---

## [Re: Re: three WMQ gems : Package / Deploy](https://www.ruby-forum.com/t/re-re-three-wmq-gems-package-deploy/236938)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [October 12, 2013, 12:06pm UTC](https://www.ruby-forum.com/t/re-re-three-wmq-gems-package-deploy/236938 "2013-10-12T12:06:20Z")

</div>

Charles, unless you are going to be sshing into the machine hosting the MQ server and doing your work directly on it, I believe you will need to at least install the WMQ clienthttp://pic.dhe.ibm.com/infocenter/wmqv7/…

---

## [Liquid-dsp in gnuradio why?](https://www.ruby-forum.com/t/liquid-dsp-in-gnuradio-why/246429)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [October 12, 2013, 10:27am UTC](https://www.ruby-forum.com/t/liquid-dsp-in-gnuradio-why/246429 "2013-10-12T10:27:00Z")

</div>

Greetings, I notice more an more talk about integration of liquid-dsp into gnuradio and apparently there is already a gr-liquiddsp out of tree module on github. I have known of liquid-dsp for quite some time now. It …

---

## [Gnuradio 3.4.2 and /usr/bin/ld: cannot find -laudio](https://www.ruby-forum.com/t/gnuradio-3-4-2-and-usr-bin-ld-cannot-find-laudio/236937)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [October 12, 2013, 3:03am UTC](https://www.ruby-forum.com/t/gnuradio-3-4-2-and-usr-bin-ld-cannot-find-laudio/236937 "2013-10-12T03:03:32Z")

</div>

im trying of compile gnuradio 3.4.2 and dont work My S.O is ubuntu 12.04 LTS 32 bits and this error is: “read -pthread -pthread -Wl,-soname -Wl,libgnuradio-qtgui-3.4.2.so.0 -o .libs/libgnuradio-qtgui-3.4.2.so.0.0.…

---

## [Httpclient and Microsoft root CA](https://www.ruby-forum.com/t/httpclient-and-microsoft-root-ca/236935)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [October 11, 2013, 11:51pm UTC](https://www.ruby-forum.com/t/httpclient-and-microsoft-root-ca/236935 "2013-10-11T23:51:38Z")

</div>

Really need some direction in getting a solution working. I am using the WinRM ruby gem to invoke commands to Windows boxes over WinRM from Linux servers. This is our requirement. We will be making those WinRM calls…

---

## [QtGui in background or separate thread](https://www.ruby-forum.com/t/qtgui-in-background-or-separate-thread/236934)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [October 11, 2013, 10:29pm UTC](https://www.ruby-forum.com/t/qtgui-in-background-or-separate-thread/236934 "2013-10-11T22:29:49Z")

</div>

Hello, I have a python program that does some signal processing on packets collected with the USRP and flowgraph. Inside the constructor of my python class, I create an instance of mytop-block object. I’m trying to u…

---

## [Ruby and the logging layer](https://www.ruby-forum.com/t/ruby-and-the-logging-layer/236933)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [October 11, 2013, 9:37pm UTC](https://www.ruby-forum.com/t/ruby-and-the-logging-layer/236933 "2013-10-11T21:37:47Z")

</div>

---

## [GnuRadio flowgraphs in workerthread](https://www.ruby-forum.com/t/gnuradio-flowgraphs-in-workerthread/236928)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [October 11, 2013, 9:33pm UTC](https://www.ruby-forum.com/t/gnuradio-flowgraphs-in-workerthread/236928 "2013-10-11T21:33:42Z")

</div>

Hello guys, would it affect the performance of my GNURadio-programm negatively if I tried to run my GNURadio flowgraphs in a workerthread instead of the mainthread. In the mainthread I would like to implement a custom …

---

## [Jruby 1.7.4 not working with Heroku](https://www.ruby-forum.com/t/jruby-1-7-4-not-working-with-heroku/246413)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 6\
**Last updated:** [October 11, 2013, 8:11pm UTC](https://www.ruby-forum.com/t/jruby-1-7-4-not-working-with-heroku/246413 "2013-10-11T20:11:18Z")

</div>

here’s what Heroku spits back when I try to push my app up, Total 16 (delta 0), reused 0 (delta 0) -----\> Ruby/Rack app detected ! ! Invalid RUBY\_VERSION specified: ruby-2.0.0-jruby-1.7.4 ! Valid versions: r…

---

## [How to hide the scripting?](https://www.ruby-forum.com/t/how-to-hide-the-scripting/246434)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [October 11, 2013, 7:58pm UTC](https://www.ruby-forum.com/t/how-to-hide-the-scripting/246434 "2013-10-11T19:58:02Z")

</div>

Hi, After we did the automation using Ruby coding,when we import our code in the client machine, Is there any way to hide our code from users so that Our code would be safe? If the program had been done by C ,then we …

---

## [Log timeouts to access log](https://www.ruby-forum.com/t/log-timeouts-to-access-log/236925)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [October 11, 2013, 7:07pm UTC](https://www.ruby-forum.com/t/log-timeouts-to-access-log/236925 "2013-10-11T19:07:35Z")

</div>

Hi I would like to log an indication of weather a request ended because of a client timeout - in the access.log e.g. log\_format normal '$remote\_addr - $remote\_user \[$time\_local\] ’ '"$request" $status $bytes\_sent ’ ‘…

---

## [Each website with its own fastcgi\_cache\_path](https://www.ruby-forum.com/t/each-website-with-its-own-fastcgi-cache-path/236926)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [October 11, 2013, 6:51pm UTC](https://www.ruby-forum.com/t/each-website-with-its-own-fastcgi-cache-path/236926 "2013-10-11T18:51:48Z")

</div>

Hello guys, I would like to know if it is possible to have multiple fastcgi\_cache\_path / keys\_zone. If I host multiple websites and all share the same keys\_zone, it becomes a problem if I have to purge the cache. I…

---

## [I was told using GPL code is a problem (mongrel) even if not modifying that code](https://www.ruby-forum.com/t/i-was-told-using-gpl-code-is-a-problem-mongrel-even-if-not-modifying-that-code/246433)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [October 11, 2013, 6:39pm UTC](https://www.ruby-forum.com/t/i-was-told-using-gpl-code-is-a-problem-mongrel-even-if-not-modifying-that-code/246433 "2013-10-11T18:39:31Z")

</div>

I was told that we can’t use mongrel with JRuby because mongrel is GPL and based on lawyer language if we include mongrel then our code violates some situation where someone could claim our code should become free. I …

---

## [OT: best solutions for tracking projects and skills needed](https://www.ruby-forum.com/t/ot-best-solutions-for-tracking-projects-and-skills-needed/246391)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [October 11, 2013, 6:30pm UTC](https://www.ruby-forum.com/t/ot-best-solutions-for-tracking-projects-and-skills-needed/246391 "2013-10-11T18:30:45Z")

</div>

I realize this is off-topic, but I’m not sure what forum is best for asking about this. I figure that at least a few of you are involved in civic hacking groups. I recently joined a group that does civic hacking. (A…

---

## [Methods in ruby code](https://www.ruby-forum.com/t/methods-in-ruby-code/236908)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 10\
**Last updated:** [October 11, 2013, 6:02pm UTC](https://www.ruby-forum.com/t/methods-in-ruby-code/236908 "2013-10-11T18:02:39Z")

</div>

Hi, I want to use the shuffle method for array, but I want to modify it a little bit. Is there any website or source where I can see the shuffle method in ruby code, because often in Tutorials they show some of these…

---

## [Again bladerf / gqrx / gr-osmosdr](https://www.ruby-forum.com/t/again-bladerf-gqrx-gr-osmosdr/246407)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 11\
**Last updated:** [October 11, 2013, 5:52pm UTC](https://www.ruby-forum.com/t/again-bladerf-gqrx-gr-osmosdr/246407 "2013-10-11T17:52:45Z")

</div>

Hi, With latest versions of GR / bladerf / gqrx / gr-osmosdr again something is stuck. Gqrx does not work anymore, I get the following error during make: /usr/local/lib/libgnuradio-osmosdr.so: undefined reference to …

---

## [Controlling flowgraph](https://www.ruby-forum.com/t/controlling-flowgraph/246389)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 3\
**Last updated:** [October 11, 2013, 4:42pm UTC](https://www.ruby-forum.com/t/controlling-flowgraph/246389 "2013-10-11T16:42:37Z")

</div>

Hi all guys, I wanted to implement a ask transmitter and a button for triggering transmition of a single frame of data. My idea was to do that with a sort of state machine and a button, but as far as i can see there …

---

## [Apparent external-command hang due to stdin activity](https://www.ruby-forum.com/t/apparent-external-command-hang-due-to-stdin-activity/228844)

<div class="topic-metadata">

**Author:** [@Paul\_Madden](https://www.ruby-forum.com/u/Paul_Madden)\
**Replies:** 1\
**Last updated:** [October 11, 2013, 4:25pm UTC](https://www.ruby-forum.com/t/apparent-external-command-hang-due-to-stdin-activity/228844 "2013-10-11T16:25:03Z")

</div>

I have a strange case where, if I press in the shell where a certain (non-interactive) program is running under JRuby, that program apparently hangs for some indeterminate amount of time. Pressing again somehow allo…

---

## [Question about "extra" header](https://www.ruby-forum.com/t/question-about-extra-header/246411)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [October 11, 2013, 3:31pm UTC](https://www.ruby-forum.com/t/question-about-extra-header/246411 "2013-10-11T15:31:55Z")

</div>

I’m using the file\_meta\_sink to record time-stamped data, and I have a question about the implementation of this block. I currently call it in Python as follows: self.blocks\_file\_meta\_sink\_0 = blocks.file\_meta\_sink(g…

---

## [WIN32OLE inputbox with carriage-returns in the message](https://www.ruby-forum.com/t/win32ole-inputbox-with-carriage-returns-in-the-message/236930)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [October 11, 2013, 3:16pm UTC](https://www.ruby-forum.com/t/win32ole-inputbox-with-carriage-returns-in-the-message/236930 "2013-10-11T15:16:02Z")

</div>

I have a problem using the Windows “Inputbox” function. I’m trying to do what I sometimes do in VBScript to create a multiple-choice scenario within a windowless application. Via the various built-in messagebox / inpu…

---

## [Copy rails association in 2.3 with clone method](https://www.ruby-forum.com/t/copy-rails-association-in-2-3-with-clone-method/236922)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [October 11, 2013, 3:14pm UTC](https://www.ruby-forum.com/t/copy-rails-association-in-2-3-with-clone-method/236922 "2013-10-11T15:14:22Z")

</div>

I have a Reminder model, Attachment Model and it has habtm relationship with each other. So I have a created another table as attachment\_reminders table in mysql through migrations and it has reminder\_id and attachmen…

---

## [View inheritance and rendering in engines](https://www.ruby-forum.com/t/view-inheritance-and-rendering-in-engines/246425)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [October 11, 2013, 3:02pm UTC](https://www.ruby-forum.com/t/view-inheritance-and-rendering-in-engines/246425 "2013-10-11T15:02:40Z")

</div>

Hi I’m creating a mountable admin engine (like Active Admin but not as advanced) using Inherited Resources. Let’s call it AdminFoo. In my main app I mount it with mount AdminFoo::Engine, at: ‘/admin’ in my routes fi…

---

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

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [October 11, 2013, 2:35pm UTC](https://www.ruby-forum.com/t/re-quick-performance-deterioration-when-no-of-clients-increases/236929 "2013-10-11T14:35:12Z")

</div>

Hi Nick, There was a discussion recently that yielded a marked performance difference between smaller and higher levels of gzip compression. I’ll echo the concerns over CPU power and would also suggest trying gzip\_c…

---

## [Re: libusb\_init error](https://www.ruby-forum.com/t/re-libusb-init-error/246406)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [October 11, 2013, 1:27pm UTC](https://www.ruby-forum.com/t/re-libusb-init-error/246406 "2013-10-11T13:27:25Z")

</div>

Discuss-gnuradio mailing list removed\_email\_address@domain.invalid https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

---

## [Libusb\_init error](https://www.ruby-forum.com/t/libusb-init-error/246397)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [October 11, 2013, 1:24pm UTC](https://www.ruby-forum.com/t/libusb-init-error/246397 "2013-10-11T13:24:29Z")

</div>

Discuss-gnuradio mailing list removed\_email\_address@domain.invalid https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

---

## [\[OT\] Codemotion Milano](https://www.ruby-forum.com/t/ot-codemotion-milano/236921)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [October 11, 2013, 1:20pm UTC](https://www.ruby-forum.com/t/ot-codemotion-milano/236921 "2013-10-11T13:20:23Z")

</div>

Ciao a tutti, A fine Novembre ci sar il Codemotion a Milano: http://milano.codemotionworld.com/ Luca

---

## [Deep Hash creation one liner](https://www.ruby-forum.com/t/deep-hash-creation-one-liner/236913)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 5\
**Last updated:** [October 11, 2013, 9:43am UTC](https://www.ruby-forum.com/t/deep-hash-creation-one-liner/236913 "2013-10-11T09:43:07Z")

</div>

I was trying to create a hash { mountain: { river: { tree: 23 } } }using the below : path = \[:mountain, :river, :tree,23\] hash = {} path.each\_cons(2).to\_a.reverse.inject(hash,:\[\]=) =\> ~\> -:3:in \`\[\]=’: wrong number of…

---

## [Access tocken](https://www.ruby-forum.com/t/access-tocken/236918)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [October 11, 2013, 9:19am UTC](https://www.ruby-forum.com/t/access-tocken/236918 "2013-10-11T09:19:49Z")

</div>

hi friends, i am using omni contacts gem for import friends. how to get access token on facebook login using omni-contacts gem Thanks for advance.

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

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