grahambinns.com

| Lancaster-based photographer, writer and developer
  • Home
  • Flickr
  • Tumblr

Posts in "code"

Cool things I did today

Posted at 00:17:01 on Fri, July 24th 2009  |  Comment on this post
Published in code, code reviews, community, cool, launchpad, open source, planet ubuntu uk

  1. Reviewed the first community contribution to Launchpad, from the omnipresent William Grant.

And it was awesome, and it was fun. I think I'm going to like this open source malarkey.

Blog engines stuff and things

Posted at 15:21:13 on Sun, July 19th 2009  |  1 incoming links  |  1 comment
Published in code, development, django, frabjous, projects, python, things-wot-i-did

A few months back, when I was on a Launchpad Bugs sprint in Vilnius, Tom and Gavin asked me whether I'd thought about open-sourcing the engine that runs grahambinns.com. My answer then was that I'd thought about it but never done it because:

  1. It wasn't very good
  2. The code had a lot of grahambinns.com-specific code in it
  3. It wasn't very good.

It's still not very good, but I've removed all the grahambinns.com specifics and now I'm reasonably happy to announce (like the father of a slightly ill-coordinated child) Frabjous version 0.1, "Not a lot of men can carry off a decorative vegetable", is now available for download under the GPLv3 at launchpad.net.

Some questions and answers:

  • Q: Why 'Frabjous'?
    A: Because I was reading Jabberwocky at the time I was trying to think up a name.
  • Q: Should I replace my Wordpress installation with Frabjous?
    A: Emphatically no, unless you really, really want to. Frabjous is, for all that I've removed a lot of the me-specific code, pretty awkward to adminster just yet (well, I think it is). Wordpress is as good as it is because it's very mature; Frabjous isn't.
  • Q: Do you want Frabjous to be a Wordpress killer?
    A: Not really. I want it to be better than it is at the moment and I'd like people to use it, but Wordpress is a fantastic piece of software and people will doubtless find it easier to use and set up than Frabjous for quite a while.
  • Q: That being the case, why do you use Frabjous rather than Wordpress?
    A: I originally wrote what would become Frabjous because I wanted to learn Django. I also had a cordial dislike for PHP after years of working in it and wanted never to have to run it on a server of mine ever again. So far, I'm succeeding.

So, please go and try it out. You can grab the trunk from Launchpad using bzr branch lp:frabjous; please feel free to have a look at the code, hack on it and file bugs. Patches welcome, branches even better.

For the record, I have no illusions that anyone other than me will ever use this code, especially with so many other blogging and site management platforms available. However, you can always treat it as a learning exercise, and that's fine too.

If you're seeing this...

Posted at 15:19:42 on Sun, June 22nd 2008  |  Comment on this post
Published in blog, code, django, new design, news, new site, postgres, writing

... then the DNS records have propagated correctly and your RSS feed reader is now slurping from the new grahambinns.com server, which is just hunky dory as far as I'm concerned.

I've been working on this version of things for a while. Besides a re-skin - which taught me a lot about how I should be designing my templates and CSS, so it should be a bit easier next time - I've also tidied up the codebase a bit and added some new features. Most of them are under the hood, but here are some of them for those of you that care:

  • Each piece of content on the site has its own license. For example, all my photos are CC-BY-NC-SA, as is all the content here so far. But when I start adding stories here (and it will happen within the next few months, I hope) I'll be able to license them as I see fit.
  • I can now make posts using markdown syntax. This might not seem like a big deal but over the years I've come to loathe sites that simply turn linebreaks into <br />s (yes, Wordpress, I'm looking at you. You still do it, even with valid HTML posts). On this site I used to use TinyMCE as a WYSWIG HTML editor, which worked fine but was pretty horrendous to load on a slow connection. Now I just use markdown and let Django's markup app do all the work. Fantastic.
  • You can now post comments using markdown syntax. No more trying to post a link and having Django eat it!
  • I can now post to the blog by email. I thought about using gpg signatures to validate my emails but realised that it was too complicated (we do it in the Launchpad email interface and one look at that code a while back persuaded me to not do it unless I had to). Instead I've gone for generating single-use authentication tokens, which suits me fine and should hopefully - along with an obscure incoming address - stop spammers from doing nasty things.
  • The site now supports pingbacks, though at the moment it can only receive them until I iron out some issues with the pingback sending code.

There are a lot more things that I've fixed, added, tweaked and polished, but none that are particularly interesting.

So here, finally, are the vital statistics of the new site:

  • Server: Bytemark virtual server running Ubuntu 8.04.
  • Django 0.97-pre (to be upgraded to 1.0 stable when it comes out in September).
  • PostgreSQL 8.3 (the migration to which fixed so many problems it's unreal).
  • Apache with mod_python for serving the Django stuff.
  • Lighttpd for serving the static files.
About

Graham Binns is a photographer, writer, musician and software developer from Lancaster, England, with a bizarre imagingation, a penchant for odd t-shirts and a magnificent hat.

Latest tweet

(Big props to my Awesome Wife for kicking my arse into gear on the email front)

2010-03-14 22:02:26
Latest flickr uploads
Texture Out of frustration, a self-portrait More Katie Green
More Katie Green More Katie Green More Katie Green
More Katie Green More Katie Green More Katie Green

Categories

  • Photography
  • Writing
  • Ubuntu

Blogroll

  • Joe McNally
  • Bert Stephani
  • Chase Jarvis
  • Alan Pope
  • Launchpad blog
  • Tony Whitmore
  • Pieter Van Impe

Recent posts

  • One of life's little disappointments
  • In which I turn 29
  • Wailly wailly
  • Migrating to Wordpress
  • Brain porridge
  • fnarg
  • Brief request
  • The oncoming arbitrarily-measured period of time
  • That there decade thing
  • Why I Hate Freedom

Recent comments

  • Graham Binns on Response from Ben Wallace
  • Simon Regan on Response from Ben Wallace
  • Graham Binns on One of life's little disappointments
  • Tony Whitmore on One of life's little disappointments
  • 96th on In which I turn 29
  • K. Aning on In which I turn 29
  • Graham Binns on In which I turn 29
  • K. Aning on In which I turn 29
  • Graham Binns on In which I turn 29
  • K. Aning on In which I turn 29

Popular tags

blackandwhite blogs buildings computing d300 d40x flickr general home humour in the news lancashire lancaster landscape links linux monochrome morecambebay nanowrimo news observations people photography planet ubuntu uk religion sigma1020mm stupidity thoughts three hundred and sixty-odd days of 2008 twitter ubuntu water work writing writing ideas


©2005-2010 Graham Binns
Powered by Frabjous using the Gridline Lite theme by Graph Paper Press.