I'm trying to set up Python's CGIHTTPServer on Mac OS X to be able to serve CGI scripts locally, but I seem to be unable to do this.
I've got a simple test script:
#!/usr/bin/env python
import cgi
cgi.test()
It has permissions -rwxr-xr-x@ and is located in ~/WWW (with permissions drwxr-xr-x). It runs just fine from the shell and I ...
I'm working on OS X Snow Leopard and need to programmatically generate an MD5crypt() password to match with passwords generated on Ubuntu 8.04 (crypt() on that platform uses MD5 if the salt starts with $1$ because it uses the crypt() found in glibc2 which has that functionality).
There is a md5crypt routine on OS X, but unfortunately, i...
I am wiling to pay good money for it if it has all the most common features and polished look. Also, I've seen gitx and I am asking if there are any other GUI clients besides gitx.
...
I have a text file with two non-ascii bytes (0xFF and 0xFE):
??58832520.3,ABC
348384,DEF
The hex for this file is:
FF FE 35 38 38 33 32 35 32 30 2E 33 2C 41 42 43 0A 33 34 38 33 38 34 2C 44 45 46
It's coincidental that FF and FE happen to be the leading bytes (they exist throughout my file, although seemingly always at the beginnin...
Hey,
I'm a long time GNU/Linux user. Even though OSX is much like GNU/Linux is many ways, it differs in some. For example, when I install Firefox I expect to be able to run firefox in a shell to start it. But not in OSX.
That gives me some trouble when running Emacs batch scripts. Lets say I have this script:
#!/usr/bin/env emacs --s...
Possible Duplicate:
Whats a good IDE for Python on the Mac?
Hi,
I'm going to start a quite big python project development under Mac OS X. What is the best python IDE for Mac OS X -recommended freeware-.
...
How can i get the NSMenu or NSMenuItem for the application menu (the one in the menu bar next to the apple menu). It seems to be automatically created and independent from the NSMenu i set via NSApplication setMainMenu.
By the way: I'm building my complete application without XCode, so please no InterfaceBuilder tips.
PS: MacOSX 10.5
...
In a recent question it was noted that on OSX running sed on a non ascii file gave strange results. For instance if you do (/usr/bin/cal is a random binary file)
sed 's/[^A-Z]//' /usr/bin/cal
sed will remove all of the printable characters other than A-Z, but many nonprintable characters remain. If however, you do
LANG='' sed 's/[...
In the opengl section of Hillegass' otherwise fine book, we're given sample code for drawing a 3d object on a view. Two people at the book's discussion forum at http://techstra.bignerdranch.com/ have reported that the drawing code runs, but fails to draw the object. I'm getting the same result, and the only discussion I've found resolv...
There's http://www.amazon.com/gp/product/0321278542/ but it looks a bit dated. Specificaly, it talks about bits that are no longer in use (powerpc bootloader for example) on modern machines.
So, my question really is: is there any other book, as comprehensive and detailed as this one?
...
In interface builder for xcode 3.2 NSWindow had property content border to set something like a 'footer' for the app, does anyone know where is it in xcode 4 interface builder?
Thanks for help.
...
In my Mac OS X application, I would like to log the user's graphics card driver and model. What is the appropriate API to use?
...
I load an image. The image loads fine (140x40)
I create a window (700x500)
I create a subView (700x40), located at the top of the window.
when i draw the subview, i checked with a debugger. the dirtyRect is indeed 700x40 in size. I draw the image onto that rectangle, but it draws only as (~530x40), not the 700x40, leaving the top right ...
I have a user complaining that my app is taking a lot of CPU time when it should be idle. This is a Cocoa app on Mac OS Leopard. What I would love to do is have a background thread periodically grab stack traces of the main thread and log them. Alternatively, if I could have him run a command line program to grab all the threads' stacks ...
Hello, I was just wondering how someone would go about finding all the applications that are installed on Mac OS X 10.5 using preferably applescript and output all their application names to a text file.
...
I've successfully installed native Oracle on 10.6, and can successfully compile and execute the example Pro*C code using the 'oracle' account (i.e. the same OS user that the software was installed under). That was a fun job. It even works with clang.
However, in our normal development environment, the source, build scripts, make files, ...
Wondering what the best method is for communicating between a 10.5/10.6+ System Preference Pane application to our php5 web application.
The Preference Pane application that we've yet to develop will allow the client to authenticate to our online services, then allow them to control how their local client is backed up to our online back...
What's the easiest way to sort a comma separated list of values in Mac OS X:
Input: "a, b, aaa, bc"
Output: "a, aaa, b, bc"
I'd like to do this from the terminal so that I can pipe the output to another command.
...
Is there a pre-existing XPCOM guy that will let me interrogate a .plist file from Javascript, or do I need to use nsIFile and parse the XML myself?
(For background, there is a version number in a directory structure I don't control that I need to read from a .plist in order to be future-proof.)
...
Hi guys,
My Intellij installation refused to start up on my macbook which is running snow leopard. In have reinstalled it and yet it refused to start up. i also set explicitly the Java_Home inside the .profile.
All it does is bounce and then fades away from my dock. Does any one have an idea what might be wrong.
Cheers
...