Key_points:
- SMTP服务器地址和端口
- 使用TLS加密: 587
1
2server = smtplib.SMTP(smtp_server, smtp_port)
server.starttls() - 使用SSL加密: 465
1
server = smtplib.SMTP_SSL(smtp_server, smtp_port)
- 使用TLS加密: 587
代码如下:
1 | import smtplib |
Key_points:
1 | server = smtplib.SMTP(smtp_server, smtp_port) |
1 | server = smtplib.SMTP_SSL(smtp_server, smtp_port) |
代码如下:
1 | import smtplib |
在VSCode中,打开设置,搜索”latex-workshop.latex.recipes”,将 “args” 部分的内容修改为如下:
1 | "name": "latexmk", |
在VSCode中,打开设置,搜索”latex-workshop.latex.autoBuild.run”,将其设置为”onSave”,这样每次保存tex文件时就会自动编译。
在VSCode中,打开设置,搜索”latex-workshop.latex.recipe.default”,将其设置为”lastUsed”,这样第一次编译tex文件手动选择选择编译器,后面就会默认使用该选择了。
Write a response in which you discuss the extent to which you agree or disagree with the statement and explain your reasoning for the position you take. In developing and supporting your position, you should consider ways in which the statement might or might not hold true and explain how these considerations shape your position.
While discussing the topic of [issue], I partially agree with the author’s stance. However, the author takes the argument to an extreme, which becomes untenable and overlooks other critical factors that are likely to influence the issue. A closer examination reveals that [your viewpoint] holds greater merit in terms of factual accuracy and logical consistency. Therefore, my analysis and perspectives are as follows:
In a sense, I acknowledge the assertion made by the author. While the assertion contains some evident flaws, it does offer certain advantages when applied to specific cases, which is undeniable given their rationality in the context of our daily experience. However, [list reasons for opposing viewpoint/differing viewpoint] provides a counterpoint. Although these reasons may hold some validity, they are limited in certain respects upon thorough examination.
On the other hand, recognizing that a more appropriate choice must incorporate aspects of [issue] as comprehensively as possible, I have to point out my contention with the speaker who, while overstating [xxx], ignores some paramount factors. In short, a deeper analysis reveals the advantages of [your viewpoint]. Firstly, [list reasons supporting your viewpoint]. These reasons not only align more closely with common sense but also hold universal applicability across various contexts. Secondly, further [list reasons supporting your viewpoint] to strengthen the argument. Thus, considering all aspects, it can be concluded that [your viewpoint] is more persuasive.
In conclusion, issue of [topic] is a complex one resulting in that there are no easy or certain answers. The diversity of personal experiences and emotional concerns among people from different cultures means that a thousand individuals might hold a thousand opinions. According to me, while the [opposing/differing] viewpoint may have some validity, a thorough analysis reveals that [your viewpoint] is more reasonable and feasible.
Updated at Feb 18th: Download at here
password: GRE-ALAN-9423
Understand folder and path configuration in Jekyll
在使用 Jekyll 构建静态网站时,了解如何配置文件夹和路径对于网站的组织和内容管理至关重要。Jekyll 是一个功能强大的静态网站生成器,具有独特的文件夹结构和处理规则。本文将介绍 Jekyll 如何处理不同的文件夹,以及如何通过配置使网站更灵活。
Use ssh to connect to AWS EC2 instance
cd command to navigate to the directory where your private key file is located.1 | chmod 400 /path/my-key-pair.pem |
ec2-user with the appropriate user name for your AMI.ec2-user. centos. admin. ec2-user or fedora. ec2-user or root. ec2-user or root. ubuntu. Here my OS is Ubuntu.ec2-user and root don’t work, check with your AMI provider.1 | ssh -i /path/my-key-pair.pem user_name@ip_address |
1 | ssh user_name@my-instance-ip |
Permission denied (publickey) error.To fix it.
1 | ssh -i /path/my-key-pair.pem user_name@ip_address |
1 | sudo passwd ubuntu |
1 | sudo vim /etc/ssh/sshd_config |
Find the Line containing PasswordAuthentication parameter and change its value from no to yes.
1 | PasswordAuthentication yes |
If you want to set up root login, find PermitRootLogin parameter and change its value from prohibit-password to yes
1 | PermitRootLogin yes |
After this changes save file and exit.
1 | service ssh restart ## for ubuntu |
1 | chmod 400 /path/my-key-pair.pem |
1 | ssh user_name@my-instance-ip |