Skip to main content


Showing posts from 2006

Javascript appendChild problems

We all know IE really sucks, no contest! I've been playing with Lightbox Gone Wild by Chris Campbell. He uses the technique from Lightbox JS by Lokesh Dhakar. This problem appears in Internet Explorer 6 when using the element.appendChild (child) method. The function looks like this:

function addLightboxMarkup() {

bod = document.getElementsByTagName('body')[0];

overlay = document.createElement('div'); = 'overlay';

lb = document.createElement('div'); = 'lightbox';
lb.className = 'loading';
lb.innerHTML = '<div id="lbLoadMessage">'+'<p>Loading</p>'+'</div>';



If the function is loaded in the middle of the document (in DOM: document object), I get this error in Internet Explorer:

Internet Explorer cannot open the Internet site http://localhost/site.

Operation aborted

This problem is probably due to the function …

Grub2 on soekris net4801

I. Requirements
II. Compile via source
III. Installation on target device
IV. Grub configuration
V. Soekris net4801 configuration
VI. Minicom configuration
VII. Related resource - Debian/GNU Linux installation

- Download grub2 (latest alpha! build is 1.94)
- build-essential (glibc6, gcc4, make, etc), depends on your Linux installation
- minicom for terminal emulation
- I am installing grub2 on a cf.

Installation via source
- Download grub2.
- Auto-configure with serial enabled and install root directory set to /usr/local:
./configure --prefix=/usr/local --enable-serial

- Build:

- Install binaries and libraries:
make install

Installation on target boot device
* grub-install - installs grub2 on your device
* grub-setup - set up images to boot from your device

- grub-install: (grub-install --help to see available options)

Example: grub-install --root-directory=/media/usbdisk /dev/sdb1

Note 1: Make sure that you are using the binary that you just compiled and installed. Earlier, I indicat…

Ubuntu network install with Intel Boot Agent

I have an IBM Thinkpad Transnote that does not have any CD drive. I am left with the network install option. This was an easy task when I was still using Mandriva (formerly Mandrake) because the installer includes the images for bootable floppy drives. With Ubuntu, you are left with an option of using your motherboard / Ethernet card's booting capability. My options are: etherboot and the on-board Intel Boot Agent that supports PXE to boot. The following steps will guide you in booting the Ubuntu installer using the Intel Boot Agent. Note that the Ubuntu installer is just a bootstrap, you will have to download the rest of the packages on the Internet. Alternatively, I think you can hack the installer to get the packages from a local host (but this is out of the scope).


* The client is the laptop that has to be installed with Ubuntu.
* The server serves the client (duh!). I am running Ubuntu Dapper (6.06).

DHCP server

We need a DHCP server to serve the client with the netw…

Linux on a Compaq Presario V2000

GNU/Linux (Ubuntu 5.10) on a Compaq Presario V2000

How to make the volume keys work

Objective: Map the volume keys (Volume up/down/mute) to amixer (command-line mixer for ALSA soundcard driver).

Find the keycode of the three keys using xev. After executing xev as an ordinary user in the terminal, it creates a window and then asks the X server to send it events whenever anything happens to the window (such as it being moved, resized, typed in, clicked in, etc.).

Example: after pressing the keyboard key m, you will be see the following report:

KeyPress event, serial 27, synthetic NO, window 0x2800001,
root 0x48, subw 0x0, time 10163530, (97,69), root:(929,430),
state 0x0, ''keycode 58 (keysym 0x6d, m)'', same_screen YES,
XLookupString gives 1 bytes: (6d) "m"

KeyRelease event, serial 27, synthetic NO, window 0x2800001,
root 0x48, subw 0x0, time 10163645, (97,69), root:(929,430),
state 0x0, ''keycode 58 (keysym 0x6d, m)'', same_screen YES…

Migration: The Spiral of (In)Security

by Claudia Aradau

E-journal. ISSN 1505-1161. March 2001.

Sourced from

Jef Huysmans, in an article on migration and European integration, has noted that migration has recently become �located in a security logic�.[1]Discourses of political leaders, feature articles in the media, statistics and communications by police and customs authorities abound in references to the increasing dangers of immigration. Migration, Huysmans argues, is discursively constructed as a threefold danger, in that it posits �existential threats� to the welfare system, to the public order, and to the cultural identity of the community/nation.[2] These new discourses spanning the �European agenda� had not gone unnoticed by the academia. As early as 1993 the Copenhagen School tackled the problem of migration understood in terms of a threat to soci…