Spiral Arm Logo

Jono's technical notes

Thursday, December 07, 2006

Switch

Not from Windows to Apple, from Apple to Apple - It has been two 1/4 years since I switched from windows / Linux. Now I've moved from my trusty 15" PowerBook G4 to a brand spanking new 17" MacBookPro, my god it is fast and the extra real estate is most welcome.

My only complaint would be the hard disk speed /size options, Its either small and fast or big and slow - I went small and fast 7200 RPM but only a 100 GB, after moving data I only have 30 GB free and it is less than a month old !

I can see me making rather a lot of use of my external drive.

Saturday, December 02, 2006

Port redirecting

This is probably obvious to everyone but me, however I'll put it here in case there is another who finds it helpful.

The following redirects requests from 80 to 8080, meaning you don't have to run your
webapp as root or have annoying urls such as http://localhost:1234/myapp.


Jono@moose:xinetd.d $pwd
/etc/xinetd.d
Jono@moose:xinetd.d $cat redirect
service www
{
socket_type = stream
wait = no
nice = 10
user = root
server = /usr/bin/nc
server_args = -w 3 localhost 8080
instances = 40

}