Source Code

Using the Lua Programming Language to Create a Graphical User Interface

Most toolkits for graphical user interfaces organize the elements of the user interface, typically called "widgets", in a hierarchy: Starting with some container like a dialog or window at the top, the elements like push buttons, labels, or layout managers are added. To add new elements a set of C functions is provided which are called with a handle to the parent widget, the class (or type) of widget that is to be added plus any further arguments like e.g. a label string in the case of a push button.

While it is relatively easy to expose the widget creation and managing functions to Lua, the resulting Lua program will still closely resemble the same functionality coded in C. So the aim is to use Lua's table constructors to define a GUI instead of calling the widget creation routines.

Simulating GPIO Pins

I am currently writing a control and monitoring software system that makes use of GPIO pins. Since I was at the CCC congress in Berlin I did only have my laptop and no real GPIO hardware...

With only a laptop it's a bit hard to write GPIO software, since laptops usually don't have any GPIO pins. So what I needed to test my new software was either a real device (out of reach) or... writing a simulator.

<Nick> What is a GPIO Simulator?
<kettenis> You write to a pin and nothing happens...

Software Projects

All of these projects, except dynload and mod_clamscan, are in the OpenBSD ports and packages collection.

Using Java for CGI Applications

Copyright © 1996 by Marc Balmer, CH-4055 Basel, Switzerland.

This paper discusses strategies and methods to use Java as a programming language for CGI (Common Gateway Interface) applications.

The Java Framework for CGI

(This document describes version 1.01 of the framework)

Copyright © 1996 by Marc Balmer, CH-4055 Basel, Switzerland.

Internet applications written in the Java programming language are mostly designed as applets that run in a Java enabled browser like Netscape.

There are, however, still many web-browser around that don't support Java. These need to use CGI (Common Gateway Interface) to access interactive pages on the web. Although CGI programs traditionally were realized using a scripting language like Perl or even the Bourne shell, nothing speaks against using Java to write CGI program.

Syndicate content