Software

JavaCC Grammar for RCS files - rcsfile(5)

How to find out which newphrase extensions are in your CVS repository's version control files (*,v)?
Here's a JavaCC grammar for RCS file syntax checking that scans and parses RCS (=CVS) files and outputs all found newphrase items to stdout. More...
(July 29th, 2010)

parsled

parsled is a controller service for a "serial/parallel port LED and pushbutton interface" device. It is intended for Linux (Unix) systems. More...

OID Converter

The OID converter is a handy little tool to convert ASN.1 OIDs from readable dotted decimal notation to binary hexadecimal Distinguished Encoding Rules (DER) representation and vice versa. If you're into x.509 certificates, this may be useful to you, too. More...

JBoss/JAWS Database Mappings for PostgreSQL7

The SQL database type mappings furnished as part of JBoss do not seem to contain a section for PostgreSQL 7.x. [Note that recent releases of JBoss do contain support for PostgreSQL 7.x.] More...

latest

Perl script to list files by date. Files may come from directory tree traversals or from stdin. More...

ftpdelete

Perl script to delete files on an FTP server. More...

Base64

C program to convert between binary and Base64 encoding. GPL. More...

byte2bin

C program to convert AS31 byte format output files to EPROM image files. Public Domain. More...

LCDAppender

Small extension module for the Apache Jakarta Log4j logging infrastructure. Have Log4j emit messages to LCDproc-supported LCD! Same license as log4j. More...

Favicon

How to make a favicon for your web site using Linux tools. More...

Thinlet WebStart

How to run a Thinlet Java GUI application through Java WebStart. More...

SMTP CatchAll Proxy

A simple standalone Java SMTP proxy which allows redirecting all mails sent through it to one recipient irrespective of original recipient domain. More...

Java HTTP User Name Log4j MDC Servlet Filter

This simple servlet filter puts the logged-in user's name into a Log4J Message Diagnostic Context. More...

Check Digits

How to compute some interesting check digits. More...

Java Wake-On-LAN Client

Extremely simple Wake-On-LAN client, this time in Java. License: LGPL. Use with hex MAC address on command line. JWol.java

Jetty 6.0.1 with Apache Derby / JavaDB JDBCUserRealm

I've had a hard time getting this to work... More...

A free Java implementation of RFC 2898 / PKCS#5 PBKDF2

I was unable to find a free Java implementation of this so here's my own. A JBoss Database Login Module is provided as well. More...
(June 30th, 2011)

How to get XDoclet 1.2.3 to generate serialVersionUIDs?

It seems non-trivial to make "recent" versions of XDoclet generate serialVersionUIDs in its generated classes. Here is a viable solution: an additional tag @svuid on bean class level defines a base serialVersionUID. The XDoclet XDT files read this tag's value, add an offset to make the UID different per generated class, and write it out. xdoclet-svuid-module-1.2.3.zip. Of course, it is preferable to not have to use XDoclet any longer at all, but sometimes one does not have a choice. Released under same license as XDoclet itself.

Amendment: a while later I realized that one does not really need a unique serialVersionUID across classes. It is quite sufficient to set a constant value in each generated class. The same value may be used in multiple classes, and the value can be bumped whenever the template changes.

RSS Feeds from Pebble on Jetty?

I found RSS feeds are not working on a Jetty-based (5.x) installation of Pebble (2.4): the JSTL tags were output verbatim. Solution is to amend WEB-INF/web.xml with a stanza that associates *.xml file extensions with the pre-defined jsp servlet. Pebble creates XML via JSPs, not via Servlets. This file extension mapping may also be added to Jetty's etc/webdefault.xml file with no change to Pebble.
Furthermore, when running this combination on Java 6 it is required to remove the jaxb* and log4j jars from WEB-INF/lib.
(March 18th, 2010)

Echo

To see what parameters get passed to some program I needed a Win32 executable program (EXE) that outputs its parameters, one per line. Sounds trivial to do? Sure, but with no scripting and no change to the calling program. Right after Hello, World, probably the most simple program, ever! echo.c, echo.exe, echo.exe (Base64). (10 Oct 2013).

> .\echo.exe Hello World
Hello
World

Send feedback and suggestions to the e-mail address shown on the contact page.

Back to main page.

 

This page was last changed on October 15th, 2014. © Matthias Gärtner 2002,2014. Impressum & Datenschutz