Archive for the 'OS X' Category

Convert Windows Line endings to Unix / OS X

After reading a Windows user’s nightmare of having to convert hundreds of files, I thought I’d post this solution. If you need to convert Windows line endings to Mac / Unix ones, you need to execute this command in Terminal. (This solution doesn’t add extra line-endings that some do)

$ cd /directory/with/your/files
$ find . -type f […]

Remove the iTunes DRM with Roxio Toast Titanium

Apple allows you to burn a particular playlist to a CD a maximum of 7 times. You can use this method to remove the DRM and so play music that you yourself purchased on a player of your choice. However, if you don’t want to ‘waste’ a CD in the process, and you still own […]

Set up multiple Apache virtual hosts in OS X

When you are developing websites in OS X, you’ll often want to be able to have a unique test domain for site. For example, my testing domain for this site on localhost is
madross.lh [the lh for localhost, use anything you like]
For j-cafe.com , I use j-cafe.lh
To do do this is fairly straightforward. You just […]

Miscellaneous Terminal Basics

This is a random list of useful stuff for Terminal beginners. I’ll just add things as they come to mind.
TextWrangler
Rather than trying to faff around in Pico or vi, you can use the excellent and free Textwrangler from Barebones.
Want to edit an invisible file like .profile? Just drag a directory onto TextWrangler in the dock, […]

Speed up Azureus in OS X

This is about as basic as it gets. The BitTorrent client, Azureus, can be a memory hog if you leave it visible. Simply do Command-H whenever you want to switch out of it. I find the CPU dropping from 20% to 3%. Your mileage may vary.