macos-sierra

rJava does not run on macOS Sierra

僤鯓⒐⒋嵵緔 提交于 2019-12-08 11:35:21
问题 I am using macOS Sierra and R version 3.4.0. I installed the package "rJava" using RStudio: install.packages("rJava") Warning in install.packages : cannot open URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.4/PACKAGES.rds': HTTP status was '404 Not Found' trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.4/rJava_0.9-8.tgz' Content type 'application/x-gzip' length 627959 bytes (613 KB) ================================================== downloaded 613 KB The

How can I submit iOS apps to the App Store with MacBook A1181?

安稳与你 提交于 2019-12-08 11:08:47
问题 Apple Store no longer accepts apps builded with Xcode less than 9. I know that Xcode 9 requires at least Mac OS X 10.12 (Sierra) but this answer gave me hope: https://stackoverflow.com/a/48692923/5321513 I've a MacBook A1181 (early 2009) and I've already tried to intercept and edit all the files I think are involved in checking the version with this terminal command: grep "10.12" -R --include="Info.plist" /Applications/Xcode9.2.app 2>/dev/null changing the parameter "Minimum system version"

Setting up LocalHost server for MacOS Sierra to use PHP and apache

白昼怎懂夜的黑 提交于 2019-12-08 07:02:56
问题 Note : I am not going to lie, I know pretty much nothing about apache, servers, local host, etc so please pardon my ignorance - if there is a comprehensive or a great review out there for these things, please point me in their direction. I did try and read some online tutorials such as this one, but this all seems to be more than I need. Context I have some learned and then made some minimal PHP code that I want to test locally. However, that appears to mean that I need to use a server.

C++11 app that uses dispatch_apply not working under Mac OS Sierra

人盡茶涼 提交于 2019-12-08 05:23:23
问题 I had a completely functioning codebase written in C++11 that used Grand Central Dispatch parallel processing, specifically dispatch_apply to do the basic parallel for loop for some trivial game calculations. Since upgrading to Sierra, this code still runs, but each block is run in serial -- the cout statement shows that they are being executed in serial order, and CPU usage graph shows no parallel working on. Queue is defined as: workQueue = dispatch_queue_create("workQueue", DISPATCH_QUEUE

Mac : Launch command when device connected by bluetooth

别等时光非礼了梦想. 提交于 2019-12-08 01:59:54
问题 I would like to launch a shell command when a specific external bluetooth device is connected to my Mac. A nice way (without installing third party software) to do that is by adding a plist file in ~/Library/LaunchAgents On this page, there is an example of launching an event when the wifi connects to a specific location. It is done by watching a specific file : <key>WatchPaths</key> <array> <string>/Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist</string> </array>

Access web browser tabs programmatically | Swift 3

拜拜、爱过 提交于 2019-12-07 12:32:06
问题 Is it possible to access the open tabs of Safari or Google Chrome? A URL would be good or the title of the tab or both? The purpose of the app then the user could specify some websites and add labels to them and the app would measure how much is spent on those websites, the app would be allowed through accessibility. 回答1: Use an AppleScript to get the title and the URL of each tab. You can use NSAppleScript in Swift to run an AppleScript. An example ( Safari ) let myAppleScript = "set r to \"

How to launch Finder Sync Extension on launching the main app?

家住魔仙堡 提交于 2019-12-07 05:49:33
问题 In my Cocoa application, I have a finder sync extension. On launching the application, my finder sync extension doesn't start automatically. I need to go to System Preferences -> Extensions and enable it. How do i make sure that on launch of my main application (.app) file the finder sync extension is launched and is enabled? 回答1: Checkout https://blog.codecentric.de/en/2018/09/finder-sync-extension/ There is a section Restarting FinderSyncExtension on app launch with instructions on how to

Can't install gactions CLI

一笑奈何 提交于 2019-12-07 02:55:35
I'm trying to install the google actions CLI. The docs: https://developers.google.com/actions/tools/gactions-cli I followed the commands here as well as from the question/answer here . I downloaded the Mac x86_64. Then ran the following command on it: Run chmod +x gactions to make the binary executable. It did turn the file into an executable. When I clicked it, it opened in terminal and did something. However in a new tab in terminal it still does not understand the gactions. Also I don't use terminal but iterm2, so I tried opening the executable in iterm2 and got this error. How to update

mongorestore random crash (fatal error)

时间秒杀一切 提交于 2019-12-07 00:57:23
问题 I'm on macOS 10.12. mongod --version db version v3.2.8 git version: ed70e33130c977bda0024c125b56d159573dbaf0 OpenSSL version: OpenSSL 1.0.2h 3 May 2016 allocator: system modules: none build environment: distarch: x86_64 target_arch: x86_64 When I use a mongorestore: mongorestore --drop --db mydatabase /path/to/mongodump The import starts but it crashes 90% of time: fatal error: unexpected signal during runtime execution [signal 0xb code=0x1 addr=0x697d5fa61ae3 pc=0x40d9e00] goroutine 46

C++11 app that uses dispatch_apply not working under Mac OS Sierra

泄露秘密 提交于 2019-12-06 14:38:54
I had a completely functioning codebase written in C++11 that used Grand Central Dispatch parallel processing, specifically dispatch_apply to do the basic parallel for loop for some trivial game calculations. Since upgrading to Sierra, this code still runs, but each block is run in serial -- the cout statement shows that they are being executed in serial order, and CPU usage graph shows no parallel working on. Queue is defined as: workQueue = dispatch_queue_create("workQueue", DISPATCH_QUEUE_CONCURRENT); And the relevant program code is: case Concurrency::Parallel: { dispatch_apply(stateMap