osx

How do you uninstall MySQL from Mac OS X?

I accidentally installed the PowerPC version of MySQL on my Intel Mac in Snow Leopard, and it installed without a problem but of course doesn't run properly. I just didn't pay enough attention. Now when I try to install the correct x86 version it says that it can't install because a newer version is already installed. A Google query led ...

Why doesn't OS X have the same flickering problems that Windows does?

I was reading Larry Osterman's latest blog post about debugging a flickering problem in the Windows Vista/7 volume control, and I suddenly realized that I can't recall ever seeing an application flicker on my OS X laptop. Even applications that otherwise seem to be poorly written avoid the flicker problem in my experience. Without this...

Xcode building and resources folders

Hi there, I have several resources in my iPhone app and when they get compiled they all get added to the root of the resources folder in the app regardless of the Xcode grouping structure. This is fine for most things, however there is a set of files that I need to have structured in folder in the app's resources folder. At the moment,...

Is anybody having problems inputing strings in Xcode 3.2?

For some reason excode is throwing this error when I try to cin into a string. test(5640) malloc: * error for object 0x1000041c0: pointer being freed was not allocated * set a breakpoint in malloc_error_break to debug Program received signal: “SIGABRT”. sharedlibrary apply-load-rules all Here is the code that produced that: ...

Is there a good (visual) Git tool for Mac OS X or Windows?

I'm looking at porting my projects to Git from SVN (I'm convinced that Git is worth the move) and I'm trying to come up with a set of tools to use for the project. I've googled around for some tools but I wasn't really impressed with what I found. What visual tools are recommended for Git users on Mac OS X? What about Windows? (I hav...

How can I receive notifications of filesystem changes in OS X?

In Windows, I can use the FindNextChangeNotification API to watch a file or folder for changes. For example, I can watch a folder and get notified when a file is added or removed. Is there a similar API on OS X? ...

OSX php.ini memory limits

When you are using the latests version of OSX (10.6), does the memory limit of 8M (or whatever you have yours set to) mean that you are now running with 8 000 000 bytes rather than 8 388 608? ...

Differences between Framework and non-Framework builds of Python on Mac OS X

Question What are the differences between a Framework build and a non-Framework build (i.e., standard UNIX build) of Python on Mac OS X? Also, what are the advantages and disadvantages of each? Preliminary Research Here is the information that I found prior to posting this question: [Pythonmac-SIG] Why is Framework build of Python n...

Handling "Open Document" (odoc) events in Snow Leopard

I have code in my application that response to "Open Document" (odoc) events. In Mac OS X Tiger and Leopard, this code works fine: - (void) handleOpenDocumentEvent: (NSAppleEventDescriptor*)event withReplyEvent:(NSAppleEventDescriptor*)replyEvent { NSAppleEventDescriptor const *const dirObj = [event descriptorForKey...

List files with certain extensions with ls and grep

I just want to get the files from the current dir and only output .mp4 .mp3 .exe files nothing else. So I thought I could just do this: ls | grep \.mp4$ | grep \.mp3$ | grep \.exe$ But no, as the first grep will output just mp4's therefor the other 2 grep's won't be used. Any ideas? PS, Running this script on Slow Leopard. ...

awk '{print $9}' the last ls -l column including any spaces in the file name.

How would I get awk to output $9 $10 $11 etc as some of my files have spaces in them. ls -l | grep ^- | awk '{print $9}' ...

URL Segment Support macosx 10.6

Hi, does anyone knows how to activate URL Segment Support in Snow Leopard? I take I must add the AcceptPathInfo On directive to the httpd.config file in /private/etc/apache2 but I cant find the right way to do it. Should I set AllowOverride and go .htaccess instead? Any advice would be greatly appreciated, Thanks!. ...

Eclipse CDT on Snow Leopard cannot find binaries

After upgraded to Snow Leopard, I can no longer run Eclipse CDT project on my computer. While the build process completes without any error, Eclipse does not recognize the binary file it created. When try to point to the binary file in Run Configuration.. dialog, it cannot find any binary in the project. Though executing the file from Te...

Access file name in Automator from Folder Action

I'm trying to create a simple Automator workflow that will prompt me for where to move and rename a PDF when I download one from the web. I want to use this for downloading my monthly financial statements. I'm getting stuck at what I thought would be a simple problem: passing the name of the new file(s) from the Folder Action into the A...

ImageMagick OSX Snow Leopard bad CPU type

Installing imagemagick works. But when I try to run a command it says bad cpu type. What is this and how do I get rid of it so that it works right? N.b. I'm 'behind the times' and only using a core solo (if that helps) ...

String Replace in C++

I've spent the last hour and a half trying to figure out how to run a simple search and replace on a string object in C++. I have three string objects. string original, search_val, replace_val; I want to run a search command on original for the search_val and replace all occurrences with replace_val. NB: Answers in pure C++ only. Th...

Library to read/write pbxproj/xcodeproj files?

Does anyone know of a library to read/write the Xcode project files .xcodeproj/.pbxproj? Any language is welcome. Thanks in advance. ...

Apache 2.2 localhost VirtualHosts problems

Hi all, I am trying to setup my dev machine with virtual hosts so I can access my development projects with a simple url, like http:// project.dev/ rather that a whole http:// 127.0.0.1/dev/path/to/root/of/project/ type of url. Now, I'm aware there are many tutorials and questions already answered about this, but after trying many of th...

How do I fix my AppleScript to delete a selection of tracks in iTunes?

I've created the following AppleScript for deleting all the selected tracks: property okflag : false -- check if iTunes is running tell application "Finder" if (get name of every process) contains "iTunes" then set okflag to true end tell if okflag then tell application "iTunes" if selection is not {} then repeat wi...

How to get the cpu usage per thread on Mac OSX

I am looking for an OS level API to account for cycles consumed by a specific thread in OSX. This is similar to this question (and answer) but in OSX. ...