can’t start MySql in Mac OS 10.6 Snow Leopard

Maybe this answer helps: mysql5.58 unstart server in mac os 10.6.5 I just installed MySQL 5.5.8 (mysql-5.5.8-osx10.6-x86_64.dmg) on Mac os X 10.6.5 and also had the problem that MySQL was not starting. After reading this post: http://forums.mysql.com/read.php?11,399397,399606#msg-399606 and editing the file as suggested everything started working. I also did sudo chown -R root:wheel /Library/StartupItems/MySQLCOM after … Read more

NSFileManager delete contents of directory

E.g. by using a directory enumerator: NSFileManager *fileManager = [[NSFileManager alloc] init]; NSDirectoryEnumerator *enumerator = [fileManager enumeratorAtPath:path]; NSString *file; while (file = [enumerator nextObject]) { NSError *error = nil; BOOL result = [fileManager removeItemAtPath:[path stringByAppendingPathComponent:file] error:&error]; if (!result && error) { NSLog(@”Error: %@”, error); } } Swift let fileManager = NSFileManager.defaultManager() let enumerator = fileManager.enumeratorAtURL(cacheURL, … Read more

How do I set up a C++ project in Xcode 4?

Check this out : http://www.youtube.com/watch?v=Ey8LK7P1K94 at 2:30 he creates a C++ project. Or try this: Open XCode. File/New Project… In the “New Project” Assistant, expand the “Command Line Utility” group. Select “C++ Tool” Click “Next” Give a project name and directory, then click “Finish”. Press Cmd-Shift-R to open the Console window. Output will appear there. … Read more

How do I force Python to be 32-bit on Snow Leopard and other 32-bit/64-bit questions

You can find out a lot about the Python version you’re running via the platform module (the sys module also has a few simple helpers) On Mac OS X, you can run a “fat binary” with your chosen architecture with, for example, arch -i386 /usr/bin/python I do not recommend altering /usr/lib/python itself (with the lipo … Read more

tech