osx-snow-leopard

How to resolve deprecation warnings for OpenSSL::Cipher::Cipher#encrypt

ぃ、小莉子 提交于 2019-12-03 10:00:38
I've just upgraded my Mac to Snow Leopard and got my Rails environment up and running. The only difference -- OSX aside -- with my previous install is that I'm now running ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0] (Snow Leopard default) rather than 1.8.6. I'm now seeing deprecation warnings relating to OpenSSL when I run my code: warning: argumtents for OpenSSL::Cipher::Cipher#encrypt and OpenSSL::Cipher::Cipher#decrypt were deprecated; use OpenSSL::Cipher::Cipher#pkcs5_keyivgen to derive key and IV Example of my code which is causing these warnings (it decodes an encrypted

PyObjc and Cocoa on Snow Leopard

情到浓时终转凉″ 提交于 2019-12-03 09:18:57
问题 I am about to start my A-Level Computing project (High School Level) which will hopefully be a point-of-sale application for Mac OS. Unfortunately, Objective-C is a little out of my league at the moment and should I get stuck with it in the project I have no one to help out so I would fail the section of the course and not get into University. So this is quite important to me. I want to use Python to develop a Cocoa app. I know that I need PyObjc, however all details on the net seem to assume

do i need 32bit libxml2 for python on snow leopard?

大憨熊 提交于 2019-12-03 08:47:04
i'm having a hell of a time installing scrapy on my sl mbp. it requires libxml2, so i set about installing that. installing it from macports doesn't seem to pull down the python binding. installing it from source through scrapy's instructions ( here ) does install the python bindings, but when i run 'python -c "import libxml2"' i get an architecture mismatch: Traceback (most recent call last): File "<string>", line 1, in <module> File "libxml2.py", line 1, in <module> import libxml2mod ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site- packages/libxml2mod

install_name_tool reporting malformed object

喜夏-厌秋 提交于 2019-12-03 06:32:27
Everytime I try to use install_name_tool on my machine it reports the following install_name_tool: object: Abacate malformed object (unknown load command 4) I read that it could be an error when building the binary. In order to check I create the simplest hello world c++ program and try to change something using install_name_tool. Didn't work. What Am I doing wrong? Currently I have XCode 4.2 running Snow Leopard OS. Maarten O. Apparently install_name_tool is not updated when XCode is updated. You need to install the Command Line Tools from XCode Preferences. See also install_name_tool on OS X

Check mySQL version on Mac 10.8.5

佐手、 提交于 2019-12-03 05:42:34
How can I check (step-by-step ) the version of mySQL installed on my Mac 10.8.5? I tried using command prompt, but couldn't figure out. Every time you used the mysql console, the version is shown. $ mysql -u user Successful console login shows the following which includes the mysql server version. Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1432 Server version: 5.5.9-log Source distribution Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other

How to update Numpy on Mac OS X Snow Leopard?

元气小坏坏 提交于 2019-12-03 05:21:19
How can I update Numpy into the newest one? Should I download .dmg file from here: http://sourceforge.net/projects/numpy/files/ Is this .dmg only for 10.5? I have installed numpy using these instructions: http://www.scipy.org/Installing_SciPy/Mac_OS_X My current Numpy is 1.2.1. I'm running on Mac OS X 10.6.1 Snow Leopard. Thanks! sudo easy_install -U numpy Installing via setuptools will get the new numpy on the sys.path for non-system utilties (I've been told that some Apple utilities rely on the system-numpy). In general, setuptools will "do the right" thing on OS X. Use pip install -U numpy

How to assign application to all desktops (spaces) of Mac OS X Lion using Objective C?

限于喜欢 提交于 2019-12-03 05:20:09
I am trying to create an Application on Mac OS X Lion which requires application to be assigned to All Desktops (Spaces). This can be manually done by Right clicking on application's dock icon and Selecting Options > Assign To > All Desktops . But, I need to find a way to do this via Objective C. Is there a way to achieve this programmatically? You can use method setCollectionBehavior: of NSWindow with the NSWindowCollectionBehaviorCanJoinAllSpaces bitwise flag. It will make the window visible on all spaces. NSUInteger collectionBehavior; // Gets the current collection behavior of the window

Cannot edit bash_profile on Mac OsX [closed]

冷暖自知 提交于 2019-12-03 05:03:35
I am using MacOSX Snow Leopard 10.6.8.... I am the only user on this machine and I should be admin. I trying to edit my bash_profile to give it this simple alias: alias server=' open http://localhost:8000 && python -m SimpleHTTPServer' however when I use the terminal and type: vim ~/. bash_profile and paste in this alias I get message saying I cant save due to permissions. So then I show all hidden files and go to fix the permissions on this file but the file is all grayed out.... I cant change anything. What can I do?? You need to open it with sudo. sudo vim ~/.bash_profile The file appears

Compiling Bochs on Mac os x Snow Leopard

若如初见. 提交于 2019-12-03 03:03:00
Was someone able to compile the Bochs simulator under Snow Leopard. Leopard worked fine for me but under Snow Leopard I get alot of problems related to the Carbon library... Ok, some more information was request. I compile with make on the shell; stanard build process coming with the bochs sources I was successfully able to compile against the 10.5 SDK. Unfortunatley, it was not running under Snow Leopard... always crashed then I installed the latest XCode from the SnowLeopard CD and compiled against the 10.6 SDK; withot changing nothing but the isysroot flag to point to the 10.6 instead of 10

XCode 3.2: Changing the default “Code Sense” indentation and whitespaces

柔情痞子 提交于 2019-12-03 02:52:01
问题 I'm working with XCode 3.2 (on "Snow Leopard") which (still) has this nice "Text Macro" auto-completion feature (eg. if you type if it will expand to if (<#condition#>) { <#statements#> } ). These macros are also available via "Edit->Insert Text Macro". Unfortunately, the default templates don't match my beloved indentation and whitespace style so I'd like to modify them. According to this slightly outdated StackOverflow thread the corresponding definitions should be located at /Developer