osx-mavericks

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

不羁的心 提交于 2019-11-29 14:09:40
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 CFDataRef)pngData, kUTTypeImage,NULL); } } } My doc is a normal plist with a png preview stored as data in

cannot load such file — rubygems.rb

对着背影说爱祢 提交于 2019-11-29 13:49:07
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 such file -- rubygems.rb (LoadError) from <internal:gem_prelude>:1:in `<compiled>' I provide any

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

让人想犯罪 __ 提交于 2019-11-29 13:44:51
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 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/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1 Apple

Install Nokogiri 1.6.1 under Ruby 2.0.0p353 (rvm based installation) fails (OSX Mavericks)?

主宰稳场 提交于 2019-11-29 10:26:32
I've tried to install Nokogiri 1.6.1 under Ruby and RVM but is failing with the following error: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /Users/lmo0/.rvm/rubies/ruby-2.0.0-p353/bin/ruby extconf.rb Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-apple-darwin13.0.0/ports/libxml2/2.8.0... OK Running 'configure' for libxml2 2.8.0... OK Running 'compile' for libxml2 2.8.0... OK Running 'install' for libxml2 2.8.0... OK Activating libxml2 2.8.0 (from /Users/lmo0/.rvm/gems/ruby-2.0.0-p353/gems/nokogiri-1.6.1/ports/x86_64-apple-darwin13.0.0/libxml2/2.8.0)...

Ruby on Rails: no implicit conversion of Array into String (DEVISE)

白昼怎懂夜的黑 提交于 2019-11-29 08:49:17
I recently upgraded to OSX Mavericks 10.9 from 10.7, and since then it has been causing me lots of troubles. I upgraded Xcode, Command line tools, reinstalled homebrew and rvm, and finally got rails s to work (I spent a good 5 hours getting rmagick to work again). However, now when I try to access my app from my localhost, I get this error no implicit conversion of Array into String Here is the rails log: Started GET "/" for 127.0.0.1 at 2014-05-05 02:20:00 -0700 Processing by AccountsController#dashboard as HTML Completed 500 Internal Server Error in 0.3ms TypeError (no implicit conversion of

Can't install rmagick, pkg-config: command not found

主宰稳场 提交于 2019-11-29 06:58:38
问题 I'm trying to install rmagick on my Mac OS X v10.9 (Mavericks) machine. However. I get this error /usr/local/bin/Magick-config: line 41: pkg-config: command not found /usr/local/bin/Magick-config: line 47: pkg-config: command not found /usr/local/bin/Magick-config: line 50: pkg-config: command not found /usr/local/bin/Magick-config: line 53: pkg-config: command not found checking for stdint.h... yes checking for sys/types.h... yes checking for wand/MagickWand.h... yes /usr/local/bin/Magick

Where is my m2 folder on Mac OS X Mavericks

和自甴很熟 提交于 2019-11-29 01:51:56
问题 I cant seem to find the local .m2 folder on Mac OS X mavericks. Ideally it should be at {user.home}/.m2 but I cant seem to find it. Should I create it? 回答1: If you have used brew to install maven, create .m2 directory and then copy settings.xml in .m2 directory. mkdir ~/.m2 cp /usr/local/Cellar/maven32/3.2.5/libexec/conf/settings.xml ~/.m2 You may need to change the maven version in the path, mine is 3.2.5 回答2: On the top of the screen you can find the Finder. Click Go -> Go to Folder ->

Are Mac App Store code sign resource envelopes always version 1?

青春壹個敷衍的年華 提交于 2019-11-29 01:18:56
问题 After the latest email detailing changes on the gatekeeper for 10.10 beta 5 and 10.9.5 , I went and immediately verified my app with the recommended method from TN2206 . To my surprise, since I used no resource rules and built it on Mavericks, it failed: $ spctl -a -t exec -v /Applications/MyApp.app/ /Applications/MyApp.app/: rejected source=obsolete resource envelope Then, I went on to check the submitted binary inside the Xcode archive, which was promptly rejected, but without the "obsolete

<omp.h> library isn't found in the GCC version (4.2.1) in Mavericks

怎甘沉沦 提交于 2019-11-29 01:11:48
I have a problem with GCC. I want to update it to a new version, from the 4.2.1, to program with parallel programming. However, in this version there is no library . How can I download an updated version? The error that the terminal give me is: omp_hello.c:11:10: fatal error: 'omp.h' file not found #include <omp.h> ^ 1 error generated. volodymyr download gcc-4.9-bin.tar.gz download or newer from http://hpc.sourceforge.net/ : http://prdownloads.sourceforge.net/hpc/gcc-4.9-bin.tar.gz cd to your downloads folder and un-gzip the archive gunzip gcc-4.9-bin.tar.gz (Google Chrome would do that

What are productive ways to debug Rcpp compiled code loaded in R (on OS X Mavericks)?

回眸只為那壹抹淺笑 提交于 2019-11-29 01:05:00
What is the most productive and quickest way to debug shared objects that are loaded into R, in particular on OS X Mavericks? I'm primarily interested in debugging compiled Rcpp code. I have read the R externals on debugging compiled code ( http://cran.r-project.org/doc/manuals/R-exts.html#Debugging-compiled-code ) which favours using gdb, but gdb isn't officially supported on Mavericks. However, it seems that lldb is a viable alternative? I found the most useful resource for working out how to debug compiled code in R from Dirk's response to this post (Thanks Dirk!) ( Debugging (line by line)