Illegal Argument Exception

Miscellaneous Computer Code

Thursday, 31 July 2008

Java: determining the version of an XML document

›
When working with XML in Java, it is not uncommon to want to work with the data using strongly typed objects that enforce the document struc...
Monday, 30 June 2008

Java: class names

›
In Java, it is possible to get a String representation of a class by calling the Class.getName() method. Since Java 1.5 (AKA Java 5), it h...
2 comments:
Monday, 26 May 2008

C: hex dump application

›
A C version of PrintHex to avoid a dependency on Mono .
2 comments:
Sunday, 25 May 2008

C: Hello, World!

›
gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2) # include <stdio.h> int main () { printf ( " Hello, W...
3 comments:
Thursday, 1 May 2008

Java: generating a DOS executable

›
By incrementally changing instructions in an assembly language, it is possible to build up a picture of how the bytes relate to the assembly...
1 comment:

Assembler: Hello, World! [2]

›
NASM version 0.98.39 compiled on Feb 25 2005 DOS, 16bit, x86 ; syntax expected by NASM ; DOS, x86, 16bit org 100h ; start...

Assembler: using debug.exe to write DOS programs

›
C:\WINDOWS\system32\debug.exe Windows (XP) still comes with Debug. C:\test>DEBUG -a 0C8A:0100 mov ax,0200 0C8A:0103 mov dx,0041 0...
5 comments:

Assembler: Hello, World!

›
DOS, x86, 16bit, debug.exe mov ax , 0200 mov dx , 0048 int 21 mov dx , 0065 int 21 mov dx ,006C int 21 mov dx ,006C int 21 ...
4 comments:
Wednesday, 30 April 2008

C#: file hex dump application

›
A simple application for printing file contents as hexadecimal.
2 comments:
Tuesday, 29 April 2008

C#: Hello, World!

›
using System ; public class HelloWorld { public static void Main (String [ ] args) { Console . WriteLine ...
Tuesday, 22 April 2008

Java: using EL outside J2EE

›
${example.expression.language.expression} If you have done much JSP programming, you will be familiar with the Expression Language...
5 comments:
Monday, 14 April 2008

Java: finding binary class dependencies with BCEL

›
Sometimes you need to find all the dependencies for a binary class. You might have a project that depends on a large product and want to fig...
2 comments:
Wednesday, 9 April 2008

Java: finding the application directory

›
EDIT 2009/05/28: It has been pointed out to me that a far easier way to do all this is using this method:      URL url = Loc...
5 comments:
Tuesday, 8 April 2008

Java: synchronizing on an ID

›
If you are a Java programmer, you will be familiar with synchronized blocks. Object myObject = //some instance synchronized( myObje...
6 comments:

Java: Hello, World!

›
public class  HelloWorld  {     public static  void  main ( String []  args ) {         System.out.println ( "Hello,...
‹
Home
View web version
Powered by Blogger.