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

Using UNIX aliases to save keystrokes UNIX
If you're a complete beginner to UNIX (as I still consider myself), you can use something called aliases to save yourself a lot of typing at the command line.

In the Mac OS, an alias is simply a pointer to another file. In the UNIX world, an alias is similar in concept, except that it's a command that points at another command. There are a few pre-defined aliases in the tcsh shell (the program that runs when you open a terminal). You can see these by typing
at the command line. One of the more useful pre-defined aliases is ll which replaces ls -lag for complete file listings.

Although the pre-defined aliases are useful, the real power is in creating your own aliases for your often-used commands. If you're new to UNIX and you'd like to learn about aliases and how to use them, read the rest of this article.
read more (363 words)   Post a comment  •  Comments (4)  
  • Currently 2.67 / 5
  You rated: 5 / 5 (6 votes cast)
[21,809 views] Email Article To a Friend View Printable Version
Building the newest PHP and Apache UNIX
I just wanted to let everyone know that I have successfully built Apache 1.3.17 and PHP 4.04pl1 as a DSO on Mac OS X Public Beta 1H39 (AKA Darwin).

The problem was that the configure script for PHP was trying to create a file in the ./pear directory named 'pear' where a directory named 'PEAR' already exists. Of course, since Mac OS X uses the HFS+ disk format by default (case preserving, case insensitive) this is not allowed. Read the rest of the article if you'd like to see how to modify the configure file to successfully build the latest versions of PHP and Apache.


[Editor's note: This process requires the developer's tools, as you'll need the compiler to build the applications after editing the files.]
read more (142 words)   Post a comment  •  Comments (0)  
  • Currently 2.50 / 5
  You rated: 5 / 5 (4 votes cast)
[4,052 views] Email Article To a Friend View Printable Version
Gamma adjustment under OS X Apps
Marcel Bresnik, author of PrefEdit, has released TinkerTool for OS X. This nifty program lets you adjust a number of things in OS X which were previously difficult to do and required command-line editing. These include disks and trash on the desktop, showing all hidden files, using the blue triangles and hidden apps effects in the dock, and a slew of other things including changing the default system fonts.

Most interesting to me, though, was the presence of a gamma adjustment tool for OS X. For those of you that find Aqua "just too darn bright" or "just too darn dark", you can finally adjust the gamma! Personally, I find it to be just a bit too bright, and I set a slightly darker than standard gamma. Wow ... I thought it looked good before, but now it looks really good!

TinkerToy is free, and highly recommended if you want to tweak your PB system. As always, anything it does bad to your system is not my responsibility! I've only been using it for the last 15 minutes or so, but no problems yet.
  Post a comment  •  Comments (1)  
  • Currently 2.71 / 5
  You rated: 5 / 5 (7 votes cast)
[10,244 views] Email Article To a Friend View Printable Version
Backing up the system System
Is is possible to tar the active OS X system (as with LinuxPPC)?

Has anyone determined which files/directories are best to backup in case of a system corruption? By this I mean if you just "tar czf / backup.tgz" you get all disks and loads of stuff you could easily reinstall.

I would like to move my install to a new machine, which I have a clean install of OSX on, but not reconfigure everything as I have spent a lot of time setting things up! I would like to take my tar from the old machine and install/overwrite the new install. Any ideas what will happen?

I have seen the discussion about re-blessing the System, but I don't think it applies if you are going straight from OS X - OS X.


[Editor's note - See the comments for a discussion on the options...]
  Post a comment  •  Comments (6)  
  • Currently 2.29 / 5
  You rated: 4 / 5 (7 votes cast)
[3,615 views] Email Article To a Friend View Printable Version
The 'links' text browser and why you might want it Apps
links screenshot

Although 99%of the world browses websites with some version of a graphical client, there can be times when it could be useful to have command-line access to a website.

Imagine a scenario where your home machine uses DSL or a cable modem, and is "net-connected" 24 hours a day. You're at the office one day, and notice a site that has a file you want to download, but it's only available via a web browser. If you've enabled remote connectivity to your home box (via telnet or SSH), you could connect to home, launch a text-based browser, and start the file download on the home machine. There are also command-line utilites that can do this for you (cURL is one of them; there's an OS X version here), but the text-browser is also useful as a, well, browser!

links is an excellent text-based browser that works very well in OS X. The small screenshot at the top of this article is of links displaying this site; here's the full-size screenshot. Read the rest of this article if you'd like instructions on downloading and installing links for OS X. You could also use lynx, another text browser; search this site on 'lynx' for more info.
read more (251 words)   Post a comment  •  Comments (5)  
  • Currently 1.63 / 5
  You rated: 4 / 5 (8 votes cast)
[16,251 views] Email Article To a Friend View Printable Version
Installing and using Apple's Developer Tools Desktop
This weekend, I set up a second OS X 'experimental' partition on my hard drive. I'm using the new partition for mySQL and PHP work (for this site), as well as anything that I feel is too risky for my main OS X partition. One of those things is Apple's Developer Tools.

I've held off on this 70mb download for quite a while, as I have no real need for the development tools, and I was a bit short on drive space on my main OS X partition. Today I finally downloaded and installed the tools on the new experimental partition. It was definitely worth it, just to see some of the nicer demo apps they included. One of them, EnjoyEffectMovie was used to create the fire QuickTime movie from which the screenshot at right was taken. If you have some interest in the tools, and you have a fast connetion and some drive space, I'd recommend the download. Read the rest of this article for instructions on obtaining and installing the tools,and a brief description of some of the more interesting (to a non-programmer!) included programs.

DISCLAIMER: You can probably do Very Bad Things to your system with the developer tools! Any damage you cause is not my responsibility.
read more (370 words)   Post a comment  •  Comments (1)  
  • Currently 2.00 / 5
  You rated: 3 / 5 (5 votes cast)
[8,949 views] Email Article To a Friend View Printable Version
Neat features Apps
While messing around with the terminal today, playing with transparency, size and colors, I noticed a couple of nice design elements.

First, as you resize the window, ithe window title displays the size of the new window ... 80x24 becomes 92x24 to 103x24 to 120x40. When you let go, it returns to the original display.

Second, and I guess I just overlooked this earlier, you can open an Inspector Window for any open terminal session. This gives you access to nearly all the same settings as you get in the prefs panel, but you can now set them on a per window basis. I'd always just mucked around with the color and font control panels, but the Inspector lets you do things like change the window title, specify the scrollback buffer size, etc. This isn't a hidden feature; I just overlooked it in the menus earlier.

And if you haven't tried it yet, play around with the terminal transparency hack - you can make some very nice looking (yet still functional) semi-transparent terminals.
  Post a comment  •  Comments (0)  
  • Currently 2.13 / 5
  You rated: 1 / 5 (8 votes cast)
[5,840 views] Email Article To a Friend View Printable Version
Zoom windows to full screen System
If you click the expand icon in OS X (the green "+"), it's default behavior is "zoom to fit," where it will zoom the window only as large as needed to fit the text. 'applenut' over on the AppleInsider OS X forum pointed out that if you hold down option and hit the zoom button, the window will zoom to fill the screen.

Cool trick, and I hadn't even tried it in three months of use with the PB. Well-behaved apps (I tried IE 5) will leave enough room at the bottom of the screen so that you can reach the bottom edge of the window without activating an auto-hidden dock.
  Post a comment  •  Comments (4)  
  • Currently 1.67 / 5
  You rated: 2 / 5 (6 votes cast)
[11,264 views] Email Article To a Friend View Printable Version
Another liquid button maker Apps
A while ago, I wrote about a Japanese-language Aqua button making program. Over on the MacNN forums, 'trunks_essex' pointed one out in English. This one's from a company called Micahsoft, and you can find ButtonMaker (and some other RealBasic programs) on their site.

ButtonMker is quite easy to use (having it in my native language helps greatly!), and it includes other options in addition to Aqua. The author acknowledges a bug when trying to save buttons of a certain height, but I didn't run into it in the ten minutes or so I tested the program.

Just a pointer to yet another way to put some Aqua in your world!
  Post a comment  •  Comments (1)  
  • Currently 1.50 / 5
  You rated: 2 / 5 (8 votes cast)
[8,141 views] Email Article To a Friend View Printable Version
Scripting ftp transfers UNIX
If you often transfer the same file to/from an FTP server (or do anything repetitively with an FTP server), you can use UNIX and a simple script to automate the process. Although similar things are probably possible with grapical clients, this will teach you a bit about UNIX and a very basic shell script.

I use two such scripts on my OS X box. Since my home machine is occasinally out of OS X, that means that my family's OS X hosted website is not accessible. Before I shut down OS X, I upload a "Our server is down" page to my ISP-hosted site. When I return to OS X, I upload a "Our server is up" page. This way, our family and friends can tell easily if the site is up or not. I manage both these tasks with a double-click on an icon in the finder, thanks to these scripts.

This tutorial requires some basic understanding of the command line and an OS X text editor such as vi or pico. Read the rest if you'd like to see how to set up a simple automated FTP script.
read more (547 words)   Post a comment  •  Comments (5)  
  • Currently 3.00 / 5
  You rated: 3 / 5 (4 votes cast)
[16,030 views] Email Article To a Friend View Printable Version