category : 计算机那些事

SaltyNote Implementation - Service

SaltyNote is a Chrome Extension that provides the immersive page notes taken experience. The users can view all the notes taken on the current page from the right sidebar without leaving the page. In this article, I will introduce the implementation of the SaltyNote service.

Quick start: swagger, spring-boot and Jersey

在做服务器端API开发的时候,如何保持文档的更新是一个比较头疼的问题。试过写成word文档,缺点很明显: 更新不及时 不便于查阅 也试过用其他的在线API管理工具,太懒了,总是无法保持更新。而且大多数服务还是收费的。

OpenShift简单折腾小记

前段时间趁着参加一个无聊活动的过程中折腾了一下OpenShift,即使有一些不足,但是感觉它比我想象的好用。底下就扯扯我是瞎折腾过程中得经验。

Java: JDK居然有个叫整型池的东西

其实下面这些个assert语句都可以通过junit测试。 [email protected] void integerValueOfTest() { Assert.assertTrue(Integer.valueOf(-128) == Integer.valueOf(-128)); Assert.assertFalse(Integer.valueOf(128) == Integer.valueOf(128)); Assert.assertTrue(Integer.valueOf(127) == Integer.valueOf(127)); Assert.assertTrue(Integer.valueOf(1) == Integer.valueOf(1)); Assert.assertFalse(Integer.valueOf(1000) == Integer.valueOf(1000));}

博客:从GitHub迁移到OpenShift

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

我的加密进化史

加密是一个争论无止境的话题,服务器端数据保存加密,数据传输加密,等等。在这篇文章我就简单说说我这么多年来在服务器端保存密码的方法进化史。