philipnorton42's blog

The Monty Hall Problem In PHP

Tuesday, September 24, 2013 - 10:10

The Monty Hall problem is a counter intuitive problem in probability mathematics that deals with picking the right prize from a set of three doors. The problem is named after the television celebrity Monty Hall and is loosely based on the USA game show Let's Make a Deal.

Category: 

Drupal WYSIWYG Module Custom CKEditor Configuration

Sunday, September 22, 2013 - 19:07

The WYSIWYG module in Drupal is a great way of integrating a client side HTML editor (better known as a WYSIWYG editor) into a Drupal site. It supports a variety of different editors, all of which can be configured depending on the input format being used by the user. The ability to incorporate many different content editors into a site using a single module means that the configuration interface for them all is pretty much the same. It also means that it isn't a disaster if a different editor is needed for an existing site.

Category: 

DrupalCon 2013 Prauge Is Next Week!

Tuesday, September 17, 2013 - 18:02

This years European Drupalcon will be held in the Czech Republic city of Prague and tickets are still available. This is the largest gathering of Drupal developers, site builders, project managers and users in Europe and it is always run exceptionally well by the Drupal Association.
Category: 

Turning Off Apache Basic Authentication For A Single Directory

Wednesday, September 11, 2013 - 18:26

When setting up staging sites or similar I often add a simple Apache authentication check in order to stop everyone from viewing the site. This is also useful in stopping search engine spiders from accessing a site with testing content on it, which generally causes trouble. It isn't amazingly secure, but it keeps almost everyone out.
Category: 

Changing Memory Allocation In Phing

Wednesday, August 7, 2013 - 13:36

Running complex tasks in Phing can mean running out of memory, especially when altering or changing lots of files. I was recently working on a image sorting Phing project that sorted images based on EXIF information. The many thousands of files involved, along with the custom target used to extract the EXIF data caused the default available memory to run out quite quickly.

Category: 

Using Active Contexts In Drupal 7

Saturday, August 3, 2013 - 16:11

Context is a Drupal module that allows you to set up reactions that fire when certain conditions are met. This might be when a certain path is loaded, or when a particular content type page is viewed, or even on every page on a site. When the conditions are met a number of reactions can be fired, which include placing blocks, setting breadcrumbs, or just adding a class to the page template.

Category: