Content Explore

Choosing an HTTP Status Code — Stop Making It Hard

Published : 2015-12-08 Categories : Tips Tags : http status
What could be simpler than returning HTTP status codes? Did the page render? Great, return
200
. Doe...

Go语言TCP Socket编程

Published : 2015-11-19 Categories : Coding Tags : Golang TCP Socket
Golang
的主要 设计目标之一就是面向大规模后端服务程序,网络通信这块是服务端 程序必不可少也是至关重要的一部分。在日常应用中,我们也可以看到Go中的net以及其subdirectories下的包...

Profiling & Optimizing in Go - Brad Fitzpatrick

Published : 2015-09-22 Categories : Coding Tags : Go Profiling Optimizing
Profiling & Optimizing in Go
Brad Fitzpatrick
YAPC::Asia 2015
Tokyo Big Sight, 2015-08-22
See th...

Moving a Subdirectory to a Submodule in Git

Published : 2012-04-04 Categories : Tips Tags : Git Submodule Subdirectory SubFolder
Sometimes when you work on a project long enough, you find that for one reason or the other, parts o...

DJBX33A (Daniel J. Bernstein, Times 33 with Addition) APR哈希默认算法

Published : 2011-10-24 Categories : Algorithms Tags : Hash
经典是经过了时间考验的
APR_DECLARE_NONSTD(unsigned
int ) apr_hashfunc_default( const
char
*char_key,
apr_ssize_...

几种经典的 Hash 算法实现

Published : 2011-10-24 Categories : Algorithms Tags : Hash
哈希算法将任意长度的二进制值映射为固定长度的较小二进制值,这个小的二进制值称为哈希值。哈希值是一段数据唯一且极其紧凑的数值表示形式。如果散列一段明文而且哪怕只更改该段落的一个字母,随后的哈希都将产生不...

ZeroMQ 的模式

Published : 2011-09-06 Categories : Message Queue Tags : ZeroMQ Message Queue
在需要并行化处理数据的时候,采用消息队列通讯的方式来协作,比采用共享状态的方式要好的多。Erlang ,Go 都使用这一手段来让并行任务之间协同工作。
最近读完了
ZeroMQ

Guide
。写的...

libevent webserver in 40 lines of c

Published : 2010-07-06 Categories : C Tags : libevent webserver C
Libevent
provides cross-platform asynchronous callbacks on sockets and file  descriptors.  Different...

6 Free PHP Security & Auditing Tools

Published : 2010-06-17 Categories : PHP Tags : php phpsecinfo pixy spike suhosin phpids modsecurity
PHP is a very simple and easy-to-learn programming language – it provides anyone with minimal ...

Lucene倒排索引原理

Published : 2010-01-06 Categories : Big data Tags : Search Index Lucene
Lucene是一个高性能的java全文检索工具包,它使用的是倒排文件索引结构。该结构及相应的生成算法如下:
0)设有两篇文章1和2
文章1的内容为:Tom lives in Guangzhou,I l...