macos

Avoid Mac app crashing after unhandled exception

China☆狼群 提交于 2021-02-08 17:07:25
问题 I want to prevent my app from closing after an unhandled exception has been raised. I'm doing this with Xamarin and MonoMac, but I think I could translate Objective-C answers to C#. When an Exception happens and it's not caught anywhere, I register the event of unhandled exceptions: AppDomain.CurrentDomain.UnhandledException += HandleUnhandledException; And log it: static void HandleUnhandledException(object sender, UnhandledExceptionEventArgs e) { //Log the exception... } But then, when an

Default php.ini macOs Catalina

我的梦境 提交于 2021-02-08 15:11:33
问题 I would like to know which php.ini is the default one used by PHP ? Because if you write locate php.ini there a 3 files and all of these files have an /etc as parent directory, but not the same parent directory of /etc, so I don't know which one is the default one used by PHP. Terminal output 回答1: Type in your console: php -i |grep php\.ini 回答2: The fastest way ist to check out the ini path on the phpinfo() Call Simply edit your index.php <?php echo phpinfo(); ?> 回答3: On macOS Catalina type

readxl::read_xls returns “libxls error: Unable to open file”

。_饼干妹妹 提交于 2021-02-08 14:16:40
问题 I have multiple .xls (~100MB) files from which I would like to load multiple sheets (from each) into R as a dataframe. I have tried various functions, such as xlsx::xlsx2 and XLConnect::readWorksheetFromFile , both of which always run for a very long time (>15 mins) and never finish and I have to force-quit RStudio to keep working. I also tried gdata::read.xls , which does finish, but it takes more than 3 minutes per one sheet and it cannot extract multiple sheets at once (which would be very

readxl::read_xls returns “libxls error: Unable to open file”

北城以北 提交于 2021-02-08 14:12:34
问题 I have multiple .xls (~100MB) files from which I would like to load multiple sheets (from each) into R as a dataframe. I have tried various functions, such as xlsx::xlsx2 and XLConnect::readWorksheetFromFile , both of which always run for a very long time (>15 mins) and never finish and I have to force-quit RStudio to keep working. I also tried gdata::read.xls , which does finish, but it takes more than 3 minutes per one sheet and it cannot extract multiple sheets at once (which would be very

.bin/authorize-ios not found when installing appium using npm install -g appium

≯℡__Kan透↙ 提交于 2021-02-08 13:54:13
问题 When I try to install appium using npm install -g appium I get the message npm ERR! code ENOENT npm ERR! syscall chmod npm ERR! path /usr/local/lib/node_modules/appium/node_modules/.bin/authorize-ios npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/appium/node_modules/.bin/authorize-ios' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent If I run the install again I get npm ERR! code ENOENT npm ERR!

Qt on Mac — how to access “search” in help menu

一世执手 提交于 2021-02-08 13:43:43
问题 I am porting my Qt app to Mac OS X. On Windows/Linux I've used a QLineEdit to provide a search feature in the Help menu. In Mac OS X, I saw something like this is built-in: How can I access this search bar with Qt (i.e., add my own elements to it)? I looked at QMenuBar in the docs but couldn't find anything relevant. If it's not possible, can I at least use some native API from my C++ Qt app? Thanks a lot. 回答1: It seems you can't do this directly through Qt, however, you can implement this

Qt on Mac — how to access “search” in help menu

帅比萌擦擦* 提交于 2021-02-08 13:42:34
问题 I am porting my Qt app to Mac OS X. On Windows/Linux I've used a QLineEdit to provide a search feature in the Help menu. In Mac OS X, I saw something like this is built-in: How can I access this search bar with Qt (i.e., add my own elements to it)? I looked at QMenuBar in the docs but couldn't find anything relevant. If it's not possible, can I at least use some native API from my C++ Qt app? Thanks a lot. 回答1: It seems you can't do this directly through Qt, however, you can implement this

NSDatePicker in NSStatusBar NSSMenuItem not receiving input

家住魔仙堡 提交于 2021-02-08 13:11:38
问题 A while back I wrote a simple calendar menu bar widget called Day-O. The calendar uses the stock NSDatePicker nested inside an NSView inside an NSMenuItem in an NSMenu added to an NSStatusItem. The app has an activationPolicy of .accessory (originally set via the plist's "Application is agent" bool). At some point (maybe with the El Capitan update?) the calendar stopped responding to input. When the app first launches you can click the status bar item to expand the menu and interact with the

NSDatePicker in NSStatusBar NSSMenuItem not receiving input

余生长醉 提交于 2021-02-08 13:10:54
问题 A while back I wrote a simple calendar menu bar widget called Day-O. The calendar uses the stock NSDatePicker nested inside an NSView inside an NSMenuItem in an NSMenu added to an NSStatusItem. The app has an activationPolicy of .accessory (originally set via the plist's "Application is agent" bool). At some point (maybe with the El Capitan update?) the calendar stopped responding to input. When the app first launches you can click the status bar item to expand the menu and interact with the

NSDatePicker in NSStatusBar NSSMenuItem not receiving input

ⅰ亾dé卋堺 提交于 2021-02-08 13:09:01
问题 A while back I wrote a simple calendar menu bar widget called Day-O. The calendar uses the stock NSDatePicker nested inside an NSView inside an NSMenuItem in an NSMenu added to an NSStatusItem. The app has an activationPolicy of .accessory (originally set via the plist's "Application is agent" bool). At some point (maybe with the El Capitan update?) the calendar stopped responding to input. When the app first launches you can click the status bar item to expand the menu and interact with the