Those of you who lust after the good old days of the text adventure may find this tip useful. The default installation of Mac OS X includes Emacs 20.7.1. Emacs is a very powerful tool, and includes the ability to retrieve/post news or mail, act as a calendar/diary application and has powerful text editing features. It also includes a few amusing games, most of which need to be executed within Emacs itself, except for one... dunnet. Using the following command at the shell will execute the game without opening up Emacs directly:
emacs -batch -l dunnet
For anyone familiar with text-based adventure games you will find most of the usual commands work (north, east, south, west, get, look, help, quit...). The following two commands allow you to save and restore your game to or from a specific file:
I know some of you know this, but I guess most of you who do know this will get it wrong most of the time.
When you are selecting items in the mailbox in Mail, you drag the mouse downwards or upwards; to drag it to the trash, you drag it sideways until the envelope icon comes up and then drop it on the 'deleted messages' folder.
[Editor's note: There are a multitude of ways to do both of these (select, delete) tasks in mail; these are just two of the more interesting ones. The behavior that seems most unusual to me is the up/down drag select; I keep expecting it to move the item!]
There's a big security hole if you're using Xmorph [Editor: a theme-switcher for OS X]. Look in ~/Library/Preferences/Xmorph Preferences. If you've authenticated once, you should be looking right at your admin password. The author insists that this is a "feature." Feature or not, no password should ever be stored in plain text. Another Real Basic app...
[Editor's note: See the comments - this 'hole' is completely optional and at the user's discretion. Seems like a reasonable balance of ease-of-use and security - you choose whether or not you'd like your admin password saved in cleartext.]
Demos Commander is a great shell utility for directory browsing and file management including viewing, copying, editing, and moving. This is a Unix app similar to Norton Commander for DOS. You can find the source for it at: ftp://ftp.cronyx.ru/cronyx/deco/deco383.tgz.
[Editor's note: I downloaded and installed this package, and it does exactly what Mike claims - it brought back instant memories of working in the the Norton DOS Commander back in the early 1980's! If you dislike typing 'mv' and 'cp' commands in the shell, this is a great utility! Read the rest of the article for full installation instructions. You'll need to have the dev tools installed.]
[UPDATE: I've made a pre-compiled binary version available on my mac.com home page for those that don't have the dev tools or don't want to muck around with compiling. Read the rest of the article for the brief instructions to get the pre-compiled binary working.]
A question on the Macaddict forums asked how to disconnect other users from an OS X machine using the terminal. One method, courtesy of an experienced UNIX-using friend of mine, is as follows:
1) Type ps aux | grep username, where username is the short name of the user you wish to disconnect.
2) Look for the shell process for the user in question in the 'ps' output. If your users use the standard (tcsh) shell, the process name will be -tcsh (tcsh).
3) Note the process number in the second column. For this example, assume it's 123.
4) Type kill -15 123, where 123 is the actual process number you found in step two. My admittedly poor interpretation of this step is that it attempts to nicely end the processes associated with the user. I'm sure that's not completely correct, but it is the general idea.
5) Type kill -9 123, where 123 is the actual process number from step two. This will end the user's session for certain.
I haven't tried this one myself yet, but I fully expect it will work. Are there other (easier, cleaner?) ways to log out a user from the terminal?
Alongside Quake3, Tomb Raider is probably one of the more popular Mac action games. I noticed tonight that Aspyr has released a demo of the new Tomb Raider Chronicles for both OS 9 and OS X. After downloading and playing with the new OS X demo, I have to say I'm impressed. I was never a Tomb Raider fan, but the demo runs very smoothly on my box (admittedly a high-end machine), even at 1024x768 in 32-bit color.
Although it's relatively simple (by editing three PDF files) to change the background of the dock, it still retains a dark-colored border line. There's been some discussion on various forums about how to eliminate the border, and it appears that this has now been accomplished!
'kfel' has posted TransparentDock, which will give you three different transparency settings for your dock, including completely transparent. Make sure you visit kfel's home page for some important notes about TransparentDock, as well as some links to other useful utilities he (she?) has written.
[Editor's note: Submitted by jpbjpbjpb on July 6th.]
I got frustrated when I realized my TiBook was not rebuilding its locate database, then realized it was because it sleeps over night when all the cron tasks are scheduled to run.
What it does
Tempus gets run from cron every 10 minutes, if the machine is awake. When tempus runs, it checks its database to find out when the last time each task was run. If the last run was longer ago than the time specified in the task, it runs the task.
To get tempus to work, you'll need to have python (and make sure its the unix version of python, not MacPython) correctly installed. You will also need to have the developer tools installed if you wish to use the easy installation option found in INSTALL.