2004-08-09-0247Z


Episode over. Naturally he ignored my demand for payment of my collection efforts. He hasn't learned anything. Probably never will.
From: mich <mich617@comcast.net>
To: jc.jcomeau.com
Date: Sun, 8 Aug 2004 22:28:06 -0400
Subject: Re: Refunded

O thats a good one. All the emails go right to the detectives from this email anyway so i doubt i would get scammed from anyone. Anyway have a good life and hope your internet cafe goes good.

Well, now I'm back to work. Found out how to use binfmt_misc today, the Linux module (or builtin feature) that allows you to tell the kernel how to handle files based either on the magic number (good) or extension (Windows-style, Bad). Here's my rc.binfmt_misc startup file, and the postscript program that functions as a filter (command-line utility) using ghostscript as an interpreter, through the binfmt_misc mechanism. All this was to serve as a test for btoa.pf, the ASCII-85 encoder written in postforth. After setting my environment variables, I could run the script successfully:
jcomeau@zero:~/www/www/blog$ export GS_OPTIONS='-q -dBATCH'
jcomeau@zero:~/www/www/blog$ tail /etc/printcap
# - no other printer defines between BEGIN and END LABEL
lp|pcl3/unspec;r=300x300;q=medium;c=full;p=letter;m=auto:\
    :lp=/dev/null:\
    :if=/etc/apsfilter/basedir/bin/apsfilter:\
    :sd=/var/spool/lpd/lp:\
    :lf=/var/spool/lpd/lp/log:\
    :af=/var/spool/lpd/lp/acct:\
    :mx#0:\
    :sh:
# APS1_END - don't delete this
jcomeau@zero:~/www/www/blog$ tail /etc/printcap | btoa.pf
,9SQ\DJpY9FD,6++E2@8DKKH1+Co%qBl7L'+C\o(G@b?'+@8Le
8PUC:DIakY:.-3u5se"6$>a[/E+<]?06M/RE+NN@E]l340R,B-
0KX8;D.R6lF_s3M4_AhQCccT!Ch7^1ATBkL4^iJTD`V,1+<VdL
3c&au04\X;05boKCcYf.+<VdL3b`1h04f6804Ag@Anc('ATBG5
@<6!jBlYk9Bl5S4E-#W*Cij6/3a<"7+<VdfF(@EeG%#DEF)Z&9
CbKUDA1qb<3a<"7+<VdfCh>g`G%#DEF)Z&9CbKUDA1qb<05PQ>
3a<"7+<Vdf@:hYUG%#DEF)Z&9CbKUDA1qb<04A@#F?3Y6+<VdL
3c0*d0KNGG+<VdL3cesq$6pZZ:fB)U78?5n/KeSBDC9NKA7]Rg
FCcS:BPDMp~>
jcomeau@zero:~/www/www/blog$ tail /etc/printcap | btoa.pf | ascii85decode
# - no other printer defines between BEGIN and END LABEL
lp|pcl3/unspec;r=300x300;q=medium;c=full;p=letter;m=auto:\
    :lp=/dev/null:\
    :if=/etc/apsfilter/basedir/bin/apsfilter:\
    :sd=/var/spool/lpd/lp:\
    :lf=/var/spool/lpd/lp/log:\
    :af=/var/spool/lpd/lp/acct:\
    :mx#0:\
    :sh:
# APS1_END - don't delete this
If anybody's tried, you can see I've already broken postforth again, I think when changing stack size in the kernel yesterday. I never did like the messy way I create the return stack in postforth v0 anyway. But I played with it till it at least compiles pf, which is what is necessary to run btoa.pf. Now to see if I can get the CD burner working before the night is over.

Back to blog or home page

last updated 2013-01-10 20:27:02. served from tektonic.jcomeau.com