<?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>Anything goes...blogged by David Hazelden &#187; Computing and IT</title>
	<atom:link href="http://www.dpeh.co.uk/topics/computing-and-it/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dpeh.co.uk</link>
	<description>Every day blog about anything that interests me.</description>
	<lastBuildDate>Sat, 01 Oct 2011 14:05:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>x01 Setup &#8211; Xen &#8211; Personal Notes</title>
		<link>http://www.dpeh.co.uk/2010/12/23/x01-setup-xen-personal-notes/</link>
		<comments>http://www.dpeh.co.uk/2010/12/23/x01-setup-xen-personal-notes/#comments</comments>
		<pubDate>Thu, 23 Dec 2010 21:54:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computing and IT]]></category>

		<guid isPermaLink="false">http://www.dpeh.co.uk/?p=263</guid>
		<description><![CDATA[yum install kernel-xen xen virt-manager Update /boot/grub/menu.lst to select the xen kernel (make sure it exists in boot) Reboot Install Mercurial (can&#8217;t use yum, but can get it from RPM Forge, which needs enabling using the commands here: https://rpmrepo.org/RPMforge/Using]]></description>
			<content:encoded><![CDATA[<ol>
<li>yum install kernel-xen xen virt-manager</li>
<li>Update /boot/grub/menu.lst to select the xen kernel (make sure it exists in boot)</li>
<li>Reboot</li>
<li>Install Mercurial (can&#8217;t use yum, but can get it from RPM Forge, which needs enabling using the commands here:
<p>https://rpmrepo.org/RPMforge/Using</li>
<li></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.dpeh.co.uk/2010/12/23/x01-setup-xen-personal-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protecting your Data</title>
		<link>http://www.dpeh.co.uk/2010/05/15/protecting-your-data/</link>
		<comments>http://www.dpeh.co.uk/2010/05/15/protecting-your-data/#comments</comments>
		<pubDate>Sat, 15 May 2010 08:46:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computing and IT]]></category>
		<category><![CDATA[Science and Technology]]></category>
		<category><![CDATA[backups]]></category>
		<category><![CDATA[hard drives]]></category>
		<category><![CDATA[heat]]></category>
		<category><![CDATA[protecting data]]></category>
		<category><![CDATA[raid]]></category>

		<guid isPermaLink="false">http://www.dpeh.co.uk/?p=231</guid>
		<description><![CDATA[Data is valuable! Not always to others, but I have files like photos,  old websites I developed, exam work, TV shows I&#8217;ve recorded (OMG it&#8217;s illegal, it was on a VHS tape too) on my drives, which I migrate to every new PC I purchase, it&#8217;s been 4 or 5 since 1996 (I&#8217;m 26 next [...]]]></description>
			<content:encoded><![CDATA[<p>Data is valuable!</p>
<p>Not always to others, but I have files like photos,  old websites I developed, exam work, TV shows I&#8217;ve recorded (OMG it&#8217;s illegal, it was on a VHS tape too) on my drives, which I migrate to every new PC I purchase, it&#8217;s been 4 or 5 since 1996 (I&#8217;m 26 next week, that&#8217;s 14 years using PC&#8217;s.</p>
<p>I&#8217;ve got a few TB&#8217;s of data, not massive, there&#8217;s people I know who download all day every day. But here&#8217;s my tips for protecting your data:</p>
<h3>Tip 1 &#8211; Protect your Hard Drives from Heat</h3>
<p>I learned the hard way in the 2002, all 3 of my hard drives failed due to heat stress, I had a small room, a computer that was constantly on, it&#8217;s a bit like having a radiator on during the summer months, it was 30 degrees and more in the summer in that room.</p>
<p>After losing all my data and having to restore what I had left from CD-R backups, I realised the drives didn&#8217;t have adequate airflow in the hard drive cages of old (all squished together in the 3.5 inch bays), so I mounted them in the wider 5 1/4 bays where most people had their cd drives, I had a few spare slots, so it was fine. Saying that, even some modern cases still squish all the drives into a small space.</p>
<p>A few years later, I found some hard drive coolers, they also seem to work, I&#8217;ve not had a hard drive failure since 2002..until this week May 9th 2010. I have a Dell XPS, it has 6x hard drives in, and as you might guess, the hard drives are all crammed together, there&#8217;s no air space around them, a Western Digital Raptor 10k rpm drive failed me, which is a high quality drive, so it shows that, constant above average heat will kill drives.</p>
<p>So, do whatever you can to keep your hard drives cool, install fans, use rails and mount them in the optical bases, and put as many screws into them as you can, if you only use 2 screws, you&#8217;ll get an uneven transfer of heat through them to the case, which can act as a passive heat sink to some effect, water cooling is ace if you can afford it.</p>
<h3>Tip 2 &#8211; Raid 1 is a must</h3>
<p>All my data is mirrored, and so is the operating system.  I have two 1.5Tb hard drives set-up with Raid 1, okay so I&#8217;m losing 1.5Gb of storage capacity by mirroring the drives, but if I have a hard drive failure, my data won&#8217;t be lost, if you lose a single drive in Raid 0, you lose everything on both drives, keep than in mind when you&#8217;re looking for a slightly faster setup, I personally don&#8217;t feel it&#8217;s worth it for my data.</p>
<p>My second raid array is four Hard Drives, they were 10,000 RPM Western Digital 160Gb raptors, which is where my operating system and applications reside. I initially tried raid 5, but I found it far too slow for every day use as well as gaming, whilst you get more room to store data, it really is slow, slower than mirroring due to the way raid works, I do accept it depends on the raid controller.</p>
<p>Raid Controllers generally pass the hard work to the CPU (I have 4 cores, so not a big deal) when the raid is embedded in the motherboard, and on low end (less than £100 usually) controllers, it&#8217;s only the high end corporate cards that can actually do the hard work on the raid card without taxing the cpu, sometimes up to 5% cpu usage I&#8217;ve noticed on my 2.93Ghz quad core (it&#8217;s getting old now), typically it&#8217;s one or two percent through normal use.</p>
<p>So after Raid 5, I went for Raid 1 + 0, which is mirroring and striping, without going too techy about how data is patterned on each drive, all you need to know is, with four drives, 2 drives have cloned data (mirrored), and 2 drives end up with the data spanned across both in a way to increase performance.</p>
<p>Okay, so you already know I favour redundancy over the space the extra 2 drives could offer, but the striping also gives increased performance, which is worth it in my opinion.</p>
<p>This setup was put to the test this week, I had a hard drive (a raptor) fail, when I turned my PC on it said (degraded array), so I had to work out which drive was broken, the Nvidia app tells you the usb channel (so the bios on my board), I did it the easy way, the drive wasn&#8217;t powering on, so I just put my index finger against the side of each when I powered the system on, to feel the vibrations of the drive, second touch I found an abnormal one, I could feel it clicking&#8230;</p>
<p>So I pulled it, and stuffed a 7 year old 300Gb drive in (it&#8217;s bigger than the raptors, and much slower, but I&#8217;ll look into buying more drives soon, it will be fine until then), went into the Nvidia Storage Application, and told it to rebuild the array onto the new disc.</p>
<p>It looks like this:</p>
<p style="text-align: center;">
<div id="attachment_232" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.dpeh.co.uk/wp-content/uploads/2010/05/failed-hdd.jpg"><img class="size-medium wp-image-232" title="failed hdd - nvidia app rebuilding" src="http://www.dpeh.co.uk/wp-content/uploads/2010/05/failed-hdd-300x190.jpg" alt="" width="300" height="190" /></a><p class="wp-caption-text">Click to have a look.</p></div>
<p style="text-align: left;">So clarify:</p>
<ul>
<li>My Computer never stopped working. (no downtime apart from a reboot or two)</li>
<li>I never Lost any Data. (the mirroring and striping had the redundancy to keep my data safe)</li>
<li>I was able to build the array onto a spare drive (identicle drives are needed unless the spare is a bit bigger in capacity).</li>
<li>I&#8217;ll be able to upgrade my drives to a higher capacity by pulling one out and replacing them 1 by one, and asking for a rebuild each time.</li>
</ul>
<p>In my opinion, Raid 1 is a must for everyone who hates having to reinstall their OS and copy their data back from backups&#8230;yes, you should do those 2, I have an External 500Gb drive, which I clone my OS to as well, just in case my Raid fails, or more likely, Windows decides to have a hissy fit.</p>
<p>Keep your drives cool, build redundancy in (drives are cheap enough nowadays), and backup (which I&#8217;ll leave to another post).</p>
<p>(this article is provided &#8220;As Is&#8221;, and you use it as your own risk, such as using your fingers to feel the hard drives vibrate, or installing screws in your drives).</p>
<p>If in doubt, get an IT technician or engineer to do the work for you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dpeh.co.uk/2010/05/15/protecting-your-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slipstreaming SATA Drivers onto a Windows XP CD</title>
		<link>http://www.dpeh.co.uk/2009/04/12/slipstreaming-sata-drivers-onto-a-windows-xp-cd/</link>
		<comments>http://www.dpeh.co.uk/2009/04/12/slipstreaming-sata-drivers-onto-a-windows-xp-cd/#comments</comments>
		<pubDate>Sun, 12 Apr 2009 16:01:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computing and IT]]></category>
		<category><![CDATA[Pick and Mix]]></category>
		<category><![CDATA[customising]]></category>
		<category><![CDATA[operating systems]]></category>
		<category><![CDATA[windows xp]]></category>

		<guid isPermaLink="false">http://www.dpeh.co.uk/?p=118</guid>
		<description><![CDATA[When Windows XP came out, SATA was cutting edge, and it didn&#8217;t detect sata drives during installation, which is a problem if you want windows to install and run from one of those drives. It&#8217;s fine if you&#8217;ve got a floppy drive as you can supply the drivers that way. However, most modern laptops have [...]]]></description>
			<content:encoded><![CDATA[<p>When Windows XP came out, SATA was cutting edge, and it didn&#8217;t detect sata drives during installation, which is a problem if you want windows to install and run from one of those drives. It&#8217;s fine if you&#8217;ve got a floppy drive as you can supply the drivers that way. However, most modern laptops have done away with them, and if like me, you can&#8217;t let go of XP, the easiest way of making those sata hard drives appear is to slipstream (basically insert the driver into the correct location on the windows cd) the drivers and windows will detect the drives automatically.</p>
<p>The good thing is, once you&#8217;ve modified your genuine xp disk, you&#8217;ve got a personal version that&#8217;s very useful for reinstallations on that machine.</p>
<p>Here is how you do it:</p>
<p>1.) Download Nlite from this website: http://www.nliteos.com/download.html<br />
2.) Install it, we all know the drill, point click, point click, done.<br />
3.) Run Nlite, it looks something like this:</p>
<p style="text-align: center;"><a href="http://www.dpeh.co.uk/wp-content/uploads/2009/04/welcome-to-nlite.jpg"><img class="size-medium wp-image-121 aligncenter" title="welcome-to-nlite" src="http://www.dpeh.co.uk/wp-content/uploads/2009/04/welcome-to-nlite-300x234.jpg" alt="welcome-to-nlite" width="300" height="234" /></a></p>
<p>3.) Insert your Genuine copy of Windows XP, it will ask you for a location to copy the files to on your hdd (typically 5-600mb of files)</p>
<p><a href="http://www.dpeh.co.uk/wp-content/uploads/2009/04/copy-setup-files-to-location.jpg"><img class="aligncenter size-medium wp-image-122" title="copy-setup-files-to-location" src="http://www.dpeh.co.uk/wp-content/uploads/2009/04/copy-setup-files-to-location-300x234.jpg" alt="copy-setup-files-to-location" width="300" height="234" /></a></p>
<p>4.) Choose the Tasks &#8220;Drivers&#8221; &amp; &#8220;Create ISO&#8221;. Click Next</p>
<p><a href="http://www.dpeh.co.uk/wp-content/uploads/2009/04/choose-tasks.jpg"><img class="aligncenter size-medium wp-image-123" title="choose-tasks" src="http://www.dpeh.co.uk/wp-content/uploads/2009/04/choose-tasks-300x234.jpg" alt="choose-tasks" width="300" height="234" /></a></p>
<p>5.) If you&#8217;ve not downloaded the drivers you want to slipstream you should do it now. Normally they come compressed in an archive, you need to extract it, and verify there is a Setup Information File (.inf).<br />
6.) Choose your Driver, if there are multiples, use that option and it will add them all, PNP and Text files can be a bit hit and miss, there is probably a way to choose which one is required, but I don&#8217;t make these discs very often&#8230;once a year maybe. You&#8217;ll have to experiment. You can always try adding the same driver with both options.</p>
<p><a href="http://www.dpeh.co.uk/wp-content/uploads/2009/04/drivers-selected.jpg"><img class="aligncenter size-medium wp-image-124" title="drivers-selected" src="http://www.dpeh.co.uk/wp-content/uploads/2009/04/drivers-selected-300x234.jpg" alt="drivers-selected" width="300" height="234" /></a><a href="http://www.dpeh.co.uk/wp-content/uploads/2009/04/drivers-selected.jpg"><img class="aligncenter size-medium wp-image-124" title="drivers-selected" src="http://www.dpeh.co.uk/wp-content/uploads/2009/04/drivers-selected-300x234.jpg" alt="drivers-selected" width="300" height="234" /></a><br />
7.) Insert a Blank CDR and Choose Direct Burn after the ISO has been created.  If you have time I would suggest using the verify option to make sure the data has been written to the disc accurately. Click Burn</p>
<p><a href="http://www.dpeh.co.uk/wp-content/uploads/2009/04/direct-burn-to-cdr.jpg"><img class="aligncenter size-medium wp-image-119" title="direct-burn-to-cdr" src="http://www.dpeh.co.uk/wp-content/uploads/2009/04/direct-burn-to-cdr-300x234.jpg" alt="direct-burn-to-cdr" width="300" height="234" /></a><br />
8.) Watch the progress bar, or get a Cuppa, it should say &#8220;Write Successful&#8221; when it&#8217;s completed.<br />
9.) Insert your new custom XP CDR and everything should work&#8230;hopefully <img src='http://www.dpeh.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.dpeh.co.uk/2009/04/12/slipstreaming-sata-drivers-onto-a-windows-xp-cd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reset a Modx Manager Password using SQL</title>
		<link>http://www.dpeh.co.uk/2009/04/12/reset-a-modx-manager-password-using-sql/</link>
		<comments>http://www.dpeh.co.uk/2009/04/12/reset-a-modx-manager-password-using-sql/#comments</comments>
		<pubDate>Sun, 12 Apr 2009 12:35:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computing and IT]]></category>
		<category><![CDATA[Pick and Mix]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[modx]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.dpeh.co.uk/?p=114</guid>
		<description><![CDATA[If you&#8217;ve forgotten your manager password and you have access to the database and can issue mysql commands (phpmyadmin, or from a mysql command prompt). Use this to reset an account password, tbh, I would of hoped this system was salted (instead of using standard md5, maybe it was done intentionally to allow for this). [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve forgotten your manager password and you have access to the database and can issue mysql commands (phpmyadmin, or from a mysql command prompt). Use this to reset an account password, tbh, I would of hoped this system was salted (instead of using standard md5, maybe it was done intentionally to allow for this).</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">UPDATE modx_manager_users SET &nbsp;PASSWORD &nbsp;= MD5(&#8216;adminpassword&#8217;) &nbsp;WHERE username = &nbsp;&#8217;admniusername&#8217;;
</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">(NOTE: Sorry if this didn&#8217;t work for you before, it seems the wordpress plugin didn&#8217;t encode the apostrophees into html character entities.)</div>
</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.dpeh.co.uk/2009/04/12/reset-a-modx-manager-password-using-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cpanel &#8211; Pureftpd Max Clients Per IP Limit Reached</title>
		<link>http://www.dpeh.co.uk/2009/04/11/cpanel-pureftpd-max-clients-per-ip-limit-reached/</link>
		<comments>http://www.dpeh.co.uk/2009/04/11/cpanel-pureftpd-max-clients-per-ip-limit-reached/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 18:35:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computing and IT]]></category>
		<category><![CDATA[Pick and Mix]]></category>
		<category><![CDATA[centos 5.2]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[pure-ftpd]]></category>

		<guid isPermaLink="false">http://www.dpeh.co.uk/?p=111</guid>
		<description><![CDATA[I had a few clients with a fast internet connection running into the pure-ftpd max clients per ip address limit of 8. Because it was happening quite frequently, I made the changes in the pure-ftpd config file located here: /etc/pure-ftpd.conf You can edit the file like so: nano /etc/pure-ftpd.conf Ctrl + W &#40;for search&#41; Type: [...]]]></description>
			<content:encoded><![CDATA[<p>I had a few clients with a fast internet connection running into the pure-ftpd max clients per ip address limit of 8. Because it was happening quite frequently, I made the changes in the pure-ftpd config file located here:</p>
<p>/etc/pure-ftpd.conf</p>
<p>You can edit the file like so:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">nano</span> /etc/pure-ftpd.conf</div>
</li>
<li class="li1">
<div class="de1">Ctrl + W <span class="br0">&#40;</span><span class="kw1">for</span> search<span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">Type: <span class="st0">&quot;MaxClientsPerIP&quot;</span> Return / Enter to issue the <span class="kw3">command</span></div>
</li>
<li class="li1">
<div class="de1">Change the value to something higher. Like <span class="nu0">20</span>.</div>
</li>
</ol>
</div>
<p>The normal limit is actually 20, so I&#8217;m not sure why Cpanel have opted for it to be so low. There is actually a server wide setting of max clients, so technically, 2-3 users could reach this limit, so it might be an idea to increase this value as well.</p>
<pre></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.dpeh.co.uk/2009/04/11/cpanel-pureftpd-max-clients-per-ip-limit-reached/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to categorise a blog?</title>
		<link>http://www.dpeh.co.uk/2009/04/11/how-to-categorise-a-blog/</link>
		<comments>http://www.dpeh.co.uk/2009/04/11/how-to-categorise-a-blog/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 13:40:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computing and IT]]></category>
		<category><![CDATA[Ideas and Thoughts]]></category>
		<category><![CDATA[Pick and Mix]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[semantics]]></category>
		<category><![CDATA[thoughts and ideas]]></category>

		<guid isPermaLink="false">http://www.dpeh.co.uk/?p=96</guid>
		<description><![CDATA[I&#8217;m in a dilemma currently, how do I categorise the articles I write on my personal blog. One of the firsts things I did is take a look how Youtube categories content (http://www.youtube.com/browse), it&#8217;s pretty broad and generalised. I guess it&#8217;s done to make it easy to choose a category, the first one on the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m in a dilemma currently, how do I categorise the articles I write on my personal blog. One of the firsts things I did is take a look how Youtube categories content (http://www.youtube.com/browse), it&#8217;s pretty broad and generalised. I guess it&#8217;s done to make it easy to choose a category, the first one on the list is:<br />
&#8220;Cars and Vehicles&#8221;, now, if it was me, I think that&#8217;s too high up in category depth, cars and vehicles are a form of technology, and they are both forms of Transportation. But I also guess that some people think of &#8220;Transportation&#8221; in terms of &#8220;Trains, Planes, Taxis&#8221;, or &#8220;Public Transportation&#8221; rather than their own Personal vehicles. I would also guess that youtube put the most popular categories, at the root page for category selection. Interestly though, they don&#8217;t actually have sub-categories. So they have basically made categories which allow for easy selection of the most popular videos and pasttimes people are likely to film.</p>
<p>To be honest, looking there didn&#8217;t really help me, cause I&#8217;m just arguing with myself about whether I should keep it simple, or have specific meanful categories and sub-categories. Then about 5 seconds later I think, I doubt most people care, as long as the posts are grouped together into categories that make sense. Then my GUI developer taps on me on the shoulder saying, people should be able to find what they want within a couple of clicks.</p>
<p>I will state, this is my Personal Blog, and it&#8217;s not just going to be about technology, internet development, it will include my personal thoughts, maybe comments on sports, who knows. Anyway&#8230;here goes, quickfire draft 1:</p>
<ul>
<li>Computing &amp; IT</li>
<li>Everyday Life</li>
<li>Entertainment</li>
<li>Science &amp; Technology</li>
<li>Travel &amp; Events</li>
<li>News and Politics</li>
<li>Ideas and Thoughts</li>
<li>Pick and Mix</li>
</ul>
<p>Okay that was easy, I took some (okay a lot) of the youtube categories. Here&#8217;s something that annoys me, surely &#8220;Comedy&#8221;, &#8220;Gaming&#8221;, &#8220;Sport&#8221;, &#8220;Music&#8221; is actually a form of &#8220;Entertainment&#8221;. They all overlap horribly, even &#8220;Cars and Vehicles&#8221; could actually be posted under &#8220;News and Politics&#8221; if it&#8217;s something current like &#8220;Fuel Prices reach £2 a Gallon&#8221;, I predict that within the next 10 years, you heard it here first.</p>
<p>You know, I&#8217;m going to stop there, cause I&#8217;ve realised you can&#8217;t categorise life that easily, in fact, I now understand why people get paid a lot of money just choosing what category a post should be published under&#8230;wait..they are glorified libarians. If you&#8217;ve been to a library, you&#8217;ll often find a book you want is actually under a section you wouldn&#8217;t expect&#8230;someone has to make tough choices thats for sure, and you definetely can&#8217;t please everyone, like me.</p>
<p>There&#8217;s no draft 2 for now&#8230;.maybe when I&#8217;ve written a few hundred articles I might come back and look at this, and say, what the hell was I thinking.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dpeh.co.uk/2009/04/11/how-to-categorise-a-blog/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Installing iftop &#8211; Centos 5.2</title>
		<link>http://www.dpeh.co.uk/2009/04/10/installing-iftop-centos-52/</link>
		<comments>http://www.dpeh.co.uk/2009/04/10/installing-iftop-centos-52/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 13:19:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computing and IT]]></category>
		<category><![CDATA[Pick and Mix]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[centos 5.2]]></category>
		<category><![CDATA[command promp]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[traffic]]></category>

		<guid isPermaLink="false">http://www.dpeh.co.uk/?p=92</guid>
		<description><![CDATA[iftop isn&#8217;t available to be installed with yum. So we need to install it using rpm. First thing we do is visit the official iftop website and download the rpm for redhat. http://www.ex-parrot.com/~pdw/iftop/ If you scroll down, you&#8217;ll find the latest version. At the time of writing this I used the following command from my [...]]]></description>
			<content:encoded><![CDATA[<p>iftop isn&#8217;t available to be installed with yum. So we need to install it using rpm.</p>
<p>First thing we do is visit the official iftop website and download the rpm for redhat.</p>
<p>http://www.ex-parrot.com/~pdw/iftop/</p>
<p>If you scroll down, you&#8217;ll find the latest version. At the time of writing this I used the following command from my secure shell prompt:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw3">cd</span> /usr/<span class="kw3">local</span>/</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">wget</span> http://checksuite.sourceforge.net/dl/iftop<span class="nu0">-0.16</span><span class="nu0">-0</span>.i386.rpm</div>
</li>
</ol>
</div>
<p>Then I tried to install it:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">rpm -i iftop iftop<span class="nu0">-0.16</span><span class="nu0">-0</span>.i386.rpm</div>
</li>
</ol>
</div>
<p>No luck, it requires a dependency called:  libpcap. So I did a search using yum for it:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">yum search libpcap</div>
</li>
</ol>
</div>
<p>Bingo, found libpcap.i386. So I tell yum to install it for me.</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">yum <span class="kw2">install</span> libpcap.i386</div>
</li>
</ol>
</div>
<p>Turns out it&#8217;s already installed, so I tried the development library for good measure, no difference. Then I tried this command:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">/sbin/ldconfig -p | <span class="kw2">grep</span> <span class="st0">&quot;libpcap&quot;</span></div>
</li>
</ol>
</div>
<p>The file I need &#8220;libpcap.so.0.6.2&#8243; is actually located here: /usr/lib/libpcap.so.0.9.4</p>
<p>As you can see, it&#8217;s the wrong version, so I&#8217;m going to create a link to it.</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">ln</span> -s /usr/lib/libpcap.so<span class="nu0">.0</span><span class="nu0">.9</span><span class="nu0">.4</span> /usr/lib/libpcap.so<span class="nu0">.0</span><span class="nu0">.6</span><span class="nu0">.2</span></div>
</li>
</ol>
</div>
<p>Still couldn&#8217;t install it via rpm -i&#8230;.so time to try with no dependencies:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">rpm -ivh &#8211;nodeps iftop<span class="nu0">-0.16</span><span class="nu0">-0</span>.i386.rpm</div>
</li>
</ol>
</div>
<p>Try running iftop by typing this:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">iftop</div>
</li>
</ol>
</div>
<p>Good Luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dpeh.co.uk/2009/04/10/installing-iftop-centos-52/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Disk Space Usage &#8211; Linux</title>
		<link>http://www.dpeh.co.uk/2009/04/08/disk-space-usage-linux/</link>
		<comments>http://www.dpeh.co.uk/2009/04/08/disk-space-usage-linux/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 21:37:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computing and IT]]></category>
		<category><![CDATA[Pick and Mix]]></category>
		<category><![CDATA[command promp]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[usage]]></category>

		<guid isPermaLink="false">http://www.dpeh.co.uk/?p=84</guid>
		<description><![CDATA[What&#8217;s taking up all the space? A command prompt try some of the examples I list below: du &#8211;help This shows all the parameters you can supply the &#8220;du&#8221; command with. Typical combinations I use are as follows: du -h #human readable characters du -c #grand total displayed at end du * -s #summarise all [...]]]></description>
			<content:encoded><![CDATA[<p>What&#8217;s taking up all the space?</p>
<p>A command prompt try some of the examples I list below:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">du</span> &#8211;<span class="kw3">help</span></div>
</li>
</ol>
</div>
<p>This shows all the parameters you can supply the &#8220;du&#8221; command with. Typical combinations I use are as follows:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">du</span> -h <span class="re3">#human readable characters</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">du</span> -c <span class="re3">#grand total displayed at end</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">du</span> * -s <span class="re3">#summarise all folders</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">du</span> * -sc <span class="re3">#summarise and total</span></div>
</li>
<li class="li2">
<div class="de2"><span class="kw2">du</span> * -scm <span class="re3">#summarise, total, Mb</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">du</span> /home/mydir <span class="re3">#show the disk usage of a certain directory</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">du</span> -ah | <span class="kw2">sort</span> -n <span class="re3">#display</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">du</span> -sk .<span class="br0">&#91;</span>A-z<span class="br0">&#93;</span>* *|sort -n <span class="re3">#all files and subs within current directory</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">du</span> /home/mydir -sk .<span class="br0">&#91;</span>A-z<span class="br0">&#93;</span>* *|sort -n</div>
</li>
<li class="li2">
<div class="de2"><span class="kw2">du</span> * -scm | <span class="kw2">awk</span> <span class="st0">&#8216;{print $1 &quot;Mb &nbsp; &nbsp;&gt;&gt;&gt; &nbsp; &nbsp;&quot; $2}&#8217;</span> | <span class="kw2">sort</span> -n <span class="re3">#sorted and <span class="kw1">in</span> a Mbytes</span></div>
</li>
</ol>
</div>
<p>You can muck around with displaying it in Megabytes (-m), Bytes (-b), but there are limitations, like files under 1Mb get shown as 1Mb&#8230;<br />
Another alternative I came across is:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">find</span> . -<span class="kw2">size</span> +1M</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">find</span> . -<span class="kw2">size</span> +10M</div>
</li>
</ol>
</div>
<p>If you&#8217;re interested in display usage a partition level, try the following commands:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">df</span> -h -T</div>
</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.dpeh.co.uk/2009/04/08/disk-space-usage-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mollom &#8211; 5 Month Result &#8211; It works! Drupal 6 Content Quality Control Module (Anti Spam)</title>
		<link>http://www.dpeh.co.uk/2009/04/08/mollom-5-month-result-it-works-drupal-6-content-quality-control-module-anti-spam/</link>
		<comments>http://www.dpeh.co.uk/2009/04/08/mollom-5-month-result-it-works-drupal-6-content-quality-control-module-anti-spam/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 18:24:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computing and IT]]></category>
		<category><![CDATA[Pick and Mix]]></category>
		<category><![CDATA[addon]]></category>
		<category><![CDATA[anti]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.dpeh.co.uk/?p=75</guid>
		<description><![CDATA[Late last October, I was hunting for a solution to the ever increasing malicious content that gets posted through site forms on drupal sites  (that might be unfair, sites in general!). I had already tried out the Captcha module for a few months, but the module was buggy at the time (I believe it was [...]]]></description>
			<content:encoded><![CDATA[<p>Late last October, I was hunting for a solution to the ever increasing malicious content that gets posted through site forms on drupal sites  (that might be unfair, sites in general!).</p>
<p>I had already tried out the <a title="Drupal 6 Captcha Module" href="http://drupal.org/project/captcha">Captcha</a> module for a few months, but the module was buggy at the time (I believe it was a quick port from drupal 5), and fixes generally involved core hacks so I wasn&#8217;t keen on that at the time, I can&#8217;t remember the exact reason, it might come back to me&#8230;and I&#8217;ll edit this. In fact looking back, the module still hasn&#8217;t been updated regularly for a while, although there is a new Beta Release Candidate (3) that came out yesterday (7th of april 2009), and the previous release was 2008-Apr-11 2008&#8230;almost a year, you get my point.</p>
<p>Anyway, I came across the <a title="Mollom" href="http://mollom.com/">Mollom</a> module, which putting it simply, sends your content through the mollum servers for analysis, and either gives your site submissions the thumbs or down. It&#8217;s pretty damn accurate, here are some figures from their website:</p>
<blockquote><p>Mollom is currently protecting <strong>7,367</strong> active websites. The average efficiency is <strong>99.95%</strong>.  This means that only 5 in 10,000 spam messages were not caught.  Mollom has caught <strong>51,266,317</strong> spam messages since it started.  Today we caught <strong>437,408</strong> spam messages.  On average, <strong>85%</strong> of all messages are spam.</p></blockquote>
<p>You can view their statistics scorecard <a title="Mollum Scorecard" href="http://mollom.com/scorecard">here</a></p>
<p>Additionally, the module worked with drupal 6 pretty much flawlessly, and was a 15 minute installation. That&#8217;s damn nice considering how effective it has been on one of the sites I maintain, check out the module statistics (you can make this available via the drupal permissions system).</p>
<p><a href="http://www.dpeh.co.uk/wp-content/uploads/2009/04/mollomworks.jpg"><img class="aligncenter size-medium wp-image-74" title="mollomworks" src="http://www.dpeh.co.uk/wp-content/uploads/2009/04/mollomworks-300x276.jpg" alt="mollomworks" width="300" height="276" /></a></p>
<p>I will point out, if your website grows, you will probably run into a situation where you have to upgrade to a mollum plus account, which is 1 EURO a roughly, considering it&#8217;s killing tons of spam, with hardly any false positives, I&#8217;d happily pay for it. You can view more details of their pricing model <a title="Mollom Pricing" href="http://mollom.com/pricing">here</a>.</p>
<p>The Mollom Module for Drupal 6 is configurable as well, you can choose either Text Analysis, Captcha or Both.  You can see how it looks from an admin perspective here:<a href="http://www.dpeh.co.uk/wp-content/uploads/2009/04/mollom-settings-drupal-module.jpg"><img class="aligncenter size-medium wp-image-76" title="mollom-settings-drupal-module" src="http://www.dpeh.co.uk/wp-content/uploads/2009/04/mollom-settings-drupal-module-251x300.jpg" alt="mollom-settings-drupal-module" width="251" height="300" /></a></p>
<p>Now, I don&#8217;t generally expect a FREE service to be available 100% of the time, but so far, the mollom service hasn&#8217;t had any noticeable outtages for me. However, they included a fallback system, so if their Text Analysis service is unavailable, it falls back to Captcha mode, which is nice, so it&#8217;s not going to hang my site waiting for an external service which doesn&#8217;t answer. You can see the config settings for that and the area where you enter your api keys (I&#8217;ve deleted the keys from the pic, but you get the idea) here:</p>
<p><a href="http://www.dpeh.co.uk/wp-content/uploads/2009/04/mollom-settings-fallback-keys.jpg"><img class="aligncenter size-medium wp-image-77" title="mollom-settings-fallback-keys" src="http://www.dpeh.co.uk/wp-content/uploads/2009/04/mollom-settings-fallback-keys-300x181.jpg" alt="mollom-settings-fallback-keys" width="300" height="181" /></a></p>
<p>I&#8217;m not alone in my thumbs up, check out some further testimonials <a title="Mollum Testimonials" href="http://mollom.com/testimonials">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dpeh.co.uk/2009/04/08/mollom-5-month-result-it-works-drupal-6-content-quality-control-module-anti-spam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modified 960 Grid System &#8211; 2+2px margins &#8211; 16 column only</title>
		<link>http://www.dpeh.co.uk/2009/04/03/modified-960-grid-system-22px-margins-16-column-only/</link>
		<comments>http://www.dpeh.co.uk/2009/04/03/modified-960-grid-system-22px-margins-16-column-only/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 23:40:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computing and IT]]></category>
		<category><![CDATA[Pick and Mix]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.dpeh.co.uk/?p=59</guid>
		<description><![CDATA[I&#8217;ve modified the really cool 960 grid system, 16 column, so it works with smaller margins as I found them a little large on some sites. My version has 2px margins, it appears to work fine in most browsers without issue as well. I&#8217;ve also created a photoshop file so you can create your own [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_60" class="wp-caption alignright" style="width: 210px"><a href="http://www.dpeh.co.uk/wp-content/uploads/2009/04/960-grid-16-column-2x2px-margins-screenshot-01.jpg"><img class="size-thumbnail wp-image-60" title="960-grid-16-column-2x2px-margins-screenshot-01" src="http://www.dpeh.co.uk/wp-content/uploads/2009/04/960-grid-16-column-2x2px-margins-screenshot-01-200x200.jpg" alt="Shows all the variations in content placement." width="200" height="200" /></a><p class="wp-caption-text">Shows all the variations in content placement.</p></div>
<p>I&#8217;ve modified the really cool 960 grid system, 16 column, so it works with smaller margins as I found them a little large on some sites.<br />
My version has 2px margins, it appears to work fine in most browsers without issue as well.<br />
I&#8217;ve also created a photoshop file so you can create your own artwork.<br />
Download here: <a href="http://www.dpeh.co.uk/wp-content/uploads/2009/04/960-grid-16-column-2x2px-margin.zip">960 grid 16-column 2x2px margin zip package</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dpeh.co.uk/2009/04/03/modified-960-grid-system-22px-margins-16-column-only/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

