This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| corpusaging [2007/01/24 09:32] – manni | corpusaging [2007/03/02 13:45] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| 1. Add the following trigger to the matrix by using the SQLite commandline utility | 1. Add the following trigger to the matrix by using the SQLite commandline utility | ||
| - | < | + | < |
| create trigger insert_matrix after insert on matrix | create trigger insert_matrix after insert on matrix | ||
| begin | begin | ||
| - | < | + | |
| end; | end; | ||
| </ | </ | ||
| + | |||
| 2. Modify Bayes.pm version 1.289 by inserting the following code at line 1791 | 2. Modify Bayes.pm version 1.289 by inserting the following code at line 1791 | ||
| - | <code> <code> | + | < |
| # | # | ||
| # Mark words lastseen unless we are in message view mode | # Mark words lastseen unless we are in message view mode | ||
| - | # | + | # |
| - | < | + | unless (defined($ui)) { |
| - | | + | |
| - | my $bucketid = $self->{db_bucketid%%__%%}{$userid}{$class}{id}; | + | my $bucketid = $self->{db_bucketid__}{$userid}{$class}{id}; |
| - | my $seeninbucket = $self->{db%%__%%}->do( " | + | my $seeninbucket = $self->{db__}->do( " |
| set lastseen = date(' | set lastseen = date(' | ||
| where wordid in ( $ids) and | where wordid in ( $ids) and | ||
| bucketid = $bucketid ;" ); | bucketid = $bucketid ;" ); | ||
| - | | + | |
| } | } | ||
| - | </ | + | </ |
| With the above changes, POPFile will start tracking the ' | With the above changes, POPFile will start tracking the ' | ||
| Line 33: | Line 34: | ||
| < | < | ||
| Corpus Aging Prepared Sat 20-Mar-2004 | Corpus Aging Prepared Sat 20-Mar-2004 | ||
| - | < | + | |
| Bucket | Bucket | ||
| ------------ ----- ----- ----- ----- ----- ----- ----- ------- | ------------ ----- ----- ----- ----- ----- ----- ----- ------- | ||
| Line 42: | Line 43: | ||
| ------------ ----- ----- ----- ----- ----- ----- ----- ------- | ------------ ----- ----- ----- ----- ----- ----- ----- ------- | ||
| Totals | Totals | ||
| - | < | + | 56.9 |
| - | </ | + | </ |
| The above report was produced with the script CorpusAge . | The above report was produced with the script CorpusAge . | ||
| Line 50: | Line 51: | ||
| < | < | ||
| Corpus Aging Prepared Wed 16-Jun-2004 | Corpus Aging Prepared Wed 16-Jun-2004 | ||
| - | < | + | |
| Bucket | Bucket | ||
| ------------ ----- ----- ----- ----- ----- ----- ----- ------- | ------------ ----- ----- ----- ----- ----- ----- ----- ------- | ||
| Line 59: | Line 60: | ||
| ------------ ----- ----- ----- ----- ----- ----- ----- ------- | ------------ ----- ----- ----- ----- ----- ----- ----- ------- | ||
| Totals | Totals | ||
| - | < | + | 55.2 |
| </ | </ | ||
Should you find anything in the documentation that is incomplete, unclear, outdated or just plain wrong, please let us know and leave a note in the Documentation Forum.