osx-mountain-lion

Running Python Script with Launchd: imports not found

独自空忆成欢 提交于 2019-12-18 07:08:26
问题 I've been trying to set up a script to run a python program at regular intervals using launchd . The python program fails because it can't find my imports---I know this because I caught the errors in a log file. To fix this problem, I created ~\.MacOSX\environment.plist , and duplicated my PYTHONPATH there, logged out and logged in again. This seems to be insufficient to solve the problem, and I'm at a loss as to what else to try. I'm running OSX, 10.8.3. Related threads: launchd executes

Installing PHPUnit on MAMP 2.1.3 (Mountain Lion)

亡梦爱人 提交于 2019-12-18 06:54:16
问题 I'm struggling with this issue. Here's what I've tried : $ cd /Applications/MAMP/bin/php/php5.4.10/bin/ $ sudo ./pear channel-update pear.php.net $ sudo ./pear upgrade pear $ sudo /Applications/MAMP/bin/php/php5.4.10/bin/pear channel-discover pear.phpunit.de $ sudo /Applications/MAMP/bin/php/php5.4.10/bin/pear channel-discover pear.symfony-project.com $ sudo /Applications/MAMP/bin/php/php5.4.10/bin/pear install phpunit/PHPUnit So it seems to work, but phpunit is actually installed in

Conditional categories in Mountain Lion

感情迁移 提交于 2019-12-17 20:26:11
问题 Mountain Lion introduced new APIs, some of which we had implemented as categories in our project. For examples, we have a category NSColor+CGColorAdditions that implemented CGColor and colorWithCGColor: for NSColor . These methods have been added in Mountain Lion. Ideally, we would like to use these categories if the client OS is older than Mountain Lion, and not use them if it's Mountain Lion. How can we do this? Or is there a better alternative? 回答1: NSColor *_NSColor_colorWithCGColor_

Finder update/refresh applescript not working in 10.8

不羁岁月 提交于 2019-12-17 19:54:20
问题 I have been using apple script for updating display for files and folders in finder. This is simplified version of that script: tell application "Finder" tell window 1 to update items end tell I can see that since 10.8 (Mountain Lion) update command is not properly executed or is not executed at all. Until 10.8 everything was working perfectly - Immediately after update command all icons got redrawn. I use this for showing overlay icons. Have any of you encountered same problem? I blame

gdb fails on mountain lion

此生再无相见时 提交于 2019-12-17 18:16:25
问题 I tried to compile a 7.x Version of gdb without any luck. I codesigned the executable(http://sourceware.org/gdb/wiki/BuildingOnDarwin). With following version there were these problems. 7.5,7.4,git clone: unknown load command 0x2a (and others) for my application and different system libraries when starting gbd. When trying to print a vector for example i always get: Could not find the frame base for "main(int, char**)" 7.3 (macports and from gdb-website): on starting the application it fails

WARNING: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.8

别等时光非礼了梦想. 提交于 2019-12-17 15:55:17
问题 After making a fresh install of Mac OS X 10.8 Mountain Lion, and after installing Ruby 1.9.3 and Ruby on Rails 3.2.6, I started the Rails console and I got this warning message: WARNING: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.8 How can I fix it? 回答1: I reinstalled Ruby, that fixed it. Was able to use the built-in libraries. 回答2: I have found some fixes for Lion, but none for Mountain Lion yet. Nonetheless I have tried this and it works: gem uninstall

Why does PDFKit/wkhtmltopdf hang but renders PDF as expected when Rails app is killed?

六眼飞鱼酱① 提交于 2019-12-17 15:27:58
问题 Background After reading around it seemed to me that Prawn is out and wkhtmltopdf is in. It also seems like the PDFKit and wicked_pdf gems for Rails are the new cool. So I found a screencast by Ryan on how to use PDFKit. I installed everything, tested wkhtmltopdf on the CLI with no problems, fiddled around with Rails settingsto run multiple processes so the asset pipeline works, and all seemed good, except I'm still stuck at the very end of the process (actually getting the PDF response from

OSX Notification Center Icon

末鹿安然 提交于 2019-12-17 10:44:51
问题 I'm using OSX's Notification Center APIs for the first time and can't seem to figure out how to make my app's icon to show up in the Notification badge. The default "your app doesn't have an icon" icon keeps showing up: Here's what I've done so far I have created an icns file that includes 512, 256, 128, 32 & 16px versions dragged the icon into the "App Icon" section of the target's summary I made to sure to check the box to copy the icon into the project the plist's "Icon file" section

How to set environment variables to an application on OSX Mountain Lion?

血红的双手。 提交于 2019-12-17 10:42:59
问题 since the upgrade to OSX Mountain Lion I‘ve got some problems with setting the environment variables for eclipse and maven. My goal is to run a maven command in Eclipse. This command needs to download artefacts (resolve dependencies) from a remote repository. The repository is authenticated via HTTPS. I‘ve followed the Guide to Remote repository access through authenticated HTTPS and added the lines below to my .bash_profil . If I‘m running maven in the terminal everythings works fine. export

Mountain Lion rvm install 1.8.7 x11 error

血红的双手。 提交于 2019-12-17 10:08:47
问题 After update to Mountain Lion, I tried install 1.8.7, and I got error. X11 file not found, I installed Xquarkz, but nothing changed. Whats wrong? Fail to find [tclConfig.sh, tkConfig.sh] Use MacOS X Frameworks. Find Tcl/Tk libraries. Make tcltklib.so which is required by Ruby/Tk. clang -I. -I../.. -I../../. -I../.././ext/tk -DHAVE_RB_SAFE_LEVEL -DHAVE_RB_HASH_LOOKUP -DHAVE_RB_PROC_NEW -DHAVE_RB_OBJ_TAINT -DHAVE_ST_PTR -DHAVE_ST_LEN -DRUBY_VERSION=\"1.8.7\" -DRUBY_RELEASE_DATE=\"2012-06-29\"