Posts

Showing posts from November, 2023

制作印度混合香料茶 - Making Masala Chai

Image
 印度香料茶的味道非常的有地域特色,不过喜欢的人确实会非常喜欢。 The flavor of masala chai is very distinctive and region-specific, but those who like it really enjoy it. 首先,准备以下几种香料(依据图片顺序从左至右):桂皮,丁香,八角,肉豆蔻,各取一点,掰碎或切碎,装到茶包袋里,如下图所示。 First, prepare the following spices (from left to right according to the picture): cinnamon, clove, star anise, and nutmeg. Take a small amount of each, break or chop them into pieces, and place them in a tea bag as shown in the picture below. 不一定要求备齐所有香料,可以缺一两样。 It's not necessary to have all the spices; you can omit one or two. 然后,切少量姜,装在茶包袋里,姜的用量要多于混合香料的用量。 Next, chop a small amount of ginger and put it in a tea bag. The quantity of ginger should be more than that of the mixed spices. 再准备一些红茶茶叶,装在另一个茶包袋里。因为茶的味道比香料的味道轻,所以茶叶的用量要多于以上所有调味料的用量。 Prepare some black tea leaves and put them in another tea bag. Since the flavor of the tea is milder than the spices, use more tea leaves than all the other seasonings combined. 将水烧开,将以上三个茶包放进开水里煮。10分钟后,取出香料包和姜包,再煮20分钟,等待茶汤的颜色变成深红色。 Boil water an...

计算lammps模拟系统的密度 - Calculate the density of a lammps simulated system

想要计算lammps模拟系统的密度,需要知道系统的尺寸,和系统内的原子数。 To calculate the density of a lammps simulated system, you need to know the system's dimensions and the number of atoms within it. 对于尺寸在模拟中不发生变化的系统,可以读取其输入文件的结构文件来获得系统的三维尺寸。以下为一个典型的结构文件的例子: For systems whose dimensions do not change during simulation, you can obtain the three-dimensional size of the system by reading the structure file in its input file. Here's an example of a typical structure file: ``` LAMMPS data file 3072 atoms 2 atom types 2048 bonds 1 bond types 1024 angles 1 angle types -1.2631399999999999e+01 1.2631399999999999e+01 xlo xhi -1.2631399999999999e+01 1.2631399999999999e+01 ylo yhi -2.5262750000000000e+01 2.5262750000000000e+01 zlo zhi Masses 1 1.008 2 15.9994 ``` 最长的那三行是盒子的尺寸。x方向的尺寸为12.6314-(-12.6314)=25.2628A。y和z方向的尺寸计算方法类似。 The three longest lines represent the dimensions of the box. The size in the x-direction is 12.6314 - (-12.6314) = 25.2628 Å. The size in the y and z directions is calculated similarl...

对普通女权,田园女权,与激进女权的粗浅探讨

Image
前言 普通女权,田园女权,激进女权是中国最常见的三种女权形式。在这里我对这三种女权做一个简单的定义: 普通女权试图推翻父权制,追求男女平等;田园女权追求女性特权;激进女权主张性别分离。 一些共识 不要与低水平的人缠斗,有些人,你看一眼Ta说的话就应该觉得没有和Ta讨论的必要。 目前这个世界仍然处在父权体系下,它是保守,死板,不公平的,给予一部分男人更多权利和资源。 [1] 大部分男性和大部分女性都是父权制的受害者,但一些男性在受害的同时也获得了一些益处。 男性也可能是父权制的受害者。考虑一个住在穷山村,因为没钱,找不到老婆(新生儿男女性别失衡,以及天价彩礼),而被周围邻居指指点点的大龄青年。他不能出村生活,因为他家里人和村里人要他继承土地,以及给父母养老。 中国的女权运动,和其他的人权运动内容并无不同,本质上是少数既得利益者和多数被剥削压迫者的冲突。 [2] 虽然女权思潮从外国开始并流传到中国,但大多数人是发自内心支持女权的。中国的女权运动并不一定有境外势力的参与。 这世界上是有正义的人的,男性支持女权不一定是为了骗炮。 普通女权 我定义下的普通女权包括自由女权,后现代主义女权,和一部分的社会主义女权。 普通女权追求的是男女平等,即“平权”,其反对的不是“男性”,而是导致男女不平等的父权制度。在这个制度下,男人垄断了大多数的资源,而女人由于其性别遭受了大大小小的歧视。[1] 普通女权反对消费主义陷阱和身体羞辱。 普通女权认为:女性是一种社会文化建构出来的产物。而所谓“女性特质”,是受到阶级、民族、宗教、教育等因素影响而形成的。在不同的社会和历史阶段,对女性气质/男子气概的理解不同。(比如法国皇帝会戴假发,穿丝袜,高跟鞋,以彰显自己的男子气概)[1] 普通女权提出的口号包括“同工同酬”,“妇女能顶半边天”。 田园女权 田园女权是中国特色的女权,是新旧思想混合的产物。“要男人做事供给一切,完全是19世纪的想法;但是,又要男女平等,现代女性的权利又要齐全。”它虽然多由女性主张、对现代女性的权利寸步不让,但其基底却是男权的,也只有在一个男权社会才行得通。 [3] 比如,在欧美这种不那么男权的社会中,如果女性提出“你负责赚钱养家,我负责貌美如花”,一个欧美男性可能会奇怪为什么会有人可以不“赚钱养家”。 一些田园女权也会说支持“平权”,Ta们会为自己遇到的不公抗争,但不一定意识...

《共产党宣言》读后感 - Reflections on "The Communist Manifesto"

Image
由于本文可能稍有敏感,这里仅展示英文版。 Foreword My younger brother was tasked by his school to write a 3,000-word reflection on "The Communist Manifesto," and he asked for my help. Embarrassingly, I hadn't read the Manifesto myself, so I took this as an opportunity to dive in. I read this version: https://www.marxists.org/chinese/marx/01.htm Image Source Significance First and foremost, "The Communist Manifesto" played a pivotal role in organizing labor struggles. It defined the proletariat, organized unions, united workers, and led the proletariat in resisting capitalist oppression, most importantly, making capitalist countries reconsider their need to demonstrate their superiority. As Che Guevara once said, "After we're gone, they'll build schools and hospitals for you, raise your wages, not because they've had a change of heart or become kind, but because we were here." The struggle of the lower and middle classes is an eternal theme of human civilizatio...

使用python的scipy包做非线性回归 - Performing Nonlinear Regression Using Python's Scipy Package

Image
可以使用python的scipy.optimize包的curve_fit来进行非线性回归。 Nonlinear regression can be conducted using the curve_fit function from Python's scipy.optimize package. 这其中最重要的是,需要定义一个函数充当要回归的方程。这里以Langmuir吸附方程举例 Crucially, you need to define a function that represents the equation to be regressed. For example, consider the Langmuir adsorption equation: y=max*kc/(1+kc) 这个方程有2个参数:k和max。将其转化为python格式,如下所示: This equation has two parameters: k and max. Transformed into Python format, it appears as follows: ``` def func(x, k, max): return max * k * x / (1 + k * x) ``` 输入需要用于拟合的xdata和ydata,然后使用curve_fit函数拟合。xdata和ydata需为np.array格式。 Input the xdata and ydata to be used for fitting, then use the curve_fit function for fitting. Both xdata and ydata should be in the np.array format. ```popt, pcov = curve_fit(f=func, xdata=xdata, ydata=ydata) ``` 如果需要指定参数的初始猜测值的话,需在curve_fit指定p0参数,p0的长度需与参数个数相同。 If you want to specify initial guesses for the parameters, use the p0 parameter in curve_fit. The len...

热门博文 - Popular posts