osx-mountain-lion

How to let vim behave on Mac OS X as on Ubuntu?

柔情痞子 提交于 2019-12-21 20:29:11
问题 Recently I started using a Macbook Pro. Installed is Mountain Lion and so far everything is good. I'm coming from Ubuntu and being pretty much addicted to vim, I can't really stand how Mac Os X is treating vim. ;) For instance, if I use the mouse in Ubuntu to scroll up, the max I can scroll is the top of the file when a file is open. When I try that in Mac Os X, I scroll straight into the shell history. I'd like the Ubuntu behaviour better, because I find it easier and more logical (even

Ruby 2.0.0 RVM fails compilation OS X 10.8.2 Mountain Lion

旧巷老猫 提交于 2019-12-21 12:09:20
问题 Trying to install it with RVM I get the following error: > [2013-02-25 10:09:24] make CC = /usr/local/bin/gcc-4.2 LD = ld > LDSHARED = /usr/local/bin/gcc-4.2 -dynamic -bundle CFLAGS = -O3 > -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -pipe XCFLAGS = -include

What do setting do I use for xcode-select -switch?

人盡茶涼 提交于 2019-12-21 05:01:03
问题 I'm trying to install octave on macos mountain lion via the following: sudo port install octave However, the result of this command is always the following: Error: Error: No valid Xcode installation is properly selected. Error: Please use xcode-select to select an Xcode installation: Error: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer # version 4.4 Error: I've tried the suggested sudo xcode-select -switch command to no avail. The same error always occurs. Any ideas how

Qt 5 cannot deploy on SnowLeopard

泄露秘密 提交于 2019-12-21 04:50:49
问题 I have an issue where my app doesn't run on 10.6 Snow Leopard. I compile with these parameters: qmake LSPRO.pro -r -spec macx-clang CONFIG+=release CONFIG+=x86_64 in my Pro file, I have these elements: TEMPLATE = app HEADERS = \ mainwindow.h \ app_mediamanager.h \ api.h \ tool_htmleditor.h \ tool_videoencoder.h \ tool_thumbnaileditor.h SOURCES = \ main.cpp \ mainwindow.cpp \ app_mediamanager.cpp \ api.cpp \ tool_htmleditor.cpp \ tool_videoencoder.cpp \ tool_thumbnaileditor.cpp QT += network

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

纵饮孤独 提交于 2019-12-21 03:32:13
问题 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? 回答1: In Xcode 4.5, for iOS 6 and OSX 10.8 development,

MAMP local host not working

假如想象 提交于 2019-12-20 20:36:12
问题 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

Paramiko — using encrypted private key file on OS X

余生长醉 提交于 2019-12-20 18:29:06
问题 I'm trying to use Paramiko to connect to an SSH server from Python. This is what I tried so far: >>> import paramiko >>> import os >>> privatekeyfile = os.path.expanduser('~/.ssh/id_rsa') >>> mykey = paramiko.RSAKey.from_private_key_file(privatekeyfile) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/paramiko/pkey.py", line 198, in from_private_key_file key = cls(filename=filename,

beginner python on mac osx 10.8

落爺英雄遲暮 提交于 2019-12-20 14:42:36
问题 I'm learning programming and have been working with Ruby and ROR, but feel I like Python's language better for learning programming. Although I see the beauty of Ruby and Rails, I feel I need a language more easy to learn programming concepts, thus Python. However, I can't seem to find a community online or offline that work on Apple osx; mostly seems to be PC people for Python. What I like about Ruby is that there is a lot of books, communities, etc, and they tend to have a good amount of

How to show the share button in Mountain Lion?

南楼画角 提交于 2019-12-20 10:09:06
问题 Mountain Lion offers a built-in sharing button that reveals a menu of sharing services appropriate for the app: How can I insert it in my app? 回答1: To add the share button on Mountain Lion: 1) Add a NSButton called, for example, shareButton . 2) Add the standard image for this button: [shareButton setImage:[NSImage imageNamed:NSImageNameShareTemplate]]; [shareButton sendActionOn:NSLeftMouseDownMask]; 3) Into the "on click action", present the NSSharingServicePicker : NSSharingServicePicker

How to compile distributable Fortran binaries on Mac OS X Mountain Lion?

别说谁变了你拦得住时间么 提交于 2019-12-20 09:41:05
问题 Since Apple have stopped distributing gfortran with Xcode, how should I compile architecture independent Fortran code? I have Mac OS X Mountain Lion (10.8), and XCode 4.4 installed, with the Command Line Tools package installed. Apple's Native Compilers As far as I can tell, the Xcode C / C++ / ObjC compilers use a fork of the GNU compiler collection, with llvm as a backend; the latter I figure enables compiling and optimising "universal" binaries, for both Intel and PPC architectures. 3rd