osx-mountain-lion

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

时光怂恿深爱的人放手 提交于 2019-11-27 20:37:06
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? I reinstalled Ruby, that fixed it. Was able to use the built-in libraries. I have found some fixes for Lion, but none for Mountain Lion yet. Nonetheless I have tried this and it works: gem uninstall nokogiri libxml-ruby brew update brew uninstall libxml2 brew install libxml2 --with-xml2-config brew link libxml2

How to Set Java JDK Environment Variable for Mac OS X 10.8 Mountain Lion

谁说胖子不能爱 提交于 2019-11-27 19:52:49
Can anybody tell me how to set environment variable for Mac OS X 10.8 Mountain Lion. I just upgrade my Mac to Mac OS X 10.8. When I run a script. It said that "/Users/ruijiaoli/lejos_nxj/bin/nxj: line 64: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java: No such file or directory" I found that JDK in the directory within the path above. And it worked well in Mac OS X lion. Is the JDK path changed in Mac OS X mountain Lion? The version of Java on my system is 1.6. This is what I have tried: create the bash_profile: $ vim ~/.bash_profile add this to the file: export JAVA

Mac Mountain Lion send notification from CLI app

天涯浪子 提交于 2019-11-27 19:30:39
How can I send a notification to the notification center from a command line app? My attemps so far compile and run, but don't succeed in notifying me. Example #import <Cocoa/Cocoa.h> int main(int argc, const char * argv[]) { NSLog(@"Running notifications"); NSUserNotification *note = [[NSUserNotification alloc] init]; [note setTitle:@"Test"]; [note setInformativeText:@"Woot"]; NSUserNotificationCenter *center = [NSUserNotificationCenter defaultUserNotificationCenter]; [center scheduleNotification: note]; return 0; } I then compile like: clang -framework cocoa /tmp/Notes.m and I get 2012-07-29

OS X 10.8 Gatekeeper and Java applets

♀尐吖头ヾ 提交于 2019-11-27 19:20:13
With the new release of OS X 10.8, the Gatekeeper will popup the following warning, when you try to start a signed Java applet: The applet has been signed with a valid code signing certificate and will work correctly on other platforms as well as previous versions of OS X. If I change "Allow applications downloaded from:" to "Anywhere", it works correctly. As far as I can figure out "The digital signature could not be verified", actually means something like "the signature has not been made with a Mac Developer ID". So: Can I sign Java applets with a Mac Developer ID? Can I sign it with both a

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

二次信任 提交于 2019-11-27 17:31:21
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 the server). Question When I request a .pdf version of my view (I'm using the PDFKit Middleware option

iPhone Simulator suddenly started running very slow

点点圈 提交于 2019-11-27 16:51:47
I have been working on an app in iphone simulator for a number of weeks and it has been running well up until now, but all of a sudden has begun running very slow both when loading content and animations. I have not made any changes to my code since I last tested it successfully. I tried restarting the simulator (multiple times) and removing the app and doing a completely clean rebuild, but no luck. I also checked my cpu usage through the monitor while the simulator is running and I am only using about 30% of my cpu and 40% of memory. I fully understand that the simulator is never a quick as

com.apple.eawt - what exactly I should install

孤街醉人 提交于 2019-11-27 15:33:35
I'm using Max OS X Mountain Lion, java -version returns "1.6.0_37". But I cannot compile project with com.apple.eawt.* classes imported. What I have to install to have Apple Java Extensions on my system? Any help would be appreciated! Update : I receive following error from compiler: java: package com.apple.eawt does not exist Update-2 : XCode version 4.5.2 is installed Update-3 : The reason of my problem was missed ui.jar in classpath. Thanks to @Ian Roberts There is no JAR to download or anything extra to install, the classes are part of the JDK on Mac OS X. In Apple Java 6 JDKs they live in

How to install Scipy with pip on Mac Mountain Lion OS X v10.8

久未见 提交于 2019-11-27 14:39:25
I'm having serious difficulty installing Scipy with pip on Mountain Lion. I've tried: sudo pip install -e git+https://github.com/scipy/scipy#egg=scipy-dev As suggested in various places on the web. This leads to errors like: ld: library not found for -lgcc lipo: can't figure out the architecture type of: /var/tmp//ccC2HLVs.out and several warnings (I assume not serious) before the errors. Does anybody have any suggestions? Pip has difficulties with scipy on OS X in general. It is not trivial to install from the sources, so I advise against it. In OS X you have a few better options: Scipy

OSX Notification Center Icon

瘦欲@ 提交于 2019-11-27 13:34:03
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 references the correct icon name (minus the .icns) part Any ideas? The icon doesn't show up when I run the

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

梦想的初衷 提交于 2019-11-27 12:28:32
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 MAVEN_OPTS="-Xmx512m -Djavax.net.ssl.trustStore=/Users/myUser/.knowncerts/trust.jks -Djavax.net.ssl