Archive for the ‘My Work’ Category

StackExchange 将免费发布!

StackExchange 是 StackOverflow 的创始人 Joel Spolsky 和他的公司 Fog Creek 开发的一个基于 Stack Overflow 引擎的软件即服务版本。StackExchange 允许用户创建任意主题的问答网站,这项服务主要根据流量规模收费,运行与 Stack Overflow 同样的软件,用户可以使用 Stack Overflow 的一个子域名,或另外的顶级域名,去建立一个知识库社区。

Read the rest of this entry »

常见的C语言基础话题

1,const char 与 char 的区别
原文参考这里: http://topic.csdn.net/t/20030326/22/1581422.html
最这两个例子: const char * c=”hahaha”;和 char * c =”hahaha”; 而言,CSDN上的朋友给了详细的解释:

Read the rest of this entry »

使用Automake生成Makefile文件

先上一张图,再逐渐完善起来。需要整理各个命令的具体功能,宏的定义和格式,一个小软件的配置样例等。

Read the rest of this entry »

系统中Latency的差异

Jeff Dean提到不同数据访问方式latency差异
Numbers Everyone Should Know
L1 cache reference                           0.5 ns
Branch mispredict                            5 ns
L2 cache reference                           7 ns
Mutex lock/unlock                           25 ns
Main memory reference                      100 ns
Compress 1K bytes with Zippy             3,000 ns
Send 2K bytes over 1 Gbps network       20,000 ns
Read 1 MB sequentially from memory     250,000 ns
Round trip within same datacenter      500,000 ns
Disk seek                           10,000,000 ns
Read 1 MB [...]

Read the rest of this entry »

惠普的无耻行为

开始Post之前,各位先看看今晚 cnBeta 上相关的报道:
惠普全球副总张永利代表惠普向消费者表示歉意 http://www.cnbeta.com/articles/106353.htm
全国状告惠普第一人:维权需注意细节 http://www.cnbeta.com/articles/106343.htm
淘宝网发布消费警示,禁售部分型号惠普电脑 http://www.cnbeta.com/articles/106356.htm
HP打印机也可以被入侵 http://www.cnbeta.com/articles/106359.htm
惠普:学生宿舍蟑螂太恐怖 http://www.cnbeta.com/articles/106286.htm

Read the rest of this entry »

一个中级SA的职业需求

晚上登陆 LinkedIn 整理信息时发现了这条已经 reject 掉的 offer,仔细看了下,觉得还有价值的,比较符合通用的职业需求。在这里详细整理一下,再加上自己的最近的一些想法。

Read the rest of this entry »

如何调整OpenVZ中虚拟机的内存

今天又遇到这个问题,还好有位同志找到了方法。用OpenVZ创建的虚拟机默认只有 256MB 的内存,需要修改配置文件增加这个上限。 配置文件在 /etc/vz 这个目录下,需要调整的参数是 PRIVVMPAGES,它的值乘以4kb便是系统中实际可用的内存大小,比如默认值是 65536:

Read the rest of this entry »