osx

How do I configure/make/install against an older version of a library?

I'm trying to install a piece of software (moddims) that depends on "Imagemagick 6.3.9+" - I tried installing the latest version of ImageMagick (6.5.4-5) but got the following error when I tried to "make" moddims: mod_dims_ops.c: In function ‘dims_smart_crop_operation’: mod_dims_ops.c:34: error: too few arguments to function ‘ParseGravi...

Compiling ImageMagick as 64bit under OS X?

I'm trying to install moddims on OS X (see previous question), an Apache module with a dependency on ImageMagick. As far as I can tell, the OS X Apache is compiled as 64 bit. My previous attempt to run the moddims module I had compiled gave the following error: httpd: Syntax error on line 117 of /private/etc/apache2/httpd.conf: Canno...

How to enable syslogd to receive UDP logs from routers in OSX

Occasionally a router goes bad and I would like to get the router logs. While some routers have built-in log viewers, some do not. Most routers seem to have a facility to send logs to another host using syslog. How do I get OSX (client) to receive these logs? OSX has a syslogd, but the instructions are opaque at best. Perhaps a diff...

How to associate py extension with python launcher on Mac OS X?

Does anyone know how to associate the py extension with the python interpreter on Mac OS X 10.5.7? I have gotten as far as selecting the application with which to associate it (/System/Library/Frameworks/Python.framework/Versions/2.5/bin/python), but the python executable appears as a non-selectable grayed-out item. Any ideas? Thanks, -...

Getting Attributes of Keychain Items

I'm trying to get the attributes of a keychain item. This code should look up all the available attributes, then print off their tags and contents. According to the docs I should be seeing tags like 'cdat', but instead they just look like an index (i.e., the first tag is 0, next is 1). This makes it pretty useless since I can't tell whi...

Listing and finding windows on OS X

I am trying to do some stuff on OS X using the carbon api, but I can't find anything I am looking for on google or the Apple development website. Ideally I would like to find a function that finds the window at a certain location on screen. It seems that there are similar functions, but one of them says that it only finds windows in th...

Oversized Qt Fonts on OSX

Why does Qt on OSX appear to default to overly large fonts? Even when you select the same font size manually the fonts appear slightly bigger. Does Qt on OSX use a different font rendering to OSX? Does this improve if you use Qt for Cocoa? In addition, is there a qtconfig tool or equivalent to globally set the font settings for all Qt a...

what application can I use to create web .ico files on a mac

What Mac OS X (leopard) application can I use to create favicon.ico -like ico files? Note: This is not to create widget icons or the like, but the (e.g. 16x16 pixel) files that appear on a web browser's tab and alongside a bookmark... ...

Alternative to cvs2svn for performing cvs to svn migration

I am trying to perform a migration from cvs to svn on my our new XServe server which is running Mac OSx server edition. There is a known conflict between the dbm libraries that come pre installed with mac osx and the cvs2svn. The error it gives is this "ERROR: cvs2svn uses the anydbm package, which depends on lower level dbm libraries....

LTLIBRARIES: mv *.Tpo *.Plo, but the former doesn't exist and the latter already does.

I'm doing a pretty straight-forward conversion of an existing library (libtcod) to Autotools (for OS X happiness). Unfortunately, when I switch my Makefile.am's lib_LIBRARIES rule to lib_LTLIBRARIES, the build goes from successful to un. Excerpt from the output below: Making all in . make[1]: Nothing to be done for `all-am'. Making al...

When are -framework and -I/System/.../Example.framework/Headers/ needed?

I am trying to compile a JNI library which uses carbon from the command line. If I don't -I/System/.../JavaVM.Framework/Headers/, It can't find any of the jni types, and gives errors. If I just -I/System/.../FlatCarbon.framework/Headers but don't "-framework Carbon", it compiles fine, but the linker gives an error about an undefined sy...

macosx: introducing delay between paste and enter or between keystrokes

Is there a way to introduce a delay between cmd-V and enter? Or between paste in general and enter? Otherwise, one of these days, I'm gonna IM something really damaging :-) ...

How to insert indent/tab in os x terminal for IronPython (ipy.exe) ?

I am running IronPython 2.0.2 interactive console with Mono 2.4 on OSX Terminal.app . How do I insert indent/tab in the Terminal.app ? I want to do this so I can indent my code. For example I want to input print "hello tab" what I see is print "hellotab" despite pressing the tab key many times. When the command gets executed it p...

Eclipse TPTP or other java profiling solutions on OSX. Suggestions welcome

I'm attempting to profile junit tests in eclipse on OSX using TPTP. I installed the TPTP package from eclipse with no problem, I went to profile some code and it tells me: Agent Controller is unavailable under port 10002. Make sure that the service is started and the port number is correct under preferences. I searched around o...

DTrace on Leopard: No probes specified, even when I specify probes

% sudo dtrace -p 2446 'objc$target:NSObject:-init:entry { trace(); }' dtrace: no probes specified The manpage suggests that this is the correct format with which to specify a probe on an Objective-C method. I tried -Z, but (unsurprisingly) that just didn't print anything. [Added] It's not even specific to Objective-C probes. I tried i...

Why does DTrace give me invalid-address errors some times and not others?

My program: typedef struct objc_class { struct objc_class *isa; struct objc_class *super_class; char *name; long version; long info; long instance_size; void *ivars; void *methodLists; void *cache; void *protocols; } *Class; struct objc_object { Class isa; }; /* Code to extract the class name from arg0 based on a snippet by ...

iTerm Mac/ How to export/import bookmarks

How can I Import/Export bookmarks in iTerm program on Mac OS X. Thx! ...

Java getDefaultToolKit() hangs Mac OS X 10.5

I am using Eclipse Cocao on Mac OS X 10.5.7, and the program hangs on the innocent line below while initializing variables. If I take it out, the program proceeds. Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); This line works fine in XP, Vista, Server 2003, and Mac OS X 10.4.11. I have no idea why it infi...

OSX - Retrieve user id of logged-in user from a system service

I'm writing a piece of software that runs as a system service in Mac OSX and cannot seem to find out how to get the 'active' user. There appears to be APIs to iterate through the list of logged-in users and be able to tell from a value which one has the machine console... however I cannot find any documentation on these APIs. Looking a...

PHP & MySQL on Mac OS X: Access denied for GUI user

Hey! I have just installed and configured Apache, MySQL, PHP and phpMyAdmin on my Macbook in order to have a local development environment. But after I moved one of my projects over to the local server I get a weird MySQL error from one of my calls to mysql_query(): Access denied for user '_securityagent'@'localhost' (using pass...