March 2021

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

When specifying a CharField in Django Admin's list_filter, if the CharField does not have choices specified, it will fetch all distinct values from the records, which can be quite slow if there's no index. In such cases, if choices can be specified for the CharField, doing so will eliminate the need for an SQL query, significantly speeding up the process.

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

When installing Visual Studio Code, you will be asked whether to add it to the PATH. By turning this option ON, you will be able to start VSCode using the `code` command. However, the `code` command is actually `code.cmd`, and just using `code` will not allow it to be started from Flutter's `Process.run`. Therefore, you need to include the `.cmd` extension.

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

The dio library for Dart (Flutter) (https://pub.dev/packages/dio) is user-friendly compared to commonly used HTTP libraries, as it allows for easy handling of cancellations, GET parameters, timeouts, JSON, and more. However, in version 3.x, there is an issue where all HTTP headers are sent in lowercase.

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

By writing and evaluating the code mentioned in the article, you can suppress warnings related to self-signed certificates (also known as "my own certificates").

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

When developing with Nuxt + TypeScript and encountering the error "Environment key 'es2021' is unknown" while updating dependencies, make sure to update eslint to version 7 or above.

Categories

Archive