Blogs

Category: none



2017年阅读笔记(第一部分)

25 May 2017    reading

2016年我算是阅读了很多本书,不过不少是走马观花的看完了的,于是想2017年认真的看一些书,于是当初数量的目标就低了。是啊,慢不等于就是会细,也许反而是借口,打游戏,看视频,或者就是看一些比较简单的文章,都是会比看书来的更轻松。所以有些时候会感慨,人的确不能把自己逼得太狠,但一旦从心理上放松了,那么要想有些作为都几乎不可能了。如同长跑一样,累是一定的,但是不是不能坚持,也没有跑得过快造成身体不适或是如何,这样的时刻如果在想着坚持一下,再坚持一下就向前继续下去,最后能到终点了。不过一旦泄气了,那么基本就只能走下去了,即便恢复了些体力,也不能跑远了啊。阅读或者人生不是长跑,而是,起码按统计数据是的,多了很多倍的马拉松,各种事情的平衡啊都很重要。不管是出名要趁早还是人生很长慢慢来,这样想来总是要很有坚持的有目标的。否则就再而衰三而竭了。

Using Tesseract to recognize datetime from pictures

08 Feb 2017    python, OCR

Tesseract is a software for recognizing texts on images, or it is for optical character recognition. It was developed in HP and now maintained by Google. Currently it is not the most advanced and accurate character recognition program but it is open source and easy to use.

Install Postgresql 8.3 on Ubuntu

27 Jan 2017    reading

One of the projects that I am recently working on involves postgres and since it is an old project, the production server version is 8.3. Although I am pretty sure I did not use anything fancy that is added in 9.*, it is better to test in a exact situation as production server before we apply any upgrade(preparing for the update take a lot of care and effort because if something went wrong, even recovery is not an easy step in most cases. And however bad things may happen could happen.)

Reading notes about books I read in 2016 (Part 2)

07 Jan 2017    reading

2016年里我读了大概50本书,包含了编程,历史,哲学,经济等等。在这些书里,当然有些很棒,开拓眼界,发散思维,有些则是纯粹为了打发时间。这里我回顾一下读过的书同时推荐一下一些我觉得很好的书。

Reading notes about books I read in 2016 (Part 1)

07 Jan 2017    reading

2016年里我读了大概50本书,包含了编程,历史,哲学,经济等等。在这些书里,当然有些很棒,开拓眼界,发散思维,有些则是纯粹为了打发时间。这里我回顾一下读过的书同时推荐一下一些我觉得很好的书。

Weird bug that you cannot even debug in Python

20 Dec 2016    python

Recently I took over an existing project. There is some newly added feature and I started to debug using ipdb. So everything went well–I input “\n” to see what happens when executed to next line. But then all of a sudden this command does not work anymore–seems the debugger just breaks and all of my subsequent breakpoints did not pause the program execution.

About Python 3, to support or not to, it is not a question

30 Nov 2016    python

Python 3 has been out for quite a long time and because of various reasons, mainly the decision of non-backward-compatability, the migration process is still slower than expected. Python 2 is very easy to use and great to work with already and all of sudden the community is saying that we have several great ideas to improve Python 2 and all of existing Python programmers need to rework on their skills. As a Python programmer myself, honestly I am not happy about this–and I do not think any Python programmers are happy about old code just break and will not run at all–because we are programmers and we are human, we do not like changes and we like things to be stable so that we are still in our old comfort zone.