Django Photologue – Saving with high quality JPEGS using PIL

I had some problems on some of my Django sites where images did not save correctly when resizing with a high setting for the quality of the thumbnails. The error I got was this

Caught IOError while rendering: encoder error -2 when writing image file

After googling for a while I fixed it as described on the django-photologue issue here. I found the solution here. I first thought it was a problem with the WSGI settings for Django and running out of memory on the VPS, but this was not the case. Its a Python PIL issue, as seen in the solution link above.

Migrating eprints to a new server

We are using eprints for an internal system to store all our papers that we are reading. Its useful because you dont lose them, they are all in one place and you can organise it nicely and you dont have to pay for it. Of course Mendeley is also useful, l but I fear going over the 500MB limit. Eprints is compatible with most University publication websites and its easy to use Bibtex, Endnote and OAI references to import and export information from Eprints.

Continue reading

Eclipse – The inevitable has happened I moved from Netbeans to Eclipse.

So I have decided to finally move to Eclipse (I work on Ubuntu for those who want to use this howto). There are two main reasons, we might be using some Spring in our Bicycle project at some time during the future. Will most likely use Android, which has a nice eclipse plugin and Netbeans 7.0 has been giving so many headaches at the moment. So here I will just write a quick installation guide, mostly for myself, so that I remember how to install. I am going to stay with Eclipse Galileo because thats what Android supports at the moment. So here are the brief steps:

Continue reading

Bicycle Stability

So, as you may have noticed I have been rather quiet on the Internet the last little while. Well there have been a number of reasons for that…

I have made a big change in my career. I have recently started a PHD in the Netherlands working on a Bicycle Stability system for electric bicycles to help keep people riding bicycles longer, ie till an older age, before changing to other means of transport.
Continue reading