osx-mountain-lion

Forbidden: CGI Programming With Apache and Perl on Mac OS X

筅森魡賤 提交于 2021-02-18 19:39:58
问题 I'd like to do the CGI programming with Apache and Perl in Max OS X 10.8.5. I followed the guide : CGI Programming With Apache and Perl on Mac OS X. The steps are: edit /etc/apache2/httpd.conf, uncomment the following: AddHandler cgi-script .cgi .pl AddType text/html .shtml AddOutputFilter INCLUDES .shtml edit /etc/apache2/userName.conf: Options MultiViews Indexes SymLinksIfOwnerMatch Includes ExecCGI DirectoryIndex index.html index.cgi AllowOverride None Order allow,deny Allow from all start

Forbidden: CGI Programming With Apache and Perl on Mac OS X

人盡茶涼 提交于 2021-02-18 19:39:43
问题 I'd like to do the CGI programming with Apache and Perl in Max OS X 10.8.5. I followed the guide : CGI Programming With Apache and Perl on Mac OS X. The steps are: edit /etc/apache2/httpd.conf, uncomment the following: AddHandler cgi-script .cgi .pl AddType text/html .shtml AddOutputFilter INCLUDES .shtml edit /etc/apache2/userName.conf: Options MultiViews Indexes SymLinksIfOwnerMatch Includes ExecCGI DirectoryIndex index.html index.cgi AllowOverride None Order allow,deny Allow from all start

NSTextFinder action on NSTextView

筅森魡賤 提交于 2021-02-18 17:29:09
问题 I'm trying to capture all the NSTextFinderClient calls on my custom NSTextView subclass. The show action is called on my -(void)performTextFinderAction:(id)sender override, but for find next, find previous, etc. it's not called. Any ideas? Thanks! Edit: If you create a new project and drag an NSTextView from interface builder, command-g and command-shift-g (find next and find previous) don't work when the find bar is first responder. Why is this? I need a custom subclass of NSTextView to

NSTextFinder action on NSTextView

孤街浪徒 提交于 2021-02-18 17:28:27
问题 I'm trying to capture all the NSTextFinderClient calls on my custom NSTextView subclass. The show action is called on my -(void)performTextFinderAction:(id)sender override, but for find next, find previous, etc. it's not called. Any ideas? Thanks! Edit: If you create a new project and drag an NSTextView from interface builder, command-g and command-shift-g (find next and find previous) don't work when the find bar is first responder. Why is this? I need a custom subclass of NSTextView to

“Couldn't connect to the RemoteTestNG Client” at launch of TestNG on OSX-mountain-lion

孤街醉人 提交于 2021-02-10 09:22:09
问题 I am attempting to run the most basic example test using Eclipse, Selenium, Maven, and TestNG. I can run a test with Eclipse (or IntelliJ), Selenium, and Maven, (jUnit also works) but when I try to add in TestNG, I get the following: "Couldn't connect to RemoteTestNG client. Make sure you don't have an older version of testng.jar on your class path. Reason: Timeout while trying to contact RemoteTestNG." I have followed several tutorials and youtube walkthroughs. I performed the same steps on

OS X Status Bar Application with a title in two lines

我只是一个虾纸丫 提交于 2021-02-08 09:39:33
问题 I'm an old iOS developer and now I want to make a simple OS X status bar application. I need to put a title at the NSStatusItem but it should be in two lines, like iStatPro network feature. How should I add it? 回答1: Here is a very simple example. This example shows two lines with two simple blinking lights. It uses a NSView (Custom view) with two NSTextFields and two NSImageWells inside of it. The red and green light images are added to the project and set to the Image wells in IB. .m // //

PostgreSQL with Homebrew on Mac

白昼怎懂夜的黑 提交于 2021-02-05 18:57:57
问题 First I use homebrew and install postgresql and I get this success message: ==> Summary 🍺 /usr/local/Cellar/postgresql/9.2.2: 2819 files, 39M, built in 68 seconds Then I need to run this command: initdb `brew --prefix`/var/postgres -E utf8 But this is the message I get: What should I do with this? Also running on OSX 10.8.2 The files belonging to this database system will be owned by user "JonyIve". This user must also own the server process. The database cluster will be initialized with

PostgreSQL with Homebrew on Mac

一曲冷凌霜 提交于 2021-02-05 18:54:27
问题 First I use homebrew and install postgresql and I get this success message: ==> Summary 🍺 /usr/local/Cellar/postgresql/9.2.2: 2819 files, 39M, built in 68 seconds Then I need to run this command: initdb `brew --prefix`/var/postgres -E utf8 But this is the message I get: What should I do with this? Also running on OSX 10.8.2 The files belonging to this database system will be owned by user "JonyIve". This user must also own the server process. The database cluster will be initialized with

MakeFile without Xcode on Mac

风流意气都作罢 提交于 2021-01-27 14:22:22
问题 Is there an alternative to use "make" to make a file without using Xcode on Mac? Xcode is huge and normally requires the latest software installed and I want to keep my OSX 10.8.5 installation intact. 回答1: If you don't need/want Xcode, you can simply get make and other command line tools without Xcode by downloading the Command Line Tools package here. You need to sign in with an Apple ID first. 回答2: I looked all over and the best way is to install Xcode. Below is a link on how to enable this

How to make Boost dylibs universal (i386 & x86_64) on os x?

爱⌒轻易说出口 提交于 2020-12-09 04:17:08
问题 I'm trying to compile a Boost library into a universal binary file (i.e. a "fat" file that contains builds for both the i386 and x86_64 architectures). Souring the internet and SO I assembled the following instructions. Download boost (e.g. from http://www.boost.org/users/download/) In the downloaded folder, type ./bootstrap.sh (or, in my case ./bootstrap.sh --with-libraries=thread , since I only need the thread library) type ./b2 install cxxflags="-arch i386 -arch x86" These steps installed