osx-snow-leopard

Java Random Slowdowns on Mac OS

廉价感情. 提交于 2019-12-02 03:47:59
问题 I have a Java program for doing a set of scientific calculations across multiple processors by breaking it into pieces and running each piece in a different thread. The problem is trivially partitionable so there's no contention or communication between the threads. The only common data they access are some shared static caches that don't need to have their access synchronized, and some data files on the hard drive. The threads are also continuously writing to the disk, but to separate files.

git shows random files changed on Mac NFS filesystem

我怕爱的太早我们不能终老 提交于 2019-12-02 02:27:12
We have a strange problem here at work that I've been unable to figure out. We all use MacBooks with Snow Leopard on our desktops and we have a handful of Linux servers we also use remotely. Some of my team members put git repositories on an NFS filesystem that's shared between both the Mac's and the Linux servers so they don't have to think about sharing code between repositories in their personal workflow. This is where the strange starts, on the OSX machines git will randomly show some files out of date in status when you try to merge or switch branches etc. If you run git status no files

LaunchDaemons and Environment Variables

泪湿孤枕 提交于 2019-12-02 01:08:46
For a while now, I've been noticing that my MacPorts-installed Apache2 instance hasn't been starting when I start up ( MacPorts Apache2 Stopped Launching on Boot ). The LaunchDaemon is loaded. Today I bumped into something in a log file that may point to an answer, but I can't find any confirmation. I use environment variables in my httpd.conf file. Specifically, the ${HOME} variable. Is it possible (or probable, etc.) that environmental variables are fully loaded when LaunchDaemons are executed? I can add them to the plist file, but I'm hoping someone can provide me with a decent, high level

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

走远了吗. 提交于 2019-12-01 19:47:41
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 darwin Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib.mlab

App Sandbox/iCloud and Snow Leopard backwards compatibility

梦想与她 提交于 2019-12-01 07:33:39
By now all Mac App Store developers know that all apps must have the new OSX Lion Sandboxing enabled going forward. For existing apps, we must enable it in XCode 4.2 and set in place the data migration plist. So my existing Mac App Store app has a build target of OSX 10.6.8 Snow Leopard. Not only that, but it does access the webcam and also synchronizes stuff to iCal via CalendarStore API and AppleScript. I'm expecting most of my app to break when I enable the Sandbox, but when I get that working in the Sandbox I'm wondering if a Sandboxed app can run in Snow Leopard. Does anybody have

OpenCV and Xcode

与世无争的帅哥 提交于 2019-12-01 07:32:02
问题 I am looking at pattern recognition in images and video and have thought that C++ is the way to go (for high performance/real-time applications). I want to use the OpenCV libraries in Xcode when I build a C++ application (command-line tool) I am running Xcode 3.2 and have just followed the steps at http://opencv.willowgarage.com/wiki/Mac_OS_X_OpenCV_Port up to "This probably breaks something in TIFF export, but the build at least completes" in the section "Building using the new CMake build

Can I install Python 2.7.1 64bit along side of an exsiting 32bit install on OS X?

给你一囗甜甜゛ 提交于 2019-12-01 06:09:53
Short Description Is it possible to install Python 2.7.1 64/32bit from python.org on top of an existing install (from python.org) of Python 2.7.1 32bit? Background I installed the 32bit version for wxPython(2.8) support which until now has given me zero issues. There are a few modules that I am now having difficultly installing (psycopg2 and mysql-python). The warning messages in homebrew constantly warn me about not having a 64bit version of Python on the path. These warnings only add to my list of wanting to use a 64 bit version. At the time I selected the 32bit install, the GUI for a

I'm trying to install psycopg2 onto Mac OS 10.6.3; it claims it can't find “stdarg.h” but I can see it's there; what should I do?

与世无争的帅哥 提交于 2019-12-01 05:59:06
I'm desperately trying to successfully install psycopg2 but keep running into errors. The latest one seems to involve it not being to find "stdarg.h" (see code below). However I can see with my own eyes that a file called stdarg.h exists at /Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h (where it claims it can't find anything) so I've no idea what to do about it. I'm running Mac OS 10.6.3 and within the last few days I've made sure I have all the latest OS developer tools. I have Python 2.6.2 and PostgreSQL 8.4 if that makes any difference. python setup.py install running install running

mysql.sock is not created OSX

核能气质少年 提交于 2019-12-01 05:39:26
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? 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 /usr/local/mysql/bin/mysqld_safe This will force the MySQL socket file to spawn in the proper location, and

How to build 64-bit Python on OS X 10.6 — ONLY 64 bit, no Universal nonsense

微笑、不失礼 提交于 2019-12-01 04:25:26
I just want to build this on my development machine -- the binary install from Python.org is still 32 bits and installing extensions (MySQLdb, for example) is driving me nuts with trying to figure out the proper flags for each and every extension. Clarification: I did NOT replace the system Python, I just installed the Python.org binary into its normal place at /Library/..., not /System/Library/.... Everything else seems to build 64 bit by default, and the default Python 2.6.1 was 64 bit (before I replaced it with the Python.org build figuring it was a direct replacement)` I just want a 64 bit