osx-mountain-lion

How to uninstall Xcode 4.4 command line tools (Mac OS X 10.8 Mountain Lion)?

给你一囗甜甜゛ 提交于 2019-11-29 17:26:46
问题 This SO post explains very well how to install command line tools for Xcode 4.4. But how to uninstall them? 回答1: There's a script listed on this page to do just that on Mountain Lion: http://www.cocoanetics.com/2012/07/you-dont-need-the-xcode-command-line-tools/ Copy the script into a text file. Save it as remove_CLI_tools.sh Open terminal and navigate to the folder where you saved the script. Type: sh remove_CLI_tools.sh I installed just the isolated command line tools (stand alone installer

Java applet with self-signed certificate on OS X Mountain Lion

纵饮孤独 提交于 2019-11-29 17:04:20
问题 We have a Java applet that needs to run with full trust. While developing and during pre-release tests we sign it using a self-signed certificate (the production version is signed with a real code signing certificte). But when we try to start the self-signed applet on the prerelases of OS X 10.8, we can no longer choose to allow it to run. The "Allow"-button is simply disabled: If I press "Show Details..." I can choose to "Always trust" the certificate, but this makes no difference: It works

Pygame for Python 3 on OSX Mountain Lion?

前提是你 提交于 2019-11-29 16:17:58
I have been trying to get this to work for days now, with no luck. All of the installation walkthroughs I can find either talk about pygame on mountain lion with python 2.x, or pygame with python 3 on osx 10.6, but never all 3 together. Sorry if this is long, but here's what I've tried so far... First I tried using homebrew and pip, following this: http://florian-berger.de/en/articles/installing-pygame-for-python-3-on-os-x But I got the same errors mentioned here: Error when Installing Pygame on Mountain Lion So, having made the modification suggested in the answer to that question, I tried to

Ctrl-Shift-key Beeps and Doesn't Send to Terminal

笑着哭i 提交于 2019-11-29 15:44:57
问题 My OS X terminal does not seem to recognise Ctrl - Shift . Instead, it beeps when I hit Ctrl - Shift and any other key on the keyboard. I use Emacs and as a result I cannot use many shortcuts. It is not the Bash beep, but the OS X beep. How can I get my Terminal to recognise Ctrl - Shift - anykey ? 回答1: There is no standard for transmitting modifier keys through a tty; however, xterm defines a method, and some other terminal emulators support it. Terminal does not directly support this, but

Sqlserv extension on mac

纵饮孤独 提交于 2019-11-29 15:42:24
My company uses the sqlserv extension to connect to a MSSQL database. This extension was chosen over the mssql extension because it is actively being maintained by Microsoft and the mssql driver is no longer maintained at all. My colleague has always worked in a windows enviroment so he could just download the proper DLL file and voila, sqlserv is available. Since i am running on Mac OSX 10.8.1 i don't share this luxery. So basically the question is: does anyone know of a sqlserv php extension in the form of a .so file? You cannot run the SQLSRV extension on anything other than Windows as

Can I use OS X 10.8's speech recognition/dictation without a GUI?

南笙酒味 提交于 2019-11-29 14:08:14
问题 Ideally I would like to use 10.8's/Mountain Lion's dictation feature from Python, without a GUI. As far as I can tell dictation is currently only supported by using the UITextInput protocol, which implies a GUI (correct?). 回答1: You can create a dummy text field and programmatically start dictating by emulating the keypress (tried out successfully here) 来源: https://stackoverflow.com/questions/11851713/can-i-use-os-x-10-8s-speech-recognition-dictation-without-a-gui

“bad ecpoint” SSL error on fresh RVM Ruby 1.9.3 install on OSX Mountain Lion

核能气质少年 提交于 2019-11-29 12:48:21
Trying to use Ruby 1.9.3 & rest-client to make https requests like: RestClient.get('https://google.com') always gives me a SSL error, OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server key exchange B: bad ecpoint which I cannot figure out. bad ecpoint ? I've had no trouble making the same request with 1.9.3 & rest-client on another Mountain Lion machine. Notes about this machine: MacBook pro with fresh Mountain Lion install, where I originally had some trouble installing gcc-4.2 via the XCode command line tools, but eventually got gcc-4.2 via homebrew/dupes . I've

Backward compatibility of Xcode OSX

喜欢而已 提交于 2019-11-29 11:47:28
How to use features such as viewDidLoad or appDidBecomeActive in Xcode 4.6.1 for OSX 10.8, which are available only for OSX 10.10 and above. Please suggest the alternative ways to use these functions. To expand on Ken Thomas's comment; this is the code that I use: - (void)loadView { [super loadView]; // if we're running on 10.8 or older… if (NSAppKitVersionNumber <= NSAppKitVersionNumber10_8) { [self viewDidLoad]; // call viewDidLoad (added in 10.9) } } // // This will be called by loadView pre-10.9; directly otherwise // - (void)viewDidLoad { // --- YOUR CODE HERE --- } // viewDidLoad I'd

Installing PHPUnit on MAMP 2.1.3 (Mountain Lion)

回眸只為那壹抹淺笑 提交于 2019-11-29 11:25:39
I'm struggling with this issue. Here's what I've tried : $ cd /Applications/MAMP/bin/php/php5.4.10/bin/ $ sudo ./pear channel-update pear.php.net $ sudo ./pear upgrade pear $ sudo /Applications/MAMP/bin/php/php5.4.10/bin/pear channel-discover pear.phpunit.de $ sudo /Applications/MAMP/bin/php/php5.4.10/bin/pear channel-discover pear.symfony-project.com $ sudo /Applications/MAMP/bin/php/php5.4.10/bin/pear install phpunit/PHPUnit So it seems to work, but phpunit is actually installed in /Applications/MAMP/bin/php3/bin/ If I tried to launch it from there, it doesn't work (no output, no log). If I

NSUserNotificationCenter dismiss notification

为君一笑 提交于 2019-11-29 11:09:43
问题 I'm trying to use the new Mountain Lion NSUserNotificationCenter for my application (which isn't too hard actually). Posting notifications works like a charm via NSUserNotification *userNotification = [[NSUserNotification alloc] init]; userNotification.title = @"Some title"; userNotification.informativeText = @"Some text"; [[NSUserNotificationCenter defaultUserNotificationCenter] deliverNotification:userNotification]; However, i'd like to dismiss all notifications that are on the screen once