How to programatically open Settings/Preferences window in a macOS SwiftUI App

By inspecting the app menu, I found this solution: NSApp.sendAction(Selector((“showPreferencesWindow:”)), to: nil, from: nil) I assume that it may not pass App Review for using a private API, though, so less shady alternatives are still welcome. Update: This has actually passed App Review, so I had marked it as the answer. Update 2: For a … Read more

Pip suddenly using wrong version of Python

I run with multiple Python versions and thus multiple pip versions as well. Everytime, however, you update pip, you’ll replace the standard pip command with the version you updated. So even pip3 install –upgrade pip will put a /usr/local/bin/pip in your system, messing up the Python 2 version. Instead, I run pip as an (executable) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)