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

Quartz HTTP monitor development, 30th December 2009

Created a new Quartz based version of the HttpMonitor class by extension with various refactors of the superclass. Removed the private visibility modifier from several constants so they are accessible to the subclass. Created a simple no-arguments constructor for HttpMonitor to conform to the requirements of Quartz through its subclass. The constructor declares an anonymous inline class for the DAOLog variable that actually logs to the System.out stream. Also created a public Set getUrlKeySet() method to acquire the URLs to check from the superclass Map.

The QuartzHttpMonitor class extends HttpMonitor and implements the Quartz Job interface with an execute(JobExecutionContext) method that calls a separate checkUrl() adapted from the superclass checkUrls() method. The execute method stores an array of URLs passed by the JobExecutionContext's JobDataMap store. A private static counter variable is used to cycle through the URLs in the array on the given schedule.

A QuartzTest class loads the URLs to check from a Java properties file, creates the JobDataMap, job CronTrigger and sets the Scheduler for requests based on a command line parameter. Both the QuartzTest and QuartzHttpMonitor classes declare a Logger instance and have detailed debug and information log calls throughout. The Log4J configuration QuartzLog.properties logs program information messages to the console, error messages are also sent by email using an SMTPAppender.

log4j.appender.LEmail=org.apache.log4j.net.SMTPAppender
log4j.appender.LEmail.layout=org.apache.log4j.PatternLayout
log4j.appender.LEmail.layout.ConversionPattern=%-5p - %m%n

log4j.appender.LEmail.SMTPHost=mail.example.com
log4j.appender.LEmail.From=local\@example.com
log4j.appender.LEmail.To=local\@codestyle.org
log4j.appender.LEmail.Subject=Error report
log4j.appender.LEmail.SMTPUsername=********
log4j.appender.LEmail.SMTPPassword=********
log4j.appender.LEmail.BufferSize=5
      

Added the Quartz JAR file and Apache Log4J to the Ant compilation target and created a Windows batch file to launch the scheduler, configured with a set of Code Style RSS news feed URLs to check one at a time each 20 minutes.

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

Premium content name your price, 27th December 2009

Changed the scheme for premium content subscriptions to set your own price and updated the "Why pay ..." includes. Removed the FAQ by email option from all premium content links and standfirst references. Added a new section "Preliminary answer" sub-heading before premium FAQ stub answers for clearer separation from the standfirst. Created an overloaded version of the printPremiumContentLink() method for premium stub articles to customise the "subscribe now" call to action and link to point to the sign-up form on the same page.Re-generated all FAQ content.

Checked in friendly redirects for forthcoming applet object eBook and premium content subscription page.

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

FAQ update, 12th December 2009

Released the latest set of answers from the Java inheritance FAQ, Java interface FAQ, Javascript FAQ and Javascript browser FAQ, Servlet containers FAQ, Site manager FAQ and Web fonts FAQ.

Java inheritance

Java interface design

Java modifiers

Javascript

Javascript browser

Servlet containers

Web fonts

Web site manager

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

Site statistics border collapse style, 11th December 2009

Added the border-collapse class Collapse to the site statistics page top referrers and top requests tables.

<table class="Collapse" width="69%">
      

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

Top entrance keywords update, 9th December 2009

Updated all top 10 search engine results lists for the text ads service pages.

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

Font survey update, 5th December 2009

Published the latest font survey results update with mailing list changes and rolling archive of submissions. Also added more recent Firefox versions to the UserAgentSQLGenerator class for reporting font survey applet conformance. Created a new top 5 fonts listing per platform but left un-published.

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

Added new BuySellAds zones to the standard sidebar include with a new CSS rule for the AdButtonBar class selector:

.AdButtonBar {
  float:            left;
  width:            125px;
  clear:            left;
  padding:          0%;
  margin:           2.6% 0% 0% 5.3%;
}
      

This required an Internet Explorer 6 workaround for a narrower left margin.

.AdButtonBar {
  margin:           2.6% 0% 0% 2.7%;
}
      

Updated the priority sequence of AddThis share links button items based on service analytics.

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