March 3, 2005
Why This Site Won’t Use application/xhtml+xml
Byron and I seem to be heading for another round of make it standard or make it work discussion. In this case, Byron pointed out that pages on this site are served as text/html instead of application/xhtml+xml. After some brief investigation, here’s why I’ll be sticking with text/html:
It works. application/xhtml+xml doesn’t.
Firstly, apparently IE 6 doesn’t support application/xhtml+xml, at least according to http://www.xml.com/pub/a/2003/03/19/dive-into-xml.html so I’d have to dynamically detect the browser and change the mime type anyway.
March 2, 2005
New Site
If you’re seeing this post, you’ve made it through the maze of redirects to the new home of my blog. If you normally read via a planet or RSS feed, now would be a good time to head on over to the actual site to check out the new design (featuring the Brisbane skyline courtesy of Iain Robertson).
Apologies if previous entries show up as new, the RDF feed has dates in it so hopefully it won’t cause any problems but changes to blogs almost always seem to cause some problems.
February 24, 2005
How To Fix NetNewsWire “Domain: POSIX Type: error code: 32” Errors
If you are finding that NetNewsWire doesn’t update your feeds like it should be and when you open /Applications/Utilities/Console you see a bunch of lines like:
2005-02-24 15:54:24.679 NetNewsWire Lite[371] HTTP download error -- Domain: POSIX Type: error code: 32 -- URL: http://feedster.com/links.php?url=http://www.intencha.com/adrian/&type=rss
and you’re using Privoxy try changing the proxy settings from using localhost to using 127.0.0.1. Doing so will also fix a problem where Internet Exploreron OS X can’t connect to any sites despite the fact that Safari can connect successfully.
February 20, 2005
On Smart Tags And Producer Rights
Iain Robertson and Robert Scoble have commented on Google’s new smart tags feature and while I agree with most of what they said I have to disagree on their views of producers rights.
Iain said:
Admittedly, the main people complaining will be those whose content has been altered, i.e. the producer of a given piece of work, who might find that some people are tracing new and interesting links away from their site.
February 17, 2005
Evangelists and Koolaid
A fair while back I commented on a job opening at Microsoft, noting that my blog would probably work against me in that particular case due to it being so critical of Microsoft. Robert Scoble noted that Microsoft don’t want to hire evangelists that just drink the company Kool-aid and have no credibility. He’s right of course but slightly missed my original reasoning. It’s not so much that I’ve made some negative comments about Microsoft – more that I pretty much have never said anything positive about Microsoft on my blog.
February 17, 2005
How To Simulate Key Events In Swing JUnit Tests
Gianugo Rabellino has been playing with unit testing in Swing – an area that I’ve spent a lot of time complaining about in the past. In his particular case he’s trying to send key events to Swing components programmatically so that his JUnit tests can run automatically. As Gianugo discovered you can’t just create a KeyEvent and send it to Component.dispatchEvent() because it gets rerouted to the focus manager.
Gianugo’s solution was to display the component on screen in a JFrame and make sure it has focus.
February 12, 2005
Book List
I’ve set up a blog to keep track of the books I want to read. This year I want to do a lot more reading, particularly on technical subjects but also just stuff in general. The most recent entries are syndicated into this blog over on the right hand side of the main page and RSS junkies can grab the feed.
February 10, 2005
Allowing Tests To Fail
The basic idea of unit tests is that you write them once and run them a lot – you don’t check in your changes unless all the unit tests pass. This is a great idea.
There is one problem with it – it prevents unit tests from being used as a specification of work to be done later. I don’t mean it prevents test driven development where the tests are written then the code is to make them pass is added and then the tests and code are checked in.
February 10, 2005
Setting Up Continuous Integration
I’ve spent a large chunk of this week investigating what the best way to set up continuous integration builds is for our product. Being a cross platform application we need a continuous integration set up that builds on four different OSs constantly (Windows, Mac OS X, Solaris and Linux). Ideally of course it would do so on all variants of those OSs and at some point that might be possible using vmware of some kind.
February 6, 2005
The Kleptones – From Detroit To J.A.
I noticed today that The Kleptones have released an mp3 version of their broadcast on “The Rinse” entitled “From Detroit To J.A." It’s not as good as “A Night At The Hip Hopera” but it is definitely enjoyable. It involves a lot of Motown material but unfortunately they too often took the average lyrics instead of the sensational music.
My pick of the series would have to be “Really Rappin’ Something” mostly for it’s driving baritone sax line.
February 5, 2005
AppFuse
Ben Fowler points to AppFuse, a quick way to set up J2EE projects with more buzz words than you can shake a stick at. Specifically it sets up a Tomcat/MySQL apps that:
Uses Ant, XDoclet, Spring, Hibernate (or iBATIS), JUnit, Cactus, StrutsTestCase, Canoo’s WebTest, Struts Menu, Display Tag Library, OSCache, JSTL and Struts (or Spring MVC)
That’s a huge number of different technologies. It’s not necessarily bad to use all those technologies together (in fact it’s probably very good) but it’s important to be aware that pragmatic programmers don’t use wizards they don’t understand.
February 5, 2005
Missing The Point
It’s funny, last night I read this reuters article about Microsoft beginning an initiative to improve their interoperability and thought wow that’s excellent! I bet Slashdot completely misses the point of the message and rants on about how Bill Gates also mentioned that opensource doesn’t necessarily lead to interoperability. Sure enough, Bill Gates Claims Linux Has Poor Interoperability. Sigh.
Gates of course is right – there are plenty of open source products out there that aren’t interoperable in one way or another.