Welcome to my blog, here you will find general ramblings about life the multiverse and everything as well as some random geeky tips I'll probably come up with oh..and you might learn what I'm up to while you're at it!

Wednesday, 30 April 2008

Resizing pics

Ok been a few since I made a post, let's see, I've tweaked the blog to show new lines (newb mistake forgot nl2br).

Did some more work on mysecretkitchen.co.uk but waiting for a response from the owner so I can finish it.

Did a few updates on dragon-hearts.net will probably do some more later.

Sadly the server went squiffy twice this month >.> should be fixed this time though I hope.

Right now I'm resizing our holiday photos using a php script if anyone wants the script it is...

<?php

$dirtoscan="Path to the directory with the pics";

$dir=scandir($dirtoscan);

chdir($dirtoscan);

foreach($dir as $key=>$val)

{

$len=strlen($val);

if ($val{$len-3}.$val{$len-2}.$val{$len-1}=="JPG")

{

echo $val;



$size=@getimagesize($val);

$newW=ceil($size[0]/8);

$newH=ceil($size[1]/8);



$source=imagecreatefromjpeg($val);

$img=imagecreatetruecolor($newW,$newH);

imagecopyresampled($img,$source,0,0,0,0,$newW,$newH,$size[0],$size[1]);

imagejpeg($img,$val);

echo " resized

";





}

}



?>



It will resize all JPG files (normal stuff from a digital camera) just change the $dirtoscan to whatever you path is and run from the command line.

Wednesday, 23 April 2008

Well we survived bungy jumping and I've the DVD to prove it (I look aweful).



We had a great time now we're back in Napier and I've a bazillion emails to read and a ton of work to do! So I'm off to do that and will update here later :)



Edit:



Well work's done, updated mysecretkitchen.co.uk and tweaked walkingforweightloss.co.uk a little, checked my email and found out while I was away for 3 days someone I was contracting out to decided to replace me with no notice, wonderful...no big loss mind you the site was a pain so I've gone and redone my own site www.wdfa.co.uk

Friday, 18 April 2008

Taupo!

We went to Lake Taupo today, it's formed from an extinct volcano, it's the size of a small sea around 30km across it even has waves and grey sand. The drive took a fair few hours, on the way we stopped at some gardens, the road was somewhat rugged (imagine rocks the size of your fist all over the place for 5km) but it was worth it, the gardens are very pretty with the trees just changing colour for autumn. Finally we went to the Huku falls, they're pretty impressive but on the way back we stopped at a "scenic lookout" just off the highway and we saw some falls which were even more awesome! :)



Now were home, going to relax and download the pics off the camera, I might add pic uploading to the blog tonight so I can add pics to the entries! :)

Thursday, 17 April 2008

Two down

I've just finsihed and submitted my latest test, just one more to go.

On another point it's amazing how many mosquitoes there are in New Zealand, something I didn't expect, must be the warm humid weather, and of course mosquitoes love me! I must stop eating so much sugary stuff!

I seeeeee you

Just about to do a short essay question for a test, the article links to this site Tracking Transience it's quite odd a us professor in the USA whom is on the FBI "Terrorist watch list" has decided to take pictures of everywhere he goes and everything he does as well as keep a GPS in his pocket so everyone knows where he is..odd really.

Wednesday, 16 April 2008

We are the Borg! (Sound's swedish)

Just doing my second test and a question is "Give one example of a cyborg, and explain in what respects this.
cyborg fits the notion of ubiquitous computing." ...star trek anyone?

Reading one of my course books it says "A researcher at Reading university that works in the cybernetics department had a microprocessor embedded under his skin that opens the doors when he walks near them" sounds like something I'd do.

click here to read more about it

Wed, 16 Apr 2008 06:46:18

We're mad..

Just got back from town, booked our cruise around the bay of islands and ...bunjy jumping!!! ...splat :P now onto test 2!
Wed, 16 Apr 2008 04:59:53

One down

Wayyyy slept in today (11:30am, normally up around 7/8), just done test number one, 2 more to go!Wed, 16 Apr 2008 00:15:37

Tuesday, 15 April 2008

The plan...

Well the server is configured after some mysql issues which I had to go to tech support for >.< (turns out a mysql reinstall fixed it...now why didn't I think of that oh well brain missing on that one).

I was asked to find a free and good CMS I heard Joomla and Mambo were good so I've installed them on the new server so a potential client can take a look.

We've finally sorted out what were doing this weekend, off to auckland sunday, staying in a nice cheap hotel (only one night) then going to try bungy jumping (if I don't post again you know the chord snapped!) then to Paihia and the Bay of Islands for a few days to see dolphins and maybe whales and a nice cruise around the bay including a stay on a island for a few hours sounds good to me!

Then we will head back down towards Napier via Whakatane it's supposed to look very pretty at sunset.

Tomorrow...school! (Got 3 degree tests to do, one for the 16th, one for 20th and one for the 22nd ah joy and I've not read the course material yet either)

Tue, 15 Apr 2008 11:51:18

Mmmm honey

Ok next entry :) Raining today blarg, yesterday we went and got some more honey from the arataki honey factory, it's uber tasty and goes really well on toast.

Also went to ocean beach a very pretty and quiet beach I'll grab some pictures later :)

Today, planning our next trip since we have a car for 2 weeks, going to head up to auckland and the bay of islands later this week, the weather forecast is better then :)

Right now I'm configuring what was my test server to be a production server so I can host sites I design for other people since I've had a few enquiries lately.

That's about it for now

Sunday, 13 April 2008

First Entry

Well this is the first entry, I've just got the blog up and running, the picture on the right is an artificial waterfall not far from where I'm staying in New Zealand, it was created from a quarry dug out by prisoners.
waterfall
Name: Rowan