• Serving alpha channel images via nginx

    by Mark Somerville
    Mark Somerville

    We wanted to serve images with an alpha channel, using the most efficient format that each browser can handle. Here's one pretty clean way that avoids use of the `if` directive in nginx.

  • Real Loop Running Times

    by Paul Hornsey
    Paul Hornsey

    We all see CPU clock speeds advertised such as 3.4GHz and get amazed at how much a processor can do each second.  It's only when trying to solve problems with values such as 1014 that you realise that looping that many times is not going to finish while you have a cup of tea.  This blog puts some real run times to a simple loop.

  • Incepting Inception

    by Colin Gemmell
    Colin Gemmell

    At 1partCarbon all our projects start with an inception, sitting down with the client to find out what they need. Continual improvement is very important to us, and when starting a new internal project (more on that soon) it seemed like the perfect opportunity to look at how we could better our inception process.

  • Shortcut Shortcuts

    by Dave Kennedy
    Dave Kennedy

    Matz recently tweeted a cartoon “Java vs Ruby vs PHP” and stated that he preferred the PHP way. I smirked and agreed, was about to move on with my life but paused as memories of when I began writing Ruby code came flooding back. I wrote a lot of PHP at that time and had exactly that attitude.

  • Two's Complement Signed Integers

    by Paul Hornsey
    Paul Hornsey

    Have you ever wondered why integer ranges have a larger negative than positive range? Why the extra one on the negative range and not the positive? The answer is that most modern processors like integers to be in a format known as 2’s Complement Signed Integers. So what is this and why are they used?