Daily Shaarli

All links of one day in a single page.

January 24, 2023

Minimal cross-platform graphics

Minimal demo on how to do graphics for X11, macOS and Windows:

  • pop up a window
  • handle basic events
  • draw on the surface
  • play a sound
  • port doom onto it
The Page With No Code – Dan Q

How do you make a webpage without any source code?

  1. Return "Content-Type: text/html" with empty content. This is tantamount to a bare webpage "<html><body></></>"
  2. Fill the page's content with the "::before/after{content: xxx}" CSS
  3. Place the inlined stylesheet in the link header

I learned it's possible to inject CSS via HTTP header: https://danq.me/2020/12/21/http-link-css-injection/