Archive for November, 2007

i can patch this!

*nix command of the day:

diff -Naur old new > new.patch

Where “old” and “new” are files or directories to patch.

Example (a Drupal patch for IDs duplication):

$ patch -p0<fapi-5.x-dupe-id_111719-151.patch
patching file includes/form.inc
$

Creating patch for Drupal:
diff -up original.php new.php > filename.patch

another example:

diff -up path/to/file/example.module path/to/file/exampleNew.module > mypatchname.patch

See also:

How to listen webpages with Konqueror

In Italian:

apt-get install festival
apt-get install festvox-ita*

Open Konqueror, go to the speech option in the tools menu (in Italian localization: Strumenti > Configura testo). Set a voice at your choice and check the sound settings.

After that, you can listen webpages through the speech tool menu via festival, it’s good to check website usability. Good listening!

See also:
utilizzare-festival-insieme-a-kpdf-per-leggere-le-vostre-slide

Enable Drupal clean URLs on tophost.it

Supposing you have uploaded the Drupal codebase on htdocs, you have to:

  1. Verify that htdocs/.htaccess files is present
  2. Modify htdocs/.htaccess:
    1. uncomment the RewriteBase line and set it to:
      RewriteBase /
  3. Run the Clean URL test on admin/settings/clean-urls and then Enable clean URLs
  4. Job done!

See also: