Today I Learned
azure devops: spread long conditions to multiple lines
April 30, 2025use yaml syntax to spread long lines to multiple lines.
AzureDevOps/YAML
Bytes: SI Units vs IEC Units
April 23, 2025MB is based on powers of 10 (1000 * 1000 Bytes), MiB is based on powers of 2 (1024 * 1024 Bytes).
ComputerScience
How to send epub to your kindle.
April 18, 2025Visit amazon.de/sendtokindle to send epub books or pdfs to your kindle.
varia
Go Routes Signature Return Types
April 18, 2025When you setup your routes, you return *http.ServeMux
. If you wrap mux
into middleware, you return http.Handler
.
programming/golang
Prometheus: PromQL to show 0 instead of "no data".
April 17, 2025When you have counters with labels, they are not initialised by default. Here are queries that showed me 0 instead of “no data”.
prometheus/promql
How to use variables in CSS.
April 9, 2025In vanilla CSS, you can define variables and use them throughout your document.
web/design/css
Darkmode Rules in CSS via media queries.
April 9, 2025The browser knows when the system settings use dark mode. In CSS, you can use that information with @media (prefers-color-scheme: dark)
.
web/design/css
Render rows in a single column in psql.
April 7, 2025If your table is too large or your screen not wide enough, you can render your rows in a single column with \x on.
psql
How Form Submissions Are Represented In HTTP
April 6, 2025Forms in HTTP are represented as email=david%40gmail.com&password=pa55word
.
networking/http
Postgres: Users And Groups Are Roles
April 6, 2025In Postgres, there are no users and no groups, just roles.
postgres