Tag Archives: Blogging

Preventing TypePad posts from appearing in Google cache

This post describes the modifications I have made to TypePad’s Advanced Templates to insert a noarchive tag, intended as an opt-out from Google’s cache. Working with Advanced Templates requires a minimum Pro membership, and if anyone knows how to do it more simply (on TypePad), please tell the world, because I was not able to find an alternative.

Adding noarchive to Advanced Templates

My first step, since I’d not already done it, was to create a set of Advanced Templates from the customized templates of this blog, as described in TypePad’s support knowledge base (Creating an Advanced Template Set ID53). (The support knowledge base links are dynamically generated, so I’m going to cite the ID and avoid broken links if there’s a restructuring.)

The strategy described in Advanced Templates: Creating and Customizing Template Modules (ID542) comes down to creating new versions of the template modules that are to be modified, and then amending the line(s) of code in all the templates where the default template modules are included –

<$MTWeblogIncludeModule module=”module-name”$>

to include the modified module:

<$MTInclude module=”module-name”$>

Straightforward enough in principle, however, for efficiency, the modules are nested – modules are included within modules within templates. Things got complicated, and required reference to multiple reference articles and a query or two to Typepad support (who referred me back to the reference articles).

There is a common header module: head-common.

It is included in the following specific header modules:

  • head-archives
  • head-category
  • head-individual
  • head-index
  • head-date-based
  • (supposedly) head-extra.

These modules in turn are included in the following templates:

  • head-archives in Archive Index Template
  • head-category in Category Archives
  • head-index in Main Index Template
  • head-date-based in Datebased Archives
  • head-individual in Individual Archives, Pages

I had to create new modules for head-common, head-archives, head-category, head-individual, head-index, and head-date-based, based upon the code provided on various support knowledge based templates. I could not find code for head-extra, which I understand is an additional module.

Then I had to edit all the relevant Index and Archive templates to incorporate the new modules.

Common header module: head-common

Code for head-common is provided on the page Advanced Templates: Shared Template Modules (ID534). There are a couple of omissions in the list of where head-common is included.

head-common contains the code controlling the behaviour of robots for blogs set to private (enclosed in the MTBlogIfPrivate tag). Initially I thought about modifying the code, but decided to leave the code in and add a new line, so that in the unlikely event I decided to revert a blog to private I wouldn’t trip myself up. The line is (nofollow is optional).

meta name=”robots” content=”noarchive,nofollow” /

Add the angled brackets fore and aft; even with a blockquote to protect it, TypePad’s publishing system is suppressing the line with the angled brackets in.

I created a new template module, called it (for example) head-common-mod, cut and pasted the default code, and inserted the new line. I saved, but did not publish at that point.

Individual header modules

Since head-common is included by head-extra, head-archives, head-category, head-individual, and head-index, all these modules had to be replaced by an extra module, based upon the default modules, but amending the include code:

<$MTWeblogIncludeModule module=”head-common”$>

to:

<$MTInclude module=”head-common-mod”$>

Default code is found in the following pages in the knowledge-base:

  • head-archives in Advanced Templates: Archive Index Template (ID 544)
  • head-category in Advanced Templates: Category Archives Template (ID 545)
  • head-index in Advanced Templates: Main Index Template (ID 548)
  • head-individual in Advanced Templates: Shared Template Modules (ID 543)
  • head-date-based in Advanced Templates: DateBased Archives Template (ID 546)

See also Advanced Templates: Template Modules (ID 137), which lists all the types of template modules.

In each instance, I created a new template module, named it appropriately, cut and pasted the default code, and edited the required line. I saved, but did not publish.

Templates

The templates themselves are accessible through the control panel: TypePad Home > Your Weblog > Weblog Name > Design. In all instances, the edit is the same, only the module name is different:

<$MTWeblogIncludeModule module=”module-name”$>

to:

<$MTInclude module=”module-name-mod”$>

The edits are:

  • head-archives in Archive Index Template
  • head-category in Category Archives
  • head-index in Main Index Template
  • head-date-based in Datebased Archives
  • head-individual in Individual Archives, Pages

Publication

Having saved all the module and template changes, I republished the blog and checked to see if anything is broken. On inspection, Incidental Findings looks all right, unlike the first time, when I interpreted the instructions around head-extra as allowing insertion of additional code and nixed my layout. The controlling tag is appearing when I look at View Source. It will take a while for me to determine whether my entries are still being indexed but without the Cached link, which is the objective of the exercise – and whether it has broken anything else!

Importing posts

Been meaning for a while to collect posts from Reality Skimming that cover more general matters of writing, reading and life, and mirror them here. So have spent the evening doing so, despite Blogger’s lack of an export function. Since I wanted to maintain the chronology of the blog, I wanted to set the times to the original date, which was going to involve a lot of clicking on TypePad’s little pop-up box, so I created a .txt input file manually and uploaded it – after an initial boo-boo involving the 24 hour clock.

Ruminations on Northern Voice 2007

I’ve spent the last couple of days at Northern Voice 2007, and its informal prelude, Moosecamp 2007, in Vancouver. I’m a admittedly dilatory blogger, and was looking for inspiration, as well as information about the latest toys and developments. This I got, in plenty. The sessions were recorded and are being podcast in their entirety; several sessions have supporting pages in the Northern Voice Wiki, including links to background information and links; and of course the whole thing has been enthusiastically blogged (technorati: northernvoice, nv07) and photographed (flickr: northernvoice, nv07). So further description of the content would, I think, be redundant. Here follows my personal comment.

Much of the substance of the presentations on the social aspects I attended was provided by the academics, who are enthusiastic about the use of social technologies (primarily blogs and wikis) as a means of promoting interaction and learning in the classroom, virtual or otherwise.  It did occur to me later, while talking to Lynda, to liken these anecdotes to a case series in the medical literature, in which a new intervention produces impressive results in a small group of selected subjects, only to show a much smaller or no effect when a randomized controlled trial is conducted on a more general population. The enthusiasm of developers and early adopters must account for a great deal of early promising results in education as well as in medicine. More than one speaker alluded to the introduction of a social software approach tending to polarize students: there were those who participated with enthusiasm, and those who found the requirement to come to grips with the technology an imposition. After a session on the use of wikis in education, it occurred to me that I wouldn’t have found having my developing notes edited by other people useful in my learning process. Useful in helping clarify and refine expression, yes, but part of learning is singularly non-collaborative in nature – the part that involves the fitting of knowledge most efficiently into one’s own unique schema (I don’t think I’m misusing the word too grossly). Having to open that process up to other people would, I think, risk interfering with it. The tangible products of the process should not be confused with the learning itself. But the idea of developing intellectual dialogue as an aggregate of posts does have the advantage over traditional collaborative projects with a single output where peoples’ individual effort (of lack thereof) becomes undistinguishable. The idea of having a digital archive of one’s notes and writings is, for someone who has at least thirty years of notebooks to be shifted from lodging to lodging, very appealing. And searchable (please).

On the technical side, I attended sessions on mashups for non-programmers, OSX programming, photography for the web (although I had to miss Saturday’s session because of the need to head home), wikis, WordPress vs Drupal. I never did get entirely straight what was a mashup and what was an aggregation; the best I could determine was that a mashup involved extracting data from one source and feeding it into another, rather than combining data from two sources. I suspect that much of Bioinformatics would fall under the category of mashup, pulling data intially stored for one purpose and one format out programmatically, and feeding it into another form of analysis. It would be interesting to see whether the evolution of bioinformatics and social media was proceeding independently or cross-fertilizing at any point. Based upon what I saw while doing bioinformatics courses, the bioinformaticians working on visualization could show the social webbers a thing or two about the visual display of information, although bioinformatics continues to depend heavily on Perl and the web seems to be moving away from Perl. Multimedia mashups are still at a very primitive stage. Text is text, stllls are stills, sound is sound, and movies are movies, and although they can be organized and inserted into the same page, any kind of real integration is still remote. Edward Tufte’s books have some thrilling examples of what can be done with integrating images and text. Start animating them, moving them through time, and add sound, and the results will be spectacular, in the hands of someone sufficiently skilled, sufficiently inspired, and with a sufficiently complex message to convey. Complexity and presentation have to match; if information is too complex for its mode of presentation, the result is what Tufte describes in the cognitive style of Powerpoint, what is familiarly referred to as ‘dumbing down’. If the information is too simple for the mode of presentation, the result leaves one feeling manipulated; ‘slick’, I think is the pejorative there. In assembling complex presentations, I find it difficult to say how much the computer can assist the conceptual work in the translation of concept into image/text, though it can certainly substitute for deficiencies in straightforward technical skills.

Given the way I came into blogging, I noticed the lack of creative writers. I wonder if I could talk some of SF Canada’s west coasters into contributing next year to a session or two on the blog as writer’s journal, creative workroom, collaborative tool, experimental literary form, or other, that I can’t think of right now.

But I now have my week’s listening ahead of me, catching up with all the sessions I missed because I was at other sessions, or working my way across town to catch the bus home.