<?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>Peter Bending</title>
	<atom:link href="http://peterbending.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://peterbending.com</link>
	<description>Web Developer resources</description>
	<lastBuildDate>Sat, 05 May 2012 07:18:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Mysql db commands</title>
		<link>http://peterbending.com/web-development/mysql-db-commands/</link>
		<comments>http://peterbending.com/web-development/mysql-db-commands/#comments</comments>
		<pubDate>Sat, 05 May 2012 07:17:28 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://peterbending.com/?p=179</guid>
		<description><![CDATA[Dump ALL MySQL Databases mysqldump &#8211;user=XXXXXXXX &#8211;password=XXXXXXX -A &#62; /PATH/TO/DUMPFILE.SQL]]></description>
			<content:encoded><![CDATA[<h2>Dump ALL MySQL Databases</h2>
<p>mysqldump &#8211;user=XXXXXXXX &#8211;password=XXXXXXX -A &gt; /PATH/TO/DUMPFILE.SQL</p>
<h2>Dump Individual or Multiple MySQL Databases</h2>
<p>mysqldump &#8211;user=XXXXXXXX &#8211;password=XXXXXXX &#8211;databases DB_NAME1 DB_NAME2 DB_NAME3 &gt; /PATH/TO/DUMPFILE.SQL</p>
<h2>Dump only certain tables from a MySQL Database</h2>
<p>mysqldump &#8211;user=XXXXXXXX &#8211;password=XXXXXXXX &#8211;databases DB_NAME &#8211;tables TABLE_NAME &gt; /PATH/TO/DUMPFILE.SQL</p>
<h2>make dumps compatible with the old MySQL version, add the following switch:</h2>
<p>&#8211;compatible=mysql323</p>
<h2>Put Myqsl database back</h2>
<p>mysql &#8211;verbose &#8211;user=XXXXXXXX &#8211;password=XXXXXXXX DB_NAME &lt; /PATH/TO/DUMPFILE.SQL</p>
]]></content:encoded>
			<wfw:commentRss>http://peterbending.com/web-development/mysql-db-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP 5.1 date(): getdate(): and assorted Time Zone errors</title>
		<link>http://peterbending.com/latest/php-5-1-date-getdate-and-assorted-time-zone-errors/</link>
		<comments>http://peterbending.com/latest/php-5-1-date-getdate-and-assorted-time-zone-errors/#comments</comments>
		<pubDate>Mon, 31 Jan 2011 01:13:03 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Latest]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[date()]]></category>
		<category><![CDATA[getdate()]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://peterbending.com/?p=137</guid>
		<description><![CDATA[Ok So you have your Apache server WIth PHP installed]]></description>
			<content:encoded><![CDATA[<p>Ok So you have your Apache server WIth PHP installed and you keep getting this error on your sites</p>
<blockquote><p>date(): It is not safe to rely on the system&#8217;s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected &#8216;UTC&#8217; for &#8216;GMT/0.0/no DST&#8217; instead</p></blockquote>
<p style="text-align: center;">OR</p>
<blockquote><p><strong>getdate(): It is not safe to rely on the system&#8217;s timezone settings.  You are *required* to use the date.timezone setting or the  date_default_timezone_set() function. In case you used any of those  methods and you are still getting this warning, you most likely  misspelled the timezone identifier. We selected &#8216;UTC&#8217; for &#8216;GMT/0.0/no  DST&#8217; instead</strong></p></blockquote>
<p>It turns out your shiny new server set up has changed if your using PHP 5.1 or greater you now need to tell php what time zone to use.</p>
<p>Rather than editing all your sites / scripts just update your .htaccess with</p>
<p>php_value date.timezone Europe/London</p>
<p>You can also set the default time zone in your php.ini file if you have access / the script should revert to UTC or GMt as it used to be but you will get the E_warning as above.</p>
<p>replacing Europe/London with the appropriate time zone for your server see full list: <a href="http://www.php.net/manual/en/timezones.php" target="_blank">http://www.php.net/manual/en/timezones.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://peterbending.com/latest/php-5-1-date-getdate-and-assorted-time-zone-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to order posts by number of Facebook Likes</title>
		<link>http://peterbending.com/wordpress/how-to-order-posts-by-number-of-facebook-likes/</link>
		<comments>http://peterbending.com/wordpress/how-to-order-posts-by-number-of-facebook-likes/#comments</comments>
		<pubDate>Wed, 10 Nov 2010 18:43:25 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://peterbending.com/?p=102</guid>
		<description><![CDATA[I was recently asked to produce a facebook &#8220;like&#8221; page]]></description>
			<content:encoded><![CDATA[<p>I was recently asked to produce a facebook &#8220;like&#8221; page where by the website owner could add entries and visitors could like those entries via facebook. The entries could then be displayed in order of most likes. see <a href="http://purplepanda.eu/like/">http://purplepanda.eu/like/</a></p>
<p>Afetr a brief discussion the cient told me they have used wordpress before and where comfortable using it, so hey lets build the site for wordpress.</p>
<p>First off we need somewhere to store our number of facebook likes against the post so add the following to functions.php</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> add_custom_field_automatically<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_ID</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>wp_is_post_revision<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_ID</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; add_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'_my_key'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'0'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><br />
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'publish_page'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'add_custom_field_automatically'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'publish_post'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'add_custom_field_automatically'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p>This will automatically add a custom field called _my_key to any new posts with a default value of &#8220;0&#8243; the reason for the _ before my_key is to hide the custom field from the post editor.</p>
<p>Next you&#8217;ll need to add the facebook like button to your code no use adding the button from facebook.com you have to write your own add this code where you want the button to appear inside the Post loop:</p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;fb_like_div&quot;</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/iframe.html"><span style="color: #000000; font-weight: bold;">iframe</span></a> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.facebook.com/widgets/like.php?href=&lt;?php the_permalink(); ?&gt;</span></span><span style="color: #ddbb00;">&amp;amp;</span>layout=button_count<span style="color: #ddbb00;">&amp;amp;</span>show_faces=false<span style="color: #ddbb00;">&amp;amp;</span>width=95<span style="color: #ddbb00;">&amp;amp;</span>action=like<span style="color: #ddbb00;">&amp;amp;</span>font<span style="color: #ddbb00;">&amp;amp;</span>colorscheme=light<span style="color: #ddbb00;">&amp;amp;</span>height=20<span style="color: #ddbb00;">&amp;amp;</span>locale=en_US&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;border:none; overflow:hidden; width:95px; height:24px;&quot; allowTransparency=&quot;true&quot;&gt;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/iframe.html"><span style="color: #000000; font-weight: bold;">iframe</span></a>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span></div></div>
<p>Next we need to check how many likes we have against each post and update the custom field we created at the beginning &#8220;_my_key&#8221;.<br />
This code is for Satndard Permalinks e.g p?=123.<br />
For nice permalinks use the code underneath!<br />
You can add this to your header.php file:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wp_query</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$Magic_no</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wp_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/file_get_contents"><span style="color: #990000;">file_get_contents</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'http://graph.facebook.com/?id='</span><span style="color: #339933;">.</span>bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'?p='</span><span style="color: #339933;">.</span> <span style="color: #000088;">$Magic_no</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$json</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$data</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$obj</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/json_decode"><span style="color: #990000;">json_decode</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$json</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$like_no</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$obj</span><span style="color: #339933;">-&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #0000ff;">'shares'</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$meta_values</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$Magic_no</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'_my_key'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #666666; font-style: italic;">//$meta_values = 1;</span><br />
<span style="color: #666666; font-style: italic;">//if ($like_no == '2') {</span><br />
&nbsp; &nbsp;<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$meta_values</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$like_no</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$meta_values</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp;<br />
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$meta_values</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp;add_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$Magic_no</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'_my_key'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$like_no</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;update_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$Magic_no</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'_my_key'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$like_no</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<br />
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp;update_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$Magic_no</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'_my_key'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$like_no</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<br />
<span style="color: #009900;">&#125;</span></div></div>
<p>Code for nice permalinks:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wp_query</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$Magic_no</span> <span style="color: #339933;">=</span> get_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$Magic_no_postid</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wp_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">;</span><br />
<span style="color: #666666; font-style: italic;">//echo get_permalink();</span><br />
<span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/file_get_contents"><span style="color: #990000;">file_get_contents</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'http://graph.facebook.com/?id='</span><span style="color: #339933;">.</span> <span style="color: #000088;">$Magic_no</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$json</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$data</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$obj</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/json_decode"><span style="color: #990000;">json_decode</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$json</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$like_no</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$obj</span><span style="color: #339933;">-&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #0000ff;">'shares'</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$meta_values</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$Magic_no_postid</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'_my_key'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #666666; font-style: italic;">//$meta_values = 1;</span><br />
<span style="color: #666666; font-style: italic;">//if ($like_no == '2') {</span><br />
<span style="color: #666666; font-style: italic;">// &nbsp; echo &quot;Number of Likes&quot;.$meta_values;</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$like_no</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$meta_values</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp;<br />
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$meta_values</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp;add_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$Magic_no_postid</span> <span style="color: #339933;">,</span> <span style="color: #0000ff;">'_my_key'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$like_no</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;update_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$Magic_no_postid</span> <span style="color: #339933;">,</span> <span style="color: #0000ff;">'_my_key'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$like_no</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<br />
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp;update_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$Magic_no_postid</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'_my_key'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$like_no</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<br />
<span style="color: #009900;">&#125;</span></div></div>
<p>Now to display the posts Create a new page template and add this betwee the get_header and get_posts:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #000088;">$featuredPosts1</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WP_Query<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$featuredPosts1</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cat=1&amp;posts_per_page=20&amp;meta_key=_my_key&amp;orderby=meta_value&amp;order=desc&amp;paged='</span><span style="color: #339933;">.</span><span style="color: #000088;">$paged</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$featuredPosts1</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$featuredPosts1</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">the_post</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br />
&lt;div id=&quot;list_wrapp_inner&quot;&gt;<br />
&nbsp; &lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<br />
&nbsp; &lt;div id=&quot;list_wrapp_1_storycontent&quot;&gt;<br />
<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br />
&nbsp; &lt;/div&gt;<br />
&lt;/a&gt;<br />
&nbsp; &lt;div class=&quot;fb_like_div&quot;&gt;<br />
&nbsp; &lt;iframe src=&quot;http://www.facebook.com/widgets/like.php?href=<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&amp;amp;layout=button_count&amp;amp;show_faces=false&amp;amp;width=95&amp;amp;action=like&amp;amp;font&amp;amp;colorscheme=light&amp;amp;height=20&amp;amp;locale=en_US&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;border:none; overflow:hidden; width:95px; height:24px;&quot; allowTransparency=&quot;true&quot;&gt;&lt;/iframe&gt;<br />
&nbsp; &lt;/div&gt;<br />
&nbsp; &lt;div class=&quot;fixed&quot;&gt;&lt;/div&gt;<br />
&lt;/div&gt; &nbsp; &nbsp;<br />
&nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://peterbending.com/wordpress/how-to-order-posts-by-number-of-facebook-likes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Seo &gt;Start Here</title>
		<link>http://peterbending.com/seo/seo-start-here/</link>
		<comments>http://peterbending.com/seo/seo-start-here/#comments</comments>
		<pubDate>Sat, 23 Oct 2010 17:10:00 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://peterbending.com/?p=99</guid>
		<description><![CDATA[Introduction to SEO When SEO started, SEO wasn&#8217;t called SEO.]]></description>
			<content:encoded><![CDATA[<h2>Introduction to SEO</h2>
<p>When SEO started, SEO wasn&#8217;t called SEO. It was best described by those who practiced it as a form of hacking.</p>
<p>The early search engines weren&#8217;t the best , so it was relatively easy to figure out their sorting algorithms. There was a time when <a href="http://en.wikipedia.org/wiki/Infoseek">Infoseek&#8217;s</a> algorithm was almost entirely based on keyword density and keyword position.</p>
<p>I&#8217;m sure many  SEOs remember those days with a sense of nostalgia. It was more of a pure technical pursuit back then.</p>
<p>As search engines got more sophisticated, and more money flowed online, the nature of the game changed. SEO moved beyond technical hacking to an exercise in making connections.</p>
<p>In Googles early days, you could build a couple of high PR (Page Rank) Links and that was enough to get you ranking top ten. (<a href="http://peterbending.com/seo/status-symbol/">Click here is you want to read the current status on PR</a>) Add a few more if you really wanted to go hard.  It&#8217;s clear to see we haven&#8217;t completely left the era of High PR but it&#8217;s clear to see their has been a shift away from this method.</p>
<p>Today a holistic approach is required to capitalize on SEO.</p>
<h2>Get your head round current SEO</h2>
<p>If you&#8217;re starting out in SEO now, Don&#8217;t try and cover it all at once it&#8217;s going to take a while.</p>
<p>It helps to understand the big picture first. The reason people engage in SEO is about making money, Driving visitors to your site, Building your online presence, and increasing your search ranking.</p>
<p>They want people to connect with them, rather than their competitors.</p>
<p>They want people to find their web site.</p>
<p>They want people to do this so they can convert these people to buyers, of their goods, their services, or their ideas. If a site were only to rank, on keyword terms no-one searched for, or that weren&#8217;t directly applicable to the objectives of the business, then the SEO work is largely useless.</p>
<p>So SEO isn&#8217;t solely about rankings.</p>
<p>The rankings must translate to something tangible. In most cases, this means gaining qualified visitor traffic.</p>
<blockquote><p>A low bounce Rate</p></blockquote>
<p>To get this traffic, a site must do more than rank, a site must appeal to visitors. To appeal to visitors, the SEO must first understand them.</p>
<p>Once the SEO provider understands what is available to the visitor and what the aim is of the Employer of the SEO provider, relevant traffic can be driven to he relevant sections of a site.</p>
<p>If for instance we are providing SEO for a company that sells Crockery there&#8217;s no point providing quality seo for plates and the visitor arriving at the home page and then having to find that information within the site. We want to send the visitor straight to the most relevant part of the site relating to Plates.</p>
<p>Please share your thoughts and ask some questions in the comments as I&#8217;m looking to keep this post updated and added to.</p>
]]></content:encoded>
			<wfw:commentRss>http://peterbending.com/seo/seo-start-here/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>iOS 4.1 and 4.2</title>
		<link>http://peterbending.com/web-development/ios-4-1-and-4-2/</link>
		<comments>http://peterbending.com/web-development/ios-4-1-and-4-2/#comments</comments>
		<pubDate>Fri, 22 Oct 2010 13:21:10 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[web development]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[ipod]]></category>

		<guid isPermaLink="false">http://peterbending.com/?p=95</guid>
		<description><![CDATA[iOS 4.1 is available for download from apple so get]]></description>
			<content:encoded><![CDATA[<p>iOS 4.1 is available for download from apple so get your iPhones, iPods, and iPads updated.</p>
<p>iOS 4.2 is available as of November 2010 I&#8217;ll be writing about that soon also.</p>
<p>As well as the usual bug fixes iOS 4.1 also has some brand new features!</p>
<h2>A new Camera App</h2>
<h2>A new button that turns on HDR mode.</h2>
<blockquote><p>Take great photos that capture a wider range of light intensity using  the new high dynamic range (HDR) setting on iPhone 4, which  automatically combines multiple exposures into a single HDR image.</p></blockquote>
<h2>The restriction on uploading High Def video directly from the iPhone has been removed.</h2>
<blockquote><p>Upload HD video to YouTube and MobileMe from your iPhone 4.</p></blockquote>
<h2>The addition of game center.</h2>
<blockquote><p>iOS 4 introduces the Game Center app. An out-of-the-box social gaming network for iPhone 4 and iPod touch.<sup>1</sup> Invite friends to join. Then totally crush them. Take a look at how  your score ranks among your friends and other players of each game.  Compare game achievements with your friends. Get matched up and put  together a select group of friends to play. Or choose to automatically  go up against people you don’t know in a multiplayer game. <a href="http://www.apple.com/iphone/features/game-center.html">Read More here &gt;&gt;</a></p></blockquote>
<h2>Face Time.</h2>
<blockquote><p>FaceTime is just another way iOS 4 seamlessly integrates hardware and  software to make every iPhone feature as easy to use as it is  groundbreaking. Now when you wish your friends could be there, they  actually can be. With just a few taps, you can see your friends and  family while you talk to them — iPhone 4 to iPhone 4 or new iPod touch  over Wi-Fi.</p></blockquote>
<h3>Watch a cut down Keynote here:</h3>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/OJsnqa4yWfA?fs=1&amp;hl=en_US&amp;rel=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="385" src="http://www.youtube.com/v/OJsnqa4yWfA?fs=1&amp;hl=en_US&amp;rel=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<h3>If you have a spare two hours watch it in full:</h3>
<p><a href="http://www.apple.com/apple-events/wwdc-2010/" target="_blank">http://www.apple.com/apple-events/wwdc-2010/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://peterbending.com/web-development/ios-4-1-and-4-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>It&#8217;s here Or maybe not Html5</title>
		<link>http://peterbending.com/latest/its-here-or-maybe-not-html5/</link>
		<comments>http://peterbending.com/latest/its-here-or-maybe-not-html5/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 13:36:33 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Latest]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[html5]]></category>

		<guid isPermaLink="false">http://peterbending.com/?p=68</guid>
		<description><![CDATA[So Html5 isn&#8217;t due for release untill 2022 but sites]]></description>
			<content:encoded><![CDATA[<p>So Html5 isn&#8217;t due for release untill 2022 but sites like facebook are already using it?</p>
<p>Html5 is till being developed by the web Hypertext Application technology working group, and developemnt is still currently at &#8220;Working Draft &#8211; Last Call&#8221; the second of five total recommendation levels.</p>
<p>The basics are safari, Chrome, Firefox and no Internet Explorer (version 9) are using Html 5 on an increasing level and these technologies are being adopted by an increasing number of sites so we could argue Html 5 is here already albeit in Beta.</p>
<blockquote><p>What can I do with Html5 that I couldn&#8217;t do before with Html 4 and some plugins?</p></blockquote>
<p>Thats just it you don&#8217;t need the plugins,</p>
<blockquote><p>But if the plugins are available why not just use them?</p></blockquote>
<p>As plug ins are not set by an independent body as an industry standard they will not necessarily be available on all platforms, and in the case of Flash and Divx they can be very hardware intensive regularly causing crashes on lower spec machines.</p>
<blockquote><p>So what is available with Html5 and where can I see some examples?</p></blockquote>
<p>The biggest changes are media markup tags such as &lt;audio&gt;, &lt;video&gt;, and &lt;canvas&gt;.</p>
<p>We can see the audio tag in use here: Note you&#8217;ll want to get a html5 browser such as safari or chrome, opened to enjoy these examples.</p>
<p><a href="http://www.apple.com/html5/showcase/audio/">http://www.apple.com/html5/showcase/audio/</a></p>
<p><a href="http://www.jezra.net/projects/pageplayer">http://www.jezra.net/projects/pageplayer</a></p>
<p>The video tag has been adopted by Youtube, BBC iPlayer, and vimeo.</p>
<p><a href="http://www.apple.com/html5/showcase/video/">http://www.apple.com/html5/showcase/video/</a></p>
<p>The canvas tag is at work, with gmail, and scribd.</p>
<p>So you lke wat you hear?</p>
<p>Here&#8217;s some of the best examples on the web currently of html5.</p>
<p><a href="http://www.apple.com/html5/">http://www.apple.com/html5/</a></p>
<p><a href="http://studio.html5rocks.com/">http://studio.html5rocks.com/</a></p>
<p>This site is using it all &lt;canvas&gt;, &lt;audio&gt;, and &lt;video&gt;</p>
<p><a href="http://thewildernessdowntown.com/">http://thewildernessdowntown.com/</a></p>
<blockquote><p>I like what I see how do I learn how?</p></blockquote>
<p><a href="http://dev.w3.org/html5/spec/">http://dev.w3.org/html5/spec/</a></p>
<p><a href="http://www.html5rocks.com/">http://www.html5rocks.com/</a></p>
<h2>Here are the latest tutorials from Html 5 Rocks .com</h2>
<p><!-- RSS Replay Block: Start --><br />
<span id="RSSReplayItem11">RSS Content</span><br />
<!-- RSS Replay Block: End --></p>
]]></content:encoded>
			<wfw:commentRss>http://peterbending.com/latest/its-here-or-maybe-not-html5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Am I really doing that well? Exclude Internal Traffic</title>
		<link>http://peterbending.com/seo/exclude-internal-traffic/</link>
		<comments>http://peterbending.com/seo/exclude-internal-traffic/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 06:55:10 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[seo]]></category>
		<category><![CDATA[custom filters]]></category>
		<category><![CDATA[exclude internal traffic]]></category>
		<category><![CDATA[google analytics]]></category>

		<guid isPermaLink="false">http://peterbending.com/?p=58</guid>
		<description><![CDATA[Are you actually getting 100 hits per day already or]]></description>
			<content:encoded><![CDATA[<p>Are you actually getting 100 hits per day already or is that you reading and reviewing your own webiste?</p>
<p>Your most likely to be the most frequent visitor to your website and or people from your own intranet (that pretty much means anybody on your wifi, or Ethernet network).</p>
<p>This is especially true if you are running a blog site / cms site or an e commerce site that means you have to visit your site regularly to update the content.</p>
<p>Here is how to ad a custom filter in Google Analytics to remove the home grown traffic.</p>
<p>Start by going to Filters in your Google Analytics and click Add Filters. Up pops the normal filter form.</p>
<p>Following the example below, placing your own IP address into the field,  add it to what ever profile you want. Now all internal  traffic is gone.<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/B1Ko6zvS_CY?fs=1&amp;hl=en_US&amp;hd=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/B1Ko6zvS_CY?fs=1&amp;hl=en_US&amp;hd=1" allowscriptaccess="always" allowfullscreen="true"></embed></object><br />
If you don&#8217;t know your i.p address <a onclick="window.open('http://www.whatsmyip.org/','','width=900,height=600');return false;" href="http://www.whatsmyip.org/">click here</a>.</p>
<p>Of Course you could filter out by City, or State or even Country (if you lived in Luxembourg) However some genuine traffic will come from as close to home as next door, If you are using Mobile broadband or dial up or maybe don&#8217;t have a fixed i.p you can filter by i.p starting with and use the first two to three numbers in my example I would filter by all i.p&#8217;s starting &#8220;92&#8243;</p>
]]></content:encoded>
			<wfw:commentRss>http://peterbending.com/seo/exclude-internal-traffic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Server Technology</title>
		<link>http://peterbending.com/latest/server-technology/</link>
		<comments>http://peterbending.com/latest/server-technology/#comments</comments>
		<pubDate>Fri, 08 Oct 2010 12:23:37 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Latest]]></category>

		<guid isPermaLink="false">http://peterbending.com/?p=54</guid>
		<description><![CDATA[I&#8217;ve often found cause to complain at the slow uptake]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve often found cause to complain at the slow uptake of the latest serevr technologies when working on different projects.</p>
<p>I take it all back&#8230;</p>
<p>9 hours into re-compiling Apache and php on Mac os X server.</p>
]]></content:encoded>
			<wfw:commentRss>http://peterbending.com/latest/server-technology/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Incoming!</title>
		<link>http://peterbending.com/seo/incoming/</link>
		<comments>http://peterbending.com/seo/incoming/#comments</comments>
		<pubDate>Sun, 26 Sep 2010 04:41:01 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[seo]]></category>
		<category><![CDATA[link in]]></category>
		<category><![CDATA[pr links]]></category>

		<guid isPermaLink="false">http://peterbending.com/?p=37</guid>
		<description><![CDATA[Don&#8217;t believe a word you hear about incoming links, the]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-38" title="incoming" src="http://peterbending.com/wp-content/uploads/2010/09/incoming-150x150.jpg" alt="" width="150" height="150" /></p>
<h2>Don&#8217;t believe a word you hear about incoming links, the quality  			of the link or anything to do with link exchange because the truth  			is; it doesn&#8217;t really matter how many links you have to your site  			and what sites link to you.</h2>
<p>What does matter is the way the sites  			link to you and how often new links show up to your site.</p>
<blockquote><p>If you  			wake up tomorrow and, overnight, 1 million other sites decided to  			link to you, that would not affect your position in any way (what it  			may do is hurt your listing because it will look like spam).</p></blockquote>
<p>Here  			is how links work for you:</p>
<ol>
<li>If you are a boat builder and another boat builder  				site links to you, that will give you a boost because you are  				being linked to a site that has some relevance to yours.</li>
<li>If your site sells traditional jukeboxes and the link to  				your site is like this<span style="background-color: #00ffff;"> traditional jukeboxes</span> that will give you  				a boost because the link is a search term.</li>
<li>If you acquire new links slowly over the course of time,  				that will give you a boost because it looks like your site is  				gaining popularity.</li>
<li>If people link to internal pages of your site, as well as  				your home page, that will give you a boost because it looks like  				you have lots of pages of relevant information.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://peterbending.com/seo/incoming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fresh</title>
		<link>http://peterbending.com/seo/fresh/</link>
		<comments>http://peterbending.com/seo/fresh/#comments</comments>
		<pubDate>Mon, 20 Sep 2010 04:06:26 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://peterbending.com/?p=28</guid>
		<description><![CDATA[No I&#8217;m not talking 80&#8242;s street. You may be able]]></description>
			<content:encoded><![CDATA[<p>No I&#8217;m not talking 80&#8242;s street.</p>
<p>You may be able to get your site listed in the top ten within 30  			- 60 days, but that&#8217;s no guarantee it will stay there.</p>
<p>As per my previous example of pizzajim they were at Number one because we put them there but as the updates are few and far between (mostly new menus) the site has started to become a bit stale.</p>
<blockquote><p>If your site  			is not continually being updated with fresh content and growing,  			then the search engines will simply dump it</p></blockquote>
<p>in favor of newer  			fresher sites.  You should be adding a new page to your site every  			time the crawler visits and updating your old content as much as you  			can.  Daily is preferred, but weekly at the very least.  This will  			mean that the crawler will have fresh content to index and new links  			to explore.  Thus, it will never see your site as stale and drop it.</p>
]]></content:encoded>
			<wfw:commentRss>http://peterbending.com/seo/fresh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

