Category: Coding
-
How to start programming in Python on Windows
How to choose the right IDE for Windows and how to find and install Python libraries? Six fundamental resources to program with Python on Windows.
-
From Drupal to Django: how to migrate contents
In a recent article I explain the motivations for an upgrade from a no longer maintained Drupal 6 installation to Django 1.8. I will now cover more in detail the migration techniques adopted in the upgrade and I’ll deepen the models and the relationships. Structure If you’re a drupaler, you’re familiar with the node/NID/edit and the node/add/TYPE […]
-
How to display a custom cover embedding a youtube video and when stopped display the cover again
Display a custom cover embedding a youtube video and when stopped display the cover again using Youtube API.
-
Clear Varnish cache via PHP: a Drupal 7 proof of concept
Using Varnish as reverse proxy or proxy is an useful approach to reduce the load of webservers like Apache. In Drupal 7 I’ve to clear the varnish cache of a specific domain when Drupal caches are globally cleared. Drupal has the right hook invoked when cache are cleared: Now this piece of code simply adds […]
-
Web fonts and dynamic height calculation issues on jQuery
Recently we’ve nice fonts on web pages like Google Fonts and other web fonts. Take this case, you have to set two divs to the same height. One (div.funny) has some text with Google Fonts, the other is empty. On Chrome console you type something like: Div.very and div.funny are now at the same height. […]