<?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>Matthew Elliston</title>
	<atom:link href="http://www.matthewelliston.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.matthewelliston.com</link>
	<description>A site filled with my pictures, thoughts and things I want to remember!</description>
	<lastBuildDate>Wed, 24 Aug 2011 14:03:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Find Files Over A Certain Size on Web Server</title>
		<link>http://www.matthewelliston.com/find-files-over-a-certain-size-on-web-server/</link>
		<comments>http://www.matthewelliston.com/find-files-over-a-certain-size-on-web-server/#comments</comments>
		<pubDate>Wed, 24 Aug 2011 14:03:10 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[Web Server]]></category>

		<guid isPermaLink="false">http://www.matthewelliston.com/?p=184</guid>
		<description><![CDATA[To find files over 30M the following could be used: find / -type f -size +30000k -exec ls -lh {} \; &#124; awk &#8216;{ print $5 &#8220;: &#8221; $9 }&#8217; &#124;sort -n Helps if you are running out of space. It can take a while to complete though so have patience!]]></description>
			<content:encoded><![CDATA[<p>To find files over 30M the following could be used:</p>
<p>find / -type f -size +30000k -exec ls -lh {} \; | awk &#8216;{ print $5 &#8220;: &#8221; $9 }&#8217; |sort -n</p>
<p>Helps if you are running out of space. It can take a while to complete though so have patience!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.matthewelliston.com/find-files-over-a-certain-size-on-web-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Command Line Delete Files Over A Certain Age</title>
		<link>http://www.matthewelliston.com/command-line-delete-files-over-a-certain-age/</link>
		<comments>http://www.matthewelliston.com/command-line-delete-files-over-a-certain-age/#comments</comments>
		<pubDate>Wed, 24 Aug 2011 14:01:24 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[Web Server]]></category>

		<guid isPermaLink="false">http://www.matthewelliston.com/?p=182</guid>
		<description><![CDATA[How to find files and delete them over a certain age: EG .html files over 28 days old find -name &#8220;*.html&#8221; -mtime +28 -type f -exec rm {} \;]]></description>
			<content:encoded><![CDATA[<p>How to find files and delete them over a certain age: </p>
<p>EG .html files over 28 days old </p>
<p>find <DIRECTORY> -name &#8220;*.html&#8221; -mtime +28 -type f -exec rm {} \;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.matthewelliston.com/command-line-delete-files-over-a-certain-age/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jquery Trigger onchange() Event.</title>
		<link>http://www.matthewelliston.com/jquery-trigger-onchange-event/</link>
		<comments>http://www.matthewelliston.com/jquery-trigger-onchange-event/#comments</comments>
		<pubDate>Thu, 30 Jun 2011 08:34:27 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[Jquery]]></category>

		<guid isPermaLink="false">http://www.matthewelliston.com/?p=178</guid>
		<description><![CDATA[While developing a subscription module i required the need to trigger an onchange event. I had a &#60;select&#62; which displayed all the products and when the selected option value changed it would perform an ajax request and load the products options to be displayed below the product. This worked like a charm however I needed<a href="http://www.matthewelliston.com/jquery-trigger-onchange-event/" class="read-more">Continue Reading</a>]]></description>
			<content:encoded><![CDATA[<p>While developing a subscription module i required the need to trigger an onchange event.</p>
<p>I had a &lt;select&gt; which displayed all the products and when the selected option value changed it would perform an ajax request and load the products options to be displayed below the product.</p>
<p>This worked like a charm however I needed to ensure that when I was viewing a subscription the form was preloaded with the chosen product option value and also the product options. So i needed to figure check to see if there was product and if so trigger the change. This can be done like so:</p>
<pre class="brush: jscript; title: ; notranslate">
$('#subscription_type_product_id').change(function(){
        //Code here for the ajax request to load product options...
});
</pre>
<p>Above was the original .change() function. Now to trigger the above we simply call:</p>
<pre class="brush: jscript; title: ; notranslate">
$('#subscription_type_product_id').trigger('change');
</pre>
<p>Please note that the trigger needed to be placed after the original .change() declaration.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.matthewelliston.com/jquery-trigger-onchange-event/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Retrieving  Plesk Email Address Passwords</title>
		<link>http://www.matthewelliston.com/retrieving-plesk-email-address-passwords/</link>
		<comments>http://www.matthewelliston.com/retrieving-plesk-email-address-passwords/#comments</comments>
		<pubDate>Mon, 27 Jun 2011 09:07:37 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[Web Server]]></category>

		<guid isPermaLink="false">http://www.matthewelliston.com/?p=166</guid>
		<description><![CDATA[Recently I had to try login to a webmail account for a client. I needed their password but couldn&#8217;t remember what it was set to and didn&#8217;t really want to reset the whole password so I decided to look in the Plesk database (psa) to see if I could find it. The database was very<a href="http://www.matthewelliston.com/retrieving-plesk-email-address-passwords/" class="read-more">Continue Reading</a>]]></description>
			<content:encoded><![CDATA[<p>Recently I had to try login to a webmail account for a client. I needed their password but couldn&#8217;t remember what it was set to and didn&#8217;t really want to reset the whole password so I decided to look in the Plesk database (psa) to see if I could find it.</p>
<p>The database was very helpful. With the query:</p>
<pre class="brush: sql; title: ; notranslate">
select mail_name,name,password
from accounts,mail,domains
where mail.account_id=accounts.id
and mail.dom_id = domains.id where name = &quot;domain.com&quot;;
</pre>
<p>From here it showed a list of all the emails under a set domain together with their passwords.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.matthewelliston.com/retrieving-plesk-email-address-passwords/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.docx becomes .zip when viewing on the web</title>
		<link>http://www.matthewelliston.com/docx-becomes-zip-when-viewing-on-the-web/</link>
		<comments>http://www.matthewelliston.com/docx-becomes-zip-when-viewing-on-the-web/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 15:38:45 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[Web Server]]></category>

		<guid isPermaLink="false">http://www.matthewelliston.com/?p=154</guid>
		<description><![CDATA[I recently stumbled on the problem of my web server serving .docx files and them becoming .zip. The problem is that the mime types were not up-to-date so it thought they were zip files. In order to fix this I added the following to my /etc/mime.types These are the new mime types for things like<a href="http://www.matthewelliston.com/docx-becomes-zip-when-viewing-on-the-web/" class="read-more">Continue Reading</a>]]></description>
			<content:encoded><![CDATA[<p>I recently stumbled on the problem of my web server serving .docx files and them becoming .zip.</p>
<p>The problem is that the mime types were not up-to-date so it thought they were zip files.</p>
<p>In order to fix this I added the following to my /etc/mime.types</p>
<p><pre class="brush: bash; title: ; notranslate">
 application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
 application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
 application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx
 application/vnd.ms-word.document.macroEnabled.12 .docm
 application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
 application/vnd.ms-powerpoint.template.macroEnabled.12 potm
 application/vnd.openxmlformats-officedocument.presentationml.template potx
 application/vnd.ms-powerpoint.addin.macroEnabled.12 ppam
 application/vnd.ms-powerpoint.slideshow.macroEnabled.12 ppsm
 application/vnd.ms-powerpoint.presentation.macroEnabled.12 pptm
 application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
 application/vnd.ms-excel.addin.macroEnabled.12 xlam
 application/vnd.ms-excel.sheet.binary.macroEnabled.12 xlsb
 application/vnd.ms-excel.sheet.macroEnabled.12 xlsm
 application/vnd.ms-excel.template.macroEnabled.12 xltm
 application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx
</pre>
<p>These are the new mime types for things like docx and xlsx etc.</p>
<p>A quick restart of apache with:</p>
<p>apachectl restart </p>
<p>And the problem was no more.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.matthewelliston.com/docx-becomes-zip-when-viewing-on-the-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error parsing XML; message from parser is: The entity &#8220;Acirc&#8221; was referenced, but not declared.</title>
		<link>http://www.matthewelliston.com/error-parsing-xml-message-from-parser-is-the-entity-acirc-was-referenced-but-not-declared/</link>
		<comments>http://www.matthewelliston.com/error-parsing-xml-message-from-parser-is-the-entity-acirc-was-referenced-but-not-declared/#comments</comments>
		<pubDate>Tue, 31 May 2011 16:12:26 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.matthewelliston.com/?p=147</guid>
		<description><![CDATA[Recently I stumbled upon an error while trying to pass a shopping cart to the payment provider Google Checkout. The error was: &#8220;Error parsing XML; message from parser is: The entity &#8220;Acirc&#8221; was referenced, but not declared.&#8221; After hunting around and a bit of searching on the net, the issued stemmed from having a `&#163;`<a href="http://www.matthewelliston.com/error-parsing-xml-message-from-parser-is-the-entity-acirc-was-referenced-but-not-declared/" class="read-more">Continue Reading</a>]]></description>
			<content:encoded><![CDATA[<p>Recently I stumbled upon an error while trying to pass a shopping cart to the payment provider Google Checkout.</p>
<p>The error was: </p>
<p><em>&#8220;Error parsing XML; message from parser is: The entity &#8220;Acirc&#8221; was referenced, but not declared.&#8221;</em></p>
<p>After hunting around and a bit of searching on the net, the issued stemmed from having a `&pound;` in a product&#8217;s option name. Removing the `&pound;` sign seemed to fix the issue. So if you ever run into this issue it would be wise to check if there are any &pound; signs in your xml.</p>
<p>Strange error so I thought I would note it here for future ref and others to see.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.matthewelliston.com/error-parsing-xml-message-from-parser-is-the-entity-acirc-was-referenced-but-not-declared/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; Change Layered Navigation Category Text</title>
		<link>http://www.matthewelliston.com/magento-change-layered-navigation-category-text/</link>
		<comments>http://www.matthewelliston.com/magento-change-layered-navigation-category-text/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 10:35:37 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://www.matthewelliston.com/?p=136</guid>
		<description><![CDATA[This is just a quick post about how to change the &#8220;Category&#8221; wording on the layered navigation of a site. I needed to change it to &#8220;Brand&#8221; and it took me a few minutes to locate the correct files as the developer guide lines were not showing up. I thought for this reason I will<a href="http://www.matthewelliston.com/magento-change-layered-navigation-category-text/" class="read-more">Continue Reading</a>]]></description>
			<content:encoded><![CDATA[<p>This is just a quick post about how to change the &#8220;Category&#8221; wording on the layered navigation of a site. I needed to change it to &#8220;Brand&#8221; and it took me a few minutes to locate the correct files as the developer guide lines were not showing up. I thought for this reason I will make a quick note of it here on my blog.</p>
<p>The file you need to look in is:</p>
<p><em>/shop/app/design/frontend/default/default/template/catalog/navigation/left.phtml</em></p>
<p>Remember default/default should be changed to your current interface and theme for the site.</p>
<p>In this file around line 46 you should see a line of code looking like this:</p>
<p>
<pre class="brush: php">
<dt><?php echo $this->__('Category') ?></dt>
</pre>
<p>Change this to whatever you want to display eg. &#8216;Brand&#8217;. So my line will now look like:</p>
<p>
<pre class="brush: php">
<dt><?php echo $this->__('Brand') ?></dt>
</pre>
<p>Save the file and hit refresh and voila! New title in your layered navigation.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.matthewelliston.com/magento-change-layered-navigation-category-text/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Magento Change &#8220;My Cart&#8221; to &#8220;My Basket&#8221;</title>
		<link>http://www.matthewelliston.com/magento-change-my-cart-to-my-basket/</link>
		<comments>http://www.matthewelliston.com/magento-change-my-cart-to-my-basket/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 13:16:46 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://www.matthewelliston.com/?p=132</guid>
		<description><![CDATA[A site we were developing needed to have the wording &#8220;My Cart&#8221; changed to &#8220;My Basket&#8221; in the header links of the site. To do this we made a translate.csv file under &#8220;/app/design/frontend/default/default/locale/en_GB/&#8221; The &#8220;en_GB&#8221; could be whatever locale you are using. Our store is setup for the UK so it is &#8220;en_GB&#8221; the US<a href="http://www.matthewelliston.com/magento-change-my-cart-to-my-basket/" class="read-more">Continue Reading</a>]]></description>
			<content:encoded><![CDATA[<p>A site we were developing needed to have the wording &#8220;My Cart&#8221; changed to &#8220;My Basket&#8221; in the header links of the site.</p>
<p>To do this we made a translate.csv file under &#8220;/app/design/frontend/default/default/locale/en_GB/&#8221;</p>
<p>The &#8220;en_GB&#8221; could be whatever locale you are using. Our store is setup for the UK so it is &#8220;en_GB&#8221; the US would be &#8220;en_US&#8221;.</p>
<p>Also the template could differ, we were using the default template.</p>
<p>Now in the translate.csv file add the following lines:</p>
<p>&#8220;My Cart (%s item)&#8221;, &#8220;My Basket (%s item)&#8221;<br />
&#8220;My Cart (%s items)&#8221;, &#8220;My Basket (%s items)&#8221;<br />
&#8220;My Cart&#8221;, &#8220;My Basket&#8221;</p>
<p>Save the file and upload it to the location above. Login to the admin and refresh the cache by going to System->Cache Management. Select refresh in the drop down and press &#8220;Save Cache Settings&#8221;</p>
<p>Refresh your website front end to notice the difference.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.matthewelliston.com/magento-change-my-cart-to-my-basket/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Copyright Year.</title>
		<link>http://www.matthewelliston.com/copyright-year/</link>
		<comments>http://www.matthewelliston.com/copyright-year/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 09:23:46 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.matthewelliston.com/?p=125</guid>
		<description><![CDATA[Just a quick post but it is one that I had to use recently so thought I would quickly make a note of it so that it helps others out. With the new year coming I had to update a sites copyright year which was displayed in the footer. It was a simple enough thing<a href="http://www.matthewelliston.com/copyright-year/" class="read-more">Continue Reading</a>]]></description>
			<content:encoded><![CDATA[<p>Just a quick post but it is one that I had to use recently so thought I would quickly make a note of it so that it helps others out.</p>
<p>With the new year coming I had to update a sites copyright year which was displayed in the footer. It was a simple enough thing to do but I feared that I would need to be doing it again this time next year.</p>
<p>The solution was to use PHP to output the current year.</p>
<pre class="brush: php">
   echo date("Y");
</pre>
<p>If your server doesn&#8217;t support PHP check see if there are any other server side scripting languages such as ASP, Perl, Python or Ruby etc They all have similar functions for returning the current year.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.matthewelliston.com/copyright-year/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Remove sound from an FLV</title>
		<link>http://www.matthewelliston.com/remove-sound-from-an-flv/</link>
		<comments>http://www.matthewelliston.com/remove-sound-from-an-flv/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 10:40:34 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.matthewelliston.com/?p=113</guid>
		<description><![CDATA[Today I needed to remove sound from an a flash video that was playing in the website. I was hoping that I would not have to get the DVD out and re-encode it for the web as this took me quite some time to get it to the required level of quality/size. After a bit<a href="http://www.matthewelliston.com/remove-sound-from-an-flv/" class="read-more">Continue Reading</a>]]></description>
			<content:encoded><![CDATA[<p>Today I needed to remove sound from an a flash video that was playing in the website. I was hoping that I would not have to get the DVD out and re-encode it for the web as this took me quite some time to get it to the required level of quality/size.</p>
<p>After a bit of searching with google I came across FFMPEG which turned made the task really easy.</p>
<pre class="brush: bash">
ffmpeg -i input.flv -an -vcodec copy output.flv
</pre>
<p>-i is the input fil<br />
-an disables the audio which is really important here.<br />
-vcodec copy ensures that the codec of the input file is used for the output file.</p>
<p>output.flv is the name of the output file.</p>
<p>Hope that you find this useful! I know it saved me some time!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.matthewelliston.com/remove-sound-from-an-flv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

