Hexo中使用markdown来绘制脑图(mind map)

脑图是什么?

脑图英文叫做mind map, 是一种帮助发散思维的工具。将读过的书、看过的源码等总结成脑图,等下次需要复习的时候

阅读更多

xstream教程

使用

pom依赖

1
2
3
4
5
6
<!-- https://mvnrepository.com/artifact/com.thoughtworks.xstream/xstream -->
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
<version>1.3.1</version>
</dependency>

阅读更多

idea文件模板

版权信息

代码前面一般都会有相应的版权信息,拿guava的代码为例

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
* Copyright (C) 2007 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.google.common.collect;

阅读更多

tomcat中文编码设置

tomcat中文乱码

tomcat 默认的编ISO-8859-1编码,部分中文会出现乱码

阅读更多

tomcat access log 格式设置

Tomcat access log 日志格式

文件位置: conf/server.xml

阅读更多

python 小技巧

开启一个简单的HTTP Server

  • 命令:

阅读更多

netcat(nc) —— 使用小结

nc的全称是netcat,提供了许多关于网络操作的功能,号称网络工具中的瑞士军刀。

nc也有windows的移植版本:

阅读更多