Author Archive for Gazzer

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 […]

BBCode Spam Plugin

If you get a lot of spam with multiple BBCode links this will stop them. If it finds [/url] anywhere in the text it’ll give the poster a chance to modify the post and repost it. It’s unlikely that [/url] is required by a legitimate poster so it won’t impact your users too much.
All you […]

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.

Remove the iTunes DRM

A look at the possible methods of removing the DRM in iTunes, advantages, disadvantages, and their legal implications
Part 1: the ‘Apple’ method and hints to avoid major loss of quality,
Part 2: removing the DRM without loss of quality

Note: this article is only about music that you have bought and own.
DRM? What’s not to hate. You […]

Removing the iTunes DRM (part 2)

In part 1, we explained how to remove the iTunes DRM using a method that is OK by Apple, and is 100% legal. This method has disadvantages in that there is a reduction of quality and it’s time consuming. If that doesn’t bother you then that’s probably the way to go.

However, in an ideal world, […]

How to size text with CSS

A guide to resizing text with CSS