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

Apache server subsection, 24thth April 2010

Re-structured the Apache custom server error page articles to use a subsection-specific local navigation and trimmed the standfirst copy on some articles. Added site log entries since 10 April and archived the site log March 2010 entries.

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

Applet object version check, 22nd April 2010

Added an objectVersion parameter to the Windows font survey applet and others to record which version of the nested applet object is used to submit the survey, the outer “IE” or fallback “FF” versions. Added the object version value to the applet's HTTP post submission and Soupermail email notification template.

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

Sorted JComboBox model for FAQs, 17th April 2010

Added 14 new answers to various FAQs, including premium answers for on Java bitwise and bit-shift operators, bubble sort and static thread priority. Created a new SortedComboBoxModel based on a version at the Java Tips Weblog to list FAQ section and category listings in the FAQ editor application alphabetically . One significant change was to make the int argument final in the insertElementAt(Object, int) method and use a separate int in the method's for loop. Also changed to use the List interface as the return and argument type of various methods, rather than Vector, though Vector is the concrete type that is passed.

CSS problems

JSP tags & libraries

Java interface design

Java programming

Java servlets

Java static context

Java threads

Javascript

Javascript browser

Text ads

Changed the compareTo(Object) method for the CategorySelection and SectionSelection container classes for the FAQ data editor application to enable them to be sorted alphabetically according to their labels. The toString() method shows the hierarchy of categories and sections, so sorting alphabetically also groups sections and categories together. Also changed the hierarchy separator character to “>” which reads clearer.

public final int compareTo(final Object object) {

    CategorySelection other = (CategorySelection) object;

    return toString().compareTo(other.toString());
}
      

Updated the LabelledSelectList class to pass the SortedComboBoxModel into the JComboBox constructors. Also made some minor housekeeping changes to the FAQMenuGenerator class, including commenting out some disused methods and cutting previously commented lines.

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

New thumbnail banners, 14th April 2010

Created some new call to action thumbnail banners for the JTidy development notes and Validate your markup with NSGMLS “HTML Validator” articles, as shown on the HTML & XHTML section index.

Included links to the font stack builder and fantasy font sampler and survey results in a number of site log entries and FAQ answers. Also added links to the new W3C CSS validator installation article links to various site log entries and the CSS AnchorPoints page.

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

Font survey update, 10th April 2010

Completed the monthly font survey results update. Archived submissions up to 10 April, shortly before the font survey applet was introduced for the Windows font survey.

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

Modified the PostgreSQL psql scripts to select font survey email newsletter subscribers to exclude the results column headers.

\f ''
\pset tuples_only
      

Updated the working draft article about applet object markup with statistical notes about browser Java support per operating system and the proportion of submissions to the Windows, Mac and Linux font surveys.

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

DOM1 script binding draft, 9th April 2010

Started draft notes for an article about DOM1 Javascript binding with trial work on a new FAQ questionnaire concept. Made modifications to CSStdLayoutCommon.css to style div elements in FAQ lists for the new scheme.

/*
  Wide margin-right to float images
  and box-outs there.
*/
#Content p, #Content ol, #Content ul,
#Content dl, fieldset, #Content .FAQ div,
.MenuBox, #Content h3,
.FAQSearchBox, #Content .SQL,
#Content .StackTrace {
  margin-right:     33.5%;
  width:            auto;
  min-width:        62%;
  clear:            none;
}

/*
  min-width necessary alongside local nav
  for Opera 10
*/
#Content dl.FAQ p, #Content dl.FAQ div,
#Content dl.FAQ pre, #Content dl.FAQ dl,
#Content dl.FAQ ol, #Content dl.FAQ ul {
  margin-right:     34.2%;
  min-width:        60%;
}
      

Also created working draft styles for the questionnaire overlay itself.

#Content .FAQ div.FAQuestionnaire {
  position:         absolute;
  width:            48.2%;
  min-width:        48.2%;
  font-size:        large;
  visibility:       visible;
  border:           solid 1px #ccc;
  background:       #efefef;
  color:            #333;
/*
  -moz-border-radius:    5px;
  -moz-box-shadow:       1px 3px 5px #666;
*/
}
#Content .FAQ .FAQuestionnaire p,
#Content .FAQ .FAQuestionnaire h3 {
  margin-right:     0;
}
#Content .FAQ .FAQuestionnaire h3 {
  margin-top:       0.7em;
  margin-bottom:    0.5em;
}
.FAQuestionnaire form {
  margin:           0em 0em 1.5em 1em;
}
.FAQuestionnaire form .close {
  position:         absolute;
  right:            1.2em;
  width:            1em;
  height:           1.8em;
  line-height:      1em;
  font-weight:      bold;
  text-align:       center;
}
.FAQuestionnaire form .submit {
  font-size:        large;
  opacity:          1;
}
      

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

Drop down menu update, 7th April 2010

Modified the DOM1 visibility menu system menu colour to contrast with the new grey header area and introduced pre code highlighting classes for Java and Javascript keyword, CSS property and string literal classes for all code.

#Menu1, #Menu2, #Menu3, #Menu4, #Menu5,
#Link1, #Link2, #Link3, #Link4, #Link5 {
  float:            left;
  width:            17.9%;
  border-style:     solid;
  border-color:     #fefefe #dfdfdf #666 #ccc;
  margin:           0.6% 0.2%;
  padding-left:     1%;
  color:            #039;
  background:       #f9f9f9;
  font-family:      "Bitstream Charter", "URW Palladio L", Palatino, "Palatino Linotype", "Hoefler Text", Georgia, "Book Antiqua", Times, "Times New Roman", serif;
  font-weight:      normal;
  font-size:        1.1em;
}
      
.element, .keyword, .property {
  color:            blue;
  background:       transparent;
}
.att-name {
  color:            #009;
  background:       transparent;
}
.att-value, .literal {
  color:            teal;
  background:       transparent;
}
.comment {
  color:            green;
  background:       transparent;
}
      

Applied the pre code classes to articles in the Javascript DOM subsection and updated the thumbnail banner for the DOM1 menus article with a screen shot of the new menu colour scheme. Created a new working draft index page and table of contents for the Javascript DOM subsection.

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

Site log archive, 3rd April 2010

Archived remaining site log entries for 2009 and created archive pages for site log, January 2010 and site log, February 2010. Created a site log contents 2009 page and new entries for the current site log contents page. Updated the site log archive navigation panel to include a date selector for 2010.

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

Golden rules for Javascript promotion banner, 2nd April 2010

Created a thumbnail banner image for the Golden rules for Javascript article and added it to the existing call to action include.

Created a PostgreSQL select query to create a Facebook format email address import list and sent friend invites to all Code Style newsletter subscribers.

SELECT DISTINCT trim(email) AS "Email Addresses" from person
ORDER BY "Email Addresses";
      

Added PostgreSQL formatting controls to the head of this and the newsletter subscribers query for Linux, Mac and combined font survey mailing lists to strip column formatting and column separators.

\f ''
\pset format unaligned
      

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