<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Designed by Robots »  &gt; Designed by Robots</title>
	
	<link>http://www.designed-by-robots.com</link>
	<description>Tales of the Internet, Cars, Conpsiracies, Politics and Other Stuff</description>
	<lastBuildDate>Mon, 31 Oct 2011 15:17:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/DesignedByRobots" /><feedburner:info uri="designedbyrobots" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Designed by Robots: The Sixth Attempt of the Fourth Iteration</title>
		<link>http://feedproxy.google.com/~r/DesignedByRobots/~3/yW7QInLJ58w/</link>
		<comments>http://www.designed-by-robots.com/329/designed-by-robots-the-sixth-attempt-of-the-fourth-iteration/#comments</comments>
		<pubDate>Sun, 30 Oct 2011 15:33:54 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.designed-by-robots.com/?p=329</guid>
		<description><![CDATA[Finally! After months of messing with designs and build I&#8217;ve settled on a new site design, built it and made it live. I am relieved that it&#8217;s finally done. What you&#8217;re looking at is the sixth design and build of this version of the site, which is the fourth version since it&#8217;s creation around two [...]]]></description>
			<content:encoded><![CDATA[<p>Finally! After months of messing with designs and build I&#8217;ve settled on a new site design, built it and made it live. I am relieved that it&#8217;s finally done. What you&#8217;re looking at is the sixth design and build of this version of the site, which is the fourth version since it&#8217;s creation around two years ago. Time flies.</p>
<p><span id="more-329"></span></p>
<p>In a nutshell I&#8217;d grown tired of the last version of DBR, I liked the images but they were slow to load and made things difficult to read at times, plus the site was overly sparse and the mobile version was terrible (it had been an afterthought) &#8211; this new version fixes that. It&#8217;s faster to load, there&#8217;s a bit more going on without being distracting (I hope) and it&#8217;s nice and responsive as it was designed and built with that in mind.</p>
<p>There&#8217;s still a few bits to-do: I&#8217;d like to create an actual portfolio page instead of the page I have at the moment which is jus a few pictures and a paragraph of text, I also need to do some thorough testing on IE (though quick looks suggest all is well, fingers crossed).</p>
<p>So any way, please take a look around and I welcome all constructive feedback!</p>
<img src="http://feeds.feedburner.com/~r/DesignedByRobots/~4/yW7QInLJ58w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.designed-by-robots.com/329/designed-by-robots-the-sixth-attempt-of-the-fourth-iteration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.designed-by-robots.com/329/designed-by-robots-the-sixth-attempt-of-the-fourth-iteration/</feedburner:origLink></item>
		<item>
		<title>Apple and the Asinine Comments</title>
		<link>http://feedproxy.google.com/~r/DesignedByRobots/~3/2MqaUaxH0nQ/</link>
		<comments>http://www.designed-by-robots.com/319/apple-and-the-asinine-comments/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 15:57:07 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[blackberry]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[rant]]></category>
		<category><![CDATA[smartphones]]></category>
		<category><![CDATA[windows phone 7]]></category>

		<guid isPermaLink="false">http://www.designed-by-robots.com/?p=319</guid>
		<description><![CDATA[This post may technically constitute a rant. No names are mentioned. Today I purchased Steve Job&#8217;s rather meaty biography for some reading material whilst I travel back on forth to work on The Tube and, as I often do, I posted this to Twitter and what I got in response was a few asinine comments [...]]]></description>
			<content:encoded><![CDATA[<p>This post may technically constitute a rant. No names are mentioned.</p>
<p>Today I purchased Steve Job&#8217;s rather meaty biography for some reading material whilst I travel back on forth to work on The Tube and, as I often do, I posted this to Twitter and what I got in response was a few asinine comments slating either Steve Jobs or Apple and it&#8217;s products in general. My question is why?<span id="more-319"></span></p>
<p>I&#8217;d like to state, before I get going, that I know the difference between winding each other up (something I do regularly with a friend of mine who uses an Android phone, and he does with me, the die hard iPhone user) and just being unnecessarily opinionated when your opinion is not wanted. Any way, onwards&#8230;</p>
<p>Presumably you don&#8217;t believe you have a chance of changing my opinion of Mr. Jobs, his creations or his company, especially by being kind of a douche? Surely you aren&#8217;t so arrogant as to assume that my opinion of Apple, which has been informed by using Apple products for many years, as well as it&#8217;s competitors offerings, would be swayed by a misinformed or just plain stupid retort? No, it can&#8217;t be that.</p>
<p>Maybe you think it makes you look big and clever? It doesn&#8217;t, it makes you look the opposite.</p>
<p>Being critical of someone&#8217;s technology preference is completely pointless and unnecessary &#8211; I don&#8217;t walk around telling Blackberry users their phones are useless because RIM are incompetent (they aren&#8217;t useless, they&#8217;re often the backbone of business and BBM was inspired), I don&#8217;t make fun of Android users because a bug in the OS gave out people&#8217;s personal data (we all make mistakes). I don&#8217;t make fun of Windows Phone 7 because Microsoft made it (I think WP7 is pretty damn good). Each phone has it&#8217;s own merits, and everyone has their own opinion of which phone is better, and here&#8217;s the kicker: <strong>no one is wrong. </strong>All of the various smartphone manufacturers got to where they are because they make quality products that users love.</p>
<p>How about instead of being critical, nit picking and petty we strive for improvement? Innovation is what bought us smartphones (devices we can hold in our hands that perform as well as desktop computers!) and innovation is what will make them better and better.</p>
<p>Besides, variety is the spice of life.</p>
<img src="http://feeds.feedburner.com/~r/DesignedByRobots/~4/2MqaUaxH0nQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.designed-by-robots.com/319/apple-and-the-asinine-comments/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.designed-by-robots.com/319/apple-and-the-asinine-comments/</feedburner:origLink></item>
		<item>
		<title>I’m No Economist…</title>
		<link>http://feedproxy.google.com/~r/DesignedByRobots/~3/5bqBgYMII-c/</link>
		<comments>http://www.designed-by-robots.com/313/im-no-economist/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 12:35:15 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Politics]]></category>
		<category><![CDATA[banks]]></category>
		<category><![CDATA[quantitive easing]]></category>

		<guid isPermaLink="false">http://www.designed-by-robots.com/?p=313</guid>
		<description><![CDATA[The Bank of England announced today that it is going to inject £75,000,000,000 (£75 billion) into the UK economy through &#8220;Quantitive Easing&#8221; which as near as I can tell basically means giving banks more money so they can pay their top execs bigger bonuses. I admit my understanding of Quantitive Easing is minimal (read: essentially [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.bbc.co.uk/news/business-15196078">Bank of England announced today</a> that it is going to inject £75,000,000,000 (£75 billion) into the UK economy through &#8220;<a href="http://en.wikipedia.org/wiki/Quantitative_easing">Quantitive Easing</a>&#8221; which as near as I can tell basically means giving banks more money so they can pay their top execs bigger bonuses.<span id="more-313"></span></p>
<p>I admit my understanding of Quantitive Easing is minimal (read: essentially non-existent) but ultimately the banks get more money, so, to put it another way, the people who hold the majority of responsibility for getting us in this mess get given more money to help jump start the economy (in theory, as let&#8217;s face it: they&#8217;ve already been given masses of our money and it hasn&#8217;t worked so far).</p>
<p>Brilliant.</p>
<p>But as a thought experiment let&#8217;s take that £75,000,000,000 and consider a different use for it. What if, instead of giving the banks more money (to pay their ridiculous bonuses and salaries) we were given that money? £75,000,000,000 split evenly amongst the population of the UK (~63,000,000 people) gives every person ~£1190, pre-tax. What do you think would give the UK&#8217;s economy the biggest boost? Everyone having a good chunk of extra spending money or the banks having a large chunk of money to lose?</p>
<p>Dan for PM 2014.</p>
<img src="http://feeds.feedburner.com/~r/DesignedByRobots/~4/5bqBgYMII-c" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.designed-by-robots.com/313/im-no-economist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.designed-by-robots.com/313/im-no-economist/</feedburner:origLink></item>
		<item>
		<title>Farewell, Steve Jobs</title>
		<link>http://feedproxy.google.com/~r/DesignedByRobots/~3/KxUv7Erlrz4/</link>
		<comments>http://www.designed-by-robots.com/304/farewell-steve-jobs/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 10:20:21 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Steve Jobs]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[obituary]]></category>

		<guid isPermaLink="false">http://www.designed-by-robots.com/?p=304</guid>
		<description><![CDATA[I was gutted to hear the news that Steve Jobs died today. He has massively influenced my work, my career and my life, like he has done with most people in my line of work. I wanted to share a fond memory of mine, which can be directly attributed to Steve Jobs. Just a few [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.designed-by-robots.com/304/farewell-steve-jobs/steve/" rel="attachment wp-att-310"><img class="aligncenter size-full wp-image-310" title="Steve Jobs: 1955-2011" src="http://www.designed-by-robots.com/wp-content/uploads/2011/10/steve-e1317897646635.jpg" alt="" width="590" height="375" /></a></p>
<p>I was gutted to hear the news that <a href="http://www.apple.com/stevejobs/">Steve Jobs died today</a>. He has massively influenced my work, my career and my life, like he has done with most people in my line of work.</p>
<p>I wanted to share a fond memory of mine, which can be directly attributed to Steve Jobs. Just a few weeks ago my family visited and I gave my Grandfather (AKA Baggy) my iPad to have a look at. Baggy is a complete technophobe, if I asked him to send a text he probably wouldn&#8217;t know that he&#8217;d do that on his mobile phone and yet he could use the iPad right away. Within a matter of minutes he was watching videos of cats doing stupid things on YouTube, flicking pages around, navigating through the related videos and finding old TV recordings of country songs he used to listen to as a young man. Steve Jobs not only bought technology forward in leaps and bounds but he made it accessible to everyone. It&#8217;s a tragedy that he was taken away so young.</p>
<p>I had hoped to one day watch Steve Jobs give another Apple keynote with my geeky unborn child, obviously that will now not happen but I will teach him or her about Steve and how much he has contributed to everyday life. Just imagine where we&#8217;d be if he had never come around.</p>
<img src="http://feeds.feedburner.com/~r/DesignedByRobots/~4/KxUv7Erlrz4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.designed-by-robots.com/304/farewell-steve-jobs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.designed-by-robots.com/304/farewell-steve-jobs/</feedburner:origLink></item>
		<item>
		<title>We’re All in This Together (But Some More Than Others)</title>
		<link>http://feedproxy.google.com/~r/DesignedByRobots/~3/rxD3K-hmZO0/</link>
		<comments>http://www.designed-by-robots.com/298/were-all-in-this-together-but-some-more-than-others/#comments</comments>
		<pubDate>Mon, 08 Aug 2011 13:29:44 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Politics]]></category>
		<category><![CDATA[riots]]></category>
		<category><![CDATA[tories]]></category>

		<guid isPermaLink="false">http://www.designed-by-robots.com/?p=298</guid>
		<description><![CDATA[The recent riots in Tottenham and the rest of London got me thinking &#8211; were they just the work of yobs out to cause some mayhem and get some free stuff or was there an undertone to them: people&#8217;s disaffection and alienation from the current government and it&#8217;s enforcers? David Cameron once said &#8220;We&#8217;re all [...]]]></description>
			<content:encoded><![CDATA[<p>The recent <a href="http://www.bbc.co.uk/news/uk-14436499">riots in Tottenham and the rest of London</a> got me thinking &#8211; were they just the work of yobs out to cause some mayhem and get some free stuff or was there an undertone to them: people&#8217;s disaffection and alienation from the current government and it&#8217;s enforcers?<span id="more-298"></span></p>
<p>David Cameron once said &#8220;<a href="http://news.sky.com/home/politics/article/15752864">We&#8217;re all in this together</a>&#8220;. He was referring to the current financial mess the country, Europe and indeed the World is in. He was, of course, spouting out crap to placate the masses for 10 minutes while he was busy making sure that a certain group of people (i.e. &#8220;the rich&#8221;) suffer less during the current financial crisis than the Middle and Lower classes (AKA &#8220;The Peasants&#8221;).</p>
<p>Let&#8217;s look at some figures, most off the top of my head: VAT is now at 20% (up from 17.5%), the <a href="http://www.theaa.com/motoring_advice/fuel/">cost of fuel</a> has sky rocketing (despite the oh-so-generous 1p per litre reduction from the government) the <a href="http://www.guardian.co.uk/society/2011/jul/21/nhs-privatisation-under-the-radar">NHS is gradually being killed off</a>, <a href="https://twitter.com/#!/Dan_Gates/status/100524254956765184">energy bills are going up</a> (despite energy companies making <a href="http://www.guardian.co.uk/business/2011/jul/28/centrica-british-gas-profits-refuel-row-over-prices">billions of pounds of profit</a> every quarter), <a href="http://www.guardian.co.uk/business/2011/jul/13/unemployment-falls-but-jobless-rate-unchanged">unemployment is still very very high</a> and no one&#8217;s had a pay rise in donkey&#8217;s years.</p>
<p>The rich, however, keep <a href="http://www.bbc.co.uk/news/uk-13321462">getting richer</a>. Any one with a brain can see the people taking the strain in this current mess are the people who can&#8217;t afford to, the people who will feel the pain of an extra 2.5% on their food shopping and will notice that their car now takes £70 to fill up instead of £50.</p>
<p>The government lets the people who provide us with the resources we need to survive to raise prices when there is no justification to do so &#8211; sure profits might be hit if <a href="http://www.guardian.co.uk/money/2011/jul/08/british-gas-raises-gas-electricity-prices">British Gas don&#8217;t bump up their gas prices by 18%</a> but let&#8217;s not be naive here &#8211; even if they didn&#8217;t they&#8217;d still see profits in the billions.</p>
<p>Politicians are letting this happen &#8211; when was the last time they stuck up for us? We elect them, we pay their salaries and the mortgages on their second homes, they are supposed to be our servants and yet they put their interests, and the interests of multi-national businesses who turn profits so big they could pay for thousands of people to retire in comfort and security ahead of us.</p>
<p>We, as those that work hard and don&#8217;t earn £100,000s a year, are second rate citizens. What we need is second to what the rich need, the rich who exploit our natural resources and then take money from us to use them not to cover costs but to turn massive profits.</p>
<p>I&#8217;m not so stupid as to say big business is bad because we clearly need it to put fuel in our cars and power our machines but big business should help us &#8211; we made them rich, why not help us out whilst we&#8217;re struggling and out off the price hikes for a few years until we&#8217;re all back on our feet? The simple answer to that is greed, the driving force in modern society. People can never have enough, even when they have more than they could spend in a decade of lifetimes they strive for more so they can be richer than there neighbour and better than their &#8220;friends&#8221;.</p>
<p>And this is why I think we&#8217;re going to see more riots, more strikes and more public outcry: with it becoming increasingly apparent that the government serves the rich and everything else is secondary the lower paid, lower class citizens will shout louder to get their voices heard. We are not stupid, we know how &#8220;fair&#8221; our country is, we know that we are not in this together and we&#8217;ve had enough of bearing the brunt of the troubles and hardships caused by those getting richer.</p>
<p><strong>Please note: </strong>In no way do I condone the riots, thievery and arson are not ways to be heard. Peaceful protests and loud voices are enough to make a difference. The pen is mightier than the sword and all that.</p>
<p>I&#8217;d also like to say that while I refer to the police as the government&#8217;s enforcers this does not mean that they should be chastised for what the government are doing &#8211; the Police are doing their job and the Tories and Co. are doing their best to make the Police&#8217;s lives harder with big budget cuts and demoralising speeches.</p>
<img src="http://feeds.feedburner.com/~r/DesignedByRobots/~4/rxD3K-hmZO0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.designed-by-robots.com/298/were-all-in-this-together-but-some-more-than-others/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.designed-by-robots.com/298/were-all-in-this-together-but-some-more-than-others/</feedburner:origLink></item>
		<item>
		<title>If I Were the Prime Minister…</title>
		<link>http://feedproxy.google.com/~r/DesignedByRobots/~3/YbO-Pva2ElA/</link>
		<comments>http://www.designed-by-robots.com/289/if-i-were-the-prime-minister/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 15:14:01 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Politics]]></category>

		<guid isPermaLink="false">http://www.designed-by-robots.com/?p=289</guid>
		<description><![CDATA[Disclaimer: This post is not intended to be serious. If you thought it was then please do us all a favour and go away. Bankers would not be able to receive bonuses when they&#8217;ve done a crap job and their bonuses would be capped at a reasonable percentage of their annual salary &#8211; no more [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Disclaimer: </strong>This post is not intended to be serious. If you thought it was then please do us all a favour and go away.<span id="more-289"></span></p>
<ol>
<li>Bankers would not be able to receive bonuses when they&#8217;ve done a crap job and their bonuses would be capped at a reasonable percentage of their annual salary &#8211; no more 26x the total annual salary as a bonus payment!</li>
<li>Lane hoggers would be fined the same amount as people who speed, repeat offenders will have their car and driving license taken away and will have to travel everywhere on rollerskates</li>
<li>People who claim they are unable to work in order to receive free money will be fired from a cannon into a volcano</li>
<li>The Daily Mail and The Mail on Sunday would be removed from history and disbanded; the reporters who have demonstrated how low humanity can sink will be sent to the moon with only each other as company</li>
<li>Dub Step would no longer be classed as a form of music, instead it will be referred to as &#8220;A Collection Random Noises&#8221;</li>
<li>Jedward and Louis Walsh will be sent away and banned from having any involvement in the music industry</li>
<li>It will be illegal to call yourself an Entrepreneur when in reality you&#8217;re just an unemployed 20-something who can&#8217;t be assed to get a job</li>
<li>The Murdochs will have all their assets seized and used to put on a country-wide party and then be forced to watch nothing but Be Kind Rewind until they expire (assuming they can expire, I still personally think they&#8217;re demons and therefore will be unable to die from old age)</li>
<li>Nick Clegg will be shaved every 2 weeks, his hair will then be used to make a fur coat for him which he will wear whilst living with the Queen&#8217;s Corgis like the useless lap dog he is</li>
<li>The English flag will be changed to Godzilla chewing on a Boeing 747 whilst punching David Cameron in the face for being a knobber.</li>
</ol>
<div>What would you do as Prime Minister?</div>
<img src="http://feeds.feedburner.com/~r/DesignedByRobots/~4/YbO-Pva2ElA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.designed-by-robots.com/289/if-i-were-the-prime-minister/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.designed-by-robots.com/289/if-i-were-the-prime-minister/</feedburner:origLink></item>
		<item>
		<title>Off for a Bite</title>
		<link>http://feedproxy.google.com/~r/DesignedByRobots/~3/BYrs9-K3K4A/</link>
		<comments>http://www.designed-by-robots.com/250/off-for-a-bite/#comments</comments>
		<pubDate>Tue, 02 Aug 2011 19:00:38 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[bite]]></category>
		<category><![CDATA[career]]></category>
		<category><![CDATA[causeway]]></category>

		<guid isPermaLink="false">http://www.designed-by-robots.com/?p=250</guid>
		<description><![CDATA[I couldn&#8217;t resist sticking in a pun that makes absolutely no sense but anyway, I have news: early next month I shall be starting my new job as Frontend Web Developer for Bite Communications over in Hammersmith, London. I&#8217;ve been working for Causeway for 9 months now, give or take, and although it&#8217;s been short [...]]]></description>
			<content:encoded><![CDATA[<p>I couldn&#8217;t resist sticking in a pun that makes absolutely no sense but anyway, I have news: early next month I shall be starting my new job as Frontend Web Developer for <a href="http://www.bitecommunications.com/">Bite Communications</a> over in Hammersmith, London.</p>
<p>I&#8217;ve been working for <a href="http://www.causeway.com">Causeway</a> for 9 months now, give or take, and although it&#8217;s been short it&#8217;s also been awesome working with Ed, Jutta and <a href="http://www.dazstudios.co.uk/">Darrell</a>. Much time shall be spent down the pub with them in the future.</p>
<p>I&#8217;m looking forward to starting at Bite, working with their team and their clients; it&#8217;s gonna be great fun!</p>
<img src="http://feeds.feedburner.com/~r/DesignedByRobots/~4/BYrs9-K3K4A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.designed-by-robots.com/250/off-for-a-bite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.designed-by-robots.com/250/off-for-a-bite/</feedburner:origLink></item>
		<item>
		<title>Turbocharging WordPress</title>
		<link>http://feedproxy.google.com/~r/DesignedByRobots/~3/3UC1tQht48A/</link>
		<comments>http://www.designed-by-robots.com/231/turbo-charging-wordpress/#comments</comments>
		<pubDate>Sun, 31 Jul 2011 12:13:30 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[mod_pagespeed]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.designed-by-robots.com/?p=231</guid>
		<description><![CDATA[I&#8217;ve just finished moving my entire site to WordPress (it was a collection of flat PHP files with WordPress running the Blog and nothing else). I&#8217;ve always found that WordPress runs slow compared to other CMSs and, given the huge image files being used as the background images of my pages I don&#8217;t want to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just finished moving my entire site to WordPress (it was a collection of flat PHP files with WordPress running the Blog and nothing else).</p>
<p>I&#8217;ve always found that WordPress runs slow compared to other CMSs and, given the huge image files being used as the background images of my pages I don&#8217;t want to increase load times anymore so i&#8217;ve spent a fair bit of time optimising my WordPress install to make it as fast as possible.<span id="more-231"></span></p>
<p>I&#8217;ve outlined what I&#8217;ve done here but I&#8217;m still playing around so there may be stuff I&#8217;ve missed or even methods of optimisation that I&#8217;ve duplicated &#8211; please feel free to post your own methods in the comments below.</p>
<h2>mod_pagespeed</h2>
<p>My server runs <a href="http://code.google.com/p/modpagespeed/">mod_pagespeed</a> to minify everything before it&#8217;s served to the user&#8217;s browser. It definitely makes a big difference to load times.</p>
<h2>Plugins</h2>
<p><strong>Better WordPress Minify</strong><br />
This one automatically minifies CSS and JS files to reduce download times and the number of requests the browser has to send to the server.</p>
<p><strong>WP CSS</strong><br />
Gzips CSS files to make them as small as possible.</p>
<p><strong>DB Cache Reloaded Fix</strong><br />
Caches databases queries to reduce the number of MySQL queries a page requires &#8211; always a good way to increase load times.</p>
<p><strong>Removing plugins</strong><br />
Removing unused plugins completely, and minimising the number I use, has also improved things.</p>
<h2>Changing Link Structure</h2>
<p>This is one I found out about because of <a href="http://www.css-tricks.com/">Chris Coyier&#8217;s</a> post &#8220;<a href="http://digwp.com/2011/06/dont-use-postname/">So really, don&#8217;t use just /%postname%/ as your permalink structure</a>&#8221; &#8211; my old URL structure was category/postname but it turns out that this dramatically increases page load time &#8211; changing the links to be postID/postname fixes this. For a detailed explanation on why see <a href="http://ottopress.com/2010/category-in-permalinks-considered-harmful/">here</a>.</p>
<img src="http://feeds.feedburner.com/~r/DesignedByRobots/~4/3UC1tQht48A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.designed-by-robots.com/231/turbo-charging-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.designed-by-robots.com/231/turbo-charging-wordpress/</feedburner:origLink></item>
		<item>
		<title>Hiding Javascript from Mobile Web Browsers</title>
		<link>http://feedproxy.google.com/~r/DesignedByRobots/~3/8BsnLpI9eW8/</link>
		<comments>http://www.designed-by-robots.com/184/hiding-javascript-from-mobile-web-browsers/#comments</comments>
		<pubDate>Fri, 15 Jul 2011 08:50:48 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://designed-by-robots.com/blog/?p=184</guid>
		<description><![CDATA[A simple solution to hide Javascript files from smaller web browsers - think Javascript Media Queries.]]></description>
			<content:encoded><![CDATA[<p>Blimey, 2 posts in as many days!</p>
<p>First a disclaimer: this post concentrates on iPhones as I do not have an Android, WP7 or Blackberry to test with however I&#8217;d imagine that the code is applicable regardless.<span id="more-184"></span></p>
<p>My site is pretty image heavy so when viewing it on a mobile browser it&#8217;s slow to load; the solution to this was simple: Media Queries. That sped things up a lot but there was still something making load times too long &#8211; the Javascript.</p>
<p>The only Javascript I use is <a href="http://cufon.shoqolate.com/generate/">Cufon</a> (yes, I know I should be using <a href="http://fontdeck.com/">FontDeck</a> or similar)  - on the desktop version of the site it&#8217;s not a big issue however on a 3G or worse connection it&#8217;s a slog to download the Javascript files for no real gain.</p>
<p>I decided to find a way to only load the Javascript on bigger screens where it would have a bigger affect and more likely be a desktop based computer. There are no Javascript Media Queries so I came up with a simple bit of code to emulate them.</p>
<pre>&lt;script&gt;
	function addJS(file){
		var scriptTag=document.createElement('script');
		scriptTag.setAttribute('src',file);
		document.getElementsByTagName('head')[0].appendChild(scriptTag);
	} //addJS()

	if(screen.width &gt; 480){
		addJS('path/to/js.js');
		addJS('path/to/another/js.js');

		window.onload=function(){
			alert('Watch out for creepers.');
		}
	} //if
&lt;/script&gt;</pre>
<p>The code works pretty simply &#8211; it checks the user&#8217;s screen width and if it&#8217;s greater than 480px (which is a non-retina iphone display in landscape mode) it adds the Javascript files dynamically to the head tag, I&#8217;ve also put an onload event in the if statement so the Javascript doesn&#8217;t try to call functions that won&#8217;t exist on smaller screens.</p>
<p>You can change the width to whatever you fancy but 480px served my purposes.</p>
<img src="http://feeds.feedburner.com/~r/DesignedByRobots/~4/8BsnLpI9eW8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.designed-by-robots.com/184/hiding-javascript-from-mobile-web-browsers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.designed-by-robots.com/184/hiding-javascript-from-mobile-web-browsers/</feedburner:origLink></item>
		<item>
		<title>A Simple Google Maps UX Improvement</title>
		<link>http://feedproxy.google.com/~r/DesignedByRobots/~3/owW0jrk4UxI/</link>
		<comments>http://www.designed-by-robots.com/179/a-simple-google-maps-ux-improvement/#comments</comments>
		<pubDate>Thu, 14 Jul 2011 11:16:05 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[UX]]></category>
		<category><![CDATA[google maps]]></category>

		<guid isPermaLink="false">http://designed-by-robots.com/blog/?p=179</guid>
		<description><![CDATA[I think there&#8217;s a quick win (I say quick win, I actually have no idea it would take to implement) for Google Maps that would make the user experience a wee bit better. I&#8217;ve just looked to see how long it&#8217;ll take to get from my place to Dover, now, I&#8217;m in the UK so [...]]]></description>
			<content:encoded><![CDATA[<p>I think there&#8217;s a quick win (I say quick win, I actually have no idea it would take to implement) for Google Maps that would make the user experience a wee bit better.<span id="more-179"></span></p>
<p>I&#8217;ve just looked to see how long it&#8217;ll take to get from my place to Dover, now, I&#8217;m in the UK so most likely I want to go to the Dover with all the boats in the UK, right? Google Maps, however, tries to give me directions to Dover in the US. It seems unlikely that I&#8217;m going to want to drive from the countryside just outside of London, across the rather wide Atlantic Ocean (which has a very poor road network) to one of the various Dovers in The States so why doesn&#8217;t Google implement a bit of logic that looks for destinations closer to you rather than far away? Bings Maps seems to do that; it at least got the right Dover when I looked at route information.</p>
<img src="http://feeds.feedburner.com/~r/DesignedByRobots/~4/owW0jrk4UxI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.designed-by-robots.com/179/a-simple-google-maps-ux-improvement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.designed-by-robots.com/179/a-simple-google-maps-ux-improvement/</feedburner:origLink></item>
		<item>
		<title>You’ve Never Touched Anything and You See Only Reflections of the Past</title>
		<link>http://feedproxy.google.com/~r/DesignedByRobots/~3/xzTxLnLzt2Q/</link>
		<comments>http://www.designed-by-robots.com/157/youve-never-touched-anything-and-you-see-only-reflections/#comments</comments>
		<pubDate>Wed, 08 Jun 2011 10:12:01 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Physics]]></category>
		<category><![CDATA[electromagnetism]]></category>
		<category><![CDATA[electrons]]></category>
		<category><![CDATA[speed of light]]></category>

		<guid isPermaLink="false">http://designed-by-robots.com/blog/?p=157</guid>
		<description><![CDATA[I’m not trying to be a poet, it’s true and I’m going to explain why. I’ll pre-warn you: this post explores some pretty weird Physics stuff so you better grab a mug of tea, first up is the easy part.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not trying to be a poet, it&#8217;s true and I&#8217;m going to explain why. I&#8217;ll pre-warn you: this post explores some pretty weird Physics stuff so you better grab a mug of tea, first up is the easy part.<span id="more-157"></span></p>
<p><strong>You Only See Reflections of the Past</strong></p>
<p>Most of us have heard of Einstein&#8217;s famous equation that equates energy and matter.</p>
<p><img class="alignnone" title="E=MC^2" src="http://upload.wikimedia.org/math/5/2/c/52c7687643df1c12231b39e324850586.png" alt="Energy = Mass multiplied by the speed of light squared" width="74" height="18" /></p>
<p>In this equation the term &#8216;c&#8217; represents the speed of light travelling in a vacuum (which is thought to be a constant throughout the universe, although there is some <a href="http://en.wikipedia.org/wiki/Variable_speed_of_light">evidence to the contrary</a>), this speed is approximately 30,000,000,000m/s or 671,080,888mph. This is the universal speed limit &#8211; nothing can travel faster than this, and nothing with mass can even get close.</p>
<p>This is important &#8211; it means light travels at a certain speed and thus the things we see have already happened before we have seen them happen.</p>
<p>On Earth this is imperceptible by humans. Light takes less than 0.14 seconds to travel the circumference of the earth at the equator so what you are really seeing is a light echo of the very recent past, though it&#8217;s so recent your brain can not perceive it as the past at all.</p>
<p>When we start factoring in larger distances, say for instance the distance between the Earth and the Sun, the length of time taken for the light to reach your eye becomes more noticeable &#8211; if the sun were to vanish right now you wouldn&#8217;t know about it for 8 minutes.</p>
<p>Our nearest star, Proxima Centauri, is 4 light years away (1 Light Year being the distance light travels in 1 Earth year and not a measurement of time) and so we would not know if something happened to our neighbour until 4 years after the event.</p>
<p>The Andromeda Galaxy is 2,000,000 light years away so when you peer at it through a telescope what you&#8217;re seeing is how it looked over 1,000,000 years before humans had mastered fire (which is <a href="http://archaeology.about.com/od/ancientdailylife/qt/fire_control.htm">believed to be between 400,000 and 790,000 years ago</a>).</p>
<p>And that&#8217;s nothing &#8211; <a href="http://www.bbc.co.uk/news/science-environment-13539914">recently we viewed the most distant object ever observed by mankind</a> and the electromagnetic radiation we detected form it had been travelling from it&#8217;s source, a massive <a href="http://en.wikipedia.org/wiki/Gamma-ray_burst">GMB</a> from an exploding star 30 times the size of our sun, to us for 13.1billion years meaning the Gamma rays were emitted a mere 250million years after the Big Bang.</p>
<p><strong>You&#8217;ve Never Touched Anything</strong></p>
<p>One of the fundamental laws of Physics, as postulated by Newton, is as follows:</p>
<blockquote><p><em>To every action there is always an equal and opposite reaction: or the forces of two bodies on each other are always equal and are directed in opposite directions.</em></p></blockquote>
<p>This is <a href="http://en.wikipedia.org/wiki/Newton's_laws_of_motion#Newton.27s_third_law">Newton&#8217;s Third Law of Motion</a> and is the reason why, in real life, if you shoot someone they will not fly 20 feet backwards (as for that to happen you would have to have experienced a similar force meaning you, as the gunman, would also be thrown back 20 feet). It also has some pretty practical uses &#8211; it&#8217;s stopping you falling through the Earth right now.</p>
<p>Think about it &#8211; gravity is pulling you toward the earth. What&#8217;s stopping you from being pulled right to the core and incinerated? The ground presumably, but to stop you from being BBQ&#8217;d and crushed by the intense heat and pressure a few miles below your feet the ground must provide a force opposite and equal to the force gravity is exacting on you (if the force it provided was greater than gravity you&#8217;d fly upwards).</p>
<p>The force providing this service is electromagnetism, specifically the <a href="http://en.wikipedia.org/wiki/Pauli_exclusion_principle">Pauli Exclusion Principal</a> which states that no two identical Fermions (e.g. Electrons) in a single atom can occupy the same quantum state simultaneously (see the <a href="http://en.wikipedia.org/wiki/Pauli_exclusion_principle">link</a> for a more in-depth explanation of this).</p>
<p>So how does this keep us from falling through the Earth (not that the Earth could exist without this but for argument&#8217;s sake let&#8217;s pretend it could)?</p>
<p>To understand you need to imagine your feet on the atomic level and for the ease of imagining what&#8217;s going on let&#8217;s just use a single atom in your foot and in the floor &#8211; both the floor and foot atom have a nucleus of Protons and Neutrons surrounded by a cloud of electrons. As we&#8217;ve stated, 2 electrons in a single atom can not have the same quantum state but 2 electrons in separate electron clouds around different atoms can (in this case our foot and floor atom).</p>
<p>When gravity pulls our foot atom toward the floor atom there are electrons in both of their respective clouds that have the same quantum state so the 2 electron clouds repulse one another rather than combine. This is what stops us falling through the floor, the Earth&#8217;s crust, it&#8217;s Mantle and all the way down into it&#8217;s core.</p>
<p>It is possible to overcome this repulsive force however the amount of force required to do so would break the floor&#8217;s structure before you were able to slip between the individual atoms, not to mention destroy your body and cause so much heat to be produced you&#8217;d be nothing more than a pile of dust on the floor.</p>
<p>To go on a strange tangent here (which is kind of the point of this post), this means that when you are standing you&#8217;re technically levitating &#8211; you are floating on 2 clouds of electrons that repulse each other and when you try to touch something you are prevented from doing something by the opposing Electrons in the object you&#8217;re trying to touch &#8211; what you feel is that repulsive force, not the object itself.</p>
<p>Of course the distances involved are so tiny you&#8217;ll never really notice this, just as the time scales involved in light bouncing around are, over human distances at least, so tiny they won&#8217;t make any difference to you however this is what I believe to be the most awesome part of Physics &#8211; as we perceive the universe it all seems pretty straight forward but if we start working with the smallest distances, or the biggest, this Universe we inhabit becomes a whole lot more weird and mind blowing.</p>
<img src="http://feeds.feedburner.com/~r/DesignedByRobots/~4/xzTxLnLzt2Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.designed-by-robots.com/157/youve-never-touched-anything-and-you-see-only-reflections/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.designed-by-robots.com/157/youve-never-touched-anything-and-you-see-only-reflections/</feedburner:origLink></item>
		<item>
		<title>No More Politics for Dan</title>
		<link>http://feedproxy.google.com/~r/DesignedByRobots/~3/z7OaS-bBXCE/</link>
		<comments>http://www.designed-by-robots.com/7/no-more-politics-for-dan/#comments</comments>
		<pubDate>Wed, 11 May 2011 08:04:59 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Politics]]></category>
		<category><![CDATA[labour]]></category>
		<category><![CDATA[lib dems]]></category>
		<category><![CDATA[rant]]></category>
		<category><![CDATA[tories]]></category>
		<category><![CDATA[tumblr]]></category>

		<guid isPermaLink="false">http://dan-gates.tumblr.com/post/5386310919</guid>
		<description><![CDATA[Just over a year after I got into politics (the reason for getting into it in the first place being the first General Election I could vote in) I have decided to get out of it, or at least to try. It seems pointless to take an interest in it or to care because ultimately [...]]]></description>
			<content:encoded><![CDATA[<p>Just over a year after I got into politics (the reason for getting into it in the first place being the first General Election I could vote in) I have decided to get out of it, or at least to try.<span id="more-7"></span></p>
<p>It seems pointless to take an interest in it or to care because ultimately when all is said and done it makes no difference &#8211; most voters will vote based on who they like (I’d wager the AV vote was lost because most people don’t like Nick Clegg &#8211; 2/3 people I know who voted against it voted so for that reason) and the majority of people are largely uneducated as to the beliefs and values of the political parties.</p>
<p>Not that any education into the voting parties is really necessary &#8211; there’s only 3 major parties that stand a chance of winning overall (at least for the foreseeable future) and they’re all as bad as each other &#8211; The Tories only care about “The Boys” (i.e. The Rich), the Lib Dems are basically Tories but without spines, and Labour helped get us into the economic mess we’re in now, so unless you’re personally wealthy you’re pretty much fucked.</p>
<p>Voting for other parties is pointless as they won’t win so you have to vote for one of the main 3 to even stand a chance of being represented &#8211; this is how the Lib Dems became part of the current government; those that didn’t want to vote for the Tories or Labour voted Lib Dem (as they pretended to be different with promises of a better future): this is tactical voting &#8211; something AV would have put an end to; thanks for that, voters.</p>
<p>So &#8211; no more will I get pissed off by the people that govern us, no more will I care who wins the elections because whoever wins will look out for their interests and not ours &#8211; I’ll stay blissfully ignorant like I once was; there’s little point in getting worked up over a bunch of boring old men and women in Westminster.</p>
<img src="http://feeds.feedburner.com/~r/DesignedByRobots/~4/z7OaS-bBXCE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.designed-by-robots.com/7/no-more-politics-for-dan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.designed-by-robots.com/7/no-more-politics-for-dan/</feedburner:origLink></item>
		<item>
		<title>On Conspiracy Theories and “Nibiru”</title>
		<link>http://feedproxy.google.com/~r/DesignedByRobots/~3/2NUJ_qYdYn8/</link>
		<comments>http://www.designed-by-robots.com/118/on-conspiracy-theories-and-nibiru/#comments</comments>
		<pubDate>Thu, 21 Apr 2011 08:36:00 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Conspiracies]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[nibiru]]></category>
		<category><![CDATA[tumblr]]></category>

		<guid isPermaLink="false">http://dan-gates.tumblr.com/post/4801638284</guid>
		<description><![CDATA[I recently re-discovered a forum I used to visit many a year ago &#8211; Above Top Secret &#8211; it’s a forum for those who like a good conspiracy; a place where normal can talk about the dark whisperings that go on behind government doors (or so they claim). I’m not a conspiracy theorist (there are [...]]]></description>
			<content:encoded><![CDATA[<p>I recently re-discovered a forum I used to visit many a year ago &#8211; Above Top Secret &#8211; it’s a forum for those who like a good conspiracy; a place where normal can talk about the dark whisperings that go on behind government doors (or so they claim).<span id="more-118"></span></p>
<p>I’m not a conspiracy theorist (there are a lot of clever civilians out there that can, and do, disprove all of these pseudo-science theories). I do not read this website to prepare myself for TPTB (The Powers That Be &#8211; an acronym that refers to the shady NWO (New World Order), the government, lizard men (seriously), the aliens, a sub-terreanean race of dwarves (again &#8211; seriously) or the Illuminati, typically) I read it because it’s like a huge crazy (in many cases literally crazy) sci-fi story book.</p>
<p>The people that make posts on this forum believe with all their hearts that what they post is true, that their end of days predictions will come to pass (despite the fact there there is pretty much one for every other day), that there are aliens visiting us, that there are shape-shifting lizard people infiltrating our government, that President Obama is a Human/Alien hybrid, that Lady GaGa is growing horns and that Paul (the recent Simon Pegg film) was a grey (a word that refers to grey aliens) psy-op to get us all used to them (the aliens) so we don’t resist their enslavement of mankind.</p>
<p>My favourite has to be the whole 2012 story though &#8211; in 2012 (specifically 21st December 2012) is the date when the Mayan calendar ends it’s 5,125 year cycle in the Mesoamerican Long Count calendar.</p>
<p>So &#8211; that must be the end of the world, right? No, of course not &#8211; it’s like when the Gregorian calendar enters a new millennium: entirely insignificant until we as human’s put a value on it.</p>
<p>The conspiracy theorists have taken this, though, and run with it; it’s got a lot of offshoots now but the best is about an object called Nibiru.</p>
<p>Nibiru is, depending on what branch of the theory you subscribe to, a comet (often thought to be Comet Elenin), a planet orbiting in the exact orbit of the earth but directly opposite the sun so we can never see it, a planet coming in from deep space to hit us (which is a popular one despite the fact that scientists have said on numerous occasions that if this was the case you could see it with the naked eye; but there’s a conspiracy theory about that too), a giant alien spacecraft, some kind of heavenly transport and a few other various theories which, like all of them, hold no scientific precedence).</p>
<p>The theory itself was, quite literally, made up by a woman called Nancy Lieder who claimed the greys, whom she called Zetas, came to visit her, implanted a communication device in her and so on.</p>
<p>Despite the fact her warning has changed dramatically since it’s initial release people cling on to this idea and genuinely believe TSHTF (The Shit Hits The Fan &#8211; these guys love their acronyms more than us web developers!) next year. You can not disuade them with any well thought out scientific argument , they can not be reasoned with, you can not have a discussion with them. Any one who discredits the idea or who argues against it is a dis-information agent, a sceptic or sent by TPTB to hide it from the masses so that they can hide with the lizard people in the hollow earth.</p>
<p>I often find myself wondering why people buy into this stuff; I’ve often thought it’s due to lack of education in science but I’m not so sure any more &#8211; some of the stuff that comes out of this web site is so absurd any person could read it and realise what a load of rubbish it is.</p>
<p>I wonder if, what with the huge amount of joblessness in the world at the moment if people just need something to hold on to and believe in; “knowing” what is coming helps them feel in control where they are otherwise at the mercy of big banks and incompetent governments.</p>
<p>This post isn’t written to mock &#8211; everyone is entitled to their own opinion and belief; it’s more of a trail of thought and me pondering out loud wondering why such outrageous, bizarre and massively mis-informed theories can hold so many people to such strong beliefs.</p>
<p>However, when all is said and done &#8211; there are some incredibly imaginative people on Above Top Secret &#8211; I bet if they could channel their energies into writing a book it could be a cult favourite.</p>
<img src="http://feeds.feedburner.com/~r/DesignedByRobots/~4/2NUJ_qYdYn8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.designed-by-robots.com/118/on-conspiracy-theories-and-nibiru/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.designed-by-robots.com/118/on-conspiracy-theories-and-nibiru/</feedburner:origLink></item>
		<item>
		<title>Installing mod_pagespeed on CentOS</title>
		<link>http://feedproxy.google.com/~r/DesignedByRobots/~3/VJs0XZb8iKY/</link>
		<comments>http://www.designed-by-robots.com/11/installing-modpagespeed-on-centos/#comments</comments>
		<pubDate>Thu, 14 Apr 2011 11:10:58 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[mod_pagespeed]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[tumblr]]></category>

		<guid isPermaLink="false">http://dan-gates.tumblr.com/post/4604568959</guid>
		<description><![CDATA[Installing mod_pagespeed on CentOS can be a pain in the ass as CentOS uses Python v2.4 (and this can not be updated as it will break many CentOS bits and pieces, such as yum) and mod_pagespeed requires Python v2.6+ but have no fear! There is a simple solution: install a more recent version of Python [...]]]></description>
			<content:encoded><![CDATA[<p>Installing mod_pagespeed on CentOS can be a pain in the ass as CentOS uses Python v2.4 (and this can not be updated as it will break many CentOS bits and pieces, such as yum) and mod_pagespeed requires Python v2.6+ but have no fear! There is a simple solution: install a more recent version of Python alongside CentOS’ version.<span id="more-11"></span></p>
<p>This walk-through (at time of writing) installs Python v2.7.</p>
<p>Grab ActiveState’s version of Python and extract it on your Linux box to wherever.</p>
<p>In the extracted folder do a</p>
<pre>sudo ./install.sh</pre>
<p>You will be asked for an install directory &#8211; hit enter to use the default (again &#8211; at time of writing this is /opt/ActivePython-2.7).</p>
<p>Once this is installed successfully follow the mod_pagespeed install instructions as normal until this point (for the stable version):</p>
<pre>gclient config http://modpagespeed.googlecode.com/svn/branches/latest-beta/src
gclient sync —force # this will download all source code</pre>
<p>Replace the above Terminal commands with the following (assumes you kept the default ActivePython install path, but if not just edit accordingly).</p>
<pre>sudo /opt/ActivePython-2.7/bin/python /bin/depot_tools/gclient.py config

http://modpagespeed.googlecode.com/svn/branches/latest-beta/src

sudo /opt/ActivePython-2.7/bin/python /bin/depot_tools/gclient.py sync —force</pre>
<p>After that just follow the instructions as normal!</p>
<img src="http://feeds.feedburner.com/~r/DesignedByRobots/~4/VJs0XZb8iKY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.designed-by-robots.com/11/installing-modpagespeed-on-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.designed-by-robots.com/11/installing-modpagespeed-on-centos/</feedburner:origLink></item>
		<item>
		<title>Simple PHP Array Sorting Function</title>
		<link>http://feedproxy.google.com/~r/DesignedByRobots/~3/13A3M2LBO60/</link>
		<comments>http://www.designed-by-robots.com/12/simple-php-array-sorting-function/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 13:13:10 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[arrays]]></category>
		<category><![CDATA[sorting]]></category>
		<category><![CDATA[tumblr]]></category>

		<guid isPermaLink="false">http://dan-gates.tumblr.com/post/4579194653</guid>
		<description><![CDATA[I can’t think how many times I’ve needed a function to sort a PHP array by a child element of a node so I thought I’d share a function I’ve written that does just that. For the purpose of the code you’ll see below the array looks like this: Array( [0] =&#62; ( 'title' =&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>I can’t think how many times I’ve needed a function to sort a PHP array by a child element of a node so I thought I’d share a function I’ve written that does just that.<span id="more-12"></span></p>
<p>For the purpose of the code you’ll see below the array looks like this:</p>
<pre> Array(
     [0] =&gt; (
          'title' =&gt; 'string',
          'timestamp' =&gt; 0123456789,
          'other_fields' =&gt; 'blah'
     )
)</pre>
<p>The array will be sorted by the timestamp element of the array’s nodes.</p>
<pre>function sortByTimestamp($posts) {
	/* Sorts the array by timestamp with the most recent first. */

        $sorted = array();
	$count = count($posts);

 	while(count($sorted) &lt; $count) {
 		foreach($posts as $key=&gt;$page)
			if(!isset($smallest) ||
                           page['timestamp'] &lt; $posts[$smallest]['timestamp'])
                              $smallest = $key;

                        $sorted[] = $posts[$smallest];
		unset($posts[$smallest], $smallest);
	} //while

	return array_reverse($sorted);
} //sortByTimestamp()</pre>
<p>The function works pretty simply;</p>
<ol>
<li>Create a blank array (this will contain the sorted array)</li>
<li>Loop through the $posts array and find the one with the smallest timestamp.</li>
<li>Add this element of the array to the array we created at step 1 and remove the element from the unsorted array.</li>
<li>Repeat steps 2 &amp; 3 until all elements have been sorted into the array created into step 1.</li>
<li>Return the new array.</li>
<li>The sorting loop will run the same number of times as there are elements in the array that is to be sorted.</li>
</ol>
<img src="http://feeds.feedburner.com/~r/DesignedByRobots/~4/13A3M2LBO60" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.designed-by-robots.com/12/simple-php-array-sorting-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.designed-by-robots.com/12/simple-php-array-sorting-function/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 3.355 seconds. --><!-- Cached page generated by WP-Super-Cache on 2012-02-25 10:16:42 --><!-- Compression = gzip -->

