<?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>Maca134</title>
	<atom:link href="http://maca134.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://maca134.co.uk</link>
	<description>A programmer, coder, designer and IT guy all in one slightly fat package!</description>
	<lastBuildDate>Fri, 17 Feb 2012 12:17:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>WordPress Content CSS</title>
		<link>http://maca134.co.uk/blog/wordpress-content-css/</link>
		<comments>http://maca134.co.uk/blog/wordpress-content-css/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 13:56:29 +0000</pubDate>
		<dc:creator>maca134</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://maca134.co.uk/?p=206</guid>
		<description><![CDATA[Just a small post about WordPress&#8217;s standard CSS. Im always having to dig around trying to find some CSS for published content alignment in WordPress, it&#8217;s a pain and something that I normally forget if I&#8217;m creating a new theme&#8230; Here it is: .alignnone &#123; margin: 5px 20px 20px 0; &#125; &#160; .aligncenter, div.aligncenter &#123; display:block; margin: 5px auto 5px &#8230; <a href="http://maca134.co.uk/blog/wordpress-content-css/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Just a small post about WordPress&#8217;s standard CSS. Im always having to dig around trying to find some CSS for published content alignment in WordPress, it&#8217;s a pain and something that I normally forget if I&#8217;m creating a new theme&#8230;</p>
<p>Here it is:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.alignnone</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #933;">20px</span> <span style="color: #933;">20px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.aligncenter</span><span style="color: #00AA00;">,</span> div<span style="color: #6666ff;">.aligncenter</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #993333;">auto</span> <span style="color: #933;">5px</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.alignright</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">20px</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.alignleft</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #933;">20px</span> <span style="color: #933;">20px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.aligncenter</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #993333;">auto</span> <span style="color: #933;">5px</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
a img<span style="color: #6666ff;">.alignright</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">20px</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
a img<span style="color: #6666ff;">.alignnone</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #933;">20px</span> <span style="color: #933;">20px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
a img<span style="color: #6666ff;">.alignleft</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #933;">20px</span> <span style="color: #933;">20px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
a img<span style="color: #6666ff;">.aligncenter</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.wp-caption</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#f0f0f0</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">max-width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">96%</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Image does not overflow the content area */</span>
    <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #933;">3px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.wp-caption</span><span style="color: #6666ff;">.alignnone</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #933;">20px</span> <span style="color: #933;">20px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.wp-caption</span><span style="color: #6666ff;">.alignleft</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #933;">20px</span> <span style="color: #933;">20px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.wp-caption</span><span style="color: #6666ff;">.alignright</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">20px</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.wp-caption</span> img <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">max-width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">98.5%</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.wp-caption</span> p.wp-caption-<span style="color: #993333;">text</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">11px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">17px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">4px</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Obviously you can change the styles to suit but it matches what users see when adding posts and pages.</p>
<p>For more information check out the WordPress codex page: <a href="http://codex.wordpress.org/CSS">http://codex.wordpress.org/CSS</a></p>
]]></content:encoded>
			<wfw:commentRss>http://maca134.co.uk/blog/wordpress-content-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Evaluate Maths in PHP</title>
		<link>http://maca134.co.uk/blog/evaluate-maths-in-php/</link>
		<comments>http://maca134.co.uk/blog/evaluate-maths-in-php/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 20:30:35 +0000</pubDate>
		<dc:creator>maca134</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://maca134.co.uk/?p=188</guid>
		<description><![CDATA[A few days ago, I had to need to evaluate mathamatical expressions entered by the users of the site. This could potentially cause security issue when using the PHP function eval(); so I decided to tackle the problem in a different way. After some research, I came across a Eval Math by Miles Kaufmann. It has not been updated since 2005 and is &#8230; <a href="http://maca134.co.uk/blog/evaluate-maths-in-php/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A few days ago, I had to need to evaluate mathamatical expressions entered by the users of the site. This could potentially cause security issue when using the PHP function eval(); so I decided to tackle the problem in a different way.</p>
<p>After some research, I came across a <a title="Eval Math" href="http://www.phpclasses.org/package/2695-PHP-Safely-evaluate-mathematical-expressions.html" target="_blank">Eval Math</a> by Miles Kaufmann. It has not been updated since 2005 and is slightly out of date. So I have decided to create a new open source project to create a better class.</p>
<p>As it is at the moment, initially I had no idea how to approach the problem. The first thing i needed to understand was how computers can evaluate mathematical expressions.</p>
<p>Eventually I came across infix notation and postfix notation. Only getting to A level Maths, I had no idea what they were. After battling through some heavy maths, I realised infix is the way we normally write expressions</p>
<blockquote><p>Infix: <strong>3 + 4 &#8211; 2<br />
</strong>Postfix: <strong>3 4 + 2 -</strong></p></blockquote>
<p>At first it looks odd but once explained it is simple. Here how it works:</p>
<ol>
<li>(3) is a number.</li>
<li>(4) is another number</li>
<li>(+) is an operation so take the previous 2 numbers (<strong>3 + 4 = 7</strong>).<br />
So the expression becomes: <strong>7 2 - </strong></li>
<li>(7) is a number.</li>
<li>(2) is a number.</li>
<li>(-) is an operation so take the previous 2 numbers (<strong>7 &#8211; 2 = 5</strong>).</li>
<li>Only one number left, that is the answer (5).</li>
<li>So &#8220;<strong>3 + 4 &#8211; 2&#8243; = &#8220;<strong>3 4 + 2 -&#8221; = 5</strong></strong></li>
</ol>
<p>This is a simple example but the point is to make the expression easier for a computer to evaluate. Postfix removes the need for brackets in expression as precedence is sort by the order of the numbers and operations.</p>
<p>Few more examples:</p>
<blockquote><p>Infix: <strong>-2 * (a + 5) + (-2 + 2)<br />
</strong>Postfix:<strong> -2 a 5 + * -2 2 + + </strong></p></blockquote>
<blockquote><p>Infix: <strong>2a^2 + 2a + 2<br />
</strong>Postfix: <strong>2 a 2 ^ * 2 a * + 2 +</strong></p></blockquote>
<p>Once I understood this, I started writing an algorithm to convert infix to postfix using this wiki page <a href="http://en.wikipedia.org/wiki/Shunting-yard_algorithm">http://en.wikipedia.org/wiki/Shunting-yard_algorithm</a>.</p>
<p>Understanding the algorithm was alittle difficult at first but I eventually got my head around it.</p>
<p>And so I managed to get a working class that will evaluate math expressions.</p>
<p>The code is hosted at <a href="https://bitbucket.org/maca134/mathevaluator">https://bitbucket.org/maca134/mathevaluator</a> and anyone is welcome to contribute to the code.</p>
<p>At the moment the class will handle the following operations:</p>
<ul>
<li>Addition (+)</li>
<li>Subtraction (-)</li>
<li>Multiplication (*)</li>
<li>Division (/)</li>
<li>Power (^)</li>
<li>Modulus (%)</li>
<li>Parentheses</li>
</ul>
<div>Here is an example of the code:</div>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$results</span> <span style="color: #339933;">=</span> MathEvaluator<span style="color: #339933;">::</span><span style="color: #004000;">e</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'2a + (12 / 2) - b * -2'</span><span style="color: #339933;">,</span> 
	<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'a'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">2</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'b'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;result&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=&gt;</span>
	float<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">18</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;infix&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=&gt;</span>
	string<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">22</span><span style="color: #009900;">&#41;</span> <span style="color: #0000ff;">&quot;2a + (12 / 2) - b * -2&quot;</span>
	<span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;postfix&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=&gt;</span>
	string<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">23</span><span style="color: #009900;">&#41;</span> <span style="color: #0000ff;">&quot;2 a * 12 2 / + b -2 * -&quot;</span>
	<span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;vars&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=&gt;</span>
	<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;a&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=&gt;</span>
		string<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #0000ff;">&quot;2&quot;</span>
		<span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;b&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=&gt;</span>
		string<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #0000ff;">&quot;4&quot;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://maca134.co.uk/blog/evaluate-maths-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP Simple Galleries</title>
		<link>http://maca134.co.uk/blog/wp-simple-galleries/</link>
		<comments>http://maca134.co.uk/blog/wp-simple-galleries/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 23:59:55 +0000</pubDate>
		<dc:creator>maca134</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://maca134.co.uk/?p=160</guid>
		<description><![CDATA[A simple plugin that adds an image gallery to each post and page. Most gallery plugins seem to be fancy and advanced but sometimes you just want a simple solution to add images to a post of page. I created this to solve that problem. The plugin uses the WordPress image manager, so you can add already uploaded images too &#8230; <a href="http://maca134.co.uk/blog/wp-simple-galleries/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A simple plugin that adds an image gallery to each post and page. Most gallery plugins seem to be fancy and advanced but sometimes you just want a simple solution to add images to a post of page.</p>
<p>I created this to solve that problem. The plugin uses the WordPress image manager, so you can add already uploaded images too a gallery.</p>
<p>Download: <a href="http://wordpress.org/extend/plugins/wp-simple-galleries/">http://wordpress.org/extend/plugins/wp-simple-galleries/</a></p>
<p>See demo below.</p>
<p><iframe src="http://www.youtube.com/embed/-2erd1jrgyo" frameborder="0" width="420" height="315"></iframe></p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick" />
<input type="hidden" name="hosted_button_id" value="H33CVAE5A7RUN" />
<input type="image" name="submit" src="https://www.paypalobjects.com/en_GB/i/btn/btn_donate_LG.gif" alt="PayPal — The safer, easier way to pay online." /> <img src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" alt="" width="1" height="1" border="0" /></form>
<div id="wpsimplegallery_container"><ul id="wpsimplegallery" class="clearfix"><li><a href="http://maca134.co.uk/wp-content/uploads/2011/12/0JJTT1.jpg" title="0JJTT" rel="wpsimplegallery_group_160"><img src="http://maca134.co.uk/wp-content/uploads/2011/12/0JJTT1-100x100.jpg" width="100" height="100" /></a></li><li><a href="http://maca134.co.uk/wp-content/uploads/2011/12/0vmY61.jpg" title="0vmY6" rel="wpsimplegallery_group_160"><img src="http://maca134.co.uk/wp-content/uploads/2011/12/0vmY61-100x100.jpg" width="100" height="100" /></a></li><li><a href="http://maca134.co.uk/wp-content/uploads/2011/12/1QmyS.jpg" title="1QmyS" rel="wpsimplegallery_group_160"><img src="http://maca134.co.uk/wp-content/uploads/2011/12/1QmyS-100x100.jpg" width="100" height="100" /></a></li><li><a href="http://maca134.co.uk/wp-content/uploads/2011/12/1VzXp.jpg" title="1VzXp" rel="wpsimplegallery_group_160"><img src="http://maca134.co.uk/wp-content/uploads/2011/12/1VzXp-100x100.jpg" width="100" height="100" /></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://maca134.co.uk/blog/wp-simple-galleries/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Shopp Customer Register</title>
		<link>http://maca134.co.uk/blog/shopp-customer-register/</link>
		<comments>http://maca134.co.uk/blog/shopp-customer-register/#comments</comments>
		<pubDate>Fri, 02 Dec 2011 14:44:50 +0000</pubDate>
		<dc:creator>maca134</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://maca134.co.uk/?p=150</guid>
		<description><![CDATA[Shopp Customer Register is a WordPress plugin I created, when I found that Shopp (another WordPress plugin) does not have a user/customer register feature, which I thought was abit silly. So I set about creating a small plugin to fill the gap! It was become more popular than I originally anticipated. So I have decide to devote some more time &#8230; <a href="http://maca134.co.uk/blog/shopp-customer-register/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Shopp Customer Register is a WordPress plugin I created, when I found that Shopp (another WordPress plugin) does not have a user/customer register feature, which I thought was abit silly. So I set about creating a small plugin to fill the gap!</p>
<p>It was become more popular than I originally anticipated. So I have decide to devote some more time and add some extra features, as people seem to want them.</p>
<p>The plugin basicly has a shortcode that inserts a registration form into any page/post.</p>
<p>Check it out at <a title="Shopp Customer Register" href="http://wordpress.org/extend/plugins/shopp-customer-register" target="_blank">http://wordpress.org/extend/plugins/shopp-customer-register</a></p>
<p>Here is my Bitbucket repository <a href="https://bitbucket.org/maca134/shopp-customer-register/wiki/Home">https://bitbucket.org/maca134/shopp-customer-register/wiki/Home</a></p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick" />
<input type="hidden" name="hosted_button_id" value="H33CVAE5A7RUN" />
<input type="image" name="submit" src="https://www.paypalobjects.com/en_GB/i/btn/btn_donate_LG.gif" alt="PayPal — The safer, easier way to pay online." />
<img src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" alt="" width="1" height="1" border="0" /></form>
]]></content:encoded>
			<wfw:commentRss>http://maca134.co.uk/blog/shopp-customer-register/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tweeter Karma &#8211; Unfollow all non-followers</title>
		<link>http://maca134.co.uk/blog/tweeter-karma-unfollow-all-non-followers/</link>
		<comments>http://maca134.co.uk/blog/tweeter-karma-unfollow-all-non-followers/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 11:51:02 +0000</pubDate>
		<dc:creator>maca134</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://maca134.co.uk/?p=133</guid>
		<description><![CDATA[Tweeter Karma is a great little tool for showing and filtering your Twitter followings and followers but apparently recently they had to remove there &#8216;Unfollow All&#8217; feature at Twitter&#8217;s request. Which for some people, not a problem but if you have used one of them Twitter tools, you can have hundreds of followings and a disproportionate number of followers. So in true hacker style &#8230; <a href="http://maca134.co.uk/blog/tweeter-karma-unfollow-all-non-followers/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a title="Tweeter Karma" href="http://dossy.org/twitter/karma/" target="_blank">Tweeter Karma</a> is a great little tool for showing and filtering your <a title="Twitter" href="http://www.twitter.com" target="_blank">Twitter</a> followings and followers but apparently recently they had to remove there &#8216;Unfollow All&#8217; feature at Twitter&#8217;s request. Which for some people, not a problem but if you have used one of them Twitter tools, you can have hundreds of followings and a disproportionate number of followers.</p>
<p>So in true hacker style I have come up with a small Javascript snippet that will unfollow everyone on the page.</p>
<p>All it does is look for the Unfollow links and triggers the click event. Wait a second. Repeat.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> pausecomp<span style="color: #009900;">&#40;</span>ms<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	ms <span style="color: #339933;">+=</span> <span style="color: #003366; font-weight: bold;">new</span> Date<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getTime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">new</span> Date<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;</span> ms<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.twitter-users li'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div.action a'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	pausecomp<span style="color: #009900;">&#40;</span><span style="color: #CC0000;">1000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Just to make life abit easier, there is also a nice bookmarklet below, just drag it to your bookmark bar: <a href="javascript:var%20s=document.createElement('script');s.src='http://maca134.co.uk/wp-content/uploads/2011/11/unfollowall.js';s.type='text/javascript';var%20head=document.getElementsByTagName('head').item(0);head.appendChild(s);void(0);">Unfollow All</a></p>
]]></content:encoded>
			<wfw:commentRss>http://maca134.co.uk/blog/tweeter-karma-unfollow-all-non-followers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Site</title>
		<link>http://maca134.co.uk/blog/new-site-2/</link>
		<comments>http://maca134.co.uk/blog/new-site-2/#comments</comments>
		<pubDate>Wed, 16 Nov 2011 22:58:54 +0000</pubDate>
		<dc:creator>maca134</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://maca134.co.uk/?p=131</guid>
		<description><![CDATA[Just getting my new site up and running. More to come!]]></description>
			<content:encoded><![CDATA[<p>Just getting my new site up and running. More to come!</p>
]]></content:encoded>
			<wfw:commentRss>http://maca134.co.uk/blog/new-site-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

