osx

Can't install do_mysql gem?

I'm trying to install the do_mysql on my Snow Leopord system Macbook Pro 13", but I keep getting this error: n216-160:~ myself$ sudo gem1.9 install do_mysql Password: Building native extensions. This could take a while... ERROR: Error installing do_mysql: ERROR: Failed to build gem native extension. /opt/local/bin/ruby1.9 extconf...

libmysqlclient15-dev on macs?

Does OSX need an install of libmysqlclient15-dev? I'm trying to compile a gem that is failing and a lot of sources says to install "libmysqlclient15-dev" but I only see this for Linux, not OSX. Am I missing something here? ...

how to plot an RDF graph for inspection ?

The W3 has a RDF validator that plots the RDF graph. Do you know a similar utility desktop side ? Forgot to say. I'm on a mac. ...

How to read the content of an other app's text field on OS X?

For a project I must create a little buddy app that will read the content of one of the main app's text fields. Is there a way to get to the contents of a window/control (I'm interested in the text of the text field) on OS X? Something like GetDlgItemText() on Windows where I just pass the control's global handle and will get the contr...

Extract specified channel from MIDI file with Quicktime framework

The task is to extract a specific MIDI channel and save it to WAV file using MacOS X APIs Is it possible? If "yes", please advice where to start dig on it? ...

CoreData Book Recommendation

I'm looking for a comprehensive book on CoreData. I'm rather frustrated with the many Apple documents that do not seem to be assembled into a single reference work or even at a single place, it is too easy to miss (or find) a key document. I have the Zarra book "Core Data"but it is rather lightweight. Here are the docs I have found, I...

Mac application hangs on ReadPipe from USB device

I took /Developer/Examples/IOKit/usb/USBSimple Example and modified it so that it actually transfers some data to (and hopefully soon from) the device. Here's my transferData function (commented): void transferData(IOUSBInterfaceInterface245 **intf, UInt8 inPipeRef, UInt8 outPipeRef) { IOReturn err; CFRunLoopSourceRef cfSource;...

Xcode save code folding?

I know it's not directly related to programming, but what better place then stackoverflow right? So code folding is an awesome feature which I love, but does anyone know if there is a way to get Xcode to remember where you have certain sections collapsed whenever you open a file? BTW, I'm coding ruby on rails using git version control...

When creating a custom Toolkit, why does createFrame fail on OSX?

We are trying to extend the UISpec4j testing framework to display the user interface when running tests. So we have a custom toolkit that wraps around the native toolkit for the relevant platform. We managed to get everything working well on windows XP, however when testing our changes on OSX, our extension of createFrame appears to beha...

Best practice of installing Ruby and Rails on Snow Leopard?

I am setting up a new Macbook as a rails development machine. Till now, I always installed ruby, MySQL, etc. through MacPorts, because I don't want to be dependent on the system version of ruby. But with stuff like Homebrew and rvm (no link because of spam prevention) popping up, is there a better recommended way of setting up ruby for r...

printing 4"x6" cards in OSX (cocoa)

I'm trying to get 4x6 cards to print in Cocoa (story cards). I have a view where I put the data but when I print it prints in the correct orientation, only on 8x11 paper (in other words, it prints oriented correctly on letter size paper with the origin in the upper left corner -- lower left if you are holding the output in landscape mod...

wxToolBar behavior on OSX

It seems that wxToolBar is not behaving like native OSX apps does. In most native OSX apps, you can drag the window around by dragging the toolbar, where the space is not occupied by buttons. In wxWidgets apps I can only move the window by dragging the title bar. Is there some way to fix that in wx(python)? ...

Development for unstable versions of Chrome?

I would like to know what the members of this great community think of developing and adjusting their web apps and sites in general to recent Google Chrome beta browsers on Linux and Mac OS X and of course Google ChromeOS. Do you think it's too early and I shouldn't waste my time adjusting myself to something that might change due to bu...

Sending commands and strings to Terminal.app with Applescript

Hi, I want to do something like this: tell application "Terminal" activate do script "ssh [email protected]" -- // write user's password -- // write some linux commands to remote server end tell For example to log in to the server, enter the password, and then login to mysql and select a DB. I type that every day and it would be...

CMake: how do you copy private frameworks into the application bundle under OS X?

We build several private frameworks that get copied into our application bundle during our Xcode build process. I'm moving the whole build process to CMake, and this is one area that I haven't been able to resolve. I have found one utility module: CMakeIngestOSXBundleLibraries.cmake but its a little unclear to me how this might be used...

Winqual for Mac OSX

Hello, is there a way to see applications crashes of our mac-application like we can using error reports using Microsoft's WinQual for windows applications? Thank you! Regards Uwe ...

Creating customized .dmg files upon download

I want to distribute a cross-platform application for which the executable file is slightly different, depending on the user who downloaded it. This is done by having a placeholder string somewhere in the executable that is replaced with something user-specific upon download. The webserver that has to do these string replacements is a L...

Command line CSV viewer?

Anyone know of a command-line CSV viewer for Linux/OS X? I'm thinking of something like less but that spaces out the columns in a more readable way. (I'd be fine with opening it with OpenOffice Calc or Excel, but that's way too overpowered for just looking at the data like I need to.) Having horizontal and vertical scrolling would be ...

How can I uninstall iphone development sdk on mac

Hi, I download iphone sdk for 10.5 from http://developer.apple.com/iphone/index.action#downloads How can I uninstall it but leave XCode untouch? Thank you. ...

Naming convention for CFBundleSignature and CFBundleIdentifier

I am wondering how do I know what name I should give for my CFBundleSignature and CFBundleIdentifier. I believe these are supposed to be unique identifier so do I have to somehow get these names from apple? Say my app is called javaapp and comes from the website javaapp. Should my CFBundleIdentifier be com.javaapp.javaapp? What 4 let...