Weekly Report 2013-08-04
Completed Work
- Created additional documentation: more on pythonbrew, upgrading MediaWiki and running Drupal cron jobs
The Drupal databases fill up rapidly with logs of various kinds - access logs, cache, error logs, etc. For this reason, it is important to periodically clean out the database. Fortunately, Drupal includes a quick way to do it.
Drupal comes packaged with a cron.php script that does this work for you. It's a very short script:
pythonbrew is a Python version manager that allows for local Python installations. This is necessary because 1and1 gives us quite an old (2.6.6) version of Python, meaning that we either have to have the old version on a local machine to do local development, or we need to be able to switch into newer versions of Python on the server. Knowing how to use pythonbrew solves both of these problems.
ACL-IJCNLP 2015, the joint conference of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing of the Asian Federation of Natural Language Processing, will take place in Beijing, China on August 15-20, 2015. The ACL-IJCNLP 2015 will be hosted by the Chinese Information Processing Society of China (www.cipsc.org.cn). Local arrangement co-chairs: Le Sun, Institute of Software, Chinese Academy of Sciences and Yang Liu, Tsinghua University.
1and1 gives us PHP out of the box, but not necessarily all the standard PHP extensions. This document shows you how to add standard PHP extensions (PEAR modules) to the default setup. You can read more about PEAR at the PEAR homepage.
For PEAR to work, you'll need to create a config file. This has already been done on the current server at:
/kunden/homepages/43/d109612362/htdocs/.pearrc
The main site uses Mercurial for version control. Mercurial is a distributed version control system, making it easy to clone new versions of the site for development on separate machines.
As Mercurial is a Python program that doesn't work well with the system Python version, it is necessary to use it from within a virtual environment..
First, activate the virtualenv:
1and1 doesn't give us a modern version of Python, so it is necessary to use virtualenv - a Python sandboxing script. .
virtualenv replaces the system Python (and assicated libraries and install packages) with locally-installed versions for as long as the environment is active. (Read about virtualenv here)