A friend recently pointed me to a useful development toolbar for Firefox. It’s similar to the development toolbar here but does even more stuff.
You can find the toolbar at http://chrispederick.com/work/webdeveloper/.
Just a quick tip about xsl which I haven’t found anywhere else…
I wanted to generate some human (well me) readable XML using XSL and found that if you add xml:space=”preserve” to the opening tag, then, at least if you are using Xalan and Java to do the transformation, it will preserve the spaces between the tags in the XSL and you’ll get something more or less readable. Continue reading xml:space=”preserve” and xsl:attribute
We recently had what sounded like a simple job to do: produce a questionnaire in several languages including Russian and store the results in a MySQL database. Now I could have chosen PHP to produce the questionnaire, but I thought that using Java resource bundles would be the easiest. I knew that using the JSTL fmt: tags we could do fmt:message and pull the messages out of a resouce bundle so all I had to do was get the translators to take the english property file, translate it and hey presto! Java knows about Unicode right into its core, so it would all work wouldn’t it.
How wrong I was! Continue reading Internationalising JSPs
I was reading something about a new OS called Inferno. (See Inferno.)
At first sight it’s an OS designed for ease of building cross platform distributed systems. There’s nothing new in that of course, but it looks like a decent attempt at doing everything in one place. The website’s got “screenshots” on there though which seems a bit odd to me in that it equates “OS” with “user interface” which rather loses sight of the core issue. Continue reading Out on a Limbo
I’m just trying to write a SAX parser for the XML log files generated from the Logging API if you use the XMLFormatter.
There are a couple of problems with the XML generated. One is that the XML is not well formed until the log file is “completed” because it doesn’t have a final </log> element (not surprising really). Continue reading Making Xerces ignore a DTD
I’m running Tomcat on a windows box and I want to use Windows/Domain users and groups to control access to web application pages. So far I’ve thought of a number of different approaches, but none of them are quite right yet. Continue reading Getting NT groups in Java using Jacob
I don’t suppose that this is something that many people need to do, but just in case I thought I’d post this little code snippet Continue reading Converting Lisp universal times to Java Dates
I’ve recently been trying to make some of my scripts work with Firefox 1.5 (from IE) and I was looking for some debugging help to set me on the right track. I found this tool which seems to work very well: http://getahead.ltd.uk/ajax/venkman.
It’s an updated version of Venkman fixed to work with Firefox 1.5.
One of the things it helped me find is that whereas in IE if I ask a table cell (TD) for the nextSibling and get the next TD, in Firefox you always seem to get a text node first and then the next TD. Similarly for getting the next and previous rows.
Have you ever had the problem where there’s a class missing and you’ve no idea which jar it might be in? Or been running a Java program and wondered why the implementation of a class doesn’t seem to match what you think, and it turns out that there’s another implementation earlier in the classpath? Or wondered which jar has the properties file you’re looking for?
If you’ve answered yes to any of these question, you might like these little utilities Continue reading Which jar contains my…
If you are doing web development for Internet Explorer, then have a look at this toolbar from Microsoft.
It provides all sorts of useful features: it’ll validate the HTML, show the sizes of images, where tables and cells and DIVs are, allow you to see the DOM and all sorts of other useful bits and pieces.
(Thanks to PCPro magazine for that tip! www.pcpro.co.uk)