Posts

Showing posts from December, 2023

两款超级方便的python环境:Google Colab和Spyder

Image
Google Colab和Spyder是两种最傻瓜,最方便的使用python的方法。一键部署,即插即用。 Google Colab and Spyder are two of the simplest and most convenient methods for using Python.  1. Google Colab Google Colab是一个可以运行python的在线服务。 Google Colab is an online service that allows you to run Python.  点击 https://colab.research.google.com/ ,跳转到Google Colab的欢迎页面,它会自动打开Open notebook窗口。点击左下角的"New notebook"。 To use it, visit Google Colab's homepage  https://colab.research.google.com/  . This will automatically open the 'Open notebook' window. Click the "New notebook" button on the left-bottom. 如果Open notebook窗口没有自动打开,点击左上角菜单栏的File-New notebook。 If this window doesn't appear, you can create a new notebook by clicking 'File' and then 'New notebook' from the top left menu.  这样就已经可以开始编程了。在光标闪烁处键入python程序,之后点击上方黑色三角形运行此程序。 Once you're set up, you can start programming right away. Just type your Python code where the cursor blinks, and execute the program by clicking the black tria...

油管up主推荐:小岛大浪吹 & 谈谈为什么要了解观点不同的人的想法 - Youtuber Recommendation: Xiaodaodalang & Why Be Aware of Opposing Political Views Matters

小岛大浪吹是一位聊政治和经济的油管up主,他的风格比较鲜明,就是“理性爱国”(这里所说的爱国指的是爱共产党以及中国政府)。 我认为他属于“高端粉红”,他做的所有视频都资料翔实,准备充足。他讲事情喜欢梳理逻辑,引用数据,查找资料。他还很爱国,视频里面但凡提到了中国的一些成就,他会由衷地感到高兴。此外,我喜欢他视频的语速与语气,和“要么不做,做就做好”的态度。 但岛哥不喜欢民主,或者说,他认为民众朝三暮四,做不出很好的决定。我相信他支持开明独裁。 虽然在这里我称呼他为岛哥,但是似乎我们两位的年纪相差还挺多的。 此外,岛哥绝对属于“有趣的灵魂”,他分析问题有自己的洞见,他的玩笑总能击中我的笑点(比如他说自己是油管第一大反指)。 这里推荐几个我认为他做的比较有特色的视频: https://www.youtube.com/watch?v=PruqQnQYPZQ   《年轻人是否还继续支持共产党》 他虽然爱国,但他并不忌讳中国的缺点。并且他可以分析出为什么有些年轻人可能不爱国。在本视频中他引用了大量的数据来分析中国的经济。 https://www.youtube.com/watch?v=kqPxgv_oOSo 《中国为什么又开始打击医疗腐败了,这么多年来医疗到底改革了什么》 他梳理了中国从建国以来的所有医疗制度。他不喜欢简单评价中国的现象,看到一个事情就说“共产党完了”或者“习近平不行”,相反,他从更深层的角度去分析中国的各个改革背后的逻辑,而且分析的还算有理有据。 https://www.youtube.com/watch?v=jCOdTC_JH1Y 《新加坡医院也歧视中国人?到底应该如何应对歧视》 他详细介绍了新加坡医院是否会有歧视中国人的现象,逻辑自洽,比无脑宣扬“整个世界都仇视中国”的低端小粉红高到不知道哪里去了。 https://www.youtube.com/watch?v=ADp3WmFtyFA 《终章:江泽民, 是如何改变中国的》 他又是大量查找资料,梳理长者一生的事迹,很难有人能把长者讲的这么细的,这些搜寻资料的丰富程度简直可以支持一篇研究江泽民的论文了。此外,我认为,一个人只有了解长者一生所有的事件,才有资格评价他。 另,+1s。 http...

制作咖喱牛肉 - Making curry beef

Image
咖喱牛肉几乎是最简单的一道大菜了,而且它做不坏,即怎么做都不难吃。 Curry beef is perhaps the simplest main dish to make, and it's pretty much foolproof - it's hard to mess up. 首先,将牛肉切成小块,放入锅中,加水煮沸,焯掉血水。 First, cut the beef into small pieces and boil them in water to remove the blood. 将胡萝卜,土豆,洋葱切成小块,将牛肉捞出。另起一锅热水,加入牛肉,胡萝卜,土豆,和咖喱块,图中的这些牛肉大约需要3-4块咖喱,之后加一点盐,一点油。 Next, chop carrots, potatoes, and onions into small pieces and take the beef out of the water. Start another pot with hot water, add the beef, carrots, potatoes, and curry blocks. For the amount of beef shown in the picture, you'll need about 3-4 curry blocks. Then, add a bit of salt and oil. 盖上锅盖,炖40分钟。 Cover the pot and stew for 40 minutes. 等到土豆和胡萝卜变得绵软后,加入洋葱,再炖20分钟。依据个人口味可以适当再加一点盐。咖喱牛肉就炖好了。 Once the potatoes and carrots are soft, add the onions and stew for another 20 minutes. You can adjust the seasoning with a little more salt to taste. And there you have it, your curry beef is ready.

如何使用python中的量子化学软件包(包括psi4和pyscf) - How to use quantum chemistry software packages in Python (including psi4 and pyscf)

虽说现有的量子化学软件如gaussian,orca,和gamess的功能非常强大,但有时为了方便,或者为了加深理解,也可以用python来做简单的量子化学计算。 While current quantum chemistry software like Gaussian, Orca, and GAMESS are incredibly robust, there are times when using Python for simple quantum chemistry calculations is more convenient or helps deepen our understanding. python中的量子化学软件包有以下几个: The following quantum chemistry software packages are available in Python: psi4 pyscf PyQuante(因为年代过于久远而安装失败  failed to install due to its age ) 此外,还有几个类似的量子计算包,但不能做单分子量子化学计算,在本文中暂不考虑: Additionally, there are several similar quantum computing packages that can't perform single-molecule quantum chemistry calculations, which are not considered in this article: QuTiP(用于量子物理 used in quantum physics) Quantum ESPRESSO(用于固体物理 used in solid-state physics) 本文将介绍如何使用psi4和pyscf。出于方便,本文将使用google colab安装并使用所有的软件包。 This article focuses on how to utilize psi4 and pyscf. For ease of use, all software packages will be installed and employed using Google Col...

制作蛋炒饭 - Making egg fried rice

Image
首先,蒸些米饭,放凉备用。 First, steam some rice and let it cool for later use. 将胡萝卜,黄瓜,虾仁切成小块,并准备适量玉米粒,青豆。将以上材料煮熟备用。火腿肠切成小块备用。切一点葱花。 Dice carrots, cucumbers, and shrimp into small pieces, and prepare a suitable amount of corn kernels and green peas. Cook all these ingredients and set them aside. Also, cut sausage into small pieces and set aside. Chop a little green onion. 用一个大盆,打几个鸡蛋,搅散。鸡蛋的数量大约是人数的2倍。加入适当的黑胡椒,盐,和十三香。加入放凉的米饭,拌匀。 Crack several eggs into a large bowl, and beat them. The number of eggs used is approximately twice the number of people. Add appropriate amounts of black pepper, salt, and thirteen-spice powder. Mix in the cooled rice until well combined. 烧热炒锅,加入油,把裹上蛋液的米饭和菜,倒入锅中翻炒,加一点葱花。等到感觉米饭不粘了之后,加入一点酱油。蛋炒饭就做好了。 Heat a frying pan, add oil, and pour in the rice mixed with egg and all the vegetables, add the green onion. Stir-fry until the rice no longer sticks together. Then, add a bit of soy sauce. The egg fried rice is now ready.

热门博文 - Popular posts