-
Useful Idioms
Come out of the blue To happen unexpectedly. She seemed so surprised by the news that it must have come out of the blue. You need to work hard—opportunities don’t just come out of the blue. Do a double take To look twice due to surprise or disbelief. Everyone did a double take at his shiny new sports car as he drove by. Men and women ... Read More
-
How to create a virtual environment
Background When developing software with Python, a basic approach is to install Python on your machine, install all your required libraries via the terminal, write all your code in a single .py file or notebook, and run your Python program in the terminal. This is a common approach for a lot of beginners and many people transitioning from work... Read More
-
Learn PyTorch
What is PyTorch Predictive modeling with deep learning is a skill that modern developers need to know. PyTorch is the premier open-source deep learning framework developed and maintained by Facebook. PyTorch is a Python-based scientific computing package serving two broad purposes: A replacement for NumPy to use the power of GPUs a... Read More
-
Commonly used noun suffixes
Many words in English are formed from the same root or base word. By adding different suffixes, a range of new words can be formed. A suffix is a letter or a group of letters that are added to the end of a word to make a new word. Generally, suffixes have a particular meaning. When a suffix is added to a base word and that base word becomes a n... Read More
-
How to install PyTorch
How to install PyTorch enter anaconda base conda create -n PyTorch python=3.9 创建一个 python 的虚拟环境, PyTorch 是环境变量名(可以是任意英文) Next time, you can activate this virtual environment directly. Remark: conda env remove -n ***(PyTorch) conda activate PyTorch 激活虚拟环境 (base) \to (PyTorch) (开发环境) 进入官网根据配置选择安装 GPU or CPU, 在(P... Read More
-
What to say before and after a meal
What to say before a meal If you’re having friends over for lunch or dinner, you can say the following: Let’s dig in (or ‘dig in’) Enjoy your meal (or ‘enjoy’) Hope you enjoy what we’ve made for you Bon appetit ‘Bon appetit’ is one of the many French phrases adopted by the English language. Using this phrase is a very popular way of ... Read More
-
Dietary restrictions
Are you on a special diet? Do you avoid (eating) any food? you have any food allergy, taboo, anything you don’t eat. Are you a vegetarian? food taboo 是指在文化和宗教上的(比如说伊斯兰教徒不吃猪肉) food allergy 是指生理上的过敏 Read More
-
Poetry
云想衣裳花想容,春风拂槛露华浓。 如鉴发光如玉指,未成云鬓也怜人。 —杨兆品《咏美人梳头》 云想衣裳花想容,春风拂槛露华浓。 —李白《杂曲歌辞·清平调》 粉胸半掩疑晴雪,醉眼斜回小样刀。 —方干《赠美人四首·其一》 媚眼随羞合,丹唇逐笑分。 —何思澄《拟古诗》 众里嫣然通一顾,人间颜色如尘土。 —王国维《蝶恋花》 吐纳樱唇,氛氲兰气,玉纤握处堪怜。 —何承燕《吸烟美人》 手如柔荑,肤如凝脂,领如蝤蛴,齿如瓠犀。 —《诗经·卫风·硕人》 含歌媚盼如桃叶,妙舞轻盈似柳枝。 —方干《赠美人四首·其二》 垆边人似月,皓腕凝霜雪。 —韦庄《菩萨蛮·其二》 巧病轻笼,月痕半吐真珠莹。 —沈谦《点绛唇·美人耳》 状似明月泛云河,体如轻风动... Read More
-
Polytope
A polyhedron is a special case of a polytope, or, equivalently, a polytope is a generalization of a polyhedron. A polytope has a certain dimension n, and when n=3 we say that the polytope is a polyhedron. (Similarly when n=2 we say that the polytope is a polygon.) This is analogous to how we can define a general n-dimensional sphere, and how we... Read More
-
Useful skills
Mermaid lets you create diagrams and visualizations using text and code. Plantuml Read More