osx-mountain-lion

Xcode 4.5 + UIScrollView: Cannot see struts and springs (OSX 10.8 Mountain Lion)

倾然丶 夕夏残阳落幕 提交于 2019-12-03 10:27:01
Disclaimer: Brand new to iOS dev. Go easy on me. Got a funny situation in Xcode 4.5. My Size Inspector looks like this: ...and I can't see the struts and springs area at all . The really strange part is that when I click away to something like the Connections inspector I do see the struts and springs area, but only for a split second, and it is gone when I come back. Is this normal? Is there an easy way to correct this behavior? Simon Germain In Xcode 4.5, for iOS 6 and OSX 10.8 development, AutoLayout is being enabled by default. To turn it off, open your xib file and click on a blank spot

Mountain Lion update and mercurial libraries python

丶灬走出姿态 提交于 2019-12-03 09:21:29
I updated the mac to Mountain Lion (10.8) and now the project I developed with Python and Google App Engine does not work. GAE libraries are found, while standard Python libraries (are these Python libraries?) are missed (e.g. cgi , logging , json ). When I open eclipse (which has PyDeV) I receive this alert: abort: couldn't find mercurial libraries in [/Library/Python/2.7/site-packages/ /usr/local/bin /Library/Python/2.7/site-packages/pip-1.1-py2.7.egg /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2

OS X Mountain Lion: how does path_helper work?

我的梦境 提交于 2019-12-03 09:06:26
问题 I installed rbenv through homebrew, and now I don't know why path_helper put ~/.rbenv/shims at the end of the path instead of the beginning. And most importantly, how did path_helper get this information? According to the man page of path_helper, it reads entries from /etc/paths and from files in /etc/paths.d. But I cannot find the string ".rbenv/shims" there. ~% cat /etc/paths /usr/bin /bin /usr/sbin /sbin /usr/local/bin ~% ls -la /etc/paths.d total 0 drwxr-xr-x 2 root wheel 68 Jun 21 03:16

Error during rails install

孤人 提交于 2019-12-03 08:59:40
Saads-Mac-Pro:~ SMD$ gem install rails Building native extensions. This could take a while... /Users/SMD/.rvm/rubies/ruby-2.0.0- p247/lib/ruby/site_ruby/2.0.0/rubygems/ext/builder.rb:54: warning: Insecure world writable dir /usr in PATH, mode 040777 ERROR: Error installing rails: ERROR: Failed to build gem native extension. /Users/SMD/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided

OSX launchd plist for node forever process

帅比萌擦擦* 提交于 2019-12-03 07:38:22
问题 I am trying to write a launchd.plist file for my node server. I am using forever to run my node server. I would like the server to start on boot. I would also like to wait for the mongodb launchd plist to run first. I installed mongobb using homebrew and it came with a launchd.plist already. I have executed the following: $ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist plist for mongodb is: <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs

Uninstall python.org version of python2.7 in favor of default OS X python2.7

橙三吉。 提交于 2019-12-03 07:25:17
问题 I'm running OS X 10.8.2 and I believe that by default this comes with Python 2.7.3. I previously had Python 2.7.2 installed from python.org and would like to scrap it to basically reset my system's default python to that which comes pre-installed. The reason being that whenever I launch any *.py file IDLE refuses to open (even when specifying my installed Python2.7.2 IDLE) and I want to get things up to date. Although I never use it, I do have MacPorts installed and I'm seeing that it did a

How to not get special characters in place of meta key combinations for VIM on OS X

时光怂恿深爱的人放手 提交于 2019-12-03 06:45:30
On OS X, at any program, when I type option-p I get π , option-P I get ∏ and there's a bunch of alt / option bindings that just return greek and other special characters. Is there a way to disable that? Currently I'm using the Auto Pairs VIM plugin and it has the following default mappings: <M-p> : Toggle Autopairs (g:AutoPairsShortcutToggle) <M-e> : Fast Wrap (g:AutoPairsShortcutFastWrap) <M-n> : Jump to next closed pair (g:AutoPairsShortcutJump) <M-b> : BackInsert (g:AutoPairsShortcutBackInsert) It seems I can't use these and other meta key based VIM mappings while this special input is

How to build an app that runs on Mac OS 10.6 and supports the NSUserNotificationCenter?

走远了吗. 提交于 2019-12-03 06:17:46
I did a lot of research but I just couldn't find what I'm looking for: Currently, both the Deployment Target and Base SDK of my app is set to 10.8 , and it runs perfectly. I can properly post Notifications to Mountain Lions new Notification Center! To build an app that also runs under Mac OS 10.6 , I've set the Deployment Target to 10.6 and built it ( as recommended in this thread ). Unfortunately, the app crashes on 10.6, and the crash report is detailing that the NSUserNotificationCenter couldn't be found (No OS version handling). -- So what I surely have to do, is to check, whether the

Applescript get list of running apps?

旧时模样 提交于 2019-12-03 06:13:23
Applescript newbie question again :) I am trying to create a small applescript that will allow me to select multiple items from a list of currently running applications and then quit those selected apps. Something like this works but rather than having to click on each dialog it would be much easier to chose from a list. tell application "System Events" repeat with p in every process if background only of p is false then display dialog "Would you like to quit " & name of p & "?" as string end if end repeat end tell Any and all help would be greatly appreciated! Thanks! Try this: tell

MAMP local host not working

女生的网名这么多〃 提交于 2019-12-03 06:04:54
My MacBook Pro 13 inch is running on OS X 10.8.2 and I have downloaded MAMP 2.1.4. I want to run the MAMP program. After I connect to the servers successfully I then try to press the 'open start page'. It takes me to the Google Chrome browser with a page that says the page can't be found. I've installed MAMP and am running the Apache server and MySQL servers fine through either port 80 and 3306 or 8888 and 8889 - using either combination makes the status lights go green. The local host can't be found for some reason. I have done extensive research where I have: uninstalled and reinstalled MAMP