osx-elcapitan

/etc/hosts ignored in mac El Capitan (10.11.5)

冷暖自知 提交于 2021-02-18 21:02:07
问题 I'm attempting to redirect an existing web address to a remote machine on my subnet. To do that, I put the following into /etc/hosts 192.168.1.249 holub.com and flush the DNS cache with sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder However, when I ping holub.com (the most reliable way that I know to see how the address is actually resolved), I see the real web address (204.13.10.74), not the one specified in /etc/hosts (192.168.1.249). Interestingly, the mysqladmin utility does

/etc/hosts ignored in mac El Capitan (10.11.5)

大兔子大兔子 提交于 2021-02-18 21:02:03
问题 I'm attempting to redirect an existing web address to a remote machine on my subnet. To do that, I put the following into /etc/hosts 192.168.1.249 holub.com and flush the DNS cache with sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder However, when I ping holub.com (the most reliable way that I know to see how the address is actually resolved), I see the real web address (204.13.10.74), not the one specified in /etc/hosts (192.168.1.249). Interestingly, the mysqladmin utility does

How can I disable Bash sessions in OS X El Capitan

我只是一个虾纸丫 提交于 2021-02-17 07:52:42
问题 A seemingly new feature in OS X El Capitan (10.11 Beta) is Bash sessions (Terminal sessions). I now have a ~/.bash_sessions directory with history files, and my HISTFILE and HISTIGNORE envars are being overridden. How can I disable all of this functionality? 回答1: This behavior is defined in /etc/bashrc_Apple_Terminal . It contains documentation comments describing what it does and how to customize it. You can disable the per-terminal-session command history feature by setting SHELL_SESSION

How can I disable Bash sessions in OS X El Capitan

一曲冷凌霜 提交于 2021-02-17 07:52:19
问题 A seemingly new feature in OS X El Capitan (10.11 Beta) is Bash sessions (Terminal sessions). I now have a ~/.bash_sessions directory with history files, and my HISTFILE and HISTIGNORE envars are being overridden. How can I disable all of this functionality? 回答1: This behavior is defined in /etc/bashrc_Apple_Terminal . It contains documentation comments describing what it does and how to customize it. You can disable the per-terminal-session command history feature by setting SHELL_SESSION

sudo mkdir in /usr/, Operation not permitted. El Capitan [closed]

佐手、 提交于 2021-02-16 04:20:22
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 1 year ago . Improve this question Attempting to install PHP, which requires the creation of an extensions directory within /usr/lib/php/extensions . The installation returned an error "Operation not permitted". I have since found out, sudo is not able to create any directories under /usr/ . Anyone

sudo mkdir in /usr/, Operation not permitted. El Capitan [closed]

南楼画角 提交于 2021-02-16 04:20:12
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 1 year ago . Improve this question Attempting to install PHP, which requires the creation of an extensions directory within /usr/lib/php/extensions . The installation returned an error "Operation not permitted". I have since found out, sudo is not able to create any directories under /usr/ . Anyone

sudo mkdir in /usr/, Operation not permitted. El Capitan [closed]

天涯浪子 提交于 2021-02-16 04:19:06
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 1 year ago . Improve this question Attempting to install PHP, which requires the creation of an extensions directory within /usr/lib/php/extensions . The installation returned an error "Operation not permitted". I have since found out, sudo is not able to create any directories under /usr/ . Anyone

How to get the path to the current MacOSX SDK when only Command Line Tools are installed?

断了今生、忘了曾经 提交于 2021-02-07 08:27:56
问题 We are trying to locate the current platform SDK used by some of our OSX machines (10.11). On those machines, only the Command Line Tools are installed , not the full blown Xcode app. Looking up on SO, we were able to find the command xcrun --show-sdk-path , which prints out an empty line. On the other hand, xcrun --show-sdk-version correctly shows 10.11 . Is there a way to locate the path to the SDK used by our compilation tasks ? 回答1: How about xcode-select --print-path The man page says:

Pygame window not receiving keyboard events on Mac

女生的网名这么多〃 提交于 2021-02-04 16:16:28
问题 I am running this very simple tutorial on Pygame: https://www.youtube.com/watch?v=xh4SV3kF-zk I can't get keyboard events to be recognised by the game window. I have read a number of similar questions about this, but the answers don't seem right for Macs. I am using miniconda and it might be that I need to quit the virtualenvironment? I don't understand how to do that tho. Or maybe I need to set the focus to my window - but I don't know how to do that either. This must be an issue lots of

NSWorkspace SetIcon not updating application icon on El Capitan

狂风中的少年 提交于 2021-01-27 23:41:42
问题 I am using NSWorkSpace SetIcon:forFile:options: for changing application icon. On Yosemite it is working fine. However on El Capitan application icon is not updating. 回答1: You are not alone. Try to set nil icon first and then your icon: [[NSWorkspace sharedWorkspace] setIcon:nil forFile:path options:0] [[NSWorkspace sharedWorkspace] setIcon:image forFile:path options:0]; 回答2: I was facing the same problem on OSx 10.14.6. I use the workaround where we set the icon after a delay after creating