osx-yosemite

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

天涯浪子 提交于 2019-11-27 06:11:59
After installing Yosemite, I was unable to run brew or ruby. I was getting this error on brew update: /usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory /usr/local/bin/brew: line 23: /usr/local/Library/brew.rb: Undefined error: 0 getting this error on irb: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:245:in mkdir': Permission denied - /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14 (Errno::EACCES) from /System/Library/Frameworks/Ruby

PhantomJS: getting “Killed: 9” for anything I'm trying

让人想犯罪 __ 提交于 2019-11-27 05:23:09
问题 Just installed phantomjs, mac os x yosemite. Whenever I run /bin/phantomjs, with any parameter, I get Killed: 9 . Any idea? 回答1: re: running phantomjs on osx yosemite, download the build/fix found at: https://github.com/eugene1g/phantomjs/releases original issue: https://github.com/ariya/phantomjs/issues/12928 回答2: Install UPX. UPX is an executable packer and unpacker $ brew install upx Unpack the phantomjs executable $ upx -d phantomjs-2.0.0-macosx/bin/phantomjs Run the phantomjs executable

How to enable FinderSync Extension in macOS System Preferences

白昼怎懂夜的黑 提交于 2019-11-27 02:21:24
问题 I am integrating FinderSync Extension in my Cocoa Application to show badges in files and folders. Look at the below two scenario: When i run application using FinderSync Extension (like DemoFinderSync) look at the blue popup in the below image, in that case Extension is added in the System Preference with Check mark and called that principal class "FinderSync.m" as well. When i run application using my Application Scheme (like DemoApp) look at the blue popup in the below image, in that case

How to fix broken python 2.7.11 after OSx updates

允我心安 提交于 2019-11-27 01:21:05
问题 What happened: After an OSx update and installing a new version of python 2.7 my virtualevn environment completely broke and I struggled in fixing it. I wasn't sure what caused it and went through a whole set of things that I did and read initially that didn't work are listed below. What solved my problem is provided in the answer section. What didn't work to fix virtualenv command not found: Installed python through homebrew and then used pip to install virtualenv Installed python through

Anaconda Python: where are the virtual environments stored?

跟風遠走 提交于 2019-11-27 01:06:03
问题 I am new to Anaconda Python and I am setting up a project in Sublime Text 3. I have installed Anaconda and created a virtual environment using: conda create -n python27 python=2.7 anaconda conda create -n python35 python=3.5 anaconda I am having trouble setting up the Virtualenvs plugin for SublimeText 3. When I try, it asks me for a virtualenvs path which I give: ~/users/../anaconda/envs/python27 Then it asks for what I'm assuming is a path to a python distribution because it lists file

Error installing nokogiri: Failed to build gem native extension & libiconv is missing (OSX)

笑着哭i 提交于 2019-11-27 00:16:42
问题 I try to clone this repo and run bundle install . The bundle process failed and throw this error: ... Installing nokogiri 1.6.2.1 with native extensions Building nokogiri using packaged libraries. Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /Users/zulhilmizainudin/.rvm/rubies/ruby-2.2.0/bin/ruby -r ./siteconf20151130-43880-pntnc6.rb extconf.rb Building nokogiri using packaged libraries. ----- libiconv is missing. please visit http://nokogiri.org/tutorials/installing

--resource-rules has been deprecated in mac os x >= 10.10

一个人想着一个人 提交于 2019-11-27 00:02:46
问题 I tried to resign my ipa file with new provisioning profile on Mac Os 10.10 with iResign app but I got this warning: "Warning: --resource-rules has been deprecated in Mac OS X >= 10.10". What should I do now? 回答1: I found workaround : if you run the iResign app from XCode — then you will resign app without problem (warning will appears in console instead of popup). But if you close XCode and run app alone — then popup will back to you! BTW: bug found :) The condition if (systemVersionFloat <

RegEx with Excel VBA on Mac

99封情书 提交于 2019-11-26 23:40:10
问题 I need to use regEx with Excel VBA. I'm using Mac OS 10.10 and Office 2011. So there is no DLL file I can use. What is there to do here? I read I've to bind an apple script. How is this done and what content does this script need? 回答1: Natively, you can't really - AppleScript isn't actually that good for this kind of thing (where VBA is concerned) There are other libraries that you can install and use to allow support for things like regular expressions on Mac OS - the one I've seen used the

Why is my Hello World go server getting crushed by ApacheBench?

放肆的年华 提交于 2019-11-26 22:16:01
package main import ( "io" "net/http" ) func hello(w http.ResponseWriter, r *http.Request) { io.WriteString(w, "Hello world!\n") } func main() { http.HandleFunc("/", hello) http.ListenAndServe(":8000", nil) } I've got a couple of incredibly basic HTTP servers, and all of them are exhibiting this problem. $ ab -c 1000 -n 10000 http://127.0.0.1:8000/ This is ApacheBench, Version 2.3 <$Revision: 1604373 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking 127.0.0.1 (be patient) Completed 1000

How do I edit $PATH (.bash_profile) on OSX?

对着背影说爱祢 提交于 2019-11-26 18:04:47
I am trying to edit an entry to PATH, as I did something wrong. I am using Mac OS X 10.10.3 I have tried: > touch ~/.bash_profile; open ~/.bash_profile But the file editor opens with nothing inside. My problem: I am trying to install ANDROID_HOME to my PATH I misspelled it, but when I closed the terminal and went back it was gone, so I tried again: export ANDROID_HOME=/<installation location>/android-sdk-macosx export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools This time, I typed the command correctly but, when I closed the terminal, my settings disappeared again. How do I