Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

What host types for configure? UNIX
I'm trying to get jed running so I have to install slang first. I finally got onto ADC and get the dev kit. The configure script dies at host type. What is host type? darwin? ppc? rhapsody? How can I get a list of acceptable host types?

Bordering on a dumb question I know, just can't find answer for this.

Clay

[answered in the comment]
  Post a comment  •  Comments (1)  
  • Currently 3.00 / 5
  You rated: 4 / 5 (4 votes cast)
 
[3,992 views]  View Printable Version
Adding additional highlight colors System
Jeff Frey provided a tip in this ResExcellence article on how to add additional highlight choices to the set provided with OS X.

The highlight choices are stored in a plist file buried in your System folder, and this file can be edited (most easily) in OS 9.0, and additional colors added by simply specifying RGB color values and a name.

Check out ResExcellence for the details!
  Post a comment  •  Comments (0)  
  • Currently 2.00 / 5
  You rated: 1 / 5 (6 votes cast)
 
[2,470 views]  View Printable Version
Apache virtual host setup tips UNIX
This is a first ... asking for help on my own site! I'm trying to set up Apache to run virtual hosts, and I'm having a bit of trouble.

If you have experience in this area and can lend a hand, please read the rest of this article for the details on what I'm trying to accomplish.

[see the notes for some helpful tips]
read more (348 words)   Post a comment  •  Comments (10)  
  • Currently 2.20 / 5
  You rated: 3 / 5 (5 votes cast)
 
[14,070 views]  View Printable Version
Resizing the dock System
In the interest of thoroughness, I thought I'd post this "world's most obvious tip" on using the dock. You can resize it quickly and easily by dragging on the vertical bar that separates the two portions of the dock - up to grow, down to shrink.

I'm sure every OS X beta tester on the planet knows this one, but it's going into the database so future new users will be able to find it!
  Post a comment  •  Comments (0)  
  • Currently 1.88 / 5
  You rated: 3 / 5 (8 votes cast)
 
[4,317 views]  View Printable Version
Using the 'cron' scheduler System
UNIX includes a program named 'cron' to handle the execution of tasks on a specified schedule, regardless of whether the user is logged in or not. Cron does this through a series of simple text files known as 'crontabs' which control the scheduling of jobs.

The cron daemon is used by the system for scheduled daily, weekly, and monthly maintenance, and can be used by users to run various programs at set intervals, such as to handle my site backup program as described elsewhere on this site.

Read the rest of this article if you'd like a simple overview of what cron is and how it can be used.
read more (493 words)   Post a comment  •  Comments (14)  
  • Currently 3.05 / 5
  You rated: 2 / 5 (19 votes cast)
 
[272,501 views]  View Printable Version
How to automate a remote backup UNIX
This past weekend, I took advantage of OS X's UNIX core to automate the database backup for this site. Until recently, I backed up the data by connecting to the ISP, launching the mySQL database program, exporting the data, then using one of a number of transfer programs (Fetch, RBrowser, etc) to bring the file back to my home machine.

Although this worked, it was quite tedious, and I would often forget to do the backup. Then another geeklog-powered site had a major disaster, and lost all of their articles (macosxapps.com, if you'd like to stop by and help them rebuild, it'd be greatly appreciated!). This was the kick I needed to find a better way to do my backups.

Read the rest of this article if you'd like a little insight into how I used some basic UNIX programs to handle this repetitive mundane task. This is fairly basic stuff for UNIX wizards, and I'm sure I could be doing this in a more advanced way, but it does demonstrate how the UNIX core of OS X can be put to good use.
read more (605 words)   Post a comment  •  Comments (5)  
  • Currently 3.00 / 5
  You rated: 2 / 5 (4 votes cast)
 
[25,095 views]  View Printable Version
More login window customization System
login panel
(Click here for larger image)

In an earlier item, links were posted to Jordan Miller's site on altering the images used by the LoginWindow app. If you want, you can carry this bit of fun to more of an extreme.

First, you will have to register as a developer and download the OS X developer tools (instructions are elsewhere on this site). Don't be afraid, you can do a bit of interesting stuff with Interface Builder if you are careful. You can change the size of the image, the colors/styles of the fonts, placement of the buttons, etc. You can see an example of this in the screenshot above. The original screen is at 1280x1024. The image is of the wonderful David Hockney work, Kyoto. It calms me down before I login.

If you'd like to know how to edit the login window extensively, read the rest of this article!

[P.S. -- Are there any Cocoa programmers out there that can tell me what loginwindow is doing that makes the purple background not be captured when I try to capture the screen content? Is it drawing the background directly to video memory? Is there a way to capture the whole shebang?]
read more (335 words)   Post a comment  •  Comments (7)  
  • Currently 2.33 / 5
  You rated: 1 / 5 (6 votes cast)
 
[11,674 views]  View Printable Version
jEdit 'find' history Apps
If you use jEdit (see Favorites box at left) as your text editor, one of the cool tricks it performs is to maintain a history of your search and replace calls. If you command-click in the search or replace box, you'll get a drop-down menu showing the last 15 or so items you've searched or replaced. This little trick saves a bunch of typing if you're looking for the same thing somewhat regularly.
  Post a comment  •  Comments (0)  
  • Currently 2.43 / 5
  You rated: 4 / 5 (7 votes cast)
 
[3,169 views]  View Printable Version
Removing Samba from the system UNIX
I installed Samba a while back to play with it, but I've since moved my OS X box to a non-Windows environment. I want to uninstall Samba just for general "system purity," but I can't find any uninstall directions. Any clues?

[Editor's note - See the comments for the answer]
  Post a comment  •  Comments (3)  
  • Currently 3.00 / 5
  You rated: 4 / 5 (4 votes cast)
 
[9,462 views]  View Printable Version
Open GUI apps from the terminal System
You can open any of the standard GUI applications (such as Mail, Explorer, Address Book, etc.) from a terminal session. Although this may not have great benefits in day to day use (why not just click the dock icon?), it does imply that you could write a shell script to open a GUI app, and then use the UNIX cron program to schedule the 'open' to happen on a shedule. If the GUI app you open then had some command it executed at startup, this might prove to be a worthwhile trick.

In any event, to open a command in the terminal, just type
open /path/to/application/bundle
For example, to launch the Calculator or the game, type one of the following:
open /Applications/Calculator.app/
open /Applications/GrabBag/chess.app
As I said, I'm not completely certain about why or how useful this is, but it is somewhat interesting. It even opens the application in the background, so you don't switch out of your terminal window.
  Post a comment  •  Comments (3)  
  • Currently 2.00 / 5
  You rated: 3 / 5 (6 votes cast)
 
[7,533 views]  View Printable Version