# Latest

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

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

---

## [X a, b = b, a : a, b = a + 1, b + 1](https://www.ruby-forum.com/t/x-a-b-b-a-a-b-a-1-b-1/237331)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [November 6, 2013, 2:57pm UTC](https://www.ruby-forum.com/t/x-a-b-b-a-a-b-a-1-b-1/237331 "2013-11-06T14:57:10Z")

</div>

irb(main):002:0\> a = 1; b = 2; x = true # Ruby 1.9.3 irb(main):022:0\* if x then a, b = b, a else a, b = a + 1, b + 1 end =\> \[2, 1\] irb(main):023:0\> x ? a, b = b, a : a, b = a + 1, b + 1 SyntaxError: (irb):23: synta…

---

## [Converting a tiff image](https://www.ruby-forum.com/t/converting-a-tiff-image/184019)

<div class="topic-metadata">

**Author:** [@mikec](https://www.ruby-forum.com/u/mikec)\
**Replies:** 9\
**Last updated:** [November 6, 2013, 2:49pm UTC](https://www.ruby-forum.com/t/converting-a-tiff-image/184019 "2013-11-06T14:49:33Z")

</div>

Does anyone know of a way to convert an uploaded tiff image into a jpg or png?

---

## [Rails 4 logging during development, surpress asset messages?](https://www.ruby-forum.com/t/rails-4-logging-during-development-surpress-asset-messages/237317)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [November 6, 2013, 2:40pm UTC](https://www.ruby-forum.com/t/rails-4-logging-during-development-surpress-asset-messages/237317 "2013-11-06T14:40:46Z")

</div>

Is it possible to surpress all those asset related messages? I have a terminal open where I run ‘rails s’ and it gets hard to read.

---

## [Error : We're sorry, but something went wrong](https://www.ruby-forum.com/t/error-were-sorry-but-something-went-wrong/168165)

<div class="topic-metadata">

**Author:** [@sachinkale](https://www.ruby-forum.com/u/sachinkale)\
**Replies:** 4\
**Last updated:** [November 6, 2013, 12:50pm UTC](https://www.ruby-forum.com/t/error-were-sorry-but-something-went-wrong/168165 "2013-11-06T12:50:22Z")

</div>

Hi, I create my rails application called ‘demo’, then run ‘script/server’. Browse URL: http://localhost:3000/. It displayes default page ‘Welcome aboard’ page. Then run ‘ruby script/generate controller Say’ command …

---

## [WATIR question](https://www.ruby-forum.com/t/watir-question/237323)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [November 6, 2013, 12:35pm UTC](https://www.ruby-forum.com/t/watir-question/237323 "2013-11-06T12:35:47Z")

</div>

hi, I used the function “$browser.close\_others”, but it throws the below error, C:/Ruby187/lib/ruby/gems/1.8/gems/rautomation-0.7.2/lib/rautomation/adapter/win\_32/functions.rb:319: \[BUG\] Segmentation fault ruby 1.8.7…

---

## [Ruby-exiv2 (exif handling)](https://www.ruby-forum.com/t/ruby-exiv2-exif-handling/69280)

<div class="topic-metadata">

**Author:** [@max-lapshin](https://www.ruby-forum.com/u/max-lapshin)\
**Replies:** 2\
**Last updated:** [November 6, 2013, 12:28pm UTC](https://www.ruby-forum.com/t/ruby-exiv2-exif-handling/69280 "2013-11-06T12:28:18Z")

</div>

Hello. I want to introduce binding from ruby to exiv2 (http:// www.exiv2.org) library. I know, that there are some other exif manipulation libraries, but choice in this situation is good. Currently, it have abilitie…

---

## [\[ruby-trunk - Bug #9088\]\[Open\] SEGV with set\_trace\_func and break](https://www.ruby-forum.com/t/ruby-trunk-bug-9088-open-segv-with-set-trace-func-and-break/237326)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [November 6, 2013, 12:12pm UTC](https://www.ruby-forum.com/t/ruby-trunk-bug-9088-open-segv-with-set-trace-func-and-break/237326 "2013-11-06T12:12:58Z")

</div>

Issue #9088 has been reported by akr (Akira T.). Bug #9088: SEGV with set\_trace\_func and break Author: akr (Akira T.) Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 2.1.0dev (20…

---

## [Define a proxy for Nginx](https://www.ruby-forum.com/t/define-a-proxy-for-nginx/237294)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 8\
**Last updated:** [November 6, 2013, 10:40am UTC](https://www.ruby-forum.com/t/define-a-proxy-for-nginx/237294 "2013-11-06T10:40:40Z")

</div>

Hello, My Nginx servers are behind a proxy. Some PHP apps need to reach external web sites (for RSS feeds for example). I’ve tried this in nginx.conf : env http\_proxy=http://myproxy:port but there is no effect. How…

---

## [Nginx 1.2.7 + Apache2 2.2.24 on Freebsd 9.1 speedtest mini hosting upload speed problem](https://www.ruby-forum.com/t/nginx-1-2-7-apache2-2-2-24-on-freebsd-9-1-speedtest-mini-hosting-upload-speed-problem/237322)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [November 6, 2013, 9:50am UTC](https://www.ruby-forum.com/t/nginx-1-2-7-apache2-2-2-24-on-freebsd-9-1-speedtest-mini-hosting-upload-speed-problem/237322 "2013-11-06T09:50:26Z")

</div>

I have Nginx 1.2.7 + Apache2 2.2.24. Nginx config is default, no buffer sizes changed etc. I moved my speedtest mini host there and got problem with upload speed. Speedtest folder is on RAMdisk, so there is no problem…

---

## [Converting .tiff -to-\> .png?](https://www.ruby-forum.com/t/converting-tiff-to-png/210720)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [November 6, 2013, 9:47am UTC](https://www.ruby-forum.com/t/converting-tiff-to-png/210720 "2013-11-06T09:47:38Z")

</div>

Hello there, I need to scale down a .tiff file and turn it into a .png file. I’ve thought of several options to doing this but as a newbie I’d appreciate if somebody could please provide some direction as to which opt…

---

## [How to resolve mixed character Encodings in ruby?](https://www.ruby-forum.com/t/how-to-resolve-mixed-character-encodings-in-ruby/237321)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [November 6, 2013, 8:30am UTC](https://www.ruby-forum.com/t/how-to-resolve-mixed-character-encodings-in-ruby/237321 "2013-11-06T08:30:22Z")

</div>

I’m learning ruby and try to get the filename from a ftp server. The string I got was encoded in gb2312(simplified Chinese), It’s success in most cases with these codes: str = str.force\_encoding(“gb2312”) str = str.…

---

## [Yahns 0.0.2 - sleepy application server for Ruby](https://www.ruby-forum.com/t/yahns-0-0-2-sleepy-application-server-for-ruby/237319)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [November 6, 2013, 4:33am UTC](https://www.ruby-forum.com/t/yahns-0-0-2-sleepy-application-server-for-ruby/237319 "2013-11-06T04:33:50Z")

</div>

A Free Software, multi-threaded, non-blocking network application server designed for low idle power consumption. It is primarily optimized for applications with occasional users which see little or no traffic. yahns…

---

## [How to avoid global variable?](https://www.ruby-forum.com/t/how-to-avoid-global-variable/237311)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [November 5, 2013, 11:31pm UTC](https://www.ruby-forum.com/t/how-to-avoid-global-variable/237311 "2013-11-05T23:31:51Z")

</div>

Every tutorial I read says global variables are bad, but I’m struggling with the ways to avoid them. In this case (wich actually works), I have 3 files - each having it’s own class and purpose. Class Menu is where pro…

---

## [Oops! Google Chrome could not connect to localhost:3000](https://www.ruby-forum.com/t/oops-google-chrome-could-not-connect-to-localhost-3000/237255)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [November 5, 2013, 10:42pm UTC](https://www.ruby-forum.com/t/oops-google-chrome-could-not-connect-to-localhost-3000/237255 "2013-11-05T22:42:44Z")

</div>

I am a begginer in ROR and using this tutorial:http://ruby.railstutorial.org/chapters/a-demo-app#sec-deploying\_the\_demo\_app to get a head start I got every thing working fine(installation …) but I went to chapter 2 f…

---

## [DEBUG Logger not logging from within block](https://www.ruby-forum.com/t/debug-logger-not-logging-from-within-block/237286)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [November 5, 2013, 8:41pm UTC](https://www.ruby-forum.com/t/debug-logger-not-logging-from-within-block/237286 "2013-11-05T20:41:14Z")

</div>

Dear GNU Radio, If I have a: GR\_LOG\_DEBUG(d\_debug\_logger, ); in my c++ application, the program will write my string to std out in the following format: DEBUG: when executed, or if I step through with GDB.

---

## [DC Nonexistent Peak at Transmitter](https://www.ruby-forum.com/t/dc-nonexistent-peak-at-transmitter/237258)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [November 5, 2013, 8:34pm UTC](https://www.ruby-forum.com/t/dc-nonexistent-peak-at-transmitter/237258 "2013-11-05T20:34:13Z")

</div>

Hi all, I am trying to create a complex cosine signal in 100kHz and transmit it with USRP in 110MHz using WBX daughterboard. I have observed this signal in an oscilloscope and a spectrum analyzer. It can be seen that …

---

## [Can we keep validation in memcached?](https://www.ruby-forum.com/t/can-we-keep-validation-in-memcached/237280)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 23\
**Last updated:** [November 5, 2013, 8:24pm UTC](https://www.ruby-forum.com/t/can-we-keep-validation-in-memcached/237280 "2013-11-05T20:24:17Z")

</div>

Hi All , Can we validate request input data using memcache ? Actually I am facing scenario in which user uploading CSV file which can have hundreds of rows and to validate each row using ActiveRecord taking long time…

---

## [Watir not finding element](https://www.ruby-forum.com/t/watir-not-finding-element/237302)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [November 5, 2013, 7:54pm UTC](https://www.ruby-forum.com/t/watir-not-finding-element/237302 "2013-11-05T19:54:04Z")

</div>

Can ANYONE help me with this problem: (External link for nice formatting) Basically no matter what I do the webdriver refuses to click a JavaScript link.

---

## [Ruby 2.0.0: Keyword Arguments with Hash as first argument](https://www.ruby-forum.com/t/ruby-2-0-0-keyword-arguments-with-hash-as-first-argument/236959)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [November 5, 2013, 6:47pm UTC](https://www.ruby-forum.com/t/ruby-2-0-0-keyword-arguments-with-hash-as-first-argument/236959 "2013-11-05T18:47:19Z")

</div>

I’m not saying this is a bug, but I can’t explain this behavior. I’m just looking for an explanation. If a method accepts a hash as its first argument, and then one or more keyword arguments (with default values) afte…

---

## [Re: The GSoC project on LDPC codes](https://www.ruby-forum.com/t/re-the-gsoc-project-on-ldpc-codes/237309)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [November 5, 2013, 6:40pm UTC](https://www.ruby-forum.com/t/re-the-gsoc-project-on-ldpc-codes/237309 "2013-11-05T18:40:16Z")

</div>

Greetings I was very interested in this project for possible application to the op25 project, since P25 uses several FEC codes including RS and other block codes. I’ve brought up the gr-ldpc library and have a few qu…

---

## [I Love Ruby update](https://www.ruby-forum.com/t/i-love-ruby-update/237308)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [November 5, 2013, 6:22pm UTC](https://www.ruby-forum.com/t/i-love-ruby-update/237308 "2013-11-05T18:22:10Z")

</div>

Hello People, Have added Blocks & Functions section to my free ruby programming book I Love Ruby. Get the latest copy here http://is.gd/ruby\_buk (this is the 2014 edition and is still in beta) Thanks.

---

## [Multiple ssl certificates within single server {} block](https://www.ruby-forum.com/t/multiple-ssl-certificates-within-single-server-block/237306)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [November 5, 2013, 5:59pm UTC](https://www.ruby-forum.com/t/multiple-ssl-certificates-within-single-server-block/237306 "2013-11-05T17:59:56Z")

</div>

Hi I was wondering if there’s any way to have a configuration like this? server { listen 80; listen 443 ssl; ssl\_certificate www.example.com.cer; ssl\_certificate\_key www.example.com.key; …

---

## [Support for relative URL in Location header](https://www.ruby-forum.com/t/support-for-relative-url-in-location-header/237299)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [November 5, 2013, 5:54pm UTC](https://www.ruby-forum.com/t/support-for-relative-url-in-location-header/237299 "2013-11-05T17:54:41Z")

</div>

HTTP status codes such as 201, 301, 302, etc rely on the HTTP Location header. The current standard of HTTP specifies that this URL must be absolute. However, all popular browsers will accept a relative URL, and it is…

---

## [How to add a licence section to source files - Part 1](https://www.ruby-forum.com/t/how-to-add-a-licence-section-to-source-files-part-1/237310)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [November 5, 2013, 5:21pm UTC](https://www.ruby-forum.com/t/how-to-add-a-licence-section-to-source-files-part-1/237310 "2013-11-05T17:21:57Z")

</div>

A couple of years ago I was working on an Android anti-virus scanning project. I enjoyed it tremendously - Android was still in its infancy so the platform was new to us, and we were porting code over from the Symbian…

---

## [BPSK receiver issue](https://www.ruby-forum.com/t/bpsk-receiver-issue/237297)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [November 5, 2013, 3:44pm UTC](https://www.ruby-forum.com/t/bpsk-receiver-issue/237297 "2013-11-05T15:44:22Z")

</div>

Hi all, I am using GR 3.6.5.1 to receive BPSK modulated data from a third party RF chip / microcontroller combination and am having a strange experience. I am implementing a very simple protocol by constantly transmi…

---

## [Generating an XML file](https://www.ruby-forum.com/t/generating-an-xml-file/237289)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [November 5, 2013, 12:28pm UTC](https://www.ruby-forum.com/t/generating-an-xml-file/237289 "2013-11-05T12:28:24Z")

</div>

Hi All, I am reading an excel file and then generating a XML file. I am using the below code. I am using Builder to do soo. Below i thought that as i have a ‘x’ object of builder, i can write it to a yaml file using t…

---

## [\[ruby-trunk - Bug #9072\]\[Open\] test\_weakref.rb failure](https://www.ruby-forum.com/t/ruby-trunk-bug-9072-open-test-weakref-rb-failure/237269)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [November 5, 2013, 11:48am UTC](https://www.ruby-forum.com/t/ruby-trunk-bug-9072-open-test-weakref-rb-failure/237269 "2013-11-05T11:48:57Z")

</div>

Issue #9072 has been reported by akr (Akira T.). Bug #9072: test\_weakref.rb failure Author: akr (Akira T.) Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 2.1.0dev (2013-11-01 tr…

---

## [How to use location before rewrite](https://www.ruby-forum.com/t/how-to-use-location-before-rewrite/237304)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [November 5, 2013, 8:35am UTC](https://www.ruby-forum.com/t/how-to-use-location-before-rewrite/237304 "2013-11-05T08:35:35Z")

</div>

I have a set of rewrite rules as rewrite ^/(.\*) /script.php?file=$1 last; location ~ .php$ { php proxy } but I want to make a few exceptions as location = file1|file2|file3 { static delivery } but rewrite will c…

---

## [Error installing visualruby MacOS X.9 ('Mavericks')](https://www.ruby-forum.com/t/error-installing-visualruby-macos-x-9-mavericks/237301)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [November 5, 2013, 2:46am UTC](https://www.ruby-forum.com/t/error-installing-visualruby-macos-x-9-mavericks/237301 "2013-11-05T02:46:26Z")

</div>

This appears to have come up off and on in this forum, but the responses to the other questions seem mostly centered around Linux or Win. I’ve made it as far as installing visual ruby (‘gem install visualruby’), and c…

---

## [Rounding Error between Python and C++ Blackmanharris Window](https://www.ruby-forum.com/t/rounding-error-between-python-and-c-blackmanharris-window/237285)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [November 4, 2013, 11:42pm UTC](https://www.ruby-forum.com/t/rounding-error-between-python-and-c-blackmanharris-window/237285 "2013-11-04T23:42:07Z")

</div>

Dear GNU Radio, This is most likely a shortcoming of how python handles significant digits, but I wanted to point out that creating a Blackmanharris window in Python and C++ result in different results. In Python: …

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

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