From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/11307 Path: main.gmane.org!not-for-mail From: Andrew J Cosgriff Newsgroups: gmane.emacs.gnus.general Subject: BBDB X-Face Gallery maker Date: Sun, 08 Jun 1997 16:36:21 +1000 Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: multipart/mixed; boundary="Multipart_Sun_Jun__8_16:36:20_1997-1" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035151038 29514 80.91.224.250 (20 Oct 2002 21:57:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:57:18 +0000 (UTC) Cc: Gnus Beta Testers Return-Path: Original-Received: from sandy.calag.com (root@sandy [206.190.83.128]) by altair.xemacs.org (8.8.5/8.8.5) with ESMTP id AAA24576 for ; Sun, 8 Jun 1997 00:20:12 -0700 Original-Received: from xemacs.org (xemacs.cs.uiuc.edu [128.174.252.16]) by sandy.calag.com (8.8.5/8.8.5) with ESMTP id AAA07409 for ; Sun, 8 Jun 1997 00:20:18 -0700 Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by xemacs.org (8.8.5/8.8.5) with SMTP id CAA22290 for ; Sun, 8 Jun 1997 02:19:42 -0500 (CDT) Original-Received: from claymore.vcinet.com (claymore.vcinet.com [208.205.12.23]) by ifi.uio.no with SMTP (8.6.11/ifi2.4) id for ; Sun, 8 Jun 1997 08:36:46 +0200 Original-Received: (qmail 9992 invoked by uid 504); 8 Jun 1997 06:36:44 -0000 Original-Received: (qmail 9989 invoked from network); 8 Jun 1997 06:36:43 -0000 Original-Received: from ALPHA8.CC.MONASH.EDU.AU (130.194.1.8) by claymore.vcinet.com with SMTP; 8 Jun 1997 06:36:43 -0000 Original-Received: from goaway.cc.monash.edu.au ("port 4710"@goaway.cc.monash.edu.au) by vaxh.cc.monash.edu.au (PMDF V5.1-7 #20655) with ESMTP id <01IJU4MR923U8ZF045@vaxh.cc.monash.edu.au> for ding@gnus.org; Sun, 8 Jun 1997 16:36:23 +1000 Original-Received: (ajc@localhost) by goaway.cc.monash.edu.au (8.8.5/8.6.4) id QAA28570; Sun, 08 Jun 1997 16:36:21 +1000 (EST) Original-To: info-bbdb@xemacs.org X-Mailer: Gnus v5.4.56/XEmacs 20.3(beta4) X-Attribution: ajc X-URI: X-PGP-Key-ID: C7BD53F5 X-Face: PBPJ+.AE`FBN4$}HrwwEhJ)x?-5$MQ%Z)svNR@Q\WG6[GDr,}a@8ULwGWBsk,Pqxm!Z- X-NSA-Fodder: Delta Force CIA smuggle domestic disruption Saddam Hussein Original-Lines: 103 Original-Xref: altair.xemacs.org dgnus-list:1697 Xref: main.gmane.org gmane.emacs.gnus.general:11307 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:11307 --Multipart_Sun_Jun__8_16:36:20_1997-1 Content-Type: text/plain; charset=US-ASCII If you've got the relevant support programs (see comments), here's a script to snarf all your x-face headers from your bbdb and make a sort of Rogue's Gallery like GIF out of them all. suggestions/improvements/etc. welcome :) Enjoy, Andrew --Multipart_Sun_Jun__8_16:36:20_1997-1 Content-Type: text/plain; charset=US-ASCII Content-Disposition: attachment; filename="make-x-face-list" Content-Transfer-Encoding: 7bit #! /bin/sh # # make-x-face-list.sh - Make a "rogue's gallery" of X-Faces from your BBDB # # Author: Andrew J. Cosgriff # Created: Sun Jun 8 15:22:42 1997 # Version: $Id: make-x-face-list,v 1.3 1997/06/08 06:35:47 ajc Exp ajc $ # Keywords: # ######################################## # ### Commentary: # # I had one of those random dangerous Ideas. This is the result. # You'll need the netpbm utilities and possibly a patched uncompface # (see below). You'll also need the perl bbdb script (see # http://www.cs.wustl.edu/~seth/projects/bbdb/) # ### TO DO: # # I dunno. Make it look groovier, one way or another. # ######################################## # ### History: # # 1.1 - Initial version # ######################################## # ### Code: # COLMAX=4 TMPPREFIX=/tmp/xface.$$ bbdb -p 'email name lname' -r 'x-face' > $TMPPREFIX.bbdb exec < $TMPPREFIX.bbdb # exec < bbdb-out.txt COL=0 ROW=0 while read email name do echo "- $email" # # If you haven't patched uncompface to handle -X (for xbm) (you can # get the patch in the exmh source, at # ftp://ftp.sunlabs.com/pub/tcl/exmh/), you'll have to change the next line to do # uncompface | ikon2icon | icontopbm # bbdb -p x-face $email | sed -e 's@\\\\@\\@g' | uncompface -X | xbmtopbm > $TMPPREFIX.xface echo $name | tr '\011' ' ' | pbmtext > $TMPPREFIX.name pbmtext $email | pnmcat -tb -white $TMPPREFIX.xface $TMPPREFIX.name - > $TMPPREFIX.person if [ -r "$TMPPREFIX.row$ROW" ] then pnmcat -lr $TMPPREFIX.row$ROW $TMPPREFIX.person > $TMPPREFIX.row.new && mv $TMPPREFIX.row.new $TMPPREFIX.row$ROW else mv $TMPPREFIX.person $TMPPREFIX.row$ROW fi COL=`expr $COL + 1` if [ "$COL" -ge $COLMAX ] then COL=0 ROW=`expr $ROW + 1` fi done pnmcat -tb $TMPPREFIX.row* | ppmtogif -interlace > xfaces.gif; /bin/rm -f $TMPPREFIX.* ### make-x-face-list.sh ends here --Multipart_Sun_Jun__8_16:36:20_1997-1 Content-Type: text/plain; charset=US-ASCII -- - Andrew J. Cosgriff - (read X-headers for more info) ajc@bing.wattle.id.au I used to be a FUNDAMENTALIST, but then I heard about the HIGH RADIATION LEVELS and bought an ENCYCLOPEDIA!! --Multipart_Sun_Jun__8_16:36:20_1997-1--