SH | Diensttagebuch

In the middle of the desert you can say anything you want

13 May 2020

Day 499

Random / Interesting / Quotes

My favourite quote by Kerouac has a fuller version I forgot exists:

“I don’t know, I don’t care, and it doesn’t make any difference.” ― Jack Kerouac

From the 1-to-1: “You always meet twice in life”

Tensorflow / ML

Binary crossentropy is a special case of categorical crossentropy, for when you have one output.

Zsh / Bash history

I can use syntax like !10600 inside commands in the CLI! They get replaced when needed.

Compressing PDF

pdf2ps input.pdf tmp.ps
ps2pdf -dPDFSETTINGS=/screen -dDownsampleColorImages=true -dColorImageResolution=200 -dColorImageDownsampleType=/Bicubic tmp.ps output.pdf
```,  and you can tune `dColorImageResolution`. Out of all answers in that thread [^compr], it's the only one that decreased my 2.3M pdf to 1.3MB. (Needed less than 2MB)

[^compr]: [pdftk compression option - Stack Overflow](https://stackoverflow.com/questions/5296667/pdftk-compression-option)
Nel mezzo del deserto posso dire tutto quello che voglio.