Woo #92!

March 26th, 2008


Oh yeah! oh yeah! it's my birthday, oh yeah!.... ok well its not my birthday, but this photo has got to number 92! in Flickr's explore... my highest entry to date. Lets celebrate homies!

View my photostream for more fun and games!


UPDATE: As of now (Mar 27th 12:45) it is in position #47.
Is it sad that i'm totally addicted to this now?

UPDATE: (Mar 27th 16:35) Number 25!!!! Wooooooo
UPDATE: So it peaked at #11, that's gunna take some beating.

Love you!

Another Photo in Explore!

March 20th, 2008

Woo! Another photo in Fickr's explore, it's currently sitting at position #291 which is amazing, i'm so happy!

Now both pictures I've had in explore contain some aspect of female nudity. I think this goes a fair way to proving that sex sells.

365

March 20th, 2008
Thought i'd have a play with iMovie today so made this: It's all my photos from my portrait 365 gallery.





My 365 Projects started about 16 months ago, and have well... never ended, check them out, (there are links on the right hand side).

Love lots

x x x

Travelling Salesman Problem

March 15th, 2008
So, as you may or may not know, I've been trying to calculate the shortest distance to travel between a number of points (aka The Travelling Salesman Problem) While i completely failed at doing this is Java i have created a way to do it in PHP. So without further hesitation here is the class and a quick usage example.

Google Maps Longitude and Latitude

March 6th, 2008
Found this legend bit of code that if you go to a point on a google map then put this into the URL bar it'll pop up the longitude and latitude for you.
javascript:void(prompt('scrivna.com',gApplication.getMap().getCenter()));

Magic!

P.S. Worpress is gay and replaces apostrophes with back ticks, fuck off!!

Unicode Encoding

March 5th, 2008
Ok, so recently i've been making all my web pages support unicode character sets, one of the tasks is ensuring all output is encoded in utf-8. Anyway to make a long story short, using the ob_get_contents() function i showed you a few posts ago, gives you output in whatever character set the file is saved as, and no matter what you do you cant get the blasted thing to display as utf-8... so there are a few methods of fixing this...

My first attempt being php's iconv() function to convert all the output into utf-8, however, this is just pants and you'd have to detect what format its in in the first place in order to recode it...

The other (and better) approach is just to ensure that all your pages are encoded in utf-8 to start with, with the IDE I use (Coda) you can set the default file encoding in the preferences, and i'm sure many other editors give you the same options.

Magic.

I ran 1.7 miles!

March 3rd, 2008
Never again!

Fuck me, seriously, why would you do that? My chest was burning, my legs are killing me. With my regular swim that takes about 45 minutes i'd lose about 500 calories.. where as my frankly abysmal attempt at running burnt a whopping 234... hmm, and swimming doesn't make my body ache like this, jeez... i'm going for a lay down.
.