<?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>Tom Greenaway</title>
	<atom:link href="http://www.tomgreenaway.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tomgreenaway.com</link>
	<description></description>
	<lastBuildDate>Fri, 11 Feb 2011 09:16:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Rolling Backups with Cron</title>
		<link>http://www.tomgreenaway.com/2011/02/rolling-backups-with-cron/</link>
		<comments>http://www.tomgreenaway.com/2011/02/rolling-backups-with-cron/#comments</comments>
		<pubDate>Fri, 11 Feb 2011 09:14:39 +0000</pubDate>
		<dc:creator>TCMG</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.tomgreenaway.com/?p=319</guid>
		<description><![CDATA[I recently needed to add some better backup systems to my current pet project. There are 3 pretty important things to consider backing up in the case of this system: The code The database data Some flat file uploads from &#8230; <a href="http://www.tomgreenaway.com/2011/02/rolling-backups-with-cron/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I recently needed to add some better backup systems to my current pet project.</p>
<p>There are 3 pretty important things to consider backing up in the case of this system:</p>
<ul>
<li>The code</li>
<li>The database data</li>
<li>Some flat file uploads from users</li>
</ul>
<p><span id="more-319"></span></p>
<p>I&#8217;ve arranged my code so there&#8217;s a single JSON file to control its configuration between environments. Beyond that there&#8217;s the whole code base, of course this is under version control and is available on my local machine and I have an extra backup process going on for my local machine&#8217;s copy. So the code is pretty safely backed up at the moment.</p>
<p>The main things I considered today were the second two matters. Backing up the database was pretty trivial in Cron, especially since the database data is incredibly small, most users will probably consume less than a megabyte but nonetheless that data is significant (auth details, relationships etc):</p>
<pre class="brush: bash;">
0 4 * * * mysqldump -u username -pdbpasswd dbname &gt; /directory/to/store/databasebackup
</pre>
<p>Backing up the third was trickier, I really wanted a rolling window of backups for this data. By rolling window I mean that backups will be made at a regular interval but only the last X backups will be kept. In the example below I&#8217;m rolling the last 5 days of backups.</p>
<p>A quick search across StackOverflow led me to these two commands:</p>
<pre class="brush: bash;">
# Backup all data
0 4 * * * tar -zcf /directory/to/store/backups/data`date +\%F`.tar.gz /directory/to/backup

# Remove all backups beyond 5 days
0 5 * * * cd /directory/to/store/backups/ &amp;amp;&amp;amp; (ls -t|head -n 5;ls)|sort|uniq -u|xargs rm
</pre>
<p>The backslash in the Backup all data command is significant as Cron will interpret the % differently otherwise. And by differently I mean in a way you really don&#8217;t want <img src='http://www.tomgreenaway.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;d like to see other people&#8217;s solutions, perhaps a more scattered backup schedule? Five backups for the past five days, one backup every week for four weeks? one backup every month for the past six months? These could be achieved easily by adapting the above with separate directories or perhaps prefixing the filenames.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tomgreenaway.com/2011/02/rolling-backups-with-cron/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linode VPS Hosting</title>
		<link>http://www.tomgreenaway.com/2010/09/linode-vps-hosting/</link>
		<comments>http://www.tomgreenaway.com/2010/09/linode-vps-hosting/#comments</comments>
		<pubDate>Sun, 26 Sep 2010 12:32:38 +0000</pubDate>
		<dc:creator>TCMG</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.tomgreenaway.com/?p=304</guid>
		<description><![CDATA[On a recommendation I signed up for VPS hosting with Linode. I&#8217;ve moved my blog to the service and I&#8217;m testing some side-project development on the system. Sure there&#8217;s higher latency for me, I&#8217;ve moved the blog from an Aussie &#8230; <a href="http://www.tomgreenaway.com/2010/09/linode-vps-hosting/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>On a recommendation I signed up for VPS hosting with Linode. I&#8217;ve moved my blog to the service and I&#8217;m testing some side-project development on the system.</p>
<p>Sure there&#8217;s higher latency for me, I&#8217;ve moved the blog from an Aussie shared hosting to this Linode located in California. Overall I think the website&#8217;s performance for everyone else will remain fine though and I&#8217;ve already set up Varnish to improve the time spent on the server.</p>
<p>They have some nice statistics available regarding usage of their hardware and an amusing iPhone app to monitor, configure and even reboot the VPS if needed.</p>
<p>So far I highly recommend the hosting to anyone interested, just start paying month by month if you&#8217;re not sure <img src='http://www.tomgreenaway.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.tomgreenaway.com/2010/09/linode-vps-hosting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reboot</title>
		<link>http://www.tomgreenaway.com/2010/09/reboot/</link>
		<comments>http://www.tomgreenaway.com/2010/09/reboot/#comments</comments>
		<pubDate>Sun, 26 Sep 2010 12:02:18 +0000</pubDate>
		<dc:creator>TCMG</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.tomgreenaway.com/?p=301</guid>
		<description><![CDATA[I&#8217;ve just finished applying a new fresh coat of paint to my website. Hopefully I can find time to blog again on here.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just finished applying a new fresh coat of paint to my website. Hopefully I can find time to blog again on here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tomgreenaway.com/2010/09/reboot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 9.04 on X31 Thinkpad</title>
		<link>http://www.tomgreenaway.com/2009/05/ubuntu-904-on-x31-thinkpad/</link>
		<comments>http://www.tomgreenaway.com/2009/05/ubuntu-904-on-x31-thinkpad/#comments</comments>
		<pubDate>Sat, 30 May 2009 05:51:43 +0000</pubDate>
		<dc:creator>TCMG</dc:creator>
				<category><![CDATA[Leisure]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://tgreenaway.com/2009/05/ubuntu-904-on-x31-thinkpad/</guid>
		<description><![CDATA[My laptop is a second-hand X31 Thinkpad. They&#8217;re an extremely durable and reliable device in my opinion. I love that it&#8217;s light-ish at 1.6 kilos but doesn&#8217;t compromise on the keyboard size. I actually purchased it just before the Netbook &#8230; <a href="http://www.tomgreenaway.com/2009/05/ubuntu-904-on-x31-thinkpad/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>My laptop is a second-hand X31 Thinkpad.</p>
<p>They&#8217;re an extremely durable and reliable device in my opinion. I love that it&#8217;s light-ish at 1.6 kilos but doesn&#8217;t compromise on the keyboard size. I actually purchased it just before the Netbook craze kicked into gear in 2007. Sometimes I wish it was lighter but I&#8217;ve read enough complaints from people regarding the keyboard problems on Netbooks that I&#8217;m happy.</p>
<p>I run Ubuntu on the laptop and it&#8217;s getting better with a couple of gripes. Originally in 7.10 there were some fan and wireless problems but now 9.04 has everything working except two parts broke that I&#8217;ll detail here.</p>
<ul>
<li>The external sound controls are no longer responding. Annoying but not too bad. I haven&#8217;t researched what has changed but I will update this post when I find out.</li>
<li>A more pressing problem was a small change in the xorg.conf file. The result was a bizarre, sluggish effect on the entire interface of laptop that was worst when minimizing windows and scrolling a page in Firefox. By sluggish I actually mean unusable <img src='http://www.tomgreenaway.com/wp-includes/images/smilies/icon_neutral.gif' alt=':|' class='wp-smiley' /> </li>
</ul>
<p>The omission was (under the device section):</p>
<blockquote><p>Option &#8220;AccelMethod&#8221; &#8220;XAA&#8221;</p></blockquote>
<p>The responsiveness is back to normal with that inclusion.</p>
<p>I personally don&#8217;t need Compiz on my laptop (a waste of battery I find) so here&#8217;s my <a href="http://tgreenaway.com/xorg.conf">current xorg.conf file</a> for anyone that&#8217;s interested.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tomgreenaway.com/2009/05/ubuntu-904-on-x31-thinkpad/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Top Firefox Add-ons</title>
		<link>http://www.tomgreenaway.com/2009/04/top-firefox-add-ons/</link>
		<comments>http://www.tomgreenaway.com/2009/04/top-firefox-add-ons/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 15:28:22 +0000</pubDate>
		<dc:creator>TCMG</dc:creator>
				<category><![CDATA[Leisure]]></category>
		<category><![CDATA[addons]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://tgreenaway.com/?p=263</guid>
		<description><![CDATA[Here&#8217;s a few lists of customisations I use in Firefox. For web development: Firebug &#8211; All round awesome web development tool. Allows for on-the-fly alterations to CSS, the HTML DOM. Inserting break points into JavaScript, viewing any existing JSON objects &#8230; <a href="http://www.tomgreenaway.com/2009/04/top-firefox-add-ons/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">Here&#8217;s a few lists of customisations I use in Firefox.</p>
<p style="text-align: left;">For web development:</p>
<ul>
<li><a href="https://addons.mozilla.org/firefox/addon/1843">Firebug</a> &#8211; All round awesome web development tool. Allows for on-the-fly alterations to CSS, the HTML DOM. Inserting break points into JavaScript, viewing any existing JSON objects in memory and providing a JavaScript interpreter for debugging.</li>
<li><a href="https://addons.mozilla.org/firefox/addon/5369">YSlow</a> &#8211; Useful web profiler that adds itself to Firebug. Provides recommendations on how to optimise web pages as well.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/60">Web Developer Toolbar</a> &#8211; I prefer Firebug overall but Web Developer has a few extra features like resizing the window for different screen resolutions.</li>
<li><a href="https://addons.mozilla.org/firefox/addon/722">NoScript</a> &#8211; Easy approach to enabling and disabling separate JavaScript files on a website.</li>
</ul>
<p style="text-align: left;">My favourites:</p>
<ul>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/4550">Compact Menu</a> &#8211; Allows you to get rid of the regular &#8216;File&#8217; menu in Firefox and provides either a small &#8216;Globe&#8217; icon or the simply the word &#8216;Menu&#8217; that&#8217;ll drop down and provide the regular Firefox menu when clicked. Saves a lot of screen real estate for the user.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/1951">Fission</a> &#8211; Turns the address bar into a loading indicator by representing how far loaded the page as a coloured bar spreading across the address. Similar to Safari&#8217;s address bar loading system.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/26">Download Status Bar</a> &#8211; Does away with the regular &#8216;Download Window&#8217; of yesteryear and provides information on the status of downloads on the regular Firefox window via a pop-up status bar.</li>
</ul>
<p>An essential (but detrimental to this blog&#8217;s revenue!) add-on:</p>
<ul>
<li><a href="https://addons.mozilla.org/firefox/addon/1865">AdBlock</a> &#8211; Automatically hides (doesn&#8217;t even waste bandwidth on) adverts according to automagically maintained universal regular expressions.</li>
</ul>
<p>Note: The ordering of the add-ons is not meant to indicate my preference or importance I place on them <img src='http://www.tomgreenaway.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.tomgreenaway.com/2009/04/top-firefox-add-ons/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

