$4 Lucky Boom Boom Pizza

If you’ve ever been to Lucky Coq on Chapel St you’ll know they do a $4 pizza special which is mostly a few sparsely placed toppings on a pita bread base. I thought I’d have a go at making a pizza with a fresh tomato sauce and a decent serve of toppings.

The great thing about using pita bread is it’s lighter and slightly healthier than supermarket pizza bases which means you can load up on more toppings.

Continue reading

Why View to a Kill is the best James Bond film

Over the weekend I watched Roger Moore’s last outing as James Bond in the 1985 film, From a View to a Kill. I decided to compile a list of reasons why it’s the best of the James Bond franchise:

  • Disclaimer at the start,
  • Made in 1985,
  • Henchman’s mode of transport (blimps),
  • Christopher Walken,
  • Golden Gate Bridge,
  • Theme song by Duran Duran *,
  • Plot involving blowing up Silicon Valley,
  • Tanya Roberts’ acting,
  • Clouseau stereotype French inspector,
  • Obvious continuity errors and jump cuts,
  • Rock shaped submarine,
  • Henchwoman becomes good… gets killed,
  • KGB Agents,
  • Parachutist jumping of the Eiffel Tower,
  • Apple computer product placement,
  • Lots of Cameo appearances.

* Could be taken as a negative.

Fixing “Setting locale failed” error in Ubuntu Server

When I was redeploying my IntoVPS Server and upgrading to the newest version of Ubuntu Server, I came across a number of issues with locales not being configured correctly. The error usually looks something like this:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

You’re getting this error because no locales have been configured. To fix it, firstly ensure that you have the locales package installed:

$ apt-get install locales

If locales is not installed, you will get a screen which will ask you which locales you wish to enable. If locales is already installed, then type the following to commands to regenerate locales.

$ locale-gen en_US en_US.UTF-8 en_AU en_AU.UTF-8
$ dpkg-reconfigure locales

If you want to use other locales, you can re-run the locale-gen and dpkg-reconfigure locales commands.

Autoloading 101

For some who are new to PHP 5 you may have heard about a PHP feature called SPL Autoload or Autoloading classes.

Ordinarily, when you write a class your code may look something like this:

<?php

require_once('../code/foo.php');
require_once('../code/baz.php');

class widget extends foo
{
    public function event()
    {
        $baz = new baz();
    }
}

Autoloading does away with the need to put require / include once to include class file by enabling you to attach a function that performs an action before a class is instantiated. SPL autoload works when you try to instantiate a class or use reflection on a class and only works when the class hasn’t already been loaded.

Continue reading

On Resolutions

I’ve always been of the opinion that people put too much stock into New Year resolutions – simply because they eventually fall by the wayside. My only resolution has always been that the new year be better than the one just gone.

When I was deciding whether to restart my blog, I considered if it would be a good idea to import the 2000 or so posts I accumulated in archive form from personal sites going back to 2003. Every year up until 2007, I’d do a post about what I want to achieve in the new year but then I realised the process was pointless: being the best you can be was more important. I also decided not to import the posts simply because they’re rubbish.

This year, I thought it’d be fun to write down some resolutions and see how they pan out.

Continue reading