Software | Web | Coding

Blog

Starcross Django Gallery - A new Django gallery package

I created a gallery package for Django to host my photos, and to make a contribution towards the the great collection of django packages already available. I wanted a particular set of features, the key areas being: Simple, clean design that maximises space for image thumbnail display Justified image layout, as used by sites like …

Customising Django Simple Captcha

I used the django-simple-captcha to protect the comments form from spamming. Some time after the site went live, I noticed spam comments starting to appear.  The site does not generate much traffic, but the comment spam nonetheless became more and more prolific, with dozens of entries appearing each day. I took a look at the captcha to find out what …

Using Images in Django

Update: I have now expanded the gallery package to include many new features and released it on PyPI as django-starcross-gallery. The version on github is the full version instead of the basic one described below This is another tutorial style write-up of my exploration of django features. I build a basic gallery style app and look at …

HTML5 Canvas Fractal

I always wanted to create a fractal generator since experimenting with fractal programs on my Amiga many years ago. Fractals are fascinating, beautiful patterns generated mathematically. They have infinite complexity, and you can explore uncharted depths by zooming on different areas. In this case I'm using the Mandelbrot set, but there are many others. The <canvas> element introduced in …

HTML5 Canvas Game of Life

Conway's game of life is a model of cellular automation that produces intriguing, organic looking patterns and animation as it evolves. Like my fractal generator, I think it's another example of fascinating imagery that is produced with very simple rules. Cells are modelled on a grid, and they evolve depending on their number of neighbours. …

Building a simple django blog

I created a simple django blog to use on the Starcross website. Here's a write up about the design decisions I made an some code snippets I used. As with all my posts, I'm interested in your suggestions, comments, and any other contributions. There are lots of examples of django blogs out there, but they are simple to build so …