Skip to content


Mesrine: public enemy no. 1

Mesrine charts the rise and subsequent fall of jacques mesrine, one of France’s most notorious gangsters. I didn’t know much about jaques mesrine before the film, but found Vincent Cassel’s performance compelling and captivating. Everyhing from his physical presence to his portrayal of the egomaniacal mesrine oozes a credibility and ability to suspend disbelief sorely missing from hurt locker. The story starts with his death and works back from an audacious pair of bank robberies to kidnappings and dalliance with far leftpolitical movements of the day, but it is in his personal life that Cassel’s mesrine displays the most vulnerability. A failure as both a son and a father, mesrines romantic relationships also portray a simultaneous failure to accept the inevitable along with a need to glamourise the myth of mesrine in a highly provocative manner. The presentation is smooth and typically Gallic, with a standout unintentially funny London street scene as a street seller with a dodgy accent peddles Paris match on a random London road. Mesrine was (for me at least) the best film of the day, carried through by good directing and the best performance I’ve seen from cassel since la haine. Definitely one to watch.

  • Share/Bookmark

Posted in Arts.

Tagged with , , .


Hurt Locker

Hurt locker is the new film from Kathryn Bigelow, probably best known for Point Break. The hurt Locker tells the story of 3 bomb squad members whose lives change on the introduction of a new team leader. The film is told very much from the soldiers perspective, and shows the highs and lows of life in Iraq for the characters. Whilst the film makes some brave choices and has some literally explosive scenes the film falls short in a number of places. The new team leader, James is a seriously flawed character who takes risks and leads his colleagues into some extremely dangerous situations. His recklessness alone is surprising to say the least and should at least land him some serious disciplinary action but even after shooting one of hs own men (resulting in said man being sent home for 6 months of medical treatment) we see little more than harsh words from a fellow soldier. There’s also some good use of slow motion action bit this ends up being overused to some extent. Despite this there are some very good scenes and a solid performance from the second in command. If you’re a fan of Iraq war films you could do worse than give this a try, but don’t expect an oscar winning performance from this one.

  • Share/Bookmark

Posted in Arts.

Tagged with , , .


Live blogging a movie marathon

Today is the start of the August bank holiday weekend in the Uk. My friend Steve and I have decided we’ll have a movie marathon in London visiting some non-chain cinemas for something with a bit more character. I’ll post reviews of the films we’re seeing (hurt locker, mesrine: killer instinct and moon) and of the cinemas too, with updates and links over the weekend.

  • Share/Bookmark

Posted in Arts, Events.

Tagged with , , , .


8-bit trip, lego style

You’ll either find this ridiculously cheesy or completely awesome. I think there’s elements of both.

H/T to MakeZine blog.

  • Share/Bookmark

Posted in Arts, Gaming, Retro.

Tagged with , , .


Migrating an SQLite-based Django App to PostgreSQL

This was originally posted on my tumblelog about a month ago and is reproduced here to get the ball rolling.

This is mainly for my notes, so I’ll apologise now if this doesn’t work for you.

Getting Started
The first thing to do is back up our data into an easy to use (mostly) database agnostic (mostly) format. Django provides the dumpdata and loaddata commands to do this. To dump data for the analyse application to a file called dumpdata-desktop.json you do the following (from your project directory):

python manage.py dumpdata analyse > dumpddata-desktop.json

To dump everything just use dumpdata with no arguments and redirect the output to a file. Make sure you have enough memory to do this as earlier versions of Django don’t stream dumpdata output. I keep a copy of htop running whilst I’m doing this. If it seems really inefficient that’s because it is. The analyse app I’m dumping uses a 45mb sqlite3 database, but dies on anything less than a few gig of memory for dumping. If you’re on a resource constrained system, you can always move the sqlite database over to a django installation with more memory. Another option is to use a large swapfile/partition, but that’s going to slow things down substantially. If you’re really stuck, you can dumpdata individual applications and models. Once that’s done, you should have a serialized file containing all your django goodness ready for import into postgresql, mysql or anything else django can work with.

Configuring PostgreSQL
Now we need to set up postgreSQL. The first thing to do is to create a django user. The easiest way of doing this is to sudo -H -s to root and issue the following:

sudo -u postgres createuser -P analys

Replace analys with the username you want to use. Note that I’m using analys, not analyse as this is a reserved keyword for postgreSQL. Now we need to create a database for the user to use. In my case I need two databases (one for two similar but slightly different applications) that will use the same user. It may be better to use separate users for separate databases if some segregation of data is required, but I don’t need it for my two apps.

sudo -u postgres psql template1
CREATE DATABASE analys_desktop OWNER analys ENCODING ‘UTF8′;
CREATE DATABASE analys_server OWNER analys ENCODING ‘UTF8′;

Once the users and databases are created it’s time to give django access. To do this we’ll need to change the pg_hba.conf file, normally contained within something like /etc/postgresql/8.3/main/pg_hba.conf on Debian-based systems.

Go down to the section that specifies the users and how they connect and add the following:

local   analys_desktop    analys                      md5
local   analys_server    analys                      md5

Make sure you replace the database and user settings with your own. Restart postgresql. Assuming all goes well, we’re ready to set up Django.

Putting it all together
Now all we need to do is configure Django to use the new database and load the database back in. Go into settings.py and change the following settings:

DATABASE_ENGINE = ‘postgresql_psycopg2′           # ‘postgresql_psycopg2′, ‘postgresql’, ‘mysql’, ’sqlite3′ or ‘ado_mssql’.
DATABASE_NAME = ‘analys_desktop’             # Or path to database file if using sqlite3.
DATABASE_USER = ‘analys’             # Not used with sqlite3.
DATABASE_PASSWORD = ‘password’         # Not used with sqlite3.
DATABASE_HOST = ”             # Set to empty string for localhost. Not used with sqlite3.
DATABASE_PORT = ”             # Set to empty string for default. Not used with sqlite3.

Changet the DATABASE_PASSWORD value to the actual database password. Next we need to run python manage.py syncdb. Don’t create a superuser if you did a full dump. Finally we use the loaddata command to restore our data.

python manage.py loaddata dumpdata-desktop.json

There, all done!

  • Share/Bookmark

Posted in Django, Guides.

Tagged with , .