数学之美 Ed2

作者:JerryXia | 发表于 , 阅读 (24)
《亚尼的死者之书》
信道宽窄 vs 信息编码、压缩
来自于直觉的天真想法
《围城》:老科学家可以理解为「老的科学家」或者「老科学的家」
「此地安能居住,其人好不悲伤」
技术分为术和道两种,具体的做事方法是术,做事的原理和原则是道
计算机是如此重要,因此不能只留给男人去做。—— 斯巴克·琼斯
许多失败并不是因为人不优秀,而是做事情的方法不对,一开始追求大而全的解决方案,之后长时间不能完成,最后不了了之
...阅读全文

More on Echo Service: Using TLS and XML Streams

作者:JerryXia | 发表于 , 阅读 (26)
Using TLSOK. We have written a simple echo service, serving both on tcp and udp. Now we want our echo service to be working for TLS, too.
The tls module fits well into implementing TLS based secure connections, for it has the following advantages over the defaut erlang ssl module:
It is implemented using C and has better performance.It supports starttls i.e. start tls over the tcp connection depending on situations, without having to re-establish a new connection.To enable tls connections, use...阅读全文

二级指针在链表操作中的应用

作者:JerryXia | 发表于 , 阅读 (22)
故事起源于Linus大神在回答水友提问的时候有这么一段: http://meta.slashdot.org/story/12/10/11/0030249/linus-torvalds-answers-your-questions
At the opposite end of the spectrum, I actually wish more people understood the really core low-level kind of coding. Not big, complex stuff like the lockless name lookup, but simply good use of pointers-to-pointers etc. For example, I’ve seen too many people who delete a singly-linked list entry by keeping track of the “prev” entry, and then to delete the entry, doing something li...阅读全文

The Architecture of Ejabberd

作者:JerryXia | 发表于 , 阅读 (15)
The Architecture of EjabberdJun 6, 2012
We have taken a quick tour through the socket infrastructure provided with ejabberd, and wrote a few listeners as an exercise. This time let’s take a look at the ejabberd as a whole and try to figure out what it is about.
Overview
Like many servers, ejabberd can inherently be broken up into three layers:
The Data Layer. This layer handles how data get stored in databases, and ensures the integrity and constraints of data.The Logic Layer. This layer is ...阅读全文