HOWTO Netboot a Sun machine using RARP

This article was first written in June 2005 for the BeezNest technical
website (http://glasnost.beeznest.org/articles/271).
This article will explain how to netboot a Sun machine using RARP with a Debian/GNU Linux server. Install package rarpd:
$ sudo apt-get install rarpd
Configure your TFTP server: Adapt the options in /etc/init.d/rarpd to match the directory where you TFTP server delivers its files from. Create a /etc/ethers file:
xx.xx.xx.xx machine
Take care of «machine» name being resolvable from /etc/hosts or whatever other name-resolution system o

Sorting out web encoding problems

This article was first written in June 2005 for the BeezNest technical
website (http://glasnost.beeznest.org/articles/270).

Introduction

This article is about sorting web forms encoding problems. In particular, it looks into an encoding problem found when serving a UTF-8 form, expecting a completed UTF-8 form to come back, but really getting a ISO-8859-1 or ISO-8859-15 form. It is aimed to be a solution article, explaining step by step how to reverse-engineer such a problem to find a reasonable solution.

OpenLDAP online backups

This article was first written in June 2005 for the BeezNest technical
website (http://glasnost.beeznest.org/articles/269).
For BDB and HDB backends only, online backups (ie without stopping slapd to backup) are possible with slapcat. For example, to backup the directory "dc=example,dc=com" to /tmp/ldap-backup.ldif:
slapcat -f /etc/ldap/slapd.conf -b "dc=example,dc=com" -l /tmp/ldap-backup.ldif
For other backends, the best solution is to replicate to another LDAP server and backup this one. See also:

UNIX and ports < 1024

This article was first written in May 2005 for the BeezNest technical
website (http://glasnost.beeznest.org/articles/262).
On UNIX, the ports < 1024 are accessible to user root only. That has many implications, as then most standard networked servers have to start as root anyway, because they use well-known ports (like HTTP, SMTP, POP, IMAP, FTP, …). To reduce the risk, most of them then start as root, open the port(s) they need and then change to another user.

HOWTO Install and use PHPDoc

This article was first written in May 2005 for the BeezNest technical
website (http://glasnost.beeznest.org/articles/260).

Introduction

This article is meant for busy people who want to have a go at phpDocumentor. It was written after an install on Windows XP equipped with EasyPHP, but should be very similar in other situations (it's just a set of PHP scripts after all).

Getting the files

Go get the files on the PHPDoc server (or if you have an OS-specific package, use it).

Install ViewCVS on RH FC2

This article was first written in May 2005 for the BeezNest technical
website (http://glasnost.beeznest.org/articles/259).

Introduction

This article is intended to help system administrators with very moderate knowledge of RedHat Fedora (Core 2) install ViewCVS 0.9.3

Getting the file

Apparently, there is no packaged version of ViewCVS for RHFC2 coming from a reliable source, so go get it on SourceForge (in this case, Ireland mirror) - ViewCVS from SourceForge

JavaScript: Image rollover

This article was first written in May 2005 for the BeezNest technical
website (http://glasnost.beeznest.org/articles/258).

Description

Allow to implement images rollovers by simply defining the images of a specific CSS class. Then you only have to call the function "rollover_register()" and pass it the optional parameters:
  • the CSS class you want to trigger. Default: "img.rollover".
  • the pattern you want to add to the original image (e.g.: image.png and image.over.png). Default: ".over".
  • the handler function for onMouseOver.

JavaScript: getElementsBySelector()

This article was first written in May 2005 for the BeezNest technical
website (http://glasnost.beeznest.org/articles/257). As of 2008, I don't
remember the source exactly, but the links will lead you to them.
Inspired by Andy, I decided to have a crack at something I've been thinking about trying for a long time. document.getElementsBySelector is a javascript function which takes a standard CSS style selector and returns an array of elements objects from the document that match that selector.