Apple releases Mac OS X 10.4.7 update
June 29, 2006 on 10:18 am | In Apple | Add a commentApple has released the “latest Mac OS X 10.4.7 update”:http://www.apple.com/support/downloads/macosxupdate1047combointel.html.
Technorati Tags: apple, mac+os+x,
Related Posts:
- Boot Camp for Mac OS X on Intel-based Macs
- Mac OS X 10.2.8
- MyEclipse IDE Now Supports Eclipse 3.1
- DragonBurn rocks
Using Decorator Pattern with Templates in RIFE
June 18, 2006 on 10:48 pm | In Java | Add a commentI 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: Java, RIFE, framework
Related Posts:
- Developing web applications with RIFE
- RIFE web framework
- Refactoring by Renaming in Visual Studio .NET 2005
- How to Parse Dates from Strings
Essential Versioning Tools
June 14, 2006 on 8:52 pm | In General | 3 commentsTwo 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 commentA 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: microsoft, windows+vista, graphics, videos
Related Posts:
- Internet Explorer, spyware?
- Copy/paste command-line utilities
- The ridicule of web applications
- Three weeks with a MacBook Pro laptop
Validating a Date Field with RIFE
June 7, 2006 on 9:28 pm | In Java | Add a commentHere 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:
- How to Format Dates for SQL in Java
- Rapid web development
- How to use multiple triggers in RIFE
- Arbitrary sort of selection options
Powered by blog.mu with Pool theme design by Borja Fernandez.

