Apple releases Mac OS X 10.4.7 update

June 29, 2006 on 10:18 am | In Apple | Add a comment

Apple has released the “latest Mac OS X 10.4.7 update”:http://www.apple.com/support/downloads/macosxupdate1047combointel.html.

Technorati Tags: , ,

Related Posts:

Using Decorator Pattern with Templates in RIFE

June 18, 2006 on 10:48 pm | In Java | Add a comment

I have been playing with “RIFE”:http://www.rifers.org during my spare time a lot lately. I’m refactoring the code of one of my applications to use the “Decorator design pattern”:http://en.wikipedia.org/wiki/Decorator_pattern on RIFE templates. Watch this space for an example of how templates are decorated.

Technorati Tags: , ,

Related Posts:

Essential Versioning Tools

June 14, 2006 on 8:52 pm | In General | 3 comments

Two essential version control tools for today: “SmartCVS”:http://www.syntevo.com/smartcvs and “SmartSVN”:http://www.syntevo.com/smartsvn, both available from the same company.

Related Posts:

See Windows Vista

June 8, 2006 on 9:05 pm | In General | Add a comment

A quick follow-up on my “earlier post”:http://coding.mu/archives/2006/06/08/windows-vista-beta-2-available/. Despite boasting about being a Mac OS X guy to someone who asked me if I had tried Windows Vista Beta 2 myself, I am curious about what is brewing in the Windows world. Although developing applications for Windows is what puts food on our table and pays the mortgage, I have remained relatively detached from the recent developments coming from Microsoft.

Anyway, to see what is coming up in Windows Vista, there is no better place than “See Windows Vista”:http://www.seewindowsvista.com/. Judging from the promotional videos, the features of the new operating system — the back-end features, that is — vastly improve on the ease of developing graphics-heavy applications. Of course, the Microsoft marketing gurus have chosen the juiciest videos, but there is one irrefutable trend: applications are becoming more and more graphical.

Technorati Tags: , , ,

Related Posts:

Validating a Date Field with RIFE

June 7, 2006 on 9:28 pm | In Java | Add a comment

Here is a quick way to validate a multi-part date field in RIFE. By “multi-part field”, I mean one that is made of several fields, in this particular case, a date field, a month field and a year field.

This is best done by creating a bean to hold the input data. Say, we are creating a form to schedule a task. The required input are:

* title
* description
* due date

The TaskBean will be as follows:

public class TaskBean extends Validation {
	private String title;
	private String description;
	private int[] dueDate;

	//... accessor methods

	public void activateValidation() {
		addConstraint(new ConstrainedProperty("title").notNull(true).notEmpty(true));

		addRule(new AbstractValidationRule() {
			public boolean validate() {
				boolean validated = true;

				int day = dueDate[0], month = dueDate[1], year = dueDate[2];

				//... validate field components

				return validated;
			}

			public ValidationError getError() {
				return new ValidationError("INVALID_DATE", "dueDate");
			}
		});
	}
}

The gist of the solution here is the addRule method of Validation subclass. It adds a new AbstractValidationRule that contains a method for validating a given input (in this case, the due date) and returning any found error.

Related Posts:




Powered by blog.mu with Pool theme design by Borja Fernandez.