Archive for the ‘Linux’ Category

LibFetion的1.3版本发布

从 LinuxToy 上看到 Linux-Fetion 1.3 发布了,由于没有基于RPM的系统,暂测试不了,从程序截图看,美观,大方,简洁! Libfetion的 API 开发文档在这里。

Read the rest of this entry »

在 Shell 中调用 Perl 代码

在 Perl 中调用 Shell 代码,比较容易。但在 Shell 中调用 Perl 的样例不多。今天再次遇到类似的脚本,帖过来保存:

Read the rest of this entry »

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 »

UNIX环境下的基础问题整理

关于 Linux/UNIX 下基本问题的一个整理,做为系统管理员弄清楚这些问题,还是非常有必要的。
共享内存,IPC,线程的实现方法/创建与管理/对比,读写锁相关,各类型的数据的内存分配方式,等等。
[保持更新]

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 »