mac

How to set up PEAR on Mac OS X 10.5 Leopard

I'm ultimately trying to install PEAR so I can easily install PHPUnit. I want to set up a Mac, Apache, MySQL, PHP, PHPUnit development environment so I can test locally. I already have Apach, MySQL and PHP working. Now all I need is PHPUnit, which means I need PEAR to install it. I have searched all over, and there are a few variations ...

Looking to get started with Apache, PHP, MySQL, Python, Django on a fresh Mac...

I've looked for other questions, but could not find any... I have freshly installed my Mac with OSX 10.5. I need to learn Python/Django for a new job, so want to set it all up correctly, ready to develop and run from my browser using http://localhost/ I come from a PHP background and always used MAMP before. But I want to get everythin...

Complete solution for writing Mac OS X application in C++

I am looking for alternatives for my current box and Mac OS X seems very appealing. My main area of interest is C++ programming. Currently I'm using Eclipse + CDT and g++ for creating my software; sometimes it is KDevelop. I know that primary IDE for Mac is Xcode and primary language is Objective-C. I would like to avoid learning Objec...

sIFR Doesn't Work in FF3 Mac.

I thought it might be something I was doing wrong, but I am not seeing it working on any site, including Novemberborn.net. Any Ideas? The CSS is loaded, so the headlines are hidden, and then it is like the JS isn't loaded at all. Could this be a browser detection issue? I am using firefox 3 with latest flash player version 10. I have ...

How do I dismiss a sheet with the escape key?

My app displays an NSWindow as a sheet. The NSWindow has various controls for settings properties of an object (an NSTextfield, a NSDatepicker etc) and two NSButton's, 'Add' and 'Cancel' which are used to confirm or cancel the action. I have set the key equivalent of the 'Add' button to enter and the key equivalent of Cancel to escape. ...

In Mac OSX 10.5, it can't find my Terminal commands sudo, find, etc.

I don't know what has happened, but in my Terminal on Mac OSX 10.5 it can no longer find my sudo command, or find command, etc. They are there because if I put /usr/bin/sudo or /usr/bin/find it works fine... My .bash_login file looks like this: export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin$PATH" My .bash_pro...

Mac OSX - Xcode Installation Directory

After Xcode has finished building is there a way to make it copy the executable to specific directory (~/Sites/cgi-bin/). I have the target "Installation Directory" set to the correct folder, with "skip installation" unchecked, but no luck. Is there something i'm missing? Thanks ...

How can I link a dynamic library in x-code?

I am currently developing a program in Qt and it uses the library libqextserialport.1.dylib. I build it and run in x-code and it spits back: dyld: Library not loaded: libqextserialport.1.dylib Referenced from: /Users/samuelreh/Desktop/QtOpenCV/build/Debug/QtOpenCV.app/Contents/MacOS/QtOpenCV Reason: image not found The libra...

remove an ACL entry for just ONE user in MacOS? oddly difficult

I'm trying to remove an ACL set for johndoe from all the folders recursively on one of my drives without hosing any other entries! Anyone know how to do this without affecting the ACLs that already exist for other groups/users? I'm looking for the Mac equivalent of "setfacl -d u:johndoe" I know you can use chmod to remove a rule from m...

Video capture on MacOS

Hi to all! i've a problem with openCV library under MacOs 10.4. When I try to execute this row to save some frame captured from webcam CvVideoWriter *writer = cvCreateVideoWriter( "out.avi", CV_FOURCC('M','J','P','G'), fps, ...

Unable to find Applications folder in Mac's terminal

I tried the following code unsuccessfully find Applications | xargs -0 grep Applications I also tried the following unsuccessfully find Applications ...

Best way to convert Delphi code to C++?

I have an application written in Delphi that compiles in Delphi 2007. I think it was originally written in Delphi 7. Anyway, I need to convert all the core non-GUI code into C++ because I want to release a Mac version of the software. What is the best way to do this? Any shortcuts I can take to speed up the process? EDIT: The code com...

Glassfish hangs on OS X 10.5/Java 6

I want to play around with glassfish on a Mac, but I'm having trouble getting it to start. I've followed the installation instructions and created a default domain, which seemed to go fine, but when I try to start it (asadmin start-domain domain1) it just sits there: [kris@Macintosh-2:~/glassfish] ./bin/asadmin start-domain domain1 Sta...

Highlighting trailing whitespace in Textmate for Python?

I would like to do something like this Textmate tip, so that trailing whitespace are always highlighted in some way when I code something in Python - it makes it easier to correct it immediately and other editors such as Emacs can do it. Unfortunately the discussion after that post seems to suggest it's difficult to do. For me the inval...

Why doesn't svn import work?

I have subversion setup on Mac OS X 10.5.6. When I do svn import myproject file:///library/subversion/myproject/trunk -m "initial import" Committed revision 2. Nothing happens. I'm back at the command prompt and no files are imported. Any suggestions? ...

Can Mac have more than one client using its desktop?

I have one Server Mac OSX and have 5 windows PC's in my team. So I have this program on the MAC but I want two users in my team to be able to use this program, is there any way more than one person can VNC or remote desktop or something to the MAC server? Then those two users could both use the program on the mac server. I would need t...

How do I set the icon for my application's Mac OS X app bundle?

I have an application that I've bundled into a Mac OS X app bundle. Everything is working fine, but I want to change its icon from the default. How do I set its icon? Thanks. ...

How should I remove all items from an NSTableView controlled by NSArrayController?

I'm using an NSArrayController, NSMutableArray and NSTableView to show a list of my own custom objects (although this question probably applies if you're just showing a list of vanilla NSString objects too). At various points in time, I need to clear out my array and refresh the data from my data source. However, just calling removeAll...

deep copy NSMutableArray in Objective-C ?

Hi All, Is there any built-in function in Objective-C allows me to deep copy a NSMutableArray? I looked around, some people say [aMutableArray copyWithZone:nil] works as deep copy. But I tried it seems no. Right now I am manually doing the copy one by one (a 9*9 array): //deep copy a 9*9 mutable array to a passed-in reference array ...

Which version of python is currently best for os x?

After going through hell trying to install the latest version of postgresql and psycopg2 today I'm going for a complete reinstall of Leopard. I've been sticking with macpython 2.5 for the past year but now I'm considering macports even 2.6 For me it's most important for Twisted, PIL and psycopg2 to be working without a problem. Can an...