mac

How can I fetch information about the app/song/video etc. from iTunes Store?

I need to get an info about the app/song/video by item id from iTunes Store. I've found this: http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStoreServices.woa/wa/wsLookup?id=324021811&mt=8 But it doesn't work with apps. Is there any public API? UPD: I can get info using this link: http://ax.phobos.apple.com.edgesuite.net/...

Installing Mercurial on Mac OS X 10.6 Snow Leopard

Installing Mercurial on Mac OS X 10.6 Snow Leopard I installed Mercurial 1.3.1 on Mac OS X 10.6 Snow Leopard from source using the following: cd ~/src curl -O http://mercurial.selenic.com/release/mercurial-1.3.1.tar.gz tar xzvf mercurial-1.3.1.tar.gz cd mercurial-1.3.1 make ALL sudo make install This installs the site-packages files ...

prohibitory sign on application icon (broken folder) on Snow Leopard

I have prepared a disk image with my application,which i want to install in Applications folder. When i copy the application from the disk image to the applications folder, i see that first it gets generic application icon (sometimes my application icon with a prohibitory sign (or broken folder) ). It becomes executable application after...

Windows print screen with Mac Keyboard

Can anyone out there tell me how to do a screen capture in Windows with a Mac keyboard plugged in? I have my Mac keyboard and mighty mouse plugged into a KVM switch that controls both my MacbookPro and my WinXP desktop. I'm having a terrible time trying to do certain things that require those extra keys like insert and print screen. Even...

"Access Denied" error after re-installing mysql on mac

I reinstalled mysql on my machine, and before that, deleted all the files. However, after the reinstallation, i tried running mysql, and got this error mysql -u root ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) I did not set any password, and in fact, running mysqladmin gives the same error as wel...

How to avoid native authentication popup in AIR on Mac?

In AIR on Mac, when I send login creds to a service and they're incorrect, AIR displays a native popup window to try logging in again without dispatching an error event. Twitter provides a header (suppress_response_codes=true), which returns any error as a status 200 with the error message. I'm using HTTPService to connect to a service w...

How to create a hardlink on attached Volumes on Mac?

os.link is not working for the attached Volumes on Mac. ~ $ python Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.link("/Volumes/ARCHANA/JULY 09/PRAMANPATRA.doc", "/Volumes/ARCHANA/temp")...

Programmatically block screen saver in Mac OSX

Is it possible to programatically ask Mac OS X not to turn on the screen saver while your application is active? ...

Unable to build with Qt on Snow Leopard

...

What are the ways to convert/encode to AAC in Cocoa?

Is there a way to programmatically convert and/or encode to AAC/m4a format in Cocoa without the use of any libraries or programs that don't ship with Mac OS X? I don't want to use for example, faac or ffmpeg, to do the encoding. ...

Apple Push Notification Service

i tried to run using local mac machine but go the following errors Warning: stream_socket_client() [function.stream-socket-client]: Unable to set private key file `/Applications/XAMPP/xamppfiles/htdocs/apns/apns-dev.pem’ in /Applications/XAMPP/xamppfiles/htdocs/apns/apns.php on line 9 Warning: stream_socket_client() [function.stream-so...

Broken Java Mac 10.6

Some background: On Mac OS X 10.6 using Macports and I have DYLD_LIBRARY_PATH set in my .bash_profile. The problem: When I run java -version I get this error: Error occurred during initialization of VM Unable to load native library: libjava.jnilib By way of one helpful forum thread, I've discovered the problem is some files in...

CGPostMouseEvent replacement on Snow Leopard

I've been using CGPostMouseEvent() for performing mouse clicks since mac os 10.4. While working on my code and trying to make it 100% compatible with Snow Leopard, XCode spit a warning saying that CGPostMouseEvent() is deprecated. While this doesn't scare me, I'd like to know what replaces CGPostMouseEvent(). This is how I use it: CGPo...

Performing a double click using CGEventCreateMouseEvent()

I'm using the following code to simulate a click of the mouse: void PostMouseEvent(CGMouseButton button, CGEventType type, const CGPoint point) { CGEventRef theEvent = CGEventCreateMouseEvent(NULL, type, point, button); CGEventSetType(theEvent, type); CGEventPost(kCGHIDEventTap, theEvent); CFRelease(theEvent); } void LeftClick(con...

Java Mac ZoneInfoMapping error

Hi, I've just updated to jre 1.6, and I'm not sure if this is a result of upgrading or not, but I'm getting this error whenever I run my app: ZoneInfo: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/zi/ZoneInfoMappings (No such file or directory) I tried going back to 1.5, but the error is still there, and after a ...

Install two different versions of PHP in Mac OS X

Is it possible to install two different versions of PHP in the same computer? I am using Mac OS X, and I need it because the PHP OpenId library does not work with PHP 5.3... ...

How to set up sh script to be ran with Terminal (mac os) by default?

Hi all! I have a sh script (scala compiler). I'm trying to run it from Terminal application: sudo fsc, but it says that the file can't be found. I've set chmod +x, so script should be visible. It's sh script, not bash. Is it any possible? UPD: thanks all for the great answers, i really did learn a lot :) to set up Path properly, every...

Remote Java development with Eclipse (or something else)?

I'm fairly new to Java development, and people have been suggesting I use Eclipse as an IDE for the work I'm doing. My code lives on a linux box (running Ubuntu of some fairly recent version), but I use a MacBook as my main computer. I've been ssh'ing into the linux box to work on the non-Java code, simply using vim and have done the sam...

Getting list of Mac text-to-speech voices programmatically?

The mac command say can specify the voice used with the -v flag. say -v Alex "compile completed, put your swords down." The available voices can be seen in System Preferences/Speech/Text to Speech. How can I get this list programmatically? ...

calling Objective C functions from Python?

Is there a way to dynamically call an Objective C function from Python? For example, On the mac I would like to call this Objective C function [NSSpeechSynthesizer availableVoices] without having to precompile any special Python wrapper module. ...