How to get Ruby / Homebrew / RVM to work on Yosemite?

This error can easily be fixed in the following steps: 1) Open terminal 2) Type nano /usr/local/Library/brew.rb 3) In the first line change “1.8″ to “Current”, so it should look like this: #!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby -W0 via http://blog.ic3man.gr/2014/06/homebrew-ruby-bad-interpreter-no-such-file-or-directory/

`Apache` `localhost/~username/` not working

Looks like you need to uncomment the following: #LoadModule userdir_module libexec/apache2/mod_userdir.so and #Include /private/etc/apache2/extra/httpd-userdir.conf Then in httpd-userdir.conf you may need to uncomment: #Include /private/etc/apache2/users/*.conf Lastly you would need to create /private/etc/apache2/users/kevin.conf if it doesn’t exist. I think it should look something like this: <Directory “/Users/kevin/Sites/”> Options Indexes MultiViews AllowOverride None Require all granted </Directory> Make … Read more

Anaconda Python: where are the virtual environments stored?

If you activate the environment you’re interested in, you can find that answer in the environment variables. on MacOS/Linux: source activate python35 echo $CONDA_PREFIX on Windows: conda activate python35 echo %CONDA_PREFIX% You can also run conda info –envs, and that will show the paths to all your environments. To get the path to the instance … Read more

Yosemite / El Capitan php-gd + mcrypt installation

You are right, Yosemite’s built-in PHP comes without PNG and FreeType support. Update 2015/10 for El Captian: With OS X 10.11 El Capitan PNG support is back, but FreeType is still missing. Solution Use the Homebrew package manager to painlessly build and install a complete PHP and replace it in Apache’s config. The whole process … Read more