<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>RichardHole.co.uk</title>
	
	<link>http://richardhole.co.uk</link>
	<description>The Homepage of Richard Hole</description>
	<lastBuildDate>Sun, 07 Mar 2010 19:45:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/richard-hole" /><feedburner:info uri="richard-hole" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Lazy Script</title>
		<link>http://feedproxy.google.com/~r/richard-hole/~3/ri8Am_S3k68/</link>
		<comments>http://richardhole.co.uk/code/lazy-script/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 19:45:14 +0000</pubDate>
		<dc:creator />
				<category><![CDATA[Code]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://richardhole.co.uk/?p=89</guid>
		<description><![CDATA[Sometimes it's necessary to add data to a textarea through the use of a button on link. The script I'm about to show you allows you to do this very easily. Of course, this is only a very basic script and can be built on and improved. ]]></description>
			<content:encoded><![CDATA[<p>I was playing around with JavaScript and came across this script that allows the user to add predefined data to a forms&#8217; textarea with a click of a mouse. An example of where this could be used is  if code needed to quickly be added to a textarea (usually because of laziness ;P)</p>
<p>Here’s the code:</p>
<p>Put this in the head of your document:</p>
<pre>&lt;script language="JavaScript" type="text/JavaScript"&gt;
function AddItem(ItemId)
{
document.Form.textarea.value = document.Form.textarea.value + ItemId;
}
&lt;/script&gt;</pre>
<p>This is the form:</p>
<pre>&lt;form name="Form" method="post" action="post.php"&gt;
&lt;a href="#" onclick="AddItem('&lt;em&gt;&lt;/em&gt;');"&gt; Italic&lt;/a&gt;
&lt;textarea rows="10" name="textarea" cols="70"&gt;&lt;/textarea&gt; &lt;br /&gt;&lt;br /&gt;
&lt;/form&gt;</pre>
<p>How it works.</p>
<p>The mechanics of the script are simple. When the <code>onclick="AddItem();"</code> function is called the contents between the brackets of the onclick event is added to the textarea defined textarea. In this case the name of the textarea is ‘textarea’ and the name of the form is ‘Form’ so that’s what was changed in the script.</p>
<img src="http://feeds.feedburner.com/~r/richard-hole/~4/ri8Am_S3k68" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://richardhole.co.uk/code/lazy-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://richardhole.co.uk/code/lazy-script/</feedburner:origLink></item>
		<item>
		<title>Pensieve Plugin</title>
		<link>http://feedproxy.google.com/~r/richard-hole/~3/tj8479wrnDE/</link>
		<comments>http://richardhole.co.uk/code/pensieve-plugin/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 19:27:18 +0000</pubDate>
		<dc:creator />
				<category><![CDATA[Code]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://richardhole.co.uk/?p=82</guid>
		<description><![CDATA[Being a huge fan of Harry Potter and of WordPress, I thought that it would be fun to edit the 'Hello Dolly' plugin that comes with WordPress and make it display Harry potter quotes. It only took me a few minuets but here is the result.]]></description>
			<content:encoded><![CDATA[<p>Being a huge fan of Harry Potter and of WordPress, I thought that it would be fun to edit the &#8216;Hello Dolly&#8217; plugin that comes with wordpress and make it display Harry potter quotes. It only took me a few minuets but here is the result.</p>
<h4>A few quotes</h4>
<p>Here are a few quotes included in the plugin:<br />
<q>To the well-organized mind, death is but the next great adventure.</q></p>
<p><q>Never trust anything that can think for itself if you can&#8217;t see where it keeps its brain</q></p>
<p><q>We are only as strong as we are united, as weak as we are divided</q></p>
<h4>Download</h4>
<p>You can download the <a href="../wp-content/uploads/2010/01/pensieve.zip">pensieve plugin</a> here ( Licensed under <a href="http://www.gnu.org/licenses/gpl.html">GPL</a>)</p>
<p>Got a potter quote you want me to add? then leave a comment below.</p>
<img src="http://feeds.feedburner.com/~r/richard-hole/~4/tj8479wrnDE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://richardhole.co.uk/code/pensieve-plugin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://richardhole.co.uk/code/pensieve-plugin/</feedburner:origLink></item>
		<item>
		<title>Getting it Done</title>
		<link>http://feedproxy.google.com/~r/richard-hole/~3/qwwb1szXq-0/</link>
		<comments>http://richardhole.co.uk/software/getting-it-done/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 12:00:07 +0000</pubDate>
		<dc:creator />
				<category><![CDATA[software]]></category>
		<category><![CDATA[GTD]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://richardhole.co.uk/?p=64</guid>
		<description><![CDATA[GTD (Getting Thing Done) is all the rage these days, and Geeks love them 'puters, but what options are there for GTD loving Geeks? Let's take a look at what options are available to get thing done....for the price of free.]]></description>
			<content:encoded><![CDATA[<p>GTD (Getting Thing Done) is all the rage these days, and Geeks love them &#8216;puters, but what options are there for GTD loving Geeks? Let&#8217;s take a look at what options are available to get thing done&#8230;.for the price of free.</p>
<h4>Doit.im</h4>
<p><a title="Doit.im" href="http://www.doit.im/">Doit.im</a> is a very useful free peice of software that runs using adobe air; meaning it&#8217;s cross platform. It&#8217;s features include</p>
<ul>
<li>An inbox to add tasks quickly</li>
<li>Ability to group tasks in projects</li>
<li>Add contacts to mark individual tasks to them</li>
<li>Ability to sync to the server</li>
<li>Much, much more</li>
</ul>
<h4>Remember The Milk</h4>
<p><a title="Remember the milk" href="http://www.rememberthemilk.com">Remember the milk</a> is a web based to-do list application that has features that include:</p>
<ul>
<li>The ability to get reminders anywhere e.g. through SMS, IM, skype and E-mail</li>
<li>The ability to tag tasks</li>
<li>View tasks on a map</li>
<li>And mooo-re (get it)</li>
</ul>
<h4>teuxdeux.com</h4>
<p><a title="teuxdeux" href="http://teuxdeux.com/">teuxdeux</a> is another web based to-do list application that is extremely easy to use and is very well designed, but lacks many features of the other mentioned applications. It&#8217;s features include</p>
<ul>
<li>The ability to add tasks to future days</li>
<li>uh, oh, that&#8217;s it really. Did I mention it&#8217;s easy to use</li>
</ul>
<h4>tadalist</h4>
<p>tadalist is yet another web based to-do list application that has the ability to group tasks and share them with friends. It&#8217;s very simple but very useful.</p>
<h4>Todo.txt</h4>
<p><a title="Todo.txt" href="http://ginatrapani.github.com/todo.txt-cli/">Todo.txt</a> is a bash script that works from the a command line like interface, it has very useful features that include:</p>
<ul>
<li>Add to-do&#8217;s</li>
<li>Group to-do&#8217;s</li>
<li>search to-do&#8217;s</li>
<li>Prioritise to-do&#8217;s</li>
</ul>
<h4><span style="text-decoration: underline;"> </span>Todoist</h4>
<p>Yes, you guessed <a title="Todoist" href="http://todoist.com/">todoist</a> is another web based application that is &#8216;fast and easy to use&#8217;. It features:</p>
<ul>
<li>A built in calendar</li>
<li>The ability to create sub-projects and sub items</li>
<li>Reminders</li>
<li>Labels</li>
</ul>
<h4>Free GTD articles</h4>
<p>Okay, so it&#8217;s not software but it&#8217;s still useful. <a title="FREE Articles!" href="https://secure.davidco.com/store/catalog/-Zip-File-The-Complete-Set-of-David-Allens-Free-Articles-p-16295.php">Free articles</a> by the GTD master himself David allen:</p>
<img src="http://feeds.feedburner.com/~r/richard-hole/~4/qwwb1szXq-0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://richardhole.co.uk/software/getting-it-done/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://richardhole.co.uk/software/getting-it-done/</feedburner:origLink></item>
		<item>
		<title>remove codeigniter index.php</title>
		<link>http://feedproxy.google.com/~r/richard-hole/~3/cV2kf4Zd65o/</link>
		<comments>http://richardhole.co.uk/code/remove-codeigniter-index-php/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 20:41:50 +0000</pubDate>
		<dc:creator />
				<category><![CDATA[Code]]></category>
		<category><![CDATA[codeigniter]]></category>

		<guid isPermaLink="false">http://richardhole.co.uk/?p=48</guid>
		<description><![CDATA[This is another old article, showing you how to remove the '/index.php/' that codeigniter calls, from the URL in the address bar; using a simple bit of .htacess code]]></description>
			<content:encoded><![CDATA[<p>In the process of developing with codeigniter I discovered that the .htaccess file wasn&#8217;t removing the index.php file from the URL, this is because I was using a sub directory. I did however find code that made this problem go away. Take a look:</p>
<pre>#this is for sub directory - http://localhost/appname
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]</pre>
<p>This then fixed the problem. But then when moving it over to a subdomain I ran into the same problem. So, I found some other code to help me fix the problem. Take a look:</p>
<p>In the .htaccess file of your root put this (change &#8216;myapp.mydomain.com to your full URL and change &#8216;myapp&#8217; to your subdomain name):</p>
<pre>RewriteCond %{HTTP_HOST}    ^myapp.mydomain.com$
RewriteCond %{REQUEST_URI}  !^/myapp/
RewriteRule (.*)            /myapp/$1 [last]</pre>
<p>This will direct your request to the .htacess file in your subdomain. You then need to put the following code in the .htacess file of your subdomain:</p>
<pre>Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php?/$1[QSA]</pre>
<p>Problem solved.</p>
<img src="http://feeds.feedburner.com/~r/richard-hole/~4/cV2kf4Zd65o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://richardhole.co.uk/code/remove-codeigniter-index-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://richardhole.co.uk/code/remove-codeigniter-index-php/</feedburner:origLink></item>
		<item>
		<title>The power of WordPress ‘Links’</title>
		<link>http://feedproxy.google.com/~r/richard-hole/~3/vG4Jyrqn99A/</link>
		<comments>http://richardhole.co.uk/code/the-power-of-wordpress-links/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 20:30:12 +0000</pubDate>
		<dc:creator />
				<category><![CDATA[Code]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://richardhole.co.uk/?p=32</guid>
		<description><![CDATA[The following is an old article written about how you can use wordpress links function to create a 'Currently reading' widget. This is now somewhat redundant because of custom fields, but it might be useful to someone.]]></description>
			<content:encoded><![CDATA[<h4>Ello ello, what&#8217;s all this then?</h4>
<p>Wordpress links does exactly what it says on the tin, it displays links in your wordpress template whether its widgetized or not. But there&#8217;s so much more that the built in &#8216;Links&#8217; functionality can do. In this article we will look at how the &#8216;Links&#8217; functionality can be used to help make your life easier and do the same things that bespoke plugins have be made too do.</p>
<h4>I&#8217;ve Got The Power!</h4>
<p>Or more precisely WordPress has the power. We&#8217;ve all seen different hacks, workarounds and general hickory pokery used to show off the expandability of WordPress, so what I&#8217;m about to show isn&#8217;t anything special. In fact there will be no hacking or workarounds and most definitely no hickory pokery in this article; all we will be doing here is using the WordPress API to the advantage of the user i.e you.</p>
<h4>Get To The Point!</h4>
<p>Or more importantly the code. What i&#8217;m about to show you is a very basic use of the wordpress &#8216;Links&#8217; but hopefully those einsteins among will think of better uses than this. I&#8217;m going to show you how to create a &#8216;Currently Reading&#8217; widget (like the one in my sidebar) that will show the name of the book and a description of the book. This is easy enough to work out how to do if you read the Wordpress Documentation but I thought I would share how I did it.</p>
<p>In the latest version of WordPress the <span style="text-decoration: underline;">wp_list_bookmarks()</span> function is used to call the bookmarks/Links and display them on the page so this is what were going to be using.</p>
<p>Here is the code used in the sidebar:</p>
<pre><code>&lt;?php wp_list_bookmarks('category_before= //The text that goes before each category. Defaults to &lt;li id="[category id]"&gt;
&amp;category_after= //Text that goes after each category. Defaults to &lt;/li&gt;
&amp;category_name=Currently Reading //The name of the category
&amp;show_images=0 //Display an image (in this case book cover).1=true 0=false&amp;show_description=1 //display description.
&amp;orderby=updated //Order it by the last updates bookmark
&amp;title_before=&lt;h4&gt; //what goes before the title
&amp;title_after=&lt;/h4&gt; //what goes after the title
&amp;show_name=1 //show the text link
&amp;between=&lt;br /&gt; //Text to place between each bookmark/image and its description. Defaults to '\n' (newline).
&amp;before=&lt;p&gt; //Text to place before each bookmark. Defaults to '&lt;li&gt;'.
&amp;after=&lt;/p&gt; //Text to place after each bookmark. Defaults to '&lt;/li&gt;'.
&amp;title_li=0 //Text for the heading of the list
&amp;categorize=0 //Bookmarks should be shown within their assigned Categories or not.
'); ?&gt;</code></pre>
<p>It should be noted that this code has been formatted for display reasons. This is how the code should be entered:</p>
<pre><code>&lt;?php wp_list_bookmarks('category_before=&amp;category_after= &amp;category_name=Currently Reading&amp;show_images=0&amp;show_description=1&amp;orderby=updated&amp;title_before=&lt;h4&gt;&amp;title_after=&amp;show_name=1&amp;between=&amp;before=&amp;after=&amp;title_li=0&amp;categorize=0'); ?&gt;</code></pre>
<p>This has just been thrown into a text widget that I called currently reading. For the code to be executed in the text widget you will need the <a title="exec php plugin" href="http://wordpress.org/extend/plugins/exec-php/">Exec-PHP plugin</a>. You can read the documentation about wp_list_bookmarks() on the <a title="wordpress codex" href="http://codex.wordpress.org/Template_Tags/wp_list_bookmarks">WordPress Codex</a>. The only thing left to do is create a link category called &#8216;Currently Reading&#8217; and add a bookmark with the name of your book, and image and a description, the plugin will do the rest.</p>
<h4>Room For Improvement</h4>
<p>This is a very simple and effective use of the WorPress links capability but there are many more ways to use this that more imaginative people could come up. If you liked this *cough* short article then why not leave a comment.</p>
<img src="http://feeds.feedburner.com/~r/richard-hole/~4/vG4Jyrqn99A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://richardhole.co.uk/code/the-power-of-wordpress-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://richardhole.co.uk/code/the-power-of-wordpress-links/</feedburner:origLink></item>
		<item>
		<title>Prompt Me</title>
		<link>http://feedproxy.google.com/~r/richard-hole/~3/nt647fJa660/</link>
		<comments>http://richardhole.co.uk/portfolio/prompt-me/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 12:53:24 +0000</pubDate>
		<dc:creator />
				<category><![CDATA[Portfolio]]></category>

		<guid isPermaLink="false">http://richardhole.co.uk/?p=14</guid>
		<description><![CDATA[Prompt Me is a web based application built to display random writing prompts]]></description>
			<content:encoded><![CDATA[<p><a href="http://richardhole.co.uk/wp-content/uploads/2010/01/prmptmefull.png"><img class="alignleft size-medium wp-image-28" style="margin-right: 5px;" title="prmptmefull" src="http://richardhole.co.uk/wp-content/uploads/2010/01/prmptmefull-300x149.png" alt="Prompt Me" width="240" height="119" /></a>Prompt Me is a bespoke web application that I designed and developed (with the help of codeigniter), it’s main purpose is to display random writing prompts that are pulled from a database back-end. These ‘writing prompts’ are supposed to be used to get the creative juices flowing and get the writer – writing.</p>
<h4>The technical stuff</h4>
<p>I wrote The application with the use of the codeigniter PHP library that made development of it much easier. The front was very easy to implement and went as smoothly as it possibly could. The back end, on the other hand, went a little less smoothly; I’ll spare you the details but will say this I now fully appreciate how much hard work goes into creating any bespoke application.</p>
<p>I designed the application and wrote the CSS &amp; XHTML with a little help from the 960gs CSS Framework.</p>
<p>Take a look at <a title="Prompt me" href="http://pm.sneakatron.co.uk/">prompt me!</a></p>
<img src="http://feeds.feedburner.com/~r/richard-hole/~4/nt647fJa660" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://richardhole.co.uk/portfolio/prompt-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://richardhole.co.uk/portfolio/prompt-me/</feedburner:origLink></item>
		<item>
		<title>Hello world! No, really!</title>
		<link>http://feedproxy.google.com/~r/richard-hole/~3/DTmsDmPYSBM/</link>
		<comments>http://richardhole.co.uk/misc/hello-world/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 15:56:12 +0000</pubDate>
		<dc:creator />
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://richardhole.co.uk/?p=1</guid>
		<description><![CDATA[This is just a quick post to say hello. Click on the permalink to view the message]]></description>
			<content:encoded><![CDATA[<p>Hi. My name is, as you have probably guessed, Richard Hole and your on my site. Yay. Updates are on their way but I have to get the rest of the site up and running. So this is what I want to say:</p>
<pre>function HelloWorld(){
echo 'Hello World';
}

HelloWorld();</pre>
<img src="http://feeds.feedburner.com/~r/richard-hole/~4/DTmsDmPYSBM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://richardhole.co.uk/misc/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://richardhole.co.uk/misc/hello-world/</feedburner:origLink></item>
		<item>
		<title>Fix Your Fonts With ClearType</title>
		<link>http://feedproxy.google.com/~r/richard-hole/~3/q1hZ1yPxcnw/</link>
		<comments>http://richardhole.co.uk/software/fix-your-fonts-with-cleartype/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 20:46:37 +0000</pubDate>
		<dc:creator />
				<category><![CDATA[software]]></category>
		<category><![CDATA[fonts]]></category>

		<guid isPermaLink="false">http://richardhole.co.uk/?p=53</guid>
		<description><![CDATA[On a lot of windows systems, fonts can look very pixelated and display fonts poorly. I have had experiences as mentioned above, on my old XP laptop. All fonts looked the same and were very pixelated; even on websites. That is when I discovered ClearType.
What is ClearType?
ClearType is a type of technology developed by Microsoft that improves the display of text on LCD screens that can be found on a....<br /><br /><a class="more-link" href="http://richardhole.co.uk/software/fix-your-fonts-with-cleartype/">Read The Rest</a>]]></description>
			<content:encoded><![CDATA[<p>On a lot of windows systems, fonts can look very pixelated and display fonts poorly. I have had experiences as mentioned above, on my old XP laptop. All fonts looked the same and were very pixelated; even on websites. That is when I discovered ClearType.</p>
<h4>What is ClearType?</h4>
<p>ClearType is a type of technology developed by Microsoft that improves the display of text on LCD screens that can be found on a variety of devices. Examples of such devices are laptops, pocket PCs and flat panel monitors.</p>
<p>Though you may not know it ClearType comes built into Windows XP and Windows Vista operating systems. ClearType is automaticly turned on in the windows Vista operating system.</p>
<p><img title="More..." src="http://sneakatron.co.uk/wp-includes/js/tinymce/plugins/wordpress/img/trans.gif" alt="" /></p>
<h4>How Do I use it?</h4>
<p>As mentioned above ClearType is already turned on in Windows Vista. To turn it on in xp you need to:</p>
<ul>
<li>Right click on the desktop and select ‘Properties’</li>
<li>Select the ‘Appearance’ tab and press the ‘Effects…’ button</li>
<li>Check the box for ‘Use the following method to smooth edges of screen fonts’, then select ‘ClearType’ in the dropdown list</li>
<li>Close the Effects dialog by clicking ‘OK’ and click ‘Apply’ to complete the process</li>
</ul>
<h4>Tuning ClearType</h4>
<p>You may want to tweak your ClearType settings. To do this Microsoft have provided a <a title="Go to http://www.microsoft.com/typography/cleartype/tuner/tune.aspx" href="http://www.microsoft.com/typography/cleartype/tuner/tune.aspx">web Tuner</a> (requires windows Internet Explorer) that allows you to change your settings from there website. Microsoft also provides ‘<a title="Go to http://www.microsoft.com/typography/ClearTypePowerToy.mspx" href="http://www.microsoft.com/typography/ClearTypePowerToy.mspx">Power Toy</a>‘;a piece of software that allows you to to tweak your settings. For more information on ClearType visit <a title="Go to http://www.microsoft.com/typography/ClearTypeInfo.mspx" href="http://www.microsoft.com/typography/ClearTypeInfo.mspx">the ClearType website</a>.</p>
<img src="http://feeds.feedburner.com/~r/richard-hole/~4/q1hZ1yPxcnw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://richardhole.co.uk/software/fix-your-fonts-with-cleartype/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://richardhole.co.uk/software/fix-your-fonts-with-cleartype/</feedburner:origLink></item>
		<item>
		<title>An explanation of Smarty template engine</title>
		<link>http://feedproxy.google.com/~r/richard-hole/~3/Ld9lAXm4slc/</link>
		<comments>http://richardhole.co.uk/misc/a-basic-explanation-of-smarty-template-engine/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 15:07:59 +0000</pubDate>
		<dc:creator />
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://richardhole.co.uk/?p=55</guid>
		<description><![CDATA[Considering that there are so many web applications and software using the smarty template engine; and that one of those pieces of software is Flatpress (I used to use it), I thought it would be a good idea to write a bit about smarty and how it works.]]></description>
			<content:encoded><![CDATA[<p>Considering that there are so many web applications and software using the smarty template engine; and that one of those pieces of software is Flatpress, I thought it would be a good idea to write a bit about smarty.</p>
<h4>What is it?</h4>
<p>The clue is in the name; it’s a template engine. What this means is that smarty is used to display the output of processed data and <strong>does not</strong> do the processing itself; even thought Smarty is able to do a small amount of processing.</p>
<p>Smarty divides the structure of a web application cleanly into two phases; Processing and output. This is how the application would be divided.</p>
<pre>PHP SCRPIT  (PROCESSING) &gt; TPL FILE (THE DESIGN) &gt; OUTPUT HTML (WHAT THE BROWSER SEES)</pre>
<p><img title="More..." src="http://sneakatron.co.uk/wp-includes/js/tinymce/plugins/wordpress/img/trans.gif" alt="" /></p>
<h4>Why use it?</h4>
<p>There are various reasons why smarty should be used to handle the presentation of a site. Here are a few.</p>
<p>It’s clean &#8211; The combination of PHP and HTML can look very messy. Why would anyone want all those pieces of PHP code in with the presentation layer of your website, when all the processing can be done via PHP and then have the output displayed with a simple tag?</p>
<p>It has Add-ons – Add-ons are available to help speed up development. Examples of these are Pagination, Form Validation, Drop Down Menus, Calendar Date Pickers, etc.</p>
<p>It’s fast – Smarty has a huge set of features, but this does not impede the performance of the engine. Smarty has built in caching capabilities that can be used to make the presentation of the site load much faster. Though most of the time this is not needed.</p>
<p>For more features: <a href="http://www.smarty.net/rightforme.php">http://www.smarty.net/rightforme.php</a></p>
<h4>Examples</h4>
<p>Here is a simple example of how smarty can be used:</p>
<p>PHP</p>
<pre>include('Smarty.class.php');
// create object
$smarty = new Smarty;

// assign some content. This would typically come from
// a database or other source, but we'll use static
// values for the purpose of this example.
$smarty-&gt;assign('name', 'george smith');
$smarty-&gt;assign('address', '45th &amp; Harris');
// display it
$smarty-&gt;display('index.tpl');</pre>
<p>TPL File</p>
<pre>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;User Info&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
User Information:&lt;br /&gt;
Name: {$name}&lt;br /&gt;
Address: {$address}&lt;br /&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>Output HTML</p>
<pre>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;User Info&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
User Information:&lt;br /&gt;
Name: george smith&lt;br /&gt;
Address: 45th &amp; Harris&lt;br /&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>View more examples: <a href="http://www.smarty.net/crashcourse.php">http://www.smarty.net/crashcourse.php</a></p>
<img src="http://feeds.feedburner.com/~r/richard-hole/~4/Ld9lAXm4slc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://richardhole.co.uk/misc/a-basic-explanation-of-smarty-template-engine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://richardhole.co.uk/misc/a-basic-explanation-of-smarty-template-engine/</feedburner:origLink></item>
		<item>
		<title>Firefox 3: Hate The ‘Awesome bar’</title>
		<link>http://feedproxy.google.com/~r/richard-hole/~3/IhFZsxcTtSw/</link>
		<comments>http://richardhole.co.uk/software/firefox-3-love-the-speed-hate-the-%e2%80%98awesome-bar%e2%80%99/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 15:35:57 +0000</pubDate>
		<dc:creator />
				<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://richardhole.co.uk/?p=74</guid>
		<description><![CDATA[So, yesterday was firefox 3 launch day; I was pretty exited to see how much faster the browser was than the memory leaking firefox 2. I was pleasantly surprised by it; pages like the comics page on penny-arcade no longer take 15 seconds to load the comic. The comics now load instantaneously. That’s the good thing.
The thing I hate about firefox 3 is the (in my opinion) inappropriately named named....<br /><br /><a class="more-link" href="http://richardhole.co.uk/software/firefox-3-love-the-speed-hate-the-%e2%80%98awesome-bar%e2%80%99/">Read The Rest</a>]]></description>
			<content:encoded><![CDATA[<p>So, yesterday was firefox 3 launch day; I was pretty exited to see how much faster the browser was than the memory leaking firefox 2. I was pleasantly surprised by it; pages like the comics page on penny-arcade no longer take 15 seconds to load the comic. The comics now load instantaneously. That’s the good thing.</p>
<p>The thing I hate about firefox 3 is the (in my opinion) inappropriately named named ‘Awesome bar’. The problem I have with it is that every time I start to enter a URL it brings up a list of URLs that have been found in the history or your favourites and have been matched with the text that was entered into the address bar. I just don’t like it. I much prefer the firefox 2 address bar. The fact that the ‘Awesome bar’ exist isn’t my problem; my problem is that there isn’t any way of making it act like it does in firefox 2. Sure, you can turn it off but that’s just as unhelpful as having turned on.</p>
<p>I can see that people are either going to love it. Or hate it. I personally hate it.</p>
<p>What do you think?</p>
<p>Update: I Have found a way to stop the bookmarks from appearing in the address bar drop down.</p>
<p>Use this guide to find the you firefox profile</p>
<ul>
<li> Now find the userChrome.css file. It should be in the file called chrome. If isn’t in there then just rename the userChrome-example file to ‘userChrome’.</li>
<li> Now add the following code to the userChrome.css file.
<pre> richlistitem[type=”bookmark”] {
display: none !important;
}</pre>
</li>
<li> Restart Firefox</li>
</ul>
<img src="http://feeds.feedburner.com/~r/richard-hole/~4/IhFZsxcTtSw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://richardhole.co.uk/software/firefox-3-love-the-speed-hate-the-%e2%80%98awesome-bar%e2%80%99/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://richardhole.co.uk/software/firefox-3-love-the-speed-hate-the-%e2%80%98awesome-bar%e2%80%99/</feedburner:origLink></item>
	</channel>
</rss>
