osx-lion

Installing Sublime Text's command line tool 'subl' in terminal, permission denied?

北城以北 提交于 2019-11-29 18:47:25
I'm tryng to use Sublime Text from the terminal, for example by typing subl . I'm following the steps from Sublime Text's website: Setup The first task is to make a symlink to subl. Assuming you've placed Sublime Text 2 in the Applications folder, and that you have a ~/bin directory in your path, you can run: ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl I keep getting permission denied : ~/bin/subl: Permission Denied I have been searching around for a similar problem but can't find one that's applicable. Can someone point me to the right direction? Subash

How to run iPhone emulator WITHOUT starting Xcode?

删除回忆录丶 提交于 2019-11-29 18:34:38
On my old Mac running Snow Leopard, I could type "ios" into spotlight and it would start up the iPhone/iPad emulator by itself. I have since had to get a new machine running Lion. I have installed Xcode for Lion, I have installed the developer tool options from the preferences panel. But the "ios" option is no longer there :( The only way now seems to be to run Xcode, create an empty project and then launch emulator with the run option. I have searched and searched the intertubes and the facewebs, but nothing helps. Does anyone know how to run only the emulator on Lion? UPDATE: THIS IS

Cannot log in to phpMyAdmin with my root password for mySQL (on Mac OS X Lion)

半腔热情 提交于 2019-11-29 18:01:40
问题 So I am trying to log in to phpMyAdmin using my root password (Username: root Password: ******), however, I continue to receive the error: #2002 Cannot log in to the MySQL server I am pretty sure I know the root password, as I have typed into terminal on Mac OS X the line: sudo /usr/local/mysql/support-files/mysql.server start and was prompted with a "Password:" line. I typed the password, and the terminal read: Starting MySQL...SUCCESS! And thus the server started up. I am not sure why the

Trouble creating Security-Scoped Bookmark

假装没事ソ 提交于 2019-11-29 17:34:12
问题 I'm converting my Lion app to use the App Sandbox. I'm trying to make use of the security-scoped bookmarks feature introduced in 10.7.3 to allow persistent access to a folder. The code I have below returns a nil bookmark, and produces the following log message: XPC couldn't look up the Mach service for scoped bookmarks agent . I set the User Selected File Access entitlement to Read/Write Access , and also tried with and without the surrounding ..AccessingSecurityScopedResource calls. I think

Make error installing Ruby 1.9.2 with RVM and Readline under OSX Lion

耗尽温柔 提交于 2019-11-29 17:15:31
问题 I'm having extensive problems getting rvm to work again under OSX Lion. Unsurprisingly, it seems to be a problem with readline, which is noted in several places. HOWEVER, (and this is an update) it seems that readline itself is not being installed correctly! Here is what I've tried so far: Reinstalling xcode (4.1) (I also removed the Developer folder first.) Cleaning and reinstalling all my ports as per http://trac.macports.org/wiki/Migration Reinstalling readline as per: https://rvm

How do I add Objective C code to a FireBreath Project?

删除回忆录丶 提交于 2019-11-29 14:46:53
I am writing a browser plugin for Mac OS that will place a status bar icon in the status bar, which users can use to interface with the browser plugin. I've successfully built a FireBreath 1.6 project in XCode 4.4.1, and can install it in the browser. However, FireBreath uses C++, whereas a large majority of the existing libraries for Mac OS are written in Objective C. In the /Mac/projectDef.make file, I added the Cocoa Framework and Foundation Framework, as suggested here and in other resources I've found on the Internet: target_link_libraries(${PROJECT_NAME} ${PLUGIN_INTERNAL_DEPS} ${Cocoa

How do I install lxml on Mac OS X 10.7.4? I have exhausted all options

泄露秘密 提交于 2019-11-29 14:40:38
问题 Tried various avenues but no luck. I am using a MBP with 10.7.4. I don't remember the last time I had so many problems installing anything with Python on my Mac. Please help me use lxml on my local machine and not rely on SVN commits, updates to remotely run on the Linux machine. $ sudo STATIC_DEPS=true /usr/bin/easy_install-2.7 lxml Password: Searching for lxml Reading http://pypi.python.org/simple/lxml/ Reading http://codespeak.net/lxml Best match: lxml 2.3.4 Downloading http://lxml.de

Why java midi synth on mac stop playing notes

醉酒当歌 提交于 2019-11-29 11:27:09
I am trying to make a simple app that read from a midi port (hardware) and forward events to the software synth. It mostly work except that the soft synth stop playing from time to time. I can see midi messages being forwarded in the logs, I can trace in debug and see that the event reach the native code in the synth receiver but for some reason, the synth does not play the note. If you wait then the sound play again, then stop, then play again... Here is a demo app that shows the problem. If you hold the enter button in the console, you will hear a note repeatedly. After some time (likely

How to perform matrix inverse operation using the accelerate framework?

戏子无情 提交于 2019-11-29 10:58:15
I would like to find the inverse of a matrix. I know this involves first LU factorisation then the inversion step but I cannot find the required function by searching apple's docs of 10.7! This seems like a useful post Symmetric Matrix Inversion in C using CBLAS/LAPACK , pointing out that the sgetrf_ and sgetri_ functions should be used. However searching these terms I find nothing in Xcode docs. Does anybody have boiler plate code for this matrix operation? Apple does not document the LAPACK code at all, I guess because they just implement the standard interface from netlib.org . It's a shame

NSTextField not calling delegate when inside an NSTableCellView

╄→尐↘猪︶ㄣ 提交于 2019-11-29 10:49:56
I have a fairly vanilla Source List (dragged out from the Object Library) in my app, with an NSTreeController as its data source. I set the NSTextField inside the DataCell to be editable, but I want to be able to turn that off for some cells. The way I figured you would do this, is with a delegate for the NSTextField , but none of the delegate methods I've tried get called. Is there something I'm missing? I have the delegate set with an outlet in my XIB, and it happens to be the delegate to the owner NSOutlineView , as well, implementing both the NSOutlineViewDelegate and NSTextFieldDelegate