Logtilla and GeoIP: analyze the geolocation of web clients

This article presents a simple Logtilla log analysis module, log_geoip_stats, which gives the top N client countries, in terms of hits, from web access log files. This module uses the libgeoip-erlang library to get geolocations from clients’ IP addresses. libgeoip-erlang installation Install pre-requisite software: Mercurial, and the GeoIP library. On Debian, those are packages mercurial, … [Read more…]

Logtilla’s internals: a tutorial on using ASN.1 and linked replies to interact between Erlang and port programs

I have recently released Logtilla, a framework for parsing and analysing web access log files, and showed in a previous article how to use Logtilla with a simple example. One of the most interesting aspects of Logtilla is in the inside. Logtilla demonstrates how to use ASN.1 to communicate between an Erlang program and a … [Read more…]

Coming changes in GNU Autoconf’s Erlang support

I have sent patches to GNU Autoconf to add new macros for testing Erlang modules, include files, and functions: AC_ERLANG_CHECK_MOD, AC_ERLANG_CHECK_HEADER,AC_ERLANG_CHECK_LIB_HEADER, and AC_ERLANG_CHECK_FUNC. I also sent a patch to fix the AC_RUN_IFELSE macro which executes Erlang test code, so that this macro cleanly fails if the code doesn’t compile, and another patch to fix the … [Read more…]

EUnit integration into GNU Autotest

GNU Autotest is GNU Autoconf’s unit testing tool, and is very generic, portable and simple. Autotest is therefore well suited to run tests using other testing tools, such as EUnit (Erlang/OTP’s unit testing tool), JUnit, etc. I just added to GNU Autoconf the AT_CHECK_EUNIT macro to run EUnit unit tests in Autotest testsuites. It is the … [Read more…]

News on Erlang support in GNU Autoconf 2.64

I have restarted actively maintaining the Erlang support in GNU Autoconf. Autoconf version 2.64 has been released on July 26th, which contains a few changes to its Erlang support. Autoconf had a bug breaking the AC_ERLANG_CHECK_LIB macro, between versions 2.61a and 2.63, making those versions of Autoconf practically unusable for Erlang projects. This bug was … [Read more…]

Automatically generating Erlang/OTP .app and .rel files using GNU Autoconf

A user of the GNU Autotools (Autoconf and Automake) with Erlang/OTP has recently asked me about a way to automatically generate the .app (application resource) files and .rel (release resource) files for an Erlang/OTP application. As for now, Automake provides no help to generate those files. This is Autoconf’s job. What Autoconf can do is … [Read more…]

Dryverl version 0.1.3 is out

I have published a new version of Dryverl, version 0.1.3. This is a minor release, that corrects two bugs. Dryverl supports <dev-c-local-variable/> elements to declare local variables in the generated C code. The first bug was that Dryverl allows such an element to be empty, which would mean that the generated C local variable declaration … [Read more…]

Dryverl talk at ICFP 2006

I am back from Portland, OR, USA. I have attended the ACM SIGPLAN Erlang workshop, the ACM SIGPLAN ICFP conference, and the CUFP workshop. I have taken a few photographs of all events. The article about Dryverl that I have presented in the Erlang workshop and the presentation’s slides are freely available.

Decoding Palm Datebook databases: using Erlang for binary data manipulation

I have written a small module for the decoding of Palm® Datebook database files: palm_db.erl and palm_db.hrl. Datebook database files contain all the appointments of a Palm® PDA. Note that it can only decode database files that have been archived by a synchronization software. It does not implement a synchronization conduit, i.e. it cannot do synchronization … [Read more…]