start
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| start [2026/03/20 07:21] – [Disk performance tests] abeverley | start [2026/06/03 11:48] (current) – abeverley | ||
|---|---|---|---|
| Line 92: | Line 92: | ||
| # Maximum width 400px | # Maximum width 400px | ||
| mogrify -resize ' | mogrify -resize ' | ||
| + | |||
| + | ===== Comparing and normalising documents ===== | ||
| + | |||
| + | Use this to compare PDF and word documents: | ||
| + | |||
| + | * Same the word document as plain text | ||
| + | * Use '' | ||
| + | |||
| + | Use this Perl script to normalise each file: | ||
| + | |||
| + | my $str = do { local $/; < | ||
| + | # Strip paragraph numbers | ||
| + | $str =~ s/ | ||
| + | # Remove wrapped lines that are not paragraph separators | ||
| + | $str =~ s/ | ||
| + | # Strip space at beginning of lines | ||
| + | $str =~ s/^\h+//mg; | ||
| + | # Normalise paragraph breaks | ||
| + | $str =~ s/ | ||
| + | |||
| + | Compare both files using '' | ||
| ===== Using Overlay (OpenStreetMap) ===== | ===== Using Overlay (OpenStreetMap) ===== | ||
| [[overlay|Using Overlay to extract data from OpenStreetMap]] | [[overlay|Using Overlay to extract data from OpenStreetMap]] | ||
| + | |||
| + | ===== Quick and dirty string dumping in Perl ===== | ||
| + | |||
| + | From https:// | ||
| + | |||
| + | A non-obvious feature of sprintf can help here: sprintf(' | ||
| + | |||
| + | sprintf(' | ||
| + | sprintf(' | ||
| + | sprintf(' | ||
| + | |||
| + | Don't like decimal character codes? Use hex instead: | ||
| + | |||
| + | sprintf(' | ||
| + | sprintf(' | ||
| + | sprintf(' | ||
| + | |||
| + | Don't like dots? Use whatever separator you want: | ||
| + | |||
| + | sprintf(' | ||
| ===== Using iptables and PHP to create a captive portal ===== | ===== Using iptables and PHP to create a captive portal ===== | ||
start.1773991277.txt.gz · Last modified: by abeverley
