Skip to content Skip to navigation

John Bickar

John Bickar's Blog Posts

pushd, dirs, and popd

If you spend a lot of your day at the command line (as I do), you're constantly on the lookout for new tools and tricks to increase your productivity and efficiency. Today we're going to take a look at the pushd suite of commands that exist in most shells (e.g., bash, tcsh and so forth).

Module of the Day: JS Injector

Today's "Module of the Day" is a handy little module called JS Injector that allows you to insert snippets of Javascript into your site.

In this post, I'll walk through how to enable and configure the module, use it to shout, "Hello, World!", and then go into some more advanced configuration.

Enable the Module

To use the module, you must enable it. This module has recently been installed on Stanford Sites and does not get enabled by default.

Creating a Static Copy of a Website

The modern Web is a dynamic place. However, sometimes it's necessary (or desirable) to remove the dynamic functionality of a website, while preserving its static content.

Inspired in part by Karen Stevenson's excellent blog post, "Sending a Drupal Site into Retirement," I wanted to outline a few other techniques for accomplishing this.

Reasons you may want to create a static copy of a site: Updates, February 2014

IT Services will perform updates for the Stanford Sites Drupal hosting service, including individuals' websites hosted on, on the following dates:
  • Saturday, February 22, from 5 - 8 a.m.
  • Sunday, February 23, from 5 - 8 a.m.
Changes include security patches and upgrades for both Drupal 6 and 7 sites. See below for a complete list. (Note: updates to group and department sites on have already been completed.)

Using Templates in a Custom Drupal Module

In Drupal development land, the theme is what controls the final HTML, CSS, and Javascript that get delivered to the browser.

Sometimes, however, in developing a custom module, you want to provide a suggestion for an HTML framework, and not rely on the theme's default implementation of a given block of HTML.

You may ask yourself:

Can I use .tpl.php files in a Drupal module?

(And you may ask yourself, "How do I work this?", and you may ask yourself, "Where is that large automobile?")