Category Archives: Uncategorized

为何一次请求会有两次HttpServlet:service调用?

今天看了下阿里出的 Arthas使用文档中有问到:

为什么只访问了http://localhost:8080/a.txt,但Arthas的trace命令打印出了两个请求树?

然后我去自己试了下,发现还真的是这个情况,trace日志如下:

`---ts=2019-02-24 18:05:20;thread_name=http-nio-8080-exec-1;id=15;is_daemon=true;priority=5;TCCL=org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedWebappClassLoader@6601a0f8
Read the rest

Leetcode 990: 等式的满足性

题目来源:https://leetcode.com/problems/satisfiability-of-equality-equations/

题目描述:

给一字符串数组,每个元素是一个等式,表示两个变量之间的关系。每个等式长度为4,形如 “a==b” 或者 “a!=b”,a 和 b 两个小写字母表示变量名,a和b可能相同。

如果能给这些变量分配数字,并满足这些等式,返回 true。

解题过程:

开始想着,遇见新变量且没有约束就… Read the rest

怪屋女孩:灵魂博物馆

刚刚读完了 Library of Souls – The Third Novel of Miss Peregrine’s Peculiar Children

我读这本书其实是为了学英语,但作为一本冒险小说,设定还是很有新意的,尤其是那些照片,还有男主的女朋友!

不过,这种故事是典型的英雄之旅(Hero’s journey)的模版。读到最后,回忆主角经历的种种,恍若隔世,还是蛮温馨的。


接下来是我的笔记,见笑了。

She wished me luck and kissed me on the lips. Then I

Read the rest

Billionaire

The topic is billionaire, namely, If you had a billion dollars, what would you do.

How about browsers billionaires firstly? No, it isn’t interesting.

What can we do with those non-existent one billion dollars?

Hey, I am a man, the cosmetics, the luxuries, will not be on the top of the list.

The simplest… Read the rest

The story about Chang(伥)

First and fomoest, Chang(伥) is a kind of Chinese ghost. Some ancient Chinese books describe Chang.

Guangyiji

In Tang dynasty, Dai Fu, written a book Guangyiji, to record mysterious, supernatural things.

At chapter Xuanzhouer, he writen,

At the end of TIANBAO(C.E. 742-756) in Tang dynasty. There

Read the rest