osx

How to direct tkinter to look elsewhere for Tcl/Tk library (to dodge broken library without reinstalling)

I've written a Python script that uses Tkinter. I want to deploy that script on a handful of computers that are on Mac OS 10.4.11. But that build of MAC OS X seems to have a broken TCL/TK install. Even loading the package gives me: Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: dlopen(/System/Library/Framew...

How come the unix locate command still shows files/folders that aren't there any more?

I recently moved my whole local web development area over to using MacPorts stuff, rather than using MAMP on my Mac. I've been getting into Python/Django and didn't really need MAMP any more. Thing is, I have uninstalled MAMP from the Applications folder, with the preferences file too, but how come when I run the 'locate MAMP' command i...

Detect in C if outputting to a terminal

I'm writing a C program for OS X and Linux, and I want to tweak the output based on whether or not it's going to a terminal. I know we've covered how to do this in a shell script, e.g. here: http://stackoverflow.com/questions/911816/detecting-the-output-stream-type-of-a-shell-script But how do I do it in a C program? ...

Unable to understand how Git's difftool configs are set

I needed to use in my old Git similar settings to the following to be able use difftool. The settings are not exactly the same, since I by accident removed my old .gitconfig. [merge] tool=opendiff [mergetool] tool=opendiff [difftool] difftool=opendiff I have an empty .gitconfig at Home. I can use still the opendiff...

Gem path used by rake different than system path on OS X

> gem env gempath /Users/davec/.gem/ruby/1.8:/opt/local/lib/ruby/gems/1.8 > head Rakefile require 'rubygems' puts Gem.path require 'rake/clean' require 'rake/testtask' require 'rcov' require 'rcov/rcovtask' > rake /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8 /Library/Ruby/Gems/1.8 rake aborted! no such f...

Automated deployment of files to multiple Macs

We have a set of Mac machines (mostly PPC) that are used for running Java applications for experiments. The applications consist of folders with a bunch of jar files, some documentation, and some shell scripts. I'd like to be able to push out new version of our experiments to a directory on one Linux server, and then instruct the Macs t...

Compiling Java code on the command line in Mac OS X

Really basic question I'm sure for some of you Java heads out there. I have a list of java files and jars that are required. On windows to build I have this batch file javac -cp .;opencsv-1.8.jar;mysql-connector.jar -source 1.4 -target 1.4 *.java jar cvf cup.jar *.class del *.class If I want to do the same thing on mac how would a ...

Good Mac Client/GUI for Postgresql?

Anyone found one of these? "Sequel Pro" is awesome for MySQL development on Mac, and they say they are working on Postgresql support (see discussion here) but I haven't found anything else in the mean time. pgAdmin III is horrible. ...

How to Set the Background Color of a JButton on the Mac OS

Normally with Java Swing you can set the background color of a button with: myJButton.setBackground(Color.RED); which would cause the button to be red. But on the Mac OS, this method seems to be ignored. The button just stays the default color. How can the color of a JButton be set on the Mac OS? ...

Is it possible to replace the Mac login screen?

Is it possible to replace the Mac OS X login window, /System/Library/CoreServices/loginwindow.app, with a custom login window application? (See my rational for doing so.) I'm afraid my Cocoa programming skills are rudimentary. I do find it interesting that, when I run probe CGSession (which is a undocumented utility that performs fast...

Possible problem with Mac OSX udpate 10.5.7 and swingUI

We just updated to Mac OSX 10.5.7 and now anytime I bring up any of my SwingUI based dialogs our application crashes. Literally everything was working fine I just made some good progress on the project and decided to take a break and install the update, I come back boot up the application and discover anytime a swingUI based element com...

Install PHPUnit and Pear correctly on OSX Leopard

Hey all, I've installed pear using this guide http://t-machine.org/index.php/2008/12/28/how-to-install-pear-on-os-x-105/ In /etc/php.ini my include_path = ".:/usr/local/PEAR" PHPUnit is installed under /usr/local/PEAR/PHPUnit using sudo pear install phpunit/PHPUnit(I get an error otherwise) Yet when I try execute phpunit I'm getting ...

Setting apple.awt.graphics.UseQuartz to false for applets with Apple's 1.5 update 4

Apple seems to have quart rendering on by default: http://lists.apple.com/archives/Java-dev/2007/Jun/msg00066.html However there are cases where this is attrociously slow. From a desktop app, I merely add: -Dapple.awt.graphics.UseQuartz=false This fixes the slow rendering. But there's isn't a place in the Java preferences panel to se...

Start using Java out of the box on Mac OS X.

My 10.5.3 install on a MacBook doesn't seem to want to build an example from Sun. It claims it can't find java.io.Console to import. This is annoying to me, and after much searching I can't figure out what I should do to fix it. I have installed the Apple Developer Tools. Here's what happens: macbook:~ dlamblin$ javac RegexTestHarness...

256 color mode xterm for MacOS X

Hi, Is there any 256 color xterm for MacOS x? Like the one described below? http://www.frexx.de/xterm-256-notes/ Thank you. ...

Why does Flash CS4 startup when Flex Builder 3 runs the selected project?

I'm using Flex Builder 3 Pro with flex_sdk 3.4.x and the latest Flash CS4 is also installed on Mac OSX 10.5.7. I believe the problem is related to the operating system and not Flex Builder Pro. However, I've set the default program for swf's to be a particular version of the Flash Player, located in flex_sdk's folder. Regardless of sy...

Using cscope on MacOS X

Hi, I have downloaded cscope 15.6 on MacOSX. But when i try launching it in MacOS Terminal or Tterm, the UP/DOWN key does not work. I can't move it from 1 query to another in the cscope interface. Only CTRL-P CTRL-N works. Can you please tell me how can I fix my problem? Thank you. ...

Porting a .NET app to the Mac

I have been asked what it would cost to port a .NET application to Mac. I don't have enough knowledge to even give a rough estimate. I have not done anything on a Macintosh above surfing the web, and that was 10 years ago. My guess is that we probably have to write it from scratch in java or objective-c. We are a Windows/Linux shop, a...

Mono on a Mac - what database to use?

I am getting started doing ASP.NET on my Mac using Mono, and I'm wondering which databases people have used in this setup. I'd be looking for something that is easy to set up, as this is just for fun and for continued learning of ASP.NET. ...

What to do when java.util is missing on a Mac

This is kind of weired but my Mac/Eclipse isn't offering me any java.util classes. I am still able to run the project which contains heavy use of (let's say) Vector, but I am not able to add a new Vector in the code anywhere. Eclipse isn't offereing me... I spent the last night reconfiguering the installed JRE's and build path etc. but...