Restrict the speed of a port OS X

If you do local web development, sometimes you need to check to see how fast your site works/downloads. As you're local to the site, it's very fast. This is where ipfw can help.

ipfw can be used to limit bandwith on specific ports:

sudo ipfw pipe 1 config bw 15KByte/s

creates a pipe that only allows up to 15KB/s to go through.

sudo ipfw add 1 pipe 1 src-port 80

will attach that pipe to the outgoing traffic on port 80, effectively limiting the outgoing traffic of the web server.

sudo ipfw delete 1

will remove the pipe from the port. 

Audiobooks and a rant

I generally have a problem switching my brain into hibernation when I go to bed, so to solve my problem, I listen to audiobooks. I've been doing this for well over a year now and I've not had a problem falling asleep since.

After a recommendation from a friend, I started on the Lee Child books (the Jack Reacher series) and loved them. I was disappointed when I'd listened to them all. And before anyone says it, I know Lee Child has just brought out another Reacher novel ("61 Hours").

Now I'm hooked on the Harry Bosch series from Michael Connelly. Currently I'm on book 4 of the series "The Last Coyote" and at the moment, Bosch is trying to rebuild his house after a quake.

Abridged or unabridged? I hear no-one ask me. This is one of my main issues, I got some of my unabridged books from audible.co.uk but most of the books are abridged (therefore avoided from Audible). However, pop over to the US version of Audible and the unabridged ones are available, but I can't buy them as I'm based in the UK. What gives? Is my money not good enough for them? Surely they can sell the unabridged version here?

Makes me mad (amongst a million other things). I've now got to wait until "61 Hours" hits the UK shores in unabridged format. Can't stand abridged. I want the full thing.

SSD = Super Quick

Today, I replaced my system drive in my Mac Pro with a Kingston Solid State Drive. The XBench stats show the drive to be twice as fast as the drive it replaced. Yes, this now means my system drive has a lower capacity, but that doesn't matter. All my stuff is saved out to a fileserver anyway.

The verdict - love the speed. Opening Photoshop now only takes 2 seconds - that's fast!