Johan Ekenberg

Computer Programmer and Double Bass Player

Software Projects

These are old projects. Current stuff is on Github!

IDE.PHP

Ide.php is a web-based editor for quick development of server-side code. It offers a rapid prototyping environment, letting the user test and save snippets of code with minimal overhead.

Ide.php was primarily written for PHP, but has been extended to enable development in any server-side scripting language available on the server where it is deployed.

login_keepalived

login_keepalived is a small daemon that keeps remote terminal logins alive. I wrote this because my remote ssh sessions where repeatedly being cut off after a few minutes of inactivity, it seems by some router/firewall which I couldn’t control.

The idea is to have a daemon on the server write a NULL character to logged in terminals every minute. This has no effect on terminal sessions, but keeps TCP sessions alive preventing timeouts / aborts. It can be run as a global daemon for all terminals, or privately for a single user.

Othello

Since the game of Othello has such a limited set of rules, it’s considered the easiest game to write a computer program for. I wrote this online version just for fun, and it’s a very simple implementation.

The “intelligence” in this program consists of 9 filters of decreasing weight. When it’s the computer’s turn to play, it runs all possible moves through the filters. The move that matches at the earliest level is chosen. There is no recursion, meaning that the computer doesn’t try to figure out the opponents possible draws in advance. Strangely enough, this simple scheme is enough to make the computer play a quite descent game of Othello!