Aug 1, 2019
Running tests in parallel with Django and PyCharm —
These days it is hard to come across any consumer device that only has one CPU-core. And even though most computers rel...Apr 16, 2019
Python Tips and Gotchas #4 - Understand truthy and falsy —
Truthy and falsy are the ways values implicitly converts to booleans when used in if-expressions, and are different to ...Apr 16, 2019
Python Tips and Gotchas #3 - Be more effecient with the REPL —
The REPL is certainly one of Python's most unique features. While there are other languages that also provides some kin...Apr 16, 2019
Python Tips and Gotchas #2 - Microseconds and accuracy in time.sleep() —
The sleep function in the time module can be used to halt execution for a given number of seconds. But it is easy to mi...Apr 2, 2019
Using PyCharm scratch files with Django —
[Scratches](https://www.jetbrains.com/help/pycharm/scratches.html) are a great feature in PyCharm that are going to spe...Mar 31, 2019
Python Tips and Gotchas #1 - Replace literals with constants in if-expressions —
Whenever you need to check the value of a basic data type, the most straight-forward solution is to use literals:
{{< ...Mar 28, 2019
Master date and time handling in Python —
It might seem like a basic advice, but you will be suprised how much time you can save by simply learning how to proper...Mar 20, 2019
Python random name generator —
Generates a random name-like string, uses a generator function to yield each letter.
[Gist on Github](https://gist.gi...Mar 6, 2019
Comments in Hugo —
This site is powered by Hugo, a static site generator for Hugo. It sits in the same category as Jekyll (Ruby), Pelican ...Mar 5, 2019
Better Python Command Line Arguments with argparse —
If you search for information on how to write Python modules that accepts command line arguments, you are very likely t... All articles →