Subscribe to RSS - Ron Golan's blog

Ron Golan's blog

Using Homebrew to Support Drupal on OS X

Submitted by Ron Golan on Mon, 04/09/2012 - 7:00am
Ron Golan's picture

brew install command
Homebrew is a package manager that makes it easy to install UNIX tools which don't come with OS X. Using the Homebrew package manager provides a great amount of control over the software installed on an OS X system, and it can be used to provide missing elements to run Drupal directly on OS X as a development environment.

I didn't set out to use Homebrew. I simply wanted to use wget instead of curl. I had no idea that would lead me to completely change my development setup.

How to Un-Cache a Drupal Page

Submitted by Ron Golan on Mon, 02/06/2012 - 9:17am
Ron Golan's picture

Normally caching pages for anonymous users is a good thing. There are times however, when a page or two needs to be excluded from the cache. Just such a situation recently occurred while I was working on the website for the Southern California Linux Expo.

As a conference website, there were the usual lists of speakers, sessions and a schedule page listing all the sessions in grid ordered by room and time. With over 100 sessions, that page was expensive to generate and since it didn't change much was a great candidate for page caching.

Keeping Modules Themable

Submitted by Ron Golan on Mon, 10/31/2011 - 12:20pm
Ron Golan's picture

Making it possible to override a module's output using a template and CSS.

We know that modules should provide themable output so the presentation can be modified using functions, templates and CSS. In the tiny example module that I created in my last blog post, I didn't do that. Here I will address that deficiency and show an example of what needs to be added to the BC Reminder module to give themers a chance to customize the output to their desires.

Avoiding Binary Canary False Alarms on Drupal Sites

Submitted by Ron Golan on Tue, 09/06/2011 - 11:49am
Ron Golan's picture

A really simple module can be very useful!

A number of the sites we host here at Urban Insight are monitored by Binary Canary. Binary Canary is a web service that continually checks to see if a website is online and sends out alerts when it's not. It can report system outages via email and SMS.

Binary Canary is a very reliable service, but there was one action on our part that would trip a false alarm occasionally. On a Drupal site, when updates need to be performed it's possible to forget that it is being monitored by Binary Canary and to put the site into maintenance mode without first disabling the monitoring service. When that would happen everyone on the alert list received a Binary Canary alert about one minute later.

Text Filters and Vulgar Fractions

Submitted by Ron Golan on Sun, 06/19/2011 - 7:49pm
Ron Golan's picture

Besides cleaning up bad HTML and saving us form dangerous scripts, text filters can be handy in other ways. Let's look at an example and how to create your own simple text filter. I'll cover this in Drupal 6 but doing it for Drupal 7 is very similar.

Most of the time, you want the text output by Drupal to resemble, as closely as possible, the text input. What about those times when you want to transform the output text? Text filters and input formats do just that. It turns out that as far as Drupal modules go, text filters are pretty bare bones and some of the easiest to code.

Fixing MacFUSE for the Latest OS X Kernel

Submitted by Ron Golan on Mon, 04/18/2011 - 4:49pm
Ron Golan's picture
Truecrypt version 7.1 now works without recompiling anything. Give it a try.