SocketException: Address already in use MONGODB

You already have a process running in the port 27017 which is used by mongodb. So either you need to stop the process in that port or try with different port number. Try mongod –port 27018 You can change the port number of your choice. EDIT: You can also just stop all the running instances of mongo server using sudo … Read more

How to change default Python version?

updated for 2021] (Regardless if you are on Mac, Linux, or Windows:) If you are confused about how to start the latest version of python, on most platforms it is the case that python3 leaves your python2 installation intact (due to the above compatibility reasons); thus you can start python3 with the python3 command. Historically… The naming convention is that generally, most … Read more

You don’t have write permissions for the /Library/Ruby/Gems/2.3.0 directory. (mac user)

below is what I need to do. To run the specs, you’ll need to install RSpec. First, run gem install bundler in the root directory of your project. Then, run bundle install. To run a single spec file, run a command like this: bundle exec rspec spec/00_hello_spec.rb. To run all of the specs at once, run bundle exec rspec. So, … Read more

How do I upgrade to Python 3.6 with conda?

Anaconda has not updated python internally to 3.6. a) Method 1 If you wanted to update you will type conda update python To update anaconda type conda update conda If you want to upgrade between major python version like 3.5 to 3.6, you’ll have to do conda install python=$pythonversion$ b) Method 2 – Create a new environment … Read more

Updating Python on Mac

The default Python on OS X shouldn’t be messed with as it’s used by the OS itself. If your default is 2.6.1 then you must have Snow Leopard. If you just install from the standard 3.1 disk image then you can invoke it using python3.1 from the terminal (you don’t have to do any extra steps for this to … Read more

Installing Homebrew on OS X

It’s on the top of the Homebrew homepage. From a Terminal prompt: The command brew install wget is an example of how to use Homebrew to install another application (in this case, wget) after brew is already installed. Historic… Before about 2020, the command given on the Homebrew page was:

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)