Uvtool: uvt-kvm, easy cloud images on libvirt.

Time to take a look to uvtool. How? sudo add-apt-repository ppa:uvtool-dev/trunk sudo apt-get update sudo apt-get install libvirt-bin uvtool In the past, when i wanted to use a an ubuntu cloud image, Usually i used this method Boot a cloud image in kvm for convert the image format…

Maas: forcing import of boot-images

After following this recommended guide: http://astokes.org/running-maas-vagrant/ (kudos stokachu) i noticed that the "Import the boot images" step could be getting stuck on MaaS 1.5.4 with the following error message: The region controller does not know whether any boot images have been imported yet. If this…

Varnish purge cache

If you are using the setup that i proposed on my entry Enable varnish for your gears then you can change your Varnish default configuration for prevent your cached copy being purged, instead of this you can increase the default cache ttl to 1 week and invalidate the cache only…

Python: Mental notes about Asyncio

Here are some mentals notes after trying for a couple of hours the new Asyncio module based on the PEP 3156 spec. The Asyncio module is the last confirmation that the multithreading war is over on Python, unless some core developers are already implementing another approach like Transactional Memory / Automatic…

Python: Marshalling functions

If for some obscure reason do you want to call Python code from Javascript and viceversa you can take a look to my still(ever) green experimental project Slurpy. The most tricky part coding the callback mechanism was to implement the function serialization. Here is my function serialization class to…

Openshift: Survive to slashdot effect with Varnish

The problem. A few days ago after adding my website to the Planet Python i got newbilly slashdotted. As i already posted about on OpenShift: First approach i am running this website on OpenShift and this is a quick guide so you do not make the same mistake. The solution…