Articles From June 2011
Django-articles is an open-source blogging engine written in django. Unfortunately it does not offer a sitemap mechanism and since the yawd blog uses django-articles I had to implement it. If you have a django-articles powered website and want to add a sitemap here is how to do it:
Download the sitemaps.py file attached to this article and place it under your project's main application. This module uses django's built-in sitemaps framework to define a...Posted on June 30th, 2011 by Pantelis Petridis
Let's suppose we want our Drupal article content type to have a parent category and a sub-category. We have defined a 'categories' vocabulary and we are also able to add new terms and set their parent elements. When using the administration UI to add a new article we can create a new category, set a new sub-category and both taxonomy terms will be saved along with the article. However, the sub-category won't be connected with its parent category automatically. We need to manually visit the taxonomy terms list and set the sub-category's parent category term.
This is a problem I came across when working on a yawd project and to solve it I had to create a simple module that programmatically correlates the sub-category with its parent category field...Posted on June 29th, 2011 by Pantelis Petridis
The past few years IndexData's Keystone Library framework has not been actively developed. When PHP5 was introduced back in 2004 it featured a completely redesigned Document Object Model (DOM) implementation that lacked backward-compatibility. At the same time, Keystone was heavily relying on XML manipulation, so it was not possible for these two to work together and Keystone users were forced to use PHP 4. IndexData at the time focused on other projects and officially stopped...Posted on June 24th, 2011 by Pantelis Petridis
Although Windows systems seem to load all PHP 5 variables & extensions from a single php.ini file, there might be system configurations -especially Linux systems (Ubuntu in my case)- that use multiple .ini files. In such systems, PHP configuration is usually located inside the /etc/php5 directory: When running in cli mode,
/etc/php5/cli/php.inigets loaded along with all .ini files located in the
/var/php5/cli/conf.ddirectory.. When using Apache,
/etc/php5/apache2/conf.d/*.inifiles are all loaded. The same is true for php-cgi. To load the additional .ini files, either a
PHP_INI_SCAN_DIRenvironmental variable or the
--with-config-file-pathoption can be used. So far so good.
When it comes to Eclipse PDT, it seems that the additional .ini files are not loaded when PHP runs as script...Posted on June 16th, 2011 by Pantelis Petridis