User login


copyright protection of images

One concern she has is copyright protection of slide images that might be put on the web site. They may want to have images available for teaching but they do not want people to link to the images or to take the images and use them without their permission. Are there effective mechanisms for copyright protection of images on a web site? I think they might consider adding digital watermarks, displaying a visible copyright message on images, and blocking search engines from crawling in certain directories. This

There's more than one way to span a date...

In theory you can put HTML code right into a custom date format declaration. Actually, this did not quite work for some reason... somewhere in class year the code just gave up and pled for mercy.

\<\d\i\v \c\l\a\s\s\="\m"\>M\<\/\d\i\v\>\<\d\i\v \c\l\a\s\s\="\d\y"\>d\<\/\d\i\v\>\<\d\i\v \c\l\a\s\s\="\y\r"\>Y\<\/\d\i\v\>

Slick top-level-domain style URLs for your local development sites on Ubuntu (and Mac OS X running Ubuntu in a VM)

In order for the cool style addresses for sites you are developing locally (rather than from my Mac OS X environment as well as Ubuntu running in a virtual machine, this method uses the IP address available locally that you can find out by typing ifconfig in a shell terminal. It's what follows the text "inet". With luck that is a stable IP address, running in bridged mode (i think) with VMWare Fusion this seems to be working so far. The problem with bridged mode is that it only works with your own internet connection.

Need to have one number go to one of several accounts based on availability


We at Agaric have what we thought would be a common need-- to have one support number / Skype account that our clients can call be picked up by whichever of our several members around the world (Germany, India, and the US so we cover the time zones pretty well!).

I cannot figure out how to configure this.

Boost caching: what refreshes it and how?

A normal (node) page triggers the Drupal-integrated Boost cache to expire and replace the page whenever you edit it. Editing a view unfortunately does not have such triggers. In this case the views are attached to a node, so simply resaving the node rebuilds the cache.

In most cases the view itself will not be modified, rather, you will add or edit a node associated with a view which also refreshes the cache for that views pages. (Note this takes a bit of processing to look up, and i don't think it will apply for blocks.)

Toward an automatically deployable per-project ticket tracker and project management site

Automatic Benefits:

Your clients learn to use an environment similar to the site you are building for them, rather than the different markup syntax and behaviors of trac or other system.


  • URL fields for bug reports which would be able to replace (or generate) the base URL with a defined set of URLs for development, stage, or production sites in use.
  • Time tracking?


Account management with LDAP

Add new user

$ sudo cpu useradd user

Add existing user to group

$ sudo ldapaddusertogroup user group

You can check that the add has taken effect by looking over the lists of groups the user is in (due to caching this may take some time):

$ sudo -u user groups

Add a subsection class to Drupal page body for theming Views and other parts of a site that can be defined by parts of the path

I had wanted to add the name of the view with its display to the body classes (Views apparently provides everything but that combination, and not all browsers we need to support deal with matching on two sibling classes). Looked in Zen for how to do it first though and as a consequence saw a way to add new sub-section body class with the first two parts of each URL.

This goes in your zen subtheme's implementation of preprocess page:

Mysterious insertion of paragraph tag (in DOM only, not in code) inside span

.section-aboutus .date-display-single {

.section-aboutus .date-display-single p { margin:0px; padding:0px; }

Can that second CSS rule call the p tag into being?

Definitely one of the freakiest things I've seen. The source code contained no p tag within the span. The code shown by Firebug and Safari's inspector both had the the paragraph tag.

Actual source code:

<p>Tri Star Pictures <span class="date-display-single">2009</span></p>

Fixing Menu Block for menu items with the same path (that also have another valid path)

"exanded" elements of a menu-item-rooted tree aren't expanded

Working modified function (the patch has more):

Syndicate content