Radarearth.com

Drupal Web Development.

PHP

How Would You Write a "99 Bottles of Beer" Program?

Sat, 09/03/2011 - 04:01 -- Ben Hosmer

A while back, I posted about 99 Bottles of Beer In PHP in an effort to see how others might programmatically write code that would take an initial variable and then iterate it down until it reached a specific value and then return a message.

Many programming languages offer multiple ways of accomplishing the same task and I decided that a great learning experience for me and for others would be to ask everyone and anyone to contribute their own variations using any language.

Clear Your Drupal 7 Cache with One Click

Fri, 06/03/2011 - 18:37 -- Ben Hosmer

Sure, you can set a shortcut to admin/config or install the devel module, but what if you could clear your cache with one button?

This small module adds a flush cache button to your menu for easy, one-click cache flusing!

It could add years back to your life, and your wrist.

It has no configuration, just install and enable.

You may not want to use this on a production site - or at least disable it when you go live, since a permissions check might not be enough to prevent an unauthorized user from flushing your cache.

Apture is Available for Drupal 7

Thu, 05/05/2011 - 14:39 -- Ben Hosmer

I used the Apture Service on my old Drupal 6 site with the Apture module, but since updating to Drupal 7, I found it was one of the modules that didn't have a Drupal 7 version.

I decided that I missed it enough, to rewrite it for Drupal 7. If you aren't familiar with the service or the module, here is what it can do for you: