Version numbers matter! Using a consistent version numbering throughout your project's life matters, too. Changing project name is a high price to pay for cleaning up version errors.
So there's some good news! The Python community's PEP-440 specifies how to use versions.
Here are some examples of versions that abide …
Read the rest of this entry »Warnings are often suppressed through many layers of control mechanisms in Python and Django. However, you should really be aware of these and clean them up once in a while!
In other cases, the Warnings reflect an inconsistent state, such as if you are mixing naive and timezone-aware variables. It …
Read the rest of this entry »Yesterday, I succeeded in moving a GTK2 project* with a custom Cairo widget to GTK3. It's about 750 lines of Python and took ~5 hours to migrate, mainly because my method was about googling and solving all Exceptions one by one. That's not very advisable.
You can read a more …
Read the rest of this entry »Hi there!
If you've ventured just a little bit into GTK and threading, you have probably noticed how things can explode if you manipulate GTK objects directly from a thread. GTK is not threadsafe.
However, this tip might help you get stuff done properly:
1) Do your actual work in …
Read the rest of this entry »In case you need a quick way of getting rid of spammers on your apache server, use this method as a temporary solution until you find a better one.
Please take not that it will evaluate EVERY SINGLE REQUEST through a Deny policy in Apache's mod_access - it does not …
Read the rest of this entry »THIS DOES NOT WORK WITH APACHE SINCE IT DOES NOT USE /etc/hosts.deny - See this post instead
Use the following Python script to maintain a file in the hosts.deny syntax so that your Debian/Ubuntu box (or other Linux server) is kept undisturbed by forum spammers -- COMPLETELY undisturbed, as the …
Read the rest of this entry »I have been hunting spontaneous crashes with errors from the C GTK libs. The errors looked somewhat like these:
Warning: g_object_ref: assertion `G_IS_OBJECT (object)' failed
gtk.main()
Warning: instance of invalid non-instantiatable type `AtkSelection'
gtk.main()
Warning: g_signal_emit_valist: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
gtk.main()
(...)
Warning: instance of invalid non-instantiatable type `'
gtk.main() …
Read the rest of this entry »
UPDATE! This is going to be redundant in Django 1.2, in which you can add DATE_FORMAT to your django.po files.
I've often been frustrated that using settings.DATE_FORMAT does not give a localized date. Granted that the name of a month may be localized, but the format string does not change. …
Read the rest of this entry »It was bothering me that all the wikis I tried, all had either errors, feature lacks, too many dependencies or were simply unmaintained. So I decided to create yet another one. Curiously, the third hit when googling 'django wiki' is Create a wiki in 20 minutes. Luckily that's not …
Read the rest of this entry »There's still some work to do on the full screen plugin for Rhythmbox, but the current version is very usable indeed. The latest addition is scrolling by hovering the track list.
I changed the display from a normal fixed table with 3 tracks to a gtk.Layout with a gtk.VBox containing …
Read the rest of this entry »