osx-mavericks

Hiding the dock icon without hiding the menu bar

醉酒当歌 提交于 2019-12-04 16:01:19
问题 I use the ideas in this thread to hide the dock icon of my app optionally . If the dock icon is shown after all, the menu bar should be shown too. Only with Jiulong's answer I haven't been able to make this work. The menu bar is still hidden. So basically 'Application is agent' is set to '1' in the InfoPList, and this code is used : if (![[NSUserDefaults standardUserDefaults] boolForKey:@"LaunchAsAgentApp"]) { ProcessSerialNumber psn = { 0, kCurrentProcess }; TransformProcessType(&psn,

How to suppress / automatically dismiss error dialog in AppleScript

試著忘記壹切 提交于 2019-12-04 14:02:20
I have background process running as the logged on user that frequently tries to mount an AFP share to backup some data. If the share cannot be mounted this should just be ignored. In my script (bash, actually) I am mounting the share via an AppleScript mount volume snippet. In contrast to the mount or mount_afp commands, this appears to be the only way to automatically authenticate the user at the respective server with credentials from the Kerberos ticket or the user's keychain. In particular, I do not want to have to store a password in the script: try mount volume "afp://server/share" on

How do I open an NSSheet in Mavericks?

我只是一个虾纸丫 提交于 2019-12-04 12:55:09
In Mavericks, the methods to open and close NSSheets has changed. And to make it tougher, the Release Notes do not match the current documentation (see below). I'm trying to do this: MainSheetController (NSWindowController): -(IBAction)callSheet:(id)sender { [sheetController openSheet]; } SheetController (NSObject): (void)openSheet { [[NSBundle mainBundle] loadNibNamed:sheetName owner:self topLevelObjects:nil]; NSLog(@"1"); [self.mainWindowController.window beginSheet:self.sheet completionHandler:nil]; NSLog(@"2"); } I get to 2, with no errors or warnings, but no sheet.. Current Documentation:

XAMPP NOT WORKING! - OS X Yosemite

耗尽温柔 提交于 2019-12-04 12:06:49
I was working with XAMPP 1.8.3-3 on OS X Mavericks. After upgrading to Yosemite Mysql server stopped working. And an upgrade to XAMPP 1.8.3-5 fixed the problem and mysql server starts working. Now the entire database list is showing on phpmyadmin, but no access to the tables. Its showing “#1146 - Table ‘DB_NAME.TABLE_NAME’ doesn’t exist”. Unfortunately I don't have any DB backup! I have the entire XAMPP folder backup. So how I can able to retrieve the mysql tables? just type /Applications/XAMPP/xamppfiles/bin/mysql.server start in terminal then start xampp you can restore if you have all the

Trouble Installing Scrapy on 10.9 Mavericks

回眸只為那壹抹淺笑 提交于 2019-12-04 11:50:02
I'm trying to install Scrapy using my homebrew python build. Despite having everything up to date, installed and in my path, I cant use it. Here's my order of operations: check brew: $ brew doctor Your system is ready to brew. check python & pip: $ which python /usr/local/bin/python $ python --version Python 2.7.6 $ which pip /usr/local/bin/pip $ pip -- version pip 1.5.4 from /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.5.4-py2.7.egg (python 2.7) (is this normal? this looks like there's two copies, possibly conflicting ) ive already

Link error installing Rcpp “library not found for -lintl”

北城以北 提交于 2019-12-04 11:17:26
问题 I just stumbled over a linker error when trying to install some R packages which have Rcpp as a dependency. My setup is Mac OS X 10.9.1 (Mavericks), R 3.0.2 installed by Homebrew. Here's the error output: > install.packages('Rcpp') trying URL 'http://cran.fhcrc.org/src/contrib/Rcpp_0.10.6.tar.gz' Content type 'application/x-gzip' length 1985569 bytes (1.9 Mb) opened URL ================================================== downloaded 1.9 Mb * installing *source* package ‘Rcpp’ ... ** package

OS X app update issue with Sparkle under Mavericks and XCode 5

亡梦爱人 提交于 2019-12-04 09:29:21
I use the Sparkle framework to handle my app updates. Everything worked fine until recently, when I upgraded to OS X 10.9 Mavericks and XCode 5.0.2. When I compile my app under OS X 10.8.4 and XCode 4.6.3, it can then be updated with no issue. But when I compile the exact same code, with the same XCode project and the same code signing under Mavericks and XCode 5.0.2, the generated bundle can't be updated, Sparkle crashing during the update process with the following error : Terminating app due to uncaught exception 'NSDestinationInvalidException', reason: ' * +[SUPlainInstaller

when trying to configure or rebuild node-gyp, getting errors: mac osx mavericks

扶醉桌前 提交于 2019-12-04 08:51:03
问题 I'm trying to run node-gyp configure , but am getting the following errors: gyp: binding.gyp not found (cwd: /usr/local/bin) gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/node-gyp/lib/configure.js:337:16) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12) gyp ERR! System Darwin 13.0.0 gyp ERR!

Git push keep getting permission denied after mac 10.9.2 update

ぃ、小莉子 提交于 2019-12-04 08:44:51
问题 Wondering if anyone experiencing the same issue with OSX 10.9.2 Update. After installing that update, I couldn't do git push anymore, keep getting permission denied(public key). Have tried to generate a new ssh pair, and reenter the new key to server, but still no luck. Also tried to do it on another git hosting after inserting a new key, still doesnt work. So I guess its not a server problem, but a OSX 10.9.2 issue. Any suggestion would be appreciated. Thanks! 回答1: I ran into the same

How to start Chromedriver in verbose mode - Selenium Eclipse

你。 提交于 2019-12-04 08:44:04
I just installed OSX 10.9 on my mac and ever since then my Chromedriver is not working when I try to run tests. The error I get is that "chrome was killed". Everybody keeps mentioning that it works when you set Chromedriver to --verbose mode but I have no idea how to do that. Any ideas? Here's a script that creates the executable you'll need, cd to the directory where chromedriver is, then paste this into your console: cat <<EOF>chromedriververbose echo "running chromedriver --verbose \$*" \$(dirname \$0)/chromedriver --verbose \$* EOF chmod +x chromedriververbose That'll create an executable