osx-lion

OS X Terminal text stacking on top of itself

牧云@^-^@ 提交于 2019-11-29 22:50:38
I'm encountering a strange issue in the Terminal app in Mac OS X Lion. When I enter in a long line of text that should wrap to the next line when it reaches the edge of the Terminal window, it continues to type on top of the text from the line above it. Here are some screenshots to help illustrate the issue: Before my text reaches the window edge: After the text reaches the window edge: I've also supplied screenshots of my text and window settings in case those might be helpful. Text settings: Window settings: Thanks in advance for any assistance offered. I've had this issue for a while and

Drop database return “Error dropping database errno: 66” in MySQL

瘦欲@ 提交于 2019-11-29 22:08:58
Consider: DROP DATABASE db_name; ERROR 1010 (HY000): Error dropping database (can't rmdir './db_name', errno: 66) The problem is that I don't know where the file/directory is located - this file is missing in /usr/local/mysql/bin/ ... How do I fix this issue? mysql> drop database DB_NAME; ERROR 1010 (HY000): Error dropping database (can't rmdir './DB_NAME', errno: 66) Find the database directory: mysql -e "select @@datadir" -> /usr/local/mysql/data/ Go to the DataBase folder: cd /usr/local/mysql/data/ Delete DB folder of the DB with the issue (in this case: sudo rm -rf DB_NAME ) If you are

MySQL password issues (mac OS X Lion) [closed]

≯℡__Kan透↙ 提交于 2019-11-29 21:35:39
I am trying to set the root password for MySQL in the terminal in Mac OS X Lion, and I am having issues. Every time I use the line: /usr/local/mysql/bin/mysqladmin -u root password ****** (where ****** is the password I want to set) I receive the error: /usr/local/mysql/bin/mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: NO)' I have not set a password previously, so I do not know why I am receiving this error. minhas23 Here is the procedure to reset password of root user. 1) Stop mysql (Kill mysql process or run following

brew install mongodb error: Cowardly refusing to `sudo brew install' Mac OSX Lion

南笙酒味 提交于 2019-11-29 20:43:12
I am not sure why I'm getting this error: $ brew install mongodb ==> Downloading http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-2.0.4.tgz ######################################################################## 100.0% Error: Permission denied - /usr/local/var/log/mongodb So I try to run it with sudo: $ sudo brew install mongodb Password: Cowardly refusing to `sudo brew install' If I try to create the file myself I get this: Error: File exists - /usr/local/var/log/mongodb It gets even more interesting when you read this thread on homebrew's github about the error: https://github.com/mxcl

Using Autolayout with expanding NSTextViews

烂漫一生 提交于 2019-11-29 20:38:09
My app consists of an NSScrollView whose document view contains a number of vertically stacked NSTextViews — each of which resizes in the vertical direction as text is added. Currently, this is all managed in code. The NSTextViews resize automatically, but I observe their resizing with an NSViewFrameDidChangeNotification , recalc all their origins so that they don't overlap, and resize their superview (the scroll view's document view) so that they all fit and can be scrolled to. This seems as though it would be the perfect candidate for autolayout! I set NSLayoutConstraints between the first

Android emulator laggy on Mac

孤街醉人 提交于 2019-11-29 20:29:03
First of all, yes I know there's a lot of topics similar to this issue, I did use the search function on stack overflow. But most of the issue that were brought up seems to about long boot times. For me, the emulator is so slow, simply sliding from one home screen to another is like watching a slideshow. I placed in more 'RAM' into the virtual device but nothing changes. How do I fix this? I'm using a Macbook Pro 2010 on Mac OS X Lion. On the latest version of the Android SDK there is support for x86 and native execution. Now it is possible to run the emulator at native speeds on a Mac but

Where to get macos SDK 10.6 for Xcode?

回眸只為那壹抹淺笑 提交于 2019-11-29 20:28:59
I am having Xcode 4.4 on OS X Lion. I'd like to install the Mac 10.6 SDK - also known as macosx10.7 SDK - because I need to compile openFrameworks. I found that I need to download additional tools from this site . However I didn't find any 10.6 SDK there. I also tried looking in Xcode Preferences -> Downloads -> Components, but there is no way. I am wondering how can I install previous SDKs for Xcode? Rob Napier Unfortunately, Apple tends to make this much harder than you'd like. You can't download SDKs by themselves. They come as part of specific versions of Xcode. So you have to download the

commands not found on zsh

心已入冬 提交于 2019-11-29 19:07:31
I am using the z Shell ( zsh ) instead of the default bash, and something wrong happen so that all commands who used to work are no longer recognized: ls zsh: command not found: ls open -e .zshrc zsh: correct 'open' to '_open' [nyae]? I don't know how to reset zsh or how to fix this. Here is the content of $PATH variable: echo $PATH /Users/Malloc/bin/Sencha/Cmd/3.1.2.342:/usr/local/bin/mate I cannot open the .bash_profile file nor .zshrc file, seems the only solution is to reset the zsh . Any ideas? EDIT: I even tried to reset zsh as indicated in this thread , but always got command not found

How can I install the Python library 'gevent' on Mac OS X Lion

不羁的心 提交于 2019-11-29 19:04:48
Python library gevent , version 0.13.6 (the current version on PyPI) will not pip install on OS X Lion, Python 2.7 (and probably others.) It works fine on Snow Leopard. How can I get this library installed? Bonus points if it can be done using pip install , rather than a manual or custom process, because then it will play nicely with automated builds. Here is my pip install output: pip install gevent Downloading/unpacking gevent Running setup.py egg_info for package gevent Requirement already satisfied (use --upgrade to upgrade): greenlet in ./tl_env/lib/python2.7/site-packages (from gevent)

PostgreSQL server wouldn't shutdown on Lion (Mac OS 10.7)

岁酱吖の 提交于 2019-11-29 18:56:37
I installed PostgreSQL using Homebrew on Lion. It starts okay but wouldn't shutdown. I tried: $ #started with $ pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start $ #tried stoping with $ pg_ctl -D /usr/local/var/postgres stop -m immediate waiting for server to shut down................................... failed pg_ctl: server does not shut down I fixed this issue by deleting the Launch Agent: launchctl unload -w ~/Library/LaunchAgents/org.postgresql.postgres.plist rm ~/Library/LaunchAgents/org.postgresql.postgres.plist Greg launchctl unload -w ~/Library/LaunchAgents