Google
 

The Posts in ‘Tech articles’

2008-09
12

one simple shell CGI script

Filed under: Tech articles — woojar @ 3:01 pm

Recently I want to learn further the shell programming. So just make the script to get the CPU usage rate.

#!/bin/bash
INPUT=/proc/stat
INTERVAL=1;

GetLoad(){
T2=`sed -n “1″p $INPUT |awk ‘{ print $2+$3+$4+$5+$6+$7+$8 }’`;
A2=`sed -n “1″p $INPUT |awk ‘{print $5}’`
}

GetLoad;
A1=$A2
T1=$T2
sleep $INTERVAL
GetLoad
A=$(($A2-$A1))
T=$(($T2-$T1))

echo “contentType: text/html”
echo “”
#echo “”
#echo “”
#echo “”
#echo “”
#echo “”

echo $A $T |awk ‘{printf “%.2f\n”,$1/$2}’

#echo “”
#echo ““

2008-06
21

Building Your Career Path

Filed under: Tech articles — woojar @ 9:51 pm

Original source: http://career-growth.blogspot.com

Building Your Career Path

Career growth and excellence contribute significantly to life satisfaction. They require acting with commitment and integrity. We need to set our standards high and continually acquire new knowledge to grow and perform with excellence. People are essential to success, and we must listen deeply to communicate powerfully. Leading others from our deepest values allows us to lead with empathy. (more…)

2008-06
12

Sendmail+Dovecot on Fedora

Filed under: Tech articles — woojar @ 9:44 pm

Sendmail is a MTA(Mail Transport Agent) open source software. It’s built in the Fedora Core and many other GNU distribution.

(more…)

2008-06
4

需求定义在软件开发中的重要性

Filed under: Tech articles — woojar @ 9:19 pm

所谓需求定义就是对将要开发出来的软件产品以用户角度所做的功能性,可用性,安全性,性能等方面的明确描述.简单的来讲就是要说明白做什么东西.以文档形式存在为PRD(Product Requirement Document) or Requirement Specification. (more…)

2008-05
9

交叉编译

Filed under: Tech articles — woojar @ 5:26 pm

近来一直忙于一个跨平台移植(porting from x86 to PowerPC)的一个项目,基本上整天是编译与交叉编译。下面想从以下几个方面谈一下交叉编译。

  1. 何为交叉编译?
  2. 何为交叉编译器?
  3. 为什么要交叉编译?
  4. 交叉编译应该注意哪些?

(more…)

 Page 1 of 26  1  2  3  4  5 » ...  Last » 
29 queries. 2.586 seconds. Powered by WordPress
沪-ICP备07003363号 Stat.