Writing

Writing

Articles, practical notes, and short lessons.

All writing

24
  1. A tiny database row magnified above a heap page marked with a PostgreSQL elephantThe Smallest Possible Row in PostgresArticlesWhat is the smallest possible row in Postgres? How many bytes does it take to store a single row with no columns?Database · 5 min read
  2. Two illustrated cats wearing matching Cloudflare-logo bandanasTIL - Cloudflare Nameservers Can Hint at Shared OwnershipTILIdentical Cloudflare nameserver pairs can be a clue that domains share an account, but they are not proof.Cloud · 2 min read
  3. Ductus interface showing a font preview and a prompt to write a lowercase letterDuctusLinksYour handwriting, as a font.Development · 1 min read
  4. Cover image for UUIDv7 in DjangoUUIDv7 in DjangoArticlesHow to use UUIDv7 in DjangoDevelopment · 6 min read
  5. Cover image for Hyrum's Law in GolangHyrum's Law in GolangArticlesOccurrence of Hyrum's law in GolangDevelopment · 3 min read
  6. Cover image for Avoiding Generic Foreign Keys by using Check ConstraintsAvoiding Generic Foreign Keys by using Check ConstraintsArticlesHow to avoid using generic foreign keys by using check constraintsDevelopment · 5 min read
  7. An illustrated dual-monitor computer setupSecond display not working on Linux UbuntuNotesHow to fix a second display not working on Linux UbuntuSystems · 1 min read
  8. A hand repairing an intricate mechanical deviceUsing ntfsfix to fix mounting error on LinuxNotesFor those annoying "unknown error when mounting" messagesDevelopment · 1 min read
  9. Morning light over a river beginning to thawWhy be an optimist?FragmentsA very extensive, in-depth analysis of why to be an optimistPersonal · 1 min read
  10. A wooden drawer divided into neatly organized compartmentsSetting a Default Output Mode in SQLite Using an AliasNotesHow to set a default output mode in SQLite with a simple shell alias.Systems · 2 min read
  11. A Python application being reset through a sequence of stagesReinitializing a Django appArticlesHow to reinitialize a Django app by deleting migration files, dropping associated database tables, and recreating the app from scratchDevelopment · 3 min read
  12. An open index drawer revealing a set of organized recordsShowing Models of Internal and 3rd Party Apps in Django Admin PageArticlesHow to display the models of Django's internal apps or any 3rd party apps in the admin page.Development · 5 min read
  13. A network node casting precise lines of light across a dark surfaceTIL - Postgres MAC Address Data TypeTILPostgres has a data type for mac addresses called macaddrSystems · 3 min read
  14. Cover image for TIL: Django has a field limitTIL - Django has a field limitTILThe number of GET/POST parameters exceeded settings.DATA_UPLOAD_MAX_NUMBER_FIELDS.Development · 3 min read
  15. An ordered row of distinct tiles arranged in a shallow wooden trayDisplaying Human-Readable ArrayField Choices in Django REST FrameworkArticlesHow to Display a Human-Readable Format of a Django ArrayField Containing CharFields with Choices in Django REST Framework.Development · 3 min read
  16. Cover image for Hide your Nginx VersionHide your Nginx VersionArticlesThe Nginx version is exposed by default. Hide it.Systems · 5 min read
  17. Cover image for Customizing Tab Titles in Oh My Zsh (terminal-profile)Customizing Tab Titles in Oh My Zsh (terminal-profile)NotesAdding custom titles to your terminal tabs when using Oh My Zsh with terminal-profile.Development · 2 min read
  18. Cover image for Custom Validation Errors in FastAPI with PydanticCustom Validation Errors in FastAPI with PydanticArticlesLearn how to customize validation errors in FastAPI with PydanticDevelopment · 5 min read
  19. Cover image for Finding the services companies use via their TXT recordsFinding the services companies use via their TXT recordsArticlesHow to use a company's TXT records to discover the products they use.Systems · 4 min read
  20. Cover image for Modifying LLM responses on the flyModifying LLM responses on the flyArticlesHow to modify LLM responses in Next.js to shape the response the way you wantDevelopment · 9 min read
  21. Cover image for Modal Routing in NextJSModal Routing in NextJSArticlesHow to route to a modal or a detail page in Next.js similar to the way Reddit and Instagram do it.Development · 6 min read
  22. A delicate web spanning a narrow openingRestricting registrations only to specific users in DjangoArticlesOnly allowing registration to users with emails in an approved list of email providersDevelopment · 2 min read
  23. Cover image for Creating Different Admin Pages for Different Trusted Users in DjangoCreating Different Admin Pages for Different Trusted Users in DjangoArticlesHow to Create Different Admin Pages for Different Trusted UsersDevelopment · 13 min read
  24. Cover image for Optimizing Queries in Django: Selecting Individual Fields using OnlyOptimizing Queries in Django: Selecting Individual Fields using OnlyArticlesHow to optimize django queries by getting individual fields onlyDevelopment · 4 min read