Tagged Questions
Ruby is a multi-platform open-source dynamic object-oriented interpreted language created by Yukihiro Matsumoto (Matz) in 1993.
8
votes
0answers
285 views
Sidekiq not deallocating memory after workers have finished
I have about six Sidekiq worker which perform JSON crawling. Dependent on the endpoint's dataset size they finish between 1min and 4h. Especially, watching the long one, which takes 4h, I see a very ...
7
votes
0answers
438 views
shared memory with ruby 2.0 copy-on-write friendly
Ruby 2.0 introduces a copy-on-write friendly garbage collector. My processes don't seem to keep memory shared for more than a few minutes - it seems to move from
shared_dirty to private_dirty quite ...
7
votes
0answers
273 views
Including Shoes in Shoes package
I've been having a problem with including Shoes in a Shoes app for Windows. The packager tool works perfectly when I don't ask to include Shoes in the app: I get an .exe that, if launched on a ...
5
votes
0answers
335 views
Using Launchd with Mavericks and Ruby
Upgraded to Mavericks and now launchd / Lingon is unable to launch Ruby scripts. I have the files set to be executable (using chmod +x), and have the first lines set to
#!/usr/bin/ruby
However, I ...
4
votes
0answers
110 views
RubyCAS with a persistent single ticket & Sinatra
Alright, I'm a huge RubyCAS noob, and this is driving me crazy.
I have installed the rubycas-client gem, and have followed along with the official Sinatra setup at this repo. The way this setup is ...
4
votes
0answers
394 views
Chef-solo installs wrong version of postgresql
My question is extremely similar to this one, I'm also trying to install PostgreSQL with chef on a Vagrant VM(ubuntu 12.04). I also use Opscode postgresql cookbook.
But I don't think that marked ...
4
votes
0answers
522 views
Net::ReadTimeout on headless Firefox Watir-WebDriver cukes
I started running into tons of these errors today:
Net::ReadTimeout (Net::ReadTimeout)
/usr/local/rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/protocol.rb:158:in `rescue in rbuf_fill'
...
4
votes
0answers
2k views
Running ruby gems on Windows
I am on Windows 7 and want to use http://hospice.io/. This requires Ruby gem librarian so I installed ruby 2.0 using http://rubyinstaller.org/ then downloaded RubyGems 1.8.25 from ...
4
votes
0answers
281 views
EventMachine and em-websocket - reading from a queue and pushing to a channel
I'm using eventmachine to read from a HornetQ topic, push to a Channel which is subscribed to by EM websocket connections. I need to prevent the @topic.receive loop from blocking, so have created a ...
4
votes
0answers
428 views
Ruby.h no such file or directory parser.o Error
Using Rails 3.1 and a new app, when go to run bundle install I got the following errors
Installing json<1.7.3> with native extensions
Error: Failed to build gem native extension.
Creating ...
3
votes
0answers
49 views
Seeds database every time I run rails server
I know to seed the database, I run rake db:seed and everything. I have my seeds.rb file all set up:
users = [{:name => 'User1 Lastname', :email => '[email protected]', :password => ...
3
votes
0answers
188 views
Rails dynamic finders occassionally do not work
I have a problem where the dynamic finders used in my Ruby on Rails application almost always work, but very rarely a NoMethodError will be thrown.
Here is a copy of the exception stack from when ...
3
votes
0answers
126 views
can't dump anonymous class #<Module -error on caching in rails 3
I am getting can't dump anonymous class error.
I have the following methods in my model.
def seating_for(active)
ln = cache(col("lu", active)) do
self.seat_list_for(active).where(seat_id: ...
3
votes
0answers
224 views
Ruby on Rails Routing Alias
I'm trying to add a route alias to a ruby on rails app. Here is my existing routing file:
scope "/blog" do
resources :tags, :path => :tags, :as => :tags, :only => [:index, :show] do
...
3
votes
0answers
326 views
to_specs': Could not find chef (>= 0) amongst [] (Gem::LoadError)
I am trying to install chef and knife ec2 plugin on my laptop to set up the workstation. Initially I use chef omnibus to install chef-client but after installing I encountered some problems, so a ...