# Top

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

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

---

## [Weird behavior with should\_not\_receive](https://www.ruby-forum.com/t/weird-behavior-with-should-not-receive/213593)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [November 7, 2011, 2:13pm UTC](https://www.ruby-forum.com/t/weird-behavior-with-should-not-receive/213593 "2011-11-07T14:13:18Z")

</div>

I recently saw a test passing when it should have failed, because the person who wrote it used should\_not\_receive instead of should\_receive. Here is a simple example illustrating the behavior: class MyTest def foo …

---

## [How to mock when there seems to be a requirement for chained mocked calls?](https://www.ruby-forum.com/t/how-to-mock-when-there-seems-to-be-a-requirement-for-chained-mocked-calls/208280)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [June 14, 2011, 8:35pm UTC](https://www.ruby-forum.com/t/how-to-mock-when-there-seems-to-be-a-requirement-for-chained-mocked-calls/208280 "2011-06-14T20:35:11Z")

</div>

I want to mock the following: MyModel.where("…").last I tried: MyModel.should\_receive(:where).and\_return(nil) but this of course doesn’t match the expectation since the call to .last was not mapped in the mock code…

---

## [Rand() needs a seed?](https://www.ruby-forum.com/t/rand-needs-a-seed/142307)

<div class="topic-metadata">

**Author:** [@Johan\_Danforth](https://www.ruby-forum.com/u/Johan_Danforth)\
**Replies:** 4\
**Last updated:** [July 7, 2008, 12:03am UTC](https://www.ruby-forum.com/t/rand-needs-a-seed/142307 "2008-07-07T00:03:04Z")

</div>

I’m a noob Ruby user, but IronRuby behaves different from other Ruby implementations that I’ve tried, in IronRuby (rev 121) this code: 100.times {p rand(100)} Often returns the same value for (almost) all iterations, …

---

## [Has\_many :through polymorphic with STI in the polymorphic target tables](https://www.ruby-forum.com/t/has-many-through-polymorphic-with-sti-in-the-polymorphic-target-tables/137002)

<div class="topic-metadata">

**Author:** [@makkura](https://www.ruby-forum.com/u/makkura)\
**Replies:** 4\
**Last updated:** [May 9, 2008, 3:17am UTC](https://www.ruby-forum.com/t/has-many-through-polymorphic-with-sti-in-the-polymorphic-target-tables/137002 "2008-05-09T03:17:27Z")

</div>

has\_many :through polymorphic with STI in the polymorphic target tables Hello, In our data model we have Users that can be members of Schools, Organizations, etc. The Schools table uses STI to support Colleges and H…

---

## [Repack bits & header generator](https://www.ruby-forum.com/t/repack-bits-header-generator/230981)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [July 16, 2014, 12:23am UTC](https://www.ruby-forum.com/t/repack-bits-header-generator/230981 "2014-07-16T00:23:42Z")

</div>

HI all, I want to ask about the repack bits block http://gnuradio.org/doc/doxygen/classgr\_1\_1blocks\_1\_1repack\_\_bits\_\_bb.html Does it change the rate of the output relative to the input ? what does it mean it makes an…

---

## [Devise + Switch User : How to avoid update in trackable devise columns for a switch user?](https://www.ruby-forum.com/t/devise-switch-user-how-to-avoid-update-in-trackable-devise-columns-for-a-switch-user/240855)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [May 3, 2014, 7:37am UTC](https://www.ruby-forum.com/t/devise-switch-user-how-to-avoid-update-in-trackable-devise-columns-for-a-switch-user/240855 "2014-05-03T07:37:44Z")

</div>

I am using switch\_user https://github.com/flyerhzm/switch\_user rails gem to login as any other devise user from an admin account. When I use switch\_user for an account, the devise session updates all the devise track…

---

## [Changing the value of a Python Variable into a block](https://www.ruby-forum.com/t/changing-the-value-of-a-python-variable-into-a-block/216076)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [January 24, 2012, 8:32pm UTC](https://www.ruby-forum.com/t/changing-the-value-of-a-python-variable-into-a-block/216076 "2012-01-24T20:32:06Z")

</div>

Hello! I’m developing a TV enconder, and I need to extract information from my input data, and this will be used to determine the parameters of other blocks on the flow graph. How can I change the value of a variable…

---

## [Html code im text\_field](https://www.ruby-forum.com/t/html-code-im-text-field/144094)

<div class="topic-metadata">

**Author:** [@skorpions77](https://www.ruby-forum.com/u/skorpions77)\
**Replies:** 7\
**Last updated:** [July 28, 2008, 7:45am UTC](https://www.ruby-forum.com/t/html-code-im-text-field/144094 "2008-07-28T07:45:06Z")

</div>

Hi, Ich habe einige Eingabefelder und dort kann man html tags eingeben. Also wenn ich nun Test eingebe wird mir das in html in der indexliste und im show so ausgegeben. Wie kann ich das vermeiden? Kann ich das schon…

---

## [Monter son serveur (aus'cour !)](https://www.ruby-forum.com/t/monter-son-serveur-auscour/83096)

<div class="topic-metadata">

**Author:** [@philippe\_lachaise](https://www.ruby-forum.com/u/philippe_lachaise)\
**Replies:** 7\
**Last updated:** [January 23, 2007, 6:13pm UTC](https://www.ruby-forum.com/t/monter-son-serveur-auscour/83096 "2007-01-23T18:13:27Z")

</div>

Le problÃ¨me avec RoR c’est qu’on se retrouve par la force des choses Ã faire de l’admin systÃ¨me plus qu’on en voudrait, plutÃ´t que du dÃ©veloppement web. J’imagine que plus d’un Railer tombe dans les piÃ¨ges de l’…

---

## [Is there a project which implements half-duplex communications?](https://www.ruby-forum.com/t/is-there-a-project-which-implements-half-duplex-communications/242527)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [July 1, 2015, 6:10am UTC](https://www.ruby-forum.com/t/is-there-a-project-which-implements-half-duplex-communications/242527 "2015-07-01T06:10:22Z")

</div>

Hello, GNU Radio users, Very long time ago, USRP 1 was not suitable for half-duplex communications because USB 2.0 interface is too slow to achieve it. But now, there are USRP embedded and gigabit ethernet supporting…

---

## [Installing rvm in home directory or system-wide?](https://www.ruby-forum.com/t/installing-rvm-in-home-directory-or-system-wide/235808)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 3\
**Last updated:** [July 17, 2013, 10:58pm UTC](https://www.ruby-forum.com/t/installing-rvm-in-home-directory-or-system-wide/235808 "2013-07-17T22:58:39Z")

</div>

Is there any advantages of installing rvm system-wide as opposed to just in the home directory of a user?

---

## [RUBYOPT -S RuntimeError](https://www.ruby-forum.com/t/rubyopt-s-runtimeerror/245722)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [July 5, 2013, 3:42pm UTC](https://www.ruby-forum.com/t/rubyopt-s-runtimeerror/245722 "2013-07-05T15:42:10Z")

</div>

I’m confused. On Windows7, Ruby 1.9.3 I do : ruby -S script.rb and it works correctly, and searches the PATH variable However, if I do : set RUBYOPT=-S ruby script.rb =\>ruby: invalid switch in RUBYOPT: -S (Runtime…

---

## [Jsr223 - utf8 problem](https://www.ruby-forum.com/t/jsr223-utf8-problem/150020)

<div class="topic-metadata">

**Author:** [@PaweSSSSSWielgus](https://www.ruby-forum.com/u/PaweSSSSSWielgus)\
**Replies:** 3\
**Last updated:** [October 3, 2008, 10:06am UTC](https://www.ruby-forum.com/t/jsr223-utf8-problem/150020 "2008-10-03T10:06:35Z")

</div>

Hi, i have a strange problem with utf-8 characters. The code i have been using: ScriptEngineManager m = new ScriptEngineManager(); ScriptEngine rubyEngine = m.getEngineByName(“jruby”); rubyEngine.setContext(new Sim…

---

## [Birthdate validation](https://www.ruby-forum.com/t/birthdate-validation/119143)

<div class="topic-metadata">

**Author:** [@Thiago\_G](https://www.ruby-forum.com/u/Thiago_G)\
**Replies:** 3\
**Last updated:** [November 4, 2007, 12:07am UTC](https://www.ruby-forum.com/t/birthdate-validation/119143 "2007-11-04T00:07:23Z")

</div>

Hello everyone, I’m almost cracking my head trying to do this birthdate validation. It turns out that I can only accept users with at least 18 years old and I’m trying to validate it writing this code on my user.rb fi…

---

## [How do I clear values from text\_field\_tag after browser refresh?](https://www.ruby-forum.com/t/how-do-i-clear-values-from-text-field-tag-after-browser-refresh/161177)

<div class="topic-metadata">

**Author:** [@fakdora](https://www.ruby-forum.com/u/fakdora)\
**Replies:** 1\
**Last updated:** [February 24, 2009, 9:01am UTC](https://www.ruby-forum.com/t/how-do-i-clear-values-from-text-field-tag-after-browser-refresh/161177 "2009-02-24T09:01:38Z")

</div>

Hi all, I’m having an issue with text\_field\_tag. I want to reset the value of the text\_field when I refresh my browser, seems like a very simple thing, however I’m having hard time finding the answer. After I input s…

---

## [How to have both {{ and %{ placeholders replaced?](https://www.ruby-forum.com/t/how-to-have-both-and-placeholders-replaced/210124)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [July 31, 2011, 7:11pm UTC](https://www.ruby-forum.com/t/how-to-have-both-and-placeholders-replaced/210124 "2011-07-31T19:11:53Z")

</div>

Hi, I’m working on a Rails app I didn’t touched since a year :wink: It’s a 2.3.8 app, and my first surprise was to see things like {{count}} errors prohibited this {{model}} from being saved There were problems with t…

---

## [Indentifier name too long](https://www.ruby-forum.com/t/indentifier-name-too-long/67564)

<div class="topic-metadata">

**Author:** [@Dylan\_S](https://www.ruby-forum.com/u/Dylan_S)\
**Replies:** 2\
**Last updated:** [September 9, 2007, 2:05pm UTC](https://www.ruby-forum.com/t/indentifier-name-too-long/67564 "2007-09-09T14:05:19Z")

</div>

Running Edge (4991) and MySQL (5.0.22) When running “rake db:migrate” Mysql::Error: Identifier name ‘index\_globalize\_translations\_on\_table\_name\_and\_item\_id\_and\_language\_id’ is too long: CREATE INDEX index\_globalize…

---

## [Array index confusion](https://www.ruby-forum.com/t/array-index-confusion/220809)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 8\
**Last updated:** [July 1, 2012, 11:17am UTC](https://www.ruby-forum.com/t/array-index-confusion/220809 "2012-07-01T11:17:43Z")

</div>

I cannot find an answer to this, and perhaps the answer is that “it is what it is…” But perhaps someone can explain this for me. If I have an array, thus: a = \[1, 2, 3, 4\] there are four elements in the array. The i…

---

## [Patch to make FindQwt.cmake work on OpenSuse 12.1](https://www.ruby-forum.com/t/patch-to-make-findqwt-cmake-work-on-opensuse-12-1/219711)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 8\
**Last updated:** [May 15, 2012, 9:05am UTC](https://www.ruby-forum.com/t/patch-to-make-findqwt-cmake-work-on-opensuse-12-1/219711 "2012-05-15T09:05:55Z")

</div>

I tried to install gnuradio from git on my machine. The only problem I encountered is that the qwt library could not be found (ie. gr-qtgui was disabled). Attached is a patch, to solve this problem. It includes the /u…

---

## [Integers to English Words](https://www.ruby-forum.com/t/integers-to-english-words/211825)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [September 14, 2011, 7:01pm UTC](https://www.ruby-forum.com/t/integers-to-english-words/211825 "2011-09-14T19:01:24Z")

</div>

Hi, I’m a junior software engineer who has been blessed with the gift of Ruby as my introductory language. However, I’m a little anxious about a coding test I have been asked to do…convert numbers to english words. M…

---

## [Cucumber Cygwin](https://www.ruby-forum.com/t/cucumber-cygwin/179373)

<div class="topic-metadata">

**Author:** [@mith](https://www.ruby-forum.com/u/mith)\
**Replies:** 5\
**Last updated:** [November 24, 2009, 4:13pm UTC](https://www.ruby-forum.com/t/cucumber-cygwin/179373 "2009-11-24T16:13:22Z")

</div>

Stuck as to what dependency is calling for cucumber 0.4.4 - we want to stick to 0.4.3 but Cygwin installation not allowing it - OK on Mac /usr/bin/ruby.exe -I “/usr/lib/ruby/gems/1.8/gems/cucumber-0.4.3/lib:lib” “/us…

---

## [Need help integrating wymeditor extension with radiant](https://www.ruby-forum.com/t/need-help-integrating-wymeditor-extension-with-radiant/130057)

<div class="topic-metadata">

**Author:** [@jsmorris](https://www.ruby-forum.com/u/jsmorris)\
**Replies:** 5\
**Last updated:** [April 21, 2009, 7:45am UTC](https://www.ruby-forum.com/t/need-help-integrating-wymeditor-extension-with-radiant/130057 "2009-04-21T07:45:32Z")

</div>

I am trying to use the wymeditor extension with radiant 0.6.4 but having only partial luck. I have all the extensions that came with radiant and then shards, page attachments, and then wymeditor. The wymeditor works …

---

## [Implementing URLs with more than 3 levels in Rails](https://www.ruby-forum.com/t/implementing-urls-with-more-than-3-levels-in-rails/60369)

<div class="topic-metadata">

**Author:** [@alder](https://www.ruby-forum.com/u/alder)\
**Replies:** 5\
**Last updated:** [May 13, 2006, 3:51pm UTC](https://www.ruby-forum.com/t/implementing-urls-with-more-than-3-levels-in-rails/60369 "2006-05-13T15:51:12Z")

</div>

Hi There I started using Rails recently, and I see it’s very easy for URLs that have up to 3 levels: /:controller/:action/:id But what do you do when you need more than 3? For example, my current project should have…

---

## [Single transaction migrations](https://www.ruby-forum.com/t/single-transaction-migrations/75182)

<div class="topic-metadata">

**Author:** [@Esad\_H](https://www.ruby-forum.com/u/Esad_H)\
**Replies:** 5\
**Last updated:** [March 3, 2006, 4:59pm UTC](https://www.ruby-forum.com/t/single-transaction-migrations/75182 "2006-03-03T16:59:46Z")

</div>

Hi! It seems that migration doesn’t use single transcation to execute the needed migrations for the database upgrade, so if I have database at version 5, and I wrote some migrations 6…10, and error occurs while execu…

---

## [Nginx proxy\_intercept\_errors](https://www.ruby-forum.com/t/nginx-proxy-intercept-errors/227179)

<div class="topic-metadata">

**Author:** [@Kiril\_Kalchev](https://www.ruby-forum.com/u/Kiril_Kalchev)\
**Replies:** 6\
**Last updated:** [March 6, 2013, 4:55pm UTC](https://www.ruby-forum.com/t/nginx-proxy-intercept-errors/227179 "2013-03-06T16:55:59Z")

</div>

nginx mailing list removed\_email\_address@domain.invalid http://mailman.nginx.org/mailman/listinfo/nginx

---

## [Abfrage abhÃ¤ngig von einer Var iable](https://www.ruby-forum.com/t/abfrage-abha-ngig-von-einer-var-iable/156104)

<div class="topic-metadata">

**Author:** [@Werner\_L](https://www.ruby-forum.com/u/Werner_L)\
**Replies:** 6\
**Last updated:** [December 21, 2008, 2:33pm UTC](https://www.ruby-forum.com/t/abfrage-abha-ngig-von-einer-var-iable/156104 "2008-12-21T14:33:21Z")

</div>

Hallo. ich mochte gerne bei Model.find\_by\_plz(params\[:plzcheck\]\[:plz\]) das Model austauschbar, abhängig von einer Bedingung machen… Also je nachdem wer sich einlogged, bekommt eine andere Tabelle. Einfach eine Strin…

---

## [Reducing dependency on remote ferret process](https://www.ruby-forum.com/t/reducing-dependency-on-remote-ferret-process/119868)

<div class="topic-metadata">

**Author:** [@morten](https://www.ruby-forum.com/u/morten)\
**Replies:** 6\
**Last updated:** [February 1, 2008, 2:40am UTC](https://www.ruby-forum.com/t/reducing-dependency-on-remote-ferret-process/119868 "2008-02-01T02:40:44Z")

</div>

Hi. We use FerretDrb for search. If the ferret process is down, our entire application comes down the moment we try to save a model which is indexed. Is there a way to decouple this relationship such that we can some…

---

## [String.scan hangs in some cases?](https://www.ruby-forum.com/t/string-scan-hangs-in-some-cases/95186)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 6\
**Last updated:** [May 24, 2006, 5:03pm UTC](https://www.ruby-forum.com/t/string-scan-hangs-in-some-cases/95186 "2006-05-24T17:03:42Z")

</div>

Has anyone ever see a call to String.scan (the “regular” form, not the block form) just hang when processing a string? If so, any insight into how that might happen? Thanks, Wes

---

## [\[Regex\] Alternative for look behind](https://www.ruby-forum.com/t/regex-alternative-for-look-behind/146019)

<div class="topic-metadata">

**Author:** [@janus](https://www.ruby-forum.com/u/janus)\
**Replies:** 4\
**Last updated:** [August 16, 2008, 6:48pm UTC](https://www.ruby-forum.com/t/regex-alternative-for-look-behind/146019 "2008-08-16T18:48:42Z")

</div>

Hi all, I need to replace all ‘-’ characters at the beginning of a sequence (string) with 'X’s (until a character appears that is not ‘-’). E.g. -------abcde-gh---- should be changed into XXXXXXXabcde-gh---- If Ru…

---

## [RX Channel Out Of Range](https://www.ruby-forum.com/t/rx-channel-out-of-range/239750)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [March 13, 2014, 10:50am UTC](https://www.ruby-forum.com/t/rx-channel-out-of-range/239750 "2014-03-13T10:50:52Z")

</div>

Hi All, I am using GNU Radio Companion version 3.6.2. When I execute a simple flowgraph (containing two blocks: USRP Source and WX GUI FFT Sink), it generates the following error: RuntimeError: LookupError: IndexErr…

---

## [ERROR : An error occurred while installing mysql2 (0.3.11), and Bundler cannot continue](https://www.ruby-forum.com/t/error-an-error-occurred-while-installing-mysql2-0-3-11-and-bundler-cannot-continue/225271)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [December 25, 2012, 11:13pm UTC](https://www.ruby-forum.com/t/error-an-error-occurred-while-installing-mysql2-0-3-11-and-bundler-cannot-continue/225271 "2012-12-25T23:13:35Z")

</div>

I am a php programmer, learning ruby on rails I am using ubuntu 10.10. i am not so fine with linux. i have installed ruby, gems etc. I want to make app with using mysql. I have used $ rails new clogs\_web\_app -d mysql …

---

## [How fast a PHP Developer can learn Ruby on Rails](https://www.ruby-forum.com/t/how-fast-a-php-developer-can-learn-ruby-on-rails/243654)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 7\
**Last updated:** [December 16, 2015, 9:42pm UTC](https://www.ruby-forum.com/t/how-fast-a-php-developer-can-learn-ruby-on-rails/243654 "2015-12-16T21:42:01Z")

</div>

Hi guys, I have more than 6 years of experience as PHP Developer, and now i want to learn Ruby on rails. But i am confused how far i can achieve the same. Can you please let me know how long it will take me to learn…

---

## [Site rubyonrails.com down](https://www.ruby-forum.com/t/site-rubyonrails-com-down/166287)

<div class="topic-metadata">

**Author:** [@mourad\_hammiche](https://www.ruby-forum.com/u/mourad_hammiche)\
**Replies:** 7\
**Last updated:** [April 23, 2009, 4:04pm UTC](https://www.ruby-forum.com/t/site-rubyonrails-com-down/166287 "2009-04-23T16:04:22Z")

</div>

Bonjour, Le rubyonnrails.com est actuellement down. (idem pour .org) Est-ce ça viens de chez moi ou est-ce qui’il y a un problème avec le nom de domaine ? Mourad

---

## [How do I can create a job in minitest](https://www.ruby-forum.com/t/how-do-i-can-create-a-job-in-minitest/264050)

<div class="topic-metadata">

**Author:** [@khoalarion](https://www.ruby-forum.com/u/khoalarion)\
**Replies:** 2\
**Last updated:** [June 29, 2023, 6:35am UTC](https://www.ruby-forum.com/t/how-do-i-can-create-a-job-in-minitest/264050 "2023-06-29T06:35:23Z")

</div>

When I run mini test, I see this function jump to create a job But when I check resque.size. It still 0, Why

---

## [BladRF](https://www.ruby-forum.com/t/bladrf/237060)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [October 24, 2013, 5:04am UTC](https://www.ruby-forum.com/t/bladrf/237060 "2013-10-24T05:04:14Z")

</div>

I am working on bladeRF, dose anyone working on it and facing this error? Ubuntu 13.04 linux; GNU C++ version 4.7.3; Boost\_105300; UHD\_003.005.004-140-gfb32ed16 \<\<\< Welcome to GNU Radio Companion 3.7.1 \>\>\> i got th…

---

## [\[Cucumber\] and rake pass command-line params](https://www.ruby-forum.com/t/cucumber-and-rake-pass-command-line-params/159219)

<div class="topic-metadata">

**Author:** [@aap](https://www.ruby-forum.com/u/aap)\
**Replies:** 2\
**Last updated:** [February 2, 2009, 5:27pm UTC](https://www.ruby-forum.com/t/cucumber-and-rake-pass-command-line-params/159219 "2009-02-02T17:27:44Z")

</div>

Hi list, I might have not asked this correctly in previous post… and most definitely werenâ€™t clear! letâ€™s try again :slight\_smile: I canâ€™t seem to find any examples of using a rake variable in the Cucumber ta…

---

## [C++ extension](https://www.ruby-forum.com/t/c-extension/79034)

<div class="topic-metadata">

**Author:** [@reevesg](https://www.ruby-forum.com/u/reevesg)\
**Replies:** 2\
**Last updated:** [March 10, 2006, 1:04pm UTC](https://www.ruby-forum.com/t/c-extension/79034 "2006-03-10T13:04:26Z")

</div>

I am trying to understand some aspects of writing a ruby extension in C++. Actually what I am trying to do is wrap a C++ library and make it accessible from ruby. Since I have been having problems with the library th…

---

## [Strategy for importing temporary .csv file?](https://www.ruby-forum.com/t/strategy-for-importing-temporary-csv-file/136387)

<div class="topic-metadata">

**Author:** [@Kathleen\_Kennedy](https://www.ruby-forum.com/u/Kathleen_Kennedy)\
**Replies:** 1\
**Last updated:** [May 1, 2008, 4:28pm UTC](https://www.ruby-forum.com/t/strategy-for-importing-temporary-csv-file/136387 "2008-05-01T16:28:32Z")

</div>

For some reason, I’ve posted this question to this forum 4 times now and it never appears in the daily consolidated email I get daily? I’ve written a routine allowing the client user to declare where their .csv import…

---

## [Compact or uniq that takes a block like sort?](https://www.ruby-forum.com/t/compact-or-uniq-that-takes-a-block-like-sort/125239)

<div class="topic-metadata">

**Author:** [@Bil\_K](https://www.ruby-forum.com/u/Bil_K)\
**Replies:** 5\
**Last updated:** [January 8, 2008, 11:56am UTC](https://www.ruby-forum.com/t/compact-or-uniq-that-takes-a-block-like-sort/125239 "2008-01-08T11:56:21Z")

</div>

Hi, I’m looking for an elegant way to do the following: Given an sorted array of (X,Y) pairs where Y is strictly increasing, i.e., no repeated Ys. Compact pairs with repeated Xs, keeping the pair with the highest Y …

---

## [JRuby 1.7.0.RC2 Released](https://www.ruby-forum.com/t/jruby-1-7-0-rc2-released/223562)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [October 10, 2012, 7:14pm UTC](https://www.ruby-forum.com/t/jruby-1-7-0-rc2-released/223562 "2012-10-10T19:14:47Z")

</div>

The JRuby community is pleased to announce the release of JRuby 1.7.0.RC2. Homepage: http://www.jruby.org/ Download: http://www.jruby.org/download This is the second (and likely last) release candidate of JRuby 1.7. …

---

## [How to use rb\_enc\_str\_new() to create a String with UTF-8 encoding?](https://www.ruby-forum.com/t/how-to-use-rb-enc-str-new-to-create-a-string-with-utf-8-encoding/179720)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 4\
**Last updated:** [December 2, 2009, 11:03pm UTC](https://www.ruby-forum.com/t/how-to-use-rb-enc-str-new-to-create-a-string-with-utf-8-encoding/179720 "2009-12-02T23:03:25Z")

</div>

Hi, when I create a Ruby String from a C extension by using “rb\_str\_new(s, len)” I get a String with US-ASCII encoding. I don’t want to call later String#force\_encoding(:“UTF-8”) but instead use the rb\_enc\_str\_new()…

---

## [Invoke a event in ruby/tk](https://www.ruby-forum.com/t/invoke-a-event-in-ruby-tk/169351)

<div class="topic-metadata">

**Author:** [@jesus](https://www.ruby-forum.com/u/jesus)\
**Replies:** 4\
**Last updated:** [June 4, 2009, 2:46am UTC](https://www.ruby-forum.com/t/invoke-a-event-in-ruby-tk/169351 "2009-06-04T02:46:21Z")

</div>

here is the problem. i have a TkEntry and A TkTable and i need to invoke the events of “Up” and “Down” of the TkTable To change the selection of cell as well as if it were selected. for reasons unnecessary to expla…

---

## [TypeError maps to System.InvalidOperationException?](https://www.ruby-forum.com/t/typeerror-maps-to-system-invalidoperationexception/158321)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 4\
**Last updated:** [January 22, 2009, 8:20pm UTC](https://www.ruby-forum.com/t/typeerror-maps-to-system-invalidoperationexception/158321 "2009-01-22T20:20:01Z")

</div>

We map Ruby’s TypeError to System.InvalidOperationException. This surprised me. I would have expected TypeError to map to System.InvalidCastException. Wouldn’t that be preferable? In general, it would be good to docum…

---

## [Working with the parse tree in Ruby?](https://www.ruby-forum.com/t/working-with-the-parse-tree-in-ruby/83541)

<div class="topic-metadata">

**Author:** [@Martin\_CSMartin](https://www.ruby-forum.com/u/Martin_CSMartin)\
**Replies:** 4\
**Last updated:** [January 29, 2007, 10:20pm UTC](https://www.ruby-forum.com/t/working-with-the-parse-tree-in-ruby/83541 "2007-01-29T22:20:43Z")

</div>

Hi, In Lisp, it’s easy to get the parse tree of an expression, and to manipulate those parse trees. That means Lisp code tends to use macros, i.e. lisp functions whose return values are parse trees. These macros ar…

---

## [Fosdem 2013](https://www.ruby-forum.com/t/fosdem-2013/225702)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [January 31, 2013, 5:21pm UTC](https://www.ruby-forum.com/t/fosdem-2013/225702 "2013-01-31T17:21:07Z")

</div>

Ciao, il 2 e 3 Febbraio 2013 c’ il FOSDEM 2013 a Bruxelles, evento molto “orizzontale” con tanti topic eterogenei, ma sempre molto interessante. Io ci vado perch ho un talk, qualcun altro per caso ci viene? C’ un sac…

---

## [Iterate HashWithIndifferentAccess](https://www.ruby-forum.com/t/iterate-hashwithindifferentaccess/195334)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 6\
**Last updated:** [September 22, 2010, 1:29pm UTC](https://www.ruby-forum.com/t/iterate-hashwithindifferentaccess/195334 "2010-09-22T13:29:14Z")

</div>

How do I iterate a HashWithIndifferentAccess? I need to set the order using a sortable\_element.

---

## [Lighttpd Restart Script](https://www.ruby-forum.com/t/lighttpd-restart-script/50519)

<div class="topic-metadata">

**Author:** [@nshb](https://www.ruby-forum.com/u/nshb)\
**Replies:** 6\
**Last updated:** [December 19, 2005, 7:06pm UTC](https://www.ruby-forum.com/t/lighttpd-restart-script/50519 "2005-12-19T19:06:16Z")

</div>

After quite a bit of searching and coding, I customized an init.d/bash script which allows me to manage multiple instances of Lighttpd server running Rails. It targets the specific PID address instead of the default b…

---

## [Error in Building UHD on Windows](https://www.ruby-forum.com/t/error-in-building-uhd-on-windows/228527)

<div class="topic-metadata">

**Author:** [@Zooz\_E](https://www.ruby-forum.com/u/Zooz_E)\
**Replies:** 8\
**Last updated:** [May 4, 2013, 6:36am UTC](https://www.ruby-forum.com/t/error-in-building-uhd-on-windows/228527 "2013-05-04T06:36:18Z")

</div>

Dear All, I am trying to install UHD on windows from source code. I have installed the prerequisites: cmake-2.8.10.2-win32-x86 boost\_1\_51\_setup32 python-2.6.6 Cheetah-2.2.2.win32-py2.6 msysGit-fullinstall-1.8.1.2-…

---

## [Translating an F5 rule](https://www.ruby-forum.com/t/translating-an-f5-rule/227560)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 8\
**Last updated:** [March 20, 2013, 9:18am UTC](https://www.ruby-forum.com/t/translating-an-f5-rule/227560 "2013-03-20T09:18:18Z")

</div>

I am configuring Nginx to sit in front of several IIS web servers to do load balancing and SSL signing. THe IIS application is supplied by an outside vendor. I have the load balancing and SSL signing working, with …

---

## [Uncut words (string)](https://www.ruby-forum.com/t/uncut-words-string/168900)

<div class="topic-metadata">

**Author:** [@dharshannew](https://www.ruby-forum.com/u/dharshannew)\
**Replies:** 8\
**Last updated:** [May 27, 2009, 3:32pm UTC](https://www.ruby-forum.com/t/uncut-words-string/168900 "2009-05-27T15:32:10Z")

</div>

I have this paragraph as one srting , apllied below code as suggested by one of the member. words = “Kid games need to be both fun and educational. Aimed at ages pre-K through middle school, safe environment to discov…

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

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