snow-leopard

Snow Leopard - PHP 5.3.1 installed... but no PEAR?

I've been trying to do some PHP work on my snow leopard machine.. but I've found issues when I need to use PEAR packages (as symfony handles its php plugins with PEAR). I've found some references that state that snow leopard includes PEAR.. but how come I cant find it?! Could someone confirm this.. if if so, where is my pear? ...

How do I fix my Ruby installation

Hi all, I rather cleverly (or not in hindsight) installed RVM, which kept hanging whilst compiling Rubies. I have removed the .rvm directory but now my system has reverted to Ruby 1.8.7 i.e. when I type: ruby -v which ruby they both point to 1.8.7. How do I get the ruby command to point to my 1.9.1 installation, which is located in...

Changing facealpha property causes figure to self-destruct

Hi, I'm running Matlab R2009b on Snow Leopard, and I am trying to create a transparent polygon. The following line works fine: figure,fill([1 0 0 1],[-1e-9 -1e-9 1e-9 1e-9],'r') But when I set the transparency, alpha(.5); the figure collapses in on itself. That is, any title, xlabel, and ylabel I have in th...

Git repository gets corrupted when I do a large commit: "Possible repository corruption on the remote side"

Hi All, A friend of mine and I have been trying to use git for a project. It is hosted on his server, and I git clone it as: git clone [email protected]:/path/to/git/repos.git Pretty standard stuff, and it works great for a while. But every time one of us has added a large commit (which git supposedly handles very well), of the or...

how to get list of installed appications on mac

I need to get list of installed applications on leopard / snow leopard. Can any one suggest me how I can get list of installed apps using my cocoa application. I have tried using "system_profiler SPApplicationsDataType". Problem with this is it just lists out *.app files, which includes the drivers as well. Is there a way to get only li...

socket problem with MySQL

This is a recent problem... MySQL was working and a couple of days ago I must have done something. I deleted MySQL and tried reinstalling using the .dmg file. The mysql.sock file never gets created and I get the following error messages: Hristo$ mysql Enter password: ERROR 2002 (HY000): Can't connect to local MySQL server through socke...

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?

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

Compiling a library for Ruby with SWIG on Mac OS X

I tried to compile the following library and everything went smooth until the last step. /* File : computation.c */ int add(int x, int y) { return x + y; } /* File: computation.i */ %module computation extern int add(int x, int y); $ swig -ruby computation.i $ gcc -c computation.c $ gcc -c computation_wrap.c -I/opt/local/lib/ruby/1....

MySQL_Python on Snow Leopard

Hi, I've tried to solve this myself searching and searching but I can't get it to work. :( I'm in Snow Leopard 10.6.4 and tried to setup my Django environment, first I upgraded my python to 2.6.5, installed django and then mysql_python. All seems to be smooth until I to connect to mysql using syncdb. Got this error/trace message: djang...

how can i see raw serial data from a bluetooh connection on a mac?

Hello, I want to see the data flow from a connected bluetooth device. I figure I should be able to see the raw data in the terminal somehow, but I cannot seem to find out how to do this. I'm running Snow Leopard on a MacBook Thanks. ...

Creating a kext to swap the shift keys with the caps lock key or the function (fn) key

I have a problem with the shift keys, and I would like to be able to swap the shift keys with the caps lock key. I didn't find any utility that would permit me to do that; the only solution I have is to create a kext. My question is the following: Why doesn't exist a kext to do that already? I found DoubleCommand, but between all the po...

iPhone SDK: stuck with Leopard and SDK 3.1.3; need advice about how to move on

While this question does not involve any code, it does involve problems stemming from the fact that I don't own a Mac, and the impact that has on apps I'm working on where I do have access to a Mac. It's also a long read, so please bear with me. iOS 4 and iPhone SDK 4 have been released; with that, I've made the obligatory upgrade on my...

Starting MySQL Error on Snow Leopard

I just erased and re-installed Snow Leopard. I installed MySQL 5.1.48 64-bit clean. I'm having issues with the MySQL server... when I boot the computer and log in, the server is not running. I tried to start it using the preference pane by clicking "Start MySQL Server", but all it did was highlight the button blue and think for like a mi...

OpenPGP library

Is there a library to create OpenPGP keys, or to encrypt a file using OpenPGP? ...

Encryption library for Objective-C

Other than OpenPGP, are there any other libraries to encrypt text? ...

Creating a disk image (.dmg) from Objective-C

Is there any library to create a disk image from Cocoa, or is it only possible through Finder? ...

How to generate a serial number (registration number)

What is the best way to generate a serial number users can use to register an application? I was thinking to the following scenario: Users try the application. When they want to buy the application, they select a menu item. The application generates a code that is then passed to the web site to buy the application. Users enter the cod...

Switch python distributions

I have a MacBook Pro with Snow Leopard, and the Python 2.6 distribution that comes standard. Numpy does not work properly on it. Loadtxt gives errors of the filename being too long, and getfromtxt does not work at all (no object in module error). So then I tried downloading the py26-numpy port on MacPorts. Of course when I use python...

Java invoke com.apple.loginitems

I'm trying to add my Java Application to the "Login Items" preferences pane that appears in OSX. This pane is visible if you go to System Preferences --> Accounts, and click on your account name. You should then see a "Login Items" of programs that will automatically open when you log in. I know I can add my program using launchd, or La...

How to link an application classes to F-Script

I would like to create a command line application that accepts a script F-Script that is executed, and which has access to some classes exposed by the application. How is that done? PS: I am referring to F-Script, not FScript. ...