Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: DFS Newsgroups: comp.os.linux.advocacy Subject: Re: SANE On GitLab -- Good Boys! Date: Tue, 7 Jan 2025 22:08:09 -0500 Organization: A noiseless patient Spider Lines: 145 Message-ID: References: <77nonj16elh1730br2gnpu12k9tklvm9ml@4ax.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 08 Jan 2025 04:08:09 +0100 (CET) Injection-Info: dont-email.me; posting-host="43d7287d443bb76b26588be543313621"; logging-data="2623066"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18aYcKIsz2UlOfeGaUQliDs" User-Agent: Betterbird (Windows) Cancel-Lock: sha1:gtDpseg72/MVRJfAe9I+hGi3DLo= In-Reply-To: <77nonj16elh1730br2gnpu12k9tklvm9ml@4ax.com> Content-Language: en-US Bytes: 5617 On 1/6/2025 5:45 PM, Joel wrote: > Farley Flud wrote: > >> The SANE project, one of the wonders of FOSS, is currently >> on GitLab, and not that shit site GitHub: >> >> https://gitlab.com/sane-project >> >> I use SANE all the time to produce superior results for all >> of my clients ($$$$$). In the right hands, like mine, SANE >> beats the living fuck out of any commercial program. >> >> C'mon, FOSS developers. Follow the lead of SANE. Move your >> stuff off the junk GitHub and onto GitLab. >> >> I purchase my own web resources and I don't require a third-party >> repository. But if I ever decided to accept contributors I would, >> without question or hesitation, use GitLab. >> >> Fuck Microslop! Fuck GitHub! > > > How many months did it take you to get this software operational? Feeb has posted his nutty scanner/printer methods before. ##################################################################### SANE fully supports the HP6200C, and I mean FULLY. The following script will scan a document in high res grayscale, threshold to bi-tonal using the best parameters, compress with the highly efficient JBIG2 algorithm, and then produce a PDF. Of course, you can archive the original high res grayscale if desired, and do virtually any-fucking-thing else, by a suitable adjustment of the script. Step 1 -- discover all relevant scanner parameters with: scanimage --help --device hp:libusb:major:minor Step 2 -- program these into the bash script Step 3 -- execute the bash script as follows: doc2pdf.sh outputfile.pdf gamma major minor =================================================== doc2pdf.sh for the HP6200C =================================================== #! /bin/bash # HP6200C # scans to 12-bit 300dpi gray scale pgm # doc2pdf.sh file.pdf gamma major minor gamma=$2 outfile=$1 major=$3 minor=$4 scanimage -p -d hp:libusb:$major:$minor --format pnm --mode Gray --depth 12 \ --resolution 300 --speed="Normal" --output-8bit="no"\ --source Normal \ --custom-gamma="yes" \ --gamma-table `gamma4scanimage $gamma 0 255 255 255` \ | pamthreshold | pnmtopnm > ${outfile%.pdf}.pbm jbig2 -s -p ${outfile%.pdf}.pbm > ${outfile%.pdf}.jb2 python pdf.py output > $outfile ======================================================================== ##################################################################### Notice Feeb makes everything much, much harder than it needs to be. I'd say at least a full day to learn how to shell script and set options and pipe data from/to scanimage, jbig2, pamthreshold and pnmtopnm. Of course the liar will tell you he did it all in 15 minutes [1] It's very likely the GUI-driven scanner software will produce a visually-identical .pdf document with a few mouse clicks. [1] Feeb told me he wrote this C program in "less than 2 minutes": ------------------------------------------------------------------------------------------------ #include #include #include int main() { int i, sins, rnd_index_1, rnd_index_2; time_t t; // define strings char *sin[7] = {"lust","gluttony","greed","sloth","wrath","envy","pride"}; char *sinner[23] = {"DFS","Octavian","7","Melzzzzz","Fabian","Gohde","Kohlmann","Takuya","Ahlstrom","shitv","Greycloud","Marek","Desk Rabbit","-hh","JED","Relf","wRonG","Sandman","sbd","Carroll","Tattoo","Bloaty","Dumb Willie"}; int sinner_ptr[23]; char *organ[4] = {"heart","stomach","dick","peabrain"}; char *desc[4] = {"beautiful","nasty","wonderful","repulsive"}; // initialize RNG and index array srand((unsigned) time(&t)); for(i=0; i<=22; i++) { sinner_ptr[i]=i; } // main loop for(sins=1; sins<=50; sins++) { // get first rnd index rnd_index_1 = sinner_ptr[rand() % 23]; // swap index pointers i=sinner_ptr[rnd_index_1]; sinner_ptr[rnd_index_1]=sinner_ptr[22]; sinner_ptr[22]=i; // get second rnd index on reduced set rnd_index_2 = sinner_ptr[rand() % 22]; // print all rnd strings fprintf(stdout, "%d The %s %s holds in his %s for %s is a %s thing.\n", sins, sin[rand() % 7], sinner[rnd_index_1], organ[rand() % 4], sinner[rnd_index_2], desc[rand() % 4]); } return(0); } ------------------------------------------------------------------------------------------------ What a liar. And it didn't work right, of course. Before I forget: thanks for being the only poster besides me that bashes that fraud.