Ben Chuanlong Du's Blog

It is never too late to learn.

Dealing With Environment Variables in Python

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

  1. os.environ is a dict-like object containing environment variables as keys and their values as values. You can query the value of an environment variable using os.environ[ENV_VAR_NAME]. And you can set the value of an environemnt variable using os.environ[ENV_VAR_NAME] = val

Tips on Jupyter-Book

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

xinstall jb -ic

Configuration

xinstall jb -c creates a copy of configuration file _config.yml in the current directory. By default, The configuration file _config.yml in the current directory (if …

Undelete Files in Linux

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

The best way to "recover deleted files" is really to avoid permanently delete files. It is suggested that you avoid using the rm command (unless you are 100% sure what you …

Lua Bindings for Rust

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

rlua

rlua is the best one currently.

mlua

mlua provides High level Lua 5.4/5.3/5.2/5.1 (including LuaJIT) and Roblox Luau bindings to Rust with async …