<?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>David Nash</title>
	<atom:link href="http://davidnash.com.au/feed/" rel="self" type="application/rss+xml" />
	<link>http://davidnash.com.au</link>
	<description>Freelance PHP developer - builder of high-quality dynamic websites</description>
	<lastBuildDate>Sun, 25 Jul 2010 23:56:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Symphony CMS &#8220;No suitable XSLT processor was found&#8221; under Ubuntu</title>
		<link>http://davidnash.com.au/2010/06/symphony-cms-no-suitable-xslt-processor-was-found-under-ubuntu/</link>
		<comments>http://davidnash.com.au/2010/06/symphony-cms-no-suitable-xslt-processor-was-found-under-ubuntu/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 02:34:48 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://davidnash.com.au/?p=227</guid>
		<description><![CDATA[I came across this and there were no Google matches, which I thought was strange.
So if you&#8217;ve installed Symphony CMS under Ubuntu (I have 10.04, Lucid Lynx) and get the message &#8220;no suitable XSLT processor was found&#8221;, it means that you need to install the package &#8220;php5-xsl&#8221;.
I like GUIs so I used Synaptic, but I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p>I came across this and there were no Google matches, which I thought was strange.</p>
<p>So if you&#8217;ve installed Symphony CMS under Ubuntu (I have 10.04, Lucid Lynx) and get the message &#8220;no suitable XSLT processor was found&#8221;, it means that you need to install the package &#8220;php5-xsl&#8221;.</p>
<p>I like GUIs so I used Synaptic, but I&#8217;m sure you could also do something like &#8220;sudo apt-get install php5-xsl&#8221;.</p>
<p>Then restart Apache with &#8220;sudo /etc/init.d/apache2 reload&#8221; to load the XSLT module.</p>



Share:


	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fdavidnash.com.au%2F2010%2F06%2Fsymphony-cms-no-suitable-xslt-processor-was-found-under-ubuntu%2F&amp;title=Symphony%20CMS%20%22No%20suitable%20XSLT%20processor%20was%20found%22%20under%20Ubuntu" title="del.icio.us"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdavidnash.com.au%2F2010%2F06%2Fsymphony-cms-no-suitable-xslt-processor-was-found-under-ubuntu%2F&amp;t=Symphony%20CMS%20%22No%20suitable%20XSLT%20processor%20was%20found%22%20under%20Ubuntu" title="Facebook"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdavidnash.com.au%2F2010%2F06%2Fsymphony-cms-no-suitable-xslt-processor-was-found-under-ubuntu%2F&amp;title=Symphony%20CMS%20%22No%20suitable%20XSLT%20processor%20was%20found%22%20under%20Ubuntu" title="Google"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="mailto:?subject=Symphony%20CMS%20%22No%20suitable%20XSLT%20processor%20was%20found%22%20under%20Ubuntu&amp;body=http%3A%2F%2Fdavidnash.com.au%2F2010%2F06%2Fsymphony-cms-no-suitable-xslt-processor-was-found-under-ubuntu%2F" title="E-mail this story to a friend!"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fdavidnash.com.au%2F2010%2F06%2Fsymphony-cms-no-suitable-xslt-processor-was-found-under-ubuntu%2F" title="Technorati"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fdavidnash.com.au%2F2010%2F06%2Fsymphony-cms-no-suitable-xslt-processor-was-found-under-ubuntu%2F" title="TwitThis"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://davidnash.com.au/2010/06/symphony-cms-no-suitable-xslt-processor-was-found-under-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Symphony</title>
		<link>http://davidnash.com.au/2010/06/symphony/</link>
		<comments>http://davidnash.com.au/2010/06/symphony/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 23:54:00 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://davidnash.com.au/?p=225</guid>
		<description><![CDATA[It&#8217;s been a long time between posts, mainly because I&#8217;ve been so busy. Lately I&#8217;ve been working with Symphony CMS. Which means I&#8217;ve been writing templates using XSLT, which I think is excellent for writing templates. My XML skills have really advanced over the last 6 months. Using XSLT you can transform one bit of [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a long time between posts, mainly because I&#8217;ve been so busy. Lately I&#8217;ve been working with <a href="http://symphony-cms.com">Symphony CMS</a>. Which means I&#8217;ve been writing templates using XSLT, which I think is excellent for writing templates. My XML skills have really advanced over the last 6 months. Using XSLT you can transform one bit of XML into another bit of XML. And because XHTML is XML, it means that I can transfer the XML data output from my Symphony data sources to XHTML.</p>
<p>The documentation that does exist for Symphony is quite good, but there seems to be a lot that simply isn&#8217;t there. Hopefully that will improve in the future.</p>
<p>I&#8217;ve already used Symphony on a couple of projects. It&#8217;s a CMS that looks after the developer as much as (perhaps more than) the content author. The learning curve for the developer is pretty steep but once I got over it, it&#8217;s been very smooth sailing. If it&#8217;s possible to sail down a curve.</p>



Share:


	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fdavidnash.com.au%2F2010%2F06%2Fsymphony%2F&amp;title=Symphony" title="del.icio.us"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdavidnash.com.au%2F2010%2F06%2Fsymphony%2F&amp;t=Symphony" title="Facebook"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdavidnash.com.au%2F2010%2F06%2Fsymphony%2F&amp;title=Symphony" title="Google"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="mailto:?subject=Symphony&amp;body=http%3A%2F%2Fdavidnash.com.au%2F2010%2F06%2Fsymphony%2F" title="E-mail this story to a friend!"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fdavidnash.com.au%2F2010%2F06%2Fsymphony%2F" title="Technorati"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fdavidnash.com.au%2F2010%2F06%2Fsymphony%2F" title="TwitThis"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://davidnash.com.au/2010/06/symphony/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>&#8220;Mad Libs&#8221; Style Form Increases Conversion 25-40%</title>
		<link>http://davidnash.com.au/2010/02/mad-libs-style-form-increases-conversion-25-40/</link>
		<comments>http://davidnash.com.au/2010/02/mad-libs-style-form-increases-conversion-25-40/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 03:48:22 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://davidnash.com.au/?p=219</guid>
		<description><![CDATA[I don&#8217;t usually like to re-blog &#8211; I prefer original content and a list of links. But I&#8217;m making an exception for this &#8211; firstly, it&#8217;s really cool, and secondly, I&#8217;ve been too busy to post anything for a while.
http://www.lukew.com/ff/entry.asp?1007
Ron and his team ran some A/B testing online that compared a traditional Web form layout [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t usually like to re-blog &#8211; I prefer original content and a list of links. But I&#8217;m making an exception for this &#8211; firstly, it&#8217;s really cool, and secondly, I&#8217;ve been too busy to post anything for a while.</p>
<p><a href="http://www.lukew.com/ff/entry.asp?1007" target="_blank">http://www.lukew.com/ff/entry.asp?1007</a></p>
<blockquote><p>Ron and his team ran some A/B testing online that compared a traditional Web form layout with a narrative &#8220;Mad Libs&#8221; format. In Vast.com&#8217;s testing, <strong>Mad Libs style forms increased conversion across the board by 25-40%</strong>.</p></blockquote>
<p><img src="http://www.lukew.com/ff/content/vast_contactdealer.gif" alt="Vast contact dealer form" /></p>
<p>I think forms are a crucial part of any website. The web is mostly one-way, and only via forms can you get feedback. You need forms to do anything interesting. Yet they&#8217;re SO boring.</p>
<p>They&#8217;re boring to fill out, they&#8217;re boring to code. I think anything that makes them a little bit interesting helps a whole lot. I hope to code some forms like this in the future and I hope this turns into a real trend on the web.</p>



Share:


	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fdavidnash.com.au%2F2010%2F02%2Fmad-libs-style-form-increases-conversion-25-40%2F&amp;title=%22Mad%20Libs%22%20Style%20Form%20Increases%20Conversion%2025-40%25" title="del.icio.us"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdavidnash.com.au%2F2010%2F02%2Fmad-libs-style-form-increases-conversion-25-40%2F&amp;t=%22Mad%20Libs%22%20Style%20Form%20Increases%20Conversion%2025-40%25" title="Facebook"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdavidnash.com.au%2F2010%2F02%2Fmad-libs-style-form-increases-conversion-25-40%2F&amp;title=%22Mad%20Libs%22%20Style%20Form%20Increases%20Conversion%2025-40%25" title="Google"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="mailto:?subject=%22Mad%20Libs%22%20Style%20Form%20Increases%20Conversion%2025-40%25&amp;body=http%3A%2F%2Fdavidnash.com.au%2F2010%2F02%2Fmad-libs-style-form-increases-conversion-25-40%2F" title="E-mail this story to a friend!"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fdavidnash.com.au%2F2010%2F02%2Fmad-libs-style-form-increases-conversion-25-40%2F" title="Technorati"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fdavidnash.com.au%2F2010%2F02%2Fmad-libs-style-form-increases-conversion-25-40%2F" title="TwitThis"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://davidnash.com.au/2010/02/mad-libs-style-form-increases-conversion-25-40/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using PHP variables that contain hyphens</title>
		<link>http://davidnash.com.au/2009/11/using-php-variables-that-contain-hyphens/</link>
		<comments>http://davidnash.com.au/2009/11/using-php-variables-that-contain-hyphens/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 05:08:54 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://davidnash.com.au/?p=213</guid>
		<description><![CDATA[This took me a little while to work out. I&#8217;m using PHP5&#8217;s SimpleXML to parse XML into a PHP object. The XML has entries like &#60;HELLO-THERE&#62;.
But you can&#8217;t use $xml-&#62;HELLO-THERE because it reads the hyphen as a minus.
Instead, use $xml-&#62;{&#8221;HELLO-THERE&#8221;}
Easy!



Share:


	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p>This took me a little while to work out. I&#8217;m using PHP5&#8217;s SimpleXML to parse XML into a PHP object. The XML has entries like &lt;HELLO-THERE&gt;.</p>
<p>But you can&#8217;t use $xml-&gt;HELLO-THERE because it reads the hyphen as a minus.</p>
<p>Instead, use $xml-&gt;{&#8221;HELLO-THERE&#8221;}</p>
<p>Easy!</p>



Share:


	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fdavidnash.com.au%2F2009%2F11%2Fusing-php-variables-that-contain-hyphens%2F&amp;title=Using%20PHP%20variables%20that%20contain%20hyphens" title="del.icio.us"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdavidnash.com.au%2F2009%2F11%2Fusing-php-variables-that-contain-hyphens%2F&amp;t=Using%20PHP%20variables%20that%20contain%20hyphens" title="Facebook"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdavidnash.com.au%2F2009%2F11%2Fusing-php-variables-that-contain-hyphens%2F&amp;title=Using%20PHP%20variables%20that%20contain%20hyphens" title="Google"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="mailto:?subject=Using%20PHP%20variables%20that%20contain%20hyphens&amp;body=http%3A%2F%2Fdavidnash.com.au%2F2009%2F11%2Fusing-php-variables-that-contain-hyphens%2F" title="E-mail this story to a friend!"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fdavidnash.com.au%2F2009%2F11%2Fusing-php-variables-that-contain-hyphens%2F" title="Technorati"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fdavidnash.com.au%2F2009%2F11%2Fusing-php-variables-that-contain-hyphens%2F" title="TwitThis"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://davidnash.com.au/2009/11/using-php-variables-that-contain-hyphens/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reset Silverstripe admin password</title>
		<link>http://davidnash.com.au/2009/10/reset-silverstripe-admin-password/</link>
		<comments>http://davidnash.com.au/2009/10/reset-silverstripe-admin-password/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 05:17:09 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://davidnash.com.au/?p=209</guid>
		<description><![CDATA[It seems like every time I deploy a Silverstripe site I either lose the admin password, or it changes somehow. Then I have to search for &#8216;lost silverstripe password&#8217; or something to work out how to reset it. This is basically for my own reference:
1. edit /mysite/_config.php
2. add Security::setDefaultAdmin('admin','password'); to the bottom
3. profit!



Share:


	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p>It seems like every time I deploy a Silverstripe site I either lose the admin password, or it changes somehow. Then I have to search for &#8216;lost silverstripe password&#8217; or something to work out how to reset it. This is basically for my own reference:</p>
<p>1. edit /mysite/_config.php<br />
2. add <code>Security::setDefaultAdmin('admin','password');</code> to the bottom<br />
3. profit!</p>



Share:


	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fdavidnash.com.au%2F2009%2F10%2Freset-silverstripe-admin-password%2F&amp;title=Reset%20Silverstripe%20admin%20password" title="del.icio.us"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdavidnash.com.au%2F2009%2F10%2Freset-silverstripe-admin-password%2F&amp;t=Reset%20Silverstripe%20admin%20password" title="Facebook"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdavidnash.com.au%2F2009%2F10%2Freset-silverstripe-admin-password%2F&amp;title=Reset%20Silverstripe%20admin%20password" title="Google"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="mailto:?subject=Reset%20Silverstripe%20admin%20password&amp;body=http%3A%2F%2Fdavidnash.com.au%2F2009%2F10%2Freset-silverstripe-admin-password%2F" title="E-mail this story to a friend!"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fdavidnash.com.au%2F2009%2F10%2Freset-silverstripe-admin-password%2F" title="Technorati"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fdavidnash.com.au%2F2009%2F10%2Freset-silverstripe-admin-password%2F" title="TwitThis"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://davidnash.com.au/2009/10/reset-silverstripe-admin-password/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Duplicate Wordpress site for local development and testing environment</title>
		<link>http://davidnash.com.au/2009/08/duplicate-wordpress-site-for-local-development-and-testing-environment/</link>
		<comments>http://davidnash.com.au/2009/08/duplicate-wordpress-site-for-local-development-and-testing-environment/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 04:38:45 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[localhost]]></category>

		<guid isPermaLink="false">http://davidnash.com.au/?p=188</guid>
		<description><![CDATA[1. Download all files from eg http://example.com, upload to eg http://localhost/example/.
2. Export mysql database from example.com
3. Create a local mysql database with the same user, password and database name. These can be found in wp-config.php
4. Import the database into your new local account
5. Log in to the database, and do:
[sourcecode language='sql']
update wp_options set option_value=&#8217;http://localhost/example/&#8217; where [...]]]></description>
			<content:encoded><![CDATA[<p>1. Download all files from eg http://example.com, upload to eg http://localhost/example/.<br />
2. Export mysql database from example.com<br />
3. Create a local mysql database with the same user, password and database name. These can be found in wp-config.php<br />
4. Import the database into your new local account<br />
5. Log in to the database, and do:<br />
[sourcecode language='sql']<br />
update wp_options set option_value=&#8217;http://localhost/example/&#8217; where option_id=1<br />
[/sourcecode]<br />
You&#8217;ll now be able to log in at http://localhost/example/wp-admin, using the same username and password as http://example.com/wp-admin.<br />
5. In Wordpress, click &#8216;Settings&#8217; and change the blog address to your local address.<br />
6. Profit!</p>



Share:


	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fdavidnash.com.au%2F2009%2F08%2Fduplicate-wordpress-site-for-local-development-and-testing-environment%2F&amp;title=Duplicate%20Wordpress%20site%20for%20local%20development%20and%20testing%20environment" title="del.icio.us"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdavidnash.com.au%2F2009%2F08%2Fduplicate-wordpress-site-for-local-development-and-testing-environment%2F&amp;t=Duplicate%20Wordpress%20site%20for%20local%20development%20and%20testing%20environment" title="Facebook"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdavidnash.com.au%2F2009%2F08%2Fduplicate-wordpress-site-for-local-development-and-testing-environment%2F&amp;title=Duplicate%20Wordpress%20site%20for%20local%20development%20and%20testing%20environment" title="Google"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="mailto:?subject=Duplicate%20Wordpress%20site%20for%20local%20development%20and%20testing%20environment&amp;body=http%3A%2F%2Fdavidnash.com.au%2F2009%2F08%2Fduplicate-wordpress-site-for-local-development-and-testing-environment%2F" title="E-mail this story to a friend!"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fdavidnash.com.au%2F2009%2F08%2Fduplicate-wordpress-site-for-local-development-and-testing-environment%2F" title="Technorati"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fdavidnash.com.au%2F2009%2F08%2Fduplicate-wordpress-site-for-local-development-and-testing-environment%2F" title="TwitThis"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://davidnash.com.au/2009/08/duplicate-wordpress-site-for-local-development-and-testing-environment/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>HTML syntax highlighting for Silverstripe .ss template files in vim</title>
		<link>http://davidnash.com.au/2009/08/html-syntax-highlighting-for-silverstripe-ss-template-files-in-vim/</link>
		<comments>http://davidnash.com.au/2009/08/html-syntax-highlighting-for-silverstripe-ss-template-files-in-vim/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 06:56:40 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[silverstripe]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[xhtml]]></category>
		<category><![CDATA[gvim]]></category>

		<guid isPermaLink="false">http://davidnash.com.au/?p=186</guid>
		<description><![CDATA[By default vim opens .ss files with some other file format syntax highlighting.
To enable HTML (actually XHTML) syntax highlighting on your .SS Silverstripe template files, create (or edit) your ~/.vim/filetype.vim file. Then enter this:
au BufNewFile,BufRead *.ss      setf xhtml
Then open a .ss file and it&#8217;ll give you nice HTML syntax highlighting. And because it&#8217;s in your [...]]]></description>
			<content:encoded><![CDATA[<p>By default vim opens .ss files with some other file format syntax highlighting.</p>
<p>To enable HTML (actually XHTML) syntax highlighting on your .SS Silverstripe template files, create (or edit) your <strong>~/.vim/filetype.vim</strong> file. Then enter this:</p>
<pre>au BufNewFile,BufRead *.ss      setf xhtml</pre>
<p>Then open a .ss file and it&#8217;ll give you nice HTML syntax highlighting. And because it&#8217;s in your home directory, it&#8217;ll keep working even after you upgrade vim.</p>



Share:


	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fdavidnash.com.au%2F2009%2F08%2Fhtml-syntax-highlighting-for-silverstripe-ss-template-files-in-vim%2F&amp;title=HTML%20syntax%20highlighting%20for%20Silverstripe%20.ss%20template%20files%20in%20vim" title="del.icio.us"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdavidnash.com.au%2F2009%2F08%2Fhtml-syntax-highlighting-for-silverstripe-ss-template-files-in-vim%2F&amp;t=HTML%20syntax%20highlighting%20for%20Silverstripe%20.ss%20template%20files%20in%20vim" title="Facebook"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdavidnash.com.au%2F2009%2F08%2Fhtml-syntax-highlighting-for-silverstripe-ss-template-files-in-vim%2F&amp;title=HTML%20syntax%20highlighting%20for%20Silverstripe%20.ss%20template%20files%20in%20vim" title="Google"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="mailto:?subject=HTML%20syntax%20highlighting%20for%20Silverstripe%20.ss%20template%20files%20in%20vim&amp;body=http%3A%2F%2Fdavidnash.com.au%2F2009%2F08%2Fhtml-syntax-highlighting-for-silverstripe-ss-template-files-in-vim%2F" title="E-mail this story to a friend!"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fdavidnash.com.au%2F2009%2F08%2Fhtml-syntax-highlighting-for-silverstripe-ss-template-files-in-vim%2F" title="Technorati"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fdavidnash.com.au%2F2009%2F08%2Fhtml-syntax-highlighting-for-silverstripe-ss-template-files-in-vim%2F" title="TwitThis"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://davidnash.com.au/2009/08/html-syntax-highlighting-for-silverstripe-ss-template-files-in-vim/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Silverstripe &#8211; Configure TinyMCE</title>
		<link>http://davidnash.com.au/2009/07/silverstripe-configure-tinymce/</link>
		<comments>http://davidnash.com.au/2009/07/silverstripe-configure-tinymce/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 00:50:04 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[silverstripe]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://davidnash.com.au/?p=181</guid>
		<description><![CDATA[Edit cms/javascript/tinymce.template.js &#8211; you can use any configuration options you find at http://wiki.moxiecode.com/index.php/TinyMCE:Configuration
I was trying to use this to enable force_br_newlines but with no luck &#8211; although the other settings seem to work okay.



Share:


	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p>Edit cms/javascript/tinymce.template.js &#8211; you can use any configuration options you find at <a href="http://wiki.moxiecode.com/index.php/TinyMCE:Configuration" target="_blank">http://wiki.moxiecode.com/index.php/TinyMCE:Configuration</a></p>
<p>I was trying to use this to enable force_br_newlines but with no luck &#8211; although the other settings seem to work okay.</p>



Share:


	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fdavidnash.com.au%2F2009%2F07%2Fsilverstripe-configure-tinymce%2F&amp;title=Silverstripe%20-%20Configure%20TinyMCE" title="del.icio.us"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdavidnash.com.au%2F2009%2F07%2Fsilverstripe-configure-tinymce%2F&amp;t=Silverstripe%20-%20Configure%20TinyMCE" title="Facebook"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdavidnash.com.au%2F2009%2F07%2Fsilverstripe-configure-tinymce%2F&amp;title=Silverstripe%20-%20Configure%20TinyMCE" title="Google"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="mailto:?subject=Silverstripe%20-%20Configure%20TinyMCE&amp;body=http%3A%2F%2Fdavidnash.com.au%2F2009%2F07%2Fsilverstripe-configure-tinymce%2F" title="E-mail this story to a friend!"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fdavidnash.com.au%2F2009%2F07%2Fsilverstripe-configure-tinymce%2F" title="Technorati"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fdavidnash.com.au%2F2009%2F07%2Fsilverstripe-configure-tinymce%2F" title="TwitThis"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://davidnash.com.au/2009/07/silverstripe-configure-tinymce/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Pixel Perfect Firefox Extension</title>
		<link>http://davidnash.com.au/2009/06/pixel-perfect-firefox-extension/</link>
		<comments>http://davidnash.com.au/2009/06/pixel-perfect-firefox-extension/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 03:27:29 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[xhtml]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://davidnash.com.au/?p=178</guid>
		<description><![CDATA[When I write HTML and CSS I&#8217;ll usually create a mockup &#8211; I take a high quality JPG of the design and put it into a very simple page that shows the JPG, centered on the screen. Then in Firefox I switch back and forth between the page I&#8217;m working on and the mockup so [...]]]></description>
			<content:encoded><![CDATA[<p>When I write HTML and CSS I&#8217;ll usually create a mockup &#8211; I take a high quality JPG of the design and put it into a very simple page that shows the JPG, centered on the screen. Then in Firefox I switch back and forth between the page I&#8217;m working on and the mockup so that I can get the design pixel-perfect.</p>
<p>Well today all that will change. I&#8217;ve discovered the <a href="http://pixelperfectplugin.com/" target="_blank">Pixel Perfect Firefox Extension </a>which allows me to overlay the mockup over what I&#8217;m designing.  You can set the opacity and quickly toggle the overlay on and off.</p>
<p>I&#8217;m not sure about centering &#8211; it doesn&#8217;t seem to do that automatically. But I think I could use the <a href="https://addons.mozilla.org/en-US/firefox/addon/539" target="_blank">MeasureIt</a> extension to get the width of the main column, set it in CSS with &#8216;margin: 0 auto&#8217; to centre it, and then drag the overlay to match and base everything off that.</p>
<p>My job just got slightly easier again.</p>
<p>Awesome!</p>



Share:


	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fdavidnash.com.au%2F2009%2F06%2Fpixel-perfect-firefox-extension%2F&amp;title=Pixel%20Perfect%20Firefox%20Extension" title="del.icio.us"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdavidnash.com.au%2F2009%2F06%2Fpixel-perfect-firefox-extension%2F&amp;t=Pixel%20Perfect%20Firefox%20Extension" title="Facebook"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdavidnash.com.au%2F2009%2F06%2Fpixel-perfect-firefox-extension%2F&amp;title=Pixel%20Perfect%20Firefox%20Extension" title="Google"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="mailto:?subject=Pixel%20Perfect%20Firefox%20Extension&amp;body=http%3A%2F%2Fdavidnash.com.au%2F2009%2F06%2Fpixel-perfect-firefox-extension%2F" title="E-mail this story to a friend!"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fdavidnash.com.au%2F2009%2F06%2Fpixel-perfect-firefox-extension%2F" title="Technorati"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fdavidnash.com.au%2F2009%2F06%2Fpixel-perfect-firefox-extension%2F" title="TwitThis"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://davidnash.com.au/2009/06/pixel-perfect-firefox-extension/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quickly replace the header image in the default Wordpress 2.7 Kubrick theme</title>
		<link>http://davidnash.com.au/2009/05/quickly-replace-the-header-image-in-the-default-wordpress-27-kubrick-theme/</link>
		<comments>http://davidnash.com.au/2009/05/quickly-replace-the-header-image-in-the-default-wordpress-27-kubrick-theme/#comments</comments>
		<pubDate>Wed, 06 May 2009 01:45:13 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://davidnash.com.au/?p=174</guid>
		<description><![CDATA[I was asked to do some quick mods to client&#8217;s Wordpress blog. He wanted to replace the banner image. He&#8217;s using Wordpress 2.7 and has the default Kubrick theme.
This isn&#8217;t as easy as you would think as it&#8217;s generated by PHP so that the colours can be dynamically set.
Here&#8217;s what I did:

Download wp-content/themes/default/images/kubrickheader.jpg
Modify it, save [...]]]></description>
			<content:encoded><![CDATA[<p>I was asked to do some quick mods to client&#8217;s Wordpress blog. He wanted to replace the banner image. He&#8217;s using Wordpress 2.7 and has the default Kubrick theme.</p>
<p>This isn&#8217;t as easy as you would think as it&#8217;s generated by PHP so that the colours can be dynamically set.</p>
<p>Here&#8217;s what I did:</p>
<ol>
<li>Download wp-content/themes/default/images/kubrickheader.jpg</li>
<li>Modify it, save and upload as wp-content/themes/default/images/kubrickheader_NEW.jpg</li>
<li>Edit wp-content/themes/default/header.php. On line 42 you should see &lt;div id=&#8221;headerimg&#8221;&gt;</li>
<li>Modify this so it reads:</li>
</ol>
<p><code>&lt;div id="headerimg" style="background: url(&lt;?php bloginfo('stylesheet_directory'); ?&gt;/images/kubrickheader_NEW.jpg) no-repeat -1px 0"&gt;</code></p>
<p>Upload header.php and it should now be using your new header. I used the &#8220;-1px 0&#8243; because the header was out of horizontal  alignment by 1 pixel. I don&#8217;t know if that&#8217;s because of the header image he sent or if that&#8217;s the way Wordpress&#8217;s dynamic banner image works. You might need to remove that part.</p>
<p>This probably isn&#8217;t the best way to do it but it&#8217;s a quick and easy solution.</p>



Share:


	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fdavidnash.com.au%2F2009%2F05%2Fquickly-replace-the-header-image-in-the-default-wordpress-27-kubrick-theme%2F&amp;title=Quickly%20replace%20the%20header%20image%20in%20the%20default%20Wordpress%202.7%20Kubrick%20theme" title="del.icio.us"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdavidnash.com.au%2F2009%2F05%2Fquickly-replace-the-header-image-in-the-default-wordpress-27-kubrick-theme%2F&amp;t=Quickly%20replace%20the%20header%20image%20in%20the%20default%20Wordpress%202.7%20Kubrick%20theme" title="Facebook"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdavidnash.com.au%2F2009%2F05%2Fquickly-replace-the-header-image-in-the-default-wordpress-27-kubrick-theme%2F&amp;title=Quickly%20replace%20the%20header%20image%20in%20the%20default%20Wordpress%202.7%20Kubrick%20theme" title="Google"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="mailto:?subject=Quickly%20replace%20the%20header%20image%20in%20the%20default%20Wordpress%202.7%20Kubrick%20theme&amp;body=http%3A%2F%2Fdavidnash.com.au%2F2009%2F05%2Fquickly-replace-the-header-image-in-the-default-wordpress-27-kubrick-theme%2F" title="E-mail this story to a friend!"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fdavidnash.com.au%2F2009%2F05%2Fquickly-replace-the-header-image-in-the-default-wordpress-27-kubrick-theme%2F" title="Technorati"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fdavidnash.com.au%2F2009%2F05%2Fquickly-replace-the-header-image-in-the-default-wordpress-27-kubrick-theme%2F" title="TwitThis"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://davidnash.com.au/2009/05/quickly-replace-the-header-image-in-the-default-wordpress-27-kubrick-theme/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
