<?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>Alex James Brown &#187; wordpress</title>
	<atom:link href="http://www.alexjamesbrown.com/tags/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alexjamesbrown.com</link>
	<description>My Words. By Me.</description>
	<lastBuildDate>Wed, 04 Jan 2012 01:02:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Getting W3 Cache Working on shared hosting</title>
		<link>http://www.alexjamesbrown.com/development/getting-w3-cache-working-on-shared-hosting/</link>
		<comments>http://www.alexjamesbrown.com/development/getting-w3-cache-working-on-shared-hosting/#comments</comments>
		<pubDate>Tue, 30 Nov 2010 13:25:34 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.alexjamesbrown.com/development/getting-w3-cache-working-on-shared-hosting/</guid>
		<description><![CDATA[I wanted to install w3 cache on shared hosting After uploading the plugin to /wp-content/plugins/ and trying to activate it, I got an error asking me to set CHMOD 777 ...]]></description>
			<content:encoded><![CDATA[<p>I wanted to install w3 cache on shared hosting</p>
<p>After uploading the plugin to /wp-content/plugins/ and trying to activate it, I got an error asking me to set CHMOD 777 on /wp-content/w3tc</p>
<p>I tried running the command given, however it didn’t work.    <br />I also tried manually creating the directory, setting 777 on it, and re-activating the plugin.     <br />This, however, didn’t work, as the plugin deleted my newly created directory when it was “activating” and threw the same error.</p>
<p>I finally resolved this particular error by ensuring the site was not running in safe mode.    <br />For this, I had to email the support guys with my particular hosting company (<a href="http://www.ehosting.com" rel="nofollow" target="_blank">ehosting.com</a>)</p>
<p>Trying to activate it again, I now got this error:</p>
<p><a href="http://www.alexjamesbrown.com/wp-content/uploads/w3CacheInstallError1.jpg" target="_blank"><img style="background-image: none; border-right-width: 0px; margin: 0px 10px 10px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="w3CacheInstallError1" border="0" alt="w3CacheInstallError1" src="http://www.alexjamesbrown.com/wp-content/uploads/w3CacheInstallError1_thumb.jpg" width="522" height="62" /></a></p>
<blockquote><p><strong>/var/www/vhosts/&lt;domain&gt;/httpdocs/wp-config.php</strong> could not be written, please edit config and add:       <br /><strong>define(&#8216;WP_CACHE&#8217;, true);</strong> before <strong>require_once(ABSPATH . &#8216;wp-settings.php&#8217;);</strong></p>
</blockquote>
<p>So, I opened up wp-config, and made the change (around line 60)</p>
<blockquote><p>define(&#8216;WP_CACHE&#8217;, true);</p>
</blockquote>
<p>Re-activated the plugin, and it worked! </p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexjamesbrown.com/development/getting-w3-cache-working-on-shared-hosting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>reCaptcha enabled on comments</title>
		<link>http://www.alexjamesbrown.com/uncategorized/recaptcha-enabled-on-comments/</link>
		<comments>http://www.alexjamesbrown.com/uncategorized/recaptcha-enabled-on-comments/#comments</comments>
		<pubDate>Thu, 27 May 2010 22:05:30 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Scams]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.alexjamesbrown.com/geek/web/blogging/recaptcha-enabled-on-comments/</guid>
		<description><![CDATA[I’ve recently noticed a lot of blog comment spam on my blog. Where&#160; some-one kisses-bum in order to “trick” me into accepting&#160; their comment. For example: Howdy there,this is Everett ...]]></description>
			<content:encoded><![CDATA[<p>I’ve recently noticed a lot of blog comment spam on my blog.</p>
<p>Where&#160; some-one kisses-bum in order to “trick” me into accepting&#160; their comment.    <br />For example:</p>
<blockquote><p>Howdy there,this is Everett Krajcer,just discovered your web-site on google and i must say this blog is great.may I share some of the Post found in this website to my local friends?i&#8217;m not sure and what you think?anyway,Many thanks!</p>
</blockquote>
<p>Complete with a nice back link to his crappy website about “low rate loans”</p>
<p>This black hat SEO tactic is become very widespread.</p>
<p>Simply <a href="http://www.google.com/search?btnG=1&amp;pws=0&amp;q=Howdy+there%2Cthis+is+Everett+Krajcer%2Cjust+discovered+your+web-site" target="_blank">google</a> a few phrases from that comment</p>
<p><a href="http://www.alexjamesbrown.com/wp-content/uploads/reCaptchaenabledoncomments_144CB/image.png" target="_blank"><img style="border-right-width: 0px; margin: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="google results for &quot;Howdy there,this is Everett Krajcer,just discovered your web-site&quot;" border="0" alt="google results for &quot;Howdy there,this is Everett Krajcer,just discovered your web-site&quot;" src="http://www.alexjamesbrown.com/wp-content/uploads/reCaptchaenabledoncomments_144CB/image_thumb.png" width="395" height="313" /></a> </p>
<p>Whilst you will not see any exact matches, they’re all along the same sort of lines, and on blogs…</p>
<p>The software posting these comments alters it very slightly for each blog posting, to fool search engines.&#160; <img style="border-bottom: 0px; border-left: 0px; margin: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" align="left" src="http://www.alexjamesbrown.com/wp-content/uploads/reCaptchaenabledoncomments_144CB/image_3.png" width="170" height="88" /> </p>
<p>To combat this, I’ve installed the reCaptcha plugin onto WordPress</p>
<p>Installation took literally two minutes, and is now up and running.&#160; </p>
<p>Apologies to any genuine comment posters, but the spam was becoming too much!</p>
<p>You can get the plugin here:</p>
<p><a href="http://wordpress.org/extend/plugins/wp-recaptcha">http://wordpress.org/extend/plugins/wp-recaptcha</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexjamesbrown.com/uncategorized/recaptcha-enabled-on-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a new post in WordPress using the JoeBlogs library</title>
		<link>http://www.alexjamesbrown.com/development/creating-a-new-post-in-wordpress-using-the-joeblogs-library/</link>
		<comments>http://www.alexjamesbrown.com/development/creating-a-new-post-in-wordpress-using-the-joeblogs-library/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 20:33:08 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[JoeBlogs]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.alexjamesbrown.com/development/creating-a-new-post-in-wordpress-using-the-joeblogs-library/</guid>
		<description><![CDATA[A few people have recently been asking how the NewPost method works within JoeBlogs First, you need to create an instance of Post. Then, set the following properties: dateCreated Fairly ...]]></description>
			<content:encoded><![CDATA[<p>A few people have recently been asking how the NewPost method works within <a href="http://www.alexjamesbrown.com/projects/joe-blogs/" target="_blank">JoeBlogs</a></p>
<p>First, you need to create an instance of Post.</p>
<p>Then, set the following properties:</p>
<p><strong>dateCreated     <br /></strong>Fairly self explanatory, but you should set this to today&#8217;s date (or whatever date you wish the post to be set as published)</p>
<p><strong>title     <br /></strong>The title of the post</p>
<p><strong>description     <br /></strong>The body of the post.    <br />This can of course contain HTML</p>
<p><strong>categories     <br /></strong>This is a string array of categories to associate with the post</p>
<p><strong>mt_keywords     <br /></strong>Another string array, representing the tags for the post</p>
<p>Then, using your presumably already instantiated Wrapper class, you can call the NewPost method, which takes the above Post object as a parameter, and a <em>boolean – </em>indicating if the post is to be set as published. Note – if this is set to false, the post is set in draft mode.</p>
<p>Here’s some sample code:</p>
<pre class="brush: csharp; auto-links: true; collapse: false; first-line: 1; gutter: true; html-script: false; light: false; ruler: false; smart-tabs: true; tab-size: 4; toolbar: true;">//create a new post
var post = new Post();

//since this is a struct, we can't have a constructor that does this!
post.dateCreated=DateTime.Now;
post.title=&quot;This is a title&quot;;
post.description=&quot;this is the body of the post. it &lt;strong&gt;could&lt;/strong&gt; be html.&quot;;

//create the post!
wp.NewPost(post,true);</pre>
<p>Hope this helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexjamesbrown.com/development/creating-a-new-post-in-wordpress-using-the-joeblogs-library/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Specify XML-RPC Endpoints at Run Time With CookComputing XMLRPC.net</title>
		<link>http://www.alexjamesbrown.com/uncategorized/specify-xml-rpc-endpoints-at-run-time/</link>
		<comments>http://www.alexjamesbrown.com/uncategorized/specify-xml-rpc-endpoints-at-run-time/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 14:39:26 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[c#]]></category>
		<category><![CDATA[JoeBlogs]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[xml rpc]]></category>

		<guid isPermaLink="false">http://www.alexjamesbrown.com/?p=265</guid>
		<description><![CDATA[A common question when using Cook Computing XML RPC.net to talk to blogs etc… is how to specify a blog / endpoint at runtime? Most of the examples seem to ...]]></description>
			<content:encoded><![CDATA[<p>A common question when using <a href="http://www.xml-rpc.net/" target="_blank">Cook Computing XML RPC.net</a> to talk to blogs etc… is how to specify a blog / endpoint at runtime? Most of the examples seem to specify the details in an attribute… not much use if you’re trying to <a href="http://www.alexjamesbrown.com/geek/c-wordpress-wrapper/" target="_blank">develop a wrapper</a>.</p>
<p>To enable me to create <a href="http://joeblogs.codeplex.com/" target="_blank">JoeBlogs</a>, I made use of the IXmlRpcProxy Proxy classes…</p>
<p>I created my interface, implementing IXmlRpcProxy:</p>
<p>We define the method as an XML RPC method using XmlRpcMethod.<br />
The name of the method is also specified.<br />
In this case, we are using getPost from the <a href="http://www.xmlrpc.com/metaWeblogApi" target="_blank">metaWeblog XML RPC API</a> – WordPress supports this, as well as the <a href="http://www.blogger.com/developers/api/">Blogger API</a> and the <a href="http://www.sixapart.com/developers/xmlrpc/movable_type_api/">Movable Type API</a>.<br />
They also have their own (which is an extension to the Moveable Type API) &#8211; <a title="http://codex.wordpress.org/XML-RPC_wp" href="http://codex.wordpress.org/XML-RPC_wp"></p>
<p>http://codex.wordpress.org/XML-RPC_wp</a></p>
<p>Anyway…..</p>
<p>As per the metaWeblog.getPost specification, we need to pass in the postid, username, and password. So we create our interface as follows:</p>
<pre class="brush: csharp; auto-links: true; collapse: false; first-line: 1; gutter: true; html-script: false; light: false; ruler: false; smart-tabs: true; tab-size: 4; toolbar: true;">	public interface IMyProxy: IXmlRpcProxy
	{
		[XmlRpcMethod("metaWeblog.getPost")]
		Post GetPost(string postid, string username, string password);
  	}</pre>
<p>As we can see, this returns a “Post”</p>
<p>This is a struct, that basically defines the structure of the response.</p>
<pre class="brush: csharp; auto-links: true; collapse: false; first-line: 1; gutter: true; html-script: false; light: false; ruler: false; smart-tabs: true; tab-size: 4; toolbar: true;">	[XmlRpcMissingMapping(MappingAction.Ignore)]
	public struct Post
	{
		public DateTime dateCreated;
		public string description;
		public string title;
		public string postid;
		public string[] categories;

		public override string ToString()
		{
			return this.description;
		}
	}</pre>
<p>To use this,  you need to create an instance of the proxy object.</p>
<p>XML RPC.net provides a method called XmlRpcProxyGen to do this for us.</p>
<p>We then set the Url, which is declared as part of IXmlRpcProxy (remember IMyProxy implemented this interface…)</p>
<p>Since our proxy declared the method GetPost, we can now use this, pass in the required post id, username and password.</p>
<pre class="brush: csharp; auto-links: true; collapse: false; first-line: 1; gutter: true; html-script: false; light: false; ruler: false; smart-tabs: true; tab-size: 4; toolbar: true;">    public void myTest()
    {
      string postId = "1234";
      string username = "myUsername";
      string password = "password";

      var proxy = (IMyProxy)XmlRpcProxyGen.Create(typeof(IMyProxy));
      proxy.Url = "www.alexjamesbrown.com";

      var post = proxy.GetPost(postId, username, password);
    }</pre>
<p>And there we have it.</p>
<p>Of course this is a very bare bones example.</p>
<p><a href="http://joeblogs.codeplex.com/" target="_blank">JoeBlogs</a> contains much more separation of these concerns.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexjamesbrown.com/uncategorized/specify-xml-rpc-endpoints-at-run-time/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>C# WordPress Wrapper</title>
		<link>http://www.alexjamesbrown.com/uncategorized/c-wordpress-wrapper/</link>
		<comments>http://www.alexjamesbrown.com/uncategorized/c-wordpress-wrapper/#comments</comments>
		<pubDate>Thu, 21 May 2009 23:14:53 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[JoeBlogs]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[xml rpc]]></category>

		<guid isPermaLink="false">http://www.alexjamesbrown.com/geek/c-wordpress-wrapper/</guid>
		<description><![CDATA[Ok, I’ve barely finished this as a stable release, but I thought I’d post this up any way…. A little open source project I’m working on – Joe Blogs. In ...]]></description>
			<content:encoded><![CDATA[<p>Ok, I’ve barely finished this as a stable release, but I thought I’d post this up any way….</p>
<p>A little open source project I’m working on – <a href="http://joeblogs.codeplex.com/" target="_blank">Joe Blogs</a>.</p>
<p>In a nutshell, it allows easy communication to your WordPress (or other blog) via an xml-rpc interface.</p>
<p>Big thanks to the work by Charles Cook at <a title="http://www.xml-rpc.net/" href="http://www.xml-rpc.net/">http://www.xml-rpc.net/</a></p>
<p><a href="http://joeblogs.codeplex.com/" target="_blank">Joe Blogs</a> is currently hosted on CodePlex &#8211; <a title="http://joeblogs.codeplex.com/" href="http://joeblogs.codeplex.com/">http://joeblogs.codeplex.com/</a></p>
<p>I’ll be posting more info, tutorials, documentation etc… in the coming days and weeks.</p>
<p><strong>Update</strong></p>
<p>See here for usage instructions:<br />
<a href="http://www.alexjamesbrown.com/geek/using-joeblogs/" target="_blank">http://www.alexjamesbrown.com/geek/using-joeblogs/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexjamesbrown.com/uncategorized/c-wordpress-wrapper/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

