<?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>sam-hughes.co.uk &#187; Planet LSUCS</title>
	<atom:link href="http://www.sam-hughes.co.uk/category/planetlsucs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sam-hughes.co.uk</link>
	<description>Etw aka Ntw's Blog :: "Life ain't that simple"</description>
	<lastBuildDate>Sun, 03 Jan 2010 19:14:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Drupal Modules</title>
		<link>http://www.sam-hughes.co.uk/2008/12/12/drupal-modules/</link>
		<comments>http://www.sam-hughes.co.uk/2008/12/12/drupal-modules/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 20:39:00 +0000</pubDate>
		<dc:creator>Sam Hughes</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[LSUCS]]></category>
		<category><![CDATA[Planet LSUCS]]></category>
		<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://www.sam-hughes.co.uk/?p=17</guid>
		<description><![CDATA[I thought I might as well &#8216;publish&#8217; two Drupal modules that I&#8217;ve been working on.
Account Reactivation (Drupal 5)
This was created for LSU CompSoc&#8217;s new site, to enable members to request that their account is re-activated at the start of the new year, once they have signed up again.
Download the module here: 
Timetable (Drupal 6)
This is [...]]]></description>
			<content:encoded><![CDATA[<p>I thought I might as well &#8216;publish&#8217; two Drupal modules that I&#8217;ve been working on.</p>
<p><strong>Account Reactivation</strong> (Drupal 5)<strong><br />
</strong>This was created for <a href="http://www.lsucs.org.uk">LSU CompSoc&#8217;s</a> new site, to enable members to request that their account is re-activated at the start of the new year, once they have signed up again.</p>
<p>Download the module here: <code><a class="downloadlink" href="http://www.sam-hughes.co.uk/wp-content/plugins/download-monitor/download.php?id=2" title="Version v1.0 downloaded 154 times" >Drupal Account Reactivation Module</a></code></p>
<p><strong>Timetable</strong> (Drupal 6)<strong><br />
</strong>This is a basic module I created as a test module to get back into Drupal development.  It creates a timetable, with the ability to add and remove items via a form, and to set the slots available during the day on the timetable.</p>
<p>Download the module here: <code><a class="downloadlink" href="http://www.sam-hughes.co.uk/wp-content/plugins/download-monitor/download.php?id=3" title="Version v1.0 downloaded 202 times" >Drupal Timetable Module</a></code></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p><em>Please note that both these modules are provided &#8216;as is&#8217; and may not be completely stable/include bugs .  Do not use on a production site without first testing thoroughly.</em></p>
<p><em>However I will provide help/improvements/fixes if time allows for the modules.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sam-hughes.co.uk/2008/12/12/drupal-modules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows error/crash debugging</title>
		<link>http://www.sam-hughes.co.uk/2008/05/28/windows-errorcrash-debugging/</link>
		<comments>http://www.sam-hughes.co.uk/2008/05/28/windows-errorcrash-debugging/#comments</comments>
		<pubDate>Wed, 28 May 2008 16:39:47 +0000</pubDate>
		<dc:creator>Sam Hughes</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Planet LSUCS]]></category>

		<guid isPermaLink="false">http://www.sam-hughes.co.uk/2008/05/28/windows-errorcrash-debugging/</guid>
		<description><![CDATA[Recently my pc has been crashing a bit, which has caused it to reboot suddenly, and the error messages haven&#8217;t shown any useful details of the cause.
After a bit of googling I  came across this guide which guides you through using the windows debugging tools to find the cause of the crash.
It will pinpoint [...]]]></description>
			<content:encoded><![CDATA[<p>Recently my pc has been crashing a bit, which has caused it to reboot suddenly, and the error messages haven&#8217;t shown any useful details of the cause.</p>
<p>After a bit of googling I  came across <a href="http://forums.majorgeeks.com/showthread.php?t=35246" target="_blank">this guide</a> which guides you through using the windows debugging tools to find the cause of the crash.</p>
<p>It will pinpoint the driver at fault etc. so you can update your drivers or look into ways of working round the issue.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sam-hughes.co.uk/2008/05/28/windows-errorcrash-debugging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Website Access Restrictions</title>
		<link>http://www.sam-hughes.co.uk/2008/04/28/website-access-restrictions/</link>
		<comments>http://www.sam-hughes.co.uk/2008/04/28/website-access-restrictions/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 18:09:24 +0000</pubDate>
		<dc:creator>Sam Hughes</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Planet LSUCS]]></category>
		<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://www.sam-hughes.co.uk/2008/04/28/website-access-restrictions/</guid>
		<description><![CDATA[I manage/admin a fair few sites covering an oil exploration equipment company to a church website.   Unfortunately over time I&#8217;ve had a some issues with spammers posting random unwanted guestbook messages and so on.
Therefore I decided to go ahead and implement some measures to start blocking them.  The main site this occurs [...]]]></description>
			<content:encoded><![CDATA[<p>I manage/admin a fair few sites covering an oil exploration equipment company to a church website.   Unfortunately over time I&#8217;ve had a some issues with spammers posting random unwanted guestbook messages and so on.</p>
<p>Therefore I decided to go ahead and implement some measures to start blocking them.  The main site this occurs on is the church site I run, which has an option to blacklist IP addresses.  However as the spam comes from a range of IP addresses each time the site is &#8216;hit&#8217; this would involve a tedious process of adding each address.</p>
<p>Therefore I decided to use the .htaccess allow/deny restrictions.  While these are simple to use, getting the information required isn&#8217;t  always as easy.</p>
<p>The method I took used three steps:</p>
<ol>
<li>Determining the IP Range involved</li>
<li>Calculating the network prefix of the range</li>
<li>Banning them</li>
</ol>
<p>For the first step I noticed the IP addresses each time I was hit were similar,  so I looked them up on <a href="http://software77.net/geo-ip/" target="_blank">http://software77.net/cgi-bin/ip-country/geo-ip.pl</a> to see if they were in a single range assigned to a particular organisation or country.  In this case they were.</p>
<p><span style="text-decoration: line-through;">Then I converted the range from a start and end IP address to a single address with a prefix.  In my case it was 123.112.0.0/12. (you can check your conversion using <a href="http://www.csgnetwork.com/ipinfocalc.html" target="_blank">http://www.csgnetwork.com/ipinfocalc.html</a>) </span>[The look-up link above now gives you the CIDR range]</p>
<p>Finally I added the following lines to my .htaccess file, including a comment for future reference</p>
<blockquote><p><em>Order Allow,Deny<br />
##Chinese IP range banned for guestbook spam 28/4/08<br />
Deny from 123.112.0.0/12<br />
Allow from all</em></p></blockquote>
<p>As a side note banned users will get a HTTP 403 error page.  I also created a custom page to be loaded for banned users, defined  by the following line in my .htaccess file:</p>
<blockquote><p><em>ErrorDocument 403 /errordocs/403.html</em></p></blockquote>
<p>You also need to test that they have access to view this page, so I added another .htaccess file in the <em>errordocs</em> folder with the following lines:</p>
<blockquote><p>order deny,allow<br />
allow from all</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sam-hughes.co.uk/2008/04/28/website-access-restrictions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Server Monitoring Script</title>
		<link>http://www.sam-hughes.co.uk/2008/01/25/php-server-monitoring-script/</link>
		<comments>http://www.sam-hughes.co.uk/2008/01/25/php-server-monitoring-script/#comments</comments>
		<pubDate>Fri, 25 Jan 2008 21:32:31 +0000</pubDate>
		<dc:creator>Sam Hughes</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Planet LSUCS]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://www.dev-site.co.uk/blog/2008/01/25/php-server-monitoring-script/</guid>
		<description><![CDATA[We&#8217;ve been having some issues with the availability of the LSUCS server recently, so I decided to try and put some monitoring in place.  Unfortunately we&#8217;re not in the position to deploy a full monitoring suite with heartbeat monitoring etc.
So I developed a PHP script to check the status of the server remotely.  [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve been having some issues with the availability of the LSUCS server recently, so I decided to try and put some monitoring in place.  Unfortunately we&#8217;re not in the position to deploy a full monitoring suite with heartbeat monitoring etc.</p>
<p>So I developed a PHP script to check the status of the server remotely.  This is done by checking the IP address, and connections on specified ports. The script can be configured to sends status emails, and to send error emails.</p>
<p>The script also accesses data from a remote PHP script on the monitored server to access disk usage data if available.</p>
<p>The script can be downloaded from <a href="http://www.sam-hughes.co.uk/wp-content/uploads/2008/01/server_statusphp-120.gz" title="Server Status Script">here</a>.</p>
<p><strike>The script will probably be changed over time to support multiple servers and extra functionality.</strike></p>
<p>26 Jan 2008: I&#8217;ve added support for multiple servers and extra features (see code for full details).  The link above now points to the latest version.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sam-hughes.co.uk/2008/01/25/php-server-monitoring-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
