Archive for the 'Java' Category

DVSL: An Alternative to XSLT

June 26th, 2009 | Category: Java, XML, XPath, XSLT

DVSL is a fairly small, little known, product associated with the Velocity project over at Apache which takes the best part of XSLT, XPATH, and replaces the verbose and frustrating scripting of XSLT with a java-based template language instead.
Read more

No comments

Embedding Rhino Part I: Parsing Command Line Arguments in JavaScript

March 11th, 2008 | Category: Java, JavaScript, Programming

Rhino is a JavaScript/ECMAscript implementation in Java. Using the new java1.6 scripting API you can now easily embed JavaScript into your Java applications. I thought I’d try writing yet another implementation of the net_tool application using Rhino. Originally this was going to be a single article, but it turns out to be a two-fer.
Read more

No comments

Converting hex to Binary in Java Too

March 05th, 2008 | Category: Java, Programming

So apparently the hex to binary in 4 languages portion of this web page is what gets the most google hits and who am I to argue? So without further ado, hex to binary in Java as well…

Read more

No comments

Java’s @Override Annotation

February 28th, 2008 | Category: Java, Programming

Most people are aware of java annotations by now, but I’m not sure everyone knows about @Override. They really should.

Read more

No comments

Using Javacc

February 19th, 2008 | Category: Java, Programming

If you want to parse a custom language in java then Javacc is your tool. At the moment this is probably more a reminder to myself than a great article for anyone else to read, but as you find it useful feel free to take a look. More after the link…
Read more

No comments

Why I Can’t use Maven

February 13th, 2008 | Category: Java, Programming

In my most recent development effort at work I decided to take a look at the new kid on the block for building java projects: Maven 2. After 6 months or so of use I’m now preparing to use ant instead. Details after the link.
Read more

No comments

Using Custom Symbols in CUP

February 15th, 2007 | Category: Java, Programming

CUP lists being able to use your own Symbol class as a big selling point of the latest version, but they don’t say much about how to do it. In addition there is actually a fairly annoying bug in the code. Of course you may ask “Why not use javacc?” Good question. Anyway, without further ado… Read more

No comments