This website recently got a major rebuild; if you're missing something, let Lorna know.

    Blog


  1. ArrayAccess vs ArrayObject


    I help people qualify for Zend Certification and in the last few months I've had questions about both ArrayAccess and ArrayObject. This post is an attempt to illuminate both.

    Read more

  2. Movable Type Fonts and Ubuntu


    Since relaunching this site, with actual design rather than several shades of pink thrown together, I've become more aware of being consistent in presentation. With this in mind, I wanted add the same fonts to Ubuntu that are used here.

    Read more

  3. Conference Finance


    Planning an event of any kind? Let me share with you what I have learned so far about how the numbers for these things actually work and how to understand the "what to charge" vs "how many people" balance.

    Read more

  4. At the Helm of Joind.in


    As of a few days ago, and following Chris' post, I am now the proud owner of an open source project.

    Read more

  5. Learning About Web Services


    I'm updating my web services tutorial session at the moment for the PHPNW Tutorial Day. I switch the order of the topics around every time, in an effort to make it more digestible, and I thought I'd share.

    Read more

  6. PHP OAuth Provider: Access Tokens


    I've been working with OAuth, as a provider and consumer, and there isn't a lot of documentation around it for PHP at the moment so I thought I'd share my experience in this series of articles. This relates to the stable OAuth 1.0a spec, however OAuth2 has already started to be adopted (and differs greatly). This article uses the pecl_oauth extension and builds on Rasmus' OAuth Provider post. This entry follows on from the ones about the initial requirements, how to how to handle request tokens, and authenticating users.

    Read more

  7. New Site Theme


    If you're reading this on a feed, you might like to click in to inspect the new look which has now arrived on lornajane.net! I've moved all my existing content to wordpress, and the lovely people at magmadigital made the theme that you see here.

    Read more

  8. Drawing Flow Diagrams with GraphViz


    Recently I've been drawing a few different kinds of diagrams for a book I was writing, and been using graphviz to create them. Since I struggled a bit to get them going the way that I wanted them to, I am sharing them here (as much for my future self as anyone else visiting, but if they help you too then that's excellent).

    Read more

  9. Comment, Don't Tweet


    This blog regularly features posts which are rather niche, incomplete or in some cases simply misleading (not intentionally, I promise!). Often I post something, and then discover there was an awful lot more to know, and find that people add all kinds of constructive suggestions, resources, and other goodness in the comments.

    Read more

  10. Adding Markers to a Google Chart


    I seem to blog about graphs a lot at the moment, but that's because I am seeing a lot of them, with one thing and another. I recently added some little bubbles to the line graphs produced by Bitestats (obligatory elevator pitch: one-page, simple summary report pull from your google analytics account). I think they are kind of cute.

    Once I got going with them, they were actually pretty straightforward. You can actually add all kinds of markers to your google chart, complete with funky icons and customisable colours! The code I added to make these is simply:


    &chem=y;s=bubble_text_small;d=bb,Max:+917,FFFFFF,660066;ds=0;dp=15|y;s=bubble_text_small;d=bbtr,Min:+185,FFFFFF,660066;ds=0;dp=20

    All we have here is a simple specification of which kind of bubbles I want, the label for them and which data series (ds) and data point (dp) to attach it to. I generated the bubble tail directions sensitive to whether they were a min or max label, and which half of the graph they are in.

    Read more

  11. PHP Static Analysis Tool Usage


    Last week I tweeted a poll with the question "Which PHP static analysis tools do you regularly use?". These are the results:
    Static Analysis Tools Poll Results (phpcs 81%, phpmd 59%, phpcpd 59%, phploc 41%, phpdpd 48%)

    My interest was mostly because I'm working on a book chapter which includes some static analysis content, and there are a couple of these tools that I include …

    Read more

  12. Shortening URLs from PHP with Bit.ly


    I've been looking around for a really simple API that would be a nice place to get started using web services from PHP - and I realised that bit.ly actually fits the bill really well. They have straightforward api docs on google code, and it's also a pretty simple function!

    Here's a simple example, using PHP's curl extension, of using the bit.ly API to get a short URL, using PHP (you need an API key, but if you're a registered bit.ly user, you can log in and then find yours at http://bitly.com/a/your_api_key).

    Read more

34 of 89