Archive for April, 2008

I’ve finally understood metal

Saturday, April 19th, 2008

It’s an excuse for skinny long haired men who can’t dance, sing, or play musical instruments to become “cool”!

PANIC!

Friday, April 18th, 2008

It’s exam season!

Exams week 1

Exams week 2

Pseudocode FizzBuzz

Wednesday, April 16th, 2008

This should make you laugh!

FizzBuzz in “pseudocode” :-p

start from 1 and go to 100

if I should say Fizz, say Fizz
if I should say Buzz, say Buzz
if I haven't said Fizz or Buzz, say the number

do this again for the next number

PHP5 Magic Function FizzBuzz

Tuesday, April 15th, 2008
<?PHP

class fizzBuzzInt {

	private $val;

	public function __construct($int) {
		$this->val = $int;
	}

	public function __toString() {
		if ($this->val % 15 == 0) return "FizzBuzz";
		else if ($this->val % 3  == 0) return "Fizz";
		else if ($this->val % 5  == 0) return "Buzz";
		else return "".$this->val."";
	}

	public function intVal() {
		return $this->val;
	}

	public function inc() {
		$this->val++;
	}
}

for ($int = new fizzBuzzInt(1); $int->intVal() <= 100; $int->inc()) {
	echo $int." ";
}

?>

Happy Birthday To Blog!

Tuesday, April 15th, 2008

My blog is now 2 years old.

This means that I have been typing, and you have been reading, my useless rants for 2 years!

Woohoo!

BBC to cover costs of ISP’s “Unlimited” claims?

Saturday, April 12th, 2008

ISPs are claiming that the BBC should pick up the extra network costs caused by IPlayer reports the BBC.

I find this a little hard to understand.

For years, ISPs have happily offered “Unlimited” packages with no download limits.

Unlimited Broadband

There is no ambiquety there, there there are no download limits!

All of a sudden, it seems, normal internet users are doing more than just checking their email, Facebook, and the current football score and ISPs are throwing a hissy fit!

Maybe ISPs should just face up to the facts that they can’t offer Unlimited packages?

Perl FizzBuzz

Friday, April 11th, 2008

Yet another one in Perl.

Code:

#!/usr/bin/perl

for ($i = 1; $i < 100; $i++) {
        if ($i % 15 == 0) { print "FizzBuzz" }
        elsif ($i % 3 == 0) { print "Fizz" }
        elsif ($i % 5 == 0) { print "Buzz" }
        else { print $i }
        print " "
}