<?xml version="1.0" encoding="ISO-8859-1" ?>	<rss version="2.0"> 
		<channel> 
	    	<title>Casual Panic - blog and news updates</title> 
	        <link>http://www.casualpanic.co.uk/</link> 
	        <description>The online home of Andy Brown, accessible multimedia designer and developer.</description> 
			<pubDate>Tue, 19 May 2009 03:34:09 -0700</pubDate> 
	        <language>eng</language> 
	        <image> 
	        	<title>Casual Panic - blog and news updates</title> 
				<link>http://www.casualpanic.co.uk/</link>
	            <url>http://www.casualpanic.co.uk/res/images/me.jpg</url> 
	            <width>64</width> 
	            <height>64</height> 
	        </image> 
						<item>
				<title>Site optimisation with .htaccess</title>
				<link>http://www.casualpanic.co.uk/post/14/</link>
				<description><![CDATA[ <p>With the launch of this new site I've been spending quite a bit of time looking at templating some of the things that I do when developing to save me time and maximise my output (check me out I'm like a slogan on a cheap 80's office calendar).</p>
<p>Anyone who develops using Firefox will probably already have the <a href="https://addons.mozilla.org/en-US/firefox/addon/60" title="Select this link to visit the firefox web developer toolbar page">Web developer toolbar</a> and the <a href="http://developer.yahoo.com/yslow/" title="select this link to visit the YSlow page at the yahoo developer network">YSlow</a> plugin. YSlow does a great job at assessing the performance of pages on your site and gives you a grade (A-F) of how err, performant (yeah I know) the page is. It breaks down the overall performance into different sections and grades you on each, pointing out where improvements can be made.</p><p>I usually get good grades for most of the sections with the exception of these ones:</p>
<ul>
	<li>Use a Content Delivery Network (CDN)</li>
	<li>Add Expires headers</li>
	<li>Compress components with gzip</li>
	<li>Configure entity tags (ETags)</li>
	<li>Use cookie-free domains</li>
</ul>

<p>First off, some of these I don't want to do anything about for the time being. I have no intention of using a Content Delivery Network (<a href="http://www.hongkiat.com/blog/amazon-s3-the-beginners-guide/">This is a great article for anyone interested in setting up Amazon S3</a>) and I'm not planning on using a cookie-free domain, but the others I can address quite easily.</p>
<p>So after a bit of hunting around, progging and poking I present to you an extract of my .htaccess file, which adds expires headers, compresses the compressable and configures entity tags (well, turns them off).</p>
<p>If you host your sites on an IIS server, I'm afraid this will be of litte use to you. Sorry.</p>
<pre><code>
&lt;ifmodule mod_headers.c&gt;
<br/>
<br/># Turn off ETags
<br/>Header unset ETag
<br/>FileETag None
<br/>	
<br/>&lt;ifmodule mod_expires.c&gt;
<br/># Turn on Expires and set default to 0
<br/>ExpiresActive On
<br/>ExpiresDefault A0
<br/>	
<br/># turn off last modified for these things.	
<br/>&lt;FilesMatch &quot;\\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css)$&quot;&gt;
<br/>Header unset Last-Modified
<br/>&lt;/FilesMatch&gt;
<br/>		
<br/># Set these things to cache for 1 year
<br/>&lt;FilesMatch &quot;\.(flv|ico|pdf|mp3|wav)$&quot;&gt;
<br/>ExpiresDefault A29030400
<br/>Header append Cache-Control &quot;public&quot;
<br/>&lt;/FilesMatch&gt;
<br/> 
<br/># Set these things to cache for 1 week
<br/>&lt;FilesMatch &quot;\.(gif|jpg|jpeg|png|swf|js|css)$&quot;&gt;
<br/>ExpiresDefault A604800
<br/>Header append Cache-Control &quot;public&quot;
<br/>&lt;/FilesMatch&gt;
<br/>		
<br/># Set these things to cache for 2 hours
<br/>&lt;FilesMatch &quot;\.(xml|txt|html)$&quot;&gt;
<br/>ExpiresDefault A7200
<br/>Header append Cache-Control &quot;proxy-revalidate&quot;
<br/>&lt;/FilesMatch&gt;
<br/>    
<br/># No caching for dynamic stuff please
<br/>&lt;FilesMatch &quot;\.(php)$&quot;&gt;
<br/>ExpiresActive Off
<br/>Header set Cache-Control &quot;private, no-cache, no-store, proxy-revalidate, no-transform&quot;
<br/>Header set Pragma &quot;no-cache&quot;
<br/>&lt;/FilesMatch&gt;
<br/>		
<br/># try to catch any stragglers
<br/>ExpiresByType image/* &quot;access plus 1 month&quot;
<br/>&lt;/ifmodule&gt;
<br/>&lt;/ifmodule&gt;
</code></pre>
<p>There you go.</p>]]></description>
				<pubDate>Tue, 19 May 2009 03:34:09 -0700</pubDate>
			</item>
						<item>
				<title>Freelance</title>
				<link>http://www.casualpanic.co.uk/post/13/</link>
				<description><![CDATA[ <p>What's been going on? Well as of a couple of weeks ago I'm now freelance. As you can see, there have been a few changes around here which I hope you like.</p>
<p>I'm working on one or two bits and pieces at the moment which I'll tell you more about soon.</p>]]></description>
				<pubDate>Sun, 17 May 2009 18:22:57 -0700</pubDate>
			</item>
						<item>
				<title>Installing Apache 2 on the eeePC running Ubuntu</title>
				<link>http://www.casualpanic.co.uk/post/9/</link>
				<description><![CDATA[ <p>I&#8217;ve just installed Apache 2 and PHP5 on my little EEEpc running Ubuntu and I was quite pleased with how easily it went on there despite a few little niggles.</p>

<p>So because its the new year and because the Krypton Factor is back on TV (minus the flight sim! - what were they thinking?) heres how I did it for anyone that might be trying.</p>

<p>Firstly you will need to get and install all the required bits and bobs namely apache 2 and php 5, so fire up a shell and do the following:</p>

<pre><code>sudo apt-get install apache2
sudo apt-get install php5
sudo apt-get install libapache2-mod-php5
sudo /etc/init.d/apache2 restart
</code></pre>

<p>Hopefully all will have gone swimmingly and you can test your install by going to http://127.0.0.1 in your favorite web browser</p>

<p>The first issue I came across with this install was that apache couldn&#8217;t work out its hostname properly so was having a guess at it. Although this works fine locally anything trying to access your web server from elsewhere might have a bit of trouble finding it. Fortunately this is easy enough to fix. Again in the shell find out your hostname by issuing the fhostname command:</p>

<pre><code>hostname</code></pre>
<p>copy the result of the command so we can add it to the apache configuration file&#8230;</p>
<pre><code>sudo vi /etc/apache2/httpd.conf</code></pre>

<p>and add a server name command followed by the host name you copied earlier e.g.</p>
<pre><code>ServerName my-host-name</code></pre>

<p>Non vi lovers might like to know you need to press &#8216;i&#8217; before you can add anything to the file and you need to press esc then type &#8216;:wq&#8217; followed by return to write the file and quit.</p> 

<p>Restart apache with &#8216;sudo /etc/init.d/apache2 restart&#8217; and away you go.</p>
<p>The next issue I encountered was a missing log file directory after reboot which was stopping the httpd service from starting automatically. Simply add the directory and set the permissions to fix this one:</p>
<pre><code>sudo mkdir /var/log/apache2/
sudo chmod 751 /var/log/apache2/</code></pre>
<p>Bingo! all done. Don&#8217;t say I never give you nowt.</p>]]></description>
				<pubDate>Thu, 01 Jan 2009 10:43:44 -0800</pubDate>
			</item>
						<item>
				<title>Like Ghostbusters 2, We&#8217;re back.</title>
				<link>http://www.casualpanic.co.uk/post/10/</link>
				<description><![CDATA[ <a href="http://www.thefisherycommission.com"><img src="http://www.thefisherycommission.com/images/fisherylogo.jpg" alt="The fishery Commission"/></a>
]]></description>
				<pubDate>Wed, 12 Nov 2008 00:12:13 -0800</pubDate>
			</item>
						<item>
				<title>Upgrades again</title>
				<link>http://www.casualpanic.co.uk/post/8/</link>
				<description><![CDATA[ <p>Well it seems like ages since I did anything around here and it probably is. Since last time I’ve gotten married and been to work a lot. Eyes peeled kids. the look of this should change a lot any day now. A.</p>]]></description>
				<pubDate>Tue, 14 Oct 2008 11:17:46 -0700</pubDate>
			</item>
						<item>
				<title>Upgrade!</title>
				<link>http://www.casualpanic.co.uk/post/11/</link>
				<description><![CDATA[ <p>I upgraded to Chyrp 2.0b. Its canny nice. A few things are a bit wonky but I'm getting there.</p>]]></description>
				<pubDate>Sat, 14 Jun 2008 11:42:33 -0700</pubDate>
			</item>
						<item>
				<title>Ubuntu on the eeePC</title>
				<link>http://www.casualpanic.co.uk/post/12/</link>
				<description><![CDATA[ <p>So I recently convinced myself to buy a little ASUS eeePc as my entry into the world of laptop computing. I'm a bit of a stickler when it comes to PC's, I think they should look like they've been lifted straight out of a 70's lab scenario and sound similar to a harrier jump jet, but for some reason the eeePC really appeals to me. </p>
<p>Basically its small and cheap enough to chuck it in my Jack Bauer man bag with all my other band gubbins and its clever enough to be able to borrow all the unsecured wifi juice I can find (not that I condone that kind of thing).</p>
<p>After around 30 seconds It was apparent that the fun skool 3 esque Xandros distro wasn't going to give me everything that I wanted, although I'm sure it will be perfect for kids and anyone who just wants a portable internet hot pipe.</p>
<p>I read up quite a lot on this first and found this to be the most complete and accurate tutorial:</p><p><a href="http://trenteee.blogspot.com/2007/12/howto-install-ubuntu-on-eee-pc-with_10.html">http://trenteee.blogspot.com/2007/12/howto-install-ubuntu-on-eee-pc-with_10.html</a> </p><p>It took me about an hour an now I have a lovely little ubuntu box. Some people have had bother with the madwifi drivers I found the forums at eeepcuser quite useful even if they are a bit out of date sometimes.</p><p>Rock on.</p>]]></description>
				<pubDate>Tue, 10 Jun 2008 22:02:17 -0700</pubDate>
			</item>
					</channel>	
	</rss>

