WestNIC provides reliable web hosting services
Fastwebhost offers cheap web hosting & reseller hosting services
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.
Follow the latest entries to the site log.
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.
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.
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.
opac-main.pl!
Actions: Ask a question about this post, seek clarification or offer a correction.
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.
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.
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.
Find technical implementation notes on all aspects of the Code Style site.
For a summary overview, see the final site log contents.