osx-snow-leopard

Adding version infomation to an OSX command line application

痴心易碎 提交于 2019-12-09 14:03:48
问题 On Windows I'd simply add an RC file with the right data. Do I need to assemble a bundle as usual with an info.plist/version.plist or is there a better, standard , way of doing things? This is for Snow Leopard and later if that is relevant. Thx++ 回答1: It is possible to embed an Info.plist file in an executable as a special Mach-o section. See for example this question. 回答2: If you have a command line application, then it's just a single file and not a traditional OSX app package (with a

Can't install passenger 3 on Snow Leopard (with RVM and ruby 1.9.2)

梦想的初衷 提交于 2019-12-09 11:34:47
问题 I've been trying to install passenger with no success yet. I've installed the gem, but when I run passenger-install-apache2-module it tells me This installer must be able to write to the following directory: /Users/myname/.rvm/gems/ruby-1.9.2-p0/gems/passenger-3.0.0 But it can't do that, because you're running the installer as myname. Please re-run this installer as root. but if I do sudo passenger-install-apache2-module I get /Users/myname/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb

Snow Leopard, sqlite3-ruby

不想你离开。 提交于 2019-12-09 00:50:32
问题 So I followed every suggestion in this thread without success. I'm running os x 10.6, rails 2.3.3, ruby 1.9.1 and still getting this error when I try accessing the front page of my rails app: uninitialized constant SQLite3::Driver::Native::Driver::API I've googled every possible combination of snow leopard, rails, sqlite3 without any luck. Hoping someone can help. Thanks! 回答1: I finally solved this by recompiling ruby 1.9.1 with the appropriate sqlite3 libraries linked. So in my case I needed

How do I launch a particular version of Xcode from Applescript?

最后都变了- 提交于 2019-12-08 09:45:31
问题 I have two versions of Xcode installed, Xcode 3.2.3 and the Xcode4 developer preview. How do I ensure from Applescript that the 3.2.3 version is picked? 回答1: Instead of simply referencing Xcode by its name, i.e.: tell application "Xcode" ... end tell you can also reference a particular version of an application by its full POSIX path, i.e.: tell application "/Developer/Applications/Xcode 3.2.3.app" ... end tell Also see the AppleScript language guide section on the application class. A more

OpenCv 2.4.3: can't find imread and SurfFeatureDetector::detect

廉价感情. 提交于 2019-12-08 07:29:17
问题 on Mac OSX 10.8, XCode 4.6, in C++ I'm following the tutorial in opencv_tutorials.pdf , located in /opt/local/share/OpenCV/doc on my system. On page 311, we get this sample (slightly edited): #include <stdio.h> #include <iostream> #include "opencv2/core/core.hpp" #include "opencv2/features2d/features2d.hpp" #include "opencv2/highgui/highgui.hpp" using namespace cv; int main( int argc, char** argv ) { Mat img_1 = imread( argv[1], CV_LOAD_IMAGE_GRAYSCALE ); int minHessian = 400;

how to uninstall openCV on mac 10.6.8?

廉价感情. 提交于 2019-12-08 05:48:08
问题 I have multiple versions of openCV (2.0,2.1) on my mac. Is there a way to erase these multiple versions and all its files so that i can make a fresh install of openCV 2.3.0 回答1: The most obvious command sudo port uninstall opencv may not work, at least in my case it complained that it needs a particular version. I run then sudo port uninstall opencv 4.2 All opencv libraries in /opt/local/lib were gone after that command. After that I re-installed openCV with sudo port install opencv (If there

InputManager plug-ins in Snow Leopard (OS X 10.6)

做~自己de王妃 提交于 2019-12-07 20:03:23
问题 I'm getting conflicting reports from various places. Engadget's review says InputManager plug-ins being completely ignored (and causing strange behaviour if the application is loaded in 32-bit mode), but this mailing list thread says they will work if the 32/64-bit compatibility is right. So I have two questions: Do we get to use InputManagers in Snow Leopard? If yes, will it work the same way as in Leopard. And if no, what is good a workaround (because 1Password is apparently working on a

awtrobot reads incorrect colors

萝らか妹 提交于 2019-12-07 16:10:16
问题 I'm looking for a platform-independent way to read colors from the screen and simulate user input through mouse and keyboard actions. I have previously been using java.awt.robot , however some time in the past 2 years it has started reporting incorrect colors in OSX (other operating systems appear to get accurate colors) as noted in this question. I'm looking for either a workaround for this bug or any other library/language which will provide this functionality. Using the fairly simple code

In Mono, how do I get the path to the Documents folder on a Mac (Snow Leopard)?

梦想与她 提交于 2019-12-07 14:55:48
问题 I'm writing a Mono application and would like to find the full path of the Documents folder - e.g. /Users/johnsmith/Documents/ . What's the best way to achieve this? 回答1: You can do this: string doc_path = Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.Personal), "Documents"); (Btw, for MonoTouch, It's just Environment.GetFolderPath (Environment.SpecialFolder.Personal) ). 来源: https://stackoverflow.com/questions/1933975/in-mono-how-do-i-get-the-path-to-the-documents-folder

launchd file runs manually but not automatically

若如初见. 提交于 2019-12-07 13:42:07
问题 I have written a plist file and placed it into /Library/LaunchDaemons <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList- 1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.dotcafe.DCDMySQLBackup</string> <key>ProgramArguments</key> <array> <string>/Users/robdando/Webserverbackup/grab.sh</string> </array> <key>StartInterval</key> <integer>900</integer> </dict> </plist> I have now got the script