Posts

Showing posts from September, 2023

元键政3:与低水平言论缠斗意义不大 - Meta Political Discussion 3: It's insignificant to engage in a battle of words with low-level arguments

Image
由于本文可能稍有敏感,这里仅展示英文版。 Sometimes when I go to websites like Douyin, Kuaishou, Twitter, Sohu News, Baijia, and Hupu (They are all common applications/bbses in China) and search for political terms in Chinese, I am overwhelmed by the prevalent nationalism, hate speech, gender conflict, stereotypes, and unverified gossip and salacious news, often accompanied by vulgar images. It sometimes disheartens me so much that I have a feeling that "Chinese people are really unchangeable." However, my feelings are misguided. I should not engage or even associate myself with these users or their comments. If we are to contribute to building a civil society, then we must prioritize maintaining the quality of our own platforms or communities, over anything else. Excessive exposure to bad-quality discourse may cause a dismissive & biased view of our fellow citizens.  Constant exposure to negative and low-level discourse comes with a major risk: our tendency...

资料搜寻:韩国财阀干政的程度有多高? - Data Search: To what extent do South Korean chaebols interfere in politics?

Image
下午和朋友闲聊,她问我,韩国的财阀干政现象是否很严重?这个问题我不好回答,所以我打算简单搜索一下资料查询这件事情。在搜索资料之前,我只零星地听到一些有关韩国财阀干政的新闻,不过对其完全不了解。 In the afternoon, I was having a casual chat with a friend. Suddenly she asked me whether the phenomenon of Korean chaebols interfering in politics was severe. Unsure how to answer, I decided to do a little research on the matter. Prior to this, my knowledge about chaebols meddling in politics was limited to a few sparse news reports that I had heard occasionally. 首先,先简单在维基百科检查一下韩国的情况。 韩国的民主指数 在世界的排名一直在20-30名左右,相当不错;而 2022年韩国的人均GDP 是34000美元,也是标准的发达国家。中英文查找资料得出来的数据都一致。 First of all, I checked the situation in Korea on Wikipedia. Its democracy index worldwide ranking has consistently been between 20-30, which is quite good. Furthermore, Korea's GDP per capita in 2022 is $34,000, marking it a well-developed nation. Both Chinese and English resources provide consistent data. 然后,用汉语在google上搜索“韩国”和“财阀”。扑面而来的是腾讯网,搜狐新闻,网易新闻,知乎等网站 描写韩国财阀的猖獗 的新闻。点开标题为“ 韩国:一个被财阀控制的国家,总统,明星无一...

如何泡各种茶 - How to make various types of tea

Image
图片来源 总述 茶的种类,依据发酵程度以及茶汤颜色排序: 绿茶 白茶 黄茶 乌龙茶/青茶 红茶 黑茶 此外还有 花茶 调味茶 以及其他名叫“茶”,但不由茶叶冲泡的饮料。 所需器皿: 常规泡法: 烧水壶,最好能显示水温 茶壶,最好有滤网 茶杯 分茶器(非必需) 盖碗泡法: 烧水壶,最好能显示水温 盖碗 煮茶: 烧水壶,最好不是铁做的 茶杯&分茶器 或 盖碗 冷泡: 任意容器一个 泡茶步骤: 常规泡法: 抓5-10g左右茶叶放到茶壶里 向茶壶倒入一定温度的热水 等待一定时间 (如果有很多人)把茶倒进分茶器里 向每一个茶杯倒茶,注意不要把茶壶/分茶器倒空 重复第2-5步,每重复一次就是一泡。 盖碗泡法: 抓3g左右茶叶放到盖碗里 倒入一定温度的热水 等待一定时间,通常为三五分钟 煮茶: 用壶烧水至70°C 抓3g左右茶叶放到壶里 水开后再煮5分钟,将茶倒出,之后倒入分茶器或盖碗 冷泡: 抓3g左右茶叶放到容器里 倒入凉水 等待一定时间,通常为几个小时 一些注意事项: 最好用矿泉水泡茶。矿物质可以把茶中的鞣酸沉淀下来,喝起来会少些涩味。 冲泡温度很重要,低了不香,高了太涩。通常来说,发酵越充分,建议使用的水温越高。具体各种茶的最适温度见下文。 冲泡时间不固定,与茶的种类、用量、个人口味有关,第一泡通常15秒-60秒,之后每一泡都比上一泡长15秒。建议自己多试试。通常来说,如果茶汤颜色太浓或太淡了...

制作猪肉炒酸菜 - Make Stir-fried Pork with Sauerkraut

Image
猪肉炒酸菜是一道常见的东北菜,也是我家里的味道。 Stir-fried pork with sauerkraut is a popular dish in the Northeast region of China and also a taste of home for me. 把酸菜切成细条,这里最好用东北酸菜,也可以用德国酸菜。依据酸度不同,用凉水投(浸泡)2-4次。中间可以尝一尝,直到觉得不那么酸了为止。 Cut the sauerkraut into thin strips. It would be best to use sauerkraut from Northeast China, but German sauerkraut can also be an alternative. Depending on their acidity, soak them in cool water 2-4 times. Taste them from time to time until they are not so sour. 选取肥瘦均匀的猪肉,可以包含骨头,将其切成适中的块状。将切好的猪肉块放入清水中烹煮,直到开锅,同时汤面冒出白色的沫子即可。如果不喜欢猪油的味道,就多煮一会儿。将猪肉捞出来,用凉水冲洗干净。放一旁备用。 Choose pork with a balanced fat-to-meat ratio, you can also include some with bones. Cut it into moderate chunks. Boil the cut pork in clear water until it comes to a boil and a white froth forms on the surface. If you don't like the taste of pork fat, boil it a little longer. Remove the pork, rinse it clean with cool water. Set aside for later use. 抓一把花椒(大约30...

如何制作词云 - How to make wordcloud

Image
下图是一张词云的照片。 The image below is a photo of a wordcloud. 首先,安装wordcloud包。对于汉语用户,需额外安装jieba包。 Firstly, install the wordcloud package. For Chinese users, install an additional package, jieba. ```bash pip install jieba pip install wordcloud ``` 上图词云的文本来源是本篇博客,通过爬虫爬取内容,再用BeautifulSoup包解码。读者也可以从文本中读取,或者直接向程序中粘贴文本来源。 The text for the word cloud above was obtained from this blog post, extracted through web scraping, and then decoded with the BeautifulSoup package. Readers could also read from a text file or directly paste the text into the program.  ```python url = 'https://blog.tennisatw.com/2023/09/how-to-make-wordcloud.html' r = requests.get(url=url).text soup = BeautifulSoup(r, 'lxml') paragraphs = soup.find_all('p') blog_text = '' for text in paragraphs: blog_text += text.text ``` ```python blog_text = '文本 text' ``` 如果是汉语用户,由于汉语词汇中间没有空格,需使用jieba分词,执行以下代码: For Chinese users, as Chinese vocabul...

元键政2:键政的意义何在? - Meta Political Discussion 2: What is the significance of discussing politics?

Image
由于本文可能稍有敏感,这里仅展示英文版。 When discussing political issues with my mom, she often comments: "What's the point of all this talk? Please focus on managing your own affairs." In democratic countries, political discussions have significance: the votes of ordinary citizens steer the future direction of the nation. Yet what about authoritarian nations, particularly those where political discussion carries risk? I believe political discussion remains meaningful. There are two key reasons for this. Firstly, it enhances individual knowledge and political literacy. Secondly, it gathers like-minded people together to unify. Both these reasons fundamentally aim to strengthen the power of civil society , thereby empowering citizens to a degree where they can challenge the party or government's authority. There's no denying that the average knowledge level in China, particularly in the arena of politics, remains relatively low. For instance, ma...

自学教材推荐:《动手学深度学习》 - Self-study Material Recommendation : "Dive into Deep Learning".

强力推荐一本优质教材:《动手学深度学习》。它包含了以下内容:多层感知机,深度神经网络,循环神经网络,卷积神经网络,以及有关深度学习的其他知识点。每一个知识点都会附带一小段代码。 Highly recommending a top-quality textbook: "Dive into Deep Learning". It covers various topics including multilayer perceptron, deep neural networks, recurrent neural networks, convolutional neural networks, and other concepts related to deep learning. Each topic comes with a snippet of code. 中文版: https://zh.d2l.ai/ English version:  https://d2l.ai/ 这本教材主要优点有以下几个: The primary advantages of this textbook are as follows: 第一,也是非常非常重要的一点,每一个知识点,它都会附带一段随手即用的代码。不仅能帮助读者更深地理解知识点。同时也使得本教材成为了一本工具书,即使是完全不懂的外行,也可以参照代码自己做深度学习。 第二,它支持中英双语。 第三,它同时给出了TensorFlow和pytorch等多种深度学习Python框架的代码,让读者能根据需要选择适合自己的工具进行学习和编程。 Firstly, and this is a crucial point, each topic is accompanied by a handy piece of code. This not only deepens the reader's understanding of the topic but also turns the textbook into a reference book. Even complete novices can follow the code to condu...

插件推荐:屏蔽黄推 - Plugin Recommendation: Twitter Block Porn

Image
从去年(2022年)或今年年初开始,推特(现在叫做X)上多出了上百个黄推账号(色情推主)。这些黄推账号用着不知道哪里偷来的图片,三五成群,出现在各大中文推主的评论区里,说着土味十足且重复率极高的垃圾情话,十分干扰用户正常体验。 Since last year (2022), or the beginning of this year, hundreds of porn-related accounts have sprung up on Twitter (Now called X). These accounts, appearing in the comment sections of many Chinese posts, use illicitly obtained images and repeatedly post crass, flirtatious remarks, greatly disrupting the normal user experience. 这里推荐一个插件,能够屏蔽这些恶心的sb。 To remedy this, here is a plugin recommendation capable of blocking these vexing accounts.  https://github.com/daymade/Twitter-Block-Porn 首先,需要安装一个浏览器扩展程序:篡改猴。其支持chrome,firefox,edge等常见的浏览器。这里以chrome为例。点击下方链接安装篡改猴: Firstly, you'll need to install a browser extension named "Tampermonkey". It is compatible with popular browsers like Chrome, Firefox, and Edge. For this example, we will use Chrome. Click the link below to install Tampermonkey: https://www.tampermonkey.net/ ...

实验复现:重复的囚徒困境博弈 - Experiment Replication: Repeated Prisoner's Dilemma Game

囚徒困境博弈 - Prisoner's Dilemma Game 囚徒困境是博弈论的非零和博弈中具代表性的例子,个人最佳选择并非群体的最佳选择。以下为囚徒困境的经典表述: The prisoner's dilemma is a representative example in non-zero-sum game theory, where the best choice for the individual is not necessarily the best choice for the group. Here is a classic presentation of the Prisoner's Dilemma: 警方逮捕甲、乙两名嫌疑犯,但没有足够证据指控二人有罪。于是警方分开囚禁嫌疑犯,分别和二人见面,并向双方提供以下相同的选择: 若一人认罪并作证检控对方(背叛对方),而对方保持沉默,此人将即时获释,沉默者将判监3年。 若二人都保持沉默(互相合作),则二人同样判监1年。 若二人都互相检举(互相背叛),则二人同样判监2年。 The police arrested two suspects, A and B, but there was not enough evidence to charge them. Therefore, the police detained the suspects separately, met with them individually, and offered the same options to both: If one confesses and testifies against the other (defects), while the other remains silent, the one who confessed will be released immediately, and the silent one will be sentenced to 3 years in prison.  If both remain silent (cooperate), they will both ...

元键政1:所有理性人都是同构的,但是我有要捍卫的价值观 - Meta Political Discussion 1: All rational beings are fundamentally the same, but I have my own values to defend.

Image
由于本文可能稍有敏感,这里仅展示英文版。 After excluding those who speak irresponsibly, mockingly, and those who just make jokes, only the rational people who can discuss politics remain. As all rational beings are fundamentally the same, that is, there is only one rational perspective when faced with the same situation. Theoretically, their political views should coincide. There should be no conflict when discussing politics with rational individuals. However, I have my values that I defend, which others may deem meaningless. Similarly, what I see as meaningless may be something others defend. My political views are based on the non-infringement of the values I defend. Different factions naturally have contradictions due to differing philosophies. For instance, some believe that everyone trades in a free market, so every bit of a person's wealth is lawfully obtained. They may think it's improper to use one's hard-earned money to support another who doesn...

如何在Blogger中使用Markdown - How to use Markdown in Blogger

有时博客会包含许多代码,使用Markdown会很方便。经多方查找,发现了一个项目,在不影响其他段落的同时,插入markdown段落。 Sometimes blogs will contain lots of code, using Markdown will be very convenient. Upon researching, I discovered a project that can insert Markdown paragraphs without affecting other paragraphs. https://github.com/cs905s/md-in-blogger 由于原文是英语,且其对使用方法的描述不甚明朗,我在此复述一下它的用法。 As its instructions aren't very clear, I will reiterate here on how to use it. 打开blogger的编辑网页,选择“布局”,即可进入编辑布局模式。添加一个小工具,选择HTML/JavaScript,在其内容一栏输入以下代码,然后点击保存。 Open the edit page of Blogger and select "layout" to enter edit layout mode. Add a widget, choose HTML/JavaScript, and enter the code below in its content column, then click save. ```html <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/styles/default.min.css"/> <script src='//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/highlight.min.js' type='text/javascript'>...

视频推荐:《陌生人——柴静对话圣战分子》 - Video Recommendation: "Stranger: Talking to Jihadists"

《陌生人——柴静对话圣战分子》是一系列视频,总共有6集。截止目前(2023/9/5),它已经出了前3集。 "Stranger: Talking to Jihadists" is a video series consisting of six episodes in total. As of now (September 5, 2023), the first three episodes have been released. https://www.youtube.com/watch?v=X4otYJGByic 这是一套非常有深度的与圣战恐怖分子的采访及对话。我们会认为他们是逻辑混乱,没有良知的人,但柴静用圣战分子的话向我们揭示了圣战分子的世界。视频中从各个方面分析了圣战分子的来源,想法,做事动机。令我相当佩服的一点是,她真的能找到并采访到各种各样的恐怖分子,让他们亲口说出他们的故事和逻辑,而不是借由第三者之口把他们描述成暴徒,或用定制的理论对他们的行为进行简单解释。 This is an incredibly profound series of interviews and conversations with jihadist terrorists. We may perceive them as illogical and immoral, but Chai Jing uses the words of the jihadists themselves to reveal their world. The videos analyze the origins, thoughts, and motivations of jihadists from various angles. One aspect I greatly admire is her ability to find and interview a wide range of terrorists, allowing them to share their stories and logic firsthand, rather than portraying them as thugs through...

实验复现:绘制曼德勃罗集合 - Experiment Replication: sketch a Mandelbrot set

Image
 曼德勃罗集合是一个在复平面上的分形。定义级数z,z(0)=0,z(n+1)=z^2+c。使得级数z收敛的所有c(复数)的集合即为曼德勃罗集。 The Mandelbrot set is a fractal on the complex plane. It is defined by the series z where z(0)=0 and z(n+1) =z^2+c. The collection of all c (complex numbers) that make the series z converge is the Mandelb rot set.  不收敛的级数也有有趣之处,我们可以去研究其发散的速度。一般来说,越接近曼德勃罗集合的点,其级数发散得越慢。 The series that doesn't converge is also interesting, as we can examine the rate at which it diverges. Generally, points near the Mandelbrot set tend to have series that diverge slowly. 以下为绘制曼德勃罗集合的全部代码。 Below is the code. ```python import numpy as np import seaborn as sns from matplotlib import pyplot as plt def mdbt(c: complex): f_x = 0 for i in range(200): f_x = f_x * f_x + c if abs(f_x) > 10e10: return i return None x_list = [(x - 2500) / 1000 for x in range(3501)] # [-2.5,1] y_list = [(y - 1200) / 1000 for y in range(2401)] # [-1.2,1.2] z = np.zeros([3501, ...

实验复现:0的0次方等于什么? - Experiment Replication: What is 0 to the power of 0?

Image
这个实验相当简单,使用计算器计算0^0,其显示1。 This experiment is quite straightforward, using a calculator to compute 0^0, which yields 1. 但是这个问题又远比上述复杂,因为我们只需要简单计算一下0^0.01就会发现,其结果等于0,而不是1。无论0的指数多么趋近于0,其结果也并没有更趋近于1。而按照微积分和极限的思路去考察,0^0又是个不定式,因为以各种不同的路径趋近于0时的极限值不同,所以它没有定义。 However, the issue proves to be more complex than it initially appears. Simply computing 0^0.01 reveals that the outcome is 0, not 1. No matter how the exponent of 0 approaches 0, the result does not converge to 1. Viewing it through the lens of calculus and limits, 0^0 is an indeterminate form, as it lacks a defined value due to differing limit values when approaching 0 through various routes. 所以与其纠结0^0的值,不如考察函数f(x,y)=x^y在(0,0)附近的图像,从更高的维度解答此问题。考虑从[-1,1]内均匀选取201个值,每两个点之间相隔0.01,分别带入x和y,并利用热图的方式画出函数图像。代码呈上。 Therefore, rather than fixating on the value of 0^0, it may be more insightful to examine the graph of function f(x,y)=x^y near (0,0) for a higher-dimensional perspective. Consider uniformly selecti...

热门博文 - Popular posts