osx-yosemite

How do I set up a mirroring session between iOS 8 and Yosemite?

百般思念 提交于 2019-11-28 09:32:16
On OS X Yosemite, the screen of an iOS 8 device can be mirrored to the OS X machine and saved as a media file. This can be done manually using QuickTime Player, but I want to do the same programatically. Reading the docs, the iOS 8 device should be exposed as a webcam. Calling [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo] on my Mac returns an NSArray with no elements. How can I setup a mirroring session using iOS 8 and Yosemite? How can I detect the capture device for the mirroring session? NadavRub Quoting from p28 of the PDF transcript for WWDC 2014 session #508 “Camera Capture:

How to enable FinderSync Extension in macOS System Preferences

て烟熏妆下的殇ゞ 提交于 2019-11-28 08:37:28
I am integrating FinderSync Extension in my Cocoa Application to show badges in files and folders. Look at the below two scenario: When i run application using FinderSync Extension (like DemoFinderSync) look at the blue popup in the below image, in that case Extension is added in the System Preference with Check mark and called that principal class "FinderSync.m" as well. When i run application using my Application Scheme (like DemoApp) look at the blue popup in the below image, in that case Extension is added in the System Preference but without check mark and that principal class "FinderSync

mysql running but cannot connect to 127.0.0.1

无人久伴 提交于 2019-11-28 08:32:31
问题 I have installed mysql55-server using macports. I can start the server successfully via: $ sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql55-server.plist And confirm I am running the correct mysql: $ which mysql /opt/local/lib/mysql55/bin/mysql If I run $mysql , I can connect successfully. If I then run: mysql> show databases; It shows two databases. Using Sequel Pro, I can connect via socket: u: root p: root Socket: /opt/local/var/run/mysql55/mysqld.sock Connects and loads

In OS X 10.10 (Yosemite Beta), How do I Test Using iOS 6.1 Simulator?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 08:18:45
I am trying to target iOS 6.1 using Xcode 5 in Yosemite Beta. However, the simulator won't even run the app, or show the default icons (all I get is a black iOS-shaped screen, and Home or Lock buttons are not working). The 7.1 simulator works fine. I have also noticed that Xcode 6 Beta does not even offer simulator versions prior to 7.1. Does this indicate that, even in the final of OS X 10.10, it will be impossible to simulate iOS versions prior to 7.x? This seems very unreasonable to me. Is this expected behavior? EDIT: So I had already tried re-installing and re-downloading the 6.1

Yosemite Apache, PHP info page not shown

最后都变了- 提交于 2019-11-28 08:01:00
问题 Not sure if this question applies to SO so don't yell at me if it doesn't... I've gotten rid of XAMPP and trying to do everything in os x. I followed many guides but I'm stuck on enabling PHP to work, browser does not display the phpinfo. I'm on 10.10, Apache/2.4.9, PHP 5.5.14. I have enabled the modules in the conf file, I get to the "localhost/~me/" page, showing me the directory. My index.php file contains <?php phpinfo(); ?> , but it just outputs raw code instead of the info. Main guide I

Git Clone Fails with sslRead() error on OS X Yosemite

喜夏-厌秋 提交于 2019-11-28 07:33:24
I'm currently on OS X Yosemite 10.10.3, and trying to git clone an existing repo which works fine on Windows. I've tried a combo of installing git through homebrew with curl/openssl with no luck. When i run the git clone, i get the following ssl read error: GIT_CURL_VERBOSE=1 git clone http://myURL/gitlab/project/project.git > remote: Counting objects: 1641, done. remote: Compressing objects: > 100% (1588/1588), done. > * SSLRead() return error -98061641), 136.73 MiB | 1.71 MiB/s > * Closing connection 2 remote: Total 1641 (delta 910), reused 0 (delta 0) error: RPC failed; result=56, HTTP code

How to fix broken python 2.7.11 after OSx updates

感情迁移 提交于 2019-11-28 06:26:50
What happened: After an OSx update and installing a new version of python 2.7 my virtualevn environment completely broke and I struggled in fixing it. I wasn't sure what caused it and went through a whole set of things that I did and read initially that didn't work are listed below. What solved my problem is provided in the answer section. What didn't work to fix virtualenv command not found: Installed python through homebrew and then used pip to install virtualenv Installed python through https://www.python.org and then used pip to install virtualenv Related questions that helped me but did

How does one Print all WKWebView On AND Offscreen content OSX and iOS

淺唱寂寞╮ 提交于 2019-11-28 06:23:43
This question is about printing ALL content (including off screen content) of WKWebView. Currently (still, as of iOS 10.2 or OSX 10.12) there is NO working solution and none of the supposed solutions on Stackoverflow work. Only provide an answer here if you have verified for yourself that you can print OFF SCREEN CONTENT, and if you did then provide the working example code. I'm trying to print ALL the content of a WKWebView or WebView on OSX 10.10 or above (Currently running on 10.11.2). For example, a wide html table where columns are out of view and off to the right. Earlier versions of OSX

NetLogo R Extension Installation Error in Mac OS X Yosemite

寵の児 提交于 2019-11-28 06:15:06
问题 I am having problems installing the R extension for NetLogo. I'm using NetLogo 5.05 and version 1.3 of the extension, which is supposed to work with R version 3.0 or higher. My version of R is 3.1.2. Following the instructions from this page, I have changed the .plist file within the NetLogo app so that it points to jri and to my R installation: <key>NSJavaRoot</key> <string>..</string> <key>LSEnvironment</key> <dict> <key>JRI_HOME</key> <string>/Library/Frameworks/R.framework/Resources

Backward compatibility of Xcode OSX

本秂侑毒 提交于 2019-11-28 05:35:03
问题 How to use features such as viewDidLoad or appDidBecomeActive in Xcode 4.6.1 for OSX 10.8, which are available only for OSX 10.10 and above. Please suggest the alternative ways to use these functions. 回答1: To expand on Ken Thomas's comment; this is the code that I use: - (void)loadView { [super loadView]; // if we're running on 10.8 or older… if (NSAppKitVersionNumber <= NSAppKitVersionNumber10_8) { [self viewDidLoad]; // call viewDidLoad (added in 10.9) } } // // This will be called by