Archive - Mar 12, 2007

Date

Check your code regularly so you can make updates

in

Sometime ago, I made a function to make any angle in the form between 0 and 360
here is the function

function normalize_angle($n){
	while($n >= 360){
		$n -=360;
	}
	while($n < 0){
		$n +=360;
	}
	return $n;
}

I wasn't going to do any update with it until I found loops are slow. Especially when the angle are huge

function normalize_angle($n){
	if($n >= 360){
		$n -= 360*floor($n/360);
	}elseif($n < 0){
		$n += 360*abs(floor($n/360));
	}
	return $n;
}

Kinda faster. So I started using that for few moment.

Signature ads

Signature around forums and communities influence user in many different aspects, one of the most important one would be encourage the viewers to click the link in the signature(Ad!). I believe the 5% of my click in forums are on signatures, especially when the post is wonderfully forged. Usually the link that suppose to promise a land of
artistic web page pursuit me to say "WTF" and close the window, but I can't denial the signature is a great place for ad placement.

Honey Pot that kill bots