March 2021
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.
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.
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.
Recent Posts
- Skill + CLI over MCP: Replacing Sentry MCP with a multi-profile CLI wrapper
- Turning Raspberry Pi into a Signage Display with Playwright and Chromium Kiosk Mode
- Docker 29 breaks docker push to ECR with 403 Forbidden on GitHub Actions
- How to Add "Copy Full File Path to Clipboard" to Finder's Services Menu
- How to turn Orange Pi Zero 2W into a Web Signage Display
Recent Deliverables
Categories
- Django (66)
- Python (49)
- mac (22)
- Linux (17)
- kubernetes (15)
- iOS (11)
- MySQL (10)
- Raspberry-Pi (8)
- AWS (7)
- PHP (6)
- Javascript (5)
- PC/Etc (5)
- Docker (5)
- Android (4)
- Bicycle (4)
- (4)
- nuxt (3)
- css (3)
- nginx (3)
- Bootstrap (3)
- Flutter (3)
- Shellscript(Bash/Zsh) (3)
- Making (2)
- Windows (2)
- HTML (2)
- (1)
- Ebook (1)
- Rails (1)
- Microcontrollers (1)
- less (1)
- Ansible (1)
- (1)
- (1)