X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=hacks%2Fwebcollage;h=53625101adb65c11db8a978b23dfb7ef1fbfccdf;hb=c28aecf9fc41e3a03494bacf7279745425e2fa18;hp=260230abba83d01c820af5991d726579efbcc9f9;hpb=723c9eeee862766a1534b2ce17b78adbfac1c3be;p=xscreensaver diff --git a/hacks/webcollage b/hacks/webcollage index 260230ab..53625101 100755 --- a/hacks/webcollage +++ b/hacks/webcollage @@ -12,12 +12,26 @@ # software for any purpose. It is provided "as is" without express or # implied warranty. + # To run this as a display mode with xscreensaver, add this to `programs': # # default-n: webcollage -root \n\ # default-n: webcollage -root -filter 'vidwhacker -stdin -stdout' \n\ +# If you have the "driftnet" program installed, webcollage can display a +# collage of images sniffed off your local ethernet, instead of pulled out +# of search engines: in that way, your screensaver can display the images +# that your co-workers are downloading! +# +# Driftnet is available here: http://www.ex-parrot.com/~chris/driftnet/ +# Use it like so: +# +# default-n: webcollage -root -driftnet \n\ +# +# Driftnet is the Unix implementation of the MacOS "EtherPEG" program. + + require 5; use strict; @@ -33,9 +47,13 @@ require POSIX; use Fcntl ':flock'; # import LOCK_* constants use POSIX qw(strftime); +use bytes; # Larry can take Unicode and shove it up his ass sideways. + # Perl 5.8.0 causes us to start getting incomprehensible + # errors about UTF-8 all over the place without this. + my $progname = $0; $progname =~ s@.*/@@g; -my $version = q{ $Revision: 1.93 $ }; $version =~ s/^[^0-9]+([0-9.]+).*$/$1/; +my $version = q{ $Revision: 1.96 $ }; $version =~ s/^[^0-9]+([0-9.]+).*$/$1/; my $copyright = "WebCollage $version, Copyright (c) 1999-2002" . " Jamie Zawinski \n" . " http://www.jwz.org/xscreensaver/\n"; @@ -581,8 +599,7 @@ sub pick_image_from_body { } elsif ( ! m@^[^/:?]+:@ ) { $_ = "$base$link"; s@/\./@/@g; - while (s@/\.\./@/@g) { - } + 1 while (s@/[^/]+/\.\./@/@g); } # skip non-http