I'd like to compile a fortran code with gfortran so that it will work on both Mac OS X 10.5 and 10.6. Is there a way to do this? I tried compiling on 10.6 and get this message when I run the executable on 10.5:
dyld: unknown required load command 0x80000022
Trace/BPT trap
...
I have OS X 10.6 and am working on a website. When I look at the http.conf file in /private/etc/apache2/httpd.conf
it appears that the mod-rewrite module is loaded yet when I add a simple .htaccess file to the root of my site, it doesn't seem to do anything:
Options +FollowSymLinks RewriteEngine on RewriteCond $1 !^(index.php|index.htm...
I've run into trouble that makes me suspect there is a bad index file that needs to be cleared. The symptoms are:
Cmd+N will only find a subset of classes in the project
Trying to run JUnit test on a package won't find the test classes in that package.
Before suspecting a bad index I reinstalled IntelliJ 8.1.3, then I removed and re-...
I know of otool -tv, but I would much rather use the Intel syntax rather than AT&Ts, mainly to easily follow along in a book and not have to look over thousands of %'s and $'s.
I'd also appreciate any tips to where I might find gdb's config file.
EDIT: I forgot: I'm running a 64bit processor, but was wondering if it would be possible...
I need to debug a command line application with Xcode...
and I need to have the debugger launch my app with 'sudo'.
How do I tell Xcode to do that?
thx->adv
...
My current JDK on Mac OS (10.6) is set to 1.6 and I'd like to switch to 1.5.
A listing of '/System/Library/Frameworks/JavaVM.framework/Versions/' shows:
lrwxr-xr-x 1 root wheel 10 Nov 3 18:34 1.5 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 Nov 3 18:34 1.5.0 -> CurrentJDK
lrwxr-xr-x 1 root wheel 5 Nov 3 18:34 1.6 -> 1.6.0
...
My development environment (Mac OS 10.6) uses JDK 1.6 while production relies on 1.5. Upgrading the prod to 1.6 isn't an option at the moment so I followed the steps to install 1.5 on my machine. However, after I set the correct JAVA_HOME version to 1.5 with Grails 1.1, I get the error message:
2009-11-12 09:20:34,881 INFO [STDOUT] 09:...
I'm trying to control windows of a foreign OSX applications from my application. I'd like
to
1. move the windows on the screen
2. resize the windows on the screen
3. change the currently active window of the application
4. get the currently active window.
(And I'd like to do this either through ObjC/C/C++ apis).
What are the API calls ...
On MacOS (at least on SnowLeopard), the java command unconditionally adds an extra jar to the classpath:
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/.compatibility/14compatibility.jar.
This jar contains a version of Apache Xerces+Xalan, unrenamed. This can cause chaotic results for applications that are trying expl...
Hi!
I'm rewriting an old program to do some new stuff, and suddenly I get a segmentation fault error on the following line of code:
time_t seconds_since_time_begun = time(0);
Why, oh why?
Update:
I have included the time.h header file in my code, and when I tried what pmg suggested below, both variables were 4 in size.
When I tried...
Hi,
I'm trying to lock the system when my application starts up. I went with the obvious, executing CGSession -suspend but that disables the audio system. What I do now is invoking the screen saver and setting the preferences to "require password to unlock".
The problem here however is that I cannot detect when the screensaver unlock...
Hi again!
I have a client and server program where I want to send an entire struct from the client and then output the struct member "ID" on the server.
I have done all the connecting etc and already managed to send a string through:
send(socket, string, string_size, 0);
So, is it possible to send a struct instead of a string throug...
How do I make a temporary backup of the local datastore in the AppEngine SDK for MacOSX
And where are the files located?
...
I'm trying to build a standalone service for Snow Leopard. It builds just fine, it shows up in the services menu, but when I try to run it, the executable is not recognized (it reports a Bash error 126 in the Console).
I built it out of a Cocoa bundle template. Is there something special in building bundles that I may have missed and ne...
Hi!
I have a server and a client program (both running on the same machine). The client is able to send a struct to the server with members such as "ID", "size" etc. Then I would like the server to send the ID-member (just an integer) back to the client as an ACK for validation, but I just can't figure this out despite being able to sen...
What I want
I'm developing a little app to force me to only work at certain times of day - I need something to force me to stop working in the evenings so I can be more effective in the day.
The option within OS X to shut down my machine at a certain time is too easy to cancel. And you can always log back in afterwards.
I want my app ...
OSX 10.5 comes with Ruby 1.8.6 I believe, but I see a lot of tutorials that recommend installing the latest version of Ruby from source. I've done this in the past and it's caused minor issues down the road if I install something which expects Ruby to be in the default location and it's not (Phusion Passenger pref pane, for instance). ...
Is there a "talking head" library for Mac OS X / Cocoa / Objective-C? Specifically the ones that simplify translating spoken text into visemes / facial expressions? Microsoft has "Microsoft Agent" as part of their Text to Speech API, does the Mac has a worthy competitor for this feature?
...
Hi, I want to create a plain BSD library in Mac OS X which provides a plan C wrapper for Objective-C bases system APIs (like the CoreLocation API).
Although I've written and gotten this to compile, it won't load from DLOpen in other programs. I used the "Cocoa library" project type, because when I used the normal "BSD Library" project t...