<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Welshtroll &#187; Coding</title>
	<atom:link href="http://welshtroll.co.uk/category/coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://welshtroll.co.uk</link>
	<description>Point, Click, Repeat</description>
	<lastBuildDate>Tue, 20 Dec 2011 21:42:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Gaming Charts</title>
		<link>http://welshtroll.co.uk/2009/02/12/gaming-charts/</link>
		<comments>http://welshtroll.co.uk/2009/02/12/gaming-charts/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 02:17:09 +0000</pubDate>
		<dc:creator>welshtroll</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Site News]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Charts]]></category>
		<category><![CDATA[gamerDNA]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[XFire]]></category>

		<guid isPermaLink="false">http://welshtroll.co.uk/?p=789</guid>
		<description><![CDATA[As you may be aware]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-792 alignleft" style="margin: 10px;" title="64px-gnome-x-office-presentationsvg" src="http://welshtroll.co.uk/wp-content/uploads/2009/02/64px-gnome-x-office-presentationsvg.png" alt="Charts" width="64" height="64" /></p>
<p>As you may be aware I enjoy looking at the stats that GamerDNA captures for XFire usage, it is a simple yet effective  method of showing how much time was spent and what percentage was spent on each game. I&#8217;m truely suprised that XFire doesn&#8217;t capture such data already.</p>
<p>At the start of January <a href="http://welshtroll.co.uk/2009/01/03/gaming-in-december/" target="_blank">I reviewed</a> my XFire data for the month of December, I wanted to see how frequently I played certain games. I pumped the data into the handy <a href="http://code.google.com/apis/chart/" target="_blank">Google Chart API</a> which then displays an image based on the information provided.</p>
<p>When February came around I wanted to do a similar task but rather than having to trawl through the data and craft the url to generate the Chart I decided to automate the process. So in a frenzied weekend of wracking my brain into remembering PHP, I created a page that automatically reads the RSS feed of my gamerDNA experiences and uses the XFire data held within to generate the URL for the Google Chart.</p>
<p><img class="size-full wp-image-793 alignright" style="margin: 10px;" title="64px-gnome-x-office-spreadsheetsvg" src="http://welshtroll.co.uk/wp-content/uploads/2009/02/64px-gnome-x-office-spreadsheetsvg.png" alt="64px-gnome-x-office-spreadsheetsvg" width="64" height="64" /></p>
<p>After a few hours cursing at stupid errors I finally created a fully working tool that achieved the result I was aimming for. Once this had been tested a few dozen times it suddenly occurred to me that It would be easy enough to allow other GamerDNA members with XFire experiences to generate their own charts.</p>
<p><a href="http://charts.welshtroll.co.uk/" target="_self">http://charts.welshtroll.co.uk/</a></p>
<p>It&#8217;s not all that pretty but providing the username entered has XFire experiences on GamerDNA in the last 30 days it will &#8220;hopefully&#8221; generate a nice little chart. I&#8217;m hoping to enhance the functionality to include the ammount of time played as well, but that can wait for now, small steps to start.</p>
]]></content:encoded>
			<wfw:commentRss>http://welshtroll.co.uk/2009/02/12/gaming-charts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>recaptcha</title>
		<link>http://welshtroll.co.uk/2008/05/30/recaptcha-2/</link>
		<comments>http://welshtroll.co.uk/2008/05/30/recaptcha-2/#comments</comments>
		<pubDate>Fri, 30 May 2008 12:30:50 +0000</pubDate>
		<dc:creator>welshtroll</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[honey pot]]></category>
		<category><![CDATA[recaptcha]]></category>
		<category><![CDATA[Spam]]></category>
		<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://welshtroll.co.uk/?p=136</guid>
		<description><![CDATA[It seems the new functionality]]></description>
			<content:encoded><![CDATA[<p> It seems the new functionality I added is working wonderfully. In the days since Sunday I&#39;ve had no spam comments posted (touch wood) although there has been over 500+ hits from possible spammers.</p>
<p>It&#39;s quite funny that the spammers browser information indicates that they are using Java to run these automated spam scripts and there is no attempt to hide this fact. The worst offender on my website in the past 4 days was from a network in America registered to &#8220;AirlineReservations.Com, Inc.&#8221;. Which it turns out is a dubious natured website, mostly comprising of adverts.</p>
<p>A quick scout around revealed that this IP is indeed frequently responsible for spamming guestbooks and comment sections of websites all over the place. So as a further measure to reduce the number of bots that will be able to post spam comments I&#39;ve been looking at an additional measure that I can implement. I&#39;ve been following <a href="http://projecthoneypot.org" rel="external">Project Honey Pot</a> and schemes like it for sometime so I&#39;ve decided to use one of their services, <a href="http://projecthoneypot.org/services_overview.php" target="_blank">http:BL</a>.</p>
<p>This blacklist service can be used to check the IP address of a visitor against the data held by Project Honey Pot. This will return 4 pieces of information:<br />A valid query response<br />The number of days since the IP was last active on the Project Honey Pot network<br />A Threat Score<br />And a type of visitor indicator</p>
<p>Using the last 3 pieces of information it should be possible to reduce potential spam attacks even further.</p>
<p><strong>Updated 22:40</strong><br />Well I&#39;ve added new functionality to the comment pages that will now check against the blacklist. I&#39;ll monitor the traffic for the next week or so just to check that all is ok. </p>
]]></content:encoded>
			<wfw:commentRss>http://welshtroll.co.uk/2008/05/30/recaptcha-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tag Cloud</title>
		<link>http://welshtroll.co.uk/2007/03/18/tag-cloud/</link>
		<comments>http://welshtroll.co.uk/2007/03/18/tag-cloud/#comments</comments>
		<pubDate>Sun, 18 Mar 2007 16:39:47 +0000</pubDate>
		<dc:creator>welshtroll</dc:creator>
				<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://welshtroll.co.uk/?p=63</guid>
		<description><![CDATA[Of the growing number of]]></description>
			<content:encoded><![CDATA[<p>Of the growing number of 2.0 related stuff that is appear now-a-days, the tag clouds is an interesting one in that takes a standard list and tranforms it into other visual depictions.</p>
<p>I decide to have go at generating a simple cloud tag, I all ready had a list of news categories and the number of post in each one so I thought it wouldn&#8217;t be a step too far.<br />After quick Google to determine the best methods of displying the information, I decide that i would use a simple font size alteration based on the count of the category.</p>
<p>First tasks to decide on the number of levels I want to have in my cloud. I decided on 3 as this would allow enough differences for the total number I was dealing with.</p>
<p>So now we needed to split out the levels so when needed the highest possible count for 1 category and to divide by the number of levels we are using, this will give us the range of each level.</p>
<div class='indent'>highest_category_total/number_of_levels = range</div>
<p>Now using the same information that we see in a standard list:<br />Topic1 = 3<br />Topic2 = 15<br />Topic3 = 8</p>
<p>Using a simple section of code to determine the level that each category falls into.</p>
<p>This example shows how it works
<div class='indent'>
<p>(highest_category_total/number_of_levels = range)<br />Range = 15 / 3</p>
<p>Level1 = 1-5 ( highest_category_total &#8211; Range *3)<br />Level2 = 6-10 ( highest_category_total &#8211; Range*2)<br />Level3 = 11-15 ( highest_category_total &#8211; Range)</p>
<p>therefore :<br />topic1 fails into level1<br />topic2 fails into level3<br />topic3 fails into level2</div>
]]></content:encoded>
			<wfw:commentRss>http://welshtroll.co.uk/2007/03/18/tag-cloud/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AJAX Fun</title>
		<link>http://welshtroll.co.uk/2006/05/10/ajax-fun/</link>
		<comments>http://welshtroll.co.uk/2006/05/10/ajax-fun/#comments</comments>
		<pubDate>Wed, 10 May 2006 18:45:00 +0000</pubDate>
		<dc:creator>welshtroll</dc:creator>
				<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://welshtroll.co.uk/?p=33</guid>
		<description><![CDATA[Sadly I&#8217;m not playing with]]></description>
			<content:encoded><![CDATA[<p>Sadly I&#8217;m not playing with bleach this week but having some fun with <a href="http://en.wikipedia.org/wiki/AJAX" rel="external" title="Asynchronous JavaScript And XML">AJAX</a>, to avoid boring you with details, lets sum it up by saying:<br />It allows the creation of interactives websites without the need for the users browser reloading.Although we have quite a few new application that use this functionality, I haven&#8217;t really seen much in the way of AJAX games.
<p>I have been meaning to look into how it functions and pratical uses for it, plus i&#8217;m intreged by it. Damn my overly curious mind.</p>
<p>So taking my first step into the AJAX world I created a very basic RPG kind of game <a href="http://septicsoul.com/ajax/Game1/" target="_blank">here</a>. OK so it&#8217;s pretty poor but you can see that the page doesn&#8217;t refresh with each action and unlike the classic text base adventure games the directions are clickable.I should also point out that to use a AJAX website you must have IE 5+ with ActiveX enabled or Netscape 7.1+ (Firefox) / Opera 8 both with javascript enabled. Of course no JavaScripting would be the same without having to add code to identify and handle the different types of browser, which is a pain but the you don&#8217;t want to exclude certain types of users from your website, so you need to cater for various types of browser you may encounter. </p>
]]></content:encoded>
			<wfw:commentRss>http://welshtroll.co.uk/2006/05/10/ajax-fun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

