Chromium won't show PDF's served from your webserver?

Grey with grey If Chromium won't show PDF's inline when served from your webserver, it might be because you followed some security advice and set a "Content-Security-Policy"-header, containing the rule "default-src 'none'".

The symptom is that instead of showing the PDF, Chromium will just show a grey page with a tiny rectangle with rounded corners in the middle.

I fixed it by changing "none" to "self"; but I guess I should figure out which of the more specific policies it is that Chromium needs to be changed.

Some more digging reveals the I can keep "default-src 'none'" if I add "object-src 'self'", and Chromium will then display PDF's inline, so that's what I'm using now.


Just like last year /koldfront.dk/archive/20 ... - I still ♥ Free Software.

Serverless means no server to hack into? #computers

Someone is _wrong_ on the internet. From the technical details page on instant.page:

"instant.page’s script is hosted serverless with Cloudflare Workers so that there’s no server to hack into."

When I read something like that, I turn into that guy from that XKCD-strip.

I get this overwhelming urge to oldsplain (yes, that's a word) to this whippersnapper that even though it apparently is called "serverless", there still is a machine somewhere, doing something. And that can, of course, theoretically, be hacked.

Maybe someone can youthsplain (also a word) this to me. Thanks in advance, xoxo, YOLO.


Hello World by Hannah Fry

Hello World by Hannah Fry, book cover I managed to finish a book!

For quite a while I have been buying [real, paper] books once in a while, reading ¼, ½ or something, and then I've kind of left the book.

This also happened to Hannah Fry's "Hello World", which is about algorithms and how they are used/abused in our current world. But today I read the last two chapters!

It is not a technical book, but it does bring up a bunch of examples of bias in the use of various systems and algorithms today, that aren't immediately obvious, and I think it is worth reading for those.

It would have been fun with a little more detail in how these things work, but I guess that would have limited the audience.


Nostalgia + hardware story telling #amiga #computers #free software #hardware

I don't know why, but this mix of nostalgia and hardware story telling is really compelling: Arduino Amiga Floppy Disk Reader/Writer, by Robert Smith.

It's long, but weirdly soothing to read through, I find.


Feedbase year 3 #emacs #feedbase #gnus

Feedbase I started Feedbase in 2016. Today I randomly searched through the logs and counted the number of unique IP(v4/v6) addresses that have accessed the NNTP-server.

106, the number was. 2-3 of them are me. The number of regular users is probably around a handful.

That's cool - I primarily built it for myself, and it works great for that purpose.

One thing I specifically made possible was to post follow-ups to articles, to discuss them. I was kind of hoping this would create a little community (or several).

That hasn't materialized. While there are 1.1 million articles from feeds, there are just 95 follow ups, and of those I wrote 93%, <1% are by one other author, and 1 was from a third, a test.

A thing just popped into my mind: so far I've only found two NNTP-clients that natively work well with HTML articles: Gnus and Thunderbird. I've documented a way to make slrn render HTML, but I'm afraid it's not efficient enough to be quite usable, and Pan doesn't render HTML at all, as far as I can tell.

Maybe I should look into rendering HTML into plain text for those readers, serverside?

An obvious problem with this is how the server should tell whether a client understands HTML or not. I'm not sure there is any good way to do that. Hm.

Also, Gnus/Emacs is really flaky when it comes to loading many images. If that was fixed, it would be really nice.


Debian unstable sound gone [fixed] #debian #hardware

Loudspeaker key Yesterday sound stopped working on my Lenovo X1 Carbon 3rd gen running Debian unstable. The mute-light was on and pavucontrol(1) only showed one output; "Dummy".

After looking at the latest packages in /var/cache/apt/archives/, I didn't really get any bright ideas of what could be the cause.

I tried booting some older kernels, to see if that was the problem. Still no sound.

The fact that even older kernels didn't have sound any more made me think of the updating of initramfs's when a kernel package is updated. Maybe something went wrong there?

A quick sudo update-initramfs -k all -c and reboot later, and sound works again. Phew.


JAXA Tie Fighter #space

JAXA shadow picture While looking at The Atlantics photos of the week recently, I noticed that the Japan Aerospace Exploration Agency apparently has developed Tie Fighter technology.

Very impressive. I hope they use it for good. May the force be with all of us!

The image is kind of fuzzy, and it's just a shadow, so who knows.


Archive... Search... Keywords...
Sorø art museum


Hubble Space Telescope launched (29).


World Malaria Day (19).


Chernobyl (33).

Jens Unmack (Love shop) (55).

World Intellectual Freedom Day (4).


Thomas Koppel (Savage Rose) (75).


Solomy Nakiriya (53).


International Dance Day.


King Carl XVI Gustaf of Sweden (73).


0.0241 s