I've been trying for 2 days to compile the latest postgresql after having installed "readline-4.0.2" (if you use the psql utility you'd know why I want the readline support). Anyway, after having installed readline-4.0.2 postgresql could never complete the 'make' process, all sorts of errors. On a last ditch effort, I downgraded readline to 4.0, and postgresql compiled just fine, and I'm one happy camper now.
This tip allows for easy editing of files such as ~/.tcshrc or ~/.bashrc, so you can click an icon in the dock, and the file will open in TextEdit. Read the rest of the article if you'd like the step-by-step instructions.
For those of you fortran heads, here's good news. FSF GCC now officially supports Darwin/OS X, meaning that you can grab latest source at gcc.gnu.org and build a version of gcc, including fortran (g77), on your OS X box.
Although I don't personally use fortran, this would be a breakthrough for scientists and engineers who use Macs and have *a lot* of fortran libraries. Read yourself Stan Shebs' comment at darwin dev list.
If you're new to UNIX in general, and have only used programs like Fetch or Transmit as FTP tools in the past, you may find the command-line version of FTP quite daunting. There are times when you might want to use this, though, such as when remotely connected to your Mac, and you'd like to download some files locally.
Over in this MacFixit Forums thread, 'JohnBaxter' posted a nice overview of key commands to use when running FTP in a terminal session.
As you get more adventurous in terminal mode, you may wish to explore UNIX commands to get your work done. There's a command called "apropos" that searches all the man(ual) pages for keywords, and voila, a list of appropriate commands appear.
BUT - OS X's "apropos" doesn't work until you establish a "whatis" database. How? Simple:
1) Start a terminal session and get into su mode (root).
2) Type the follow line exactly:
3) Wait several seconds for the root prompt to appear, and quit the terminal session.
Now, you can start a terminal session as yourself, and the "apropos" command will work. For more information about apropos, type "man apropos".
[Editor's note: I published a related tip quite a while back, but I'm sure not everyone has dug through all the pages, so I thought this was a good chance to bring it up again. Note that the makewhatis will also run if you leave your machine on regularly; it's part of a scheduled task that runs (if I recall correctly) weekly.]
If you create a PHP page in Dreamweaver or similar Macintosh application, any bugs will be reported as being on line 1, no matter where they are. This is because the PHP parser is expecting Unix style line breaks. Since it doesn't find them, it thinks the entire page is all one line. This doesn't hurt the running of the PHP code, but it does make it very hard to find any typos or other bugs in the code.
The easiest way to fix this is to open the PHP document in BBEdit and Save As. Click on the OPTIONS button, and select Unix line breaks.
Also, if you are looking for a good SQL tutorial, with a live SQL server, check the following URLS: