Create a front page for WordPress that does not show up twice

Note: I think this is not an issue anymore, since WordPress finally created the “menu” design feature. There is no need anymore to create front pages to show content as tabs at the top of the page. The “menu” feature works better than front pages.

Several people wonder how to configure WordPress to show ones own page when opening the blog (also called front page). There are instructions on wordpress support.

If the theme of your blog happens to show your front page twice (duplicated front page), then you will need to adopt a workaround, as I will discuss.

The expected solution: As explained on WordPress support, create your own front page and another empty page. Go to Settings->Reading, select “A static page”, set yout page as the “Front page” and the empty page as the “Posts page”.

The Bug: WordPress will show all top level pages (that have no parent) and both pages chosen at Settings->Reading->A static page. Your homepage satisfies both criteria, therefore it is added twice. Blame WordPress, this has not been fixed for years!

The ugly workaround: Back to your pages, edit your front page. At the attributes you will find a combo to set the “Parent page”. Select any other page, eg. your empty blog page and save the changes. This will mess up the hierarchy of your pages, but that is the price you pay for the workaround.

When Java code becomes funny

Eventually, some fun happens while writing Java code.

Apache Commons: Error or Success?

An Error is a subclass of Throwable that indicates serious problems that a reasonable application should not try to catch. (see Java API docs). Does it make sense to call such subclass “Error“?

Found at org.apache.commons.configuration.plist.PropertyListParser

Two way names

Particularly, the Eclipse naming convention resulted this interesting symmetric method declaration.

protected void initialize(ColumnViewer viewer, ViewerColumn column)

This documentation is available at Eclipse JFace documentation.

JFace table sorting

Nowadays, when the application displays as a table, the modern user expects to click on the the column header to change the ordering criteria. Unfortunately, SWT/JFace API have not yet implemented this feature transparently. The programmer is required to write a bunch of code to implement this feature on each table.
For this purpose, I have written a single class that listens to table columns and applies ordering to the table viewer.

Read more of this post