Archive content from 2000 to 2010

WestNIC provides reliable web hosting services

Fastwebhost offers cheap web hosting & reseller hosting services

Site navigation below

This page is part of a searchable archive of the Code Style site log. Technical implementation notes that shed light on when, why and how the site has evolved since 2000.

RSS news feed Follow the latest entries to the site log.

Reverse chronology

Site log backlog, 31st December 2008

Updated site log entries from 18 October to 15 November, retrospectively adding font stack builder links to pre-launch mentions.

Actions: Ask a question about this post, seek clarification or offer a correction.

Premium content entries for site map, 29th December 2008

Added the premium content service page and premium content FAQ to the site map.

Actions: Ask a question about this post, seek clarification or offer a correction.

Post-migration changes, 27th December 2008

Changed .php server side include references in FaqMenuGenerator to .shtml for the new Metacentric host. Migrated all Code Style PSFTP put and get scripts to the Metacentric host name and directory paths and created new scripts for uploading the Lighttpd.conf file and codestyle.jar.

Removed dynamically generated webapps directory contents from version control.

Actions: Ask a question about this post, seek clarification or offer a correction.

Pre-migration file copies, 23th December 2008

Exported a copy of the new Metacentric hosted Code Style site to a separate development directory path for localhost development testing. Created final migration-complete versions of Soupermail form files, font survey submission records and counters from the old Code Style host immediately before switching the domain to the new Metacentric host. Included a final version of codestyle.jar with a corrected version of the AbstractXmlObject class.

Actions: Ask a question about this post, seek clarification or offer a correction.

Final compatibility changes for new host, 22th December 2008

Completed the configuration of all Code Style legacy servlets with CodeStyleTemplate type. Set explicit path references to the Tomcat web application and survey results XML file name for the FontStack servlet. Changed the Code Style docBase value to ROOT and included /servlets/ in the servlet mappings for self-reference and proxying through Lighttpd.

Copied static HTML error pages to the Tomcat root application for Code Style and added error-page elements for each to the web.xml configuration. Added FontStats.dtd and AllFontStatsFull.xml to the application source for deployment to WEB-INF subdirectories.

Added index.shtml to the Lighttpd server.indexfiles directive and mod_expire to the server.modules array. Added custom set of MIME types to the mimetype.assign array and .shtml to the cgi.assign extensions array.

mimetype.assign   = (
  ".class"        =>      "application/octet-stream",
  ".css"          =>      "text/css; charset=iso-8859-1",
  ".dtd"          =>      "text/plain",
  ".gif"          =>      "image/gif",
  ".htm"          =>      "text/html; charset=UTF-8",
  ".html"         =>      "text/html; charset=UTF-8",
  ".ico"          =>      "image/x-icon",
  ".jpeg"         =>      "image/jpeg",
  ".jpg"          =>      "image/jpeg",
  ".js"           =>      "application/x-javascript; charset=iso-8859-1",
  ".pdf"          =>      "application/pdf",
  ".png"          =>      "image/png",
  ".spl"          =>      "application/futuresplash",
  ".swf"          =>      "application/x-shockwave-flash",
  ".txt"          =>      "text/plain",
  ".xls"          =>      "application/vnd.ms-excel",
  ".xml"          =>      "text/xml; charset=UTF-8",
  ".xsl"          =>      "text/xml; charset=UTF-8",
  ".zip"          =>      "application/zip"
)
      

Fixed a bug in AbstractXmlObject where the loaded status of a concrete instance was being recorded by a static variable. Changed the concrete isLoaded() method to an abstract one so the subclasses SiteMap and SurveyResults can independently implement their own versions using their own instance variables.

Adapted the ViewSource servlet to permit PHP document extensions, though actually made redundant by renaming files to use the .shtml extension on the new Metacentric host.

Corrected the Code Style web application source and web application path configuration in the Ant build.mcn.properties and standardised the format of all properties files in the set. Amended the deployment filter files to distinguish the Metacentric application template and web application home path from Code Style values by renaming appMetacentricTemplate and appMetacentricHome. Added a fontStackXml filter name entry for the FontStack servlet.

Added alias elements to the Tomcat server.xml configuration for all Code Style domain names. Removed the remote address valve from Code Style host element.

Entered all premium content service subscribers into a new .htdigest password file.

Actions: Ask a question about this post, seek clarification or offer a correction.

Classpath update for Ant scripts and JSPC task, 15th December 2008

Renamed Code Style classpath references in Ant launch scripts to codestyle.jar without version number. Commented out the Tomcat port references in the localised Ant properties files. Added the metacentric.jar reference to the JSPC task definition classpath and copy overwrite settings for all server configuration files.

Actions: Ask a question about this post, seek clarification or offer a correction.

PHP and Java compatibility changes for new host, 13th December 2008

Changed all $DOCUMENT_ROOT references to $_SERVER['DOCUMENT_ROOT'] for compatibility with the PHP version on the new Metacentric host.

<meta
  name="DC.Date.modified"
  scheme="W3CDTF"
  content="<?= date('Y-m-d\TH:i:s', filemtime($DOCUMENT_ROOT.'/css/font-family/table-CombinedResults.htm')); ?>" />

<meta
  name="DC.Date.modified"
  scheme="W3CDTF"
  content="<?= date('Y-m-d\TH:i:s', filemtime($_SERVER['DOCUMENT_ROOT'] . '/css/font-family/table-CombinedResults.htm')); ?>" />
      

Reconfigured the Ant dist.release build target for the Code Style project to exclude the version number from the codestyle.jar file name and include the CodeStyleTemplate class for use on the Metacentric host.

Latest: Build a better CSS font stack with our font survey results:

Actions: Ask a question about this post, seek clarification or offer a correction.

CSS text ads guide, 10th December 2008

Created a new CSS text ads placement guide with top 10 search engine queries.

Actions: Ask a question about this post, seek clarification or offer a correction.

Sticky keyword optimisation for CSS section, 6th December 2008

Optimised CSS style guide section for new, sticky keywords set and "no keywords" version of standard head include.

Actions: Ask a question about this post, seek clarification or offer a correction.

Shared Tomcat JARs for application libraries, 5th December 2008

Renamed most Metacentric-specific Ant properties to make space for Code Style equivalents. Updated the metacentric.xml build file to match. Added a working draft FontStack servlet configuration to the Code Style application web.xml. Deleted Code Style and JTidy JARs from the Metacentric ROOT web application and moved to the Tomcat shared library. Also Generated a metacentric.jar archive in the home /lib path and copied that to the Tomcat shared library.

Actions: Ask a question about this post, seek clarification or offer a correction.

Site search for servlet pages, 4th December 2008

Updated CodeStyleTemplate with the site search form to include in font sampler servlet, font stack builder, EchoRequest and other servlet pages.

Updated the AbstractSample class SPONSOR constant with FontLab banner link and included a call to the getSponsor() method in CompareSample, ImageSample and TextSample. Also added a div with LocalNav class attribute around the banner and text ads for consistency with other implementations.

Actions: Ask a question about this post, seek clarification or offer a correction.

Previously on Code Style

Find technical implementation notes on all aspects of the Code Style site.

What if you were One Percent Better? Ebooks for Web developers on iPad, Kindle, Nook and Sony Reader
Home · Web fonts · Font stacks · FAQs · Java · CSS · Javascript · HTML · Web manager