<feed xmlns="http://www.w3.org/2005/Atom">
  <div xmlns="http://www.w3.org/1999/xhtml" class="info">
         This is an Atom formatted XML site feed.
         It is intended to be viewed in a Newsreader or syndicated to another site.
         Please visit <a href="http://www.atomenabled.org/">atomenabled.org</a> for more info.
  </div>
  <title>Blogging Pubbitch</title>
  <link href="http://www.pubbitch.org/blog/index.atom" rel="self"/>
  <link href="http://www.pubbitch.org/blog/index.html" rel="alternate" type="text/html"/>
  <id>http://www.pubbitch.org/blog/tech/php/blog4php.atom</id>
  <updated>2010-09-09T01:24:36+00:00</updated>
  <author>
    <name>Simon Stewart</name>
  </author>
  <entry>
    <id>tag:pubbitch.org,entry,2003:152</id>
    <title>XML-RPC Support</title>
    <link href="http://www.pubbitch.org/blog/2003/05/27/xmlrpc_support" rel="alternate"/>
    <updated>2005-12-14T13:15:21Z</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
<p>Took the time out to add basic support for the Metaweblog API to Blog4php. It's now possible to post an entry to it from <a href="http://www.wbloggar.com/">w.bloggar</a>, though not from <a href="http://mozblog.mozdev.org/">mozblog</a> or <a href="http://www.clevercactus.com">Clever Catus</a> (though the latter might be because it seems to have a bit of an idiosyncratic metaweblog api implementation)
</p><p>
If you want it, go grab it from <a href="http://www.pubbitch.org/~sms/blog4php/upload/source/blog4php-2003-05-27.zip">here</a>. Share and enjoy!</p>      </div>
    </content>
  </entry>
  <entry>
    <id>tag:pubbitch.org,entry,2003:149</id>
    <title>Support for Abiword</title>
    <link href="http://www.pubbitch.org/blog/2003/05/24/support_for_abiword" rel="alternate"/>
    <updated>2005-12-14T13:15:21Z</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
<p>Wow! That didn't hurt at all :) In the latest <a href="http://www.pubbitch.org/~sms/blog4php/upload/source/blog4php-2003-05-24.zip">source drop</a> there's now basic support for Abiword files. It's not terribly advanced, because all I did was save a couple of files to disk (there included in the unit tests) and have a look at the source, but it should be enough to post simple entries up to the blog.
</p><p>
What does it do? It handles entry titles, paragraphs, bold and italic. I don't think that abiword does any special formatting of URLs, so there's nothing done with them. Why do this? To show that blog4php can cope with a variety of input sources, and to get to grips with XML parsing in PHP. It's not so bad: just SAX-based, so no biggie to wrap your head around. There's also the bonus that I can now spell check entries ;)
</p><p>
I'm now going to do the same for Open Office. Wish me luck!</p>      </div>
    </content>
  </entry>
  <entry>
    <id>tag:pubbitch.org,entry,2003:147</id>
    <title>Input Formats</title>
    <link href="http://www.pubbitch.org/blog/2003/05/23/input_formats" rel="alternate"/>
    <updated>2005-12-14T13:15:21Z</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
<p>How cool is that? I just had a look at the file formats used by <a href="http://www.abisource.com">abiword</a> and by <a href="http://www.openoffice.org">Open Office Writer</a> and they're both based on XML. Fantastic! That means that it should be possible to write a basic input handler for them for blog4php.
</p><p>
Hmmm... the templating language can be used as a simple XML parser, and though I might have some trouble with namespaces, it shouldn't be too bad (hah! Famous last words) I also note that PHP comes with ZIP functions, allowing me to make use of zip archives, which is handy cos OO documents are automatically saved in a compressed form....</p>      </div>
    </content>
  </entry>
  <entry>
    <id>tag:pubbitch.org,entry,2003:145</id>
    <title>Bug Fixed Release</title>
    <link href="http://www.pubbitch.org/blog/2003/05/22/bug_fixed_release" rel="alternate"/>
    <updated>2005-12-14T13:15:21Z</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
<p>Now with new and improved retro-fitted unit tests, new <a href="http://www.pubbitch.org/blog4php/upload/source/blog4php.zip">blog4php.zip</a> for all you blogging needs.
</p><p>
The small print: there aren't that many unit tests, just the ones that I used when testing to see if the bugs that I knew about had been quashed (and they appear to have been :)
</p><p>
Even smaller print: access to this server appears to be "slightly ropey", and consequently, the new version isn't running here. Yet. How irksome.
</p><p>
Really tiny print: although the code is far from perfect, please feel free to download it and point out things that should have been done completely differently. I'm not a proud man, you can tell me the truth. :) How? By emailing me at <a href="mailto:blog@pubbitch.org">blog@pubbitch.org</a> I really should get comments working here, shouldn't I?
</p><p>
<strong>Update:</strong> It'sworking now. The installation was a little odd on this machine, cos it's using a ye olde worlde version of PHP, so things looked particularly mean for a while, but everything appears to be working as it should. Yay!</p>      </div>
    </content>
  </entry>
  <entry>
    <id>tag:pubbitch.org,entry,2003:150</id>
    <title>Unit Testing Blog4PHP</title>
    <link href="http://www.pubbitch.org/blog/2003/05/21/unit_testing_blog4php" rel="alternate"/>
    <updated>2005-12-14T13:15:21Z</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
<p>I've settled on using <a href="http://www.lastcraft.com/simple_test.php">Simple Test</a> by <strong>Last Craft</strong> to use when unit testing blog4php and right now it's a painful process, not because of anything to do with Simple Test but just because I'm retro-fitting tests on to the software, and my code just isn't set up for this sort of thing. Doh!
</p><p>
On the plus side, Simple Test looks excellent so far. It's even got <a href="http://www.mockobjects.com/wiki/">mocks</a> in, though I've not had a chance to try them out yet. Will keep you posted. Happy, but extremely nervous about the amount of work that needs doing.</p>      </div>
    </content>
  </entry>
  <entry>
    <id>tag:pubbitch.org,entry,2003:146</id>
    <title>Bugs</title>
    <link href="http://www.pubbitch.org/blog/2003/05/16/bugs" rel="alternate"/>
    <updated>2005-12-14T13:15:21Z</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
<p>Despite all my previous knowledge and experience, I've still been developing blog4php without unit testing. A poor excuses would include "but you can't unit test PHP", which is rubbish, as <a href="http://phpunit.sourceforge.net/">this</a>, <a href="http://pear.php.net/package-info.php?pacid=38">this</a>, <a href="http://gpfr.sourceforge.net/">this</a>, and <a href="http://www.lastcraft.com/simple_test.php">this</a> all show. 
</p><p>
This is all a long way of saying that the previous release of blog4php was a little buggy. The ones that I've spotted are:
</p><p>
<ul>
<li>Re-editing an item will cause "p" tags to be scattered through it (<strong>Fixed</strong> in my CVS version. The shame of this being there!)</li>
<li>Head sections of HTML documents get included</li>
<li>Permalinks don't link</li>
<li>Date based searches fail.</li>
</ul>
</p><p>
I suspect that the last two are to do with some minor editing in the Blog.inc file ("createFilter", to be exact) and I've got to work on the regex that removes the contents of the "head" tag from raw html. Time to start writing unit tests.
</p><p>
This is going to take a while, because I'm off to Finland tomorrow until Tuesday. If you want to download the latest source and debug for me, that's great! :) FWIW, I'm thinking of moving to the GPL for this project, so be aware that that's the license I'll be working with.</p>      </div>
    </content>
  </entry>
  <entry>
    <id>tag:pubbitch.org,entry,2003:148</id>
    <title>New Source Drop</title>
    <link href="http://www.pubbitch.org/blog/2003/05/15/new_source_drop" rel="alternate"/>
    <updated>2005-12-14T13:15:21Z</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
<p>I've just upgraded this blog to the latest version from my CVS installation, and uploaded the code for you all to pick over <a href="http://www.pubbitch.org/blog4php/upload/source/blog4php.zip">here</a>. 
</p><p>
So, what's new with this release? The last one was a while ago, so this has a nice and handy file manager, which allows me to upload entries and files (such as the source) without needing an SSH connection. Yay! In addition, blog4php can now cope with entries not only in plain text, but also in HTML. It would be nice to include support for a wiki language at some point, but since I'm still dithering about the license to use for this toy I'm loathe to drag in anyone else's work.
</p><p>
Oh, and the RSS feed validates again.
</p><p>
Come and <a href="http://www.pubbitch.org/blog4php/upload/source/blog4php.zip">download it</a> if you think you're hard enough. Bug reports, comments and general slander should be directed towards <a href="mailto:blog@pubbitch.org">blog@pubbitch.org</a>
</p><p>
:)</p>      </div>
    </content>
  </entry>
  <entry>
    <id>tag:pubbitch.org,entry,2003:151</id>
    <title>Why I Don't Like Windows Right Now</title>
    <link href="http://www.pubbitch.org/blog/2003/05/13/why_i_dont_like_windows_right_now" rel="alternate"/>
    <updated>2005-12-14T13:15:21Z</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
<p>As all good developers should. I'm testing my code on both UNIX and Windows. Normally this is simply tedious and annoying, but this time I'm more than a little bit stressed by it. Why? Because I'm working with a lot of file-based operations, and Windows doesn't use the same path seperator as UNIX.
</p><p>
If it weren't for the fact that I'm expecting people to try all this on Win32, I'd dump it as a supported platform.</p>      </div>
    </content>
  </entry>
  <entry>
    <id>tag:pubbitch.org,entry,2003:144</id>
    <title>Archives</title>
    <link href="http://www.pubbitch.org/blog/2003/05/08/archives" rel="alternate"/>
    <updated>2005-12-14T13:15:21Z</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
<p>I've taken the chance today to implement archiving in blog4php, and currently it's looking pretty neat. You can access entries by:
</p><p>
<ul>
<li>Date</li>
<li>Category</li>
<li>Category and date</li>
<li>Permalink</li>
</ul>
</p><p>
Of those, being able to search by category and date is a particularly nice feature, and one that I've not really seen elsewhere. Currently chasing down a couple of bugs before adding in some much needed support for uploading files. Then it'll be time to implement caching and metadata and to find some way of handling rendering pages differently depending on how they're viewed (you know, the page layout for a single entry could be different than the page layout when looking at a monthly overview, and so on)
</p><p>
Hopefully have something up late tonight or sometime tomorrow. Famous last words.</p>      </div>
    </content>
  </entry>
  <entry>
    <id>tag:pubbitch.org,entry,2003:143</id>
    <title>Backup Format</title>
    <link href="http://www.pubbitch.org/blog/2003/05/07/backup_format" rel="alternate"/>
    <updated>2005-12-14T13:15:21Z</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
<p>Blog4PHP will at some point need a backup format. After a bit of thought, it would appear the RSS 1.0 or 2.0 with an extra "blog4php" namespace would be perfect for this. In a way, it's a shame that someone else has already been thinking the same thoughts: Dave Winer's <a href="http://backend.userland.com/formatsForBlogBrowsers">Formats For Blog Browsers</a>
</p><p>
Doh!</p>      </div>
    </content>
  </entry>
</feed>
 
