./paulOr

Eat bandwidth for breakfast!

While making the stats program for the backend of paulOr.net that shows me daily unique & page views in a graph for the past ten days, I needed a really easy way of calculating the amount of seconds in each day so that I could then do quick database querys without much code to grab the total amounts of visiters per day. My solution was this very quick function which converts the amount of days into seconds.

Theres quite a bit more that goes on behind the scenes but this is by far the simpliest form of what goes on. Perhaps others will find it useful also :]

Function: Convert Days To Seconds

<?php

	## DAYS INTO SECONDS
	function days_to_seconds($days) {
		if(is_numeric($days)) {
			return 86400*$days;
		} else {
			return 'string must be numeric';
		}
	}

	## PARSE
	echo days_to_seconds(8); // NUMBER OF DAYS

	## RESULT
	// 691200

?>

Theres An App For That

Posted on Thu 3rd Jun 2010 · Real Life · 0 Comments

image

I thought I would share the apps I use on my iPhone, if you had just met me and taken a look at my phone, I'm pretty sure from the get-go, you could tell what my profession is, is this accurate for other people too?

In no particular order:

1) Facebook
2) Twitter For iPhone
3) Flickr // Photo Upload
4) RBS // Mobile Banking
5) TouchTerm // SSH Client
6) TED // TED Talks
7) Digg
8) iReddit
9) Zendesk // Zendesk Help Desk
10) My O2 // App to see my phone bill usage
11) Domain Scout // Domain name availability checker
12) LogMeIn Ignition // Remote Desktop App
13) Linode Manager // Manage my servers from iPhone
14) cPanel Root & Reseller // Manage cPanel servers
15) cPanel // Manage cPanel user accounts
16) Server Status // Server status information
17) Analytics App // Google Analytics
18) TinyGrab // Upload images to TinyGrab
and lets not forget, for those long train journeys....
19) Solitaire

Please share your apps :)

Crossing The Forth Rail Bridge

Posted on Mon 31st May 2010 · Images · 5 Comments

image
I took this epic photo while crossing the Forth Rail Bridge today, looks like I was in some amazingly hot country.

Digg v4

Posted on Sat 29th May 2010 · Web · 2 Comments

This morning when I woke up, I checked my email (same as every morning really) - There was a message in my inbox from a friends feed on Facebook, it was a link to the new Digg v4 video by Kevin Rose.

I watched the video and right away seen something that looked like a Twitter/Facebook mashup - not the Digg I 'know & love'.



Oh well, I never thought anymore of it, untill i read Alexis' thoughts on it.

Makes sence now.

To the top!