Ben Chuanlong Du's Blog

It is never too late to learn.

Markedly Structured Text

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

MySt is an extension of CommonMarkdown with some goodies introduced from RestructuredText. The jupyter-book project supports MySt syntax.

References

https://github.com/executablebooks/MyST-Parser

https://myst-parser.readthedocs.io/en/latest/

Dunder/Magic Methods in Python

__call__ (Object Invocation)

We can make any object callable like a regular function by adding the call dunder method. Let’s consider the below toy(not very meaningful) example just to showcase the call method.

Device Managment in PyTorch

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

  1. Modules can hold parameters of different types on different devices, so it's not always possible to unambiguously determine the device. The recommended workflow in PyTorch is to create the device object …

Tips on Outlook

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

Tip and Traps

  1. Always be careful when yu use "Reply All". Make sure that the recipients are the right ones. Avoid forward a large group meeting to people and have a …

Shopping on Costco

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

https://sameday.costco.com/store/costco/storefront

https://www.costco.com/costco-shop-card