macos-sierra

Remove cached software update in macOS App Store

人走茶凉 提交于 2020-01-07 09:22:26
问题 How can I remove cached software update in macOS? I assume downloaded files are corrupted (after restart the software update is stuck for hours), and would like to re-download it again. 回答1: cd $TMPDIR/../C/com.apple.appstore rm -rf * You can also try to download update from here: https://support.apple.com/kb/DL1941?viewlocale=en_US&locale=en_US And re-run it. 来源: https://stackoverflow.com/questions/47509324/remove-cached-software-update-in-macos-app-store

psutil error on macos

南楼画角 提交于 2020-01-07 03:15:08
问题 def showMemTime(when='Resources'): global maxmem # memory and time measurement process = psutil.Process(os.getpid()) mem = process.get_memory_info()[0] / float(2 ** 20) maxmem = max(maxmem, mem) ts = process.get_cpu_times() sys.stderr.write("{when:<20}: {mb:4.0f} MB (max {maxmb:4.0f} MB), {user:4.1f} s user, {system:4.1f} s system\n".format( when=when, mb=mem, maxmb=maxmem, user=ts.user, system=ts.system)) I'm trying to use the code above. But i get "AttributeError: 'Process' object has no

STS eclipse creates multiple folders inside .eclipse every time it is opened

不羁的心 提交于 2020-01-05 04:03:17
问题 Hi i asked this question before here but it did not get any answer, i restated the question. ok this is the environment. Spring Tool Suite Version: 3.8.2.RELEASE Build Id: 201610040743 Platform: Eclipse Neon.1 (4.6.1) macOs Sierra. Every time i open STS it creates a folder inside .eclipse in this format. I run this command over the folder .eclipse to ensure eclipse has the rights to write and read. chmod 777 .eclipse/ chown -R myuser:staff .eclipse/ But STS keeps doing the same thing. --EDIT

Can't restore packages on macOS Sierra

喜欢而已 提交于 2020-01-04 10:40:22
问题 I'm trying to create a Web Application Basic [without Membership and Authorization] on Mac using .NET CORE and VSCode. After creating a new project using yo aspnet command I'm trying to restore packages in my app folder but I get this error: log : Restoring packages for /Users/<user_name>/<app_name>/project.json... error: Unable to load the service index for source https://api.nuget.org/v3/index.json. error: The type initializer for 'System.Net.Http.CurlHandler' threw an exception. error: The

Can't restore packages on macOS Sierra

非 Y 不嫁゛ 提交于 2020-01-04 10:40:03
问题 I'm trying to create a Web Application Basic [without Membership and Authorization] on Mac using .NET CORE and VSCode. After creating a new project using yo aspnet command I'm trying to restore packages in my app folder but I get this error: log : Restoring packages for /Users/<user_name>/<app_name>/project.json... error: Unable to load the service index for source https://api.nuget.org/v3/index.json. error: The type initializer for 'System.Net.Http.CurlHandler' threw an exception. error: The

macOS Sierra Spotlight extensions

∥☆過路亽.° 提交于 2020-01-03 10:57:50
问题 Unfortunately I could not find anything up-to-date online about this topic. Similar to the question stated here: OS X Yosemite Spotlight extensions, is it possible by now to extend Spotlight on macOS Sierra ? 回答1: Yes it is. Github user w0lfSchild is still actively maintaining this project: https://github.com/w0lfschild/Flashlight, which also allows writing your own plugins. It is actually a fork of the Flashlight project mentioned in the post you linked to 来源: https://stackoverflow.com

Error Relating to AppTranslocation in macOS Sierra

心不动则不痛 提交于 2020-01-02 06:56:08
问题 It would appear that Gatekeeper in macOS Sierra is a bit pickier. At any rate, it is causing a small utility I made some years ago to throw a rather annoying error. As I haven't yet had the time to dig into the under-the-hood changes in Sierra, I'm not sure how to fix the error. Does anyone have experience dealing with errors relating to AppTranslocation and fixing them? Code and error follow: Code : tell application "Finder" set currentDir to POSIX path of ((container of (path to me)) as

Observe for new System Notifications OSX

扶醉桌前 提交于 2020-01-02 02:09:15
问题 Is it possible to listen/observe for new notifications macOS receives? I mean like when a new iMessage or a Slack message is received (so basically everything that causes NotificationCenter to display a Notification) 回答1: Short answer: It is not possible. You can't observe user notifications sent by applications unless an application provides a specific API. For example the AppleScript dictionary of iMessage and Mail contains events scripts can respond to. However user notifications are

Could not reliably determine the server's fully qualified domain name for MacBook

纵饮孤独 提交于 2019-12-29 05:22:07
问题 First time got a new MBP 2016. Trying to setup PHP,MySQL & Apache. Started Apache by using command sudo apachectl restart Then installed PHP by brew install php71 --with-httpd24 Also did following changes... # # DirectoryIndex: sets the file that Apache will serve if a directory # is requested. # DirectoryIndex index.html index.php SetHandler application/x-httpd-php ServerName dev-server Also, updated the same in host file /etc/hosts/ But, whenever I'm trying to Stop/Restart my apache by

PDFtk hanging on MacOS Sierra

。_饼干妹妹 提交于 2019-12-28 08:00:23
问题 PDFtk Server seems to be hanging indefinitely on MacOS Sierra. Looks similar to the problem it had on El Capitan. I'm trying to run this command: pdftk test1.pdf test2.pdf cat output out.pdf verbose And am getting no output, just an indefinite hang. Same with every other command I've tried. PDFtk --version: pdftk 2.02 a Handy Tool for Manipulating PDF Documents Copyright (c) 2003-13 Steward and Lee, LLC - Please Visit: www.pdftk.com This is free software; see the source code for copying