# Top

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

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

---

## [Operator precedence of exponentiation (\*\*) and complement (~)](https://www.ruby-forum.com/t/operator-precedence-of-exponentiation-and-complement/163923)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 2\
**Last updated:** [March 26, 2009, 9:07pm UTC](https://www.ruby-forum.com/t/operator-precedence-of-exponentiation-and-complement/163923 "2009-03-26T21:07:33Z")

</div>

The operator precedence table at: The Ruby Language states that the exponentiation operator (\*\*) has higher precedence than the complement operator (~). Ditto for operator precedence in Python. Yet the following prog…

---

## [Cannot set ENV\['RAILS\_RELATIVE\_URL\_ROOT'\]](https://www.ruby-forum.com/t/cannot-set-env-rails-relative-url-root/84879)

<div class="topic-metadata">

**Author:** [@fero](https://www.ruby-forum.com/u/fero)\
**Replies:** 2\
**Last updated:** [March 23, 2009, 5:05am UTC](https://www.ruby-forum.com/t/cannot-set-env-rails-relative-url-root/84879 "2009-03-23T05:05:24Z")

</div>

i am on lighttpd now, and i cannot set cannot set enviroment variable: i added this line to enviroment.rb, but it doesn not work!! ENV\[‘RAILS\_RELATIVE\_URL\_ROOT’\] = ‘something’ links on my page are ok, but all links t…

---

## [How to implement signal.wait(timeout)?](https://www.ruby-forum.com/t/how-to-implement-signal-wait-timeout/149835)

<div class="topic-metadata">

**Author:** [@jacob](https://www.ruby-forum.com/u/jacob)\
**Replies:** 2\
**Last updated:** [October 1, 2008, 1:45pm UTC](https://www.ruby-forum.com/t/how-to-implement-signal-wait-timeout/149835 "2008-10-01T13:45:06Z")

</div>

Hi all I am writing a ruby server. Something like: class MyServer def initialize @stop\_signal = MySignal.new end def start @stop\_signal.reset @thread = Thread.start { run } end def stop @stop\_signal.set @thre…

---

## [Radiant freeze:edge and github vs capistrano](https://www.ruby-forum.com/t/radiant-freeze-edge-and-github-vs-capistrano/149534)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 2\
**Last updated:** [September 25, 2008, 9:27pm UTC](https://www.ruby-forum.com/t/radiant-freeze-edge-and-github-vs-capistrano/149534 "2008-09-25T21:27:48Z")

</div>

I’m currently working on another radiant instance and I’m using github. I freezed the edge of radiant in my project, in my github account I can see a link in vendor/radiant but thats it… When I do a deploy, the code …

---

## [Usage of stored procedures](https://www.ruby-forum.com/t/usage-of-stored-procedures/106382)

<div class="topic-metadata">

**Author:** [@Tyche](https://www.ruby-forum.com/u/Tyche)\
**Replies:** 2\
**Last updated:** [June 10, 2007, 5:35pm UTC](https://www.ruby-forum.com/t/usage-of-stored-procedures/106382 "2007-06-10T17:35:34Z")

</div>

Hi, I am trying my hands on RoR for a dummy project and I use Mysql as my database. For data manipulation and querying purpose, should I write ruby code directly in active record or write a stored procedure and invok…

---

## [Problem with joins and overlapping field names](https://www.ruby-forum.com/t/problem-with-joins-and-overlapping-field-names/61046)

<div class="topic-metadata">

**Author:** [@Mariano\_K](https://www.ruby-forum.com/u/Mariano_K)\
**Replies:** 2\
**Last updated:** [August 22, 2006, 2:16pm UTC](https://www.ruby-forum.com/t/problem-with-joins-and-overlapping-field-names/61046 "2006-08-22T14:16:55Z")

</div>

Hi, I have the following code: @conversation\_pages, @conversations = paginate(:conversations, :per\_page =\> 20, :joins =\> 'LEFT JOIN messages on messages.conversation\_id = conversations.id '+ ‘LEFT JOIN email\_addre…

---

## [Delaying table attribute load using ActiveRecord](https://www.ruby-forum.com/t/delaying-table-attribute-load-using-activerecord/56588)

<div class="topic-metadata">

**Author:** [@llecigne](https://www.ruby-forum.com/u/llecigne)\
**Replies:** 2\
**Last updated:** [April 2, 2006, 12:20pm UTC](https://www.ruby-forum.com/t/delaying-table-attribute-load-using-activerecord/56588 "2006-04-02T12:20:48Z")

</div>

Hi all, I came accross the following problem lately: I got a table with several BLOB fields (Oracle DB) and I have ActiveRecord reading those fields whenever records are loaded using finder methods. This behavior is j…

---

## [Default routes in rails 3.0](https://www.ruby-forum.com/t/default-routes-in-rails-3-0/196347)

<div class="topic-metadata">

**Author:** [@egervari](https://www.ruby-forum.com/u/egervari)\
**Replies:** 7\
**Last updated:** [October 12, 2010, 9:19am UTC](https://www.ruby-forum.com/t/default-routes-in-rails-3-0/196347 "2010-10-12T09:19:39Z")

</div>

Hi, I just created a scaffolding controller and tried to run the tests and see it in the web browser. The problem is that I don’t think the routes were setup properly or at all. I get this error when I run the tests: …

---

## [How do i add an instance variable to a class in Ruby](https://www.ruby-forum.com/t/how-do-i-add-an-instance-variable-to-a-class-in-ruby/196211)

<div class="topic-metadata">

**Author:** [@amit-singh](https://www.ruby-forum.com/u/amit-singh)\
**Replies:** 7\
**Last updated:** [October 11, 2010, 9:59am UTC](https://www.ruby-forum.com/t/how-do-i-add-an-instance-variable-to-a-class-in-ruby/196211 "2010-10-11T09:59:52Z")

</div>

Hii all , I have one file named class1.rb this is structure module Person class Amit def initialize @a=10 end end end another file named class2.rb module Person class Sumit \< Amit def aos puts “#{@a}” end …

---

## [How to include a module in a model](https://www.ruby-forum.com/t/how-to-include-a-module-in-a-model/193743)

<div class="topic-metadata">

**Author:** [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Replies:** 7\
**Last updated:** [September 2, 2010, 8:42am UTC](https://www.ruby-forum.com/t/how-to-include-a-module-in-a-model/193743 "2010-09-02T08:42:28Z")

</div>

I created a module MyModule “my\_module.rb” and put in a lib folder in my rails app. In my User.rb model I call include MyModule. When I try to use a method inside MyModule I get an “undefined method error”. How do I…

---

## [PACKET FORMAT "error"](https://www.ruby-forum.com/t/packet-format-error/188315)

<div class="topic-metadata">

**Author:** [@zzw.1012](https://www.ruby-forum.com/u/zzw.1012)\
**Replies:** 7\
**Last updated:** [May 13, 2010, 4:40pm UTC](https://www.ruby-forum.com/t/packet-format-error/188315 "2010-05-13T16:40:38Z")

</div>

Hi, I’m studying benchmark\_tx.py now. I find that the packet size is not right (at least I’d like to think so) in the process of making packet, which can be seen in pkt.py and packet\_utils.py. In the packet consist o…

---

## [Intercettare eccezioni esterne](https://www.ruby-forum.com/t/intercettare-eccezioni-esterne/187243)

<div class="topic-metadata">

**Author:** [@daneel\_olivaw](https://www.ruby-forum.com/u/daneel_olivaw)\
**Replies:** 7\
**Last updated:** [April 22, 2010, 2:47pm UTC](https://www.ruby-forum.com/t/intercettare-eccezioni-esterne/187243 "2010-04-22T14:47:08Z")

</div>

Buongiorno lista. Sto creando la gestione dell’importazione ed esportazione del database (per backup, restore o altro) dal mio programmino in ruby e gtk. Non trovando di meglio e dal basso della mia ignoranza, ho pens…

---

## [Test script](https://www.ruby-forum.com/t/test-script/183285)

<div class="topic-metadata">

**Author:** [@twaynz](https://www.ruby-forum.com/u/twaynz)\
**Replies:** 7\
**Last updated:** [February 11, 2010, 7:38pm UTC](https://www.ruby-forum.com/t/test-script/183285 "2010-02-11T19:38:25Z")

</div>

Hello, I am new to ruby and scripting. I have to develop a test-driven software, so I have to run each time a test and make the necessary changes to the code if the test fails. My program takes integers as parameters…

---

## [Form\_for help needed](https://www.ruby-forum.com/t/form-for-help-needed/173619)

<div class="topic-metadata">

**Author:** [@railslist](https://www.ruby-forum.com/u/railslist)\
**Replies:** 7\
**Last updated:** [August 12, 2009, 5:12pm UTC](https://www.ruby-forum.com/t/form-for-help-needed/173619 "2009-08-12T17:12:41Z")

</div>

here is the scenario: i have a form ( with couple of simple validations ) for the new action: \<% form\_for :classified, @classified, :url=\>{ :controller=\>‘classifieds’, :action=\>‘create’}, :html =\> { :multipart =\> tru…

---

## [First RoR Aplication - images/css paths](https://www.ruby-forum.com/t/first-ror-aplication-images-css-paths/167669)

<div class="topic-metadata">

**Author:** [@Quijote70](https://www.ruby-forum.com/u/Quijote70)\
**Replies:** 7\
**Last updated:** [May 11, 2009, 10:52pm UTC](https://www.ruby-forum.com/t/first-ror-aplication-images-css-paths/167669 "2009-05-11T22:52:44Z")

</div>

I routed the page www.site.com to a controller “welcome” config/routes.rb: map.root :controller =\> “welcome” after this action the home page http://www.site.com ho reads the action index works fine but if I call h…

---

## [ActsAsNestedSet's all\_children associations](https://www.ruby-forum.com/t/actsasnestedsets-all-children-associations/112794)

<div class="topic-metadata">

**Author:** [@veganopolis](https://www.ruby-forum.com/u/veganopolis)\
**Replies:** 7\
**Last updated:** [August 24, 2007, 1:33pm UTC](https://www.ruby-forum.com/t/actsasnestedsets-all-children-associations/112794 "2007-08-24T13:33:40Z")

</div>

Hello, I am wondering if there is a better way to implement this. I have to models, a Document model and a Category model. The Category model is self-referencing through acts\_as\_nested\_set. category: id title paren…

---

## [ActiveRecord et les relations](https://www.ruby-forum.com/t/activerecord-et-les-relations/78828)

<div class="topic-metadata">

**Author:** [@gbenoit79](https://www.ruby-forum.com/u/gbenoit79)\
**Replies:** 7\
**Last updated:** [December 9, 2006, 10:48pm UTC](https://www.ruby-forum.com/t/activerecord-et-les-relations/78828 "2006-12-09T22:48:14Z")

</div>

Bonjour, Il y a qqchose que je n’arrive pas Ã faire marcher, alors avant de poursuivre, je voudrais savoir si je n’hallucine pas (auquel cas ca expliquerait pourquoi ca ne marche pas (-: ) Grand classique, une bibli…

---

## [Controller du mailer](https://www.ruby-forum.com/t/controller-du-mailer/73972)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 7\
**Last updated:** [October 28, 2006, 7:19pm UTC](https://www.ruby-forum.com/t/controller-du-mailer/73972 "2006-10-28T19:19:43Z")

</div>

salu à tous, je viens de faire un ‘script/generate mailer Notifier’ mais ça ne m’a pas crée de controller, je suis censé les mettre où les fonctions qui correspondent aux views du notifier? J’éssais de suivre lexempl…

---

## [Safe Mode Lowering](https://www.ruby-forum.com/t/safe-mode-lowering/58793)

<div class="topic-metadata">

**Author:** [@Jake\_McArthur](https://www.ruby-forum.com/u/Jake_McArthur)\
**Replies:** 7\
**Last updated:** [April 26, 2006, 1:04am UTC](https://www.ruby-forum.com/t/safe-mode-lowering/58793 "2006-04-26T01:04:34Z")

</div>

I am aware that the safe mode in Ruby can only be set higher, not lower. This makes sense, as unsafe code should not be able to lower the safe mode. However, is there a way to lower it at all, as I can think of many t…

---

## [How to double single quote (beginner blockage)](https://www.ruby-forum.com/t/how-to-double-single-quote-beginner-blockage/102532)

<div class="topic-metadata">

**Author:** [@Alexandru\_P](https://www.ruby-forum.com/u/Alexandru_P)\
**Replies:** 7\
**Last updated:** [January 18, 2006, 6:39pm UTC](https://www.ruby-forum.com/t/how-to-double-single-quote-beginner-blockage/102532 "2006-01-18T18:39:24Z")

</div>

Hi! Sorry for this \`stupid´ question but it looks like i am suffering a mental blockage: if I have a string that contains single quote (f.e. “al’alamein”) i would like to escape it with another single quote (=\> “al’…

---

## [Convert json string to hash and retrieve hash items values in ruby](https://www.ruby-forum.com/t/convert-json-string-to-hash-and-retrieve-hash-items-values-in-ruby/240993)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [May 9, 2014, 4:16pm UTC](https://www.ruby-forum.com/t/convert-json-string-to-hash-and-retrieve-hash-items-values-in-ruby/240993 "2014-05-09T16:16:43Z")

</div>

I have a string object which is basically in a json format and while trying to print it shows in console as item = { "id": "4c9f83e4-f479-48d0-9f92-3fff70a8f6ba", "item": “{“business”:“1114”,“class”:…

---

## [Gr-cdma is ready](https://www.ruby-forum.com/t/gr-cdma-is-ready/239618)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [March 8, 2014, 12:51pm UTC](https://www.ruby-forum.com/t/gr-cdma-is-ready/239618 "2014-03-08T12:51:47Z")

</div>

Dear all, the OOT module gr-cdma that we have been working on with Zhe F. is now ready (also fully documented). You can find it here: An important acknowledgement: this project grew out of the DARPA SPECTRUM CHALLE…

---

## [Problem with WEBRick and eruby](https://www.ruby-forum.com/t/problem-with-webrick-and-eruby/84342)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [February 3, 2007, 10:27am UTC](https://www.ruby-forum.com/t/problem-with-webrick-and-eruby/84342 "2007-02-03T10:27:15Z")

</div>

Hi, I am just starting in both ruby and web development so maybe the following pieces of code seem a sin for most of you. I am writing a HTML form in a rhtml file and pass the parameters to antoher rhtml with embebed…

---

## [Setter that converts a float attribute to integer](https://www.ruby-forum.com/t/setter-that-converts-a-float-attribute-to-integer/95618)

<div class="topic-metadata">

**Author:** [@carlosparamio](https://www.ruby-forum.com/u/carlosparamio)\
**Replies:** 1\
**Last updated:** [June 8, 2006, 2:37pm UTC](https://www.ruby-forum.com/t/setter-that-converts-a-float-attribute-to-integer/95618 "2006-06-08T14:37:09Z")

</div>

Hi, I have some problems with an application where I’m using custom accessors to do currency conversions. In my model, I have a price attribute in the database that stores the value in cents, to avoid future problems…

---

## [Fwd: Documentation for out-of-tree module](https://www.ruby-forum.com/t/fwd-documentation-for-out-of-tree-module/238921)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [February 6, 2014, 6:07pm UTC](https://www.ruby-forum.com/t/fwd-documentation-for-out-of-tree-module/238921 "2014-02-06T18:07:25Z")

</div>

To add to the question: And what about the documentation on the C++ header files? Ie, in gr-xxx/include/xxx there are C++ header files which can be documented. How is this documentation generated and installed using …

---

## [Advise on signing up users and activating their accounts](https://www.ruby-forum.com/t/advise-on-signing-up-users-and-activating-their-accounts/238700)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [January 24, 2014, 11:04am UTC](https://www.ruby-forum.com/t/advise-on-signing-up-users-and-activating-their-accounts/238700 "2014-01-24T11:04:00Z")

</div>

I’m new to Rails but so far I’ve completed the Rails Tutorial book and applying that stuff to my first proper app. Later I will tackle implementing user authentication (sign up, sign in, sign out) In the book it demon…

---

## [How to set up SPDY Protocol over Nginx?](https://www.ruby-forum.com/t/how-to-set-up-spdy-protocol-over-nginx/227035)

<div class="topic-metadata">

**Author:** [@deepak-kumar](https://www.ruby-forum.com/u/deepak-kumar)\
**Replies:** 5\
**Last updated:** [March 1, 2013, 12:57pm UTC](https://www.ruby-forum.com/t/how-to-set-up-spdy-protocol-over-nginx/227035 "2013-03-01T12:57:00Z")

</div>

Hi Guys I am having problem setting up the SPDY protocol for my rails app over nginx. Here is the complete detail of the setup on stacjoverflow. Posting it here so that it can have a bigger audience. I can copy pas…

---

## [Best approach for ocean ship tracking or similar](https://www.ruby-forum.com/t/best-approach-for-ocean-ship-tracking-or-similar/216785)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [February 14, 2012, 5:38pm UTC](https://www.ruby-forum.com/t/best-approach-for-ocean-ship-tracking-or-similar/216785 "2012-02-14T17:38:49Z")

</div>

Say you have a web page that is supposed to continuously update the positions of ships in the ocean or something similar. I am wondering what is a good approach for this ? The page updates automatically without the us…

---

## [Hashery v1.5.0 released](https://www.ruby-forum.com/t/hashery-v1-5-0-released/213769)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [December 29, 2011, 11:28am UTC](https://www.ruby-forum.com/t/hashery-v1-5-0-released/213769 "2011-12-29T11:28:44Z")

</div>

Hashery 1.5.0 has been released. The Hashery is a collection of Hash-like classes, spun-off from the original Ruby F.s library. Included are the widely used OrderedHash, the related but more featured Dictionary class,…

---

## [Can't fix "No input file specified." with php-fastcgi](https://www.ruby-forum.com/t/cant-fix-no-input-file-specified-with-php-fastcgi/211456)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [September 4, 2011, 11:14pm UTC](https://www.ruby-forum.com/t/cant-fix-no-input-file-specified-with-php-fastcgi/211456 "2011-09-04T23:14:47Z")

</div>

I’ve been trying to fix this pesky error for a couple days and no forums or anything is suggesting anything that is helping. I simply just need someone to login to my EC2 instance and figure out what’s going on. I’ve …

---

## [\[Ruby 1.9 - Bug #5081\]\[Open\] LionでTestSyslog が一件 failure](https://www.ruby-forum.com/t/ruby-1-9-bug-5081-open-lion-testsyslog-failure/209799)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [July 29, 2011, 8:25am UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-5081-open-lion-testsyslog-failure/209799 "2011-07-29T08:25:29Z")

</div>

Issue #5081 has been reported by Motohiro KOSAKI. Bug #5081: LionでTestSyslog が一件 failure Author: Motohiro KOSAKI Status: Open Priority: Low Assignee: Category: Target version: 1.9.3 ruby -v: - Lionからsyslogの書式が…

---

## [Feature request: easier final constant access](https://www.ruby-forum.com/t/feature-request-easier-final-constant-access/209524)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [July 20, 2011, 3:42am UTC](https://www.ruby-forum.com/t/feature-request-easier-final-constant-access/209524 "2011-07-20T03:42:48Z")

</div>

Hello. At times I “wish” to more easily port java code straight over to jruby. Ex: BorderLayout.SOUTH Could I make a feature request that for each public static constant, a getter method be created or faked? I’d be…

---

## [Decimation Rate with a fraction part](https://www.ruby-forum.com/t/decimation-rate-with-a-fraction-part/204039)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [March 5, 2011, 8:56am UTC](https://www.ruby-forum.com/t/decimation-rate-with-a-fraction-part/204039 "2011-03-05T08:56:06Z")

</div>

Hi all, I would like to get an output of 16.3676 Ms/s. Is it then possible to set a decimation values of 6.109631223? I am wondering whether decimation values have to be whole numbers, or whether decimation values w…

---

## [Greeting and a question](https://www.ruby-forum.com/t/greeting-and-a-question/201084)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [January 20, 2011, 5:13pm UTC](https://www.ruby-forum.com/t/greeting-and-a-question/201084 "2011-01-20T17:13:00Z")

</div>

Hi everyone, I am a newcomer on this list and would like to first introduce myself. I am a HW design engineer with over 20 years of experience in designing various electronic and systems including a working base stat…

---

## [Hack-up](https://www.ruby-forum.com/t/hack-up/187188)

<div class="topic-metadata">

**Author:** [@ialuronico](https://www.ruby-forum.com/u/ialuronico)\
**Replies:** 5\
**Last updated:** [May 7, 2010, 2:38pm UTC](https://www.ruby-forum.com/t/hack-up/187188 "2010-05-07T14:38:23Z")

</div>

Salve a tutti, ad inizio Maggio ci sara’ un nuovo Hack-up con qualche piccola novita’ rispetto alle passate edizioni. L’ Hack-up e’ un incontro per permettere alle persone di confrontarsi e di creare qualcosa di nuov…

---

## [\[FYI\] RedBridge (JRuby Embed), what are new and improved in JRuby 1.5.0RC1](https://www.ruby-forum.com/t/fyi-redbridge-jruby-embed-what-are-new-and-improved-in-jruby-1-5-0rc1/187166)

<div class="topic-metadata">

**Author:** [@Yoko\_H](https://www.ruby-forum.com/u/Yoko_H)\
**Replies:** 5\
**Last updated:** [April 20, 2010, 1:30am UTC](https://www.ruby-forum.com/t/fyi-redbridge-jruby-embed-what-are-new-and-improved-in-jruby-1-5-0rc1/187166 "2010-04-20T01:30:36Z")

</div>

Hi RedBridge users, Since the last release, RedBridge (JRuby Embed) had a log of changes. Some of them might affect on your code. So, please see my blog post, yokolet's notelets: RedBridge, what are new and improved i…

---

## [Jruby Support](https://www.ruby-forum.com/t/jruby-support/184527)

<div class="topic-metadata">

**Author:** [@jgrewal](https://www.ruby-forum.com/u/jgrewal)\
**Replies:** 5\
**Last updated:** [March 4, 2010, 2:18am UTC](https://www.ruby-forum.com/t/jruby-support/184527 "2010-03-04T02:18:01Z")

</div>

Is anyone aware of any paid jruby support group? Thanks, Jaspreet View this message in context: http://old.nabble.com/Jruby-Support-tp27773111p27773111.html Sent from the JRuby - User mailing list archive at Nabble.…

---

## [Do you still Write Tests First on code that is churning hard?](https://www.ruby-forum.com/t/do-you-still-write-tests-first-on-code-that-is-churning-hard/183741)

<div class="topic-metadata">

**Author:** [@erik](https://www.ruby-forum.com/u/erik)\
**Replies:** 5\
**Last updated:** [February 19, 2010, 1:23pm UTC](https://www.ruby-forum.com/t/do-you-still-write-tests-first-on-code-that-is-churning-hard/183741 "2010-02-19T13:23:29Z")

</div>

Hello Specmeisters! I have a bit of a philosophical question for the TDD witches and wizards out there. I’m working on some code that is really churning… It’s doing complicated calculations, but the actual desired r…

---

## [What's String.hash](https://www.ruby-forum.com/t/whats-string-hash/181135)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 5\
**Last updated:** [January 6, 2010, 11:07pm UTC](https://www.ruby-forum.com/t/whats-string-hash/181135 "2010-01-06T23:07:49Z")

</div>

irb(main):038:0\* x=“hello” =\> “hello” irb(main):039:0\> x.object\_id =\> 69352346 irb(main):040:0\> x.hash =\> 267522041 irb(main):041:0\> y=“hello”.intern =\> :hello irb(main):042:0\> y.object\_id =\> 246184 irb(main):0…

---

## [Code Review: Fix for File.print misbehavior](https://www.ruby-forum.com/t/code-review-fix-for-file-print-misbehavior/168086)

<div class="topic-metadata">

**Author:** [@shayfriedman](https://www.ruby-forum.com/u/shayfriedman)\
**Replies:** 5\
**Last updated:** [May 16, 2009, 8:32am UTC](https://www.ruby-forum.com/t/code-review-fix-for-file-print-misbehavior/168086 "2009-05-16T08:32:17Z")

</div>

Commit Description: Using the File.print method after the global input record separator had been changed generated a different output than the MRI. For example, consider the next code block: $\\ = “\>\>” file = File.o…

---

## [Convert from DateTIme to Time](https://www.ruby-forum.com/t/convert-from-datetime-to-time/163178)

<div class="topic-metadata">

**Author:** [@loader](https://www.ruby-forum.com/u/loader)\
**Replies:** 5\
**Last updated:** [March 18, 2009, 3:27pm UTC](https://www.ruby-forum.com/t/convert-from-datetime-to-time/163178 "2009-03-18T15:27:42Z")

</div>

Hello :slight\_smile: How can I convert from DateTIme to Time? Thank you!

---

## [Do people write specs for the code in their steps? How?](https://www.ruby-forum.com/t/do-people-write-specs-for-the-code-in-their-steps-how/156565)

<div class="topic-metadata">

**Author:** [@erik](https://www.ruby-forum.com/u/erik)\
**Replies:** 5\
**Last updated:** [January 18, 2009, 3:00pm UTC](https://www.ruby-forum.com/t/do-people-write-specs-for-the-code-in-their-steps-how/156565 "2009-01-18T15:00:02Z")

</div>

The approach I like to take is to follow the guidance of the system (cucumber + rspec) every step of the way. Right now there are no passing steps, so I’d write the code for the 1st pending step, run the features and…

---

## [\[cucumber\] screenshot upon exception](https://www.ruby-forum.com/t/cucumber-screenshot-upon-exception/156215)

<div class="topic-metadata">

**Author:** [@aidy\_lewis](https://www.ruby-forum.com/u/aidy_lewis)\
**Replies:** 5\
**Last updated:** [December 24, 2008, 12:59am UTC](https://www.ruby-forum.com/t/cucumber-screenshot-upon-exception/156215 "2008-12-24T00:59:06Z")

</div>

Hi, I am using Cucumber in combination with tests that drive the actual browser. Is there a place where I can easily trap an exception and take a screenshot of the browser? Regards Aidy

---

## [Comparisons between mod\_ruby and FastCGI](https://www.ruby-forum.com/t/comparisons-between-mod-ruby-and-fastcgi/154404)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 5\
**Last updated:** [November 29, 2008, 8:56am UTC](https://www.ruby-forum.com/t/comparisons-between-mod-ruby-and-fastcgi/154404 "2008-11-29T08:56:34Z")

</div>

Hello all, I’m a new Ruby on Rails developer who is working on applications for several different clients using the Ruby on Rails framework. The question that I’ve got to pose all of you concerns the differences betw…

---

## [Polymorphic\_url](https://www.ruby-forum.com/t/polymorphic-url/148063)

<div class="topic-metadata">

**Author:** [@pierreva](https://www.ruby-forum.com/u/pierreva)\
**Replies:** 5\
**Last updated:** [September 10, 2008, 1:38pm UTC](https://www.ruby-forum.com/t/polymorphic-url/148063 "2008-09-10T13:38:12Z")

</div>

Bonjour à tous, Je ne comprends pas le fonctionnement de polymorphic\_url, j’ai l’impression que les choses ne se passent pas comme dans la documentation. Dans mon routes.rb, j’ai : map.resources :books do |books| b…

---

## [Warbler deployed into Websphere app. server question](https://www.ruby-forum.com/t/warbler-deployed-into-websphere-app-server-question/144755)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 5\
**Last updated:** [August 2, 2008, 7:36am UTC](https://www.ruby-forum.com/t/warbler-deployed-into-websphere-app-server-question/144755 "2008-08-02T07:36:37Z")

</div>

All, This is a Warbler question and I couldn’t find a place for just Warbler questions, so I’m asking here (please tell me where I should post if this is the wrong place). I have successfully used Warbler to deploy a…

---

## [TextMate y Rails 2.0](https://www.ruby-forum.com/t/textmate-y-rails-2-0/127716)

<div class="topic-metadata">

**Author:** [@fernan2](https://www.ruby-forum.com/u/fernan2)\
**Replies:** 5\
**Last updated:** [January 31, 2008, 8:05pm UTC](https://www.ruby-forum.com/t/textmate-y-rails-2-0/127716 "2008-01-31T20:05:50Z")

</div>

Una para los maqueros: El TextMate me sigue trabajando con .rhtml, en vez de con .html.erb; Â¿sabÃ©is alguna forma SENCILLA de cambiarlo, o si ha salido alguna actualizaciÃ³n?

---

## [REST: Creando un index.xml](https://www.ruby-forum.com/t/rest-creando-un-index-xml/126252)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 5\
**Last updated:** [January 17, 2008, 12:33pm UTC](https://www.ruby-forum.com/t/rest-creando-un-index-xml/126252 "2008-01-17T12:33:16Z")

</div>

Hola, me gustarÃ­a apaÃ±ar mi propio Ã­ndice para una aplicaciÃ³n REST, que responda a index.html y a index.xml. Este Ã­ndice muestra una breve lista de enlaces a los recursos a los que se puede acceder. Sin embargo, …

---

## [How do I intercept creation of fundatmental types, eg. \[\]](https://www.ruby-forum.com/t/how-do-i-intercept-creation-of-fundatmental-types-eg/107446)

<div class="topic-metadata">

**Author:** [@mobiledurant](https://www.ruby-forum.com/u/mobiledurant)\
**Replies:** 5\
**Last updated:** [June 22, 2007, 1:52am UTC](https://www.ruby-forum.com/t/how-do-i-intercept-creation-of-fundatmental-types-eg/107446 "2007-06-22T01:52:21Z")

</div>

Hi, I’m new to ruby and I love the introspection and metaprogramming capabilities. However, I’m having a problem. I want to count the number of arrays created. I can only intercept and redefine explicit calls to Arra…

---

## [Integer#prime\_division $B$H(B Prime](https://www.ruby-forum.com/t/integer-prime-division-b-h-b-prime/106194)

<div class="topic-metadata">

**Author:** [@TOYOFUKU\_Chikanobu](https://www.ruby-forum.com/u/TOYOFUKU_Chikanobu)\
**Replies:** 5\
**Last updated:** [June 8, 2007, 8:42pm UTC](https://www.ruby-forum.com/t/integer-prime-division-b-h-b-prime/106194 "2007-06-08T20:42:01Z")

</div>

e$BK-J!$G$9!#e(B ((2\*\*17-1)2).prime\_division e$B$KHf$Y$Fe(B ((219-1)\*\*2).prime\_division e$B$N;~4V$,0\[MM$K$+$+$k$N$GD4$Y$?$H$3$me(B Integer#prime\_division e$B$NCf$Ne(B ps = Prime.new e$B$+$iAG?tNs$r@8@.$9$k$N$K%3%9%…

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

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