From owner-freebsd-chat Tue Apr 20 1: 0:38 1999 Delivered-To: freebsd-chat@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id 6AE5C14C1B; Tue, 20 Apr 1999 01:00:20 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id RAA22612; Tue, 20 Apr 1999 17:27:45 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id RAA45843; Tue, 20 Apr 1999 17:27:41 +0930 (CST) Message-ID: <19990420172741.C40482@lemis.com> Date: Tue, 20 Apr 1999 17:27:41 +0930 From: Greg Lehey To: Smoker Van Cc: Darren Pilgrim , Alex Zepeda , Wes Peters , Bill Fumerola , Jeroen Ruigrok/Asmodai , FreeBSD Chat , "Jordan K. Hubbard" Subject: Re: Changing Jordan to Cinderella (was: NetBSD: Certified mom-ready.) References: <371C0F4A.45AD508C@uswest.net> <19990420151032.X40482@lemis.com> <371C2E7C.1F07F64A@uk.radan.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <371C2E7C.1F07F64A@uk.radan.com>; from Mark Ovens on Tue, Apr 20, 1999 at 08:36:28AM +0100 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tuesday, 20 April 1999 at 8:36:28 +0100, Mark Ovens wrote: > Greg Lehey wrote: >> >> [moved to -chat before I get yet another chewing-out] >> >> On Monday, 19 April 1999 at 22:23:22 -0700, Darren Pilgrim wrote: >>> Alex Zepeda wrote: >>>> On Mon, 19 Apr 1999, Darren Pilgrim wrote: >>>>> You mean to tell me, that in San Francisco, with one of the greatest >>>>> and most knowledgable drag queen populations in the worls, that you >>>>> can't make a guy like Jordan look like a girl? >>>> >>>> Nothing twenty pounds of duct tape, and some strategically placed crisco >>>> can't solve, but the true question is: would a sober Jordan oblige? >>> >>> Could you get him drunk enough in the first place? >> >> I don't think so. He doesn't drink. Another thing that makes me >> suspicious. > > Hmm, did you know that "Jordan K Hubbard" is an anagram of "Drunk had > bar job"? Well, I suppose I do now. Do I see it that you propose to change this to "Drunk had bra job"? > (See http://www.anagramgenius.com/server.html if you want to have some > fun with anagrams. You enter the name/phrase, select some options, and > they e-mail you the results) Ah, that's no fun. One of the nicest looking programs I ever saw was the following, from the obfuscated C contest, which does it locally. I have a script which runs it (the executable is called ag3): ag3 long a [4],b[ 4],c[4] ,d[0400],e=1; typedef struct f{long g ,h,i[4] ,j;struct f*k;}f;f g,* l[4096 ]; char h[256],*m,k=3; long n (o, p,q)long*o,*p,*q;{ long r =4,s,i=0;for(;r--;s=i^ *o^*p, i=i&*p|(i|*p)&~*o++,*q ++=s,p ++);return i;}t(i,p)long*p ;{*c=d [i],n(a,c,b),n(p,b,p);}u(j)f*j;{j->h =(j->g =j->i[0]|j->i[1]|j->i[2]|j->i[3])&4095;}v( j,s)f* j; {int i; for(j->k->k&&v(j->k, ' '),fseek( stdin, j->j, 0);i=getchar(),putchar(i-'\n'?i:s),i- '\n';);}w(o,r,j,x,p)f*o,*j;long p;{f q;int s,i=o->h;q.k=o;r>i?j=l[r=i]:r>1, s|=s >>2,s|=s>>4,s |=s>>8 ,j=l[r =((r&i |s)&~(s>>1))-1&i]):0;--x;for (;x&&!(p&i);p>>=1);for(;!x&&j;n(o->i,j->i,q. i),u(&q),q.g||(q.j=j->j,v(&q,'\n')),j=j->k);for(;x;j=x ?j->k:0){for(;!j&&((r=(r&i)-1&i)-i&&(r&p)?2:(x=0));j=l[r]);! x||(j->g&~o->g)||n (o->i,j->i,q.i)||( u(&q), q.j=j ->j,q.g?w(&q ,r,j->k,x ,p):v(&q, '\n')); }}y(){f j;char *z,*p; for(;m ? j.j= ftell( stdin) ,7,(m= gets(m ))||w( &g,315 *13,l[ 4095] ,k,64* 64)&0: 0;n(g .i,j.i, b)||(u (&j),j. k=l[j.h],l[j.h]= &j,y())){for(z= p=h;*z&&( d[*z++]||(p=0)););for(z=p?n(j.i ,j.i,j.i)+h:""; *z;t(*z++,j.i));}}main(o,p)char** p; {for(;m = *++p;)for(;*m- '-'?*m:(k= -atoi(m))&0;d[*m]||(d[*m ]=e,e<<=1),t(*m++,g.i)); u(& g),m=h ,y();} Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message