November, 2007

Removing ^M from your Mac text files

Here are some tips for removing those troublesome carriage return characters from Mac OS text files:

Using perl

perl -pi -e 's/\r/\n/g' <filename>

ASP redirect script

PHP (or non-ASP) developers: if you ever need to create a redirect script on an IIS server using ASP, just create a file called 'index.asp' or 'default.asp' and add the following line:

Apple OS X 10.4.11 update problems

Some people are having problems with the latest Mac OS X 10.4.11 update.

What's Facebook doing with our data?

Facebook is great. You can find out what your friends are up to, hook-up with long-lost university chums; I've even hired someone through it.