Skip to main content

Posts

Showing posts from March, 2012

Application categories as defined by freedesktop

I always wondered if the categories' names to which an application can belong were created by Ubuntu or Gnome. The category list can be found in the application .desktop files under the name "Categories" (surprised, eh? :-)). Files .desktop of standard applications are positioned in /usr/share/applications . Categories modifies, for example, where an application icon appears in the desktop main menu. I recently discovered that the names are defined by the freedesktop standard; an in depth description is here: http://standards.freedesktop.org/menu-spec/menu-spec-1.0.html#category-registry So, at least in theory, categories work the same way in every desktop environment that claim di adhere to the freedesktop standard.

The quest begins for Python3 modules

Although it has been released for a long time, it seems that some modules for Python3 are still a bit difficult to find. The first time I had this impression was looking for a connector between Python3 and MySQL. The module MySQLdb that I always used with python2 is not available for version 3 of the language and it's not clear if it'll ever be in the future. In the Internet you can find some alternatives, but for many of them it's not clear which is the degree of completeness (or it's clear that it's not so high) and support. I came to the conclusion that the more reliable candidate is oursql . The other two modules that are compatible also with Python3 are: PyMySQL and MySQL Connector / Python (the latter is pure Python, so it does not need to link to MySQL client library). Besides, SQLAlchemy always proves exceptional because it is able to use all the modules to connect to the database.