osx

How to run a shell script using SpotLight?

Is there a way to run a shell script using spot light on Mac OS X 10.6? I would like to be able to invoke a shell script with directly from Spotlight without opening up a terminal ...

How to install PySide v0.3.1 on Mac OS X?

I'm trying to install PySide v0.3.1 in Mac OS X, for Qt development in python. As a pre-requisite, I have installed CMake and the Qt SDK. I have gone through the documentation and come up with the following installation script: export PYSIDE_BASE_DIR="<my_dir>" export APIEXTRACTOR_DIR="$PYSIDE_BASE_DIR/apiextractor-0.5.1" export GENE...

java Processbuilder - exec a file which is not in path on OS X

Okay i'm trying to make ChucK available in exported Processing sketches, i.e. if i export an app from Processing, the ChucK VM binary will be executed from inside the app. So as a user of said app you don't need to worry about ChucK being in your path at all. Right now i'm generating and executing a bash script file, but this way i don'...

Send emails in a django development environment on OS X leopard

Hay, i was wondering how i would go about setting up django so that i can send emails from a standard Leopard installation. In php i just use mail() and it sends the mail for me. Thanks ...

How to enforce foreign keys using Xerial SQLite JDBC?

According to their release notes, the Xerial SQLite JDBC driver supports foreign keys since version 3.6.20.1. I have tried some time now to get a foreign key constraint to be enforced, but to no avail. Here is what I came up with: public static void main(String[] args) throws ClassNotFoundException, SQLException { Class.forName("...

Android sdk download/update failing

I'm trying to update and install the latest Android SDK (API 8) and keep getting the following error: Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml, reason: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find va...

How to make installer set up of Cocoa project?

I have make one application Cocoa using XCode. Now I want to make setup file of project. So other user can install this project directly in his system. ...

Capturing Mac OS X System Audio output with Python

Hello, I've been trying to "hijack" the Mac OS X system audio using PyAudio and save to a wav in python. That is, I do not want to record from an input device such as a microphone. I want to grab the sound output from any or all applications. I have followed the tutorials on the PyAudio site but these do not appear to cover my use case...

osx web service spawns icon in taskbar - osx - while drawing image

I have a web endpoint that displays an image of a string... When the following code is run (in tomcat) it spawns a java icon in the taskbar on OSX. Not sure if it is a problem, or whats going on. Looking for some sort of explination @RequestMapping("/text/{text}") public void textImage(HttpServletResponse response, @PathVariable("text...

Is there a way to let NetBeans work with Amazon-ec2 disk space?

Hello, I'm sick of using vim to develop on some far Amazon-ec2 machine. I'm wondering if there is any way to Use NetBeans on my laptop to develop on and run the code on that machine. Basically I want a way to let NetBeans operate on an external disk space that I connect to using SSH, In my case I'm using Mac OS X 10.6.3 locally and the...

How to get macosx Log-in User Name in objective-c

please let me know how to get the currently logged in user's name or mac machine name (if possivle) in objective-c. Thanks ...

Change window title to the one in text box in Objective-C?

I'm just getting started with Objective-C and I'm writing a simple application. I made two outlets : wnd - main window display - the text box Then I've tried using this code: [wnd setTitle:[display value]]; Unfortuanately it didn't work ... The debugger said : 2010-05-22 XX:XX:08.577 HelloWorld[2536:a0f] -[NSTextField va...

How to ask for permissions?

How do I create a dialog like the following one in Objective-C? I'm quite new to Objective-C, and I need root access to a file in the /etc directory. Thanks!! Yvan ...

How does Mach-O loader loads different NSString objects?

I have known that If you define a bunch of @"" NSString objects in the source code in Mac OS. These NSStrings will be stored in a segment in the Mach-O library. Section sectname __ustring segname __TEXT addr 0x000b3b54 size 0x000001b7 offset 731988 align 2^1 (2) reloff 0 nreloc 0 flags 0x00000000 reserved1 0 reserve...

Making a cron(job) on XAMPP for Mac OS X

Hello, how do I create a cron / cronjob (I am not quite sure about the correct terminology ^^ ) on XAMPP for Mac OS X running Snow Leopard? Or how do I make a cron(job) on Snow Leopard, whether XAMPP or not? ...

Open URL in new Safari tab with AppleScript

Is it possible to use AppleScript to open a link in a new tab in Safari? Thanks in advance! ...

How do I do a fresh install of Google App Engine?

I've been using GAE for months now, but very recently I've had difficulty getting the latest release (1.3.4) to work for me. I'd like to remove GAE and start from scratch and reinstall it. However, it appears that deleting the googleappenginelauncher.app is not enough to completely remove it, because when I install the launcher again I s...

manage.py runserver throws an ImportError with my appname, MacPorts issue on OSX?

I've been developing a Django app for weeks locally on OSX 10.6.3. Recently, I rebooted my machine and went to start my development environment up. Here's the error: cm:myApp cm$ python manage.py runserver Traceback (most recent call last): File "manage.py", line 11, in execute_manager(settings) File "/Library/Python/2.6/...

How do you implement global keyboard hooks in Mac OS X?

I know this can be done for Windows and that XGrabKey can be used for X11, but what about Mac OS X? I want create a class that allows setting shortcut keys that can be invoked even when the application windows are inactive. ...

Problems compiling peazip on OSX

I'm having some problems with compiling Peazip on OSX (10.6). I emailed the Peazip developer and he said he probably couldn't help me too much as the error seems to be OSX specific and he doesn't have access to an OSX machine any more. The compiler I'm using is Lazarus as the source is in Pascal. The actual compile process seems to go ...