🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #261668

Dynamic X-Face (was: slrn/1.0.3 and OpenSSL/1.1.0c?)

#261668
From: Marcel Logen
Date: Fri, 06 Jan 2017 21:18
143 lines
7444 bytes
tlvp wrote:

>On Sat, 24 Dec 2016 10:58:24 +0000 (UTC), Marcel Logen wrote:
>> tlvp in news.software.readers:

>>>You have some programmatic way to get your X-Face to show your posting
>>>time/date-stamp?
>> 
>> Yes, some years ago I wrote a set of (Perl-)Scripts to
>> achieve this.
>> 
>
>Magnificent :-) !
>
>>>                 Care to  expand on that in any way, please? Thanks! 
>> 
>> I'm not shure to understand you correctly:
>> Do you mean there is a security problem with this? 
>
>Oh, no, Marcel, not at all. What I meant was that I'd welcome further
>information regarding how those (Perl-)Scripts might look, and whether I
>might be able to achieve a similar result even though on a Windows system.

OK, well. :-)

There are two Perl scripts, "pxface.pl" and "fxface.pl".

| Archive:  xface.zip
|   Length      Date    Time    Name
| ---------  ---------- -----   ----
|       903  2016-12-23 00:12   fxface.pl
|      9669  2016-12-23 00:07   pxface.pl
| ---------                     -------
|     10572                     2 files

These scripts take each a "unix time" specification as
argument, e. g.:

../pxface.pl 1483562531

at which the "1483562531" represents the date/time
"Wed, 04 Jan 2017 21:42:11 +0100".

The pxface.pl script produces output like this (48x48):

| 000000000000000000000000000000000000000000000000
| 000000000000000000000000000000000000000000000000
| 000000000000000000000000000000000000000000000000
| 000000000000000000000000000000000000000000000000
| 000000000111000000111000000010000001111100000000
| 000000001000100001000100000110000001000100000000
| 000000000001000001000100000010000000000100000000
| 000000000010000001000100000010000000001000000000
| 000000000100000001000100000010000000010000000000
| 000000001000100001000100000010000000010000000000
| 000000001111100000111000000111000000010000000000
| 000000000000000000000000000000000000000000000000
| 000000000000000000000000000000000000000000000000
| 000000000000000000000000000000000000000000000000
| 000000000000000000000000000000000000000000000000
| 000000111000000100000000000000011100000001000000
| 000001000100001100000000000000100010000010000000
| 000001000100000100000000000000100010000100000000
| 000001000100000100000111111000100010001001000000
| 000001000100000100000000000000100010001111100000
| 000001000100000100000000000000100010000001000000
| 000000111000001110000000000000011100000001000000
| 000000000000000000000000000000000000000000000000
| 000000000000000000000000000000000000000000000000
| 000000000000000000000000000000000000000000000000
| 000000000000000000000000000000000000000000000000
| 000000000000001000001000010000010000000000000000
| 000000000000001100011000000000010000000000000000
| 000000000000001010101000110000111100000000000000
| 000000000000001001001000010000010000000000000000
| 000000000000001000001000010000010000000000000000
| 000000000000001000001000010000010100000000000000
| 000000000000001000001000111000001000000000000000
| 000000000000000000000000000000000000000000000000
| 000000000000000000000000000000000000000000000000
| 000000000000000000000000000000000000000000000000
| 000000000000000000000000000000000000000000000000
| 001110000010000000000100001110000000010000001000
| 010001000110000000001000010001000000110000011000
| 000010000010000100010000000010001000010000001000
| 000100000010000000100100000100000000010000001000
| 001000000010000100111110001000001000010000001000
| 010001000010000000000100010001000000010000001000
| 011111000111000000000100011111000000111000011100
| 000000000000000000000000000000000000000000000000
| 000000000000000000000000000000000000000000000000
| 000000000000000000000000000000000000000000000000
| 000000000000000000000000000000000000000000000000

The fxface.pl script generates the actual X-Face string (by
dint of the "compface" program which has to be installed):

../fxface.pl 1483562531

| X-Face: #*d+E#4\"xN:\p3hi]Kadv[='h"Q>ZF/PkV13A2G'A")#YLT3UvK~dgAaao]|Gz$.-:8R"KAC?s9/|6@g`M:S't&Ephgv|9%unk:EJ23Sk/z\)Vwn9~gZp&^q9<UN;f$&nRtp|{6]>nX&eSoO

"fxpace.pl" calls "pxface.pl", so it is sufficient to launch
"./fxface.pl 1483562531" to produce the X-Face string. However,
you have to adjust the path to "pxface.pl" at line 16 of
"fxface.pl". (Line 15 is only a comment without effect.)

I don't know, if there is a Windows version of compface, but
I assume that.

You have to adjust the path to the "compface" (or compface.exe?)
binary at line 37 of "fxface.pl". (Line 36 is a comment.)

Furthermore, I don't know how to attach these scripts to
40tude Dialog in Windows.

Here some links:

<https://en.wikipedia.org/wiki/Unix_time>

<http://www.dairiki.org/xface/> (there you can input the above
mentioned X-Face string "X-Face: #*d+E#4[...]" and you get the
corresponding 48x48 black-and-white image; there is also some
information about X-Face in general)

<http://ybtra.de/div/2016h2/xface.zip> (here you can download a
ZIP archive with my two scipts)

Hint: These scripts have Linux line endings (LF instead of CRLF as
in Windows), so you can open the files with WordPad and save them
from there; then the line endings should be CRLF.

Use these scripts at your own risk, I'm not a programmer, but
I have written them back then for my own use. There is no warranty
at all!

Have fun! :-)

Marcel
-- 
 +-------+  +-------+   +-+ +--+  +-+                                   
 +-----+ +--+       +---+ +-+  +--+ +-+                 +---+          +
+---+  +---+                    +-----+ +----+   +-+  +-+   +-+  +-----+
+   +------+                    +-------+    +---+ +--+       +--+      
Technical Details
Message-ID: <20170106fr211858@r18.ybtra.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
References: <20161223fr165226@o15.ybtra.de> <pccm7q1xh7c6$.j2zrpfb4d3ec.dlg@40tude.net> <slrno5sl6g.vv.4@o15.ybtra.de> <lct37dbjz54t$.17fg68hxdu8me$.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Message-ID: <20170106fr211858@r18.ybtra.de>
Subject: Dynamic X-Face (was: slrn/1.0.3 and OpenSSL/1.1.0c?)
Date: Fri, 6 Jan 2017 22:18:58 +0100
From: Marcel Logen <333200007110-0201@ybtra.de>
References: <20161223fr165226@o15.ybtra.de> <pccm7q1xh7c6$.j2zrpfb4d3ec.dlg@40tude.net> <slrno5sl6g.vv.4@o15.ybtra.de> <lct37dbjz54t$.17fg68hxdu8me$.dlg@40tude.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
Newsgroups: news.software.readers
Organization: Bureau Logen Bonn Germany
Lines: 143
Mime-Version: 1.0
X-Trace: tota-refugium.de 1483737540 24961 eJwFwQkBwDAIA0BL5UkAORRW/xJ2B6Nwwgk6Hl5rqjFalrV+ULU5fg0tVERHzxfoPMsdm/sDC7oRAg== (6 Jan 2017 21:19:00 GMT)
X-Complaints-To: abuse@news.tota-refugium.de
NNTP-Posting-Date: Fri, 6 Jan 2017 21:19:00 +0000 (UTC)
User-Agent: flnews/0.14 (for GNU/Linux)
X-Face: f/%5`uf;-'H`8y=Q*D~)rIgL+aWlCCx~S9hS>r4Pw-W$x(o@_q'Co+c~=3Oy~Rx]}y[8EG<'2]{Gqm@3/V|@!!7w8a"]P'jeNGB?$nhOssDRR=8"CE!0,ENcA\U8/N_9Bt{O{[+O]o!chSg(vxTvEk$mdr
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAADFBMVEXM5v8A1TMAZv9mMwDpsI3+AAAAW0lEQVR4nGMIRQIMDgxwwDhQHK1VqxrgHAVkGTycVQsQHKUGDSTTGLiQ7WFqIIqDpEeDAck0LmR7qONt5v9/EBx+IIRzbBiYD2DnoCgjxwAijWZANpp8nyInMQCFeigKW2WBnAAAAABJRU5ErkJggg==
Cancel-Lock: sha1:CnMevo4F0nVQ7k1J1V7GAnC02HY=
X-User-ID: eJwFwQkRADAIAzBLfIVNDgerfwlL4Kk5FYkMELyul6KxIs1exDOJRvkblO3Mk7WyQ24f6fkXpRF9
X-NNTP-Posting-Host: eJwNx8EBwCAIA8CVBAnQcdpI9h/B3u+w05IViQwIiocOeW2TH2uwl9acFIOTHcZ6XRj7nH/sAhhyESk=
X-Received-Body-CRC: 2305242457
X-Received-Bytes: 7426