The Machine Learning

The tremendous development of artificial intelligence technology in recent years has made this technology famous, people even can hear this word from a primary school student who just knows how to type. However, as an important part of artificial intelligence, “machine learning” is not so famous. However, machine learning is a shortcut to “intimate contact” between ordinary people and artificial intelligence, even if they do not have in-depth study in computer science.

So, what is machine learning? You can simply understand from the literal meaning: give computers the ability to “learn”. Machine learning is a very interesting technique. It uses technical means to enable computers to analyze the information they receive and to form an “understanding” of the information. Machine learning is a very esoteric technique, but it is friendlier to the average user than to the developer. In other words, if people don’t plan to write a machine learning algorithm and just apply machine learning, it will be very simple and attractive.

In order to make simple use of existing machine learning techniques, we can use some open source libraries to achieve. For example, for most students, writing a TOEFL essay is a painful thing, and if we look through common machine learning documents, we will find a library called “scikit” for literary analysis such as semantic recognition. Therefore, we only need to write a program that uses this library (this is still difficult, but obviously it’s easier than writing a machine learning algorithm from the beginning, and it seems to have been written by some machine learning experts). So, we just import a few TOEFL essays we wrote before (this is called “training”), and then import a sample of the TOEFL essay you are about to write, the computer can analyze your logic, style and other writing habits and the sample. Then, rewrite “your own” TOEFL essay, does this sound great? (I am not trying to provide a lazy way to write a TOEFL essay, it is important to learn English well) Of course, machine learning can do a lot of other things like face recognition, OCR, even Alpha Go uses machine learning. So, machine learning fascinates me because machine learning can provide a quick way for ordinary people to solve practical problems.

[转载] Ubuntu 18.04 安装 Docker

第一种方法

从Ubuntu的仓库直接下载安装。安装比较简单,这种安装的Docker不是最新版本,不过对于学习够用了,依次执行下面命令进行安装。

$ sudo apt install docker.io

启动Docker服务:

$ sudo systemctl start docker
$ sudo systemctl enable docker

查看是否安装成功:

$ docker -v
Docker version 17.12.1-ce, build 7390fc6

第二种方法

从Docker仓库下载安装。这种安装方式首先要保证Ubuntu服务器能够访问Docker仓库地址:https://download.docker.com/linux/ubuntu,如果能够访问,按照下面的操作步骤进行安装。

$ sudo apt update
$ sudo apt install apt-transport-https ca-certificates curl software-properties-common

在/etc/apt/sources.list.d/docker.list文件中添加下面内容:

deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable

添加秘钥

$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

安装docker-ce

$ sudo apt install docker-ce

查看是否安装成功:

$ docker -v
Docker version 18.03.1-ce, build 9ee9f40
原帖地址:https://blog.csdn.net/u010889616/article/details/80170767
作者:dmfrm

No more bugs, please!

In general, I am a normal person, which means that I don’t have any special skill. But there is a skill or ability that I really want, is to write code without bugs.

Let me explain this, programming is my hobby. However, when people write code, they make some logic, structure, and syntax errors. These errors are called “bugs.” For all programmers, it is annoying to have bugs in the code. I sometimes spent hours checking a large program and finally found a missing colon in a certain part of a line, what’s more, when the logic of the program goes wrong, people even need to rewrite the whole program to correct these errors. So, bugs may be the second thing that programmers hate. However, bugs in the code are almost inevitable, and someone even joked that programmers and bugs are inseparable. Therefore, I, or almost all programmers, have a dreaming ability (in my opinion, “super power”): no bugs when writing code.

Although this ability seems impossible to obtain, it is also a good thing to have a good dream.

printf("Hello World")
printf("There is a bug above!");

If I am the supreme leader of the world

First of all, I need to declare that it is simply impossible to become a “supreme leader” in today’s world. The following text is full of conjectures, hope they will never appear in the real world.

I can imagine how I became the supreme leader, a possible way is: I created a company, after decades of operation, the company has mastered most of the world’s money and resources. Then I use my huge assets to subvert the governments and other organizations in the world. Finally, I become the leader of the world.

As for how I will manage the world, since there is a “supreme leader”, I must be a dictator. As a dictator, in order to maintain my dictatorship, several necessary steps need to be taken. I will try to wipe everything that is against me from the earth. And to control people’s thinking, I will promote “hero-worship” in the world and the object is me, also I will monitor the communication of all citizens. Modify the language when necessary to make people unable to think about things that against me. After these steps, I will try to rebuild the history, because history is the only way people can know about the past, once history is wiped and rebuilt in the direction that I want, there is no reason to against my rule because nobody can give a standard of “better life”. Finally, I will establish a legal system that seems fair and reasonable (Just like Hangzhou $#@ $#$#& %&#%&@%&$$% &%@#$@*# did), this will ensure nobody will even feel the anomaly of the world.

Help David on his research

My favorite memory in high school is that I helped my AP physics teacher David in his research. After the end of the semester 1, David invited me to help him make a GUI program for controlling wave generators in order to generate a suitable wave to bring the laser to a stable state. I accepted his invitation and went to his lab on a Sunday.

On that day, David and I studied the application programming interface of the generator and planned how to design the program. We have met a lot of problem, but finally, we completed the GUI program using the Python language. Although the output wave still does not achieve high stability of the laser that the research needs, but it is the most memorable experience after I came to high school: to achieve the goal with David and try to solve the problems, and it is meaningful. So, this was my favorite memory from my first year in senior high school.