Who said that e-voting was hard?

As this video makes abundantly clear, e-voting is simple… as long as you want to vote for Dubya.

On a more serious note, Slashdot covered some real problems with the e-voting machines in Florida recently.

Interesting summary of how Windows memory arguments work

At work, there’s been some debate on how best to structure our J2EE servers to maximise utilisation of a scarce resource (per-CPU licenses!). The crux of the debate centred, for some reason, on how we can allocate more JVM instances per server.
Continue reading “Interesting summary of how Windows memory arguments work”

I’d rather be right than certain

The New York Times has a really interesting article on the faith-based presidency entitled Without a Doubt It covers a lot of the concerns, particularly within the Republican party, that people have about Bush’s willingness to ignore inconvenient facts.
Continue reading “I’d rather be right than certain”

If Architects Had To Work Like Web Designers…

Dear Mr. Architect:

Please design and build me a house. I am not quite sure of what I need, so you should use your discretion. My house should have somewhere between two and forty-five bedrooms. Just make sure the plans are such that the bedrooms can be easily added or deleted. When you bring the blueprints to me, I will make the final decision of what I want. Also, bring me the cost breakdown for each configuration so that I can arbitrarily pick one.
Continue reading “If Architects Had To Work Like Web Designers…”

Getting FIT

No, it’s not an exercise craze (though I do want to get serious about losing weight soon). I’m talking about the FIT acceptance test harness. I looked into it recently, and this (rather extended) post describes what I found out.
Continue reading “Getting FIT”

Gotcha with Struts/WebLogic and forwarding multi-part requests

Turns out that, with Struts 1.1. at least, this can be a bad thing to do. Why? You lose the parameters on the request.
Continue reading “Gotcha with Struts/WebLogic and forwarding multi-part requests”

Creational vs access patterns, and other diversions

A little while back, I blogged about how static and singleton are not synonymous, and one of the things I mentioned in there was the concept of an “access pattern”. This is a term I’ve been kicking around for a while (in person, anyway… I think that was the first time I’d written about it), and I wanted to explore it a bit more here.
Continue reading “Creational vs access patterns, and other diversions”

Follow-up on IoC with Struts

Don Brown made a very good point about a gotcha with the IoC technique I demonstrated with Struts: it’s potentially not threadsafe.
Continue reading “Follow-up on IoC with Struts”

Roll-Your-Own IoC with Hibernate

It can be pretty useful to supply dependencies to domain objects that you’re loading via Hibernate This is where Hibernate Interceptors come into play.
Continue reading “Roll-Your-Own IoC with Hibernate”

Roll-Your-Own IoC with Struts

IoC, aka dependency injection, is the current trend. The idea is simple: create your normal class, and rather than going and fetching things you might want (like datasources, factories, and so on), get them given to you instead. This greatly facilitates things like unit testing, because you’ve got a lot less dependencies to set up.

Struts uses Actions to drive an application. This describes a way to use dependency injection techniques with Struts.
Continue reading “Roll-Your-Own IoC with Struts”