osx-mavericks

SSL certificate verification failure in python on Mavericks

我怕爱的太早我们不能终老 提交于 2019-11-28 10:33:29
I'm stuck on a persistent SSL verification issue. SSL: CERTIFICATE_VERIFY_FAILED I discovered the error while building a Django app that had users authenticate using Mozilla Persona. (python3.4)> import requests (python3.4)> requests.get('https://verifier.login.persona.org') I get a SSL: CERTIFICATE_VERIFY_FAILED tracing back from requests to urllib3 to ssl : ... "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/ssl.py", line 805, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598) ... "/Library

Installing Rails on Mavericks

核能气质少年 提交于 2019-11-28 08:59:54
Not sure what happened but when I upgraded to Mavericks it says that Rails it not install. I executed the following command: rails --version And it said "Rails is not currently installed and run sudo gem install rails". I run sudo gem install rails and get the following: ERROR: Error installing rails: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h Gem files will remain installed in /Library

Why does QLPreviewRequestSetDataRepresentation on Mavericks return error “ CGImageCreate: invalid image size: 0 x 0” for png

一笑奈何 提交于 2019-11-28 08:04:24
问题 My quick look generator used to work properly but is now broken. Is it a bug or am I doing something wrong? Here’s my code: OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options) { NSDictionary * myDoc = [NSDictionary dictionaryWithContentsOfURL:(NSURL *)url]; if (myDoc) { NSData * pngData = [myDoc valueForKey:@"pngPreview"]; if (pngData) { QLPreviewRequestSetDataRepresentation(preview,(__bridge

Compile VLCKit on Mac OS 10.9

最后都变了- 提交于 2019-11-28 07:49:49
I'm trying to compile VLCKit on Mac OS 10.9 following this wiki : https://wiki.videolan.org/VLCKit/ I have clone git://git.videolan.org/vlc-bindings/VLCKit.git then open VLCKit.xcodeproj in Xcode 5.1 and finally run "Build Everything". But build failed with thoses issues : Run VLC configure PhaseScriptExecution bootstrap /Users/myname/Library/Developer/Xcode/DerivedData/VLCKit- bktcaifqrsqwbodqlfdqgsmkkdeb/Build/Intermediates/VLCKit.build/Debug/Run\ VLC\ configure.build/Script-631A90420D5A007D0014A2CE.sh cd /Users/myname/Documents/PhcDev/VLCKit /bin/sh -c \"/Users/myname/Library/Developer

Multiple Java installations in Mac OS X Mavericks

你离开我真会死。 提交于 2019-11-28 07:39:29
I downloaded JDK for Mac OS X 10.9.1 from Oracle , but I had to install another Java from Apple site once more, as I couldn't launch eclipse with it. These are two pages that I referred. Installing Java on OS X 10.9 (Mavericks) http://support.apple.com/kb/DL1572?viewlocale=en_US Now I have three java binaries installed in my computer. Installation A /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java java version "1.7.0_51" Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode) Installation B /System/Library

clang: error: unsupported option '-static-libgcc' on Mac OSX Mavericks

戏子无情 提交于 2019-11-28 07:39:04
问题 I am trying to compile jogl from source on my Mac Mini with Mac OSX mavericks, but getting clang: error: unsupported option '-static-libgcc' on Mac OSX Mavericks I have XCode 5.0.1 (5A2053) and installed the Command line tools for OSX Mavericks Any hints on how to fix this issue 回答1: The command called gcc is not really GCC on Mavericks. It's just a copy of Clang: $ gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications

OpenGL 4.1(?) under Mavericks

狂风中的少年 提交于 2019-11-28 07:26:06
I've just upgraded my MacBook Pro to Mavericks (MacOS 10.9), including Xcode. According to Apple's "OpenGL Capabilities Table", this version has support for OpenGL 4.1, but a call to glGetString(GL_VERSION) returns "1.2" and my GLSL 3.30 shader, which begins with "#version 330" refuses to load, saying that version is not supported. Do I need to do something to Mavericks to enable 4.1 support? When you request your pixel format using one of the lower-level APIs on OS X, you need to add the following to your attribute list in order to use a core profile: CGL: kCGLPFAOpenGLProfile,

cannot load such file — rubygems.rb

我与影子孤独终老i 提交于 2019-11-28 07:23:23
问题 OK, it drives me crazy! I try to run ruby / rails. MacBook-Pro-2:Library me$ rvm list rvm rubies ruby-1.9.3-p194 [ x86_64 ] ruby-2.1.0 [ x86_64 ] # => - current # =* - current && default # * - default MacBook-Pro-2:Library me$ rvm use 2.1.0 Using /usr/local/rvm/gems/ruby-2.1.0 <internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError) from <internal:gem_prelude>:1:in `<compiled>' MacBook-Pro-2:Library me$gem list <internal:gem_prelude>:1:in `require': cannot load

Are there any alternatives to valgrind on Mac OS X Mountain Lion and Mavericks to detect memory leaks for C/C++ applications? [closed]

寵の児 提交于 2019-11-28 05:42:21
I used to use valgrind to detect memory leaks for my C/C++ applications on Mac OS X 10.6 (Snow Leopard) and 10.7 (Lion), but I find it's not supported on recent releases like 10.8 (Mountain Lion) and 10.9 (Mavericks) when I upgraded my OS. Is there something else like valgrind that can be installed on Mac OS X 10.9? On 2013-11-01, the valgrind team announced Valgrind 3.9.0: We are pleased to announce a new release of Valgrind, version 3.9.0, available from http://www.valgrind.org . 3.9.0 is a feature release with many improvements and the usual collection of bug fixes. This release adds

OpenCV Undefined symbols for architecture x86_64: error

偶尔善良 提交于 2019-11-28 03:59:57
before this gets flagged as a repeat question please read the end. Thanks for looking. I set up openCV using home-brew. These were the commands I used: brew tap homebrew/science brew install opencv I am using the following simple file I found online to test my set up: // Example showing how to read and write images #include <opencv2/opencv.hpp> #include <opencv2/highgui/highgui.hpp> using namespace cv; int main(int argc, char** argv) { // Load an image from file - change this based on your image name Mat img = imread("my_image.jpg", CV_LOAD_IMAGE_UNCHANGED); if(img.empty()) { fprintf(stderr,