I'm using ant to build my project, and use the 'svnversion' executable to insert a version id into my sources for easy tracking of versions.
Running this ant file from the command line works, I've set my $PATH in .profile to include the path to svnversion and it works fine.
Now I try and run this same ant file from inside Eclipse and t...
As a programmer, I've been pretty much stuck in the Windows world. I invested a lot of time and effort learning MFC, ATL and, recently, .NET (mostly WinForms, I'm not interested in Web development for now). Since I don't have Parallels (and won't buy any software or hardware in the following months), I can't afford to run my old Windows ...
Following from this OS-agnostic question, specifically this response, similar to data available from the likes of /proc/meminfo on Linux, how can I read system information from OS X using Python (including, but not limited to memory usage).
...
I'm running Eclipse SDK 3.4.0 on Mac OS X 10.5.6.
Every time I try to install something new through "software updates", the message "The software items you selected may not be valid with your current installation" shows up.
So I'm going to uninstall it and re-install Eclipse.
Should I just erase the Eclipse folder or is there a way to...
What's the accepted procedure and paths to configure jdk and global library source code for Intellij IDEA on OS X?
...
HashTables/HashMaps are one of the most (if not the most) useful of data-structures in existence. As such, one of the first things I investigated when starting to learn programming in Cocoa was how to create, populate, and read data from a hashtable.
To my surprise: all the documentation I've been reading on Cocoa/Objective-C programmi...
Is there a way to run a local mpi job locally on os X leopard(10.5.6) with more than 62 processes. When I run the job with 62 processes, it dies
$mpirun -np 62 a.out
mpirun noticed that job rank 0 with PID 0 on node Macintosh-001D4F4BC6BC.private exited on signal 15 (Terminated).
60 additional processes aborted (not shown)
and when...
Does anyone know of any software that can be used to create Agile User Stories instead of doing it manually with 3M Sticky Notes. I'm trying to be more Green and a good application that I can used to collect the user stories and then create a nice document to hand to the client.
Thanks!
...
How can I draw a string centred within a rect?
I've started off with: (an extract from the drawRect method of my custom view)
NSString* theString = ...
[theString drawInRect:theRect withAttributes:0];
[theString release];
Now I'm assuming I need to set up some attributes. I've had a look through Apple's Cocoa documentation, but it's ...
Hey everyone.
I am in the process of writing a menubar icon for an app i'm developing. However the NSStatusBar class does not have a method which would make the icon draggable, via cmd+left mouse drag.
How do you make your menubar icon draggable with Objective-C code?
Thank you :)
...
ok, so I finally got a Macbook pro and to tell the truth I am astonished by both the architecture, speed, and os on this laptop. Mac OS X is a beautiful system, from the mach kernel up to finder and spotlight and speaking of spotlight, it truly blew me away when I just needed to execute this command to get all unix executables and ONLY ...
Refering to a previously asked question, I would like to know how to get the title of the current active document.
I tried the script mention in the answers to the question above. This works, but only gives me the name of the application. For example, I am writing this question: When I fire up the script it gives me the name of the appl...
Hi,
I would like to discover the machine architecture type of a big number of machines. I have the hostname of each machine. The machines have Debian 4 linux, SunOS 9, SunOS 10 or Apple Darwin. All are unix-like, but with minor differences.
I would like to know:
- architecture (x86, x86_64, ia64, sparc, powerpc...)
- processor type (in...
I have the following SWT test code:
public static void main(String[] args) {
shell = new Shell();
shell.setText(APP_NAME + " " + APP_VERSION);
shell.addShellListener(new ShellListener() {
public void shellActivated(ShellEvent event) { }
public void shellClosed(ShellEvent event) { exit(); }
public void shellDeactivated(...
Let's say I have an array in C++:
double* velocity = new double[100];
Using the GDB command line, I can view this array with the command:
> print *velocity @ 100
and it will print a nicely-formatted list of all the double values inside the array.
However, when using the Xcode debugger, the most it will do is treat this as a pointe...
Hi,
I am trying to port a windows project that includes boost 1.37 and wxwidgets to the mac. It compiles ok, but the linker gives me a "file is not of required architecture for architecture ppc" error for libz.1.dylib and the same message as a warning a few other libraries. I also get a "duplicate dylib" warning for libz.1.dylib.
The ...
I want to create something similar to TextExpander - a macro program that watches the keyboard for a certain combination of keystrokes, and then replaces the text you just entered with a snippet. What I mean is, you type "--expando" and it replaces it with "gee isn't this an expanded text snippet". I know you need to hook into the assist...
I was wondering, is there a best practice to write an OSX programm that copies or moves a file from one place to another?
is there some NSSomething method I can call?
Do I have to work with Input/Output streams?
Or is the best way maybe to just rely on passing commands to the finder?
Bonus question: How do I get percentages a la "co...
Hi,
I am trying to run Eclipse 3.4.1 on MacOS 10.5.6?
I think I am using java 1.5 when I run eclipse:
$ which java
/usr/bin/java
$ java -version
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)
And then I click eclips...
Problem in running Junit tests in eclipse 3.4.1 on Mac OS
I am getting this error:
'Lanuching AllTests' has encountered a problem.
Cannot connect to VM.
!ENTRY org.eclipse.core.net 1 0 2009-01-29 10:07:44.047
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.25
4/16|*.169.254/16 by an external source. This...