<?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>Chris Tate-Davies &#187; IT</title>
	<atom:link href="http://www.christatedavies.co.uk/category/it/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.christatedavies.co.uk</link>
	<description>An archive of helpful tit bits of information for development, and probably some stuff that is incomplete, wrong or boring...</description>
	<lastBuildDate>Tue, 31 Jan 2012 11:18:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Using mod_rewrite for clean URLs</title>
		<link>http://www.christatedavies.co.uk/2012/01/31/using-mod_rewrite-for-clean-urls/</link>
		<comments>http://www.christatedavies.co.uk/2012/01/31/using-mod_rewrite-for-clean-urls/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 11:18:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[IT]]></category>

		<guid isPermaLink="false">http://www.christatedavies.co.uk/?p=323</guid>
		<description><![CDATA[Say your message board on your blog uses the following request URL to find and display the correct data: http://www.mysite.com/blog/index.php?category=news&#38;year=2012&#38;month=1 This is a rather simple request, but it is not very nice looking or easy on the eye, and it can be improved, for the user end experience. Take this for instance: http://www.mysite.com/blog/news/2012/1 That&#8217;s much [...]<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2012/01/31/using-mod_rewrite-for-clean-urls/' addthis:title='Using mod_rewrite for clean URLs ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>Say your message board on your blog uses the following request URL to find and display the correct data:</p>
<pre>http://www.mysite.com/blog/index.php?category=news&amp;year=2012&amp;month=1</pre>
<p>This is a rather simple request, but it is not very nice looking or easy on the eye, and it can be improved, for the user end experience.</p>
<p>Take this for instance:</p>
<pre>http://www.mysite.com/blog/news/2012/1</pre>
<p>That&#8217;s much nicer, and easier to read and understand even for a non technical person. They may understand the category, year and month without any input from you,</p>
<p>How do you convert your site? Well you don&#8217;t need to, but you can use a .htaccess mod_rewrite to change the url in the background.</p>
<pre>RewriteRule blog/([a-z0-9]+)/([0-9]{4})/([0-9]) /blog/index.php?category=$1&amp;year=$2&amp;month=$3 [L]</pre>
<p>This takes the first quantifier after blog (a-z0-9) and says any characters, put into $1. The second is a 4 digit number, and the third, any number.</p>
<p>The [L] tells the re-write engine that if this rule matches, don&#8217;t do any more rule processing (last one)</p>
<p>If you implement this way of displaying your links, then your site should be better off in the big wide world of search engines. A lot of search engine spiders ignore URL&#8217;s with &amp; in them as it can cause recursive looping and its easier to just ignore them.</p>
<p>Also, if you come to rewrite your blog in a new language, ASP for instance (shudder at the thought) then you can change the rule simply:</p>
<pre>RewriteRule blog/([a-z0-9]+)/([0-9]{4})/([0-9]) /blog/index.asp?category=$1&amp;year=$2&amp;month=$3 [L]</pre>
<p>Thinking about your user experience, even if you are considering the search engines, is important.</p>
<p>If you want to read more about the Apache re-write module, you can go <a href="http://httpd.apache.org/docs/current/rewrite/" target="_blank">here</a></p>
<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2012/01/31/using-mod_rewrite-for-clean-urls/' addthis:title='Using mod_rewrite for clean URLs ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.christatedavies.co.uk/2012/01/31/using-mod_rewrite-for-clean-urls/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VPNetMon &#8211; close programs when VPN drops</title>
		<link>http://www.christatedavies.co.uk/2011/12/10/vpnetmon-close-programs-when-vpn-drops/</link>
		<comments>http://www.christatedavies.co.uk/2011/12/10/vpnetmon-close-programs-when-vpn-drops/#comments</comments>
		<pubDate>Sat, 10 Dec 2011 20:42:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[anonymous]]></category>
		<category><![CDATA[connection]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[torrent]]></category>
		<category><![CDATA[vpn]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.christatedavies.co.uk/?p=312</guid>
		<description><![CDATA[If you are using a VPN to securely download files, whether it be for anomynous reasons or anything else, if the VPN connection gets dropped, your PC may revert to an unsecured connection to continue the operation. VPNetMon is an application that montors your VPN connection and if it drops, the application can be configured [...]<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/12/10/vpnetmon-close-programs-when-vpn-drops/' addthis:title='VPNetMon &#8211; close programs when VPN drops ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>If you are using a VPN to securely download files, whether it be for anomynous reasons or anything else, if the VPN connection gets dropped, your PC may revert to an unsecured connection to continue the operation.</p>
<p>VPNetMon is an application that montors your VPN connection and if it drops, the application can be configured to close certain apps.</p>
<p>So if you are using a BitTorrent client and using an anonymous VPN connection to download content this will make you feel much more secure indeed.</p>
<p>You can get it at <a href="http://vpnetmon.webs.com/" target="_blank">http://vpnetmon.webs.com/</a></p>
<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/12/10/vpnetmon-close-programs-when-vpn-drops/' addthis:title='VPNetMon &#8211; close programs when VPN drops ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.christatedavies.co.uk/2011/12/10/vpnetmon-close-programs-when-vpn-drops/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>God, Windows is sloooooow</title>
		<link>http://www.christatedavies.co.uk/2011/11/30/god-windows-is-sloooooow/</link>
		<comments>http://www.christatedavies.co.uk/2011/11/30/god-windows-is-sloooooow/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 12:17:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Humour]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tortoise]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.christatedavies.co.uk/?p=292</guid>
		<description><![CDATA[I am assisting a colleague today check out a rather large feature branch. I showed him the branch address and he started checking it out using Tortoise SVN on Windows 7. Upon returning to my desk (Ubuntu 11.10), I decided to merge the branch with the major trunk. I checked out a brand new copy [...]<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/11/30/god-windows-is-sloooooow/' addthis:title='God, Windows is sloooooow ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>I am assisting a colleague today check out a rather large feature branch. I showed him the branch address and he started checking it out using Tortoise SVN on Windows 7.</p>
<p>Upon returning to my desk (Ubuntu 11.10), I decided to merge the branch with the major trunk. I checked out a brand new copy of the branch, merged it (for the first time in several months) and then re-committed the pages.</p>
<p>Guess what, he&#8217;s still checking out the original!!!</p>
<p>Do yourselves a favour guys, make it Linux this Christmas&#8230;</p>
<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/11/30/god-windows-is-sloooooow/' addthis:title='God, Windows is sloooooow ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.christatedavies.co.uk/2011/11/30/god-windows-is-sloooooow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu, Thunderbird always maximised</title>
		<link>http://www.christatedavies.co.uk/2011/11/23/ubuntu-thunderbird-always-maximised/</link>
		<comments>http://www.christatedavies.co.uk/2011/11/23/ubuntu-thunderbird-always-maximised/#comments</comments>
		<pubDate>Wed, 23 Nov 2011 11:46:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[thunderbird]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.christatedavies.co.uk/?p=283</guid>
		<description><![CDATA[I recently switched from Linux Mint back to the old trusty Ubuntu (11.10) One major problem was Unity, but I got round this by installing Xfce and use that as a shell instead. Much better. Now, my Thunderbird is proper maximised. Like full screen, so I can&#8217;t switch to any applications unless I use ALT [...]<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/11/23/ubuntu-thunderbird-always-maximised/' addthis:title='Ubuntu, Thunderbird always maximised ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>I recently switched from Linux Mint back to the old trusty Ubuntu (11.10)</p>
<p>One major problem was Unity, but I got round this by installing Xfce and use that as a shell instead. <span style="text-decoration: underline;"><strong>Much</strong></span> better.</p>
<p>Now, my Thunderbird is proper maximised. Like full screen, so I can&#8217;t switch to any applications unless I use ALT TAB. Found help on the net.</p>
<p>1) Close Thunderbird</p>
<p>2) Locate your localstore.rdf file, mine was in:</p>
<pre>~/.thunderbird/ftfxbq7f.default$</pre>
<p>3) Edit the file, and find the section that looks a little like this:</p>
<pre>&lt;RDF:Description RDF:about="chrome://messenger/content/messenger.xul#messengerWindow"
                   width="1024"
                   height="1024"
                   screenX="344"
                   screenY="113"
                   sizemode="fullscreen" /&gt;</pre>
<p>And change it to:</p>
<pre>&lt;rdf:Description RDF:about="chrome://messenger/content/messenger.xul#messengerWindow"
                   width="800"
                   height="600"
                   sizemode="normal"
                   screenX="5"
                   screenY="5" /&gt;</pre>
<p>Then, once restarted, Thunderbird should be all nice and accessible again. Thanks to <a href="http://gregk.me/2008/mozilla-firefox-and-thunderbird-ubuntu-maximized-issue/" target="_blank">Greg</a> for this one!</p>
<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/11/23/ubuntu-thunderbird-always-maximised/' addthis:title='Ubuntu, Thunderbird always maximised ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.christatedavies.co.uk/2011/11/23/ubuntu-thunderbird-always-maximised/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SVN Externals &#8211; how to add them</title>
		<link>http://www.christatedavies.co.uk/2011/09/08/svn-externals-how-to-add-them/</link>
		<comments>http://www.christatedavies.co.uk/2011/09/08/svn-externals-how-to-add-them/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 10:16:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[Zend]]></category>
		<category><![CDATA[zend framework]]></category>

		<guid isPermaLink="false">http://www.christatedavies.co.uk/?p=231</guid>
		<description><![CDATA[When creating a Zend Framework site, its always best to keep the Zend library as an external source. This way you can keep the branch up-to-date with the release of Zend with a simple text file. To access the externals file, navigate to the root of your site: &#62; cd /var/www/mysite And add the external [...]<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/09/08/svn-externals-how-to-add-them/' addthis:title='SVN Externals &#8211; how to add them ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>When creating a Zend Framework site, its always best to keep the Zend library as an external source. This way you can keep the branch up-to-date with the release of Zend with a simple text file.</p>
<p>To access the externals file, navigate to the root of your site:</p>
<pre>&gt; cd /var/www/mysite</pre>
<p>And add the external to the svn:externals file. I am using the latest version of Zend Framework for this, but you can use any SVN source you like. Note, it <strong>has</strong> to be available as an SVN repository.</p>
<pre>&gt; svn propedit svn:externals .</pre>
<p>This will open a text editor.</p>
<p>To enter an external, just enter the local folder to download to, and the source SVN.</p>
<pre>destination source</pre>
<p>So, if I want my Zend Framework files to be saved in /var/www/mysite/library/Zend :</p>
<pre>library/Zend http://framework.zend.com/svn/framework/standard/tags/release-1.11.9/library/Zend/</pre>
<p>The first part is the local, second part is the URL of the repository.</p>
<p>Save and close.</p>
<p>Next time you do an update, svn will go and fetch the external files and save them for you.</p>
<p>Other externals are available, such as JQuery, various wikis and other JS sources.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/09/08/svn-externals-how-to-add-them/' addthis:title='SVN Externals &#8211; how to add them ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.christatedavies.co.uk/2011/09/08/svn-externals-how-to-add-them/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add all new files to SVN</title>
		<link>http://www.christatedavies.co.uk/2011/09/08/add-all-new-files-to-svn/</link>
		<comments>http://www.christatedavies.co.uk/2011/09/08/add-all-new-files-to-svn/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 10:05:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[add]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.christatedavies.co.uk/?p=228</guid>
		<description><![CDATA[How to recursively add all new files to SVN &#62; svn add --force * Saves a whole bunch of time when committing a load of new pages via the command line. &#160; &#160; &#160;<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/09/08/add-all-new-files-to-svn/' addthis:title='Add all new files to SVN ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>How to recursively add all new files to SVN</p>
<pre>&gt; svn add --force *</pre>
<p>Saves a whole bunch of time when committing a load of new pages via the command line.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/09/08/add-all-new-files-to-svn/' addthis:title='Add all new files to SVN ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.christatedavies.co.uk/2011/09/08/add-all-new-files-to-svn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keeping 2 drives sync&#8217;ed with rsync on Linux</title>
		<link>http://www.christatedavies.co.uk/2011/08/31/keeping-2-drives-synced-with-rsync-on-linux/</link>
		<comments>http://www.christatedavies.co.uk/2011/08/31/keeping-2-drives-synced-with-rsync-on-linux/#comments</comments>
		<pubDate>Wed, 31 Aug 2011 13:18:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[external]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[hdd]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[synchronising]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.christatedavies.co.uk/?p=224</guid>
		<description><![CDATA[I have an external USB HDD and I like to keep it synchronised with my desktop for backup reasons. I find the easiest way to do this, is to use rsync: &#62; sudo apt-get install rsync &#62; rsync -avu /source/ /dest/ For example: &#62; rysnc -avu /media/externaldisk/ /home/chris/diskbackup/ Will increment copy everything (ignoring older files) from [...]<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/08/31/keeping-2-drives-synced-with-rsync-on-linux/' addthis:title='Keeping 2 drives sync&#8217;ed with rsync on Linux ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>I have an external USB HDD and I like to keep it synchronised with my desktop for backup reasons. I find the easiest way to do this, is to use rsync:</p>
<pre>&gt; sudo apt-get install rsync
&gt; rsync -avu /source/ /dest/</pre>
<p>For example:</p>
<pre>&gt; rysnc -avu /media/externaldisk/ /home/chris/diskbackup/</pre>
<p>Will increment copy everything (ignoring older files) from /media/externaldisk to my /home/chris/diskbackup folder.</p>
<p>The options are:</p>
<ul>
<li>a &#8211; Archive mode &#8211; Will retain the folder/file properties, such as owner, permissions, etc.</li>
<li>v &#8211; Verbose &#8211; Output the progress to the screen (so I know its still working)</li>
<li>u &#8211; Update &#8211; Only update files that have a more recent file modified date.</li>
</ul>
<p>&nbsp;</p>
<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/08/31/keeping-2-drives-synced-with-rsync-on-linux/' addthis:title='Keeping 2 drives sync&#8217;ed with rsync on Linux ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.christatedavies.co.uk/2011/08/31/keeping-2-drives-synced-with-rsync-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOWTO: Rotate a video in Linux</title>
		<link>http://www.christatedavies.co.uk/2011/08/17/howto-rotate-a-video-in-linux/</link>
		<comments>http://www.christatedavies.co.uk/2011/08/17/howto-rotate-a-video-in-linux/#comments</comments>
		<pubDate>Wed, 17 Aug 2011 09:42:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mencoder]]></category>
		<category><![CDATA[mov]]></category>
		<category><![CDATA[mpg]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[rotate]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[videos]]></category>

		<guid isPermaLink="false">http://www.christatedavies.co.uk/?p=200</guid>
		<description><![CDATA[I videoed something at the weekend on my iphone, but must&#8217;ve had the phone upside-down so the video came out that way. Fortunately there is a little program that will rotate a video for you. &#62; sudo apt-get install mencoder Then, to rotate my video clockwise by 90 degrees: &#62; mencoder -ovc lavc -vf rotate=1 [...]<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/08/17/howto-rotate-a-video-in-linux/' addthis:title='HOWTO: Rotate a video in Linux ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>I videoed something at the weekend on my iphone, but must&#8217;ve had the phone upside-down so the video came out that way.</p>
<p>Fortunately there is a little program that will rotate a video for you.</p>
<pre>&gt; sudo apt-get install mencoder</pre>
<p>Then, to rotate my video clockwise by 90 degrees:</p>
<pre>&gt; mencoder -ovc lavc -vf rotate=1 -oac pcm inputfile.ext -o outputfile.ext</pre>
<p>I had to do this twice, obviously changing the input filename for the second rotation for the output filename on the first&#8230;</p>
<p>Job done. That were easy.</p>
<p>There is more help here: <a href="http://en.gentoo-wiki.com/wiki/HOWTO_Mencoder_Introduction_Guide">http://en.gentoo-wiki.com/wiki/HOWTO_Mencoder_Introduction_Guide</a></p>
<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/08/17/howto-rotate-a-video-in-linux/' addthis:title='HOWTO: Rotate a video in Linux ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.christatedavies.co.uk/2011/08/17/howto-rotate-a-video-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stopping Ubuntu opening F-Spot when I plug in my iPhone</title>
		<link>http://www.christatedavies.co.uk/2011/06/14/stopping-ubuntu-opening-f-spot-when-i-plug-in-my-iphone/</link>
		<comments>http://www.christatedavies.co.uk/2011/06/14/stopping-ubuntu-opening-f-spot-when-i-plug-in-my-iphone/#comments</comments>
		<pubDate>Tue, 14 Jun 2011 14:51:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[autoplay]]></category>
		<category><![CDATA[autorun]]></category>
		<category><![CDATA[f-spot]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.christatedavies.co.uk/?p=188</guid>
		<description><![CDATA[When I installed Ubuntu, every time I plugged in my iPhone it popped up a prompt asking me what to do about the digital music/photos. After clicking &#8220;do nothing&#8221; for months I decided to let it open F-Spot to import my photos. This is all well and good, but it now pops up f-spot whenever [...]<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/06/14/stopping-ubuntu-opening-f-spot-when-i-plug-in-my-iphone/' addthis:title='Stopping Ubuntu opening F-Spot when I plug in my iPhone ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>When I installed Ubuntu, every time I plugged in my iPhone it popped up a prompt asking me what to do about the digital music/photos. After clicking &#8220;do nothing&#8221; for months I decided to let it open F-Spot to import my photos. This is all well and good, but it now pops up f-spot whenever I plug it in, several times a day!</p>
<p>To combat this, open a terminal session and type:</p>
<pre>nautilus-file-management-properties</pre>
<p>Then, you can click on the Media tab, and choose &#8220;Do Nothing&#8221; for Photos.</p>
<p>Job done. Thank god!</p>
<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/06/14/stopping-ubuntu-opening-f-spot-when-i-plug-in-my-iphone/' addthis:title='Stopping Ubuntu opening F-Spot when I plug in my iPhone ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.christatedavies.co.uk/2011/06/14/stopping-ubuntu-opening-f-spot-when-i-plug-in-my-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatic Windows Process Dump Script</title>
		<link>http://www.christatedavies.co.uk/2011/06/14/automatic-windows-process-dump-script/</link>
		<comments>http://www.christatedavies.co.uk/2011/06/14/automatic-windows-process-dump-script/#comments</comments>
		<pubDate>Tue, 14 Jun 2011 10:16:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[bat]]></category>
		<category><![CDATA[bat file]]></category>
		<category><![CDATA[bat file substring]]></category>
		<category><![CDATA[batch file]]></category>
		<category><![CDATA[batch file dates]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.christatedavies.co.uk/?p=185</guid>
		<description><![CDATA[I have a laborious task at the moment, of exporting our server process list to see how much memory certain programs are using. I was getting a little bored of remote accessing the server through VNC so decided to use a BAT file to do the work for me. However the problem was, I wanted [...]<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/06/14/automatic-windows-process-dump-script/' addthis:title='Automatic Windows Process Dump Script ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>I have a laborious task at the moment, of exporting our server process list to see how much memory certain programs are using. I was getting a little bored of remote accessing the server through VNC so decided to use a BAT file to do the work for me. However the problem was, I wanted to save each dump as the date it was run and this wasn&#8217;t easy in a BAT file.</p>
<pre>C:&gt; TASKLIST.EXE /V /FO CSV &gt; 2011-06-14.txt</pre>
<p>That is the function I have been using. So this is what I want the script to do.</p>
<p>To get the actual current date, I used this call:</p>
<pre>ver | date &gt; date.txt</pre>
<p>This creates a file called date.txt and inserts the current date (with another line which I can ignore)</p>
<p>So, now I want to read this file into memory so I can get the date from it.</p>
<pre>set /p var= &lt;date.txt</pre>
<p>This reads in the first line of the file and stores it in the var variable</p>
<p>The line is:</p>
<pre>The current date is: 14/06/2011</pre>
<p>So lets get rid of the preliminary string as we don&#8217;t want it</p>
<pre>set var=%var:~21,10%</pre>
<p>This sets the variable &#8220;var&#8221; to be a substring of itself, starting at character 21 and fo 10 characters. Get it?</p>
<p>All we need to do now is chop and change the date so I get it in the format I want, from dd/mm/yyyy to yyyy-mm-dd (I am a database sucker, so always use these format dates)</p>
<p>A little more confusing looking, but does the same as the previous line, picking bits of the string and putting them into the var variable.</p>
<pre>set var=%var:~6,4%-%var:~3,2%-%var:~0,2%.txt</pre>
<p>If you read it, you will see it takes the 4 characters starting from position 6 (this is the year), adds a &#8220;-&#8221; symbol, then 2 characters starting from the 3rd, another &#8211; and then the first 2 characters</p>
<p>Put it all into a batch file, and it looks like this:</p>
<pre>@echo off
REM Chris Tate-Davies
REM Export the current process list and save as todays date.txt
REM To be run from the schheduled tasks every day

REM delete any existence of previous date
del date.txt

REM Get the date and put it in a file
ver | date &gt; date.txt

REM open the new file and put the date in variable "var"
set /p var= &lt;date.txt

REM chop out the string so we just have the date
set var=%var:~21,10%

REM re-allign the date parts to yyyy-mm-dd
set var=%var:~6,4%-%var:~3,2%-%var:~0,2%.txt

REM run the tasklist and pass the %var% to output to
tasklist.exe /V /FO CSV &gt; %var%</pre>
<p>Now all I need to do is add it to the scheduled tasks and then I can pick up the files once a week instead or stopping what I am doing every day to do it.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.christatedavies.co.uk/2011/06/14/automatic-windows-process-dump-script/' addthis:title='Automatic Windows Process Dump Script ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.christatedavies.co.uk/2011/06/14/automatic-windows-process-dump-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

