Thread View: news.software.readers
9 messages
9 total messages
Started by Florian Rehnisch
Sat, 30 Jan 2010 19:27
quickly hacked script for displaying faces
Author: Florian Rehnisch
Date: Sat, 30 Jan 2010 19:27
Date: Sat, 30 Jan 2010 19:27
39 lines
2031 bytes
2031 bytes
#!/usr/bin/perl -w
exit unless $ENV{DISPLAY};
$outfile="/tmp/showface$ENV{USER}$$";
open OUT,'>',$outfile or exit;
print OUT "Content-Transfer-Encoding: Base64\n\n";
$face=0;
while (<>) {
if ($face) {
/(.)(.*)/;
if ($1 eq ' ') {
print OUT $2;
} else {
$face=0;
last;
}
} else {
/([^:]*): (.*)/;
if ($1 eq 'Face') {
print OUT $2;
$face=1;
}
}
}
close OUT;
system "xli $outfile.png"
unless (system "mimedecode <$outfile|sed '1,4d' >$outfile.png");
Enjoy!
--
flori
Vim-Hilfe auf Deutsch http://www.florianrehnisch.de/vimhelp/
WARNING: PRGRAMMING BUG IN E2FSCK!
OR SOME BONEHEAD (YOU) IS CHECKING A MOUNTED (LIVE) FILESYSTEM.
Re: quickly hacked script for displaying faces
Author: s|b
Date: Sat, 30 Jan 2010 21:02
Date: Sat, 30 Jan 2010 21:02
15 lines
1532 bytes
1532 bytes
On Sat, 30 Jan 2010 19:27:26 +0000 (UTC), Florian Rehnisch wrote: > #!/usr/bin/perl -w 8< snip >8 Are you talking about Face-headers? (*not* X-Face) A friend of mine created this page: <http://randomseed.be/usenet/face-decoder> (Since I can't use your script...) -- s|b
Re: quickly hacked script for displaying faces
Author: Steve Ackman
Date: Sat, 30 Jan 2010 23:46
Date: Sat, 30 Jan 2010 23:46
12 lines
1948 bytes
1948 bytes
In <2010-01-30$17.28.49@x.vimhelp.de.vu>, on Sat, 30 Jan 2010 19:27:26 +0000 (UTC), Florian Rehnisch, eixman@gmx.de wrote: > > > #!/usr/bin/perl -w [...] Why? slrnface already works just fine! ;-) -- ☯☯
Re: quickly hacked script for displaying faces
Author: Florian Rehnisch
Date: Sun, 31 Jan 2010 05:20
Date: Sun, 31 Jan 2010 05:20
16 lines
1960 bytes
1960 bytes
o Steve Ackman <steve@snip-this.twoloonscoffee.com>:
> Why? slrnface already works just fine! ;-)
Because slrnface only supports x-face, not face (those png blobs;
at least my copy).
Well, I didn't state this in my first post, but I think that
script is only useful where tin will run.
Maybe sometime I have enough time and skill to hack slrnface ;-)
--
flori
Vim-Hilfe auf Deutsch http://www.florianrehnisch.de/vimhelp/
WARNING: PRGRAMMING BUG IN E2FSCK!
OR SOME BONEHEAD (YOU) IS CHECKING A MOUNTED (LIVE) FILESYSTEM.
Re: quickly hacked script for displaying faces
Author: Steve Ackman
Date: Sun, 31 Jan 2010 06:59
Date: Sun, 31 Jan 2010 06:59
15 lines
2089 bytes
2089 bytes
In <2010-01-31$05.20.12@x.vimhelp.de.vu>, on Sun, 31 Jan 2010 05:20:40 +0000 (UTC), Florian Rehnisch, eixman@gmx.de wrote: > o Steve Ackman <steve@snip-this.twoloonscoffee.com>: > >> Why? slrnface already works just fine! ;-) > > Because slrnface only supports x-face, not face (those png blobs; > at least my copy). Ah... Ok. I've never seen a face header, so never looked into it. -- ☯☯
Re: quickly hacked script for displaying faces
Author: houghi
Date: Sun, 31 Jan 2010 08:52
Date: Sun, 31 Jan 2010 08:52
15 lines
2021 bytes
2021 bytes
Steve Ackman wrote: >> Because slrnface only supports x-face, not face (those png blobs; >> at least my copy). > > Ah... Ok. I've never seen a face header, so never > looked into it. To me they should be forbidden as they are (tiny) images and _for me_ binaries. houghi -- If you owe the bank $100 that's your problem. If you owe the bank $100 million, that's the bank's problem. If you owe the bank $700 billion, it becomes your problem again.
Re: quickly hacked script for displaying faces
Author: Reinhard Irmer
Date: Sun, 31 Jan 2010 15:50
Date: Sun, 31 Jan 2010 15:50
11 lines
1783 bytes
1783 bytes
On 31 Jan., 06:20, eix...@gmx.de (Florian Rehnisch) wrote: [...] > that script is only useful where tin will run. I'm running tin under Win. How2 use your script? -- regards reinhard
Re: quickly hacked script for displaying faces
Author: Florian Rehnisch
Date: Tue, 02 Feb 2010 06:10
Date: Tue, 02 Feb 2010 06:10
27 lines
2465 bytes
2465 bytes
o Reinhard Irmer <frydd@spamfence.net>:
> On 31 Jan., 06:20, eix...@gmx.de (Florian Rehnisch) wrote:
>> that script is only useful where tin will run.
> I'm running tin under Win. How2 use your script?
With cygwin or the standalone one. Well, if cygwin, then it
should be no big deal. The definition of $outfile might be able
to be left alone. Well, there are two dependencies.
mimedecode - could be available as a cygwin package. (q&d, the
base64 stuff could be done in perl itself.)
xli - an x11 image viewer. If you don't already have the
X-server, better change the last but one line to use a native
image viewer.
Then, you should be able to do '| a showface' in tin (or whatever
you named that script.
Just a loosely hour ...
--
flori
Vim-Hilfe auf Deutsch http://www.florianrehnisch.de/vimhelp/
WARNING: PRGRAMMING BUG IN E2FSCK!
OR SOME BONEHEAD (YOU) IS CHECKING A MOUNTED (LIVE) FILESYSTEM.
Re: quickly hacked script for displaying faces
Author: Reinhard Irmer
Date: Tue, 02 Feb 2010 17:24
Date: Tue, 02 Feb 2010 17:24
20 lines
2111 bytes
2111 bytes
On 2 Feb., 07:10, eix...@gmx.de (Florian Rehnisch) wrote: > o Reinhard Irmer <fr...@spamfence.net>: > > > On 31 Jan., 06:20, eix...@gmx.de (Florian Rehnisch) wrote: > >> that script is only useful where tin will run. > > I'm running tin under Win. How2 use your script? > > With cygwin or the standalone one. [...] as standalone from ftp://ftp.cs.tu-berlin.de/pub/net/news/tin/binaries/win32/tin-1.6.2.sa.zip It would be nice, if we could continue the thread in german. So I set xpost2 d.c.s.n.. If not fup here. xpost:d.c.s.n -- regards Reinhard
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads