ruby-1.8
Permutation gem
I am trying to get a list of strings that are permutations of letters, 开发者_Python百科numbers and the dash that vary in length from 1 to 63.[详细]
2023-03-09 13:38 分类:问答Is there an equivalent of Array#each_slice() in Ruby 1.8.5?
I\'m using ruby 1.8.5, and the each_slice() method for an array is not working. My code is something like:[详细]
2023-03-07 14:17 分类:问答How to get character's Unicode in Ruby 1.8.7?
To get character\'s Unicode in Ruby 1.9.2, I use ord: \"я\".ord# => 1103(It\'s a Ru开发者_如何转开发ssian letter)[详细]
2023-03-05 07:48 分类:问答Text Field in Rails whose size increases dynamically
I am trying to implement a groups feature similar to that of Facebook in my project. I am using Rails 2.0.2 and Ruby 1.8.7 for project specific purposes. I am using Ubuntu 10.04 OS.[详细]
2023-03-03 16:58 分类:问答Does Ruby 1.8.7 head support 1.9-style hash literals?
According to http://redmine.ruby-lang.org/issues/1183 , Ruby 1.9\'s {foo: 开发者_开发技巧42} apparently was back-ported to Ruby 1.8. But I tried running ruby-1.8.7-head using RVM, and I got the standa[详细]
2023-02-24 07:14 分类:问答Stopping a Distributed Ruby Service
I have a script that starts up a DRb service, before spawning a handler object and waiting via DRb.thread.join. I would like the script to run until explicitly killed, so I added[详细]
2023-02-20 02:36 分类:问答Implementing auto complete for more than one field in Rails
I have an app, which implements a group feature. Each group has n members. Also, each group has a group specific profile pic to it.[详细]
2023-02-19 06:17 分类:问答Handling string encoding with the same code in Ruby 1.8 and 1.9
I\'ve got a gem that\'s used a bunch of people using a bunch of different Ruby interpreters, and it includes what boils down to this code:[详细]
2023-02-18 02:36 分类:问答Why does this named_scope create a NoMethodError?
I don\'t see where this code is creating this NoMethodFound error, and would really like any helpful suggestions.[详细]
2023-02-16 20:46 分类:问答How to unwind (multi-level return) the stack without catch/try/raise?
I would like to unwind the stack to an arbitrary level when catch/try is not available (i.e., the code to which I\'m unwinding is out of my control). Is this possible?[详细]
2023-02-10 09:45 分类:问答
加载中,请稍侯......