# Top

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

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

---

## [Challenging SQL for you](https://www.ruby-forum.com/t/challenging-sql-for-you/94568)

<div class="topic-metadata">

**Author:** [@BA\_Baracus](https://www.ruby-forum.com/u/BA_Baracus)\
**Replies:** 6\
**Last updated:** [May 7, 2006, 6:55pm UTC](https://www.ruby-forum.com/t/challenging-sql-for-you/94568 "2006-05-07T18:55:17Z")

</div>

Gents, My heads been out of the sql game for too long (or it’s simply too early). I’m trying to extend the acts\_as\_taggable plugin (note: not gem) so that you can specify a list of tags you’re interested in, and the …

---

## [Self-modifying rails model](https://www.ruby-forum.com/t/self-modifying-rails-model/49382)

<div class="topic-metadata">

**Author:** [@eddiewould](https://www.ruby-forum.com/u/eddiewould)\
**Replies:** 6\
**Last updated:** [December 3, 2005, 10:26pm UTC](https://www.ruby-forum.com/t/self-modifying-rails-model/49382 "2005-12-03T22:26:52Z")

</div>

Hi, I want to write a rails application which is being used for querying a research database. It would be nice if the users (at least admin users) could add extra paramaters (variables) to the database, as time progre…

---

## [RVM script has to be run?](https://www.ruby-forum.com/t/rvm-script-has-to-be-run/261135)

<div class="topic-metadata">

**Author:** [@PaulGureghian](https://www.ruby-forum.com/u/PaulGureghian)\
**Replies:** 2\
**Last updated:** [March 19, 2021, 2:18am UTC](https://www.ruby-forum.com/t/rvm-script-has-to-be-run/261135 "2021-03-19T02:18:46Z")

</div>

Do I always have to run the RVM script to get Ruby loaded in it’s interpreter shell ?

---

## [Difference between Exception.exception and Exception.new](https://www.ruby-forum.com/t/difference-between-exception-exception-and-exception-new/243944)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [January 28, 2016, 8:47am UTC](https://www.ruby-forum.com/t/difference-between-exception-exception-and-exception-new/243944 "2016-01-28T08:47:45Z")

</div>

Is there a difference between Exception.exception(…) and Exception.new(…)? From the documentation, they seem to do exactly the same.

---

## [Changing GUI Sink block params on the fly from a custom C++ block?](https://www.ruby-forum.com/t/changing-gui-sink-block-params-on-the-fly-from-a-custom-c-block/234647)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [March 19, 2015, 3:53pm UTC](https://www.ruby-forum.com/t/changing-gui-sink-block-params-on-the-fly-from-a-custom-c-block/234647 "2015-03-19T15:53:37Z")

</div>

Hello GNU Radio’ers, I have a GRC flowgraph with a custom C++ block that feeds a stream of vectors of floats to the QT GUI Vector Sink. Which particular internal vector of floats gets streamed out of the custom C++ bl…

---

## [Finding records either side of a reference](https://www.ruby-forum.com/t/finding-records-either-side-of-a-reference/233349)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [December 7, 2014, 10:35am UTC](https://www.ruby-forum.com/t/finding-records-either-side-of-a-reference/233349 "2014-12-07T10:35:22Z")

</div>

I have a simple problem that I am sure has a simple answer, but my brain will not produce the answer. I have a table (segments) that has a start\_time field. Given a specific time I want to find the last segment with …

---

## [Question about Plotting the Spectrum(Power against frequency) with usrp\_sense.py](https://www.ruby-forum.com/t/question-about-plotting-the-spectrum-power-against-frequency-with-usrp-sense-py/233176)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [November 24, 2014, 3:39pm UTC](https://www.ruby-forum.com/t/question-about-plotting-the-spectrum-power-against-frequency-with-usrp-sense-py/233176 "2014-11-24T15:39:25Z")

</div>

Question about the spectrum plot of the usr\_sense.py: I have modified the old usrp\_spectrum\_sense.py to fit the latest version of gnuradio, and now I can run the program and export the m.data into a txt file, I wonde…

---

## [Changing trace or background colour in the QT GUI scope](https://www.ruby-forum.com/t/changing-trace-or-background-colour-in-the-qt-gui-scope/231023)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [July 17, 2014, 5:43pm UTC](https://www.ruby-forum.com/t/changing-trace-or-background-colour-in-the-qt-gui-scope/231023 "2014-07-17T17:43:26Z")

</div>

Hello, Is there a way to change the colour of the trace or background in the QT GUI scope? Thanks, John

---

## [The http output chain is empty bug (nginx lua module)](https://www.ruby-forum.com/t/the-http-output-chain-is-empty-bug-nginx-lua-module/230248)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 2\
**Last updated:** [June 6, 2014, 12:37pm UTC](https://www.ruby-forum.com/t/the-http-output-chain-is-empty-bug-nginx-lua-module/230248 "2014-06-06T12:37:56Z")

</div>

nginx \>= 1.5.7 nginx-lua-module \>= 0.9.8 (possibly older version) CentOS 6 ./sbin/nginx -V nginx version: nginx/1.5.7 built by gcc 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) configure arguments: --add-module=…/lua-ngin…

---

## [Looping through tar file](https://www.ruby-forum.com/t/looping-through-tar-file/239110)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [February 12, 2014, 2:04pm UTC](https://www.ruby-forum.com/t/looping-through-tar-file/239110 "2014-02-12T14:04:45Z")

</div>

Hi, I want to loop through foo.tgz file using the Minitar gem. When I run my script through Ruby on Rails console the following code will print entire file names no matter how long they are, but when I run the same c…

---

## [Watir/Ruby : How to click on a text in dropdown in Ruby/Watir](https://www.ruby-forum.com/t/watir-ruby-how-to-click-on-a-text-in-dropdown-in-ruby-watir/238776)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [January 30, 2014, 12:34am UTC](https://www.ruby-forum.com/t/watir-ruby-how-to-click-on-a-text-in-dropdown-in-ruby-watir/238776 "2014-01-30T00:34:05Z")

</div>

I am using the WATIR-Ruby for my Web Application. I am currently facing an issue clicking on a text element that is populated dynamically when a search bar is partially/completely filled with text. The code is unable …

---

## [Proxy to upstream HTTPS server \*without\* any keys/certs in nginx](https://www.ruby-forum.com/t/proxy-to-upstream-https-server-without-any-keys-certs-in-nginx/246274)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [September 25, 2013, 4:58pm UTC](https://www.ruby-forum.com/t/proxy-to-upstream-https-server-without-any-keys-certs-in-nginx/246274 "2013-09-25T16:58:19Z")

</div>

Hello, We are researching which tools would allow us to do what is described in the subject. After searching the archives here and in other places like stackoverflow, there seems to be conflicting info on whether th…

---

## [Using http\_limit\_conn with a custom variable](https://www.ruby-forum.com/t/using-http-limit-conn-with-a-custom-variable/234969)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [May 22, 2013, 4:36pm UTC](https://www.ruby-forum.com/t/using-http-limit-conn-with-a-custom-variable/234969 "2013-05-22T16:36:00Z")

</div>

Hi, We’re trying to use the limit\_conn\_zone directive to throttle incoming HTTP requests. We’d like to throttle based on the http basic auth variable ($remote\_user), however, we must do processing on this value so th…

---

## [Cross-Compile Ruby with OpenSSL for Angstrom Linux?](https://www.ruby-forum.com/t/cross-compile-ruby-with-openssl-for-angstrom-linux/215828)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [January 17, 2012, 2:27pm UTC](https://www.ruby-forum.com/t/cross-compile-ruby-with-openssl-for-angstrom-linux/215828 "2012-01-17T14:27:24Z")

</div>

Hello, (attention, newbie, if there is a better forum, please tell me) i want to cross-compile an up-to-date version of Ruby for Angstrom Linux with OpenSSL support. Has someone already done this ? Build machine is a…

---

## [How to Send ESC commands to a DOT MATRIX printer in Ruby on Rails?](https://www.ruby-forum.com/t/how-to-send-esc-commands-to-a-dot-matrix-printer-in-ruby-on-rails/215467)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [January 6, 2012, 1:36am UTC](https://www.ruby-forum.com/t/how-to-send-esc-commands-to-a-dot-matrix-printer-in-ruby-on-rails/215467 "2012-01-06T01:36:07Z")

</div>

Guys I need your help. I need to print RAW data to format the settings of the printer. The below data are my example of RAW data… ! HELLO WORLD chr(27) + ‘!’ + chr( 1) ! HELLO WORLD chr(27) + ‘!’ + chr( 2) ! HELLO…

---

## [Ricerca in una sottostringa](https://www.ruby-forum.com/t/ricerca-in-una-sottostringa/212596)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [October 18, 2011, 10:51am UTC](https://www.ruby-forum.com/t/ricerca-in-una-sottostringa/212596 "2011-10-18T10:51:48Z")

</div>

Ciao, vorrei eseguire una ricerca in un campo stringa/test nel db, del tipo “cognome che contiene ‘etti’”. Purtroppo ogni database ha la sua particolare sintassi per compiere query su sottostringhe, nel caso di MySQL…

---

## [Specifying which spec types helper modules get included into in the RSpec.configure block](https://www.ruby-forum.com/t/specifying-which-spec-types-helper-modules-get-included-into-in-the-rspec-configure-block/192593)

<div class="topic-metadata">

**Author:** [@S\_Bennett](https://www.ruby-forum.com/u/S_Bennett)\
**Replies:** 2\
**Last updated:** [August 16, 2010, 6:55am UTC](https://www.ruby-forum.com/t/specifying-which-spec-types-helper-modules-get-included-into-in-the-rspec-configure-block/192593 "2010-08-16T06:55:48Z")

</div>

Hi folks, Using Rails 3.0.0.rc & RSpec 2.0.0.beta.19 I’m trying to specify what type of specs helper modules get included into such as below: config.include Devise::TestHelpers, :type =\> :controller When I run the c…

---

## [Errno::EINVAL](https://www.ruby-forum.com/t/errno-einval/175058)

<div class="topic-metadata">

**Author:** [@preethi](https://www.ruby-forum.com/u/preethi)\
**Replies:** 2\
**Last updated:** [September 7, 2009, 8:27am UTC](https://www.ruby-forum.com/t/errno-einval/175058 "2009-09-07T08:27:36Z")

</div>

Hi , I’m getting this error “Errno::EINVAL in Home#home\_page” where home\_page contains periodic\_remote\_call The error is shown in the line \<%= myblogpost\_homepage.created\_at.strftime ‘%d’ %\>\<%= date\_to\_ordinal(mybl…

---

## [Finding Process Name using Window Handle](https://www.ruby-forum.com/t/finding-process-name-using-window-handle/162422)

<div class="topic-metadata">

**Author:** [@anukulsinghal](https://www.ruby-forum.com/u/anukulsinghal)\
**Replies:** 2\
**Last updated:** [March 10, 2009, 4:31am UTC](https://www.ruby-forum.com/t/finding-process-name-using-window-handle/162422 "2009-03-10T04:31:56Z")

</div>

Hi, In my project, I have a requirement to work with any client application which I need to kill (if an instance exists) before invoking a fresh instance. Currently, I have hardcoded the name of the process to termin…

---

## [Constant name resolution and module\_eval](https://www.ruby-forum.com/t/constant-name-resolution-and-module-eval/120370)

<div class="topic-metadata">

**Author:** [@fxn](https://www.ruby-forum.com/u/fxn)\
**Replies:** 2\
**Last updated:** [November 16, 2007, 11:26am UTC](https://www.ruby-forum.com/t/constant-name-resolution-and-module-eval/120370 "2007-11-16T11:26:06Z")

</div>

I’m trying to understand well the rules for constant name resolution. By now what I have is: (1) A constant is first looked up in the current module, then recursively in its mixins (ancestors). Then go up to the pare…

---

## [Ncurses and Mac OS X](https://www.ruby-forum.com/t/ncurses-and-mac-os-x/116688)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 2\
**Last updated:** [October 8, 2007, 9:19pm UTC](https://www.ruby-forum.com/t/ncurses-and-mac-os-x/116688 "2007-10-08T21:19:32Z")

</div>

Hey all After a ncurses error while using sup (mail client in ruby) \[error follows\]: The problem was: ‘couldn’t initialize curses color pair 4, 0 (key 1)’ (error type ArgumentError) A backtrace follows: /usr/local/…

---

## [Attribute Ordering in REXML](https://www.ruby-forum.com/t/attribute-ordering-in-rexml/89298)

<div class="topic-metadata">

**Author:** [@caritos](https://www.ruby-forum.com/u/caritos)\
**Replies:** 2\
**Last updated:** [March 19, 2007, 1:04pm UTC](https://www.ruby-forum.com/t/attribute-ordering-in-rexml/89298 "2007-03-19T13:04:42Z")

</div>

Is there any way of specify the order of the attributes in REXML. I can’t find any way of doing this in the documentation. The two methods that I found “add\_attribute(key, value=nil)” and “add\_attributes(hash)” provi…

---

## [ActiveRecord + Postgres + \\000 = BOOM](https://www.ruby-forum.com/t/activerecord-postgres-000-boom/84275)

<div class="topic-metadata">

**Author:** [@robinluckey](https://www.ruby-forum.com/u/robinluckey)\
**Replies:** 2\
**Last updated:** [February 3, 2007, 5:22am UTC](https://www.ruby-forum.com/t/activerecord-postgres-000-boom/84275 "2007-02-03T05:22:59Z")

</div>

We’ve been seeing some queries against our Rails website which include the “\\000” character in some string params. I don’t know if these are malicious or not, but Postgres does not like them at all, and ActiveRecord d…

---

## [Best way to access directory relational to current file](https://www.ruby-forum.com/t/best-way-to-access-directory-relational-to-current-file/83645)

<div class="topic-metadata">

**Author:** [@philswenson](https://www.ruby-forum.com/u/philswenson)\
**Replies:** 2\
**Last updated:** [January 28, 2007, 2:29pm UTC](https://www.ruby-forum.com/t/best-way-to-access-directory-relational-to-current-file/83645 "2007-01-28T14:29:28Z")

</div>

I’m trying to find the full path to a file. File.dirname(FILE) always returns “.”, which doesn’t really do me any good. The working directory is not always the same as where the file is, so I can’t use the “.” in any…

---

## [Killing a windows process](https://www.ruby-forum.com/t/killing-a-windows-process/73922)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 2\
**Last updated:** [November 10, 2006, 6:49am UTC](https://www.ruby-forum.com/t/killing-a-windows-process/73922 "2006-11-10T06:49:21Z")

</div>

Hi, I’m starting a bunch of processes using win32/process (http://rubyforge.org/projects/win32utils/). I want to be able to kill some of those processes. In \*nix, I’d send them a TERM signal. What’s the Windows equ…

---

## [Login engine not working](https://www.ruby-forum.com/t/login-engine-not-working/102010)

<div class="topic-metadata">

**Author:** [@isaacrtree](https://www.ruby-forum.com/u/isaacrtree)\
**Replies:** 2\
**Last updated:** [August 15, 2006, 2:16pm UTC](https://www.ruby-forum.com/t/login-engine-not-working/102010 "2006-08-15T14:16:44Z")

</div>

I had another Linux installation on which I had both the Login and User engines working perfectly. Then, I copied the entire Rails folder (including /vendor/plugins off root which included all my plugins) to a differe…

---

## [How to get builder 2.0 to escape attributes in rxml](https://www.ruby-forum.com/t/how-to-get-builder-2-0-to-escape-attributes-in-rxml/98429)

<div class="topic-metadata">

**Author:** [@digitalpodcast](https://www.ruby-forum.com/u/digitalpodcast)\
**Replies:** 2\
**Last updated:** [July 22, 2006, 9:56pm UTC](https://www.ruby-forum.com/t/how-to-get-builder-2-0-to-escape-attributes-in-rxml/98429 "2006-07-22T21:56:51Z")

</div>

I am using rxml to produce opml files and need to escape ampersands in the attributes. builder 2.0 docs found at http://builder.rubyforge.org/ show the following xml = Builder::XmlMarkup.new xml.sample(:escaped=\>“Th…

---

## [Sdgasdg](https://www.ruby-forum.com/t/sdgasdg/96006)

<div class="topic-metadata">

**Author:** [@SSSSSSSSS](https://www.ruby-forum.com/u/SSSSSSSSS)\
**Replies:** 2\
**Last updated:** [June 22, 2006, 10:44am UTC](https://www.ruby-forum.com/t/sdgasdg/96006 "2006-06-22T10:44:04Z")

</div>

æ?ºé?¿ç??å¤§å??æ?©å??

---

## [Anybody using Macromedia's Flex with Rails?](https://www.ruby-forum.com/t/anybody-using-macromedias-flex-with-rails/60010)

<div class="topic-metadata">

**Author:** [@larrywright](https://www.ruby-forum.com/u/larrywright)\
**Replies:** 2\
**Last updated:** [May 9, 2006, 3:25pm UTC](https://www.ruby-forum.com/t/anybody-using-macromedias-flex-with-rails/60010 "2006-05-09T15:25:27Z")

</div>

Yeah I know this is a bit of a weird question since everybody seems to be going ajax - just curious

---

## [Metar Weather Grabber](https://www.ruby-forum.com/t/metar-weather-grabber/57778)

<div class="topic-metadata">

**Author:** [@supasta](https://www.ruby-forum.com/u/supasta)\
**Replies:** 2\
**Last updated:** [April 14, 2006, 4:14am UTC](https://www.ruby-forum.com/t/metar-weather-grabber/57778 "2006-04-14T04:14:10Z")

</div>

I don’t want to pay money to get weather feeds from a bunch of different countries. So I took my hand at writing my own. It is for an ajax service that grabs the XML. If you use this, expand on it. If you expand on…

---

## [Embed engine view in app view?](https://www.ruby-forum.com/t/embed-engine-view-in-app-view/55910)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 2\
**Last updated:** [March 25, 2006, 10:56am UTC](https://www.ruby-forum.com/t/embed-engine-view-in-app-view/55910 "2006-03-25T10:56:46Z")

</div>

Hi, I would to know of to have my app inserting an engine generated html (view ? string ?) Eg. the main page of the web needs to display the last messages of a forum engine. The forum engine have to retrieve the data…

---

## [Scaffold to existing SQL Server database](https://www.ruby-forum.com/t/scaffold-to-existing-sql-server-database/233610)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [December 30, 2014, 7:00pm UTC](https://www.ruby-forum.com/t/scaffold-to-existing-sql-server-database/233610 "2014-12-30T19:00:31Z")

</div>

Hello all, I’m rather new to RoR and I’m checking if RoR is the way to go in my scenario. I’ve got a Client/Server application built on top of SQL Server with some Win32 screens. We would want to build a Web version…

---

## [Ruby code on Chef as a "ruby\_block" not working](https://www.ruby-forum.com/t/ruby-code-on-chef-as-a-ruby-block-not-working/237351)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [November 7, 2013, 6:28pm UTC](https://www.ruby-forum.com/t/ruby-code-on-chef-as-a-ruby-block-not-working/237351 "2013-11-07T18:28:17Z")

</div>

Hi Ruby hackers, I have very limited knowledge of the Ruby programming language, however, I need to implement on Chef (check-solo) something similar to “augeas” (which works with Puppet, but here I need a solution for…

---

## [Net:SSH , how to give password for Sudo commands](https://www.ruby-forum.com/t/net-ssh-how-to-give-password-for-sudo-commands/219948)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [May 22, 2012, 10:10pm UTC](https://www.ruby-forum.com/t/net-ssh-how-to-give-password-for-sudo-commands/219948 "2012-05-22T22:10:11Z")

</div>

I am using net/ssh (script) to SSH into an ubuntu box and install a package using sudo apt-get install xyz Currently when I run script err i see is: sudo: no tty present and no askpass program specified Issue is how …

---

## [Slower with multiple threads--expected?](https://www.ruby-forum.com/t/slower-with-multiple-threads-expected/190050)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 1\
**Last updated:** [October 11, 2010, 6:37pm UTC](https://www.ruby-forum.com/t/slower-with-multiple-threads-expected/190050 "2010-10-11T18:37:58Z")

</div>

Hi. I noticed that this code: for i in 1…10000000 do; end when run in two threads, like gist:435159 · GitHub takes 12.764s when run on a dual core machine, whereas if you run only one of the two threads, it takes …

---

## [wxAuiTabCtrl is not supported](https://www.ruby-forum.com/t/wxauitabctrl-is-not-supported/184778)

<div class="topic-metadata">

**Author:** [@night\_stalker](https://www.ruby-forum.com/u/night_stalker)\
**Replies:** 1\
**Last updated:** [March 23, 2010, 9:31pm UTC](https://www.ruby-forum.com/t/wxauitabctrl-is-not-supported/184778 "2010-03-23T21:31:24Z")

</div>

When calling AuiNotebook#children, I got an error: Error wrapping object: class wxAuiTabCtrl is not supported in wxRuby It’s exactly the object I want to set\_tool\_tip on. I don’t know how to use swig, I tried the foll…

---

## [Writing data to RS232 from gnuradio](https://www.ruby-forum.com/t/writing-data-to-rs232-from-gnuradio/154665)

<div class="topic-metadata">

**Author:** [@teka\_yemane](https://www.ruby-forum.com/u/teka_yemane)\
**Replies:** 1\
**Last updated:** [December 2, 2008, 8:18pm UTC](https://www.ruby-forum.com/t/writing-data-to-rs232-from-gnuradio/154665 "2008-12-02T20:18:37Z")

</div>

hello! I need to write data to a hardware attached to my PC using the serial interface. I am going to do this from gnuradio in windows using cygwin…can anyone give me a little hand on this pls? thanks, teka yemane

---

## ["Some String \\xAE".to\_json gives an illegal/malformed error?](https://www.ruby-forum.com/t/some-string-xae-to-json-gives-an-illegal-malformed-error/118231)

<div class="topic-metadata">

**Author:** [@blackie](https://www.ruby-forum.com/u/blackie)\
**Replies:** 1\
**Last updated:** [October 25, 2007, 1:05am UTC](https://www.ruby-forum.com/t/some-string-xae-to-json-gives-an-illegal-malformed-error/118231 "2007-10-25T01:05:49Z")

</div>

Call me crazy, but I must be missing some fundamental understanding here. From what I can read on the JSON gem located here (http:// json.rubyforge.org/) this should be working but I’m getting a JSON::GeneratorError…

---

## [Sensing keyboard and mouse?](https://www.ruby-forum.com/t/sensing-keyboard-and-mouse/112614)

<div class="topic-metadata">

**Author:** [@arun](https://www.ruby-forum.com/u/arun)\
**Replies:** 1\
**Last updated:** [August 21, 2007, 6:12pm UTC](https://www.ruby-forum.com/t/sensing-keyboard-and-mouse/112614 "2007-08-21T18:12:11Z")

</div>

I want to interrupt something, when the user presses a key, or clicks the mouse. The only solution for the keyboard I could come with, seems overkill: a=0 th=Thread.new {loop{a=STDIN.getc}} loop do a=0 sleep (1) …

---

## [Net::Netrc 0.1.0](https://www.ruby-forum.com/t/net-netrc-0-1-0/50359)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 1\
**Last updated:** [December 17, 2005, 2:45pm UTC](https://www.ruby-forum.com/t/net-netrc-0-1-0/50359 "2005-12-17T14:45:13Z")

</div>

Net::Netrc is a pure Ruby module providing ftp(1)-compatible .netrc file parsing. Available as a RubyGem: gem install net-netrc or via the project site at http://net-netrc.rubyforge.org

---

## [Someone else is misusing my email adress](https://www.ruby-forum.com/t/someone-else-is-misusing-my-email-adress/230128)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 4\
**Last updated:** [June 2, 2014, 10:27pm UTC](https://www.ruby-forum.com/t/someone-else-is-misusing-my-email-adress/230128 "2014-06-02T22:27:52Z")

</div>

Hello, Today I saw that I have a lot of spam emails where my adress is used. But im sure I did not send it. I will investigate how my email (removed\_email\_address@domain.invalid) is mis used. Roelof

---

## [Debian Jessie update](https://www.ruby-forum.com/t/debian-jessie-update/230040)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 4\
**Last updated:** [May 28, 2014, 11:31am UTC](https://www.ruby-forum.com/t/debian-jessie-update/230040 "2014-05-28T11:31:54Z")

</div>

Hi, I am not able to run GRC after updating my Debian Jessie. (apt-get update, apt-get dist-upgrade, apt-get autoremove) I am using Debian jessie. Before this GRC run well. user1@pc1: ~ $ gnuradio-config-info -v gn…

---

## [Nginx.exe has encountered a problem and needs to close. (SSL)](https://www.ruby-forum.com/t/nginx-exe-has-encountered-a-problem-and-needs-to-close-ssl/239288)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [February 20, 2014, 9:15pm UTC](https://www.ruby-forum.com/t/nginx-exe-has-encountered-a-problem-and-needs-to-close-ssl/239288 "2014-02-20T21:15:32Z")

</div>

I have configured the server to accept SSL connections and after two or three requests always gives the error: nginx.exe has encountered a problem and needs to close. Restart server does not work, the first request fa…

---

## [Nginx-1.5.3](https://www.ruby-forum.com/t/nginx-1-5-3/236011)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [August 3, 2013, 6:55pm UTC](https://www.ruby-forum.com/t/nginx-1-5-3/236011 "2013-08-03T18:55:26Z")

</div>

Changes with nginx 1.5.3 30 Jul 2013 \*) Change in internal API: now u-\>length defaults to -1 if working with backends in unbuffered mode. \*) Change: now after receiving an in…

---

## [GeoCoder for two different models](https://www.ruby-forum.com/t/geocoder-for-two-different-models/212767)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [February 3, 2012, 11:16am UTC](https://www.ruby-forum.com/t/geocoder-for-two-different-models/212767 "2012-02-03T11:16:45Z")

</div>

Hi All, In my new project i am using geocoder gem for finding the nearest things to a location can i use it for two different models like i have a volunteer model and party model when ever a party created i should …

---

## [Adding a custom select to omniauth register form](https://www.ruby-forum.com/t/adding-a-custom-select-to-omniauth-register-form/215888)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [January 18, 2012, 10:22pm UTC](https://www.ruby-forum.com/t/adding-a-custom-select-to-omniauth-register-form/215888 "2012-01-18T22:22:34Z")

</div>

Hi, I’m creating a rails app using omniauth 1.0.1 on Rails 3.1.3 and ruby 1.9.2 I’m having trouble adding a select field that populates from a class constant in my user model. Here’s my model: class User \< ActiveRe…

---

## [What happens in dual sorts with nil values?](https://www.ruby-forum.com/t/what-happens-in-dual-sorts-with-nil-values/213539)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [November 5, 2011, 2:25pm UTC](https://www.ruby-forum.com/t/what-happens-in-dual-sorts-with-nil-values/213539 "2011-11-05T14:25:38Z")

</div>

I’ve put together an array that has a map. I did this so I could do some multi-level sorting of data. For example, if I had a map with: Struct.new(:first, :last, :age) And let’s say I only had some of the ages, so som…

---

## [Edit a model with has\_many and at the same time adding a new object associated](https://www.ruby-forum.com/t/edit-a-model-with-has-many-and-at-the-same-time-adding-a-new-object-associated/208967)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [July 1, 2011, 11:35pm UTC](https://www.ruby-forum.com/t/edit-a-model-with-has-many-and-at-the-same-time-adding-a-new-object-associated/208967 "2011-07-01T23:35:09Z")

</div>

I have Shop has\_many :documents and Documen belongs\_to :shop. When I create a new shop I use accept\_nested\_attributes\_for :documents in the model and fields\_for in the form, so I can create a new shop and at the same …

---

## [Full time - ruby on rails web developer](https://www.ruby-forum.com/t/full-time-ruby-on-rails-web-developer/207741)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [June 3, 2011, 7:11am UTC](https://www.ruby-forum.com/t/full-time-ruby-on-rails-web-developer/207741 "2011-06-03T07:11:54Z")

</div>

Looking for few people on a full time bases to work on very interesting project in NYC Anyone interested?

---

## [Syntax error, unexpected '}', expecting kEND](https://www.ruby-forum.com/t/syntax-error-unexpected-expecting-kend/193134)

<div class="topic-metadata">

**Author:** [@rainyglade](https://www.ruby-forum.com/u/rainyglade)\
**Replies:** 4\
**Last updated:** [August 12, 2010, 12:22am UTC](https://www.ruby-forum.com/t/syntax-error-unexpected-expecting-kend/193134 "2010-08-12T00:22:09Z")

</div>

I’m using ruby 1.8.6 (2010-02-04 patchlevel 398) \[i386-mingw32\], WinXP and Notepad++ in the Unix mode (for line endings) I have the following code: q = \[1.0, 4.0, 10.0, 27.0, 50.0, 600.0, 1000.0, 5833.0, 6250.0, 1500…

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

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