<?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>Consilience Media &#187; Jason Judge</title>
	<atom:link href="http://www.consil.co.uk/blog/author/judgej/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.consil.co.uk</link>
	<description></description>
	<lastBuildDate>Thu, 12 Jan 2012 12:03:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Protect Your Deleted Data</title>
		<link>http://www.consil.co.uk/blog/2011/02/26/protect-your-deleted-data/</link>
		<comments>http://www.consil.co.uk/blog/2011/02/26/protect-your-deleted-data/#comments</comments>
		<pubDate>Sat, 26 Feb 2011 10:25:31 +0000</pubDate>
		<dc:creator>Jason Judge</dc:creator>
				<category><![CDATA[Windows Tools]]></category>

		<guid isPermaLink="false">http://www.consil.co.uk/blog/?p=887</guid>
		<description><![CDATA[Having been given a bunch of PCs from a dentist, to be passed on to needy second owners, the first thing that came to mind was data security. Each PC had a copy of the dentist&#8217;s client database, and that had to be removed. More to the point, it had to be permanently removed. One way of doing this is to strip out the hard drives and destroy them. New hard drives can be put in, and Windows reinstalled. However, <a href="http://www.consil.co.uk/blog/2011/02/26/protect-your-deleted-data/" title="Read more" class="sprite-wrapper arrow-green-right">...<span class="sprite"></span></a>]]></description>
			<content:encoded><![CDATA[<p>Having been given a bunch of PCs from a dentist, to be passed on to needy second owners, the first thing that came to mind was data security. Each PC had a copy of the dentist&#8217;s client database, and that had to be removed. More to the point, it had to be <em>permanently</em> removed.</p>
<p><span id="more-887"></span>One way of doing this is to strip out the hard drives and destroy them. New hard drives can be put in, and Windows reinstalled. However, that is a little wasteful, costly and takes a not-insignificant block of time.</p>
<p><a href="http://www.consil.co.uk/files/2011/02/Trac.png"><img class="alignright size-full wp-image-892" src="http://www.consil.co.uk/files/2011/02/Trac.png" alt="" width="274" height="79" /></a>Instead, I looked for some way to shred the files on the hard drives, and I discovered an excellent Open Source tool for doing this &#8211; <a title="Eraser tool website" href="http://eraser.heidi.ie/" target="_blank">Eraser</a>.</p>
<p>Now, it is worth describing what the actual problem is here, because it is not obvious. When a file is deleted on Windows, it gets moved to the recycle bin. That means it does not actually get deleted, but instead just gets moved out of the way. At any time you can restore those deleted files.</p>
<p>The recycle bin can be cleaned out or <em>emptied</em> and that will delete the files completely. However, it does not erase the data in the files &#8211; the data is still there, and anybody with the technical know-how can recover that data from those files. How can that be?</p>
<p>Files stored on a hard disk consist of two parts: the data and a name in a folder. The name points to the data like an index card in [an older] library points to where a book can be found. Just as you would be able to rip up the index card without the book disappearing from the library, you can remove the name of a file without its data disappearing. All that happens when you delete a file is that the name is removed from its folder, but the data is still there.</p>
<p>The hard disk area where the data is stored is marked by Windows as &#8220;free&#8221;, so it will eventually get over-written, but there is no guarantee for how quickly this will happen.</p>
<p>So what can be done? This is where <em>Eraser</em> comes in. What <em>Eraser</em> will do is shred the file contents by overwriting it with rubbish &#8211; random characters. The idea is that once this is done, there will be no evidence left of the file contents. You can tell <em>Eraser</em> to erase files and folders that currently exist, or you can tell it to go through all the hard disk that is marked as empty, and shred every byte of that disk.</p>
<p>That is what I am doing with the dentist&#8217;s machines, and I am now happy that client&#8217;s personal details will not get out in the wrong hands.</p>
<p>This subject does go a lot deeper than this when you look at forensic security. For example, data that has sat on a hard disk for a long time, can &#8220;sink&#8221; deeper into the disk surface and be recoverable by some organisations, even after it has been over-written. However, considering the specialist equipment and skills needed to do that, I can&#8217;t see dental records being worth that much effort.</p>
<p>If you do use Eraser, <a title="how you can help the Eraser project" href="http://bbs.heidi.ie/viewtopic.php?f=2&amp;t=5456" target="_blank">do make a donation</a>. Even a couple of pounds or dollars will help to support this great project.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.consil.co.uk/blog/2011/02/26/protect-your-deleted-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenData &#8211; UK Postcodes</title>
		<link>http://www.consil.co.uk/blog/2011/01/13/opendata-uk-postcodes/</link>
		<comments>http://www.consil.co.uk/blog/2011/01/13/opendata-uk-postcodes/#comments</comments>
		<pubDate>Thu, 13 Jan 2011 15:06:49 +0000</pubDate>
		<dc:creator>Jason Judge</dc:creator>
				<category><![CDATA[General Blogging]]></category>
		<category><![CDATA[Open Source/Creative Commons]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.consil.co.uk/blog/?p=855</guid>
		<description><![CDATA[The UK government has been publishing UK postcode data for nearly a year now. It is available for free here from the Ordnance Survey and is branded as Code-Point® Open. Essentially the data provides 1.7 million UK postcodes, with their British National Grid Reference, local authority and ward listed for each. The most interesting data is the grid reference, supplied as a full Northing and Easting value. These can be used to calculate distances between postcodes, as well as being <a href="http://www.consil.co.uk/blog/2011/01/13/opendata-uk-postcodes/" title="Read more" class="sprite-wrapper arrow-green-right">...<span class="sprite"></span></a>]]></description>
			<content:encoded><![CDATA[<p>The UK government has been publishing UK postcode data for nearly a year now. It is <a href="https://www.ordnancesurvey.co.uk/opendatadownload/products.html" target="_blank">available for free here</a> from the Ordnance Survey and is branded as <em>Code-Point® Open</em>.</p>
<p>Essentially the data provides 1.7 million UK postcodes, with their British National Grid Reference, local authority and ward listed for each. The most interesting data is the grid reference, supplied as a full Northing and Easting value. These can be used to calculate distances between postcodes, as well as being able to convert them into Latitude and Longitude data for displaying on maps such as Google&#8217;s offering.</p>
<p>The data does lack Northern Ireland and the Channel Island data at present, which can be a problem if you wish to use the data to cover the whole of the UK. The Northern Ireland grid system has a different origin and projection, so care must be taken if those postcodes and data are merged in from other sources. <a href="http://www.osni.gov.uk/2.1_the_irish_grid.pdf" target="_blank">See here</a> for details of <em>The Irish Grid</em> system.</p>
<p>There <a href="https://www.data.gov.uk/wiki/Package:Os-code-point-open" target="_blank">is a wiki</a> that covers this data, but it is incomplete and has not been updated in nearly half a year, which is a bit strange. I suspect updates are being lost somewhere, because I cannot believe nobody wants to update it (there are technical inaccuracies in the description of the data that <em>someone</em> should have noticed by now). I have made a few additions to the wiki page, so we will see what happens next. If it sticks, I would encourage others to go in and add what you know and discover in the data.</p>
<p><span id="more-855"></span></p>
<p>So, what does this data look like? In short, taking into account the areas it does not cover, pretty much complete. I have loaded the current dataset into MySQL, then plotted each postcode as a pixel in an image. Some pixels contain more than one closely positioned postcodes, and a more sophisticated plot would show this, but a simple plot of pixels gives us an idea of what it looks like.</p>
<div id="attachment_863" class="wp-caption aligncenter" style="width: 330px"><a href="http://www.consil.co.uk/files/2011/01/opendata-all-postcodes.png"><img class="size-full wp-image-863 " src="http://www.consil.co.uk/files/2011/01/opendata-all-postcodes-small.png" alt="OpenData Postcodes - Great Britain" width="320" height="480" /></a><p class="wp-caption-text">OpenData Postcodes - Great Britain - Click for larger image</p></div>
<p style="text-align: center">
<p>Click the image to look at a much larger version with lots of detail. I particularly love how you can see <em>the valleys</em> in South Wales.</p>
<p>This simple PHP script generated the above image. All the table needs to contain are the Eastings and Northings from the Ordnance Survey data. It is surprising how it manages to get through 1.7 million postcodes in about ten seconds:</p>
<pre>&lt;?php
$width = 3200;
$height = $width * 1.5;

$db_name = 'opendata_postcodes';
$db_user = 'username';
$db_pass = 'password';

$easting_max = 655448;
$northing_max = 1213660;

$max_points = 2000000;

$db = new PDO('mysql:host=localhost;dbname='.$db_name.';charset=UTF-8', $db_user, $db_pass);

$sql = 'SELECT easting, northing FROM postcode LIMIT :limit';

$stmt = $db-&gt;prepare($sql);
$stmt-&gt;bindParam(':limit', $max_points, PDO::PARAM_INT);
$stmt-&gt;execute();

$img = imagecreate($width, $height);
$background = imagecolorallocate($img, 230, 230, 255);

while ($row = $stmt-&gt;fetch(PDO::FETCH_ASSOC, PDO::FETCH_ORI_NEXT)) {
  $x = round(($width*$row['easting'])/$easting_max);
  $y = $height - round(($height*$row['northing'])/$northing_max);
  imagesetpixel($img, $x, $y, 300);
}

header("Content-type: image/png");
imagepng($img);
imagedestroy($img);
</pre>
<p>Here is the same image with some crude colours introduced to show the density of postcodes.</p>
<p style="text-align: center">
<div id="attachment_878" class="wp-caption aligncenter" style="width: 330px"><a href="http://www.consil.co.uk/files/2011/01/uk-postcode-map-colour-1536.png"><img class="size-full wp-image-878 " src="http://www.consil.co.uk/files/2011/01/uk-postcode-map-colour-320.jpg" alt="" width="320" height="480" /></a><p class="wp-caption-text">Colours to show the density of postcodes</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.consil.co.uk/blog/2011/01/13/opendata-uk-postcodes/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Consilience Mulled Wine 2010</title>
		<link>http://www.consil.co.uk/blog/2010/12/13/consilience-mulled-wine-2010/</link>
		<comments>http://www.consil.co.uk/blog/2010/12/13/consilience-mulled-wine-2010/#comments</comments>
		<pubDate>Mon, 13 Dec 2010 12:40:31 +0000</pubDate>
		<dc:creator>Jason Judge</dc:creator>
				<category><![CDATA[General Blogging]]></category>

		<guid isPermaLink="false">http://www.consil.co.uk/blog/?p=844</guid>
		<description><![CDATA[It&#8217;s that time again &#8211; the lead up to Christmas and time to cook up a batch of mulled wine. Drinking it is half the joy, the other half being the spicy aroma that lingers around the office for days. As usual, we start with the basic recipe, then try a few alterations each year. The idea is not for any single ingredient to be a prominent part of the taste, but for all to work together to create something <a href="http://www.consil.co.uk/blog/2010/12/13/consilience-mulled-wine-2010/" title="Read more" class="sprite-wrapper arrow-green-right">...<span class="sprite"></span></a>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s that time again &#8211; the lead up to Christmas and time to cook up a batch of mulled wine. Drinking it is half the joy, the other half being the spicy aroma that lingers around the office for days.</p>
<p><span id="more-844"></span>As usual, we start with <a href="http://www.consil.co.uk/blog/2008/12/21/consilience-mulled-wine/">the basic recipe</a>, then try a few alterations each year. The idea is not for any single ingredient to be a prominent part of the taste, but for all to work together to create something new. This time the tweaks are:</p>
<ul>
<li>Add orange <em>and</em> lemon. I usually try one or the other, but I think putting half an orange and half a lemon into the pan with a bottle of wine kind of widens the spectrum of the flavours.</li>
<li>Vanilla &#8211; a short length of vanilla pod. This adds a little something to the aroma.</li>
<li>Juniper berries and allspice &#8211; just a couple of each.</li>
<li>A couple of green cardamom pods, broken open.</li>
</ul>
<p>A shot of vodka also adds a bit of warmth. We really must not let this become too much of a habit, but it&#8217;s cold outside, and it&#8217;s Christmas, so we can be forgiven.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.consil.co.uk/blog/2010/12/13/consilience-mulled-wine-2010/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>My Broadband IP Blacklisted as a SPAM Generator</title>
		<link>http://www.consil.co.uk/blog/2010/12/01/broadband-ip-marked-as-spam-generator/</link>
		<comments>http://www.consil.co.uk/blog/2010/12/01/broadband-ip-marked-as-spam-generator/#comments</comments>
		<pubDate>Wed, 01 Dec 2010 00:11:32 +0000</pubDate>
		<dc:creator>Jason Judge</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[blueyonder]]></category>
		<category><![CDATA[motorla surfboard]]></category>
		<category><![CDATA[telewest]]></category>
		<category><![CDATA[virginmedia]]></category>

		<guid isPermaLink="false">http://www.consil.co.uk/blog/?p=822</guid>
		<description><![CDATA[This is an unusual one. I didn&#8217;t think it would be, but based on the lack of Google results for this having happened to other people, I thought it would be an idea to document it. I&#8217;m sure it happens a lot more then people realise. The basic gist of the story is that my broadband IP address got black-listed as a SPAM generator, and that meant I could no longer send out email through the broadband mail server. It <a href="http://www.consil.co.uk/blog/2010/12/01/broadband-ip-marked-as-spam-generator/" title="Read more" class="sprite-wrapper arrow-green-right">...<span class="sprite"></span></a>]]></description>
			<content:encoded><![CDATA[<p>This is an unusual one. I didn&#8217;t think it would be, but based on the lack of Google results for this having happened to other people, I thought it would be an idea to document it. I&#8217;m sure it happens a lot more then people realise.</p>
<p>The basic gist of the story is that my broadband IP address got black-listed as a SPAM generator, and that meant I could no longer send out email through the broadband mail server. It was frustrating, because it seemed that there was nothing I could do about it, but I have learnt a few tricks now to get over the problem next time.</p>
<p><span id="more-822"></span>It all started while repairing a laptop. The laptop had caught a virus or two and needed scanning and updating. Stupidly I plugged it into my home network to get various updates.</p>
<p>Now, on my broadband I run an <a title="SME Server, or e-smith server to those who remember that far back" href="http://wiki.contribs.org/Main_Page">SME Server</a>. All traffic goes through that server. When I send emails from any PC in the house, the transparent proxy catches those emails, queues them up, then sends them all on via my cable provider&#8217;s SMTP server &#8211; smtp.blueyonder.co.uk</p>
<p>Normally the server scans all outgoing mail for spam and viruses, and it is usually pretty good at it. Unfortunately, what this laptop was spitting out consisted of extremely simple SPAM emails &#8211; just a single sentence and a short URL going through bit.ly. That slipped right through the SPAM scanner and in no time at all, 60,000 SPAM messages were queued up on the server and streaming out to Virgin broadband. Not that I knew this was happening, mind.</p>
<p>At some point, some part of the network noticed this, shook its head slowly, then put my IP address on a blacklist. This blacklist was then used by my ISP to basically cut me off from sending any email through its servers.</p>
<p>The result is that smtp.blueyonder.co.uk simply gave me a message telling me to get lost, then dropped the connection each time I tried to send out mail. This could be seen at the lowest level by connecting using telnet, pretending to be a mail client:</p>
<pre style="padding-left: 30px"># telnet smtp.blueyonder.co.uk 25
Connected to smtp.blueyonder.co.uk.
Escape character is '^]'.
550-Administrative prohibition. This IP address is a source of spam. Please
550 Contact <a href="mailto:abuse@blueyonder.co.uk">abuse@blueyonder.co.uk</a> for details of how to fix this.
Connection closed by foreign host.</pre>
<p>Switching off the transparent mail proxy of the server and sending direct to smtp.bluyonder.co.uk using Outlook Express or Thunderbird also gave this same error. Using telnet like this though, just removes the possibility that the email client is not set up correctly.</p>
<p>Okay, so need to tell my ISP &#8211; the IP address owner &#8211; to remove me from the blacklist. To cut a long story short, that proved impossible. There was simply no-one at the ISP with the authority to do so, or even the understanding of what I was asking for.</p>
<p>Next approach: the IP address is poisoned, so let&#8217;s get a new one. Easier said than done. I left the broadband modem off all night, I rebooted it many times, I reboot my server many times, but I just could not shake off that IP address. This almost permanent IP address is kind of nice to have normally, but now I  wanted to change it, it was proving difficult.</p>
<p>After several calls to the ISP, I finally managed to talk to someone who knew about these things. &#8220;Try bypassing your server and connect your PC direct to the broadband modem&#8221;, was his suggestion. I tried that, and behold, a new IP address was allocated. Cool. Just switch back to my server and&#8230;hmm, back to the old IP address.</p>
<p><img class="alignright size-full wp-image-837" src="http://www.consil.co.uk/files/2010/12/surfboard-e1291163901537.jpg" alt="" width="118" height="174" />So the Motorola Surfboard modem &#8211; or perhaps the cable box at the bottom of the street &#8211; was remembering the hardware and trying to allocate the same IP address to the same hardware every time. And it could remember the hardware for at least a full night.</p>
<p>So I guess I would have to change the network card in my server, which was a bit of a bind. Then I struck on this little gem: although the MAC address of the network card is coded into it, the operating system can override (or perhaps reprogram) that MAC address. By changing the MAX address, the network card in the server would look to the cable modem like a different piece of hardware.</p>
<p>I recorded the current MAC address, then added one to it, and issued this command:</p>
<pre style="padding-left: 30px"># ifconfig eth1 hw ether 00:50:FF:E6:B9:4B</pre>
<p>The network card was &#8220;eth1&#8243; and the ethernet (&#8220;ether&#8221;) hardware address was being set to &#8220;00:50:FF:E6:B9:4B&#8221; (it was &#8220;00:50:FF:E6:B9:4<strong>A</strong>&#8221; originally). If you are having this problem with a Windows machine rather than a Linux server, then digging into the driver settings can often give you a box where the MAC address can be edited. Do use this option with care, since MAC addresses are supposed to be unique globally and two machines with identical MAC addresses nearby can play havoc with your network.</p>
<p>One reboot later and I was allocated a new IP address, and email was back online!</p>
<p>Of course, while I am celebrating, someone else will be given my old IP address, be labelled a SPAM creator, and will now have their own problems with their email. I have reported it to the ISP and explained what I think will be happening, and there is not a lot more I can do about it. I feel kind of bad about that, but I have learned never to plug a virus-laden machine into my network again, at least not without some kind of firewall and a virtual private network (VPN) to keep the prying eyes of any virus away from other machines on the network.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.consil.co.uk/blog/2010/12/01/broadband-ip-marked-as-spam-generator/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hallowe&#8217;en Background Ambience</title>
		<link>http://www.consil.co.uk/blog/2010/11/22/halloween-background-sounds/</link>
		<comments>http://www.consil.co.uk/blog/2010/11/22/halloween-background-sounds/#comments</comments>
		<pubDate>Mon, 22 Nov 2010 23:32:55 +0000</pubDate>
		<dc:creator>Jason Judge</dc:creator>
				<category><![CDATA[General Blogging]]></category>
		<category><![CDATA[Open Source/Creative Commons]]></category>

		<guid isPermaLink="false">http://www.consil.co.uk/blog/?p=801</guid>
		<description><![CDATA[Since this was a last minute job for my daughter this Hallowe&#8217;en, there was no time to post this up then, so just consider it an early post for next year. I&#8217;m thinking of late 2011 already, and it&#8217;s not even Christmas yet. This MP3 is just a couple of minutes long, and contains a mix of scary Hallowe&#8217;en sounds. We used it on an iPod set on auto-repeat, with a small speaker by the front door, just to add <a href="http://www.consil.co.uk/blog/2010/11/22/halloween-background-sounds/" title="Read more" class="sprite-wrapper arrow-green-right">...<span class="sprite"></span></a>]]></description>
			<content:encoded><![CDATA[<p>Since this was a last minute job for my daughter this Hallowe&#8217;en, there was no time to post this up then, so just consider it an early post for next year. I&#8217;m thinking of late 2011 already, and it&#8217;s not even Christmas yet.</p>
<p><span id="more-801"></span></p>
<p>This MP3 is just a couple of minutes long, and contains a mix of scary Hallowe&#8217;en sounds. We used it on an iPod set on auto-repeat, with a small speaker by the front door, just to add a bit of spooky atmosphere.</p>
<p>The sounds came from various Creative Commons sources, and was put together using the excellent Open Source <a href="http://audacity.sourceforge.net/" target="_blank">Audacity</a> application. It is not broadcast quality (not that Audacity is not capable of that) but did the job.</p>
<p><a href="http://www.consil.co.uk/files/2010/11/halloween-background.mp3">halloween-background.mp3</a> (5Mbyte)</p>
<p>This is the power of Open Source tools and Creative Commons source: the important thing is not that the stuff is essentially free, it is the fact you are given the opportunity to be creative with the tools and media and to customise it without restriction. The <em>right </em>to do so, given to you through the licensing terms, is where the real power lies.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.consil.co.uk/blog/2010/11/22/halloween-background-sounds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.consil.co.uk/blog/wp-content/uploads/2010/11/halloween-background.mp3" length="5427360" type="audio/mpeg" />
		</item>
		<item>
		<title>Slave Domain Server Using Plesk</title>
		<link>http://www.consil.co.uk/blog/2010/08/06/slave-domain-server-using-plesk/</link>
		<comments>http://www.consil.co.uk/blog/2010/08/06/slave-domain-server-using-plesk/#comments</comments>
		<pubDate>Fri, 06 Aug 2010 08:40:03 +0000</pubDate>
		<dc:creator>Jason Judge</dc:creator>
				<category><![CDATA[General Blogging]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Web Hosting/Linux]]></category>

		<guid isPermaLink="false">http://www.consil.co.uk/blog/?p=713</guid>
		<description><![CDATA[Plesk-based hosting can often suffer from a resilience problem: failure of the DNS for sites it hosts if the server goes down for any reason. Ideally a zone should have a number of domain name servers located in different places. A zone is basically a domain and all its sub-domains. The zone record tells other servers where to find everything for that domain &#8211; where the websites are, the main servers etc. Plesk run on a server or virtual server <a href="http://www.consil.co.uk/blog/2010/08/06/slave-domain-server-using-plesk/" title="Read more" class="sprite-wrapper arrow-green-right">...<span class="sprite"></span></a>]]></description>
			<content:encoded><![CDATA[<p>Plesk-based hosting can often suffer from a resilience problem: failure of the DNS for sites it hosts if the server goes down for any reason.</p>
<p>Ideally a zone should have a number of domain name servers located in different places. A zone is basically a domain and all its sub-domains. The zone record tells other servers where to find everything for that domain &#8211; where the websites are, the main servers etc.</p>
<p>Plesk run on a server or virtual server (VPS) generally provides two name servers. They will be configured automatically when websites are set up on the server, and are very convenient to use. Plesk also allows some customisation of the domain records so that, for example, a sub-domain can point to another server, or the mail server points to your office server.</p>
<p>The problem comes when the server running Plesk is down or inaccessible. A mail server trying to send an email to your domain will suddenly find there is no record anywhere of that domain &#8211; it has basically dissappeared.</p>
<p>The way around this is to use external name servers. By setting up the external name servers as a <em>slave</em> servers, they can be made to automatically keep themselves updated from your <em>master </em>name servers on your hosting machine.</p>
<p>For our domain, I used www.zoneedit.com to set up a slave for one of our zones. The slave was pointed at our hosting server (using its IP address) and that was it for that end &#8211; the zoneedit slave just fetches updates when it is appropriate and updates its own records, putting them onto two geographically-separated name servers of its own.</p>
<p>Back to the domain registration settings, I then needed to add the zoneedit name servers to the domain, giving me four in total (the two on our Plesk hosting and the two on zoneedit). There is no priority assigned to any of these name servers, so a server looking for our website or mail server could go to any of these sources. It is therefore very important to ensure they are all synchronised identically.</p>
<p>One last step was to tell Plesk to allow these name servers to fetch a copy of the zone records. This is not so obvious but is in Plesk under the option:</p>
<p>Server -&gt; DNS Settings -&gt; Common ACL</p>
<p>In here I added the IP addresses of the two zoneedit name servers assigned to my zone, and then the updates simply went ahead.</p>
<p>You can test this works using nslookup command from another server. Create a new sub-domain, then check it can be seen on your Plesk server:</p>
<p>nslookup new.sub-domain.example.com ns.plask-server.example.net</p>
<p>Then try the same command but pointed at the external name server. You will find the external name server cannot see the sub-domain immediately. Try again in an hour &#8211; and it should be there. If not, check your setting and TTL etc.</p>
<p>Hopefully that will give you more resilience; even if your website is down, other severs that your zone points to are still locatable.</p>
<p>One thing that I am still looking for a solution to, is domain aliases. A domain alias for a domain set up in Plesk will not get transferred to the slave name server. Even if the alias is a sub-domain of the main domain, it does not get transferred. So the hosting server will correctly return the IP address for example.com for the alias myalias.example.com, but the slave name servers will not. This is not just a problem for when your hosting server goes down, because there is no priority on the name servers &#8211; all and any could be used at any time for a server to locate your alias domain, and depending on which name server it hits, it is pot luck as to whether it finds it or not. I&#8217;m looking for a solution to this, so any hints appreciated.</p>
<p>I&#8217;m also looking for a decent and cheap slave name server service. zoneedit is good and reliable, and easy to use, but could get costly when we have scores of domains to sync up. Any suggestions?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.consil.co.uk/blog/2010/08/06/slave-domain-server-using-plesk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Losing my keyboard input</title>
		<link>http://www.consil.co.uk/blog/2010/07/15/losing-my-keyboard-input/</link>
		<comments>http://www.consil.co.uk/blog/2010/07/15/losing-my-keyboard-input/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 12:29:22 +0000</pubDate>
		<dc:creator>Jason Judge</dc:creator>
				<category><![CDATA[General Blogging]]></category>
		<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://www.consil.co.uk/blog/?p=679</guid>
		<description><![CDATA[This is something that has been bothering me on the odd occasion for years. It is intermittent, so is something I have been able to live with, but it would be nice to get to the bottom of it. Basically, there is a key combination &#8211; somewhere around the &#8220;A&#8221; on my keyboard, probably involving the control and perhaps the shift keys, and is so easy to accidentally press when not being careful, that locks up all my keyboard input. <a href="http://www.consil.co.uk/blog/2010/07/15/losing-my-keyboard-input/" title="Read more" class="sprite-wrapper arrow-green-right">...<span class="sprite"></span></a>]]></description>
			<content:encoded><![CDATA[<p>This is something that has been bothering me on the odd occasion for years. It is intermittent, so is something I have been able to live with, but it would be nice to get to the bottom of it.</p>
<p>Basically, there is a key combination &#8211; somewhere around the &#8220;A&#8221; on my keyboard, probably involving the control and perhaps the shift keys, and is <em>so easy</em> to accidentally press when not being careful, that locks up all my keyboard input.</p>
<p>When I say &#8220;locks up&#8221;, I mean that the keyboard becomes completely unresponsive. Nothing gets it back, except a full reboot, and if you know how long my PC takes to boot, you would realise it is not very convenient (I do manage to make a cup of tea while it boots, which is a bonus, kind of).</p>
<p>I have tried unplugging and plugging back in the keyboard. I have tried undocking the PC (I use a Toshiba Tecra laptop in a docking bay). I have tried logging off and on again. Yes, I <em>have</em> tried logging off and on again. None of this works; only a full reboot does the job.</p>
<p>It locks up both the external Logitech keyboard and the laptop&#8217;s built-in keyboard, so there appears to be no workaround.</p>
<p>So &#8211; what could this be? I have a feeling it is some kind of &#8220;feature&#8221; that is misbehaving, but cannot think what it could be. I have not even been able to find the key combination purposefully to give me any more clues. It just <em>happens</em>, and when it does I know my fingers were pressing some keys around the &#8220;A&#8221; end of the keyboard.</p>
<p>I have a feeling I will never find a solution to this. Perhaps I need a new laptop.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.consil.co.uk/blog/2010/07/15/losing-my-keyboard-input/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; making sense of theme inheritance with a simple script</title>
		<link>http://www.consil.co.uk/blog/2010/04/14/magento-making-sense-of-theme-inheritance-with-a-simple-script/</link>
		<comments>http://www.consil.co.uk/blog/2010/04/14/magento-making-sense-of-theme-inheritance-with-a-simple-script/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 11:16:07 +0000</pubDate>
		<dc:creator>Jason Judge</dc:creator>
				<category><![CDATA[CMS/Frameworks]]></category>
		<category><![CDATA[e-Commerce]]></category>

		<guid isPermaLink="false">http://www.consil.co.uk/blog/?p=638</guid>
		<description><![CDATA[Trying to make sense of theme inheritance in Magento, I have started to put a simple script together to help navigate the themes installed on a shop. When I say simple, I mean very simple. Jump straight in and have a browse: http://magento.consil.co.uk/themes.php This script is installed in the root directory of our 1.4 test installation. What it gives you is a layered approach. First you select the interface, then the theme within that interface (try default-&#62;modern for example). The <a href="http://www.consil.co.uk/blog/2010/04/14/magento-making-sense-of-theme-inheritance-with-a-simple-script/" title="Read more" class="sprite-wrapper arrow-green-right">...<span class="sprite"></span></a>]]></description>
			<content:encoded><![CDATA[<p>Trying to make sense of theme inheritance in Magento, I have started to put a simple script together to help navigate the themes installed on a shop. When I say simple, I mean <em>very </em>simple. Jump straight in and have a browse:</p>
<p><a href="http://magento.consil.co.uk/themes.php">http://magento.consil.co.uk/themes.php</a></p>
<p>This script is installed in the root directory of our 1.4 test installation.</p>
<p>What it gives you is a layered approach. First you select the interface, then the theme within that interface (try default-&gt;modern for example).</p>
<p>The script will then list all the layout files that make up that theme, and show you where those layout files come from, i.e. which parent themes they are inherited from. A complex theme may consist mostly of its own layout files (the iPhone theme for example). A simpler theme may override just a few layout files, choosing to fall back to the default theme, or the new &#8220;base&#8221; theme in Magento 1.4.</p>
<p>For each layout file, the handles are listed. Each handle provides some unit of functionality in the theme &#8211; usually a block or a widget &#8211; some simple, some very complex. The next step will be to document what all these handles do, and how they get called up. Some are invoked from the Magento core, some from modules, and some from other templates in the theme, so it can all get very complex very quickly, leaving the average themer lost when they only wanted to change a few aspects of a theme.</p>
<p>It is the content of the handles that are the really important part of a theme. The layout files just provide a convenient way to package together a number of handles in one place. The same handle can appear in multiple layout files, and they are simply chained together in alphabetic order (of the name of the layout file).</p>
<p>What the layout files do is allow a module to keep all its handle-based theme functionality in one place. A theme developer could also use it to keep all their theme additions in one place too &#8211; there is no point spreading that functionality all over a custom theme by overriding dozens of layout files if all you want to do is tweak menus and blocks.</p>
<p>By clicking on the &#8220;<a href="http://magento.consil.co.uk/themes.php?interface=default&amp;theme=modern&amp;group=handle">handle</a>&#8221; link in the script, the table gets inverted &#8211; now you get to see all the layout files that each handle is included in.</p>
<p><a href="http://magento.consil.co.uk/themes.php?interface=default&amp;theme=modern&amp;group=handle&amp;handle=catalog_product_view">Selecting a handle</a> will list the contents of each instance of those handles &#8211; the XML instructions to the theme engine.</p>
<p>To take this script further, it would make sense to interpret the content of the handles. Ultimately it should then be possible to do searches on those interpreted instructions to find, say, where a particular block or image is displayed from.</p>
<p>Feedback is welcomed &#8211; is this any use? Should I publish the script? Does anyone want to expand on it, perhaps packaging it into a module to help theme developers?</p>
<p><strong>Download the script here: <a href='http://www.consil.co.uk/files/2010/04/themes.zip'>themes.zip</a> (contains theme.php, to be copied to your Magento root directory).</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.consil.co.uk/blog/2010/04/14/magento-making-sense-of-theme-inheritance-with-a-simple-script/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Faxing from your desktop</title>
		<link>http://www.consil.co.uk/blog/2010/04/14/faxing-from-your-desktop/</link>
		<comments>http://www.consil.co.uk/blog/2010/04/14/faxing-from-your-desktop/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 10:28:19 +0000</pubDate>
		<dc:creator>Jason Judge</dc:creator>
				<category><![CDATA[General Blogging]]></category>

		<guid isPermaLink="false">http://www.consil.co.uk/blog/?p=634</guid>
		<description><![CDATA[Occasionally there is a need to send a fax, but it can be such a rare occurrence that it is hardly worth keeping a fax permanently set up, or even keeping track of where you last put the fax modem cable for your laptop. I took a look at free or cheap online fax sending services in the UK, and many offer lots of promise in the Google search results, but few deliver once you go through their long registration <a href="http://www.consil.co.uk/blog/2010/04/14/faxing-from-your-desktop/" title="Read more" class="sprite-wrapper arrow-green-right">...<span class="sprite"></span></a>]]></description>
			<content:encoded><![CDATA[<p>Occasionally there is a need to send a fax, but it can be such a rare occurrence that it is hardly worth keeping a fax permanently set up, or even keeping track of where you last put the fax modem cable for your laptop.</p>
<p>I took a look at free or cheap online fax sending services in the UK, and many offer lots of promise in the Google search results, but few deliver once you go through their long registration processes &#8211; usually &#8220;free&#8221; means &#8220;subscribe monthly&#8221; by the time you get to the site.</p>
<p>I did come across <a href="http://www.freepopfax.com/">FreePopFax</a> though that seems to work a treat. Just upload your Word for PDF document, enter the recipient&#8217;s fax number and your e-mail address, and off it goes. You then get an e-mail when the fax is sent.</p>
<p>So far as I can see, FreePopFax is an affiliate of the monthly subscription service <a href="http://www.popfax.com/">PopFax</a>, but adverts are inserted to pay for the service. Bear that in mind &#8211; the recipient may receive adverts.</p>
<p>I would add a disclaimer: I have no idea who is reading these faxes en-route, so don&#8217;t use it for anything that contains credit card or other personal details that could result in identity theft, but for the odd fax, give it a go.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.consil.co.uk/blog/2010/04/14/faxing-from-your-desktop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving a Plesk Database Between Domains</title>
		<link>http://www.consil.co.uk/blog/2010/04/07/moving-a-plesk-database-between-domains/</link>
		<comments>http://www.consil.co.uk/blog/2010/04/07/moving-a-plesk-database-between-domains/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 23:56:32 +0000</pubDate>
		<dc:creator>Jason Judge</dc:creator>
				<category><![CDATA[Web Hosting/Linux]]></category>

		<guid isPermaLink="false">http://www.consil.co.uk/blog/?p=628</guid>
		<description><![CDATA[Note: I have only tried this on Plesk 8.6. If you have used this technique on any other versions of Plesk, please let us know &#8211; whether it worked the same way or not. The Plesk web management interface is pretty cool. There are lots of sophisticated things you may want to do on a web server, but 99% of those tasks are encapsulated into the admin screens provided by Plesk; it simply gets the job done of managing web <a href="http://www.consil.co.uk/blog/2010/04/07/moving-a-plesk-database-between-domains/" title="Read more" class="sprite-wrapper arrow-green-right">...<span class="sprite"></span></a>]]></description>
			<content:encoded><![CDATA[<p><strong><em>Note: I have only tried this on Plesk 8.6. If you have used this technique on any other versions of Plesk, please let us know &#8211; whether it worked the same way or not.</em></strong></p>
<p>The Plesk web management interface is pretty cool. There are lots of sophisticated things you may want to do on a web server, but 99% of those tasks are encapsulated into the admin screens provided by Plesk; it simply gets the job done of managing web hosting.</p>
<p>Every now and then you will probably want to reorganise the domains, clients and databases within a server. One task includes moving a database from one domain to another.</p>
<p>At the server level there is no concept of a database being owned by a domain &#8211; all databases are global to the server. Within Plesk, however, each domain has its own associated databases which can only be managed from within the account that owns that domain.</p>
<p>To move a database to another domain, you can export it, delete the old database, create a new one in the new domain, then reimport the database. There is an easier way though.</p>
<p>Log into the server using ssh then issue this command to get into the MySQL command line tool:</p>
<p><code>$ mysql -u admin -p -D psa</code></p>
<p>You will need to enter your Plesk admin password.</p>
<p>Next take a look at the current database list:</p>
<p><code>mysql&gt; select * from data_bases;</code></p>
<pre>+----+-------------------+-------+--------+--------------+-----------------+
| id | name              | type  | dom_id | db_server_id | default_user_id |
+----+-------------------+-------+--------+--------------+-----------------+
|  1 | consilience_db    | mysql |      1 |            1 |               1 |
|  2 | client1_db        | mysql |     18 |            1 |               2 |
| 29 | client2_db        | mysql |      6 |            1 |               4 |
+----+-------------------+-------+--------+--------------+-----------------+
3 rows in set (0.00 sec)</pre>
<p>Each database will be listed with their name and &#8220;dom_id&#8221; (domain ID). Find the ID of the database you want to move, and find the dom_id of the domain you want to move it to (the dom_id will appear in the URLs used to manage the domain in the Plesk admin screens). Then update the dom_id, for example to set database ID 29 to be owned by domain 18:</p>
<p><code>mysql&gt; update data_bases set dom_id = 18 where id = 29;</code></p>
<p>That&#8217;s it &#8211; the database will now appear under the new domain in Plesk.</p>
<p>This will only work on a single server. If you are migrating between servers then there are other tools for the job.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.consil.co.uk/blog/2010/04/07/moving-a-plesk-database-between-domains/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

