mac

Remember window sizes and placement when unplugging and replugging second monitor.

Here's something that sucks: Plug in external monitor to laptop (Mac OS X Leopard in my case). Arrange your windows to have the IDE on one screen and browser on another. (Etc etc. Resize, rearrange, fuss, fuss, fuss.) Unplug monitor to run to a meeting, or whatever. Goto 1. I'd like to replace step 2 with "computer remembers exactly...

What would be a good pair programming set up using Macs?

If you were setting up a pair programming station what hardware, software and furniture would you include? Two assumptions; it would use Macs and be as inexpensive as possible. ...

Free OpenGL-accelerated GNUPlot-like tool for Mac OS X?

I am using GNUplot to plot large volumes of data that I want to visualize in 3D - e.g., using the pm3d option. This is very slow rendering in software - is there free software that will do this using OpenGL or something? ...

Python Imaging Library and JPEGs on MacOsX

I've gotten a hold of Python Imaging Library (PIL) and installed the PNG support stuff just fine. I am however having issues with theJPEG Library. The default setting for it is nothing but they suggest "/home/libraries/jpeg-6b". On the Mac that directory doesn't exist, the library is however installed fine, here's the output of the inst...

line-end agnostic diff?

I'm working on a mac, with some fairly old files. Different files were created by different programs, so some of them end with \r (mac) and some with \n (unix). I want to be able to run commands like diff, grep, etc on these files, but the ones that have \r are treated as one giant line. does anyone know of a version of diff, grep, etc...

Is there a Mac emulator or Objective-C environment I can run on Windows?

I'm in the process of learning Objective-c but would like to run code snippets via some sort of emulator on Windows — preferably web based. I want to understand Objective-C syntax and walk through common code examples, probably via some sort of console. I would probably leave any framework type learning for when I get onto my MacBook,...

I need a simple way to compile C++ code on a Mac intel, for the purpose of learning C++. I

I have a text book already and need a painless!! way to write and test the code ...

Change background of Terminal.app from the commandline

Is it possible to change the background color of Terminal.app from the shell? If so, how? ...

Cocoa application appears to crash when the main window is closed

My application seems to have acquired a slightly odd behaviour when it terminates. When I close a the main window using the standard little red button in the top left the application crashes. I haven't made any changes to the application that would obviously cause this problem. I'm struggling to debug the problem because the application ...

Remote access Windows Vista to Mac OSX?

Is there a means to do remote desktop access from Windows Vista to Mac Mini with OSX? Looking to be able to remote in to Mac in order to access system so no need to have it on a seperate monitor/kb to do testing and development. Anything similar to Windows Remote Desktop that can be used? ...

Quick creation of fresh OS install for software testing

What do you recommend for quickly creating images for testing a software product (that needs hardware access - full USB port access)? Does virtualization cover this? I need to be able to quickly re-image the system to test from scratch again, and need good options for Windows and Mac OS. ...

Running Cocoa app under otest causes dyld_misaligned_stack_error in Release mode

Hello, I have a problem which I have been struggling with for a while. I have a Cocoa library which acts as a wrapper for a C++ library. C++ library is tested using a set of BOOST unit tests. The tests run normally under both debug and release modes. In order to test the Cocoa wrapper I am using otest. Here is the strange part, the te...

How to detect which Space the user is on in Mac OS X Leopard?

Mac OS X Leopard has a virtual desktop implementation called Spaces. I want to programatically detect which space the user is currently on. Cocoa is preferable but AppleScript is acceptable if there's no other way. I've seen a couple of AppleScript implementations, but the techniques they used seemed a bit too hacky to use in producti...

PHP extension on a Mac

I wrote a PHP extension, and I'm trying to get it running on Mac's Apache server. It runs fine via the command line, for example: $ php -r 'dl("mylib.dylib"); I also tried building Apache from source, and it works perfectly when I run that (I set it up to use the same PHP as Mac's built-in Apache, too, so no difference there). How...

database modeling mac app for ruby on rails development

Hello, I am building web applications using Ruby on Rails and I would like to know what's the best tool for OS X to mock a new application from a functionality perspective and not graphic design. I would like to be able to get an idea of what the application will require in terms of resources before starting to write the code. Thanks, ...

How do I use p4merge from Xcode?

I would like to use the p4merge tool from Xcode in an SVN setup. Asking for trouble? ...

Mac OS X equivalent for TerminateProcess(GetCurrentProcess,0);

I am looking for a simple and uncatchable way to terminate the Mac port of my C++ application. In Windows I was using TerminateProcess(GetCurrentProcess, 0); What's the equivalent command I can use with Mac OS X / XCode / GCC? ...

Finding mac window id/number from firefox

Is there any way to figure out a firefox window's ID ("windowNumber") on mac OSX from within firefox? Either via JavaScript (unlikely) or XPCOM code. I can easily enumerate the NSWindows but I can't figure out a way to connect the dots between a firefox DOM and the platform specific window. For clarity: I need some way to talk to the Ja...

How do I find the user's 'Documents' folder with Java in OS X?

I'd like to create a directory in the user's 'Documents' folder, but so far I've only found out how to get the user's home directory: javax.swing.JFileChooser fr = new javax.swing.JFileChooser(); javax.swing.filechooser.FileSystemView fw = fr.getFileSystemView(); this.userDirectory = fw.getDefaultDirectory(); In Windows the above code...

Are Java Applets unable to communicate with javascript within Firefox on Mac OS ?

I have a java applet running in a browser that is calling some javascript functions and expecting a result from theses functions. This is working with the following configurations : Internet Explorer FireFox / Windows Safari / Mac BUT It's not working with Firefox on MAC OS The source of the problem seems to be the win.eval calls th...