September 2022

2022-09-30 00:50 (3 years ago)
Opening Slack Channel Links with Command Line, Raycast, and Alfred

When you open Slack on the web, the URL becomes:

Python
2022-09-19 07:31 (3 years ago)
Fixing the Issue of Separated Voiced Marks in Folder Names on Mac When Outputting from Python

When trying to output directory names on a Mac, there are instances where diacritic marks (like dakuten) appear as separate characters. This issue arises due to differences between Unicode normalization forms NFC and NFD. It can be fixed using unicodedata.normalize.

Django
2022-09-16 10:11 (3 years ago)
After Updating Django, Migration Fails for oauth2_provider

The migration for the `oauth2_provider` app included in Django's `django-oauth-toolkit` failed at migration 0004. The issue was resolved by manually removing the foreign key, changing the integer field to a bigint, and then reapplying the foreign key.

Django
2022-09-12 12:21 (3 years ago)
Setting Up a Logger to Output Logs to the Console in Django

Summary of the blog post in English: "Django Logging Configuration: Output to Console Instead of File"

DjangoMySQL
2022-09-11 09:58 (3 years ago)
Tips for Solving the 2027 Malformed Packet Error in MySQL

Here is a summary of the blog article in English: "When issuing raw SQL in Django, an error '2027 Malformed packet' may occur with certain SQL statements. A helpful solution is to avoid using double quotations."

nginx
2022-09-09 07:37 (3 years ago)
A Simple Configuration to Host Static Files with Alpine Nginx

A simple setup to launch Nginx using Docker to host basic static files.

2022-09-09 05:32 (3 years ago)
Migrating Redash from Version 6 or Below to Version 7 to Prevent Launch Issues (Also Necessary for Transitioning from Version 8 to 9)

When running Re:dash with Docker, a migration is necessary when upgrading from version 6 to version 7. This article outlines the migration process.

2022-09-08 00:44 (3 years ago)
Analyzing Apache Access Logs with GoAccess Instead of Webalizer or Analog

Here's an overview in English: Introducing a method to analyze Apache access logs using GoAccess on Docker as an alternative to tools like Analog and Webalizer.

Python
2022-09-05 00:49 (3 years ago)
If "pipenv install" Results in RuntimeError: location not created nor specified

When attempting to create a Python 3.10 environment using `pipenv install` and encountering the error "RuntimeError: location not created nor specified," it may be due to using the pipenv installed in a Python 3.9 environment. To resolve this issue, you should install pipenv in the Python 3.10 environment.

DjangoDockerPython
2022-09-03 11:03 (3 years ago)
Changed Django's Docker Environment from Alpine + uWSGI to Debian + Daphne → Ended up with uvicorn After All

Until now, I often created Django images using Alpine Linux and uWSGI, but there is a performance issue when running Python on Alpine Linux. This is a note on changing the Docker image configuration from Alpine to Debian and the HTTP server from uWSGI to Daphne + WhiteNoise.

Categories

Archive