osx-lion

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

What is libintl.h and where can I get it?

久未见 提交于 2019-12-03 06:28:25
问题 Trying to do a make install of git from source, and it keep kicking up the error: make install * new build flags or prefix CC credential-store.o In file included from credential-store.c:1: In file included from ./cache.h:8: ./gettext.h:17:11: fatal error: 'libintl.h' file not found # include <libintl.h> ^ 1 error generated. make: *** [credential-store.o] Error 1 No amount of Googling has turned up anything on lib.intl.h. What is this elusive library, and how can I get it so I can finally

How can I mount vmdk in 10.7?

▼魔方 西西 提交于 2019-12-03 06:18:41
问题 I'm using OSX Lion and want to mount a VMDK-File which I've created on my VMWare Fusion 4.0.2. Is it possible?! I asked Google, it means I should mount the VMDK with an app under '/Library/Application Support/VMware Fusion/VMDKMounter.app', but this app isn't there. So I installed MacFuse (and later OSXFuse) like suggested, but there is still no VMDKMounter. Any suggestions? 回答1: You need a copy of Fusion 3.1.3 and Pacifist 2.6.4, download them from: http://downloads.vmware.com/d/info/desktop

Resolved: MAMP Php can't exec ('convert') after Homebrew ImageMagick install

痴心易碎 提交于 2019-12-03 05:53:02
问题 I installed Imagemagick using Homebrew on Lion, everything is fine except that it doesn't work at all when being called from php. Console: $ convert -version Version: ImageMagick 6.7.1-1 2011-07-29 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC Features: OpenMP $ which convert /usr/local/bin/convert PHP: echo exec ('convert -version'); or exec('convert -version', $output); var_dump($output); Produces nothing (or an empty array). exec ('/usr/local/bin

Error when install pylibmc using pip

懵懂的女人 提交于 2019-12-03 05:23:23
问题 Hello when I attempt to install pylibmc on OSX Lion using pip I get the following error: ./_pylibmcmodule.h:42:10: fatal error: 'libmemcached/memcached.h' file not found #include <libmemcached/memcached.h> ^ 1 error generated. error: command 'clang' failed with exit status 1 Any clues at how to solve this issue? 回答1: libmemcached may also be installed using Homebrew. brew install libmemcached After that, pip install pylibmc worked for me without needing to specify any additional arguments.

How to assign application to all desktops (spaces) of Mac OS X Lion using Objective C?

限于喜欢 提交于 2019-12-03 05:20:09
I am trying to create an Application on Mac OS X Lion which requires application to be assigned to All Desktops (Spaces). This can be manually done by Right clicking on application's dock icon and Selecting Options > Assign To > All Desktops . But, I need to find a way to do this via Objective C. Is there a way to achieve this programmatically? You can use method setCollectionBehavior: of NSWindow with the NSWindowCollectionBehaviorCanJoinAllSpaces bitwise flag. It will make the window visible on all spaces. NSUInteger collectionBehavior; // Gets the current collection behavior of the window

Right click shortcut for Mac Lion OS?

那年仲夏 提交于 2019-12-03 04:57:18
How to perform right click through Keyboard in Mac Lion OS? Since I am keyboard loving person, I don't like all the time use mouse for right click. I found much of the shortcuts of Mac through googling, but I didn't found this one. DShah Finally I got my answer: Go to System Preference --> Universal Access --> Mouse --> Enable Mouse Keys (ON) This will Enable you Numpad keys. Press Ctrl + 5 for Right Click. Fn-Ctrl-I on laptop thanks to this post: https://discussions.apple.com/thread/2018015?start=0&tstart=0 If use is restricted to Finder only and you do not mind incurring monetary costs, I

Is filemerge still available after Xcode 4.3 installation?

北城以北 提交于 2019-12-03 04:43:24
问题 Where can I find filemerge after Xcode is upgraded to 4.3? 回答1: In Xcode, choose this menu item: Xcode -> Open Developer Tool -> FileMerge. The app itself is here: /Applications/Xcode.app/Contents/Applications/FileMerge.app On the command line, use opendiff . You must have the command line tools installed -- go to Xcode, Preferences, Downloads tab, and install Command Line Tools if you haven't already. 回答2: Run this in your terminal: sudo /usr/bin/xcode-select -switch /Applications/Xcode.app

Binding view-based NSOutlineView to Core Data

怎甘沉沦 提交于 2019-12-03 03:53:02
问题 I'm trying to implement the new view-based OutlineView as a source list in my Mac app. I can't get values to display, though, so I made a small test app from the Core Data app template, and can't get it working right in there, either. I defined two simple classes in my data model; let's call them "Parent" and "Child". Parent has a single Attribute, "name", and a single relationship, "children". name is an optional string, and children is an optional to-many relationship to Child . Child has

Error: “No identities are available for signing” Xcode 4.3.1

三世轮回 提交于 2019-12-03 03:32:52
问题 I upgraded my OSX from Snow Leopard to Lion and I downloaded Xcode 4.3.1 Now when I try to validate and publish my app I get the first screenshot. If I click on Download Identifier button I get the second screenshot. Any suggest? 回答1: The certificates you created for signing your application are only valid on the machine (+ OS) which you used to create them. They can be migrated to another machine but if you already updated without doing so, I recon that this is not an option anymore. I also