osx-lion

How to run 32-bit Java on Mac OSX 10.7 Lion

女生的网名这么多〃 提交于 2019-11-27 11:36:15
From my experience with Windows 7 (64-bit) and Java, a 32-bit JRE uses less memory and runs significantly faster than a 64-bit JRE (provided you don't need or benefit from having a lot of memory). I imagine the same thing is true for Mac OSX (and other platforms) as well. I am currently running OSX Lion (v10.7), and I have installed the standard Java app. Under Java Preferences, I see "Java SE 6" from "Apple Inc." for both CPU-types "32-bit" and "64-bit" version "1.6.0_26-b03-383". I have changed the preferred order to put the 32-bit version on top of the 64-bit version, hoping that this would

numpy and scipy for preinstalled python 2.6.7 on mac OS Lion

时间秒杀一切 提交于 2019-11-27 10:59:05
问题 Is there anyway to install numpy and scipy on python 2.6.7 that comes with Mac OS Lion? I am aware that Lion has Python 2.7 as well. But I need to stick with Python 2.6 cause I am using a module that does not work on Python 2.7. 回答1: Lion comes with an easy_install for each of its Python implementations: /usr/bin/easy_install-2.7 for /usr/bin/python2.7 , and likewise for 2.6 and 2.5. However, scipy requires a Fortran compiler, and Lion doesn't come with one of those. It also looks like you

Installing Ruby on Rails - Mac OS Lion

淺唱寂寞╮ 提交于 2019-11-27 10:41:39
I have downloaded Lion and looking to install Ruby on Rails I have been scanning the web for a way to do this but can't seem to find a easy way, could anyone point me in the correct direction. Help Much Appreciated Thanks Alain Beauvois Below I try to resume my rails installation. It should work well. 1) Download Xcode from Apple Application Store : use this link : xcode 2) Install xcode : Use finder=>applications to locate "Xcode installation icon and double-click on it to begin the installation **2b.) For xcode 4.3. After installing xcode, launch it, navigate to Xcode->Preferences, Downloads

Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Deadly 提交于 2019-11-27 10:19:53
问题 I am trying to run mysql client on my terminal. I have installed the latest mysql gem. ➜ ~ git:(master) ✗ ruby -v ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0] ➜ ~ git:(master) ✗ rails -v Rails 2.3.14 ➜ ~ git:(master) ✗ which mysql mysql: aliased to nocorrect mysql ➜ ~ git:(master) ✗ which ruby /usr/bin/ruby ➜ ~ git:(master) ✗ which rails /usr/bin/rails ➜ ~ git:(master) ✗ gem list *** LOCAL GEMS *** actionmailer (2.3.14) actionpack (2.3.14) activerecord (2.3.14) activeresource

Stop “developer tools access needs to take control of another process for debugging to continue” alert

瘦欲@ 提交于 2019-11-27 10:14:14
I recently upgraded to 10.7.3, and when I try to debug my iOS project in the simulator for the first time after logging in, I'm prompted with the following two alerts: My user is an admin user. I never saw these alerts before. How do I get them to stop? EDIT I've verified that I'm a member of the _developer group using id -a . There's a much simpler solution for this. Try running the following command: sudo /usr/sbin/DevToolsSecurity --enable enable develoer mode: In Terminal run this: DevToolsSecurity -enable Per Zev Eisenberg's answer, reinstalling Xcode 4.2.1 worked. However, it might be

Change selection color on view-based NSTableView

风格不统一 提交于 2019-11-27 10:07:46
问题 Standard highlighting color in OS X applications is blue. Is it possible to change it to another color, e.g. gray? Note that I am using the new view-based NSTableView available starting from OS X 10.7. 回答1: Since you're using the view based NSTableView, you can subclass NSTableRowView, feed it to the table delegate method - (NSTableRowView *)tableView:(NSTableView *)tableView rowViewForRow:(NSInteger)row; , then customize your selection in the row view class. Here's an example: - (void

How to fix Terminal not loading ~/.bashrc on OS X Lion [closed]

眉间皱痕 提交于 2019-11-27 10:04:16
Whenever I open a new tab in Terminal using Cmd + T , it opens bash in the same directory, as the previous tab. This works fine when I'm in the ~ directory, but if I'm anywhere else, I get an error loading .bashrc Last login: Sat Oct 15 21:10:00 on ttys002 -bash: .bashrc: No such file or directory Jakub-Arnolds-MacBook-Pro:projects darth$ It looks like .bashrc is loaded via relative and not absolute path, because if I do source ~/.bashrc , everything works smoothly. I think this is a OS X Lion related problem, because before the upgrade from Snow Leopard, I didn't have the same issue. But that

Subclipse in Mac OS Lion shows “Unable to load default SVN client” error

元气小坏坏 提交于 2019-11-27 09:57:34
问题 After updating to Mac OSX Lion I find that I m unable to use Subclipse. I keep getting this error: Unable to load default SVN client Any ideas on how to resolve this issue? I m using Eclipse Indigo. 回答1: Have you tried downloading SVNKit from the update site of Subclipse? Go to Install New Software and select the Subclipse update site. Select the JNA and SVNKit library as well as the SVNKit Client Adapter. After, change the interface from JavaHL to SVNKit in the Preferences → Team → SVN → SVN

Xcode-Increment build number only during ARCHIVE?

风流意气都作罢 提交于 2019-11-27 09:10:16
问题 I have found a few other posts that show how to add a script to increment the build number with a script: Better way of incrementing build number? Xcode project's "Build number" Can Xcode insert the version number into a library's filename when building? But what I want to do, is only increase the build number when I use ARCHIVE (both before and after). Example: If current build number is 21, then when I choose Product > Archive the build number will be increased to 22, it will go through its

Code signing Error: Application failed codesign verification

旧时模样 提交于 2019-11-27 08:44:22
I am very new to iOS development, I have an app all set and ready to be distributed, but I seem to get this error every single time I run the application on my DEVICE only, the iOS simulator works just fine. Heres the full error: Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate. (-19011) Here's the entire log: Validate "/Users/masonsocha/Library/Developer/Xcode/DerivedData/Multibrowser-brgeiknbjgrywwehhohafjwxjqnk/Build/Products/App Store-iphoneos/Multibrowser.app" cd /Users