
(You must pay 1 Euro for unlimited calls)
This blog belongs to Patrick Fust and contains links mostly concerned about java and security issues.

The Lego Mindstorms Robotics Invention System lets you design and program real robots that do what you want them to. By using artificial neural networks, you can build intelligent robots that can learn and show emergent behavior. This article describes the backpropagation algorithm, a basic neural network, and its implementation on a Lego Roverbot with Java.
Design guidelines represent mere intent; for success however, implementing these guidelines is essential. The traditional way of implementing them is via code reviews. Hammurapi, a design-compliance tool, provides an automated and consistent way of implementing design guidelines, thereby making design reviews effective and painless. In this tutorial, author Sidharth Sankar introduces Hammurapi, compares it with similar tools, and gives a quick peek under the hood to illustrate how it works.
The use of mock objects is a widely employed unit testing strategy. It shields external and unnecessary factors from testing and helps developers focus on a specific function to be tested.
If you are not familiar with the Jakarta Commons, you have likely reinvented a few wheels.
The new chapter will include a solution to one of the most frequently heard complaints about Struts: that it doesn't provide a simple way to meaningfully nest POJO graphs in ActionForms. The provided example code solves this problem and includes an integrated solution for automating conversion, formatting, and validation.
long durationSeconds = 28800; // 8 hours
response.setDateHeader("Expires",
System.currentTimeMillis()
+ (duractionSeconds * 1000));
response.setHeader("Cache-Control",
"public, max-age="
+ durationSeconds);
chain.doFilter(request, response);
Extend log4j to support lightweight over-the-network logging.
This page and its children talk about unit testing with the Mock Objects pattern. In particular, it covers what Mock Objects are, what tools the author (Ben Teese) have used, and important lessons he has learnt along the way.
If J2EE based portals, JSR 168 or WSRP mean anything to you, you have come to the right place. This is a gathering of developers and technical experts working on Portals and related technologies. Here you will find open source projects, articles, tips, news, product announcements, blogs and FAQs. This community is also dedicated to creating a repository of open source and free JSR 168 compliant portlets that can be used on any J2EE portal server available in the market today. This is a great place to obtain portlets, learn, discuss, share knowledge and publicize your work.
AOP (Aspect oriented Programming) enables clean modularization of crosscutting concerns, such as error checking and handling, synchronization, context-sensitive behavior, performance optimizations, monitoring and logging, debugging support, and multi-object protocols
A fun day of coding with gridbags.
Effective Java: "Joshua Bloch's book Effective Java Programming Language Guide" is about tips and tricks about java.
public boolean equals(Object o) {
if (! (o instanceof MyObject)) {
return false;
}
MyObject other = (MyObject) o;
return (value == null ? other.value == null :
value.equals(other.value));
}
public boolean equals(Object o) {
if ((o == null) || (this.getClass() != o.getClass())) {
return false;
}
MyObject other = (MyObject) o;
return (value == null ? other.value == null :
value.equals(other.value));
}
a.equals(b) then b.equals(c) must be true.
... Class A...
public boolean equalsFalse(Object o) {
if (! (o instanceof A)) {
return false;
}
...
}
}
... Class B extends A...
public boolean equalsFalse(Object o) {
if (! (o instanceof B)) {
return false;
}
...
}
}
A a = new A();
B b = new B();
a.equals(b); <- would return true
b.equals(a); <- would return false
a.equals(b); <- would return false
b.equals(a); <- would return false.
Which means the symmetric isn't broke!