osx-snow-leopard

How do you uninstall MySQL from Mac OS X?

六月ゝ 毕业季﹏ 提交于 2019-12-27 11:33:26
问题 I accidentally installed the PowerPC version of MySQL on my Intel Mac in Snow Leopard, and it installed without a problem but of course doesn't run properly. I just didn't pay enough attention. Now when I try to install the correct x86 version it says that it can't install because a newer version is already installed. A Google query led me to perform these actions/delete these files to uninstall it: sudo rm /usr/local/mysql sudo rm -rf /usr/local/mysql* sudo rm -rf /Library/StartupItems

os x 10.6.8 - Cannot input non-ASCII/UTF-8 chars (e.g: å, ä, ö) in Python Interactive Mode

回眸只為那壹抹淺笑 提交于 2019-12-25 03:39:20
问题 Running OS X 10.6.8 Snow Leopard I cannot input the scandinavian letters into the interpretive mode. The terminal bell sounds for every keystroke and nothing shows up. All letters show up as normal in the regular terminal environment. Inputting UTF8 characters works fine in the Terminal, when running a python script, in PyDev and in the REPL Is there a problem with the interactive mode settings and these special characters? I have installed and am running python 2.7.3 mainly, but the OS

Can't install ruby 1.9.1 on MacOSX 10.6

ε祈祈猫儿з 提交于 2019-12-25 03:37:27
问题 I can't seem to be get Ruby installed on my Mac. These are the steps I've taken so far: Downloaded the package from Ruby's site (http://www.ruby-lang.org/en/downloads/) Unpacked it running { tar xzvf ruby-1.9.1-p376.tar.gz } Went into the new ruby folder, and configured using {./configure} This is where the error happens. When I run the configure, it gives me the error: /usr/local/include/fuse/fuse_common.h:32:2: error: #error Please add -D_FILE_OFFSET_BITS=64 to your compile flags! In file

Building a menu extra that implements all the features seen in system menu extras

烂漫一生 提交于 2019-12-24 16:22:28
问题 I would like to build a menu extra with all the features seen in the system menu extras, but without to use the private class implemented by Apple. Is that possible, or many of the features seen in the system menu extras depends from SystemUIServer? 回答1: If it were possible there would be a whole lot of them on the market because nobody really likes the anemic NSStatusItem API. 回答2: It is not possible. The features present in the system menu extras are implemented through SystemUIServer; a

Finding a file selecting it in finder issue

半城伤御伤魂 提交于 2019-12-24 07:28:48
问题 I am having this script to find a file and select it set filePath to ("filePath.ext" as POSIX file) tell application "Finder" if (exists filePath) then select filePath activate else display alert "File " & filePath & " does not exist" end if end tell it is working perfect well on Mac os x 10.6.x (LION) but when I try to run this script on Mac os x 10.5.x (snow-leopard) it is selecting file but taking too much time. Any suggestion how can I make this code work fine on both versions of Mac.

How do I wait until an NSOperationQueue has finished in a Unit Test?

南笙酒味 提交于 2019-12-24 06:31:38
问题 The Problem I have an NSOperationQueue called logEntryGeneratorQueue I want to wait until all operations on the queue have completed If I use: [logEntryGeneratorQueue waitUntilAllOperationsAreFinished]; it works fine if the thread adding to the queue is in the background itself. However, if I'm running this code via a unit test, it'll be running on the main thread. So I came up with this "solution", which I really don't like: if ([NSThread isMainThread]) { while ([[logEntryGeneratorQueue

make AppleScript program that listens systemwide for shortcuts

喜夏-厌秋 提交于 2019-12-24 05:05:37
问题 I'd like to create some kind of background process that listens to all keystrokes event and acts consequently (for example does some action if CMD-A is pressed while in Finder.app, or more complex things, like sequences to create shortcuts like in emacs..) But how can I listen to keypresses systemwide on SnowLeopard? I thought of Applescript.. but found nothing.. (I'm good at ruby too, and intended to use rb-appscript actually) thanks! 回答1: If you really want to capture all the keystrokes

make AppleScript program that listens systemwide for shortcuts

可紊 提交于 2019-12-24 05:05:25
问题 I'd like to create some kind of background process that listens to all keystrokes event and acts consequently (for example does some action if CMD-A is pressed while in Finder.app, or more complex things, like sequences to create shortcuts like in emacs..) But how can I listen to keypresses systemwide on SnowLeopard? I thought of Applescript.. but found nothing.. (I'm good at ruby too, and intended to use rb-appscript actually) thanks! 回答1: If you really want to capture all the keystrokes

OSX “loginwindow” PAM config file?

不打扰是莪最后的温柔 提交于 2019-12-24 02:06:44
问题 I'm back again with the never ending saga of writing a PAM module for OSX. I have the module written. It works when using ssh or starting a new terminal window or su. What I really, really, really want is just ssh and the loginwindow. My PAM module works in "session" mode. It either returns PAM_SUCCESS or PAM_IGNORE. Again, it works with other PAM aware systems like ssh and su. I really want to hook into the loginwindow. Any idea how to do this with OSX and openPAM? I have seen a couple

OpenCV Reporting TBR instead of FPS when using capture.get(CV_CAP_PROP_FPS)

放肆的年华 提交于 2019-12-24 00:55:36
问题 I have several videos that I am trying to process using OpenCV and Qt 4.7.4 on Mac OS 10.6.8 (Snow Leopard). If I create a cv::VideoCapture object and then query for the frame rate related to such video, what I get back is the TBR and not FPS. For instance if use ffprobe Video1.mp4 what I get is: >> ffprobe Video1.mp4 ffprobe version 0.7.8, Copyright (c) 2007-2011 the FFmpeg developers built on Nov 24 2011 14:31:00 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3) configuration: --prefix=/opt