Can't install Mongo gem - make failed, exit code 1

I've installed Ruby 2.4.0 on Windows via the RubyInstaller. Ruby works fine and I've been able to install all the gems I've wanted so far. But I'm having issues installing the mongo gem. When I do gem install mongo --no-rdoc --no-ri I get the follo...
more »

2017-07-19 12:07 (1) Answers

Is there a mutable String gem in Python?

As I understand it, basic strings in python are immutable, as in LISP, and not as in, say Python/TCL/Ruby, where one can modify it many times w/o incurring the schlemiel painter algorithm My question: Is there a Python gem to achieve the same? I coul...
more »

2017-07-19 11:07 (0) Answers

Remove gems installed by old version of Ruby

A previous version of Ruby I had on my system installed gems into /usr/lib/ruby/gems/2.3.0/gems (or ~/.gem/ruby/2.3.0/gems, etc.). My current version of Ruby is 2.4.1p111 and installs gems into /usr/lib/ruby/gems/2.4.0/gems (or ~/.gem/ruby/2.4.0/gems...
more »

2017-07-18 18:07 (0) Answers

How to uninstall Nokogiri

I'm trying to install Rails on my system using: gem install rails But I got this error: Sams-MacBook-Pro-2:/ sammy$ gem install rails Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to build...
more »

2017-07-16 20:07 (2) Answers

Editing page views with Irwi Wiki gem in Rails

What's the best way to edit and format page views using Irwi Wiki in Rails? Here is the controller it's set up for me: class WikiPagesController < ApplicationController acts_as_wiki_pages_controller end Though there's no views folder corresp...
more »

2017-07-16 18:07 (2) Answers

Cannot upgrade past CocoaPods 0.39.0

I am trying to upgrade to CocoaPods 1.2.1 but cannot uninstall CocoaPods 0.39.0. I have reviewed numerous posts about this issue. Evidently 0.39.0 caused a lot of problems. I do not have enough reputation points to attach all the links I have revi...
more »

2017-07-13 00:07 (1) Answers

Unable to install Ruby gem unf_ext 0.7.4 on Ubuntu

I am having a hell of a time installing unf_ext 0.7.4 on Ubuntu. I've tried every form of Google searching you can possibly imagined and installed almost everything I could think of, here's what I've installed so far: libgmp-dev ruby-dev zlib1g-de...
more »

2017-07-12 19:07 (0) Answers

Cannot install RUBY Gem Twitter on MAC OS

I have a problem trying to install the gem twitter on MAC OS. I input the command sudo gem install twitter and got the following result : Building native extensions. This could take a while... ERROR: Error installing twitter: ERROR: Failed to ...
more »

2017-07-12 18:07 (1) Answers

Writable file in a Ruby Gem

I created a Ruby Gem executable that contains a settings.yml file where it stores some settings. These settings can be altered during runtime of the executable. On Ubuntu I installed this Gem with sudo gem install and got a write permission error wh...
more »

2017-07-12 09:07 (0) Answers

Ruby Gem adaptor MySQL error

I am getting the below error while using the MySQL gem; Tried mysql2 and it also gives the same error. -bash-4.1$ gem list *** LOCAL GEMS *** mysql (2.9.1) -bash-4.1$ ruby -v ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux] -bash-4.1$ irb...
more »

2017-07-11 12:07 (2) Answers

Nested_form gem with edit functionality

I'm looking for a rails gem with nested_form which includes the functionality to edit the created object, for example given a project with its associated tasks I want to have the possibility to select one or many tasks and edit them instead of remov...
more »

2017-07-10 10:07 (1) Answers

Implementing validations in PORO

I am trying to implement my own validations in Ruby for practice. Here is a class Item that has 2 validations, which I need to implement in the BaseClass: require_relative "base_class" class Item < BaseClass attr_accessor :price, :name def...
more »

2017-07-10 03:07 (3) Answers

Heroku doesn't work with Ruby on Rails

I'm collecting many datas with Unirest. I could collect many datas in development.So perhaps, my code doesn't be wrong. There are no errors in my logs that I see. environment ruby 2.40 ruby on rails 4.2.7 logs This is the legacy Heroku CLI. Pl...
more »

2017-07-08 16:07 (0) Answers

Get the total number of permutations in python

Okay i have written a function/method in which I do some operations after a certain if condition is failed mostly but only 1-2 times it will be true. Here is my code: def solve_current_level(self): self.remaining_possibilities = list(self.remai...
more »

2017-07-07 20:07 (1) Answers