万恶的Adobe Reader安装

对于PDF文件,我一直都是用Foxit Reader,但是最近在测试网站在IE中显示PDF文件的时候(IE真操蛋,没有内置的PDF渲染器,需要插件支持),公司让我安装一下Adobe Reader。 无奈 之下又得安装一下。没想到整个安装过程比我想象的折腾。


之前博客一直以纯静态的方式托管在GitHub Page里面(是基于Hexo的),遗憾的是 百度蜘蛛频繁乱爬,导致GitHub对它采取了屏蔽。(参考:解决 Github Pages 禁止百度爬虫的方法与可行性分析)另外这篇文章末尾给出了一个解决该问题的可行方法,但是我个人没有试。 GitHub Page虽然支持自定义域名,但是对https支持的不好(这是一个次要的理由)。



Java Mail中文乱码


Nginx: 简单负载均衡

工作之前的时候,做任何web项目,我都会选择用PHP,简洁,快速,有时候很赞同PHP是世界上最好的语言,但是有些时候还是不如Java来的利索。可惜的是Java“不支持”热部署(至少在生产环境下不建议热部署), 导致每次部署都会有一段服务下线的时间(更糟糕的是用户的session也会随之丢失,最最糟糕的时候,每次部署,有时候还不得不重启一下Tomcat)。

My Windows Tools

I am a software developer, and during my daily work time I use a DELL laptop with Win7. Since I have used windows for a long time, and used and am using a lot of awesome tools, below is the list of tools I recommend.

LeetCode answers in Java

I have put all my answers of LeetCode questions here: LeetCode(Java). Hope this will be helpful for anyone who is fighting with interviews.

Jackson: deserialize nested object

I am implementing a RESTful server inside my company. The workflow is very straight-forward: request and response. However, nothing is easy, the RESTful service is based on an existed project, which handles database operations, and the entities inside that project is pretty complex(a lot of interfaces and abstract classes).

Fix: Tomcat7 restart too slow in Ubuntu 14.04

I have two servers in DigitalOcean, and both of them are Ubutun with tomcat 7. Recently, I found that if I want to restart tomcat, it will cost me more than 5 minutes(No errors during this). And the worest is(almots half an hour): 1INFO: Server startup in 1497026 ms