God made the integers, all else is the work of man.

2020-01-15
Deploy VPN on AWS

Deploy VPN on AWS

Algo provides an opportunity to setup personal VPN easily, which allows people to deploy personal VPN sever on AWS for 1 year freely.

Read More

2019-05-07
Unsigned integers in cpp

In computer programming, an integer overflow occurs when an arithmetic operation attempts to create a numeric value that is outside of the range that can be represented with a given number of digits – either larger than the maximum or lower than the minimum representable value.

The most common result of an overflow is that the least significant representable digits of the result are stored; the result is said to wrap around the maximum (i.e. modulo a power of the radix, usually two in modern computers, but sometimes ten or another radix).

An overflow condition may give results leading to unintended behavior. In particular, if the possibility has not been anticipated, overflow can compromise a program’s reliability and security.

Read More

2019-04-10
How to specify a newer version gcc for cmake

After I upgraded gcc from version of 4.4.7 to version of 7.4.0 on CentOS 6.5, some ridiculous bugs happened when I linked my project to gtest. So I rebuilt gtest using the newer gcc, however, bugs remained. In the end, I found that cmake did not use the newer gcc when I was typing cmake .. command, I guessed that was the key.

Read More

2019-03-06
[Translation] The Lifetime of Food

Design is Refactoring-The Lifetime of Food

设计即重构 —— 食物的生命周期
A Rusty Analogy using Millennial Stereotypes
一个采用千禧年固化形象的 rust 式类比

Imagine you are out to dinner with some friends. You are all stereotypical Millennials so photographing your meal is expected. For every dish you order each of your friends borrows it, takes a photograph, and then returns it to you.

想象一下,你准备和几个朋友一起去外面吃饭,你们都是典型的千禧年一代,所以拍照是意料之中的事情。对于你点的每一道菜,他们都会拿过去拍一张, 然后再还给你。

Read More

2019-03-03
What I Have Learnt From the Dissertation of Danqi

What I have learnt from the dissertation of Danqi

Not many doctors’ dissertations could be big bang, but Danqi Chen‘s did. Recently, the doctor from Stanford NLP Group has attracted a lot of attention, including my friends and me.

The library of Stanford said her doctor dissertation named Neural Reading Comprehension and Beyond that reaches 156 pages had been read over 1,000 times in four days, since it was uploaded, which has becoming the most popular dissertation for doctor degree in recent decade.

And here I am writing what I have learnt from it.

Read More