October 2015
Python
2015-10-19 07:34 (10 years ago)
Up until now, I had been writing custom thread pools using threading.Thread, but I thought there must be something provided by Python already. So, I did some searching and found that multiprosessing.pool.Pool was exactly what I was looking for. Creating a process pool is super easy with it. What was I doing all this time?
Django
2015-10-15 10:10 (10 years ago)
class Content(models.Model): content_name = models.CharField(...) group_id = models.PositiveIntegerField(...) volume_number = models.PositiveIntegerField(...) ... Assuming we have a typical Django model class, we want to search for its instances using a complex SQL query in a single shot. The results should be displayed on a web page, but since many rows are expected, we want to display a paginator.
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)
Archive
2023
2022
2018
2017
2012