Macintosh Tips

Using Audio Hijack Pro to record radio stations

Audio Hijack Pro is an audio recording software for the Macintosh. It has the ability to schedule recordings.

Using Audio Hijack Pro and AAC High (Bookmarkable) format you can save 7 hours of audio onto a CD. (83.1 mb per hour) Which also means you can also store 56 hours worth of audio on a DVD.

Audio Hijack Pro cost only $32. This is a cheaper solution in the long run than purchasing a whole bunch of audio tapes at $1-$2 each. Each tape only holds 90 - 120 minutes and has to be flipped halfway through!

Example: Recording Rush Limbaugh for a week: 15 hours. It would take 16 ninety minute tapes costing at least $16. Using Audio Hijack Pro, it would cost about $3 for three CDs, thus AHP will pay for itself in the long run, not only in media cost, but also with storage cost.

Unix Commands

To get a listing of a directory use the following Ls command in Terminal:

ls - lhSR

This will give you a listing of all the contents in a directory sorted by file size. I find this useful when you want a printout of your directory structure. If you have BBedit, use the following commands:

ls -lhSR | bbedit

Release Renew IP on OS X

If you ever need to get a new IP address, you can run the following commands:

sudo ipconfig set en0 BOOTP
sudo ipconfig set en0 DHCP

Creating DVD Label Templates

Tip:
If you are using Photoshop to create DVD Templates, then importing them into DiscLabel, I would suggest making the template a square 121.65584mm in size @ 120 dpi.

I use Photoshop to create some fancy images labels, such as mixing Photos that are on the DVD, by using the 121.65584 demensions I can create the Disk label and Slim Disk cover at the same time!

CD Stomper CD demensions are 118mm, but you should have it a little bigger to allow for blead and some printer alignment issues.

If you want a download a Slimline CD Template for Adobe InDesign CS, check this out. The template has two non-printable layers so it will be easy to position your graphic. I find it much better than other templates that are available.

Moving Files using BBEdit

BBEdit contains a Terminal Editor, called Worksheet. One of the advantages of using this to quickly move a whole bunch of files. You may want to do this if you download lots of images or cleaning up a hard drive.

For example, lets say you have the following files:
home.php
news.php
news2.php
news4.php
Here's what I would do, using BBEdit Worksheet and Glossary. First create a new file and add this line:
#SELSTART#mkdir #SELECT#; mv #SELECT#*.* #SELECT# #SELEND#

Save this file with the name "copy" to the Glossary directory: ~/Library/Application Support/BBEdit/Glossary/

Open up a new Shell Worksheet, (Select All and Delete to remove all the content) Type in cd and drag the folder that has the images into the Shell Worksheet window. This should put the path name right after the cd. (Make sure there is a space between the cd and the path name.)

Select the line. The short cut is: [command -l], then hit Enter or [command-return]

Now lets list the contents of the directory, type in ls, select the line, and then enter.

Using the Glossary I provided above you should be able to highlight the name and then click on the Glossary name. So in the example above, I would highlight news. This will create the following line:
mkdir news; mv news*.* news

Now all I have to do is hit enter or [command-return] and a new folder is created and all the files starting with the folder's name will be put in that folder.

This is a cool trick and very handy to organized lots of files with a common name.

MYSQL on MacOS X

If you want to put the path to MySQL so you can access commands from the command line:

Put the following lines in .bashrc
PATH=$PATH:/usr/local/mysql-standard-4.0.18-apple-darwin6.8-powerpc/bin/ export PATH

BBEdit Translate Tool

In BBEdit there is a Translation box that allow you to quickly convert Text to HTML. This is very useful if you want to show some code on a web page.

You can find Translate in Markup > Utilities > Translate
There's also a keyboard command shortcut: Option - Command - T

This is handy if you want Entities such as > to be converted to >.

<TABLE>
<TR><TD colspan=2><b>Title</b></TD></TR>
<TR><TD valign="top"><IMG SRC="druge.abd"></TD>
<TD>Some fancy text</TD></TR>
</TABLE>

Starting and Stopping Apache

Here are the directory paths to start, stop and restart Apache on Mac OSX:

/usr/sbin/apachectl stop
/usr/sbin/apachectl start
/usr/sbin/apachectl restart