<?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>Maff Wilson&#039;s Webby Home &#187; Notes</title>
	<atom:link href="http://maffwilson.co.uk/category/notes/feed" rel="self" type="application/rss+xml" />
	<link>http://maffwilson.co.uk</link>
	<description>Projects, notes, play and contact details.</description>
	<lastBuildDate>Wed, 28 Jul 2010 17:25:03 +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>Stopping Plugins Automatically Updating</title>
		<link>http://maffwilson.co.uk/117-stopping-plugins-automatically-updating</link>
		<comments>http://maffwilson.co.uk/117-stopping-plugins-automatically-updating#comments</comments>
		<pubDate>Wed, 28 Jul 2010 17:25:03 +0000</pubDate>
		<dc:creator>Maff</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[automatically]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://maffwilson.co.uk/?p=117</guid>
		<description><![CDATA[Chmod 444 /wp-content/plugins/plugin_name
To stop other users from (easily) auto-updating plugins that might have had a lot of customisation work done to them (and thus destroying all that work, grrrr) simply change permissions for the plugin in the plugins folder.  444 should be fine.  You can change this back as and when you need [...]]]></description>
			<content:encoded><![CDATA[<p>Chmod 444 /wp-content/plugins/plugin_name</p>
<p>To stop other users from (easily) auto-updating plugins that might have had a lot of customisation work done to them (and thus destroying all that work, grrrr) simply change permissions for the plugin in the plugins folder.  444 should be fine.  You can change this back as and when you need to edit the plugin.</p>
]]></content:encoded>
			<wfw:commentRss>http://maffwilson.co.uk/117-stopping-plugins-automatically-updating/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best Wordpress Mailing List Plugin</title>
		<link>http://maffwilson.co.uk/110-best-wordpress-mailing-list-plugin</link>
		<comments>http://maffwilson.co.uk/110-best-wordpress-mailing-list-plugin#comments</comments>
		<pubDate>Wed, 28 Jul 2010 17:04:07 +0000</pubDate>
		<dc:creator>Maff</dc:creator>
				<category><![CDATA[Notes]]></category>

		<guid isPermaLink="false">http://maffwilson.co.uk/110-best-wordpress-mailing-list-plugin</guid>
		<description><![CDATA[After looking for something for a while the best I could find &#8211; by a good margin &#8211; is Sendit.
&#8220;Sendit enable you to send newsletters and collect subscribers from your blog. You can manage one or more list and using in post/pages or using the widget(customizable). You can extract content from post or pages or [...]]]></description>
			<content:encoded><![CDATA[<p>After looking for something for a while the best I could find &#8211; by a good margin &#8211; is <a href="http://wordpress.org/extend/plugins/sendit/">Sendit</a>.</p>
<p>&#8220;Sendit enable you to send newsletters and collect subscribers from your blog. You can manage one or more list and using in post/pages or using the widget(customizable). You can extract content from post or pages or create your content to send to subscribers. You can also edit the template for each mailing lists just put some XHTML code on header and footer. Newsletter will be send in XHTML format.&#8221;</p>
<p>Works like a charm.</p>
<p>A tip: by default only admin can see the Newsletter option.</p>
<p>To fix it so that lesser mortals can see amd use the Newsletter system edit:</p>
<p><code>add_menu_page(__(‘Send’, ’sendit’), __(‘Newsletter’, ’sendit’), 8, __FILE__, ‘invianewsletter’);</code></p>
<p>(and subsequent lines for sub-menu options) </p>
<p>8 means admin: change this to, say, 5 for Editors.</p>
<p>Full numbers explanation here: <a href="http://codex.wordpress.org/Roles_and_Capabilities#User_Level_to_Role_Conversion">http://codex.wordpress.org/Roles_and_Capabilities#User_Level_to_Role_Conversion</a></p>
<p>Another tip:  the confirmation page (confirmation.php) didn&#8217;t work great with my theme &#8211; I had to edit after line 40 to make sure there were the right amount of div tags (<code>div="content"</code> is both a typo and redundant).</p>
]]></content:encoded>
			<wfw:commentRss>http://maffwilson.co.uk/110-best-wordpress-mailing-list-plugin/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress wp_options &#8211; what&#8217;s S?</title>
		<link>http://maffwilson.co.uk/107-wordpress-wp_options-whats-s</link>
		<comments>http://maffwilson.co.uk/107-wordpress-wp_options-whats-s#comments</comments>
		<pubDate>Thu, 13 May 2010 13:37:36 +0000</pubDate>
		<dc:creator>Maff</dc:creator>
				<category><![CDATA[Notes]]></category>

		<guid isPermaLink="false">http://maffwilson.co.uk/?p=107</guid>
		<description><![CDATA[When editing something like ftp_credentials:
a:4:{s:8:&#8221;hostname&#8221;;s:11:&#8221;example.com&#8221;;s:8:&#8221;username&#8221;;s:5:&#8221;admin&#8221;;s:15:&#8221;connection_type&#8221;;s:4:&#8221;ftps&#8221;;s:4:&#8221;port&#8221;;s:17:&#8221;//ftp.example.com&#8221;;
the s is the number of characters in the following value.
]]></description>
			<content:encoded><![CDATA[<p>When editing something like ftp_credentials:</p>
<p>a:4:{s:8:&#8221;hostname&#8221;;s:11:&#8221;example.com&#8221;;s:8:&#8221;username&#8221;;s:5:&#8221;admin&#8221;;s:15:&#8221;connection_type&#8221;;s:4:&#8221;ftps&#8221;;s:4:&#8221;port&#8221;;s:17:&#8221;//ftp.example.com&#8221;;</p>
<p>the s is the number of characters in the following value.</p>
]]></content:encoded>
			<wfw:commentRss>http://maffwilson.co.uk/107-wordpress-wp_options-whats-s/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Solved] Change the number of posts on archive pages</title>
		<link>http://maffwilson.co.uk/78-solved-change-the-number-of-posts-on-archive-pages</link>
		<comments>http://maffwilson.co.uk/78-solved-change-the-number-of-posts-on-archive-pages#comments</comments>
		<pubDate>Mon, 05 Apr 2010 13:49:22 +0000</pubDate>
		<dc:creator>Maff</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[archive page]]></category>
		<category><![CDATA[pagination]]></category>
		<category><![CDATA[posts]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://maffwilson.co.uk/?p=78</guid>
		<description><![CDATA[Been searching for how to do this for a while &#8211; the solution became much easier when I realised (Doh!) that it was the wordpress loop that controlled the number of posts being displayed per page rather than the theme.  
First tried blogmum&#8217;s suggestion of using:

   &#60;? query_posts('showposts=3'); ?&#62;
Add this to archives.php [...]]]></description>
			<content:encoded><![CDATA[<p>Been searching for how to do this for a while &#8211; the solution became much easier when I realised (Doh!) that it was the wordpress loop that controlled the number of posts being displayed per page rather than the theme.  </p>
<p>First tried <a href="http://blogmum.com/2009/06/how-to-change-the-number-of-posts-on-wordpress-archive-pages/">blogmum</a>&#8217;s suggestion of using:</p>
<blockquote><p>
   <code>&lt;? query_posts('showposts=3'); ?&gt;</code></p>
<p>Add this to archives.php to change the number of posts in category, date and author archives; to search.php to change search results&#8217; pages, or to index.php for the front page (as ever, this holds true for the majority of themes, but not absolutely all). The line needs to go *before* the loop <? if ( have_posts() )... etc. Change the number to whatever number of posts you want.</p></blockquote>
<p>However, this only showed all the categories posts which wasn&#8217;t any good for me as the archive pages are category based.</p>
<p><a href="http://codex.wordpress.org/Template_Tags/query_posts">Wordpress documentation</a> gave me the correct solution.</p>
<blockquote><p><code>&lt;?php<br />
global $query_string;<br />
query_posts($query_string . "&#038;posts_per_page=11");<br />
?&gt;</code></p></blockquote>
<p>Note: Place a call to query_posts() in one of your Template files before The Loop begins. The wp_query object will generate a new SQL query using your parameters. When you do this, WordPress ignores the other parameters it receives via the URL (such as page number or category). If you want to preserve that information, you can use the $query_string global variable in the call to query_posts(), as above.</p>
]]></content:encoded>
			<wfw:commentRss>http://maffwilson.co.uk/78-solved-change-the-number-of-posts-on-archive-pages/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Solved] Wordpress Top Category Function</title>
		<link>http://maffwilson.co.uk/74-solved-wordpress-top-category-function</link>
		<comments>http://maffwilson.co.uk/74-solved-wordpress-top-category-function#comments</comments>
		<pubDate>Fri, 22 Jan 2010 12:24:28 +0000</pubDate>
		<dc:creator>Maff</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[styling]]></category>
		<category><![CDATA[top category]]></category>
		<category><![CDATA[top category level]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://maffwilson.co.uk/?p=74</guid>
		<description><![CDATA[For the new geeks.co.uk design I needed a way of finding which top level category any given post was in and use that in the CSS to make various design elements of the page the specific colour of that top level category. 
On geeks.co.uk, some posts are in a top level category, eg all News [...]]]></description>
			<content:encoded><![CDATA[<p>For the new <a href="http://geeks.co.uk">geeks.co.uk</a> design I needed a way of finding which top level category any given post was in and use that in the CSS to make various design elements of the page the specific colour of that top level category. </p>
<p>On geeks.co.uk, some posts are in a top level category, eg all News articles, and some are in sub categories, eg some Game Reviews are in Wii but not PSP etc.</p>
<p>Also, CSS won&#8217;t work with spaces in the names of labels so for categories like &#8220;Game Reviews&#8221; we have to remove the space to be useful as a CSS label.</p>
<p>Sometimes you want the function call to echo the category name to the page, eg when it&#8217;s used as a title of the page or in breadcrumbs.  Sometimes you just want it returned to use in a CSS label, for example.</p>
<p>So here is my function:</p>
<p><code>function get_top_cat($css = false, $echo = false){<br />
	$maffcat = (array) get_the_category();<br />
	$maffpar = get_cat_name($maffcat[0]->category_parent);<br />
	if ($maffpar == ''){<br />
		$maffcat = (array) get_the_category();<br />
		$maffpar = $maffcat[0]->cat_name;<br />
	}</p>
<p>	if ($css){$maffpar = str_replace (" ", "", $maffpar);}</p>
<p>	if ($echo){ echo $maffpar;}<br />
	else{<br />
	return $maffpar;<br />
	}</p>
<p>}</code></p>
<p>Stick that in your theme&#8217;s functions.php and you should be able to call it by, for example,</p>
<p><code>get_top_cat('', 'true') - will put top category name with spaces on your page<br />
get_top_cat('true', '') - will put top category name without spaces in your code</code></p>
<p>in your webpage files like single.php, archive.php etc</p>
<p>Nb. this works for two-level categories &#8211; it seems that this could easily be extended for more levels by further nesting.</p>
]]></content:encoded>
			<wfw:commentRss>http://maffwilson.co.uk/74-solved-wordpress-top-category-function/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Solved] Wordpress Active Theme Broken</title>
		<link>http://maffwilson.co.uk/72-solved-wordpress-active-theme-broken</link>
		<comments>http://maffwilson.co.uk/72-solved-wordpress-active-theme-broken#comments</comments>
		<pubDate>Fri, 04 Dec 2009 16:15:03 +0000</pubDate>
		<dc:creator>Maff</dc:creator>
				<category><![CDATA[Notes]]></category>

		<guid isPermaLink="false">http://maffwilson.co.uk/?p=72</guid>
		<description><![CDATA[Got a small scare when I went into Appearance -> Themes and I got this message:
&#8220;The active theme is broken. Reverting to the default theme.&#8221;
And my site was back into the default theme which obviously looked gash.
Panic over &#8211; the problem was that I had somehow deleted the root style.css for the theme.
]]></description>
			<content:encoded><![CDATA[<p>Got a small scare when I went into Appearance -> Themes and I got this message:</p>
<p>&#8220;The active theme is broken. Reverting to the default theme.&#8221;</p>
<p>And my site was back into the default theme which obviously looked gash.</p>
<p>Panic over &#8211; the problem was that I had somehow deleted the root style.css for the theme.</p>
]]></content:encoded>
			<wfw:commentRss>http://maffwilson.co.uk/72-solved-wordpress-active-theme-broken/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Solved] Delete Invisible Thunderbird Account</title>
		<link>http://maffwilson.co.uk/67-solved-delete-invisible-thunderbird-account</link>
		<comments>http://maffwilson.co.uk/67-solved-delete-invisible-thunderbird-account#comments</comments>
		<pubDate>Fri, 27 Nov 2009 15:47:44 +0000</pubDate>
		<dc:creator>Maff</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[account preferences]]></category>
		<category><![CDATA[delete account]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[prefs.js]]></category>
		<category><![CDATA[Thunderbird]]></category>

		<guid isPermaLink="false">http://maffwilson.co.uk/?p=67</guid>
		<description><![CDATA[As a &#8216;webmaster&#8217; I use Thunderbird to download email from multiple email accounts all the time and was adding another to my list recently when I encountered an annoying wee problem.
In the Thunderbird account setup wizard I put in the wrong login name &#8211; I just guessed to be honest which isn&#8217;t usually a problem [...]]]></description>
			<content:encoded><![CDATA[<p>As a &#8216;webmaster&#8217; I use Thunderbird to download email from multiple email accounts all the time and was adding another to my list recently when I encountered an annoying wee problem.</p>
<p>In the Thunderbird account setup wizard I put in the wrong login name &#8211; I just guessed to be honest which isn&#8217;t usually a problem as you can try another easily enough &#8211;  and thus it wasn&#8217;t able to login. </p>
<p>The problem was that when I went into &#8216;Account Preferences&#8217; this account doesn&#8217;t appear, so I can&#8217;t edit it and change the login details.</p>
<p><code>Menu Path:</p>
<p>      [In Windows &#038; OSX]: Tools | Account Settings, or<br />
      [In *nix]: Edit | Account Settings<br />
      .. then, in the left pane, under the account name, Server Settings</code></p>
<p>However, every time I tried to download email it checked this account &#8211; and asked me for a password etc. This was annoying. How could I edit or delete this account if I couldn&#8217;t see it?.</p>
<p>Thanks to advice received on <a href="http://forums.mozillazine.org/viewtopic.php?f=39&#038;t=1612845&#038;p=8097385#p8097385">this thread</a> I found the solution.</p>
<p>I was able to delete the offending (non) account by editing <strong>prefs.js</strong> in the main profile folder (for example, s4u1gg1e.default) .</p>
]]></content:encoded>
			<wfw:commentRss>http://maffwilson.co.uk/67-solved-delete-invisible-thunderbird-account/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[Solved] Sound Not Working After Ubuntu 9.10 Upgrade</title>
		<link>http://maffwilson.co.uk/46-solved-sound-not-working-after-ubuntu-9-10-upgrade</link>
		<comments>http://maffwilson.co.uk/46-solved-sound-not-working-after-ubuntu-9-10-upgrade#comments</comments>
		<pubDate>Thu, 12 Nov 2009 13:19:44 +0000</pubDate>
		<dc:creator>Maff</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[Internal audio analog stereo]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[output]]></category>
		<category><![CDATA[Sound not working]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>

		<guid isPermaLink="false">http://maffwilson.co.uk/?p=46</guid>
		<description><![CDATA[Discovered my sound was not longer working after the latest Karmic Koala upgrade (Ubuntu 9.10).
The solution: 
Go to System &#8211;> Preferences &#8211;> Sound  &#8211;> Output
Under this tab there were 2 sound cards listed both as &#8220;Internal Audio Analog Stereo&#8221; (the same one listed twice? why?)
Choosing the second rather than the first brought sound back.
]]></description>
			<content:encoded><![CDATA[<p>Discovered my sound was not longer working after the latest Karmic Koala upgrade (Ubuntu 9.10).</p>
<p>The solution: </p>
<p>Go to System &#8211;> Preferences &#8211;> Sound  &#8211;> Output</p>
<p>Under this tab there were 2 sound cards listed both as &#8220;Internal Audio Analog Stereo&#8221; (the same one listed twice? why?)</p>
<p>Choosing the second rather than the first brought sound back.</p>
]]></content:encoded>
			<wfw:commentRss>http://maffwilson.co.uk/46-solved-sound-not-working-after-ubuntu-9-10-upgrade/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Oaktree Accountancy Goes Live</title>
		<link>http://maffwilson.co.uk/39-oaktree-accountancy-goes-live</link>
		<comments>http://maffwilson.co.uk/39-oaktree-accountancy-goes-live#comments</comments>
		<pubDate>Wed, 11 Nov 2009 17:40:49 +0000</pubDate>
		<dc:creator>Maff</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[Chris Macleod]]></category>
		<category><![CDATA[Cockermouth]]></category>
		<category><![CDATA[Cumbria]]></category>
		<category><![CDATA[Oaktree accountancy]]></category>
		<category><![CDATA[WCDA]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://maffwilson.co.uk/?p=39</guid>
		<description><![CDATA[Fellow WCDA alumnus Chris Macleod has a new website for his accountancy business based in Cockermouth, Cumbria.
Website: Oaktree Acountancy
Another Wordpress re-theming.
]]></description>
			<content:encoded><![CDATA[<p>Fellow <a href="http://www.wcda.co.uk/">WCDA</a> alumnus Chris Macleod has a new website for his accountancy business based in Cockermouth, Cumbria.</p>
<p>Website: <a href="http://www.oakacc.co.uk/">Oaktree Acountancy</a></p>
<p>Another Wordpress re-theming.</p>
]]></content:encoded>
			<wfw:commentRss>http://maffwilson.co.uk/39-oaktree-accountancy-goes-live/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Solved] Apache restart error: server&#8217;s fully qualified domain name</title>
		<link>http://maffwilson.co.uk/32-apache-restart-error</link>
		<comments>http://maffwilson.co.uk/32-apache-restart-error#comments</comments>
		<pubDate>Wed, 11 Nov 2009 17:03:52 +0000</pubDate>
		<dc:creator>Maff</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[fully qualified domain name]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[restart]]></category>
		<category><![CDATA[servername]]></category>

		<guid isPermaLink="false">http://maffwilson.co.uk/?p=32</guid>
		<description><![CDATA[It seems that Red Hat Fedora must have changed a few settings over recent upgrades because I had a few things stop working when I did a simple Apache conf change to point a website at some parking space.
After editing /etc/httpd/conf/httpd.conf
I tried to restart with /sbin/services &#8211; where has this gone?  In the end [...]]]></description>
			<content:encoded><![CDATA[<p>It seems that Red Hat Fedora must have changed a few settings over recent upgrades because I had a few things stop working when I did a simple Apache conf change to point a website at some parking space.</p>
<p>After editing /etc/httpd/conf/httpd.conf</p>
<p>I tried to restart with /sbin/services &#8211; where has this gone?  In the end I had to resort to the ancient looking </p>
<p><code>/etc/rc.d/init.d/httpd restart </code></p>
<p>Then I got the exciting Apache restart error</p>
<p><code>Starting httpd: httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName</code></p>
<p>Ehh?</p>
<p>Seems the solution is this:</p>
<p><code>echo HOST.DOMAIN.com > /etc/hostname</code></p>
<p>where HOST = Your host name, DOMAIN = Your Domain Name </p>
<p>Followed by:</p>
<p><code>/bin/hostname -F /etc/hostname</code></p>
<p>Restart now works. </p>
]]></content:encoded>
			<wfw:commentRss>http://maffwilson.co.uk/32-apache-restart-error/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
