osx-yosemite

GO (Golang) vendor experiment failing on mac osx

假装没事ソ 提交于 2019-12-06 09:57:20
问题 Having some trouble getting the go vendor experiment working with go 1.6.2 on osx. Heres my directory structure: /project /application main.go other.go /vendor /github.com /vendor_name /package_name I have my GOPATH set to /Users/me/project/application However when I try to run any of the go tools (e.g build) it seems to be looking in application/src rather than application/vendor , getting lots of this: main.go:15:2: cannot find package "github.com/facebookgo/grace/gracehttp" in any of: /usr

How to use NSTitlebarAccessoryViewController?

倖福魔咒の 提交于 2019-12-06 08:27:45
问题 Can anyone tell me how to use NSTitlebarAccessoryViewController, to add subview to a view with an example? As I am new to mac programming you may have to explain from basics. Please. 回答1: NSTitlebarAccessoryViewController is for adding subviews to the windows title bar. Here is a example: Set up a view in interface builder. Go to the `applicationDidFinishLaunching: method to add the view to the title bar. The code would be the following: NSTitlebarAccessoryViewController* vc = [

How to allow permission for user's Home folder in cocoa application for mac

依然范特西╮ 提交于 2019-12-06 08:11:10
I am having a mac app in which I am deleting some data from user's Home directory. My app is rejected saying the below reason. The app only finds files in the ~/Downloads folder. It would be appropriate to have the user grant access to the Home folder. So I used NSOpenPanel for asking the access from the user but I have no idea about how to give access to user's hidden folders. EDIT I have successfully enabled sandboxing for my app but now on allow button, what should I do? Please guide me on this... Any help will be highly appreciated. Thanks in advance... Michael Dautermann I spent some time

MAMP SSL error: “error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure”

烂漫一生 提交于 2019-12-06 07:15:44
问题 I am using MAMP on OS X Yosemite to develop a website on my local machine. The website is a client application for an API that runs on HTTPS. I keep getting this error when I try to call the API from PHP: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure The same code works on the server, but the site is already in production so I need to be able to create a separate development environment. I get exactly the same error whether I call the API with cURL or file

How do I install RODBC on Mac with unixodbc and freetds?

牧云@^-^@ 提交于 2019-12-06 06:55:38
问题 After a fairly extensive search, I noticed that a number of people are having a hard time finding a start-to-finish guide that answers this question. (At least one question notes that a solution exists, but the proposed solution does not get around the fact that, by default, RODBC attempts to compile against iODBC, which is not included with Yosemite.) I just went through this process, so I thought I would document it here in the hope that it will benefit others. I am connecting to a SQL

CloudKit didReceiveRemoteNotification not called on the Mac

十年热恋 提交于 2019-12-06 06:36:46
I am using the following CKNotification Info and this seems to work fine: CKNotificationInfo *note = [[CKNotificationInfo alloc] init]; note.alertBody = @"Something Happened"; note.shouldBadge = NO; note.shouldSendContentAvailable = NO; When something changes on an iOS device, my Mac app receives a Push notification based on a subscription with this notification. However, didReceiveRemoteNotification is never called so I can't process the event. I need to be able to refresh and fetch new changes. How do I do that? Calling registerForRemoteNotificationTypes: and implementing

iPython notebook on Mac OSX Yosemite: no module named jinja2, even if it's installed

蓝咒 提交于 2019-12-06 05:47:36
I am trying to run iPython notebook on OSX Yosemite. I have installed everything via pip install ipython[all] and I see mattia:~ mattiaspeziali$ pip freeze backports.ssl-match-hostname==3.4.0.2 certifi==14.5.14 docutils==0.12 gnureadline==6.3.3 ipython==2.3.1 Jinja2==2.7.3 MarkupSafe==0.23 nose==1.3.4 numpy==1.8.2 numpydoc==0.5 pandas==0.14.1 Pygments==2.0.1 pyzmq==14.4.1 Sphinx==1.2.3 tornado==4.0.2 vboxapi==1.0 However, jinja2 seems not installed properly: mattia:~ mattiaspeziali$ ipython notebook Traceback (most recent call last): File "/usr/local/bin/ipython", line 11, in <module> sys.exit

“Unrecognized character \\xE2” in a Hello World program

邮差的信 提交于 2019-12-06 04:33:33
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”; Change the “” character in the print statement to " Example print "Hello world"; 来源: https://stackoverflow.com/questions/29881571/unrecognized-character-xe2-in-a-hello-world-program

Permission problems with /usr/local/bin and /usr/local/share

回眸只為那壹抹淺笑 提交于 2019-12-06 04:09:07
问题 I'm using OS X Yosemite in a fresh MacBook. Just installed Homebrew and some essential packages, having moved to this new computer recently. I noticed that once in a while I get linking errors when I install new brew packages. For some reason, the permissions of /usr/local/bin and /usr/local/share keeps changing back to root:wheel even after I did chmod and chgrp several times to make it FP:admin (FP being my username). Take note, it fixes the permissions for a time, allowing me to install

Making WKWebView not share cookies with Safari in OS X

和自甴很熟 提交于 2019-12-06 02:56:15
问题 How do I make WKWebView not share cookies with Safari in OSX? I have a very simple app that I made as an experiment that displays a WKWebView and as far as I can see, it's picking up cookies from Safari, because in my custom app, I'm logged in in the same websites as Safari. I am currently creating the WKWebView instance like this: override func loadView() { self.webView = WKWebView() self.view = self.webView! } in an NSViewController I created. I also tried this: override func loadView() {