Skip to navigation

Archive for November, 2007

How to make permanent changes to Slax on a usb drive

Monday, November 19th, 2007

There are several ways to do this, see the Slax documentation. Here is an example; I wanted to make the symlink mentioned in the last post permanent (linking a directory slax_webfiles from the larger data partition to the webroot directory). Don’t boot off the USB drive, just mount it on a running system. Navigate to […]

How to run a web server off a usb flash drive

Monday, November 19th, 2007

Actually, turns out to be really easy: Install Slax on the USB flash drive. Here’s how I did it. Download the Xampp module for Slax. I got version 1.6.2 from here. Copy the Xampp_1_*_.mo file that you downloaded to the modules folder on your USB flash drive. Boot off the USB flash drive. Open a […]

Variable scope in JavaScript

Wednesday, November 14th, 2007

Here’s a very nice summary of the scope of variables in JavaScript, i.e. where in your script they’re availalbe. An important point that I needed for a script: If you need to declare a variable inside a function but need its scope to be global, omit the var keyword.

Drupal: how to disable broken module manually

Wednesday, November 14th, 2007

I did something wrong applying a patch to a module. This resulted in a broken site — I wasn’t able to see the Administration page anymore to disable the module (or any page for that matter). Log on to your server via SSH. mysql -p Gets you into mysql. To see your databases: show databases; […]

Drupal form tweaker module

Wednesday, November 14th, 2007

The Drupal Form Tweaker module lets you change the way users can select vocabulary/ category terms when they submit content. By default, this is a dropdown list, which is a bit ugly and especially annoying to use if you want to select multiple terms. With form tweaker, you can set the terms to be presented […]