osx-yosemite

How does Mac OSX determine which dylib to load?

℡╲_俬逩灬. 提交于 2019-12-22 09:13:18
问题 I'm trying to run Apache in Mac OSX Yosemite using MacPorts' PHP (mod_php53.so). Note that I'm not using MacPorts' Apache but Yosemite's Apache with MacPorts' PHP. This was working fine with OSX Mavericks and Mountain Lion in the past. I get this error when running /usr/sbin/apachectl -t in Yosemite: httpd: Syntax error on line 228 of /private/etc/apache2/httpd.conf: Cannot load /opt/local/apache2/modules/mod_php53.so into server: dlopen(/opt/local/apache2/modules/mod_php53.so, 10): Library

OS X Yosemite Curl errors

為{幸葍}努か 提交于 2019-12-22 08:44:58
问题 I am trying to use curl on Yosemite and I keep getting the following errors: 01-09-14 17:49:45> curl https://www.kernel.org/pub/software/scm/git/git-manpages-2.1.0.tar.gz curl: (51) SSL: certificate verification failed (result: 5) I know I can add -k to the curl to make it download, but I think there is something bigger that I need to fix. The biggest issue is when trying to update Homebrew packages. I also have this in my bash_profile export CURL_CA_BUNDLE=/usr/local/share/ca-bundle.crt and

NSURLThumbnailDictionaryKey empty for local file

Deadly 提交于 2019-12-22 08:44:43
问题 I want to get a thumbnail representation of a file I have to display in my app. I'm using NSURL here: NSDictionary *thumbnails = nil; BOOL success = [fileURL getResourceValue:&thumbnails forKey:NSURLThumbnailDictionaryKey error: &error]; This works fine if I am connected to iCloud, and the URL is a link to a file stored in iCloud. The fileURL is something like: file:///Users/me/Library/Mobile%20Documents/BJXXGLR9R3~com~myapp~icloud/FileStorage/contact-page%20copy.png If I use the same code

Alien::wxWidgets install fails on OSX10.10

浪子不回头ぞ 提交于 2019-12-22 08:17:06
问题 I'm trying to install Alien::wxWidgets version 0.67 with wxWidgets version 3.0.2, but no matter what I do, I get the following error: checking if C compiler (clang -mmacosx-version-min=10.5) works with SDK/version options... configure: error: in `/Users/David/.cpan/build/Alien-wxWidgets-0.67-GGkXTu/wxWidgets-3.0.2/bld': configure: error: no. Try a different SDK See `config.log' for more details system: echo exit | sh ../configure --prefix=/Users/David/perl5/perlbrew/perls/perl-5.16.0/lib/site

Mail Rules using JavaScript for Automation instead of AppleScript

妖精的绣舞 提交于 2019-12-22 05:27:17
问题 I'm trying to build a Mail.app rule (on OS X Yosemite) using Javascript for Automation instead of AppleScript, but I'm stuck on the basics. I see this code in AppleScript: using terms from application "Mail" on perform mail action with messages theMessages for rule theRule # actual code here end perform mail action with messages end using terms from but I'm unclear how this translates to JavaScript. Do I define a function? Set a callback? I'm unclear. I see that there is the

Yosemite SSL: CA certificate set, but certificate verification is disabled

旧城冷巷雨未停 提交于 2019-12-22 05:24:07
问题 Since installation of Yosemite I keep getting error SSL: CA certificate set, but certificate verification is disabled. It occurs with every https url in Terminal. Can't find how to fix this, any suggestions ? thanks Frank 回答1: For others coming here trying to figure out why they are running into this issue with Wordpress and maybe also WooCommerce and are on OS X Yosemite then you will want to follow Asaph/Cupcake's answer to "osx 10.10 Curl POST to HTTPS url gives SSLRead() error" (https:/

fs.writeFile() doesn't return callback

青春壹個敷衍的年華 提交于 2019-12-22 04:53:08
问题 I'm trying to write a file with the users authentication data to the disk. To achieve this I wrote the following function: function writeAuthFile(data, success, fail) { var fs = require('fs'); fs.writeFile('auth.json', JSON.stringify(data), function(error) { if(error) { console.log('[write auth]: ' + err); if (fail) fail(error); } else { console.log('[write auth]: success'); if (success) success(); } }); } But it never calls the callback. I looked at the nodeJS docs for fs and it all seems to

Xcode 7 run on Mac OSX 10.10 Yosemite

大兔子大兔子 提交于 2019-12-22 02:03:42
问题 Am I missing something or Xcode 7 should run only on new(beta) OSX 10.11 El Capitan? I downloaded beta and after some code changes to comply with Swift 2.0 my project compiles and runs fine under OSX 10.10.3. Am I missing something or Apple changed the game somehow? 回答1: Edit: Xcode 7 runs on OS X 10.10.4 Old: Yup Xcode 7 beta runs on OS X 10.10 As stated in the release notes below About Xcode 7 beta Supported Configurations Xcode 7 beta requires a Mac running OS X 10.10. Xcode 7 beta

Xcode 7 run on Mac OSX 10.10 Yosemite

≯℡__Kan透↙ 提交于 2019-12-22 02:03:05
问题 Am I missing something or Xcode 7 should run only on new(beta) OSX 10.11 El Capitan? I downloaded beta and after some code changes to comply with Swift 2.0 my project compiles and runs fine under OSX 10.10.3. Am I missing something or Apple changed the game somehow? 回答1: Edit: Xcode 7 runs on OS X 10.10.4 Old: Yup Xcode 7 beta runs on OS X 10.10 As stated in the release notes below About Xcode 7 beta Supported Configurations Xcode 7 beta requires a Mac running OS X 10.10. Xcode 7 beta

How to programmatically disable iOS 8 video capture in Mac Yosemite?

…衆ロ難τιáo~ 提交于 2019-12-21 19:57:06
问题 Apple released a new feature allowing movie recording via QuickTime player. All you need to do is to connect the iOS 8 device to a Mac Yosemite machine, run QuickTime and set the connected device as the source of the movie. (Like explained here: http://www.tekrevue.com/tip/record-iphone-screen-quicktime/) I would like to prevent QuickTime to record a movie while my application is running. Any idea how can I do that? Any value I can change in plist? Any special event I can listen to? Any other