Blog. October 2009

  • Martian landscape photography

    Here’s an interesting mixture of science and photography: high-resolution photos of various Martian landscapes. I was quite surprised at how varied the environment is (though it should be noted that the images have been pseudo-coloured). Maybe I shouldn’t have been so surprised; earth’s landscapes would still be very varied without life. It just goes to show that beauty and complex patterns are not exclusive to life.

  • Evolving ant behaviour

    Example of simple ant behaviour - spiralling

    I've been thinking for a while about how to program ant behaviour in my simulation. The difficulty is that even relatively simple behaviours (such as following a pheromone trail) are difficult to code as a behaviour at the agent (or ant) level. While I probably could come with a reasonable behaviour if I thought about it and tested various parameters, it seems a lot simpler to evolve a suitable behaviour. After all, that’s what ants did.

  • Simulating tribal island economies

    I’ve just started reading Gun, Germs and Steel by Jared Diamond, and was particularly interested by the description of how various Polynesian islands developed. As with pretty much everything these days, I wondered how I could simulate such a situation, perhaps making a game out of it (there must be a computer game that is based on this time and place – something like The Settlers).

  • Molecular dynamics simulation

    I wanted to write about a Java molecular simulation that I made a while ago, before I became entranced by Python. The program is a simple 2D physics simulation, with circles representing billiard ball-style atoms. The idea before the simulation was initially an attempt to create a virtual lava lamp. In its first incarnation, there were two types of atom. Each atom was attracted to nearby atoms of the same type (with a force proportional one over distance squared). If the distance between any two atoms was below a threshold then the two atoms repel each other.

  • 收 vs 受

    One of the reason for setting up this blog was to write about Chinese, particularly characters that were causing me confusion. (I also meant to write about photography, which I have not done so so far). I was spurred to write this post after two characters, 收 and 受 came up in the iKnow app at smart.fm (Chinese Characters: Level 2).

    Topics:

  • Interesting uses of photos on Flickr

    I've recently come across a couple of clever uses of photographs from Flickr, which makes me want to learn how to use the Flickr API, which I hear is quite straight-forward.

    The first example uses ‘Flickr as a paintbrush‘, which means colouring a map of an area using the average colour (actually, the average hue), of photos taken at different points on that map (which requires photos to be geotagged).