osx-snow-leopard

Trouble installing NumPy and Matplotlib on Mac (snow leopard)

浪子不回头ぞ 提交于 2020-01-02 06:25:15
问题 Having installed Python 2.7 from the python website I have since tried to install both NumPy and Matplotlib, but when I do so a box comes up telling me it requires system python 2.6. Do I need to be running an older version!? 回答1: Sourceforge version trees of those modules are tricky for OS X users. :P I was having problems installing them because I did't realize there were dmgs exactly built for Snow Leopard... There are different version of .egg and .dmg files, you should pay attention to

iOS Distribution: Migrating private key/certs to new machine

大兔子大兔子 提交于 2020-01-02 05:28:07
问题 I need to be able to submit updates to my application from a different machine than the one I used to submit the original. I followed the instructions in the documentation, but, as usual, the documentation assumes everything works right the first time. I tried exporting my developer profile from the old one to the new one, but when I submitted, App Loader said it was invalid signature. So I tried to generate new certs (in order to do this in the Provisioning Portal, you have to revoke the

OS X Dock API? Retrieve OS X active application's icon with badges and other modifications

帅比萌擦擦* 提交于 2020-01-01 18:43:17
问题 Is there an API for retrieving the icons of the currently open apps on Mac OS X? I am trying to retrieve all the icons of the active applications along with any badges on top of the application (i.e. number of new messages in mail, or current download rate in Transmission). Is there some sort of Dock API? The only mention of an OSX API for retrieving information about currently active applications I have been able to find is the Process Manager API, which does not mention the ability to poll

Howto compile vim with ruby 1.9.2

两盒软妹~` 提交于 2020-01-01 09:32:25
问题 I tried to re-compile vim with ruby support because I noticed that vim was still using 1.8.7 (which is the default ruby version on Snow Leopard). Ruby 1.9.2 is installed via rvm. When compiling with ./configure --enable-rubyinterp --enable-gui=no --disable-nls --enable-cscope --prefix=/Users/madhatter I get the following error from make: ld: library not found for -lruby.1.9.1 collect2: ld returned 1 exit status make[1]: *** [vim] Error 1 make: *** [first] Error 2 I then cloned the actual

Xcode 3.2 in Snow Leopard hangs running unit tests

萝らか妹 提交于 2020-01-01 05:55:10
问题 So I have some unit tests that pass in Xcode 3.1 / Leopard. These use SenTestingKit in an iPhone app project and are built/run in a separate "Test" target. I just upgraded to Xcode 3.2 on Snow Leopard and the tests seem to run (I get logs in Console.app and see them passing), but Xcode beachballs and must be force quit'd after they are run. Console.app displays the following error from Xcode, which appears even if no test cases are included in the Test target: Xcode[1734] -

How to preserve the CAcerts keystore on Mac across updates?

喜你入骨 提交于 2019-12-31 22:40:33
问题 Mac OS X has the CA keystore in /System/Library/Frameworks/JavaVM.framework/Home/lib/security/cacerts. This keystore seems to be overwritten by every Java update, which is very annoying since we have internal CAs for development environments, testing… Is there a way to preserve keystore changes across Apple JSRs, and now, with Snow Leo JSR3, also across updates for the separate Java developer packages (whose JDKs use the same keystore)? 回答1: [ This is outdated info - see the answer below for

Problem importing matplotlib.mlab and .pyplot in python 2.7 on Mac OSX 10.6

試著忘記壹切 提交于 2019-12-30 23:27:31
问题 I am trying to plot a histogram using matplotlib in Python 2.7 on OSX 10.6 I have verified that I can import numpy, scipy, and matplotlib into python. A sample script on the matplotlib website does #!/usr/bin/env python import numpy as np import matplotlib.mlab as mlab import matplotlib.pyplot as plt However, I get an error when doing this. Here is what happens when I try to import mlab. Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on

Objective-C “if” statements not retaining

两盒软妹~` 提交于 2019-12-30 10:26:15
问题 I know the title of this question is a bit confusing, but here it goes anyway: I'm creating an NSString after an if statement but it just doesn't seem to want to retain outside of the statement. My conditional looks like this: if ([[password stringValue] isEqualToString:@""]) { NSString *pwd = [[NSString alloc]initWithString:@"password"]; } else { NSString *pwd = [[NSString alloc]initWithFormat:@"%@", [password stringValue]]; } ... and I call pwd later in the script like this: NSArray

mysql.sock is not created OSX

梦想与她 提交于 2019-12-30 08:53:19
问题 I run mysql on OSX, now when I restart my computer it does not create the mysql.sock, meaning that all my connections gives me a error 2002. anyone knows how to prevent this? 回答1: I had this same issue on Snow Leopard, the socket spawns in the wrong location for some reason on OS X. To get the socket spawning in the correct location: create a new file "my.cnf" in /etc with the following lines: [mysqld] socket=/var/mysql/mysql.sock [client] socket=/var/mysql/mysql.sock and restart mysqld: sudo

mysql.sock is not created OSX

試著忘記壹切 提交于 2019-12-30 08:52:29
问题 I run mysql on OSX, now when I restart my computer it does not create the mysql.sock, meaning that all my connections gives me a error 2002. anyone knows how to prevent this? 回答1: I had this same issue on Snow Leopard, the socket spawns in the wrong location for some reason on OS X. To get the socket spawning in the correct location: create a new file "my.cnf" in /etc with the following lines: [mysqld] socket=/var/mysql/mysql.sock [client] socket=/var/mysql/mysql.sock and restart mysqld: sudo