ruby-1.9
sphinx, xmlpipe2, and cassandra
I start to using cassandra and I want to index my db with sphinx. I wrote ruby script which is used as xmlpipe, and I configure sphinx to use it.[详细]
2023-01-04 06:44 分类:问答How do I replace all the values in a hash with a new value?
Let\'s say I have an arbitrarily deep nested Hash h: h = { :foo => { :bar => 1 }, :baz => 10, :quux => { :swozz => {:muux => 1000}, :grimel => 200 }[详细]
2023-01-03 22:56 分类:问答Detect encoding
I\'m getting some string data from the web, and I suspect that it\'s not always what it says it is. I don\'t know where the problem is, and I just don\'t care any more. From day one on this project I\[详细]
2023-01-03 20:20 分类:问答Taking out a subpart from Enumerable
I often want to take out a subpart from an Enumerable. The subpart is sometimes at the beginning and sometimes the end of the original Enumerable instance, and the length used to specify the subpart i[详细]
2023-01-03 09:39 分类:问答Problem with activesupport ruby 1.91 and rake
I have an installation of ruby 1.9.1 ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32] when I try and run a rake task I am getting an error:[详细]
2022-12-28 18:10 分类:问答Ruby 1.9 Ramaze App Failing with "Illegal instruction"
I\'ve got an app that I\'m trying to get working again after wiping my system and installing Snow Leopard. I installed Ruby 1.9 from Macports (now a later version) and the dev server starts 开发者_如何[详细]
2022-12-27 05:53 分类:问答Ruby: what is the pitfall in this simple code excerpt that tests variable existence
I\'m starting with Ruby, and while making some test samples, I\'ve stumbled against an error in the code that I don\'t understand why it happens.[详细]
2022-12-26 20:52 分类:问答installing ruby/gnome2 on ruby1.9
My purpose is to install ruby/gnome2 and make it work with ruby1.9 on Ubuntu9.10. I already have ruby/gnome2 working with ruby1.8, but I need to make it work with ruby1.9. I also have ruby1.9 working[详细]
2022-12-26 05:15 分类:问答Paperclip and tempfile with Rails
I\'m tryi开发者_高级运维ng to write a rails application where users can upload images, but Paperclip doesn\'t seem to be working for me.[详细]
2022-12-24 02:36 分类:问答_mask and Rails
So I am trying to get the cancan gem to work with my rails 3 app and I\'ve hit a problem. I tried to copy the code that Ryan Bates (the creator of the gem) used in his screen cast, but I get an error[详细]
2022-12-24 01:07 分类:问答
加载中,请稍侯......