Stephen Viles: Articles

Atom feed

1 June 2010

Introduction to Java web applications

I used the following material to give a one-hour overview of Java and web applications to a group of developers experienced in the Microsoft ecosystem.

Read more...

Tags:

31 May 2010

Removing line noise with a user style sheet

I find text with underlining or strikethough difficult to read, so I use the following user style sheet to remove it, except when hovering over links.

Read more...

Tags: ,

25 April 2010

A pattern for scripts that update data

The following Bash script is designed to be run from a crontab entry. It performs a database update (using Oracle's sqlplus), checks the output for errors, and adds a success or failure comment to a JIRA ticket by sending an email to the JIRA instance.

Read more...

Tags: ,

23 April 2010

Moving from Blogger to nanoc

Blogger are shutting down their (S)FTP facility, so I'm moving to nanoc. I've redirected all current URLs and given the site a minor refresh.

Read more...

Tags: (none)

9 February 2009

What's the problem we're trying to solve?

When a discussion starts to get overly general, and seems to be generating more problems than solutions, a simple question can help regain some focus.

Read more...

Tags:

6 February 2009

Hibernate trap: Do not directly access fields in another entity instance

Hibernate is great, but about once a year we get bitten by using it incorrectly. Latest lesson: Don't directly access fields on any instance other than 'this'. Use the appropriate getter instead.

Read more...

Tags: ,

26 November 2008

Comparing XML using line-oriented diff tools

If you need to compare two XML files that have only a few differences, you can use vimdiff or other line-oriented diff tools. You first need to format the XML with one attribute per line.

Read more...

Tags: ,

17 October 2008

Correct, in error, appropriate, or inappropriate? How are you going to know?

Today a colleague sent a diagram dividing a system into 'correct' and 'in error' portions through phases of waterfall development.

Read more...

Tags: