<?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>Twelve Dozen</title>
	<atom:link href="http://www.twelvedozen.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.twelvedozen.co.uk</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 11 Mar 2010 20:14:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>FTP / ZIP from the command line</title>
		<link>http://www.twelvedozen.co.uk/2010/03/ftp-zip-from-the-command-line/</link>
		<comments>http://www.twelvedozen.co.uk/2010/03/ftp-zip-from-the-command-line/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 20:14:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.twelvedozen.co.uk/2010/03/ftp-zip-from-the-command-line/</guid>
		<description><![CDATA[http://www.howtogeek.com/howto/windows/how-to-automate-ftp-uploads-from-the-windows-command-line/
http://www.codejacked.com/zip-up-files-from-the-command-line/
]]></description>
			<content:encoded><![CDATA[<p>http://www.howtogeek.com/howto/windows/how-to-automate-ftp-uploads-from-the-windows-command-line/</p>
<p>http://www.codejacked.com/zip-up-files-from-the-command-line/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twelvedozen.co.uk/2010/03/ftp-zip-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert databases to xml</title>
		<link>http://www.twelvedozen.co.uk/2010/03/convert-databases-to-xml/</link>
		<comments>http://www.twelvedozen.co.uk/2010/03/convert-databases-to-xml/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 18:16:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.twelvedozen.co.uk/2010/03/convert-databases-to-xml/</guid>
		<description><![CDATA[http://www.softsilver.com/downloads.asp
]]></description>
			<content:encoded><![CDATA[<p>http://www.softsilver.com/downloads.asp</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twelvedozen.co.uk/2010/03/convert-databases-to-xml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal &#8211; Format Comments</title>
		<link>http://www.twelvedozen.co.uk/2010/03/drupal-format-comments/</link>
		<comments>http://www.twelvedozen.co.uk/2010/03/drupal-format-comments/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 07:10:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.twelvedozen.co.uk/2010/03/drupal-format-comments/</guid>
		<description><![CDATA[Remove (Not Verified) &#8211; http://drupal.org/node/99409
Remove Submitted By &#8211; http://www.kirkdesigns.co.uk/format-submitted-text-drupal-6-nodes-and-comments
Add Comments Header &#8211; http://drupal.org/node/76716
]]></description>
			<content:encoded><![CDATA[<p>Remove (Not Verified) &#8211; http://drupal.org/node/99409</p>
<p>Remove Submitted By &#8211; http://www.kirkdesigns.co.uk/format-submitted-text-drupal-6-nodes-and-comments</p>
<p>Add Comments Header &#8211; http://drupal.org/node/76716</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twelvedozen.co.uk/2010/03/drupal-format-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>File Permisions</title>
		<link>http://www.twelvedozen.co.uk/2010/01/file-permisions/</link>
		<comments>http://www.twelvedozen.co.uk/2010/01/file-permisions/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 10:08:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.twelvedozen.co.uk/2010/01/file-permisions/</guid>
		<description><![CDATA[Good file permissions tutorial -
http://www.interspire.com/content/articles/12/1/FTP-and-Understanding-File-Permissions
FTP overwrite problems using Virtualmin setup &#8211;
http://www.virtualmin.com/node/9885
]]></description>
			<content:encoded><![CDATA[<p>Good file permissions tutorial -<br />
http://www.interspire.com/content/articles/12/1/FTP-and-Understanding-File-Permissions</p>
<p>FTP overwrite problems using Virtualmin setup &#8211;<br />
http://www.virtualmin.com/node/9885</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twelvedozen.co.uk/2010/01/file-permisions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backing up large MySQL database</title>
		<link>http://www.twelvedozen.co.uk/2010/01/backing-up-large-mysql-database/</link>
		<comments>http://www.twelvedozen.co.uk/2010/01/backing-up-large-mysql-database/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 15:17:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.twelvedozen.co.uk/2010/01/backing-up-large-mysql-database/</guid>
		<description><![CDATA[Linux to the rescue. This sure beats using Export from PhpMyAdmin, it can be slow and may time out with large databases.
mysqldump -a -u USER -p DBNAME > /path/to/backupname.sql
http://www.metatitan.com/mysql/6/how-to-backup-and-restore-large-databases-in-mysql.html
]]></description>
			<content:encoded><![CDATA[<p>Linux to the rescue. This sure beats using Export from PhpMyAdmin, it can be slow and may time out with large databases.</p>
<p>mysqldump -a -u USER -p DBNAME > /path/to/backupname.sql</p>
<p>http://www.metatitan.com/mysql/6/how-to-backup-and-restore-large-databases-in-mysql.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twelvedozen.co.uk/2010/01/backing-up-large-mysql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up SSL on your server</title>
		<link>http://www.twelvedozen.co.uk/2010/01/setting-up-ssl-on-your-server/</link>
		<comments>http://www.twelvedozen.co.uk/2010/01/setting-up-ssl-on-your-server/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 15:19:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.twelvedozen.co.uk/2010/01/setting-up-ssl-on-your-server/</guid>
		<description><![CDATA[Check your SSL certificate &#8211; http://www.digicert.com/help/
Setting up SSL on apache:
http://onlamp.com/pub/a/onlamp/2008/03/04/step-by-step-configuring-ssl-under-apache.html
]]></description>
			<content:encoded><![CDATA[<p>Check your SSL certificate &#8211; http://www.digicert.com/help/</p>
<p>Setting up SSL on apache:<br />
http://onlamp.com/pub/a/onlamp/2008/03/04/step-by-step-configuring-ssl-under-apache.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twelvedozen.co.uk/2010/01/setting-up-ssl-on-your-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jquery slide show for Drupal</title>
		<link>http://www.twelvedozen.co.uk/2010/01/jquery-slide-show-for-drupal/</link>
		<comments>http://www.twelvedozen.co.uk/2010/01/jquery-slide-show-for-drupal/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 12:00:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.twelvedozen.co.uk/2010/01/jquery-slide-show-for-drupal/</guid>
		<description><![CDATA[If you need a slideshow for your Drupal website, I recommend using JCarousel Lite &#8211; http://gmarwaha.com/jquery/jcarousellite/
It has lots of parameters to tweak depending on how you want to set it up. It&#8217;s easy to get working.
One slight issue (well major issue really until I fixed it), that I had using this with Drupal was that [...]]]></description>
			<content:encoded><![CDATA[<p>If you need a slideshow for your Drupal website, I recommend using JCarousel Lite &#8211; http://gmarwaha.com/jquery/jcarousellite/</p>
<p>It has lots of parameters to tweak depending on how you want to set it up. It&#8217;s easy to get working.</p>
<p>One slight issue (well major issue really until I fixed it), that I had using this with Drupal was that initially I needed to press F5 to refresh the browser before the images would display.</p>
<p>The fix for it was to surround the code with $(document).ready(function () { }</p>
<p>Here&#8217;s my code:</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
$(document).ready(function () {<br />
$(&#8221;.carousel&#8221;).jCarouselLite({<br />
btnNext: &#8220;.next&#8221;,<br />
btnPrev: &#8220;.prev&#8221;,<br />
scroll: 1,<br />
auto: 1200,<br />
speed: 1600,<br />
visible: 1<br />
});<br />
});<br />
&lt;/script&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twelvedozen.co.uk/2010/01/jquery-slide-show-for-drupal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing text from file using shell</title>
		<link>http://www.twelvedozen.co.uk/2010/01/removing-text-from-file-using-shell/</link>
		<comments>http://www.twelvedozen.co.uk/2010/01/removing-text-from-file-using-shell/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 08:47:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.twelvedozen.co.uk/2010/01/removing-text-from-file-using-shell/</guid>
		<description><![CDATA[FILES=&#8221;test.xml&#8221;
# for loop read each file
for f in $FILES
do
INF=&#8221;$f&#8221;
OUTF=&#8221;$f.out.tmp&#8221;
# replace javascript
sed &#8216;//d;//d&#8217; $INF &#62; $OUTF
/bin/cp $OUTF $INF
/bin/rm -f $OUTF
done
http://en.kioskea.net/faq/sujet-1451-sed-delete-one-or-more-lines-from-a-file
http://www.oracle.com/technology/pub/articles/dulaney_sed.html
]]></description>
			<content:encoded><![CDATA[<p>FILES=&#8221;test.xml&#8221;<br />
# for loop read each file<br />
for f in $FILES<br />
do<br />
INF=&#8221;$f&#8221;<br />
OUTF=&#8221;$f.out.tmp&#8221;<br />
# replace javascript<br />
sed &#8216;//d;//d&#8217; $INF &gt; $OUTF<br />
/bin/cp $OUTF $INF<br />
/bin/rm -f $OUTF<br />
done</p>
<p>http://en.kioskea.net/faq/sujet-1451-sed-delete-one-or-more-lines-from-a-file</p>
<p>http://www.oracle.com/technology/pub/articles/dulaney_sed.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twelvedozen.co.uk/2010/01/removing-text-from-file-using-shell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert CSV to XML using Perl</title>
		<link>http://www.twelvedozen.co.uk/2009/12/convert-csv-to-xml-using-perl/</link>
		<comments>http://www.twelvedozen.co.uk/2009/12/convert-csv-to-xml-using-perl/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 07:09:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://www.twelvedozen.co.uk/2009/12/convert-csv-to-xml-using-perl/</guid>
		<description><![CDATA[In my quest to convert a CSV file to XML I&#8217;ve found the best advice seems to be to use Perl.
Do I have Perl installed on my linux server?
http://www.cyberciti.biz/faq/how-do-i-find-out-what-perl-modules-already-installed-on-my-system/
Enter the following command in shell -
$ instmodsh
To find the version of perl -
http://www.cyberciti.biz/faq/how-can-i-find-out-perl-version/
$ perl -v
Here&#8217;s my findings:
I&#8217;ve been following a tutorial in a book called XML [...]]]></description>
			<content:encoded><![CDATA[<p>In my quest to convert a CSV file to XML I&#8217;ve found the best advice seems to be to use Perl.</p>
<p>Do I have Perl installed on my linux server?<br />
http://www.cyberciti.biz/faq/how-do-i-find-out-what-perl-modules-already-installed-on-my-system/</p>
<p>Enter the following command in shell -<br />
$ instmodsh</p>
<p>To find the version of perl -<br />
http://www.cyberciti.biz/faq/how-can-i-find-out-perl-version/<br />
$ perl -v</p>
<p>Here&#8217;s my findings:</p>
<p>I&#8217;ve been following a tutorial in a book called <a href="http://www.amazon.co.uk/XML-Perl-Mark-Riehl/dp/0735712891/ref=sr_1_2?ie=UTF8&amp;s=books&amp;qid=1262244186&amp;sr=8-2">XML and Perl</a> <span>by Mark Riehl and Ilya Sterin, which is a very good read for a XML and Perl newbie like me.</span></p>
<p><span>Anyway, I&#8217;m using Linux Debian with Perl installed but no other Perl modules. Here&#8217;s what I did:<br />
</span></p>
<p>Installing Perl modules on linux debian</p>
<p>http://www.cyberciti.biz/faq/how-do-i-install-a-perl-module/</p>
<p>perl -MCPAN -e shell</p>
<p>This should display this:</p>
<p>CPAN is the world-wide archive of perl resources. It consists of about<br />
100 sites that all replicate the same contents all around the globe.<br />
Many countries have at least one CPAN site already. The resources<br />
found on CPAN are easily accessible with the CPAN.pm module. If you<br />
want to use CPAN.pm, you have to configure it properly.</p>
<p>If you do not want to enter a dialog now, you can answer &#8216;no&#8217; to this<br />
question and I&#8217;ll try to autoconfigure. (Note: you can revisit this<br />
dialog anytime later by typing &#8216;o conf init&#8217; at the cpan prompt.)</p>
<p>Are you ready for manual configuration? [yes]</p>
<p><strong>Note: This took a long time and lots of files were installed</strong></p>
<p>To install Perl modules:</p>
<p>Here is how you would install XML::SAX using CPAN.pm in the shell mode:<br />
&gt;perl −MCPAN −e shell<br />
CPAN&gt;install XML::SAX</p>
<p>To convert CSV and Excel files to XML you will need to install the modules:</p>
<p>XML::SAXDriver::CSV<br />
XML::SAXDriver::Excel</p>
<p>Issues:</p>
<p>Text::CSV_XS &#8211; This module is required</p>
<p>Unfortunately there was a problem installing the required SAX modules so I needed a new approach. I did manage to install some modules using this method though.</p>
<p>I then found this post http://www.xml.com/pub/a/2001/06/13/perlxml.html</p>
<p>The initial code had a spelling mistake $xsl needs to be $xls</p>
<p>I created a new directory and then created a new Perl file, test.pl</p>
<p><code><br />
use XML::Excel;</code></p>
<p>my $file = &#8216;inventory.xls&#8217;;<br />
my @columns = (&#8217;key&#8217;, &#8216;lname&#8217;, &#8217;size&#8217;, &#8216;form&#8217;);</p>
<p>my $xls = XML::Excel-&gt;new({column_headings =&gt; \@columns});print $file;</p>
<p>$xls-&gt;parse_doc($file);<br />
$xls-&gt;declare_xml({version =&gt; &#8216;1.0&#8242;,<br />
standalone =&gt; &#8216;yes&#8217;});</p>
<p>$xls-&gt;print_xml(&#8217;test.xml&#8217;,<br />
{file_tag    =&gt; &#8216;inventory&#8217;,<br />
parent_tag  =&gt; &#8216;entry&#8217;}<br />
);</p>
<p>Then I uploaded the Excel file inventory.xls to the same directory. Finally I executed the Perl script:</p>
<p># perl test.pl</p>
<p>And it output the XML file test.xml as required.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twelvedozen.co.uk/2009/12/convert-csv-to-xml-using-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Audio Player for Drupal</title>
		<link>http://www.twelvedozen.co.uk/2009/12/audio-player-for-drupal/</link>
		<comments>http://www.twelvedozen.co.uk/2009/12/audio-player-for-drupal/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 13:53:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.twelvedozen.co.uk/2009/12/audio-player-for-drupal/</guid>
		<description><![CDATA[Recently, I&#8217;ve changed the way I&#8217;ve been creating websites in Drupal. Instead of trying to make everything as easily as possible for clients to add content to their websites I&#8217;m actually more inclined to think that this can make creating sites more complicated. I know there are a plethora of Drupal modules available for almost [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I&#8217;ve changed the way I&#8217;ve been creating websites in Drupal. Instead of trying to make everything as easily as possible for clients to add content to their websites I&#8217;m actually more inclined to think that this can make creating sites more complicated. I know there are a plethora of Drupal modules available for almost everything, I&#8217;ve found that sometimes installing a module for every little task for the website can make things more complicated instead of less. So when wanting to add an MP3 player to a recent website project I&#8217;ve opted to use the 1 Pixel Out plug-in and simply add the javascript code direct to the &#8217;source code&#8217;.</p>
<p>Here&#8217;s a simple tutorial that I followed.</p>
<p>http://www.macloo.com/examples/audio_player/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twelvedozen.co.uk/2009/12/audio-player-for-drupal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
