osx

Where does CPAN install Perl modules in OS X?

Just curious where CPAN installs all the Perl modules by default in OS X. ...

Foundation tool OS X Service, Garbage Collection, MacRuby: why my NSRunLoop won't loop in acceptInputForMode:beforeDate:?

I'm writing an OS X Service with MacRuby. It upcases the selected text. It mostly works, but… well, here's all of it: #!/usr/local/bin/macruby # encoding: UTF-8 framework 'Foundation' framework 'AppKit' class KCUpcase def upcase(pasteboard, userData: s_userdata, error: s_error) incoming_string = pasteboard.stringForType "public.u...

Sending data between OSX and iPhones/iPads

Hi, I am wondering how I can send data between a machine and a mobile device. I know about the game kit an have read a bit about bonjour (but don't know to much about it), but would like to know some expert thoughts on what the best way is. What I basically want to build is a one way traffic application that sends data from OSX to the ...

How do I compile jzmq for ZeroMQ on OSX?

Trying to follow the directions from: http://github.com/zeromq/jzmq I installed pkg-config using Homebrew and then I run the following commands: ./autogen.sh ./configure The configure fails with: checking how to hardcode library paths into programs... immediate ./configure: line 15263: syntax error near unexpected token `newline' ./c...

observe osx application's state(opening, quitting)

how can I get notified at my app while the specify application is opening or closing? for example, I need do something in my app when iTunes is quitting. ...

What is the "identity string" of my certificate (mac + codesign utility)?

I'm gonna say this right away: I have no idea what I'm doing here. I am not a mac developer. Here's the scenario: I have an installer (.pkg) that my boss wants me to sign. I have a certificate, issued by Thawte; which I've imported into the keychain program (and set it to be trusted for everything). In package maker, under the conf...

MySQL MyISAM INSERT performance slow on Mac OS X

I am suffering from abysmal INSERT times on my MacPro (quad-core 6G memory) running mysql 5.1.49 on snow leopard 10.6.4. I tried to figure out where the problem is and finally came to the conclusion that it must have to do with Mac OS X. Here is the test I ran. I have an old dell with a single pentium cpu and 256M memory and mysql 5.1.4...

Open Directory User logs

Hi, is there any way in MAC OS X server 10 to check the IP, User Name, Workstation name etc of the user logging in and out out Open Directory? Any suggestions would be welcomed... ...

How Do I Find the Protection on a Given Memory Page?

I am trying to make some memory executable (on Mac OS 10.6), and I suspect that mprotect() is failing silently. Given the address of a page of memory, how can I check that it is in fact marked executable? ...

py2app: how to include modules that will be loaded by __import__ ?

I have a Python application that loads python modules dynamically at run time (using __import__). The modules to load are in a package called 'plugins' (i.e. subfolder called plugins with __init__.py etc). All works fine running from the python interpreter, and even when compiled to a windows binary using py2exe. I tried building a OSX ...

How do I programmatically convert FLV video files to MP4 using a shell script in OS X?

I want to batch convert a directory containing hundreds of FLV files so that each file has a MP4 equivalent. I'm trying to automate this process by writing a shell script and running it from the Terminal. How do I go about doing that? Most of the instructions available are for Linux using ffmpeg but I think OS X doesn't have it. Thanks. ...

How does one send S-RET to Emacs in a terminal?

In org-mode, pressing M-S-RET (meta-shift-return) will create a new TODO on a new line. This key sequence sends M-RET to emacs through my terminal. I've checked this with C-h c ESC-S-RET, which returns M-RET is undefined in the mini-buffer. I'm using Snow Leopard with Emacs 23.2.1 running in Terminal.app. There is no option to define a ...

Native events fired when a user logs in to Linux or Mac OS

I am developing a background service which needs to run on Windows, Linux, Mac OS and Solaris. The service is very simple and is to be used to track students logging in and out of university computers. I have almost finished the Windows implementation of the service. I have invested in a number of books around native application / serv...

How do I launch a particular version of Xcode from Applescript?

I have two versions of Xcode installed, Xcode 3.2.3 and the Xcode4 developer preview. How do I ensure from Applescript that the 3.2.3 version is picked? ...

How to build a dylib from several .o in Mac OS X using gcc

I have several .o files and want to bundle them in a .dylib, how can I do that it Mac OS X using gcc? Thank you very much. ...

the select() socket system call on mac osx taking a long time for reads

We're developing a cross-platform network application that needs to send and receive data over TCP. On linux we are using select() to wait on both send and receive to make sure that the socket is ready. However, on OSX the select for read takes an absurd amount of time to return -- over 20 seconds. select() isn't timing out -- our timeou...

OSX window move notification API

How do I know when user starts moving, stops moving and moves a window belonging to another application or the Finder? I know about kAXWindowMovedNotification but it is not what I need because it only reports when mouse is stopped and additionally it notifies about any moves also these which have not been done by user. I cannot find any ...

Permissions with Zend Server CE, daemon:daemon does not have enough permissions on OSX

Strangely enough the server can't resize images any more because it doesn't have enough write permissions. When I check the permissions of the directory I want to write my resized images to I see: username staff After excecuting echo exec('whoami'); and checking the httpd.conf I saw the user and group for the server was daemon:daemon ...

Building mod_wsgi using python 2.5 on Snow Leopard

I'm using the Python 2.5 that came with Mac OS X Snow Leopard (10.6). I've set the defaults value: defaults write com.apple.versioner.python Version 2.5 and normally I get python 2.5 as it suggests. However when I try to build mod_wsgi, that doesn't seem to adhere. I've used the --with-python=/usr/bin/python2.5 option to configure to fo...

Qt on OS X building a 10.5 compatible application on 10.6

I'm running Mac OS X 10.6 on my development machine and am building a QT application that I would like to work on 10.5 (and 10.4) as well as 10.6. My application has both a library component and a gui component, each as their own QT project with dependencies. I have followed the instructions of the QT deployment guide. In both .pro file...