Writing
Published writing, listed with the most recent entry first.
- UUIDv7 in DjangoNovember 11, 2024 — How to use UUIDv7 in Django
- Hyrum's Law in GolangNovember 9, 2024 — Occurrence of Hyrum's law in Golang
- Avoiding Generic Foreign Keys by using Check ConstraintsSeptember 5, 2024 — How to avoid using generic foreign keys by using check constraints
- Second display not working on Linux UbuntuAugust 18, 2024 — How to fix a second display not working on Linux Ubuntu
- Using ntfsfix to fix mounting error on LinuxJuly 20, 2024 — For those annoying "unknown error when mounting" messages
- Why be an optimist?June 25, 2024 — A very extensive, in-depth analysis of why to be an optimist
- Setting a Default Output Mode in SQLite Using an AliasJune 15, 2024 — How to set a default output mode in SQLite with a simple shell alias.
- Reinitializing a Django appJune 14, 2024 — How to reinitialize a Django app by deleting migration files, dropping associated database tables, and recreating the app from scratch
- Showing Models of Internal and 3rd Party Apps in Django Admin PageJune 5, 2024 — How to display the models of Django's internal apps or any 3rd party apps in the admin page.
- TIL - Postgres MAC Address Data TypeFebruary 28, 2024 — Postgres has a data type for mac addresses called macaddr
- TIL: Django has a field limitFebruary 7, 2024 — The number of GET/POST parameters exceeded settings.DATA_UPLOAD_MAX_NUMBER_FIELDS.
- Displaying Human-Readable ArrayField Choices in Django REST FrameworkJanuary 20, 2024 — How to Display a Human-Readable Format of a Django ArrayField Containing CharFields with Choices in Django REST Framework.
- Hide your Nginx VersionJanuary 14, 2024 — The Nginx version is exposed by default. Hide it.
- Customizing Tab Titles in Oh My Zsh (terminal-profile)January 2, 2024 — Adding custom titles to your terminal tabs when using Oh My Zsh with terminal-profile.
- Custom Validation Errors in FastAPI with PydanticJanuary 1, 2024 — Learn how to customize validation errors in FastAPI with Pydantic
- Finding the services companies use via their TXT recordsOctober 29, 2023 — How to use a company's TXT records to discover the products they use.
- Modifying LLM responses on the flyJuly 20, 2023 — How to modify LLM responses in Next.js to shape the response the way you want
- Modal Routing in NextJSDecember 7, 2021 — How to route to a modal or a detail page in Next.js similar to the way Reddit and Instagram do it.
- Restricting registrations only to specific users in DjangoNovember 2, 2021 — Only allowing registration to users with emails in an approved list of email providers
- Creating Different Admin Pages for Different Trusted Users in DjangoOctober 10, 2021 — How to Create Different Admin Pages for Different Trusted Users
- Optimizing Queries in Django: Selecting Individual Fields using OnlyOctober 2, 2021 — How to optimize django queries by getting individual fields only