Syncing variable access in Drupal 7

Drupal 7Variables are a very convenient Drupal mechanism for storing practically any sort of data or configuration. By using variable_set() and variable_get() you can access or modify DB-stored config parameters in runtime, and built -in serialization allows you to store complete data structures without having to create custom DB tables and/or using entity APIs.

However, if you have a close look at the mechanics of this functionality, you can see the potential hazard of losing stored information.

Continue reading

Gource – Software Version Control Visualization

When working on large codebases with many contributors, it’s easy to lose sight of the amount of effort and change that is going into the overall project, especially when those contributors are spread across many teams and locations. Gource is a source code visualization tool which helps capture that “big picture” view of a project, providing a sense of the overall history and contributors to a project.


From the Gource homepage: “Software projects are displayed by Gource as an animated tree with the root directory of the project at its centre. Directories appear as branches with files as leaves. Developers can be seen working on the tree at the times they contributed to the project.”

Continue reading

Shaping up with Angular.js

angularCodeschool has just added a free course on Angular.js, the increasingly popular open-source web application framework. Entitled ”Shaping up with Angular.js,” the course takes you through 5 levels of extending HTML vocabulary for your application. Each course level is a set of videos. After each video students are presented with a challenge: they complete code examples of what was covered in the video and earn points if a course level challenge is completed successfully.

Continue reading

Displaying errors in Drupal 7

When building Drupal 7 sites, developers need to be alerted to information about any and all errors. To display these important messages locally, simply insert this bit of code into your settings.php file:

These few lines of code will provide the developer detailed information about all errors and prevent the appearance of “the white screen of death.”