XFN
Hey,
This is a very small update to let you know that my website is now using XFN for linking to friends.
XFNâ„¢ (XHTML Friends Network) is a simple way to represent human relationships using hyperlinks. In recent years, blogs and blogrolls have become the fastest growing area of the Web. XFN enables web authors to indicate their relationship(s) to the people in their blogrolls simply by adding a 'rel' attribute to their <a href> tags.
I am currently using XFN for my Friends' links on the left-hand-side of the page:
<a href="http://youreadmyblog.info" rel="friend met">Craig Bryson</a>
<a href="http://www.mattjewell.com" rel="contact">Matt Jewell</a>
<a href="http://www.enaresh.com" rel="acquaintance">eNaresh</a>
It's quite a cute little system where you put keywords in the rel="" section of an [b]a[/b] tag to represent how you know the person. In Craig's link we have the keywords 'friend' and 'met' because he is both a friend and someone who I have met in person.
Although entirely pointless, I think it is a nice little system and could even some day have a purpose if everyone were to use it. I am displaying the little 88x31 button below and I invite all you blog owners to click it and see what it is all about
.
[url=http://gmpg.org/xfn][img]/inc/img/xfn-btn.gif[/img][/url]
Don't forget I am always looking for link trades too, so if you would like one, feel free to leave a comment here
.
The loss of a limb :(
Hello,
It has been just under a week since I last blogged to inform you of my first night shift in hell. Since then I have had my foot broken and thus cannot work, walk and can barely leave the house.
It all happened in the early hours of Sunday morning when I walked home from the pub following some trouble. I woke up Sunday to find my foot was absolutely wrecked and I could barely hold the weight of the sheets on my bed without massive pain. Many painkillers and a trip to casualty later I was informed I had two broken metatarsals in one foot and it is likely I'll be out of action for quite some time.
Monday saw me, my mother and distressed yet endlessly supportive girlfriend off to hospital again to get my foot fixed. I was fully expecting six or more weeks in plaster but was given what they call a [i]moon boot[/i]. I was given this and a set of bigger crutches to what I was given at casualty and sent on my way with an appointment to return in early September. Despite the photo below, the "Contour Air Walker" as it is better known is alot less like a big shoe and more of a hot, sweaty burden on my day.
[img]http://62.75.219.232/shop_cfg/sanitaetshaus/ProcareNextepContourAirWalker.jpg[/img]
Footwear aside, I have to applaud all paraplegic people (I feel I used the wrong word there so sorry if I did) for coping with how difficult it is getting through a day without one or both legs. Firstly, I can't drive and for me who spends on average around 22 hours a week driving it is absolutely heartbreaking. Then, the next priority is walking! I walked about a quarter of a mile taking Siobhan to the bus stop and back (back to driving.. I couldn't drive her home :@) and I was as tired as if I'd ran a marathon.
Also, when you see people on crutches, they seem to be walking as you'd walk with your feet all smooth and natural like.. but noooooooooooooo, the first two days I spent getting used to my crutches almost had me more injured than I was to begin with, I was bouncing off walls, tripping on steps and more...
I'll end this blog there for now though as you must have got the idea by now that I am bitter and unhappy and grumpy and missing my foot. Look out for more bitter blogs over the next 5 and a bit weeks aimed at you 2 legged folks while I sit here waiting for someone to come help me get downstairs
Love
Stephen :wave:
Working Nights :)
Well, this is officially the first night shift I have ever worked, and believe it or not, I'm enjoying it.
Those of you who know me will know that I have recently got a new job at a food processing factory near my house. As I expected the work is terrible and so is the pay (Just a little more than minimum wage) but when the paycheck comes at the end of the week it seems more than worthwhile.
Tonights shift started at 10pm and I was already exhausted by then. 2 Pro plus gave me the lease of life I needed and off I went. So far I have been packing boxes of 'Morrisons Potatoe Crunchies'. Whatever way you pack, the twelve bags you are supposed to fit in each box the do not fit, so I am seeing some odd, burst, underweight and misshapen boxes go off my production line
.
It is 12.20 now and this is my 2nd 20 minute break :O. The production line has also stopped now so it looks like tonight will either be a boring or easy shift, depending on how the time passes. So far though, what people have said about night shift is totally untrue and I am finding it no more difficult than the equivalent job on day shift. The atmosphere is also so much more relaxed due to no-one working as hard as during days because there are "Less gaffers on nights"
The only gaffer I have seen did make me tape up my earring (which has been ignored on days) but apart from that, I think this is far better than working days. For the extra £4 a shift it may just be worth the losing of my mornings too..
Anyway, time to go back to the potatoes, they are calling.. I may be back on my last break at... 3 am with a different opinion to what I have now after 3 hours of cleaning.
Wish me luck, any luck you don't give me red bull will compensate for however
Stephen
LFS Server
I used to play a game called [url=http://liveforspeed.net]Live for Speed[/url] quite often but when I broke my PC steering wheel I quit, and have just recently started playing again. Given that I have a spare server (this one) lying around not doing much, I have opened a LFS server. It is called (Groomi.net - Clean Racing) and should be up 24/7. Please feel free to drop in and say Hi
JAVASCRIPT: Load a page using AJAX
I just noticed that I use one little AJAX function to load all of my pages but haven't took the time to explain to my readers how I do it yet, so here goes
.
To use this create a HTML file with the following code and upload it to your web server..
[i]ajax.html[/i]
[code]
<html>
<head>
<script type="text/javascript" src="ajax.js"></script>
</head>
<body>
<p>
<a href="nonjs.html" onclick="get('content.txt', 'content');return false;">Click here to load our content using ajax</a>
</p>
<div id="content">
<p>
Our content.txt file will be loaded here when the link above is pressed.
</p>
</div>
</body>
</html>
[/code]
Now, the html file shows us a page with the text [i]Click here to load our content using ajax[/i]. When this text is clicked it makes a call to the function get() which is defined in the next file.. ajax.js
[i]ajax.js[/i]
[code]
function createhandler(){
var xmlhttp;
if (window.XMLHttpRequest) {
xmlhttp = new XMLHttpRequest();
}
else if (window.ActiveXObject) {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
}
return xmlhttp;
}
function get(url, divid){ //Url to fetch + div ID to insert content into
var xmlhttp=createhandler();
xmlhttp.onreadystatechange=function (){
if(xmlhttp.readyState==4){
document.getElementById(divid).innerHTML=xmlhttp.responseText;
xmlhttp.onreadystatechange = null;
xmlhttp.abort();
}
};
xmlhttp.open('GET', url, true);
xmlhttp.send(null);
}
[/code]
This file defines the functions [i]get[/i] and [i]createhandler[/i]. The createhandler function is used to create our AJAX xmlhttp object used to send and receive data via ajax.
The [b]get()[/b] function takes the parameters [i]url[/i] and [i]divid[/i]. Then createhandler is called to make the xmlhttp object.
The code that begins [i]xmlhttp.onreadystatechange=function (){ [/i] is used to capture the onreadystatechange event and when readystate changes to 4 (READY) our divid is updated with the text taken from the url we specified.
The lines [i]xmlhttp.open('GET', url, true);xmlhttp.send(null);[/i] send a HTTP GET request to the url we specified. The true paramater means that data can be sent and received asynchronously and does not concern us here.. Just be sure it's true
. We send null data to terminate the command.
Next all you need to do is create a content.txt file with some html code in it to be loaded. Here is an example:
[i]content.txt[/i]
[code]
<p>I have just been loaded with ajax using the function get(url, divID)</p>
[/code]
To use the example above, upload all of the files into the same directory on your webserver. I hope this gives you some insight on the basics of AJAX and how to load pages. If you have any questions please comment this blog
Love
Stephen