Articles

Javascript Debug Utility

Friday, October 7th, 2005 by DenisH

Note: See the May 2008 update at the bottom of this article.

One of the problems when writing JavaScript is that you don’t have a development environment with a debugger to find out what’s going on. For Microsoft platforms, there is the Microsoft Script Debugger which provides some help, but often people resort to just sprinkling 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.

Here we present three functions that allow you to put debug calls in your code and switch them on and off as needed. (more…)

Accessing ADSI from Java

Thursday, May 19th, 2005 by DenisH

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. (more…)

Accessing Microsoft’s ADSI–part 1

Sunday, April 24th, 2005 by DenisH

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. (more…)

Using the Free Borland C++ compiler

Wednesday, March 9th, 2005 by DenisH

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 (more…)

Generating a database dump SQL Script from Java

Thursday, October 28th, 2004 by DenisH

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. (more…)