osx-yosemite

Finder window refresh issue (Yosemite )

廉价感情. 提交于 2019-12-10 17:06:59
问题 I am working on Finder Sync extension to apply badges on files and folders ... I want to refresh icon for particular file/folder in Finder application. is there any way to refresh a finder window programmatically on mac OS Yosemite ??? Apart from creating and deleting a file... 回答1: I had this problem too. I had a .app i wanted to change the icon of. Structure of my .app : ...noida.app/ ...noida.app/Contents/ ... ...noida.app/Contents/Resources ...noida.app/Contents/Resources/myicon.icns ..

errorr installing pyobjc on Anaconda python on OSX 10.10.2

故事扮演 提交于 2019-12-10 15:57:07
问题 I have Python 3.3.5 :: Anaconda 2.1.0 (x86_64) on Mac OS X 10.10.2 with XCode 6.2 (6C131e) and pip 6.0.8 I'm trying to install PyObjC following the guide. However when I do pip install -U pyobjc I get the following error: $ pip install -U pyobjc Requirement already up-to-date: pyobjc in ./anaconda/lib/python2.7/site-packages/pyobjc-3.1-py2.7.egg Downloading/unpacking py2app>=0.9 (from pyobjc) Downloading py2app-0.9.tar.gz (1.7MB): 1.7MB downloaded Running setup.py (path:/private/var/folders

How to export certificate from Mac OS X to get pair of .cert and .key files ?

你。 提交于 2019-12-10 14:56:09
问题 I have on Mac 10.10.1 created certificate and I have in keychain access certificate with private key. On Windows I have to use this and I need .cert and .key file. How to export this certificate to get those two files ? I can export as .pb12 or .cert but cannot export as pair .cert and .key (private key ) 回答1: What kind of certificate do you want to export? You could try to save the certificate as *.p12 file and try one of these solutions: https://www.icts.uiowa.edu/confluence/pages/viewpage

Can't pip install anything requiring C compilation on OSX 10.10 with homebrew python

耗尽温柔 提交于 2019-12-10 14:48:51
问题 When I try to pip install things that involve C compilation ( Pillow , specifically) I get an odd error: clang: error: no such file or directory: 'Python.framework/Versions/2.7/Python' error: command 'clang' failed with exit status 1 ---------------------------------------- Cleaning up... Command /usr/local/opt/python/bin/python2.7 -c "import setuptools, tokenize;__file__='/private/var/folders/xt/f2d8vp4j65j2rt71pns6trjw0000gn/T/pip_build_jakob/Pillow/setup.py';exec(compile(getattr(tokenize,

‘seewave' install error “'sndfile.h' file not found” (for R 3.2.0 under OSX Yosemite)

只愿长相守 提交于 2019-12-10 14:32:40
问题 When updating to R 3.2.0 I had to reinstall seewave . I managed to install the required packages fftw , tuneR , rgl , and rpanel . But, when trying to compile seewave I got the message: stft.c:3:11: fatal error: 'sndfile.h' file not found 回答1: On linux it is sufficient to install libsndfile library, for example with sudo apt-get install libsndfile1-dev On OS X just do: brew install libsndfile 回答2: Pisca46 - Installing via 'brew install libsndfile' helped. 回答3: On CentOS, the package has a

The Sidebar Icon image name in OSX

可紊 提交于 2019-12-10 13:16:05
问题 Is this icon included as part of the Cocoa API? What is the icon name? I read the HIG but could not find a reference - https://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/OSXHIGuidelines/SystemProvided.html#//apple_ref/doc/uid/20000957-CH92-SW1 回答1: It's undocumented. The image's name is NSImageNameSidebarTemplate . ( NSSidebarTemplate in IB, though it's only visible at runtime). I don't know though if this is off-limits and whether it will get you rejected. 回答2:

“Unrecognized character \xE2” in a Hello World program

情到浓时终转凉″ 提交于 2019-12-10 11:08:05
问题 I am trying to write my first perl "hello world" program on Mac OS X Yosemite and it shows this error when I try to run this using terminal: Unrecognized character \xE2; marked by <-- HERE after print <-- HERE near column 7 at test.pl line 4. I couldn't figure out what was wrong in this program. Please help me out here. Code: #!/usr/bin/perl use strict; use warnings; print “Hello world”; 回答1: Change the “” character in the print statement to " Example print "Hello world"; 来源: https:/

Where is the details of extension of Safari 8 is stored in Yosemite(Mac OS 10.10)

余生颓废 提交于 2019-12-10 10:44:42
问题 I want to install the safari extension in Safari v8 in Yosemite(Mac OS 10.10) by programmatically. As in safari v5,v6,v7 for extension details, safari maintain Extensions.plist which is stored at ~/Library/Safari/Extensions/Extensions.plist. But in safari v8 there is no information in Extensions.plist for installed extensions like extension is enabled or not. So is there anyone who knows how safari v8 stores its Extensions information and where? 回答1: Since safari 6.2, 7.1 and 8.0 it is stored

Preserving aliases over OSX ssh rsync

那年仲夏 提交于 2019-12-10 10:36:21
问题 I'm having a devil of a time preserving aliases with rsync over ssh on OSX (Yosemite) rsync -av -e ssh me@N.N.N.N:/Users/me/stuff/ /Users/me/stuff does not preserve aliases. It makes an alias on the destination... but it doesn't point to the original file (on the destination). Firing up a Finder window, turning on File Sharing on the source, and drag and dropping preserves aliases, but that's the only way I've figured out how to do this so far, and I would prefer a non-GUI solution. Would

Git on Yosemite keeps asking for remote username and password

[亡魂溺海] 提交于 2019-12-10 03:08:56
问题 I've updated to OS X Yosemite. When running any git command that has to do with the remote repo (pull, fetch, etc) the terminal keeps asking for my github username and password (the remote is on github). If I perform these actions from the github client for mac, it doesn't ask for credentials. My git config file is fine. My SSH key is fine too. I tried to reinstall the git command line tools from the Github app with no success. Any suggestions? 回答1: Run following on command line. git config -