Filling Acrobat 8 PDF Form With PDFTK Leaves Fields Empty  
Fields are empty because field names in the FDF file are probably specified incorrectly.

Just run the following:

# pdftk your_form.pdf dump_data_fields > form.pdf.fields

Look in the form.pdf.fields and the names might show up as: topmostSubform[0].Page1[0].my_field_name[0]

Hence in the FDF file it should look like:

... << /T (topmostSubform[0].Page1[0].my_field_name[0]) /V (some field text here yay) ...





  |  [ 0 trackbacks ]   |  permalink  |  related link
DokuWiki: Delete a Namespace 
In a generic case once all pages removed from a namespace it will be automatically deleted.

However, if you still see it in the list just run this cleanup script and it will take care of the problem:

#!/bin/sh

# set the path to your DokuWiki installation here
DOKUWIKI=/path/to/your/wiki

# purge files older than 30 days from the attic
find $DOKUWIKI/data/attic/ -type f -mtime +30 -exec rm -f {} \;

# remove stale lock files
find $DOKUWIKI/data/pages/ -name '*.lock' -type f -mtime +1 -exec rm -f {} \;

# remove empty directories
find $DOKUWIKI/data/pages/ -depth -type d -empty -exec rmdir {} \;



  |  [ 0 trackbacks ]   |  permalink  |  related link
Netgear SC101 Review - Bad, Bad.... Such Waste Of Money 
Netgear SC101 is easily the worst thing I ever bought. First, it broke right out of the box. Netgear replaced it. Unfortunately it hardly made it more usable. The utility that connects the device to Windows constantly fails. The thing is hot as an iron. It crossed my mind to sell it on ebay but I decided against it since I feel bad passing this piece of junk to another person.


  |  [ 0 trackbacks ]   |  permalink  |  related link
Drupal 5x :: Sort Node Attachments Alphabetically 
You need to patch the upload module:

modules/upload/upload.module

Line 848

(old): $result = db_query('SELECT * FROM {files} f INNER JOIN {file_revisions} r ON f.fid = r.fid WHERE r.vid = %d ORDER BY f.fid', $node->vid);


(new): $result = db_query('SELECT * FROM {files} f INNER JOIN {file_revisions} r ON f.fid = r.fid WHERE r.vid = %d ORDER BY LOWER(f.filename)', $node->vid);



  |  [ 0 trackbacks ]   |  permalink  |  related link
MySQL :: #1075 - Incorrect table definition; There can only be one auto column and it must be defined as a key 
When you get a message like that it might mean you have no primary key defined. As in my case I created a table as SELECT from another table and tried to set auto increment on its id column.

Just run the following:

ALTER your_table DROP PRIMARY KEY, ADD PRIMARY KEY ('some_table_column');

It should do the trick...






  |  [ 0 trackbacks ]   |  permalink  |  related link

Next