排序
TIL: MoveDuplicates – My Solution to Duplicate Image Clutter
TIL: MoveDuplicates – My Solution to Duplicate Image Clutter , Today I Learn: Mrzaizai2k (2 Part Series) 1 TIL: Block tabs and Get IP in Javascript 2 TIL: MoveDuplicates – My Sol...
How to quickly profile python imports and runtime
How to quickly profile python imports and runtime,A small TIL about Python profiling. tuna is a really handy tool that renders the output of cProfile and python -X importtime logs ...
Exploring The Magic of Python Through The Awesome Slumber Library
Exploring The Magic of Python Through The Awesome Slumber Library,Slumber is one of those libraries you don't need, but can't live without once you learn about it (much like attrs!...
TIL#1 – translate() & str.maketrans()
TIL#1 - translate() & str.maketrans(), translate() translate() is a string method used to obtain a new string where specified characters are replaced by others based on a mapping t...
Pydantic validators don’t raise validation errors immediately
Pydantic validators don't raise validation errors immediately,This one really had me confused. I was facing an error with Pydantic validators which I thought I had handled, but it ...
PyTest unit testing now underway
PyTest unit testing now underway,I have now added some testing to my ez-txt2html converter. I decided to use pytest as framework for running tests on this project. It seems like a ...
TIL: exclude_also with coverage.py
TIL: exclude_also with coverage.py,Sometimes you have code you want to exclude from the test coverage report, because it doesn't really make sense to test it. For example, maybe yo...
Python, type hints, and future annotations
Python, type hints, and future annotations,Not long ago, I came across a bug in one of my projects that highlighted very interesting changes in how Python handles type hints at run...
JPA @ManyToOne example in Spring Boot
JPA @ManyToOne example in Spring Boot,In this tutorial, I will show you how to implement Spring Data JPA Many-to-One example in Spring Boot for One-To-Many mapping using @ManyToOne...
How to auto reload & debug Django and Celery workers running in Docker (VS Code)
How to auto reload & debug Django and Celery workers running in Docker (VS Code),I run Django projects in Docker containers and use Visual Studio Code as my IDE. In this article, I...
Timezones in Python datetime objects
Timezones in Python datetime objects,I've learned something useful about Python timezone handling in datetime objects. Let's suppose I got a timestamp from an external source. It's...
AssertJ custom representation of asserted object
AssertJ custom representation of asserted object,I really enjoy asserting collections with AssertJ. Usually it's safer and simpler to use containsExactlyInAnyOrder rather than asse...