osx-yosemite
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/
RegEx with Excel VBA on Mac
You can use VBA’s Like operator. It’s a very limited regex tester only. Microsoft Word has it’s standard wildcards plus if you tick Use Wildcards it is a Regex engine (plus find words that sound the same, and words with the same root). So use Word rather than Vbscript’s RegEx. Just record a Find and … Read more
Installing libv8 gem on OS X 10.9+
This is due to the fact that OS X 10.9+ is using version 4.8 of GCC. This is not supported officially in older versions of libv8 as mentioned in the pull request (https://github.com/cowboyd/libv8/pull/95). Please try bumping up the version of libv8 in your Gemfile (or) a bundle update should suffice. From the libv8 README Bring … Read more
Why is my Hello World go server getting crushed by ApacheBench?
In short, you’re running out of ports. The default ephemeral port range on osx is 49152-65535, which is only 16,383 ports. Since each ab request is http/1.0 (without keepalive in your first examples), each new request takes another port. As each port is used, it get’s put into a queue where it waits for the … Read more
Cocoapods with Xcode 6 and 10.10 Yosemite
Open Xcode 6 Open Preferences Click the Locations tab Change the Command Line Tools version to Xcode 6.0 Uninstall cocoapods $ sudo gem uninstall cocoapods Uninstall xcodeproj $ sudo gem uninstall xcodeproj Install xcodeproj $ sudo gem install xcodeproj Install cocoapods $ sudo gem install cocoapods Run pod –version to verify that it worked
`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
pip install: Please check the permissions and owner of that directory
I also saw this change on my Mac when I went from running pip to sudo pip. Adding -H to sudo causes the message to go away for me. E.g. sudo -H pip install foo man sudo tells me that -H causes sudo to set $HOME to the target users (root in this case). So … 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