While trying to help me debug a glitch on my particular DragThing installation, James Thompson pointed out a nifty little tool built into OS X but not enabled by default. The tool is called "Crash Reporter," and it's quite easy to enable.
Open a terminal session, navigate to /etc, and edit (in vi, emacs, or pico) hostconfig. Add a new line (at the end, if you wish) that reads
Save the changes and exit the editor. On your next reboot, the Crash Reporter will be active. To make it work immediately, type
in the terminal window [Note: I haven't tried this myself, and a posted comment seems to indicate that it doesn't work; a reboot may well be required.]
Once activated, when an application crashes, you'll get a dialog box with the option to write details to a log file. If you say yes, details are written to a log file kept in /var/log/crash.log. Some of the info there can be useful, if not to you, then to the author of the program in helping them debug the problem.
Webmonkey has posted an in-depth article covering Apache, PHP and mySQL on Mac OS X. It's written with a UNIX novice in mind, and walks you through the steps required to get each application running. It also includes an overview of Tenon's iTools.
A good read, and helpful if you're just getting started with this stuff.
There's a new thread on the MacNN forums that discusses the how-to's of editing the Mac OS X extras.rsrc file, which controls the overall appearance of the system. The first post is a nicely detailed how-to, and there are a couple of clarifying follow-ups.
You'll need a copy of Theminator, which is no longer actively distributed, but can probably be located on the net with some sleuthing.
So head on over to MacNN and give the article a read if you're interested in modifying your system's appearance. Note that anyone distributing modified extras.rsrc files has been hit fairly heavily by Apple legal, so you should plan on keeping your modifications to yourself.
Another great reason to use OmniWeb -- OmniWeb's View Source is also an HTML editor!
The source pane is fully editable. Save will save over a local file and will make a new local file if it the page was serverd from a web server. Additionally, Store will store it back onto the server using WebDAV.
The kicker is that you can play around with remote files that are not your own VERY quickly.
Find any page on the web, View Source, make a few changes, and hit the Redisplay button. Voila! You will see your changes back in the browser in context with the rest of the original page. Pick apart layouts tricks at light speed...
If you'd like to have an application running, but without a dock icon, there's a way achieve this by modifying the application's plist file. Read the rest of this article if you'd like the (fairly simple) instructions.
NOTE: This one goes in the clearly 'experimental' category. I have not tried this myself yet, but the source (the X4U mailing list) is generally good, and it seems to make logical sense. Use at your own risk!!
How can one kill a root-owned process? I installed mysql and have it loading itself automatically on login. However, I need to kill it to reconfigure it and I realized I can't do so. In process viewer it shows that it's running, and that it's owned by root, but it won't let me kill it because I'm not root. If I use terminal and use the su command to become root, it doesn't show the mysqld process, only ps and tsch.
Any ideas how to either kill the process from within OS X or how to switch to the root user in terminal such that I can see the processes?
I recently installed OS X and it's great. I installed apache, php, and mysql so I can develop and test locally. I love it, but I've been missing one thing. A good text editor.
I've downloaded pepper, jEdit, and several others. But I still preferred the classic app BBEdit. Pepper was great, but it doesn't have support for PHP and it costs $45(unless you can handle waiting 10 seconds every time you save). jEdit is even better. It has syntax coloring and everything. However the interface lags and the lack of drag and dropping files into the app sucks. Maybe your experiences were better, but I ended up going back to TextEdit. But it has it's problems too. Some files can't be opened to text and I just don't like it for what I'm doing.
Anyways I was looking through the developer examples and messing around with Project Builder and decided to try open my php files with it. It's great! There's no syntax coloring for php, but there's many other useful features. I even created a project file for my php program that I'm working on. Then I have access to any of my files with a click. The find feature is really good and lines can be found by cmd-L since it doesn't show line numbers. I like the indenting features too. If your doing any type of web developing and don't have a good text editor, try this.
Now only if Apple would add support for more programming languages.
I really loved the "Connect To..." alias from macOS 9 and below. Unfortunately, Apple neglected to put something like it in OS X. I decided to take matters into my own hands and created an OS X script that opens any URL as specified in a dialog box from OmniWeb. You can download the working applet, or the source if you wish @ http://homepage.mac.com/the_hoffmans/
email me at email@example.com if you like it!
If you're like me, you are lost without the beloved Korn shell. Oddly enough, it's not included with OSX (of course, that statement most likely points out my lack of knowledge in BSD).
Anyway, I found 'pdksh', and was able to successfully compile it on my OSX 10.0.1 system.
I had to tweak a few things, such as add a .profile to my home directory. You also need to use the Terminal Preferences to change the shell of the shell (?) to /usr/local/bin/ksh. I also updated /etc/shells, although I'm unsure whether or not that was needed.