osx-lion

How to run iPhone emulator WITHOUT starting Xcode?

主宰稳场 提交于 2019-12-29 10:09:10
问题 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

py2app TypeError: dyld_find() got an unexpected keyword argument 'loader'

若如初见. 提交于 2019-12-29 06:55:34
问题 I'm having difficulty building my app using py2app. I can build it in alias mode without issue using this command: python3.4 setup.py py2app -A However when I try and build it using: python3.4 setup.py py2app I get the error message as per title of this post. From the research I've done I believe it's an issue with Pillow; however I need Pillow for this app. (Unless there's another module I can use to import images??). I've also tried cx_freeze without success. Any help or direction much

How to use correct ruby in vim ? How to modify $PATH in VIM?

流过昼夜 提交于 2019-12-29 03:39:07
问题 I use plain Vim with ruby support on Lion (installed by gist). I am using ruby with rbenv so my path looks like /users/me/.rbenv/shims:..... From within vim the path is :!echo $PATH > usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/fb/.rbenv/shims:.... Even I can create and modify an environment variable: :let $PATH = "/bar:/foo" :!echo $PATH > /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/foo:/bar paths remains starting with /usr/bin. So how can I access my ruby

PostgreSQL Permission denied Error on Unix domain socket “/var/pgsql_socket/.s.PGSQL.5432” - Lion Server 10.7.3 or Lion Server 10.7.4

喜你入骨 提交于 2019-12-29 01:47:11
问题 I recently had major permission problems using Lion Server where permissions would change on folders at will. During this time I had started getting the following error when trying to do a rake db:migrate command: rake aborted! could not connect to server: Permission denied Is the server running locally and accepting connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"? This had been working before when I first created a Rails 3.2.3 application while running 10.7.2. All of a

“PHP Fatal error: Class 'HttpRequest' not found”

孤者浪人 提交于 2019-12-27 17:40:14
问题 I've been stuck trying to solve this problem in many ways, reading a lot of posts but still having no luck. I work on a Mac, OSX 10.7 Lion, and I'm writing a plugin for a WordPress site (php files) using MAMP, and at one point I have to make an HTTP request: $request = new HttpRequest('something'); $request->setMethod(HTTP_METH_GET); There's an error when executing this request and when I checked the log file, here's the message: "PHP Fatal error: Class 'HttpRequest' not found in (the_php

OSX 10.7.5 UTF-8 encoding over ssh

こ雲淡風輕ζ 提交于 2019-12-25 13:46:31
问题 I connect to a remote linux machine over ssh and when I view a remote text file with cat command, I see incorrect incoding. It's supposed to show äöü etc, but shows garbage. I tried a luit trick, luit -encoding "UTF-8" ssh remotehost but on Mac it gives error "Couldn't copy terminal settings" Which is a known issue and apparently Apple is not going to fix it on Lion. So I am stuck now. What are the alternatives? 回答1: This is a bug in Mac OS that causes tcsetattr to fail on ptys opened with

Applescript System Events Returns .DS_Store - How can I ignore

泄露秘密 提交于 2019-12-25 13:37:14
问题 I have looked around on the net for hours looking for this answer so I apologize if its there somewhere. This script below works fine except for the fact that it returns the .DS_Store file how can I exclude it from this query and all other hidden files for that matter but because I am creating the folder in my script the only one there is .DS_Store tell application "System Events" set listOfInputs to POSIX path of every disk item of folder a as list end tell Here is the full script below. I

configuring a MySQL DataSource in GlassFish 3 Application Server

你离开我真会死。 提交于 2019-12-25 07:55:10
问题 Does anyone know the steps for configuring a mysql datasource in glassfish 3? I am stuck on what the datasourceName should be. Here are the steps I have been following. Are they correct? Am I missing a step? BTW, I have glassfish 3.1.2 installed as part of Netbeans 7.2 on Mac OSX Lion 1) Install MySQL using XAMPP 2) Download /jars/jdbc-drivers/mysql-connector-java-5.1.22 and add to CLASSPATH 3) From Netbeans, start glassfish and launch Domain Admin Console 4) Go to Common Tasks > Resources >

Open Xcode 4.3.1 in 32bit mode

别来无恙 提交于 2019-12-25 06:48:41
问题 I noticed after upgrading from 4.2 to 4.3.1 that there is no longer a 32 bit mode option in the Get Info for Xcode. How would I run Xcode 4.3.1 in 32 bit mode now? 回答1: You can't. Xcode is now 64-bit only -- there's no 32-bit code in it anymore. If you had some plugins which were previously 32-bit only, you will need to upgrade them. 回答2: If you run your mac in 32 bit mode (when you start the computeer with "3" and "2" key) you will have your machine and their programs in 32 mode. 来源: https:/

Should I reinstall Mysql?

非 Y 不嫁゛ 提交于 2019-12-25 01:35:53
问题 I'm getting kind of desperate here trying to get mysql to work on osx lion. I've been through nearly every article on the web these past few days looking for a way to fix the problem with the error. When I try to start the server is gives this error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) when I try to create a database with 'rake db:create' it gives the same error. sometimes it says that or I get errors about "please install gem-blabhalbhabhlb". And that gem