osx-lion

Java OS X Lion About Menu

末鹿安然 提交于 2019-12-01 21:26:42
问题 I am trying to override the about menu in a Java Application on OS X Lion or anything from Leopard & above. How do I do that? The tutorials I have read so far do not seem up-to-date, some classes are no longer in the Java Mac SDK and others' events are not fired, alas. Thanks in advance! 回答1: You might find the instructions on http://simplericity.com/2007/10/02/1191336060000.html interesting if you use maven as the underlying Apple instructions on http://developer.apple.com/library/mac

Scrapy installation on OSX Lion

喜你入骨 提交于 2019-12-01 19:56:18
So I'm trying to install Scrapy on Lion and am not sure if it's properly installed or not. I followed the guide here http://doc.scrapy.org/en/latest/intro/install.html#intro-install Then tried to do the first step to create a tutorial project here, http://doc.scrapy.org/en/latest/intro/tutorial.html But when I try to run, scrapy startproject tutorial It doesn't work. I get... $ python scrapy /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'scrapy': [Errno 2] No such file or directory Any idea why I get such an error? Well turns out

Is OSX Lion Preview application scriptable? [closed]

我的未来我决定 提交于 2019-12-01 19:53:35
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . Is OSX Lion (or older OSX) release of Preview scriptable? 回答1: Preview is not now, and have never been AppleScript-able, which does suck. It'd be nice if it were, though. From this blog: However, from 10.4–10.6

Why does xcode 4.3.2 hang when archiving?

天涯浪子 提交于 2019-12-01 19:43:45
When I attempt to archive a build, xcode hangs with the colorful spinny wheel of death. It used to work fine, but I can no longer browse the archive anymore unless I delete the archive files manually. I can build to a device fine without problems though. I deleted all content from the archives manually (by deleting the actual archive files) and the archive/organizer pane shows fine, because nothing is in it (because I deleted the archives). But when I attempt to archive again, it builds, then attempts to open the archive/organizer window again, and it hangs. The archive file it does produce

Problems upgrading Git with Homebrew

落爺英雄遲暮 提交于 2019-12-01 15:30:58
问题 I'm very close here, I think I just need to create a symbolic link, but I'm not sure how (and why this is need). I downloaded and installed git using this command: brew install git The response is: git-1.7.12 already installed, it's just not linked How do I do this? When I run: which git >/usr/bin/git When I run: git --version >git version 1.7.4.4 My paths are fine: export PATH="/usr/local/bin:$PATH" Again, all I really need to know is how to set up the symlink. 回答1: By using the link

How to run Java programs from the terminal?

十年热恋 提交于 2019-12-01 11:38:39
I am trying to run a Java program from my Terminal. I have Mac OS X 10.7. teamL javac -jar kxml2-2.3.0.jar XMLHandler.java ServiceEndpoint.java TeamL.java This is my Eclipse class file structure: I am not able to find why is this throwing Unable to access jarfile kxml2-2.3.0.jar ? If you are referencing any external libraries, then you have to add them to the classpath . You can add it during compilation of the classes this way. Go to the src directory and : javac -classpath ".:<path_to_jar_file>" teamL/*.java TO execute : java -cp ".:<path_to_jar_file>" teamL.<class_name> if your are using

Unable to install pyaudio on osx lion

孤街醉人 提交于 2019-12-01 08:31:57
I'd like to install pyaudio on osx lion but i'm unable to do it. Everytime i try with the pkg, it doesn't install anything. When i try to install it with pip i have the following error (among a lot of other lines) : lipo: can't open input file: /var/folders/11/gfpzwjdd6dj7hbz7dpbvx9y40000gn/T//ccYnQM1k.out (No such file or directory) error: command '/usr/bin/llvm-gcc' failed with exit status 1 If anyone can help me, thank you. Matthew Henry I had to manually install it to get anything working. You'll need the source distributions for both pyaudio and portaudio. Firstly I installed portaudio

No suitable driver found for jdbc:mysql://localhost/

拜拜、爱过 提交于 2019-12-01 08:04:40
I am trying to port my code from linux to mac OSX LION. The following method works on linux just fine. Connection getConnection() throws SQLException{ String url = "jdbc:mysql://localhost/"; return DriverManager.getConnection(url, "root", "mypassword"); } But it's not working on my mac. I am using XAMMP so the path to my database is /Applications/XAMPP/xamppfiles/bin/mysql . The error I get reads Exception in thread "main" java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost/ at java.sql.DriverManager.getConnection(DriverManager.java:602) at java.sql.DriverManager

“-std=gnu++0x”option for MacOS

喜你入骨 提交于 2019-12-01 06:20:12
I'm trying to compile a CMake project which uses set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-Wall -std=gnu++0x") in the CMakeLists.txt file under MacOS X Lion. I have installed XCode 4.2.1. but the compiler fails with this: cd something/src/lib && /usr/bin/c++ -Dlib_ginacra_EXPORTS -Wall -std=gnu++0x -fPIC -o CMakeFiles/lib_ginacra.dir/utilities.cpp.o -c something/src/lib/utilities.cpp cc1plus: error: unrecognized command line option "-std=gnu++0x" The compiler's verion is: c++ --version i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) GCC 4.2

Unable to install pyaudio on osx lion

余生长醉 提交于 2019-12-01 06:19:15
问题 I'd like to install pyaudio on osx lion but i'm unable to do it. Everytime i try with the pkg, it doesn't install anything. When i try to install it with pip i have the following error (among a lot of other lines) : lipo: can't open input file: /var/folders/11/gfpzwjdd6dj7hbz7dpbvx9y40000gn/T//ccYnQM1k.out (No such file or directory) error: command '/usr/bin/llvm-gcc' failed with exit status 1 If anyone can help me, thank you. 回答1: I had to manually install it to get anything working. You'll