snow-leopard

Anonymous checkout fails with error "svn: XML data was not well-formed"

Anonymous checkout fails with error "svn: XML data was not well-formed" when the below command is given in Terminal app in O.S. 10.6: svn checkout http://oauth.googlecode.com/svn oauth-read-only SVN Version 1.6.5 (r38866) compiled Oct 16 2009, 02:54:10 ...

Help Installing psycopg2 on snow leopard : command '/usr/bin/gcc-4.0' failed with exit status 1

This has been driving me crazy for 2 days. I have been trying to install psycopg2 using easy_install and no matter what I try (i.e using gcc-4.0 instead of the snow leopard default one) I always get the same error: error: Setup script exited with error: command '/usr/bin/gcc-4.0' failed with exit status 1 Please see: http://dpaste.com...

Where should I copy the files for programming languages and highlighting definitions?

I found additional files that allow to use new programming languages in XCode, and to highlight the code written in such programming languages. Where should I install those files? I do remember that there is a particular directory where such files (and templates) should be copied, but I keep to forget which directory is. ...

ffmpeg and pipes via php on os x doesn't work as it does on linux?

Greetings! I've run into a strange issue with using php passthru() building a realtime transcoding proxy on os x, here's the command: passthru("/usr/bin/ffmpeg -i '/path/to/file.avi' -r 20 -ar 44100 -ab 196 -b 1500k -deinterlace -croptop 0 -cropbottom 0 -cropleft 0 -cropright 0 -f flv - 2>/dev/null"); On linux this works perfectly an...

Two versions of Perl in Mac OS X?

I've installed the Template module via CPAN on my MacBook Pro and it seemed to install correctly. But, when I try to run a script that includes the Template module, I get the following: Can't locate Template.pm in @INC (@INC contains: /Users/purinkle/Sites/rob/modules /Library/Perl/Updates/5.10.0/darwin-thread-multi-2level /Library/...

Mac OS Server Login/Logout Script not working

Hi Guys, I implemented a magic triangle consisting of an Active Directory along with a Mac OS X server Open Directory. I am trying to implement login and logout scipts via workgroup manager in OD for Active directory users. Other settings like SIMPLE FINDER work fine which confirms that the setup is correct. I have already enabled the...

Can I deploy app to iphone 3gs iOS 4 from XCode_3.1.4_iPhone_SDK_3.1.2 directly

Currently I installed XCode_3.1.4_iPhone_SDK_3.1.2 on Mac OSX 10.5.8, and I plan to buy an iphone 3gs 8G iOS 4 in the following days. I heard from friends that iOS 4 can't be downgraded to 3.x! My question is, can XCode_3.1.4_iPhone_SDK_3.1.2 deploy app to iOS 4 device via iDP? Should I upgrade system to 10.6.4 and install Xcode_3.2.3_i...

emacs on OS X 10.6

I am a new iMac user. I have extensive experience with Linux on a PC. I downloaded latest version of emacs to the Applications folder. I want to invoke emacs from the command line. However, the default path for emacs is /usr/bin/emacs. what is the best practice for adding the new emacs to the path? I am tempted to create a ~/bin director...

Linking Macports libraries to XCode application

I'm trying to distribute my app's dependencies with the app. I've got the macports packages librsvg, boost, and cairo installed 64-bit-only on my Snow Leopard system. When I create an .app bundle of my program, it does not work on machines without macports and the relevant libraries installed because they are not included with the app, ...

Snow Leopard and Enthought Tool Suite problems: cannot install Enable

I'm an OS X novice who has been pulling hair out trying to install ETS components on Snow Leopard. The initial problem centred round the message. /Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory I came across a fix which involves (a) loading the mac 10.4 SDK from the Snow Leo...

MySQL MyISAM INSERT performance slow on Mac OS X

I am suffering from abysmal INSERT times on my MacPro (quad-core 6G memory) running mysql 5.1.49 on snow leopard 10.6.4. I tried to figure out where the problem is and finally came to the conclusion that it must have to do with Mac OS X. Here is the test I ran. I have an old dell with a single pentium cpu and 256M memory and mysql 5.1.4...

How to set fakemail as default MTA in OS X

Hi, I'm looking for a way to make fakemail the default gateway for all emails sent by my system. When using mail, PHP mail or any programming language email sending, I want the mail to go to fakemail. Is it possible ? If yes, how ? I'm on Snow Lepoard. Thanks. ...

How do I launch a particular version of Xcode from Applescript?

I have two versions of Xcode installed, Xcode 3.2.3 and the Xcode4 developer preview. How do I ensure from Applescript that the 3.2.3 version is picked? ...

Textmate bundles not working anymore

I just upgraded my OS to Snow Leopard 10.6.4(from 10.6.3). I then resumed coding and suddenly my Textmate wasn't recognizing my Haml file. It just said it was plain text. I looked into where my bundles were and I saw everything there including the Haml/Sass Bundle. So I figured I could just reinstall, so I deleted the bundle, got it fr...

OS X Vs Linux - Serial port handling

Hello, I am trying to port (or rather customize) a pure Linux application to OS X Snow Leopard (10.6.4). It is an application that sends a binary to a target hardware over the serial port. The app is almost running but i am hit with an interesting problem with the serial port writes. With all the same settings as Linux (115.2k is the b...

What's the most efficient way to get a sorted, human-readable du output on Mac OS 10.6?

I used to have this sweet alias for du I called dusort that would print out a human-readable list of sizes for the top-level subdirectories+files sorted by size. It was like a mini-filelight for mac that runs in terminal. But now my alias is broken after I copied it to my new mac running Mac OS 10.6. Apparently the sort I used either ca...

Can't install mysql gem on Snow Leopard using Zend Server

Hi! There's a lot of information out there regarding installing the ruby/rails mysql gem on Snow Leopard, however, none of it seems to work for me. I'm wondering if it's because I'm using the Zend Server (CE) as my web stack? Here's what I'm running to install the gem: sudo env ARCHFLAGS="-arch x86\_64" gem install mysql -- --with-mysq...

Error when trying to build anything after installing Xcode 3.2.3

I just recently installed the latest verson of Xcode as well as the ios 4.0.2 sdk with the disk image downloaded off of the apple developer site named xcode_3.2.3_andios_4.0.2.dmg. My past version of xcode came off of the snow leopard install disk. After the install I get an error when I try to build anything including a new project that...

Gearman worker not woken up MACOSx python

I tried to run the example gearman client and workers. Gearman worker never seems to be woken up. I see the following message when I kill the gearman worker and I don't see the output at the worker(print statements) File "gearman_w.py", line 12, in worker.work() File "/opt/local/Library/Frameworks/Python.framework/Versions...

Developing for iPhone OS 3 and 4 on XCode 3.1.2

Hi Everyone, I am new to iPhone programming and have a MacBook running Leopard with XCode 3.1.2. I want to use CoreData to read and write to plists, but I read on http://tapity.com/iphone-app-development/readwrite-data-on-the-iphone-property-lists-sqlite-or-core-data/ that CoreData is only available on iPhone OS 3.0. Right now, I am dev...