osx-lion

Fullscreen feature for Java Apps on OSX Lion

我是研究僧i 提交于 2019-11-27 04:37:28
How can I (natively) implement the fullscreen feature of OSX Lion in a Java application? The current answers given incorporate a good method for achieving a sort-of-fullscreen feature. I've read that Eclipse may be able to use the "native" fullscreen feature of Lion. That's what I'm asking about. Dyorgio I found this on Apple's Java release notes: Mac OS X 10.7 Lion Fullscreen Support Java applications on Lion can now opt into the Fullscreen window feature per-window. Developers can use the com.apple.eawt.FullScreenUtilities class to mark windows as able to be full screened, and the com.apple

OS X Lion, Attempting Nokogiri install - libxml2 is missing

孤街浪徒 提交于 2019-11-27 04:15:34
问题 sudo gem install nokogiri Building native extensions. This could take a while... ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. /Users/sajeev86/.rvm/rubies/ruby-1.8.7-p352/bin/ruby extconf.rb checking for libxml/parser.h... no ----- libxml2 is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies. ----- *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary

Maven home (M2_HOME) not being picked up by IntelliJ IDEA

牧云@^-^@ 提交于 2019-11-27 04:11:22
I am trying to do a simple maven build with IntelliJ IDEA 10.5.1 on OS X Lion and am getting the following error: Error running my-app [package]: No valid Maven installation found. Either set the home directory in the configuration dialog or set the M2_HOME environment variable on your system. I have set M2_HOME to the following, but I am still having issues. And yes, I did restart IntelliJ. $ echo $M2_HOME /usr/share/maven I then manually entered the path to maven in IntelliJ's Maven Settings for the project. This is not something that I want to do for every project, so is there something I

ImageMagick and OS X Lion trouble

陌路散爱 提交于 2019-11-27 04:10:16
问题 [edit] I was troubleshooting problems with my development environment when I noticed one of my problems was the dependency on ImageMagick, since it's a vital part of my app. After upgrading to OS X Lion (10.7) i no longer had ImageMagick available, i then tried installing again using MacPorts without success, i then installed from source, and the install wasn't very successfully i had convert and identify but it output error messages that i unfortunately dont have anymore, i by some strange

How can I eliminate slow resolving/loading of localhost/virtualhost (a 2-3 second lag) on Mac OS X Lion?

陌路散爱 提交于 2019-11-27 04:10:06
问题 Since setting up my development environments on Mac OS X Lion (brand new macbook air purchased in January 2012), I have noticed that resolving to a virtual host is very slow (around 3 seconds) the first time but after that is fast as long as I continue loading it regularly. If I leave it untouched for a couple of minutes and then reload again, the first reload is (again) painfully slow; seems like something is being cached. As can be seen below I am not using the .local TLD. My setup: Apache

Compile OpenCV (2.3.1+) for OS X Lion / Mountain Lion with Xcode

倾然丶 夕夏残阳落幕 提交于 2019-11-27 03:54:24
Can anyone provide me some detailed guide how to compile OpenCV 2.3.1 on OS X Lion with Xcode? I'm getting mad about this … I got the source, used cmake to create the Xcode template and tried to build it, but it fails with about 200 errors. Thanks in advance, Dom SOLUTION in my answer post. Detailed guide how to get OpenCV 2.3.1 up and running under OS X Lion (10.7.2) with Xcode 4.2.1 using MacPorts EDIT 08/06/2012: This is also working for OpenCV 2.4.1. Just make sure you got the latest version of Xcode and installed the "Command Line Tools" (Xcode -> Preferences -> Downloads -> Command Line

Linking troubles with boost::program_options on OSX using LLVM

匆匆过客 提交于 2019-11-27 03:28:06
问题 I'm having trouble getting through the linking phase in my C++ program due to problems with Boost 1.49. I have switched to C++ ( -std=c++11 -libc=libc++ ) which works fine for another piece of code (which also uses boost). Boost was installed using homebrew with: brew install boost --universal --with-mpi --with-icu The trouble starts with boost::program_options . I get the link errors like this: "boost::program_options::validate(boost::any&, std::__1::vector<std::__1::basic_string<char, std::

How can I switch to ruby 1.9.3 installed using Homebrew?

微笑、不失礼 提交于 2019-11-27 02:39:39
I have installed ruby 1.9.3 using hombrew brew install ruby But default 1.8.7 is still used. How can I switch osx to use 1.9.3 as default ruby? Matthew Rudy I suggest you take a look at rvm . You can then set it as default with rvm use 1.9.3 --default But if you are happy with your homebrew install. Then just change the precedence of directories in the PATH Here is my /etc/paths # homebrews should always take precedence /usr/local/bin # the default stack /usr/bin /bin /usr/sbin /sbin This is important generally for homebrew, else the system version of git, ruby, pg_admin,... will all be used

“M-” bindings in vim on iTerm2/Terminal don't work

你。 提交于 2019-11-27 02:38:56
问题 I noticed that iTerm2 offers the very convenient feature of using "Option key as +ESC" (or as meta, but apparently that's obsolete). I tried them both and the option key works as expected in Bash ( set -o emacs mode) and Emacs, but not in Vim. Thus, I can't make use of any "M-" bindings. What I've found is that: if I set option to "+ESC", vim just understands ESC+key, and has no idea I actually meant Meta-key. if I set option to "meta", keys modified with "option" behave just as without a

Postgres permission denied on MAC OS X

只谈情不闲聊 提交于 2019-11-27 02:34:16
问题 I was following the ruby on rails tutorial to run with postgres but when I try the "rake db:create" I get the following error: could not connect to server: Permission denied Is the server running locally and accepting connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"? I have found this question issuing some similar problem but I couldnt make it work anyway. Repairing Postgresql after upgrading to OSX 10.7 Lion I have installed homebrew after reading this question and the