mac

Bespin and Macbook scroll gestures

I don't know this because I'm on a Sony laptop, but does the Macbook two fingure scrolling work with bespin? The scrolling on my VAIO trackpad doesn't work with bespin. I know this is because the scrollbars are actually canvas drawn and javascript controlled. Sense I want to get a mac eventually, I would like to know if the two fingure s...

NSSound-like framework that works, but doesn't require dealing with a steep learning curve

Hi, I've pretty much finished work on a white noise feature for one of my applications using NSSound to play a loop of 10 second AAC-encoded pre-recorded white noise. [sound setLoops: YES] should be all that's required, right? It works like a charm but I've noticed that there is an audible pause between the sound file finishing and ...

NSTask to call command top. Getting Error

Hello super-intelligent people! Thanks so much for checking out my post. Right now I'm running this: NSTask *task; task = [[NSTask alloc] init]; [task setLaunchPath: @"/usr/bin/top"]; NSArray *arguments; arguments = [NSArray arrayWithObjects: @"-stats", @"pid,cpu", nil]; [task setArguments: arguments]; NSPipe *pipe; pipe = [NSPipe ...

NSTask spawns top process. How to extract data?

EDIT 1 This code is currently printing to the console. What I would like to do is get the data in a string (and stop the data going to the console) so I can parse it for specific information. I hope my question is clear. Please ask for clarification if needed :) EDIT 2 Another alternative could be to print it to a file and then I co...

Current version of "Using mod_ssl on Mac OS X" documentation?

I'm fairly new to Mac I want to enable SSL on my Mac (10.6.4) for some local development. In searching for an answer, I ran across Using mod_ssl on Mac OS X. However, this Apple developer support document looked out of date. In further searching, I ran across Configuring mod_ssl on Mac OS Snow Leopard which basically asked the same qu...

How to make a shell script global?

I am on Mac's OS 10.6, and I am trying to learn a thing or two about shell scripting. I understand how to save a shell script and make it executable, but I am wondering what I can do or where I can save the file to make it global (that is, accessible no matter what folder I am in). For example, if I save a .sh file in the /Users/usernam...

Running an Rscript on Mac OS X

Hi All, I have a BATCH File script on a Windows machine that consists of the following line: c:\R\bin\Rscript.exe "c:\Users\user\Documents\Shares.R" I want to do the same thing but using Mac OS X at the moment I am using Automator => Run Shell Script and the following line: open "/usr/bin/Rscript" "/Users/usr/Documents/Shares.R" ...

Where are Python dylibs installed on the Mac?

On Mac OSX 10.6.4 where do you install dynamic libraries (dylib) so Python 2.6.1 can import them? I've tried placing them in /usr/local/lib and usr/localbin and /Library/Python/2.6/site-packages but none of these locations have worked. The library I'm trying to install is libevecache.dylib a library to access cache files for Eve-Online. ...

Is there a free shell service for Mac computers?

Hi, I'm looking for a shell where I can test shellscripts and a programs on a Mac. What I'm looking for, is something like bshellz.net but with Apple computers (i.e. Macs). Is there such thing available? I was googling for the last few days, but I couldn't find anything. ...

psql: command not found

I installed postgresql via MacPorts. However, going to /opt/local/lib/postgresql84/bin I am unable to execute any of the pg commands. Does anyone know what I am doing wrong? Thank you. ...

How do I change what version of GCC Xcode uses?

Currently, I am trying to compile Imprudence, a third party viewer for the Linden-Lab owned Second Life. I have gotten everything set up and I am now in Xcode. When I click on the Build And Run button, I get an error after a little bit stating that GCC 4.2 is not compatible with the Mac OS X 10.4 SDK. I have tried changing the Active Ar...

From PHP (LAMP) to Classic ASP, how to setup a dev environment

I'm jumping into updating a Classic ASP web app coming from a PHP background and am trying to get my bearings. I'm used to just installing something like MAMP, messing the httpd.conf a bit and getting on my way. Ideally, I would like to be able to edit this app completely locally on my Macbook Pro running OS X Leopard so that I'm not me...

How to create UIImageView with image from a link?

How to create UIImageView with image from a link like this http://img.abc.com/noPhoto4530.gif? Anybody can help me? :( ...

use defaults to read desktop wallpaper change value in mac

Is there a way to obtain the current setting for desktop wallpaper change either using Apple Script or defaults read? Basically I want to know by looking at the plist file if the option of changing wallpaper every X minutes is enabled or not. ...

Code for minimizing application window in Mac?

Hi, I'm wondering whether there is a way to write code for Mac OS 10.5 which will minimize and restore a window. What language would it be in? Could someone please give me an example or direct me to documentation on Apple's developer site I should look at? Thanks! ...

Registering for a NSFileHandleReadToEndOfFileCompletionNotification

Hello kind ladies and gentlemen :) I'm trying to figure out how to make this piece of code from a previous question work, but I'm stuck on the part on how to 'register' a NSFileHandleReadToEndOfFileCompletionNotification. This is my code: NSTask *topTask = [NSTask new]; [topTask setLaunchPath:@"/usr/bin/top"]; [topTask setArguments:[N...

Dyld Library not loaded / No suitable Image found / unknown file type

I'm getting the following problem when sending an .app to a tester: Dyld Error Message: Library not loaded: @executable_path/../Frameworks/RegexKit.framework/Versions/A/RegexKit Referenced from: /Applications/SP.app/Contents/MacOS/SP Reason: no suitable image found. Did find: /Applications/SP.app/Contents/MacOS/../Framework...

Is it worth developing support for OSX 'services' (does anybody ever use it?)

Mac OSX has this feature called (I think) 'Services'. It is available in the menu bar under the filename of the application (e.g. Finder) and then selecting 'Services'. This gives you access to a list of applications that provide 'services'. For example, if you are browsing a website with firefox and you have some text selected on the pa...

Ada compiler for Mac OS X 10.6

Right. I'm currently in a class that is exploring many different programming languages. Among them are COBOL and Ada, both of which I can't seem to find a free compiler. Has anyone had better luck and if so, where might I find them? Thanks! ...

Tools to set up unix development environment automatically?

I really love programming. But the cumbersome part is to setup the unix development environment. I use ruby on Ubuntu/Mac os x. I'm aware there are tools like rvm and vagrant that can help you in the process, but even though I have to set up everything manually in the OS. Are there tools for setting up a full development environment a...