One feature of django is worth to note is that it supports signals. In fact, under its skin it implements PyDispatcher, a python library that allows to emit signals and to dispatch them.
If at first glance this couldn’t look so useful to you, well, this hasn’t been true for me since it was exactly that kind of stuff I was looking for. What I was trying to do was to implement some kind of auto-installer for an application that I’m writing, and in order to do so I had to run the set up after that the syncdb command is issued. So the main problem was: how do I know when a user does the syncdb in a non-intrusive way?
After some googling, I found that in django exists the semi-hidden feature of signals, so I began exploring them. The only thing you can look at on the official site is a page on their wiki, and additionally there are some cool articles over the net. Anyway, if you want to know a fast way to catch the syncdb command just follow up the reading.
(Continue reading…)
This tutorial is outdated: it refers to version 0.4 of clutter that now is VERY old.
Last time we have seen how to draw the (maybe) most basic shape of clutter: the rectangles. We also positioned them together in the stage, and said (in part one) that the stage is a special kind of container.
Today it’s time to explain better what groups are and how to use them, so I’ll introduce to you the ClutterGroup and the ClutterHBox/ClutterVBox.
(Continue reading…)
This tutorial is outdated: it refers to version 0.4 of clutter that now is VERY old.
Last time we learned how to have our first stage drawn, so now it’s time to begin to insert something into that stage.
Let do a summary of what we are going to do in this “lesson”:
- change the stage’s color
- add a rectangle to the stage
- add another rectangle to the stage
(Continue reading…)
As above, when you’re both a collector and a programmer, strange things could happen. I’m a beer coaster collector and my collection now reached 250+ unique items so it became a bit a mess to keep that well organized.
So that’s why a developed BeerCoaster manager. Yes, I done a program that help me to keep my collection organized. It is still a bit rudimentary but does its job pretty well. So, if you’re a beer coaster collector like me, you’ll found this useful.
It’s written in Python and uses sqlite as database to store it’s informations, so it is portable across various platforms (i.e.: you can copy & paste your files from Linux to Windows and it will keep working).
Currently, it can be downloaded only by SVN and it is everything but stable. I hope to release something good within the end of year.
The project homepage is hosted on Google project: http://bcmanager.googlecode.com/
Getting it working under Windows, currently, is really hard: for the final releases, though, I should provide a Windows installer.