This article describes how we used Groovy to create a for the clauses in a rules engine. We have been collaborating in the development of an “expert system” application for KnowledgeBench Ltd. This application uses a forward chaining rules engine to provide a “smart” system capable of creating formulations in domains such as pharmaceutical tablet formulation, inhalers, paints, food & drink and cosmetics. Continue reading Groovy, DSLs and Rules engines
We’ve recently had a problem where we wanted to produce a website in multiple languages including Russian, Czech, Romanian, and other eastern European languages. No problems, we thought, we can just use Java properties files and the
fmt:message JSTL tags. Continue reading Localisation in Java
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…
Note: See the May 2008 update at the bottom of this article.
alert("You are here") around the code to find out what’s going on. The problems with this approach are that you can’t easily switch them on and off without going through and commenting out individual calls; the fact that you get a dialog box up which needs to be accepted by the user can affect time-sensitive code, so you might not be able to debug it using this method; and finally it’s difficult to compare values from one
alert to the next since the text just comes up in a dialog box.
The aim of this project was to be able to get the groups that an NT user belongs to using ADSI (Active Directory Services Interface) and make this available in Java. In the first article we described how to get ADSI information using VBScript, JScript and then C++. Now we show how to wrap up the C++ function in a DLL that’s accessible using JNI. Continue reading Accessing ADSI from Java
The overall aim of this project was to be able to get the groups that an NT user belongs to using ADSI (Active Directory Services Interface) and make this available in Java. This first article describes how to get ADSI information using VBScript, JScript and then C++. It shows how the different languages make it easier or harder. Continue reading Accessing Microsoft’s ADSI–part 1
If you have access to Visual C++, then compiling C++ to produce an EXE or a DLL isn’t particularly hard. If not, then you either have to use
gcc or there is an excellent free C++ compiler provided by Borland. You can download
freecommandlinetools.exe Continue reading Using the Free Borland C++ compiler
The aim of this project is to generate an SQL script from an existing database such that the tables and data can be recreated exactly as it was. Continue reading Generating a database dump SQL Script from Java