My question is regarding the org.apache.commons.exec.DefaultExecutor.execute(CommandLine command) method in apache commons.
This is the codebit for executing ffmpeg:
command = FFMPEG_DIR + "ffmpeg -i \"" + file.getAbsolutePath() + "\"";
DefaultExecutor executor = new DefaultExecutor();
ByteArrayOutputStream baos = new ByteArrayOutputSt...
I'm trying to create a simple dialog box from within a very simple application. It's the only UI in the application. But when I call RunStandardAlert, the buttons are non-responsive, and the function call never returns. I am not using Carbon or Cocoa anywhere else in the app.
This is the code I am using, from the Carbon tutorial. I ...
Hi,
I have this nib file, with a large number of NSImageViews that use a large number of Images in my application bundle.
I'm hoping to change the images displayed though while the application is running.
What I want to do is to externalize these images into an application support folder so that when I want to modify them, I don't hav...
So I'm going through the matplotlib documentation and prepared to use the iPython interactive Python shell with ipython -pylab. However I get this:
Az's MBP:~ Az$ ipython -pylab
-bash: ipython: command not found
Did I fail to install iPython? I used easy_install as advised.
Any ideas?
Update
Found it in /opt/local/Library/Framework...
What is the equivalent of Quartz Window Services for Windows and X11? I want to be able to capture individual windows with their decorations, shadows, etc., completely independent from each other. Basically what the Son of Grab example is able to do. http://developer.apple.com/mac/library/samplecode/SonOfGrab/Introduction/Intro.html
Als...
I have tried two brands of ctypes (ctypes-opencv and another) wrappers for OpenCV (2.0 from svn head), can use Python and OpenCV in the Python console, but whenever I try to import the packages (from ctypes_opencv import *) from another Python file, I get the following error message:
OSError:
dlopen(/usr/local/lib/libcv.dylib, 6):
...
I am using PakageMaker.app to create an installation package for Mac OS X and I'd like to insert a web link to my site on the Introduction screen of the installation. Is there any way to do this because I have not find any instruction about it in the docs?
Thanks in advance.
...
I am trying to create a pure-Python application bundle for a wxPython app. I created the .app directory with the files described in Apple docs, with an Info.plist file etc. The only difference between a "normal" app and this bundle is that the entry point (CFBundleExecutable) is a script which starts with the following line:
#!/usr/bin/...
Since Mac virtualization is technically illegal on anything but a Mac computer, is it possible to use one of the Darwin distros as a platform to test applications meant for Mac OSX?
From the little I've read, it seems *Darwin and MacOSX have a very tight relationship, but I haven't really found any information on the internet about usi...
In Cocoa, is there any way to copy all the files in a directory without copying the directory's subdirectories along with them?
...
I am writing a wxPython application that remains open after closing all of its windows - so you can still drag & drop new files onto the OSX dock icon (I do this with myApp.SetExitOnFrameDelete(False)).
Unfortunately if I close all the windows, the OSX menubar will only contain a "Help" menu. I would like to add at least a File/Open men...
This question was close to mine, but not quite.
I have a Windows desktop and a MacBook Pro. I'd like to be able to keep my Eclipse workspace in my Dropbox folder. The problem is that many project settings change between platforms: references to JREs, JDKs, and other libs.
Every discussion I've seen of this problem seems to suggest taki...
I got a programm in haskell outputting utf-8 using the package utf8-string and using only the output functions of this package.
I set the encoding of each file I write to this way :
hSetEncoding myFile utf8
{- myFile may be stdout -}
but when I try to output :
alpha = [toEnum 0x03B1] {- α -}
instead of the nice alpha letter I got ...
I tried using the plugin from app Changes, but it doesn't work, it says "No SCM found".
Does anyone have a way to integrate Mercurial into Coda or know how to solve this problem?
...
Hello All,
I have a need to spawn a window that will hover just above my main window in a cocoa application. I want this main window to allow the user to enter some text in an input box. All is well until the text input box actually gains focus. The main window becomes "deactivated." This window is borderless and is a slightly custom sh...
I'm trying to figure out how to access the Show/Hide option that OS X automatically adds to the dock icon menu.
The problem is that no matter what I do to hide my app, the dock icon menu will always show Hide and only if I click that option does it switch to Show. I want to have my app toggle visibility using the Invoke event but if a...
I am trying to embed an AppleScript in a Python script. I don't want to have to save the AppleScript as a file and then load it in my Python script. Is there a way to enter the AppleScript as a string in Python and have Python execute the AppleScript? Thanks a bunch.
Here is my script:
import subprocess
import re
import os
...
I am writing a Java Swing application that needs to have a window receive mouse movement events when the application is not activated - think of it like a global always-on-top toolbar that animates when the mouse passes over it.
From my research so far, I have seen that the Mac Java JRE only passes events when the application has focus....
I would like to jump in learn C++0x, which has matured to a level I'm happy with.
Xcode on Snow Leopard 10.6 is currently at GCC 4.2.1, and the new features I'd like to try, like std::shared_ptr, lambdas, auto, null pointer constant, unicode string literals, and other bits and pieces, require at least 4.3 (I believe).
Ideally I'd use X...
I would like to use Apple's CoreFoundation library on linux and android. The source code is available here, but there is very little documentation on how to build it on Linux. As far as I could figure out, building is done through a script called BuildCFLite. I grepped for DEPLOYMENT_TARGET
./CFUtilities.c:#if DEPLOYMENT_TARGET_MACOSX ...