My first open source python module - Drupal data download

2020 just arrived and it's time for something new. I have been using Drupal since 2006, so we have been together for almost 14 years! It's an impressive journey and I am look back with satisfaction - Drupal is simple to use if it fits the requirements exactly, and I stoically avoided touching any of its smelly PHP bowls. However, with the arrival of Drupal 8 I realised, that I couldn't migrate to it even my simple and straightforward sites. Therefore, I decided to slowly migrate to Django + Wagtail. This will require some coding in Python on my side, but I don't mind that.

Creating Drupal theme based on boostrap and material design from Google

For quite some time I wanted to have a Drupal theme that would allow me to have a bootstrap based theme together with the look and feel as dictated by the Material Design principles from Google. Mainly because I like the way these two look and because I myself have very limited abilities in creating pretty user interfaces.

New Google Inbox - first impressions

Yesterday I received an invitation to Google Inbox - a new mail service from Google on top of the famous GMail. I wanted to use it because it provided reminders and allowed you to snooze emails in the inbox until later. I find these features extremely useful. However, the current versions of both Android client and the web interface are not without issues. Here are some of them I have noticed so far:


Google calendar - download all entries with Python

Google provides APIs to access its data using various languages. You can manipulate Google calendars, contacts, documents etc. Most of the time the usage is pretty straightforward, but sometimes it is not clear how to achieve a specific goal. For example, it took me some time to figure out how to download all events for a given calendar. The main reason behind the difficulty is the upper limit Google places on the number of calendar entries returned by a single query. There are API calls, which help you to overcome this constraint. Below is the relevant code for your enjoyment.

Clever spammers

There is no doubt - spammers are becoming cleverer every day. I've added CAPTCHA verification to my site in order to prevent spam comments from being submitted. It really helped - previously I used to remove about 10-20 of them on daily basis, offering everything from child pornography to grey mortgages. However, even after the new safety measures have been introduced, I still get a couple of comments a week, which were created by spammers. Somehow they manage to break CAPTCHA. In addition, they texts are quite long, compared to the traditional "go-to-this-web-site-and-buy-stuff" ads.


Drupal modules

I like Drupal a lot. It's a great system, easy to set up and use, and the most important thing, there are plenty of modules, which provide additional functionality. However, every time the Drupal development team release a new major version, the module authors have to change their modules in order to adopt to the new platform. This is a major drawback, because it is a considerable obstacle for those, wishing to migrate to the new version.