osx-elcapitan

can not modify PATH with putenv() running MAMP / PHP 5.6.1 / Mac OS X El Capitan

柔情痞子 提交于 2019-12-22 09:59:56
问题 Config: MAMP Pro PHP 5.6.1 Mac OS X El Capitan I need to add /user/local/bin to the system paths php can access I've tried to use putenv() but it seems like I can't change the value of environment variable PATH in php using putenv() putenv('PATH=' . '/user/local/bin' . PATH_SEPARATOR . getenv('PATH') ); does not change the value this works with other variables PATH seems to be protected and I can not figure out where I can unprotect it - php ini settings do not seem to have anything regarding

“Too many open files” when executing gatling on Mac

时光毁灭记忆、已成空白 提交于 2019-12-22 08:19:40
问题 When executing gatling (load test tools) from shell on Mac iOS (El Capitan) on my Macbook Pro 15 ' (16 Giga of RAM, 4 physical cores), i've the error "Too many open files". I spend days to fix this problem, without any success : I created a file in /Library/LaunchDaemons/limit.maxfiles.plist with a XML file content copied from the web, no result. sudo ulimit -n 15000 doesn't work. I created a file /etc/sysctl.conf with the following content kern.maxfiles=20480 kern.maxfilesperproc=20480 I

Xcode 7 run on Mac OSX 10.10 Yosemite

大兔子大兔子 提交于 2019-12-22 02:03:42
问题 Am I missing something or Xcode 7 should run only on new(beta) OSX 10.11 El Capitan? I downloaded beta and after some code changes to comply with Swift 2.0 my project compiles and runs fine under OSX 10.10.3. Am I missing something or Apple changed the game somehow? 回答1: Edit: Xcode 7 runs on OS X 10.10.4 Old: Yup Xcode 7 beta runs on OS X 10.10 As stated in the release notes below About Xcode 7 beta Supported Configurations Xcode 7 beta requires a Mac running OS X 10.10. Xcode 7 beta

Xcode 7 run on Mac OSX 10.10 Yosemite

≯℡__Kan透↙ 提交于 2019-12-22 02:03:05
问题 Am I missing something or Xcode 7 should run only on new(beta) OSX 10.11 El Capitan? I downloaded beta and after some code changes to comply with Swift 2.0 my project compiles and runs fine under OSX 10.10.3. Am I missing something or Apple changed the game somehow? 回答1: Edit: Xcode 7 runs on OS X 10.10.4 Old: Yup Xcode 7 beta runs on OS X 10.10 As stated in the release notes below About Xcode 7 beta Supported Configurations Xcode 7 beta requires a Mac running OS X 10.10. Xcode 7 beta

Vim enters into visual mode on selecting text after El Capitan update

喜夏-厌秋 提交于 2019-12-21 07:12:30
问题 Issue is what the title says. Earlier I used to copy text from text files open in vim simply by selecting text and doing Ctrl + C . But now it puts me into visual mode, thus not allowing to copy the text. Its really annoying. Anybody knows any fix for this. Thanks. 回答1: You probably have the mouse mode active. You can turn it off with: :set mouse= And turn it back on with :set mouse=a If you are using iTerm, you can leave mouse mode on all the time if you want, and hold Option when you want

Getting task_for_pid() to work in El Capitan

两盒软妹~` 提交于 2019-12-21 04:31:26
问题 Years ago we wrote an application that needs to monitor resource usage of several processes. This was back in the days of Snow Leopard. The command line command ps had more than enough of what we needed so we got a copy of the source code for ps and figured out what functions they were calling and why, and then used similar calls used in ps for the basis of our project, but ours was written in Objective C, not C. This was NOT a ps copy we simply based the modeling of the code on how ps got

Getting task_for_pid() to work in El Capitan

放肆的年华 提交于 2019-12-21 04:31:12
问题 Years ago we wrote an application that needs to monitor resource usage of several processes. This was back in the days of Snow Leopard. The command line command ps had more than enough of what we needed so we got a copy of the source code for ps and figured out what functions they were calling and why, and then used similar calls used in ps for the basis of our project, but ours was written in Objective C, not C. This was NOT a ps copy we simply based the modeling of the code on how ps got

Installing Tensorflow 1.10 on El Capitan 10.11.6

北城余情 提交于 2019-12-21 03:43:28
问题 I am trying to install tensorflow 1.10 on my old mac, but I run into the same problem every time. As soon as I start the python shell and I do get the error below. I did try to install it in a virtualenv first, after that, I tried to install it just using pip and got the same error. Also when I tried to install it with conda, the same issue again. I googled and looked that up here, but couldn't solve it yet, maybe due to my noobish acting. I did uninstall anaconda and pip already and tried

In Mac OS X 10.11, Opening a VPN connection window with the command line gives me an error

我只是一个虾纸丫 提交于 2019-12-20 10:57:20
问题 On Mac OS X <= 10.10, I could run the following command to open a VPN connection window: function go-vpn { /usr/bin/env osascript <<-EOF tell application "System Events" tell current location of network preferences set VPN to service "LF VPN" if exists VPN then connect VPN repeat while (current configuration of VPN is not connected) delay 1 end repeat end tell end tell EOF } This would open the connection window (same as selecting the "LF VPN" network from the VPN dropdown). In El Capitan,

brew install npm “npm: command not found”

泪湿孤枕 提交于 2019-12-20 09:28:25
问题 I've installed node using brew install node and when I use the node -v I get following v5.0.0 . However when I try to run the npm command I get npm: command not found . I've tried to run brew install npm , however I just got following response node-5.0.0 already installed . It happened with node also returning command not found, but that I fixed by running brew link node , however npm still does not seem to work. How can I resolve this problem? 回答1: You need to make sure that your $NODE_PATH