» Home » Ruby » Page 2
Computationally Intensive Ruby Calc for Rails App - Extract to Pure Ruby & Filesystem?
by Tim Tyrrell in Programming Languages

Good afternoon,

I am developing a Rails application where I can vastly speed up the site by doing a bunch of pre-calculations and storing the results to the database, rather than performing the calculation when requested by the user.

(Note that I am talking about millions of iterations from hundreds of thousands of database rows. My estimation is that to complete all

How to post, create events and invite friends on Facebook using Ruby? May be Ruby on Rails
by piratus in Programming Languages

Is there any interface or a gem that is useful for a Ruby/Ruby on Rails developer for:

Posting posts;
Sending invatation to friends;
Create events on Facebook

Ruby environment messed up, How to uninstall ruby-gems-rails from Leopard?
by Boyer C. in Programming Languages

my ruby environment in my mac Leopard is all messed up. And I want to uninstall the entire ruby, gem stack and install them again from scratch. How can I do it ?please point me towards a good resource on the net.


Howto get include directories (ruby.h) for Linux Ruby C extension project?
by SystemOverclock in Operating Systems

I'm using scons to build a linux C based ruby extension. What is the "right" way to get the include paths right? By "right" I mean it works out of the box on 1.9 and 1.8.

I don't want to use the mkmf/Makefile solution.

Thanks! Dave

RUBY ON RAILS - “msvcrt-ruby18.dll was not found” with Ruby
by john3850 in Programming Languages

i am using:
windows 7
rails 3.0

whenever i try to run rake db:migrate. i get the following error in popup...

This application has failed to start because msvcrt-ruby18.dll was not found. Re-installing the application may fix the problem.

need help here..

Ruby on Rails Permission denied - /root/.bundle/ruby/1.8/specifications
by chintown in Programming Languages

I'm trying to install teambox on ruby. I am running passenger and getting this error:

Permission denied - /root/.bundle/ruby/1.8/specifications

I tried the following
chown teambox directory to teambox user
chown /root/.bundle/ruby/1.8/specifications to teambox user.

Please help!

Problems installing Ruby on Mountain Lion - ruby 1.9.3 wont' compile
by dmxlite in Development Tools & Services

I have seen a number of posts on this before and have followed their instructions but nothing is working. I'll outline below what I have done, and the instructions I have follows - would be grateful for any advice!

I have followed the following installation instructions:

I have downloaded X-code for O

Ruby on Rails ActiveSupport or plain Ruby way of merging arrays into a hash
by Vlad Sirenko in Programming Languages

What's a smart way of using ActiveSupport or perhaps regular built in Ruby functionality to take two arrays and merge them into a hash where each element in an array matches the element in a parallel array? imagine two arrays:

names = ["Danny", "Johnny"]
ages = ["25", "32"]

The end result should be a hash that looks like:

{"Danny" => "2

How can ruby do this task (Case-insensitive string search & replace in Ruby)?
by rbrewer in Programming Languages

I have some problem with replace string in Ruby.

My Original string : What the human does is not like what animal does.

I want to replace to: ==What== the human does is not like ==what== animal does.

I face the problem of case sensitive when using gsub. (eg. What , what) I want to keep original text.

any solution?

ruby-1.9.3-p194/lib/ruby/1.9.1/csv.rb:1855:in `sub!': invalid byte sequence in UTF-8 (ArgumentError)
by gnirpaz in Programming Languages

I'm not sure how to debug this...

ruby-1.9.3-p194/lib/ruby/1.9.1/csv.rb:1855:in `sub!': invalid byte sequence in UTF-8 (ArgumentError)

Any suggestions? Should I try to convert the file first?

Prev          Next
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2014 © bighow.org All Rights Reserved .