Ben Chuanlong Du's Blog

It is never too late to learn.

Enum in Python

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Comments

  1. You must assign a value to each enum member.

Tips on Django

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

https://hub.docker.com/r/bynd/nginx-django/

https://hub.docker.com/r/abstracttechnology/django/

https://hub.docker.com/r/alang/django/

https://hub.docker.com/r/torz/django/~/dockerfile/

https://hub …

Select All Columns Except a Few from a Table

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Comments

There is no (direct) way of select all columns except a few from a table using SQL. However, this is easily doable with DataFrame APIs (pandas, Spark/PySpark, etc.).

Tips on NetworkX

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tips on Omegaconf

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. omegaconf can parse command-line options too. However, unlike argparse it does not enforce any constraint on command-line options.