snow-leopard

New Quicktime Look for Embedded mp3s

Hi there, With the release of Snow Leopard, Apple has also unveiled a newer, slicker looking version of the quicktime controls for when html links to an mp3. I'm working on a site with embedded mp3s, and would like them to show up inside Quicktime's newer skin, but I can't figure out how to do it. Everything I've tried results in the sa...

#include <FreeImage.h> not found

I have compiled FreeImage from source and installed it. When I run sudo make install in installs the following files on my system /usr/local/include/FreeImage.h /usr/local/lib/libfreeimage-3.10.0.dylib /usr/local/lib/libfreeimage.a However in my C++ program it says error file not found when I do this: #include <FreeImage.h> I have...

Can't load Quartz animation in screen saver: "You cannot use the XXX screensaver on this computer"

I've written a simple screensaver that loads a Quartz animation using a QCView. But when I install it on Snow Leopard it appears in the Screen Saver preview with a message saying "You cannot use XXX screensaver on this computer...". If I comment out the loadCompositionFromFile line (but leave the Quartz framework linked) it's fine. I ...

Django + MySQL on Mac OS 10.6.2 Snow Leopard

There were some excellent answers to this question already, however, they are now outdated. I've been able to get the module installed, but "python manage.py runserver" fails with iMac:myproject drhoden$ python manage.py runserver Validating models... Unhandled exception in thread started by <function inner_run at 0x10496f0> Traceb...

Problems installing MySQL-python-1.2.3c1 on Mac Snow Leopard

Hi All I am having a problem installing the Python MySQL connector (MySQL-python-1.2.3c1) on my Mac OSX Snow Leopard. System State I have manually compiled an installed: mysql-5.1.41 This seems to work fine, as I can create and query a database from the commandline. I have compiled: MySQL-python-1.2.3c1 I first set the following in ...

How to clean up my Python Installation for a fresh start

I'm developing on Snow Leopard and going through the various "how tos" to get the MySQLdb package installed and working (uphill battle). Things are a mess and I'd like to regain confidence with a fresh, clean, as close to factory install of Python 2.6. What folders should I clean out? What should I run? What symbolic links should I...

What's the file format used by gcc in OSX?

I'm trying to learn assembly using NASM, the pcasm-book.pdf from Dr Paul Carter - http://www.drpaulcarter.com/pcasm/ - on my Mac OS X Snow Leopard. I'm trying to link the previous compiled C sample to asm samples: gcc first.o driver.c asm_io.o -o first But it's returning it: driver.c:3: warning: ‘cdecl’ attribute ignored ld: warning...

Rails / Snow Leopard Mysql 64-bit question

Hey all, I'm trying to install 64-bit MySQL on Snow Leopard for a rails app. I've installed it from the dmg and I can get to mysql fine from the command line. Based on various blog posts as well as the other topics here on Stack, I shut down mysql, uninstall the mysql gem, and then try to update the gem with the following: sudo env ARC...

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

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? ...

Installing MySQL and mysql gem on Snow Leopard

It´s really a hard job figuring out how to get MySQL and mysql gem up and running on Snow Leopard 10.6.2. I followed the instructions of various posts but was not successful yet: I build MySQL Version 5.1.39 from source and it installed successfully. When trying to login using (mysql -u root -p) mysql returned the following error: ERR...

How do I install iPhone2.0 SDK on snow leopard?

The snow leopard xcode only installs 3.1, 3.0, and 2.2.1. I need to install 2.0 to use as the base SDK for a particular app. I see the iPhoneSDK2_0.pkg in the Packages directory of the install image, but there is no option to install it... ...

What kind of applications should be rewritten to use OpenCL?

Mac OS X 10.6 comes with OpenCL, but how many applications could have better performances if they would be rewritten to use OpenCL? What kind of applications should be rewritten to use OpenCL? ...

Equivalent of strace -feopen < command > on mac os X

This is useful for debugging (hence programming related). On linux, we can use the command strace -feopen python myfile.py to figure out which python modules and shared objects are loaded. Is there an equivalent one-liner on macOS X? ...

Testing file existence using NSURL

Snow Leopard introduced many new methods to use NSURL objects to refer to files, not pathnames or Core Services' FSRefs. However, there's one task I can't find a URL-based method for: Testing whether a file exists. I'm looking for a URL-based version of -[NSFileManager fileExistsAtPath:]. Like that method, it should return YES if the UR...

EXC_BAD_ACCESS on very simple Objective-C program (Snow Leopard)

I'm following through one of the very early examples in Learning Objective-C on the Mac. My code is almost exactly the same as the code in the book (a couple spaces and trivial parentheses may differ). It looks like this: #import <Foundation/Foundation.h> BOOL areIntsDifferent (int thing1, int thing2) { if (thing1 == thing2) { ...

Dock tile plug-ins for not running applications

Is the dock tile plug-in of an application used even when the application is not active? The documentation says that the dock title plug-in is used when the application is loaded in the dock, but that means that the application is running of that the application is put in the dock because the user wants it to stay on the dock? ...

FFMPEG won't configure for iPhone

I have downloaded FFMPEG via svn, and put the gas-preprocessor into usr/local/bin. But, when I try to post the following code into terminal, it says: "-bash: ./configure: No such file or directory" This is the code: ./configure --cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc --as='gas-preprocessor.pl /Developer/Platfo...

In Mono, how do I get the path to the Documents folder on a Mac (Snow Leopard)?

I'm writing a Mono application and would like to find the full path of the Documents folder - e.g. /Users/johnsmith/Documents/. What's the best way to achieve this? ...

Determine if an executable (or library) is 32 -or 64-bits (on OSX)

Hello, (sorry, i -almost- stoled the title from someone else). Is it possible to get information about any binary on Snow Leopard, to determine if it's a 32 bits or 64 bits binary ? I played with the 'otool' command but can't find this kind of information. Thanks. ...

Problem installing mysql gem on Snow Leopard: uninitialized constant MysqlCompat::MysqlRes

Hi All I've got a problem trying to install the Ruby mysql gem driver. I recently upgraded to Snow Leopard and did the Hivelogic manual install of MySQL. This all seems to work fine as I can access mysql from the command line and make changes to the database. My problem is that if I now use rake db:migrate I get: rake aborted! uni...