# Top

**URL:** https://www.ruby-forum.com/top.md?page=1437

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

---

## [Popup hell - submit & close](https://www.ruby-forum.com/t/popup-hell-submit-close/93135)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 3\
**Last updated:** [April 28, 2007, 7:11pm UTC](https://www.ruby-forum.com/t/popup-hell-submit-close/93135 "2007-04-28T19:11:37Z")

</div>

Hi: I’ve created a popup I’m desperately trying to close. It’s just not working. I’ve got a simple form\_for with a submit tag. I put in an onclick method and that’s not doing it. Can anyone help? Here’s the submit…

---

## [Validation help](https://www.ruby-forum.com/t/validation-help/64035)

<div class="topic-metadata">

**Author:** [@montyman](https://www.ruby-forum.com/u/montyman)\
**Replies:** 3\
**Last updated:** [January 16, 2007, 5:46am UTC](https://www.ruby-forum.com/t/validation-help/64035 "2007-01-16T05:46:35Z")

</div>

I would like to validate a number within a certain range. To first test that a entry is a valid number i use validates\_numericality\_of :my\_number, :message =\>‘sorry, not a number’ to test if the number is within a cer…

---

## [Configure Rails for previous installation of MySQL](https://www.ruby-forum.com/t/configure-rails-for-previous-installation-of-mysql/71418)

<div class="topic-metadata">

**Author:** [@jkpalmer52](https://www.ruby-forum.com/u/jkpalmer52)\
**Replies:** 3\
**Last updated:** [October 10, 2006, 5:07am UTC](https://www.ruby-forum.com/t/configure-rails-for-previous-installation-of-mysql/71418 "2006-10-10T05:07:29Z")

</div>

I’m “exploring” Ruby and Ruby on Rails. Like what I see so far, but have one question. How do I configure Rails for a previous installation of Apache and MySQL? I already have both products installed working to my n…

---

## [Segfaulting at rebiuild\_index](https://www.ruby-forum.com/t/segfaulting-at-rebiuild-index/99257)

<div class="topic-metadata">

**Author:** [@michael](https://www.ruby-forum.com/u/michael)\
**Replies:** 3\
**Last updated:** [July 31, 2006, 11:45am UTC](https://www.ruby-forum.com/t/segfaulting-at-rebiuild-index/99257 "2006-07-31T11:45:20Z")

</div>

Hello, I can’t figure out how to get acts\_as\_ferret to stop segfaulting. Every time i run a query on my server (rails 1.1.4 and ferret .9.4 and aaf from svn) I get a segfault ./script/…/config/…/vendor/plugins/acts\_a…

---

## [Different layouts between list and view pages?](https://www.ruby-forum.com/t/different-layouts-between-list-and-view-pages/96503)

<div class="topic-metadata">

**Author:** [@kyleh](https://www.ruby-forum.com/u/kyleh)\
**Replies:** 3\
**Last updated:** [June 29, 2006, 9:29pm UTC](https://www.ruby-forum.com/t/different-layouts-between-list-and-view-pages/96503 "2006-06-29T21:29:30Z")

</div>

I’m using the demo site to help me port my Typo site into Radiant. To make this even more complicated I’m retrofitting the popular Hemingway theme for my needs. Because this theme has a different view for the detail …

---

## [Navigation between DB Items with active Record](https://www.ruby-forum.com/t/navigation-between-db-items-with-active-record/61104)

<div class="topic-metadata">

**Author:** [@alain](https://www.ruby-forum.com/u/alain)\
**Replies:** 3\
**Last updated:** [May 20, 2006, 4:01pm UTC](https://www.ruby-forum.com/t/navigation-between-db-items-with-active-record/61104 "2006-05-20T16:01:13Z")

</div>

Hi, I am having troubles to figure out how to move from one record to the other without using \<find\_by\_sql\> or other ugly tricks. So far, I have managed to do a lot of stuff without it but I decided that I need to le…

---

## [Store user id in session or find user id](https://www.ruby-forum.com/t/store-user-id-in-session-or-find-user-id/94313)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 3\
**Last updated:** [April 28, 2006, 7:50pm UTC](https://www.ruby-forum.com/t/store-user-id-in-session-or-find-user-id/94313 "2006-04-28T19:50:19Z")

</div>

Hi Im uisng the lgoin generatior that as far as I can tell stores the username in session. I have another table that i need to store the id of the user who creates an entry. (the logged in user) Is it possible to st…

---

## [Session management](https://www.ruby-forum.com/t/session-management/56651)

<div class="topic-metadata">

**Author:** [@mschipperheyn](https://www.ruby-forum.com/u/mschipperheyn)\
**Replies:** 3\
**Last updated:** [April 10, 2006, 4:27pm UTC](https://www.ruby-forum.com/t/session-management/56651 "2006-04-10T16:27:21Z")

</div>

Does anyone have any information on using X session management in Ruby-Gtk2? I’m really just trying to get my app to start automaticly in Gnome or KDE, without having to explicitly say so. I have looked though some …

---

## [Rails 1.1, Markaby, options\_from\_collection](https://www.ruby-forum.com/t/rails-1-1-markaby-options-from-collection/56394)

<div class="topic-metadata">

**Author:** [@bdaily](https://www.ruby-forum.com/u/bdaily)\
**Replies:** 3\
**Last updated:** [March 30, 2006, 11:34pm UTC](https://www.ruby-forum.com/t/rails-1-1-markaby-options-from-collection/56394 "2006-03-30T23:34:50Z")

</div>

Last night, I upgraded one of my rails apps to 1.1. This app uses Markaby exclusively for its’ views, and once I checked out the latest revisiong of Markaby (r33), everything was working fine except for one thing: se…

---

## [What is the point of require\_gem in Ruby 1.8.2?](https://www.ruby-forum.com/t/what-is-the-point-of-require-gem-in-ruby-1-8-2/55769)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 3\
**Last updated:** [March 24, 2006, 12:23am UTC](https://www.ruby-forum.com/t/what-is-the-point-of-require-gem-in-ruby-1-8-2/55769 "2006-03-24T00:23:24Z")

</div>

I just went through this mess over the last few hours… http://www.ruby-forum.com/topic/59185 If I do: require\_gem ‘gemname’, ‘\>= version’ I discovered that require\_gem doesn’t actually do the “require” call on the 1…

---

## [Need script: convert html-text to text](https://www.ruby-forum.com/t/need-script-convert-html-text-to-text/51611)

<div class="topic-metadata">

**Author:** [@keal](https://www.ruby-forum.com/u/keal)\
**Replies:** 3\
**Last updated:** [January 4, 2006, 12:00pm UTC](https://www.ruby-forum.com/t/need-script-convert-html-text-to-text/51611 "2006-01-04T12:00:43Z")

</div>

i have html-text. i have to convert this text to simple text without html-tags.

---

## [Writing .raw audio](https://www.ruby-forum.com/t/writing-raw-audio/245033)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [August 27, 2016, 2:00am UTC](https://www.ruby-forum.com/t/writing-raw-audio/245033 "2016-08-27T02:00:36Z")

</div>

I have a simple noise generator that I’d like to output to .raw audio format using ruby. The bitrate, arbitrarily chosen, is 48,000 and the samples are 16 bit signed integers. But I am having trouble coming up with th…

---

## [Viterbi.c, integer overflow at cumulative metric](https://www.ruby-forum.com/t/viterbi-c-integer-overflow-at-cumulative-metric/230946)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [July 14, 2014, 3:03pm UTC](https://www.ruby-forum.com/t/viterbi-c-integer-overflow-at-cumulative-metric/230946 "2014-07-14T15:03:39Z")

</div>

Hi all, I noticed that in viterbi.c when input symbol pair quality is good, branch metrics ‘mets\[ \]’ maximum value is 512. In case of errorless input symbols, this causes cumulative metric increase by 512 for the bes…

---

## [Limit\_conn\_zone applied to Proxy\_Pass (outgoing requests)](https://www.ruby-forum.com/t/limit-conn-zone-applied-to-proxy-pass-outgoing-requests/230779)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [July 4, 2014, 11:20am UTC](https://www.ruby-forum.com/t/limit-conn-zone-applied-to-proxy-pass-outgoing-requests/230779 "2014-07-04T11:20:26Z")

</div>

Hello! I have an nginx reverse proxy it has a series of filters against DDoS attacks. As a last resort I need to make sure that I NEVER send more than x concurrent requests to the backend server (Proxy\_pass) Is it p…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/241133)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [May 14, 2014, 11:17am UTC](https://www.ruby-forum.com/t/no-subject/241133 "2014-05-14T11:17:22Z")

</div>

I am confused about the terms full duplex and half duplex in context of USRP…If i am using two antennas attached on the same channel on B210(one on TX/RX and other on RX2).I am Rxing through one antenna and retransmi…

---

## [Facing content-type issue with try\_files](https://www.ruby-forum.com/t/facing-content-type-issue-with-try-files/240828)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [May 8, 2014, 6:40am UTC](https://www.ruby-forum.com/t/facing-content-type-issue-with-try-files/240828 "2014-05-08T06:40:35Z")

</div>

Hello, To serve static contents i.e. images I use try\_files directive of Nginx. My configuration location block is as below. location ~\* \\.(jpg|jpeg|png|gif)$ { try\_files $request\_uri @missingImg; } @missingImg …

---

## [Proxy cache passes GET instead of HEAD to upstream](https://www.ruby-forum.com/t/proxy-cache-passes-get-instead-of-head-to-upstream/239162)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [February 17, 2014, 2:44pm UTC](https://www.ruby-forum.com/t/proxy-cache-passes-get-instead-of-head-to-upstream/239162 "2014-02-17T14:44:47Z")

</div>

I’m trying to figure out how to get Nginx to proxy cache HEAD requests as HEAD requests and I can’t find any info on google. Basically, I have an upstream server in another datacenter, far away, that I am proxying r…

---

## [Hello](https://www.ruby-forum.com/t/hello/238069)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [December 15, 2013, 4:26pm UTC](https://www.ruby-forum.com/t/hello/238069 "2013-12-15T16:26:19Z")

</div>

Hello, I have a nginx server is enabled. And I have a file called htaccess The file should cause to allowing accessed only from Israel. But the file does not work, I realized that it is related to nginx only. What c…

---

## [Compressed page streams detection and optimization](https://www.ruby-forum.com/t/compressed-page-streams-detection-and-optimization/246175)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [September 12, 2013, 4:36pm UTC](https://www.ruby-forum.com/t/compressed-page-streams-detection-and-optimization/246175 "2013-09-12T16:36:18Z")

</div>

Hello, I have a website serving a number of different PHP based applications. Some of them natively serve their own gzipped pages, others only serve compressed HTML but uncompressed .css and .js files, others don’t c…

---

## [Nginx internal server errors static files first load only?](https://www.ruby-forum.com/t/nginx-internal-server-errors-static-files-first-load-only/236012)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [July 30, 2013, 11:26pm UTC](https://www.ruby-forum.com/t/nginx-internal-server-errors-static-files-first-load-only/236012 "2013-07-30T23:26:23Z")

</div>

Hi Guys, Got a strange issue happening, I do my coding on Windows 8 x64 using Sublime Text 2.0.2, my sites run of a Ubuntu 13.04 VirtualBox guest over a bridged adaptor connection. Weird thing happens, if I save a …

---

## [Auth\_basic "pass through"](https://www.ruby-forum.com/t/auth-basic-pass-through/223202)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [September 26, 2012, 3:12am UTC](https://www.ruby-forum.com/t/auth-basic-pass-through/223202 "2012-09-26T03:12:43Z")

</div>

I’m having trouble setting up nginx in front of tomcat to handle ssl and reverse proxy/caching. Basically the webapp behind nginx uses http authentication (browser prompts, not a webpage login), and I think what’s hap…

---

## [Nginx\_cross\_origin\_module on nginx-1.2.1](https://www.ruby-forum.com/t/nginx-cross-origin-module-on-nginx-1-2-1/222794)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [September 17, 2012, 5:52pm UTC](https://www.ruby-forum.com/t/nginx-cross-origin-module-on-nginx-1-2-1/222794 "2012-09-17T17:52:54Z")

</div>

Hi, We are trying to implement cross origin resource sharing protocol on our system. I just want to try nginx\_cross\_origin\_module and see how it work instead of add\_header approach. The issue is I can’t see the CORS …

---

## [Error\_page, try\_files, internal redirect ends up in SIGSEGV](https://www.ruby-forum.com/t/error-page-try-files-internal-redirect-ends-up-in-sigsegv/219121)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [April 21, 2012, 9:56am UTC](https://www.ruby-forum.com/t/error-page-try-files-internal-redirect-ends-up-in-sigsegv/219121 "2012-04-21T09:56:59Z")

</div>

Hello, I’m facing a SIGSEGV when trying to setup a custom error page using the following (shortened for the sake of debugging) configuration. /etc/nginx/sites-available/example.com: server { listen 80; server\_name e…

---

## [Portare un'applicazione a i18n](https://www.ruby-forum.com/t/portare-unapplicazione-a-i18n/218937)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [April 17, 2012, 2:04pm UTC](https://www.ruby-forum.com/t/portare-unapplicazione-a-i18n/218937 "2012-04-17T14:04:27Z")

</div>

Ciao a tutti! Ho ereditato un’applicazione Rails 3.0.x abbastanza grossa (5k LOC e quasi 9K linee di view) che è stata sviluppata senza usare l’internazionalizzazione. All’epoca non era un requisito e quindi non ci ha…

---

## [Range in a loop](https://www.ruby-forum.com/t/range-in-a-loop/216585)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [February 9, 2012, 1:18pm UTC](https://www.ruby-forum.com/t/range-in-a-loop/216585 "2012-02-09T13:18:10Z")

</div>

Hello everyone, I have this code. You type in a number and then it identifies whether it is odd or even. When it identifies an odd number, it will multiply it by three plus one. When It identifies an even number, it …

---

## [\[ruby-trunk - Bug #5790\]\[Open\] net/http の EOFError と Keep-Alive](https://www.ruby-forum.com/t/ruby-trunk-bug-5790-open-net-http-eoferror-keep-alive/215108)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [December 27, 2011, 2:06am UTC](https://www.ruby-forum.com/t/ruby-trunk-bug-5790-open-net-http-eoferror-keep-alive/215108 "2011-12-27T02:06:06Z")

</div>

Issue #5790 has been reported by Yui NARUSE. Bug #5790: net/http の EOFError と Keep-Alive Author: Yui NARUSE Status: Open Priority: Normal Assignee: Category: Target version: 2.0.0 ruby -v: ruby 2.0.0dev (2011-1…

---

## [Ld search path on mac os x](https://www.ruby-forum.com/t/ld-search-path-on-mac-os-x/213377)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [October 31, 2011, 9:28pm UTC](https://www.ruby-forum.com/t/ld-search-path-on-mac-os-x/213377 "2011-10-31T21:28:40Z")

</div>

Hi list, I’m trying to build gnu radio from source on a MacOSX 10.6, using MacPorts. I tried both with the git master tree and the 3.4.2 tarball, and both fail at the same point: linking fails in volk/lib with “libra…

---

## [How to run a configure script from ruby and check for errors](https://www.ruby-forum.com/t/how-to-run-a-configure-script-from-ruby-and-check-for-errors/212766)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [October 13, 2011, 4:04pm UTC](https://www.ruby-forum.com/t/how-to-run-a-configure-script-from-ruby-and-check-for-errors/212766 "2011-10-13T16:04:27Z")

</div>

Hi. Let’s say I have a GNU autoconfigure based program like htop: http://dfn.dl.sourceforge.net/sourceforge/htop/htop-0.9.tar.gz Ok, I downloaded it and extract it. Then I change to the extracted archive and run: re…

---

## [Issues trying to create an Array with org.openrdf.model.Resource\[\]](https://www.ruby-forum.com/t/issues-trying-to-create-an-array-with-org-openrdf-model-resource/209698)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [July 21, 2011, 2:36pm UTC](https://www.ruby-forum.com/t/issues-trying-to-create-an-array-with-org-openrdf-model-resource/209698 "2011-07-21T14:36:40Z")

</div>

Hi I am trying to create an array of org.openrdf.model.Resource\[\], but am unable to. e.g. eval java\_import ‘org.openrdf.model.Resource’ eval Resource Java::OrgOpenrdfModel::Resource eval \[URIImpl.new(’ h…

---

## [I18n centralized admin panel for all rails application](https://www.ruby-forum.com/t/i18n-centralized-admin-panel-for-all-rails-application/226217)

<div class="topic-metadata">

**Author:** [@BurebistaSS](https://www.ruby-forum.com/u/BurebistaSS)\
**Replies:** 2\
**Last updated:** [April 26, 2011, 6:04pm UTC](https://www.ruby-forum.com/t/i18n-centralized-admin-panel-for-all-rails-application/226217 "2011-04-26T18:04:24Z")

</div>

Hi all! I was wondering how people manage their application translations ? I found solutions like tolk gem that will provide Web UI, but that will work only if you have Active Record/db in your application. Also, tolk …

---

## [Rake tasks run with jruby are much slower than that run with ruby](https://www.ruby-forum.com/t/rake-tasks-run-with-jruby-are-much-slower-than-that-run-with-ruby/202524)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [January 31, 2011, 10:27pm UTC](https://www.ruby-forum.com/t/rake-tasks-run-with-jruby-are-much-slower-than-that-run-with-ruby/202524 "2011-01-31T22:27:06Z")

</div>

For example if I do jruby -S rake db:create it takes about 30 seconds, while ruby rake db:create is immediate.

---

## [Rspec2, rails 3, subdomain constraints](https://www.ruby-forum.com/t/rspec2-rails-3-subdomain-constraints/199639)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 2\
**Last updated:** [November 30, 2010, 12:34am UTC](https://www.ruby-forum.com/t/rspec2-rails-3-subdomain-constraints/199639 "2010-11-30T00:34:38Z")

</div>

I’m trying to constrain access to admin routes in my application to either www or canonical. I need the custom constraint in root\_domain.rb (RootDomain) to handle the canonical part. Since the subdomains will represen…

---

## [IronRuby MVC sample](https://www.ruby-forum.com/t/ironruby-mvc-sample/169776)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 2\
**Last updated:** [June 17, 2009, 9:42am UTC](https://www.ruby-forum.com/t/ironruby-mvc-sample/169776 "2009-06-17T09:42:25Z")

</div>

Hi I’ve built a small sample app over the weekend that uses IronRuby MVC. I tested it running on cassini/webdev server and IIS in both cases it works fine. The SQLite dll included in the dependencies is a 64-bit dll…

---

## [Upload file via browser](https://www.ruby-forum.com/t/upload-file-via-browser/169504)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 2\
**Last updated:** [June 4, 2009, 5:31pm UTC](https://www.ruby-forum.com/t/upload-file-via-browser/169504 "2009-06-04T17:31:50Z")

</div>

I want to write a program to let people upload files to my computer via a browser (www.mydomain.tld/upload) - what do I need in order to write this code? Do I need to use RoR (I think RoR would be an overkill in this …

---

## [Gem install ruby-debug](https://www.ruby-forum.com/t/gem-install-ruby-debug/164894)

<div class="topic-metadata">

**Author:** [@dang](https://www.ruby-forum.com/u/dang)\
**Replies:** 2\
**Last updated:** [April 7, 2009, 3:04pm UTC](https://www.ruby-forum.com/t/gem-install-ruby-debug/164894 "2009-04-07T15:04:57Z")

</div>

tinix@Creek:/home/tinix/test/grin# gem install ruby-debug Building native extensions. This could take a while… ERROR: Error installing ruby-debug: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extco…

---

## [Compiling ruby on Windows 7 x64](https://www.ruby-forum.com/t/compiling-ruby-on-windows-7-x64/161987)

<div class="topic-metadata">

**Author:** [@swozniak](https://www.ruby-forum.com/u/swozniak)\
**Replies:** 2\
**Last updated:** [March 7, 2009, 1:15am UTC](https://www.ruby-forum.com/t/compiling-ruby-on-windows-7-x64/161987 "2009-03-07T01:15:44Z")

</div>

I’ve been trying to compile newest 1.9.1-p0 ruby on windows 7 x64 but no success. Steps I have followed so far. I have installed Visual Studio 2005 I have installed Microsoft Platform SDK I have launched Visual Studi…

---

## [Help translating C# socket code equivalent Ruby socket code](https://www.ruby-forum.com/t/help-translating-c-socket-code-equivalent-ruby-socket-code/158971)

<div class="topic-metadata">

**Author:** [@kamaljeetsinghsaini](https://www.ruby-forum.com/u/kamaljeetsinghsaini)\
**Replies:** 2\
**Last updated:** [January 30, 2009, 5:04am UTC](https://www.ruby-forum.com/t/help-translating-c-socket-code-equivalent-ruby-socket-code/158971 "2009-01-30T05:04:44Z")

</div>

Possible to help in translating the following C# socket code to Ruby socket code please. What specific socket code lines needs to do following task. using System.Net.Sockets; Socket clientSock; clientSock = new Sock…

---

## [An RSpec Model Example](https://www.ruby-forum.com/t/an-rspec-model-example/153250)

<div class="topic-metadata">

**Author:** [@torm3nt](https://www.ruby-forum.com/u/torm3nt)\
**Replies:** 2\
**Last updated:** [November 25, 2008, 4:26pm UTC](https://www.ruby-forum.com/t/an-rspec-model-example/153250 "2008-11-25T16:26:55Z")

</div>

Testing is currently my hobby, it’s just something I LOVE doing, watching all the code be tested automagically… I dunno, kinda helps me sleep at night. A lot of people (including myself) seem to have trouble with test…

---

## [Should\_receive working in before(:each) but not in example](https://www.ruby-forum.com/t/should-receive-working-in-before-each-but-not-in-example/148903)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 2\
**Last updated:** [September 18, 2008, 5:46am UTC](https://www.ruby-forum.com/t/should-receive-working-in-before-each-but-not-in-example/148903 "2008-09-18T05:46:57Z")

</div>

Hi there, I’m striking a wee problem - and haven’t been able to figure it out. In my before statement I’m setting up a mock video. I’d like one of my examples to check that original= and save! are being called on …

---

## [Duda sobre calendar\_date\_select](https://www.ruby-forum.com/t/duda-sobre-calendar-date-select/144391)

<div class="topic-metadata">

**Author:** [@admon](https://www.ruby-forum.com/u/admon)\
**Replies:** 2\
**Last updated:** [August 1, 2008, 11:00am UTC](https://www.ruby-forum.com/t/duda-sobre-calendar-date-select/144391 "2008-08-01T11:00:33Z")

</div>

Tengo un problema y no se como resolverlo. Estoy utilizando el plugin CalendarDateSelect. Lo utilizo en el layout de la siguiente forma: \<%= calendar\_date\_select\_tag “e\_date”, nil, :embedded =\> true, :year\_range =\> 0.…

---

## [Rails 2.0 vs 2.1](https://www.ruby-forum.com/t/rails-2-0-vs-2-1/141821)

<div class="topic-metadata">

**Author:** [@trancos123](https://www.ruby-forum.com/u/trancos123)\
**Replies:** 2\
**Last updated:** [June 30, 2008, 8:22pm UTC](https://www.ruby-forum.com/t/rails-2-0-vs-2-1/141821 "2008-06-30T20:22:10Z")

</div>

Saludos Tengo pensado reescribir un proyecto que esta desarrollado en rails 1.2.6, con que version lo hariais la 2.0 o la 2.1? Me preocupa especialmente el tema de los plugins… ha sido uno de los motivos para hacer e…

---

## [Array#index / Enumerable#find\_index](https://www.ruby-forum.com/t/array-index-enumerable-find-index/137502)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [May 14, 2008, 5:01am UTC](https://www.ruby-forum.com/t/array-index-enumerable-find-index/137502 "2008-05-14T05:01:33Z")

</div>

Array#index e$B$He(B Enumerable#find\_index e$B$,$+$V$C$F$$$k$N$G$9$,!“e(B Enumerable#index e$B$,$”$l$Pe(B Enumerable#find\_index e$B$OITMW$@$H;W$&$N$G$9$,!"e(B e$B$$$+$,$G$7$g$&$+!)e(B a = %w\[a b C D e\] a.index {|x|…

---

## [Json =\> hash in Ruby](https://www.ruby-forum.com/t/json-hash-in-ruby/135832)

<div class="topic-metadata">

**Author:** [@martin](https://www.ruby-forum.com/u/martin)\
**Replies:** 2\
**Last updated:** [April 25, 2008, 7:23pm UTC](https://www.ruby-forum.com/t/json-hash-in-ruby/135832 "2008-04-25T19:23:39Z")

</div>

Hi everyone, I would like to decode a json string and transform it into a hash in ruby. I tried json = “{“userid” : “21”, “friendid” : “9”}” hash = ActiveSupport::JSON.decode(json) puts hash\[:userid\] however, this…

---

## [Succ question of ip addr string](https://www.ruby-forum.com/t/succ-question-of-ip-addr-string/126444)

<div class="topic-metadata">

**Author:** [@ak756](https://www.ruby-forum.com/u/ak756)\
**Replies:** 2\
**Last updated:** [January 18, 2008, 4:07pm UTC](https://www.ruby-forum.com/t/succ-question-of-ip-addr-string/126444 "2008-01-18T16:07:21Z")

</div>

Hi I have a ip addr string as “192.168.000.000”, I use succ! method to get the next ip addr string. It works for the first 255 times but when ip reachs “192.168.000.255”, the succ! returns “192.168.000.256” but what I …

---

## [Gsub and regexes on binary files](https://www.ruby-forum.com/t/gsub-and-regexes-on-binary-files/126347)

<div class="topic-metadata">

**Author:** [@kyle\_s](https://www.ruby-forum.com/u/kyle_s)\
**Replies:** 2\
**Last updated:** [January 18, 2008, 12:05am UTC](https://www.ruby-forum.com/t/gsub-and-regexes-on-binary-files/126347 "2008-01-18T00:05:03Z")

</div>

I’m having a few issues with gsubbing a regex on a binary file. With all text, this seems to work great, but with the binary junk in a file, only some of the instances are replaced, not all. What this script is suppos…

---

## [Digest Auth and Mongrel](https://www.ruby-forum.com/t/digest-auth-and-mongrel/120323)

<div class="topic-metadata">

**Author:** [@barsalou](https://www.ruby-forum.com/u/barsalou)\
**Replies:** 2\
**Last updated:** [November 16, 2007, 6:40pm UTC](https://www.ruby-forum.com/t/digest-auth-and-mongrel/120323 "2007-11-16T18:40:38Z")

</div>

If I have a low volume application and I want to use DigestAuth to limit access to the site, is it possible to do this with just mongrel/mongrel\_cluster? I’m thinking I’m going to have to include Apache to make this w…

---

## [501 Bad address syntax:: when using Action Mailer](https://www.ruby-forum.com/t/501-bad-address-syntax-when-using-action-mailer/112873)

<div class="topic-metadata">

**Author:** [@wmerydith](https://www.ruby-forum.com/u/wmerydith)\
**Replies:** 2\
**Last updated:** [October 27, 2007, 11:52am UTC](https://www.ruby-forum.com/t/501-bad-address-syntax-when-using-action-mailer/112873 "2007-10-27T11:52:02Z")

</div>

Trying to debug a mail problem. We’re seeing the error “501 Bad address syntax” when trying to send mail. Our mail is hosted by Dreamhost and our config is as follows: ACTIVATION\_EMAIL\_ADDRESS = “removed\_email\_addre…

---

## [Calling VB6 dll from Ruby](https://www.ruby-forum.com/t/calling-vb6-dll-from-ruby/113284)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [August 29, 2007, 3:45pm UTC](https://www.ruby-forum.com/t/calling-vb6-dll-from-ruby/113284 "2007-08-29T15:45:43Z")

</div>

I am trying to use a VB6 dll created by another programmer from Ruby. To see what was I opened it in Visual Studio’s object browser. It has a series of classes with their methods and properties. I want to acess the Lo…

---

## [Qt::QFileDialog problem](https://www.ruby-forum.com/t/qt-qfiledialog-problem/107386)

<div class="topic-metadata">

**Author:** [@olbrich](https://www.ruby-forum.com/u/olbrich)\
**Replies:** 2\
**Last updated:** [June 22, 2007, 12:18am UTC](https://www.ruby-forum.com/t/qt-qfiledialog-problem/107386 "2007-06-22T00:18:58Z")

</div>

Please read the thread I made here: http://forums.gentoo.org/viewtopic-t-566375.html If more details are required let me know.

---

## [Functional test failure and errors in application mode](https://www.ruby-forum.com/t/functional-test-failure-and-errors-in-application-mode/105492)

<div class="topic-metadata">

**Author:** [@avathartri](https://www.ruby-forum.com/u/avathartri)\
**Replies:** 2\
**Last updated:** [May 30, 2007, 4:57pm UTC](https://www.ruby-forum.com/t/functional-test-failure-and-errors-in-application-mode/105492 "2007-05-30T16:57:19Z")

</div>

When in application mode and running the functional tests, I’m getting a failure and some errors. It seems the tests are having problems instantiating the BasicExtensionController. I’ve attached a log of the output …

[Previous page](https://www.ruby-forum.com/top.md?page=1436&per_page=50)

[Next page](https://www.ruby-forum.com/top.md?page=1438&per_page=50)
