Illegal Argument Exception

Miscellaneous Computer Code

Friday, 24 December 2010

JavaScript: validating UTF-8 string lengths in the browser

›
Let's take a JavaScript string: "€100" . This is going to be sent from a browser input box and stored in a web server's da...
Sunday, 19 December 2010

JSP: what all the encoding declarations mean

›
When you see a JSP document, you might wonder why it specifies the UTF-8 encoding three or four times. This is a post about what those decla...
Sunday, 21 November 2010

Comments policy

›
Comments are moderated and will not appear until I approve them. I don't live on the blog, so it may take me some time to see and re...
Sunday, 19 September 2010

Java: System.console(), IDEs and testing

›
The method System.console() can return null if there is no console device present. This comes as a surprise to people when they run their ...
7 comments:
Thursday, 16 September 2010

Java: "Content is not allowed in prolog" - causes of this XML processing error

›
Content is not allowed in prolog is an error generally emitted by the Java XML parsers when data is encountered before the <?xml... dec...
Sunday, 1 August 2010

Java: a fluent I/O API (4/4)

›
This is the fourth post about my experiments with a fluent I/O API. This post covers conclusions and limitations of the implementation. You ...
1 comment:

Java: a fluent I/O API (3/4)

›
This is the third post about my experiments with a fluent I/O API. This post covers how the API enhances exception handling.

Java: a fluent I/O API (2/4)

›
This is the second post about my experiments with a fluent I/O API. This post covers how to extend the API.

Java: a fluent I/O API (1/4)

›
I've been experimenting with fluent API design. You can find the sources in part 4 . I've often been frustrated with the verbosity...
Saturday, 17 April 2010

I18N: comparing character encoding in C, C#, Java, Python and Ruby

›
Don't assume that the character handling conventions you've learnt in one language/platform will automatically apply in others. I...
2 comments:
Tuesday, 12 January 2010

Scala: implementing a "did you mean..?" spelling corrector

›
I was looking at Scala again and decided to implement Peter Norvig 's algorithm for suggesting spelling correction suggestions. I sugges...
Thursday, 17 December 2009

Java: safe character handling and URL building

›
This post discusses HTTP URLs in Java and how to avoid data loss due to encoding/escaping issues. Special mention is made of the query part,...
4 comments:
Thursday, 26 November 2009

Java: application to check binary class versions

›
Here's a simple application based on the code from a previous post . You can run it on .class files, .jar files or directories (it...
Tuesday, 17 November 2009

Java: how to use an IllegalArgumentException

›
Calling my web log Illegal Argument Exception seemed like a clever idea at the time. It is probably just a recipe for confusing Java neophy...
Friday, 9 October 2009

JSF: working with component identifiers (id/clientId)

›
This is a post about how to work with IDs in JavaServer Faces. You may find this useful if you want to use JavaScript with JSF. Example I...
5 comments:
Friday, 18 September 2009

Java: character inspector application

›
This is a small application that's useful for solving character encoding bugs. If you've ever wanted to find out exactly what char...
Saturday, 1 August 2009

JSF: a custom format panel control for localising component layout

›
This post describes a custom JavaServer Faces component for controlling the flow layout of controls based on localised strings.
Wednesday, 22 July 2009

Java: finding class versions

›
The JVM versions your Java classes will run on is often determined by how you compile them. Failure to take care with your classes and depen...
1 comment:
Saturday, 18 July 2009

Java: effective Unicode

›
This is my attempt at a list of maxims to abide by when working with text in Java, in the vein of Effective Java or The Ten Commandments of...
Thursday, 28 May 2009

Java: using XPath with namespaces and implementing NamespaceContext

›
XPath is a handy expression language for running queries on XML. This post is about how to use it with XML namespaces in Java ( javax.xml....
11 comments:
‹
›
Home
View web version
Powered by Blogger.