# Latest

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

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

---

## [String gsub returns an empty string, a bug?](https://www.ruby-forum.com/t/string-gsub-returns-an-empty-string-a-bug/246190)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [September 15, 2013, 6:04pm UTC](https://www.ruby-forum.com/t/string-gsub-returns-an-empty-string-a-bug/246190 "2013-09-15T18:04:05Z")

</div>

Why does the first line return an empty string? Is this a bug or a feature? irb(main):001:0\> a = “x”; a.gsub!(“x”,"\\’") =\> “” irb(main):002:0\> a = “x”; a.gsub!(“x”,“y”) =\> “y”

---

## [DateTime now](https://www.ruby-forum.com/t/datetime-now/246220)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [September 15, 2013, 5:45pm UTC](https://www.ruby-forum.com/t/datetime-now/246220 "2013-09-15T17:45:07Z")

</div>

When using DateTime.now, does the “now” method return the time based on the remote OS system time or the local time where the user actually invoked the “now” method, if they are using ssh and running the commands in …

---

## [Getting Started with Ruby - Guide](https://www.ruby-forum.com/t/getting-started-with-ruby-guide/236555)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [September 15, 2013, 4:43pm UTC](https://www.ruby-forum.com/t/getting-started-with-ruby-guide/236555 "2013-09-15T16:43:57Z")

</div>

Hi, I am making the Ruby on Rails Getting Started Guide at: but I have one problem. Almost everything is well explained but at 5.7 and 5.8 there are two commands: post GET /posts/:id(.:format) posts#show p…

---

## [Proper way to update pybombs](https://www.ruby-forum.com/t/proper-way-to-update-pybombs/246227)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [September 15, 2013, 3:07pm UTC](https://www.ruby-forum.com/t/proper-way-to-update-pybombs/246227 "2013-09-15T15:07:58Z")

</div>

How can I update pybombs (to get the latest version and update the recipes) without loosing the information about my gnuradio build? I want to continue to update gnuradio without the need to do a complete rebuild afte…

---

## [Problems running code to read binary in Windows7](https://www.ruby-forum.com/t/problems-running-code-to-read-binary-in-windows7/246222)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 14\
**Last updated:** [September 15, 2013, 1:37pm UTC](https://www.ruby-forum.com/t/problems-running-code-to-read-binary-in-windows7/246222 "2013-09-15T13:37:24Z")

</div>

Hello to all in forum, My first post here, I’m newbie in ruby, maybe somebody could help me with this. I have a script that read/parse a binary file. The scripts works fine if I run it in Ubuntu, but I’m trying to r…

---

## [Gem::FilePermissionError](https://www.ruby-forum.com/t/gem-filepermissionerror/195855)

<div class="topic-metadata">

**Author:** [@arivarasan](https://www.ruby-forum.com/u/arivarasan)\
**Replies:** 3\
**Last updated:** [September 15, 2013, 12:24am UTC](https://www.ruby-forum.com/t/gem-filepermissionerror/195855 "2013-09-15T00:24:26Z")

</div>

while i updating my rails version with command, gem install -v=2.3.8 rails i got, ERROR: While executing gem … (Gem::FilePermissionError) You don’t have write permissions into the /usr/lib/ruby/gems/1.8 directory. …

---

## [Reel 0.4.0: A Celluloid::IO-powered web server for Ruby with streaming and Websockets](https://www.ruby-forum.com/t/reel-0-4-0-a-celluloid-io-powered-web-server-for-ruby-with-streaming-and-websockets/236554)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 0\
**Last updated:** [September 15, 2013, 12:05am UTC](https://www.ruby-forum.com/t/reel-0-4-0-a-celluloid-io-powered-web-server-for-ruby-with-streaming-and-websockets/236554 "2013-09-15T00:05:19Z")

</div>

Reel 0.4.0 (codenamed “Garbo”) is out! You can learn more about it here: Reel is an asynchronous web server based on Celluloid::IO and nio4r which is capable of processing multiple requests concurrently within a sin…

---

## [Guide to Nginx + SSL + SPDY](https://www.ruby-forum.com/t/guide-to-nginx-ssl-spdy/246210)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 10\
**Last updated:** [September 14, 2013, 11:07pm UTC](https://www.ruby-forum.com/t/guide-to-nginx-ssl-spdy/246210 "2013-09-14T23:07:29Z")

</div>

hi list, i recently had to dig deeper into nginx + ssl-setup and came up with a short documentation on how to setup and run nginx as SSL-Gateway/Offload, including SPDY. beside basic configuration this guide covers …

---

## [The HTTP Gem 0.5.0: HTTP (and streaming) should be easy!](https://www.ruby-forum.com/t/the-http-gem-0-5-0-http-and-streaming-should-be-easy/236553)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [September 14, 2013, 8:20pm UTC](https://www.ruby-forum.com/t/the-http-gem-0-5-0-http-and-streaming-should-be-easy/236553 "2013-09-14T20:20:25Z")

</div>

The HTTP Gem provides an easy-to-use JQuery-like chaining API for constructing HTTP requests. It’s similar to the Requests library from Python: gem install http Find it on Github at: GitHub - httprb/http: HTTP (The G…

---

## [How much css do I need to know for becoming a Ruby on Rails Develoepr?](https://www.ruby-forum.com/t/how-much-css-do-i-need-to-know-for-becoming-a-ruby-on-rails-develoepr/236546)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 6\
**Last updated:** [September 14, 2013, 6:04pm UTC](https://www.ruby-forum.com/t/how-much-css-do-i-need-to-know-for-becoming-a-ruby-on-rails-develoepr/236546 "2013-09-14T18:04:18Z")

</div>

I have a bachelor degree in Comp Sci. I know the basics of CSS. I can change fonts, backgrounds, colors, etc but I can not make complex layouts. I am planning to learn Ruby on Rails so I can apply for jobs as a Web A…

---

## [IronRuby with WatiN](https://www.ruby-forum.com/t/ironruby-with-watin/175887)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 18\
**Last updated:** [September 14, 2013, 4:37pm UTC](https://www.ruby-forum.com/t/ironruby-with-watin/175887 "2013-09-14T16:37:51Z")

</div>

Hi, Since, Watir is currently not supported I want to check out WatiN with IronRuby. Yes, I know I can use it with C# but I am interested in using IronRuby. I am getting the following exception: Here is the code: re…

---

## [Importing filter taps from file (GRC 3.7.1)](https://www.ruby-forum.com/t/importing-filter-taps-from-file-grc-3-7-1/246183)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [September 14, 2013, 11:30am UTC](https://www.ruby-forum.com/t/importing-filter-taps-from-file-grc-3-7-1/246183 "2013-09-14T11:30:43Z")

</div>

Can someone help me to discover why I am not able to import filter taps from file? In the attached example, that I am running on GR 3.7.1, I try to import filter taps from a file (via variable\_0) or just typing some …

---

## [How to serve subdomain from subfolder of the domain root?](https://www.ruby-forum.com/t/how-to-serve-subdomain-from-subfolder-of-the-domain-root/236551)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [September 14, 2013, 10:58am UTC](https://www.ruby-forum.com/t/how-to-serve-subdomain-from-subfolder-of-the-domain-root/236551 "2013-09-14T10:58:26Z")

</div>

In a server as server { server\_name domain.com \*.domain.com root /var/www/$server\_name; } is it possible to set locations for subdomains based on subfolders of the $server\_name ? location matching sub1.domain.co…

---

## [Nested Hash AWS API Call](https://www.ruby-forum.com/t/nested-hash-aws-api-call/236544)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [September 13, 2013, 11:44pm UTC](https://www.ruby-forum.com/t/nested-hash-aws-api-call/236544 "2013-09-13T23:44:50Z")

</div>

I am trying to make a call and retrieve meaningful data via the “describe\_instance” method within the Ruby AWS SDK. I’m pretty new to ruby and it seems I’m missing something fundamental about nested hashes…anyway… H…

---

## [Ruby Instance of C# Class Isn't Really the C# Class](https://www.ruby-forum.com/t/ruby-instance-of-c-class-isnt-really-the-c-class/236550)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [September 13, 2013, 11:02pm UTC](https://www.ruby-forum.com/t/ruby-instance-of-c-class-isnt-really-the-c-class/236550 "2013-09-13T23:02:11Z")

</div>

Hi, I have a class defined in C# which I’m creating in Ruby and returning; then C# adds it to an array. It’s simple (honest). My setup is simple: the main project, and a class library called “SharedClasses.” Here’s …

---

## [Having some issues on backend regarding a social networking project on ROR](https://www.ruby-forum.com/t/having-some-issues-on-backend-regarding-a-social-networking-project-on-ror/246221)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 10\
**Last updated:** [September 13, 2013, 8:51pm UTC](https://www.ruby-forum.com/t/having-some-issues-on-backend-regarding-a-social-networking-project-on-ror/246221 "2013-09-13T20:51:19Z")

</div>

I am working on a social networking project. I need to store about 10-15 user profile information like movies,music,books,relationship-status and so on. I am confused about which database should i use to store user p…

---

## [ZenTest 4.9.2 Released](https://www.ruby-forum.com/t/zentest-4-9-2-released/245457)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 6\
**Last updated:** [September 13, 2013, 7:05pm UTC](https://www.ruby-forum.com/t/zentest-4-9-2-released/245457 "2013-09-13T19:05:58Z")

</div>

ZenTest version 4.9.2 has been released! rdoc: http://zentest.rubyforge.org/ZenTest home: https://github.com/seattlerb/zentest ZenTest provides 4 different tools: zentest, unit\_diff, autotest, and multiruby. zente…

---

## [Query part included in location match after rewrite (bug or feature?)](https://www.ruby-forum.com/t/query-part-included-in-location-match-after-rewrite-bug-or-feature/236549)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [September 13, 2013, 4:51pm UTC](https://www.ruby-forum.com/t/query-part-included-in-location-match-after-rewrite-bug-or-feature/236549 "2013-09-13T16:51:52Z")

</div>

Hi, According to documentation, “location” matches only against URI path, ignoring query string. However, after “rewrite”, when using variables containing “?” character (like $request\_uri for illustration), query bec…

---

## [Problem with double slashes in urls with uwsgi and sockets](https://www.ruby-forum.com/t/problem-with-double-slashes-in-urls-with-uwsgi-and-sockets/246235)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [September 13, 2013, 4:27pm UTC](https://www.ruby-forum.com/t/problem-with-double-slashes-in-urls-with-uwsgi-and-sockets/246235 "2013-09-13T16:27:20Z")

</div>

I have python app running under uwsgi with nginx. I’m using unix sockets to connect nginx to uwsgi. My python app is receiving single slashes in urls that originally had a double slash. For example, if the url is ht…

---

## [Having trubl with audio](https://www.ruby-forum.com/t/having-trubl-with-audio/246202)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [September 13, 2013, 3:11pm UTC](https://www.ruby-forum.com/t/having-trubl-with-audio/246202 "2013-09-13T15:11:58Z")

</div>

i get a waterfall with two different devices easily dongle and ensemble ii both work with GRC the problem i’m having is audio … i can’t get an audio sink to work producing live/actual audio on my ubuntu notebook the …

---

## [Having trouble with Getting Started with Rails guide while using ruby2.0.0 with rails 4.0](https://www.ruby-forum.com/t/having-trouble-with-getting-started-with-rails-guide-while-using-ruby2-0-0-with-rails-4-0/236547)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [September 13, 2013, 2:29pm UTC](https://www.ruby-forum.com/t/having-trouble-with-getting-started-with-rails-guide-while-using-ruby2-0-0-with-rails-4-0/236547 "2013-09-13T14:29:54Z")

</div>

About midway through the Getting Started with Rails guide (Getting Started with Rails — Ruby on Rails Guides) I ran into a problem. The problem is in section: “5.7 Showing Posts”. The document describes how to setup …

---

## [Documenting Thread#raise, Thread#kill, and timeout.rb as unsafe](https://www.ruby-forum.com/t/documenting-thread-raise-thread-kill-and-timeout-rb-as-unsafe/236539)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 4\
**Last updated:** [September 13, 2013, 10:09am UTC](https://www.ruby-forum.com/t/documenting-thread-raise-thread-kill-and-timeout-rb-as-unsafe/236539 "2013-09-13T10:09:04Z")

</div>

Please refer to Thread#raise, Thread#kill, and timeout.rb are unsafe - Ruby - Ruby-Forum for background. The consensus in that thread appears to be that Thread#raise, Thread#kill, and timeout.rb are unsafe. Aside from…

---

## [GStreamer error](https://www.ruby-forum.com/t/gstreamer-error/246204)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 4\
**Last updated:** [September 13, 2013, 7:25am UTC](https://www.ruby-forum.com/t/gstreamer-error/246204 "2013-09-13T07:25:12Z")

</div>

Hi guys, I have a problem regarding one of my projects. It’s a decision based story - the audio version. It stopped working and I can’t pinpoint the cause. The code is here: \[1\] The error is this: princ\_audio.rb:34:…

---

## [\-Lprefix/lib](https://www.ruby-forum.com/t/lprefix-lib/246184)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [September 13, 2013, 3:13am UTC](https://www.ruby-forum.com/t/lprefix-lib/246184 "2013-09-13T03:13:27Z")

</div>

Issue #8443 has been updated by nagachika (Tomoyuki C.). r39347 のバックポートははさらに他の変更も引き連れていかないといけないと思うのでしないつもりです。 では少し変更して以下で入れておこうと思います。 Index: configure.in — configure.in (revision 42911) +++ configure.in …

---

## [Event listener with one argument](https://www.ruby-forum.com/t/event-listener-with-one-argument/236362)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 7\
**Last updated:** [September 12, 2013, 11:44pm UTC](https://www.ruby-forum.com/t/event-listener-with-one-argument/236362 "2013-09-12T23:44:00Z")

</div>

Hi, I’m developing an app with JWT (JWt, Java Web Toolkit — Emweb) using Jruby 1.6.3. I have a problem adding a listener taking one argument: I define a signal with one argument \[1\]: @selection\_clicked = Signal1.ne…

---

## [Should "sanitize" return an empty string for non-strings?](https://www.ruby-forum.com/t/should-sanitize-return-an-empty-string-for-non-strings/236535)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 9\
**Last updated:** [September 12, 2013, 9:48pm UTC](https://www.ruby-forum.com/t/should-sanitize-return-an-empty-string-for-non-strings/236535 "2013-09-12T21:48:55Z")

</div>

If, in your view, you are expecting params\[:name\] to be a string, but actually rails has parsed it into {"."=\>“1234”} (or something more malicious), then currently \<%= sanitize(params\[:name\]) %\> blows up because the h…

---

## [Installing Ruby for Windows installer](https://www.ruby-forum.com/t/installing-ruby-for-windows-installer/236502)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 11\
**Last updated:** [September 12, 2013, 9:24pm UTC](https://www.ruby-forum.com/t/installing-ruby-for-windows-installer/236502 "2013-09-12T21:24:58Z")

</div>

I downloaded and installed the Ruby for Windows kit, but I can’t figure out how to open it now. When I go to my Start menu there is some programs, (interactive Ruby, Ruby server) but all they do is open up a command …

---

## [How to use rails runner altogether with bundle install --without development test?](https://www.ruby-forum.com/t/how-to-use-rails-runner-altogether-with-bundle-install-without-development-test/236543)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [September 12, 2013, 9:23pm UTC](https://www.ruby-forum.com/t/how-to-use-rails-runner-altogether-with-bundle-install-without-development-test/236543 "2013-09-12T21:23:47Z")

</div>

In my Capistrano recipes, bundle install --without development test is performed. Then I tried to run a script with: bundle exec rails r scripts/my-script.rb It complained about not finding a development-only gem depe…

---

## [Amplitude array from wav file](https://www.ruby-forum.com/t/amplitude-array-from-wav-file/236540)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [September 12, 2013, 7:47pm UTC](https://www.ruby-forum.com/t/amplitude-array-from-wav-file/236540 "2013-09-12T19:47:51Z")

</div>

How do I get an array of amplitude values ​​from a wav file?

---

## [\[Backport 200 - Backport #8902\]\[Assigned\] backport r42782(super(\*args) in define\_method)](https://www.ruby-forum.com/t/backport-200-backport-8902-assigned-backport-r42782-super-args-in-define-method/246174)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [September 12, 2013, 6:51pm UTC](https://www.ruby-forum.com/t/backport-200-backport-8902-assigned-backport-r42782-super-args-in-define-method/246174 "2013-09-12T18:51:17Z")

</div>

Issue #8902 has been reported by nagachika (Tomoyuki C.). Backport #8902: backport r42782(super(\*args) in define\_method) Author: nagachika (Tomoyuki C.) Status: Assigned Priority: Normal Assignee: nagachika (Tomoy…

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

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