March 2021

2021-03-30 12:05 (4 years ago)

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 (4 years ago)

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 (4 years ago)

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 (4 years ago)

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 (4 years ago)

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 (4 years ago)

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 (4 years ago)

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