All posts by admin

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.”

Drupal 7 Media Module Update Tips

Drupal 7Anyone who has ever used the wonderful “media” module has faced the “upgrade” problem. Let me share my experiences with updating the media module from 7.x-2.0-unstable5 to the latest (almost stable) 7.x-2.0-alpha3.

Here are some tips to help you with the update:

  1. 7.x-2.0-alpha3 always needs to be manually configured.
  2. Patches need to be applied.
  3. WYSIWYG integration: if you enable CSS aggregation then the CKE editor will break. Disabling CSS aggregation just for admin users fixes the problem.

Thank you for reading! Continue doing Drupal!

Smart memory allocation in Chrome

The Great Suspender for Google ChromeIf you are accustomed to keeping dozens of tabs open in Chrome, you most likely have noticed increasing memory allocation, which ends up consuming gigabytes of RAM.

I have been using several solutions for tab archiving and tracking, but all of them required some manual operations – archiving tabs, restoring tabs, etc. The absolutely awesome solution for totally automated memory management is The Great Suspender.

Continue reading

Verifying dynamic content with Selenium Webdriver

Selenium WebDriverThe most impressive of Selenium WebDriver’s capabilities for QA is its real-time access to the document object model. As soon as you pick any element in the document, using XPath or CSS selectors, position your mouse, click, scroll, drag and drop over the page, and it is possible to model and verify virtually any aspect of Web-based human/machine interaction.

Some of the most powerful capabilities include:

  • Check asynchronously loaded content (advertising, AJAX).
  • Navigate into iframes and verify embedded documents.
  • Compare any actual (computed) CSS attributes to expected values.
  • Scroll through the document, drag, click, focus on page elements.

Continue reading