Single file TODO

Posted on 13/03/2016

There are thousands of apps, websites, scripts, extensions and whatnots that help you deal with personal TODOs, and I've tried a fair number of them. Major ones, unknown ones, ugly, fancy, functional, paid and free. Which one I find the best? Single text file. I'll explain why.

Disqus vs Drupal Comments

Posted on 12/03/2016

Comments are something we expect on any website that publishes articles or blog posts. Because of increasing number of sites we visit every day, certain projects are trying to change the way discussions are lead on the Internet. Disqus is one of the biggest attempts to consolidate and standardize communication on websites.

Prevent duplicate comment submissions in Drupal 7

Posted on 02/03/2016

Whenever you use a general purpose CMS and compare it to the systems built for one particular purpose, you will always miss a lot of details. This stands true when you are building an ecommerce website, a blog, a forum, and so on. However, the great thing about Drupal is that you can usually find a contrib module that provides such functionality, you can build it yourself using something like Rules or Views, or ultimately, write that in your custom module.

Creating custom Views header handler in Drupal 7

Posted on 01/03/2016

Views is probably one of the most useful Drupal modules for both developers and website builders. Chances are that you will rely on using Views even when you store the data in your custom tables, because of the additional features you get - from user interface, to caching and filtering.

This article will be a short example showing how to create a custom field handler that can be used for generating content for views header.

Backup naming conventions

Posted on 06/02/2016

Conventions save your time and make it easier to work with more people and more projects. I find that conventions for naming files outside of any computer-related system are rarely standardized, and can cause confusion and delays.

Backups should be automated whenever possible, but even then it's a good practice to do this manually from time to time. Scheduled backups might include only the most important parts and sometimes cannot include additional data, such as software configuration files.

Going live with a Drupal website

Posted on 31/01/2016

Having a launch checklist is always a good idea, especially if you develop it over time. It will narrow down the chances of having issues before the launch and make sure that everything is in order.

This is an extensive list of settings and other details that should be checked before a Drupal website goes live. Most of the items are applicable for Drupal 6, 7 and 8.

Disabling Drupal 7 cache on specific pages

Posted on 28/01/2016

There are certain cases in which caching is not desirable because it can cause conflicts with the way certain pages work.

The best example is Captcha module, which automatically disables the page/block cache wherever it is displayed. This is necessary because Captcha output should never be cached. The code has to be regenerated for every visitor, in order to be unique and prevent bots from automatic submissions.

Write HTML faster

Posted on 24/01/2016

Unless you are working with a templating engine that streamlines HTML, chances are that you have to write pure HTML often - from testing snippets and forms to full layouts. This is because most of the template engines will not change the way you write HTML itself, but will just limit the amount of logic you have available.