March 2021

2021-03-30 12:05 (5 years ago)
When Using CharField in Django Admin list_filter, Adding Choices Makes It Faster

Why specifying `choices` on a Django `CharField` makes `list_filter` faster — it bypasses the DISTINCT query the admin runs to enumerate filter values.

Python
2021-03-30 11:44 (5 years ago)
The Specified Version Was Not Installed with Pipenv

Even though the Pipfile specifies ```plaintext [packages] ... Werkzeug = "<1.0.0" ``` running ```plaintext pipenv install --system --skip-lock --dev --deploy ``` installs version 1.0.1.

2021-03-21 12:08 (5 years ago)
Launch VSCode from a Flutter Windows App

Launch VSCode (`code.cmd`) from a Flutter Windows app via `Process.run`. Covers how to pass arguments and handle quoting issues correctly.

2021-03-20 13:05 (5 years ago)
Dart (Flutter) Dio Library Sends All HTTP Headers in Lowercase

Dart's `dio` HTTP client lowercases all request header names, which can break authentication against old servers that treat header casing as significant.

mac
2021-03-20 09:24 (5 years ago)
Formatting a USB Drive to FAT32 MBR on a Mac

Sometimes, USB memory sticks that have been used for creating OS installation media may have a corrupted partition table, making it impossible to format them using the "Disk Utility" app.

Flutter
2021-03-12 02:02 (5 years ago)
How to Communicate with a Server Using a Self-Signed Certificate (My Own CA) Without Errors in Flutter's HTTP Client

When Django uses multiple databases and `ForeignKey` cannot traverse across them — `router.allow_relation` behavior and raw SQL workarounds.

2021-03-07 02:45 (5 years ago)
If "Environment key 'es2021' is unknown" Occurs in Nuxt+Typescript

Fix `zlib`-related errors when `pip install mysqlclient` (old MySQL-python) — `brew install zlib` and add the right `LDFLAGS`.

Categories

Archive