osx-lion

Disable rubber-band scrolling for webview in lion

落爺英雄遲暮 提交于 2019-12-18 02:50:33
问题 I have a Cocoa webview, with a web application in it. The web application has a fixed toolbar itself, and with the elastic scrolling, and the toolbar coming below the top, it looks bad. Is there a way to disable the elastic/rubber-band scrolling, or at least keep the toolbar from moving with the rest of the content? I can modify the web app as much as neede. 回答1: Maybe this article would help you. In short: disable overflow on HTML and BODY , add a wrapper with overflow:auto around all the

401 Unauthorized error while logging in Manager-App of Tomcat

一曲冷凌霜 提交于 2019-12-17 23:10:18
问题 I am trying to log in to the Manager App in Tomcat 7.0.22 for Mac OS X 10.7. Here is the error I am getting: http://f.cl.ly/items/421q1K3f1i0X1H1M181v/so.tiff 401 Unauthorized You are not authorized to view this page. If you have not changed any configuration files, please examine the file conf/tomcat-users.xml in your installation. That file must contain the credentials to let you use this webapp. For example, to add the manager-gui role to a user named tomcat with a password of s3cret, add

How to install Python 2.7 bindings for OpenCV using MacPorts

早过忘川 提交于 2019-12-17 22:42:30
问题 When trying to "import cv" in python I get: "ImportError: No module named cv". This question has appeared in many forms, but I haven't found the answer that helps. On my Mac OS X Lion, among many other ports, I have run: sudo port install python27 and sudo port install opencv +python27 Running: port select python I see: "python27 (active)" And running: port installed opencv I see: "opencv @2.3.1a_1+python27 (active)" What else should I check? Thanks. 回答1: I had this same problem. It looks

Bug with starting Instruments via Profile under Xcode 4.1 Build 4B110

一世执手 提交于 2019-12-17 21:55:47
问题 Important Update Strange bug is fixed (at least for me) in Xcode 4.2! I've a severe problem with Xcode 4.1 Build 4B110 under Mac OS X Lion and running Instruments via Xcode. The problem is that Instrument freezes in partly if I start it via Xcode. So if I start a project in Xcode 4.1 and open "Profile" the Instruments UI appears. The timer starts running, but the instruments app doesn't track anything and the more severe problem: The program seems to be running but does not react on any

Install NumPy for Python 3.2.3 on OS X 10.7.4

别来无恙 提交于 2019-12-17 19:45:24
问题 I have been trying for months to get numpy installed for Python 3 but despite copious amounts of Googling and even posting to the numpy mailing list I am still no closer to a solution. I have managed to get it installed via MacPorts but unfortunately there doesn't appear to be a port of MatPlotLib for Python 3 which is the main reason I am trying to install numpy...so I am a bit stuck... I keep getting the same error whilst trying to build from the setup.py file. I have included the terminal

App Sandbox: document-scoped bookmark not resolving; not returning any error

微笑、不失礼 提交于 2019-12-17 19:33:05
问题 I'm sandboxing my app, and trying to allow for import/export of multiple files, using an XML file to refer to them. To allow my app (or another sandboxed app) access to the files listed in the XML, I'm also including a serialized security-scoped bookmark. I'm serializing it as described in this answer, and my unit tests (which are not sandboxed) write and read the XML data without issue. When my app resolves the bookmark, the NSURL returned is nil, as is the NSError reference. Since I don't

Imagemagick issue on Lion installed with Homebrew

三世轮回 提交于 2019-12-17 16:48:09
问题 I am trying to use the Paperclip gem on a Rails project so followed the docs and first installed Imagemagick using the Homebrew recipe. I added to my model my attachment has_attached_file :screenshot This worked OK and the file uploads functioned as expected I then wanted to add thumbnails to this, so again followed the docs and added to the model has_attached_file :screenshot, :styles => { :medium => "300x300>", :thumb => "100x100>" } At this point the uploads no longer worked I check the

Getting a python virtual env error after installing Lion

白昼怎懂夜的黑 提交于 2019-12-17 15:30:00
问题 I haven't touched python and virtualenv in a while, and I believe I setup my MBP with virtualenv and pip, but have totally forgotten how this stuff works. After installing lion, I'm getting this error when I open up a new terminal window: Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named virtualenvwrapper.hook_loader virtualenvwrapper.sh: There was a problem running the initialization hooks. If Python could not import the module

Easiest way to activate PHP and MySQL on Mac OS 10.6 (Snow Leopard), 10.7 (Lion), 10.8 (Mountain Lion)?

大兔子大兔子 提交于 2019-12-17 15:08:21
问题 What is the easiest way to activate PHP and MySQL on Mac OS 10.6 (Snow Leopard), 10.7 (Lion), 10.8 (Mountain Lion)? I'd prefer to use any bundled versions before resorting to downloading from the PHP or MySQL websites. That also rules out MAMP and similar. I'm comfortable at the command line in Terminal. 回答1: Open a good text editor (I'd recommend TextMate, but the free TextWrangler or vi or nano will do too), and open: /etc/apache2/httpd.conf Find the line: "#LoadModule php5_module libexec

Maven home (M2_HOME) not being picked up by IntelliJ IDEA

纵然是瞬间 提交于 2019-12-17 07:21:08
问题 I am trying to do a simple maven build with IntelliJ IDEA 10.5.1 on OS X Lion and am getting the following error: Error running my-app [package]: No valid Maven installation found. Either set the home directory in the configuration dialog or set the M2_HOME environment variable on your system. I have set M2_HOME to the following, but I am still having issues. And yes, I did restart IntelliJ. $ echo $M2_HOME /usr/share/maven I then manually entered the path to maven in IntelliJ's Maven