Share my knowledge, feel my life. Eric Shan' Blog myBloggie 2.1.6 © 2005   
Mar 2025 April 2025 May 2025
S M T W T F S
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30    
Categories
About[5]
Blackberry[1]
dotNet and C Charp[1]
IPhone[10]
Life[4]
Unix&Linux[19]
WEB programming[16]
Windows API[5]
Windows Mobile[1]
Windows Multimedia[4]
Recent
CentOS mount CDrom and USB
CentOS GHOST(幽灵)漏洞修复方法
centos 改变语言并立即生效
centos vpn 接通后无法连接internet
让vlc播放中文字幕不出乱码
centos 取消屏保
php中ob_flush和flush的用法
CentOS检查,添加,删除自启动服务
CentOS中开机自动启动某个服务
Top命令中的翻页
Archives
February 2010[4]
September 2009[1]
August 2009[1]
January 2009[7]
October 2008[10]
June 2008[2]
December 2007[14]
November 2007[5]
May 2007[9]
April 2007[3]
March 2007[10]
User List
Eric Shan[66]
Search
Syndication
30 Jan 2015   05:04:50 pm
CentOS GHOST(幽灵)漏洞修复方法
修复方法:

RedHat、Fedora、CentOS系统:

yum update glibc glibc-devel glibc-common glibc-headers


Debian、Ubuntu系统

apt-get clean && apt-get update && apt-get upgrade


升级后,建议重启用到 glibc 的进程,或者重启服务器。
Category : About | Posted By : Eric Shan | Comments[0] | Trackbacks [0]
14 Dec 2008   12:30:18 pm
How google convertion tracking know if you are from adwords
In 'google convertion tracking', I was wondering how google ensure this page is lead by google adwords and not by anything else. I think it was because a cookie was set when user click the adwords, and after that when this user visit the convertion tracking landing page, the information will be checked before google recorded it as a successful convertion. If google did not find the correct information in the cookie, it will not caculate as a successful convertion.

Who can prove it.
Category : About | Posted By : Eric Shan | Comments[0] | Trackbacks [0]
19 Jun 2008   08:04:12 am
Readdir
http://www-128.ibm.com/developerworks/aix/library/au-unix-readdir.html

The dirent.h functions, opendir(), readdir(), and closedir(), are just what you need. Using them is very similar to the open/read/close idiom you're probably used to using with files, with one exception: the readdir() function returns a pointer to a special structure (of type struct dirent) for each directory entry

dir = opendir( "some/path/name" )
entry = readdir( dir )
while entry is not NULL:
do_something_with( entry )
entry = readdir( dir )
closedir( dir )


int readdir_r(DIR *, struct dirent *, struct dirent **);

struct dirent {
ino_t d_ino; /* file number of entry */
__uint16_t d_reclen; /* length of this record */
__uint8_t d_type; /* file type, see below */
__uint8_t d_namlen; /* length of string in d_name */
char d_name[__DARWIN_MAXNAMLEN + 1]; /* name must be no longer than this */
};


file type is list below,

DT_UNKNOWN
The file type is unknown.
DT_REG
This is a regular file.
DT_DIR
This is a directory.
DT_FIFO
This is a named pipe, or FIFO.
DT_SOCK
This is a Unix domain socket.
DT_CHR
This is a character device.
DT_BLK
This is a block device.
Category : About | Posted By : Eric Shan | Comments[0] | Trackbacks [0]
08 Mar 2007   06:09:16 am
This is a test of chinese characters-中文测试
Inside Message.

中文,这是中文英文测试

this is a test of English Chinese Mixture.
Category : About | Posted By : Eric Shan | Comments[0] | Trackbacks [0]
06 Mar 2007   04:33:34 am
My first step--热烈祝贺我的blog开张


Hi All,

My name is Eric Shan, my Chinese name is Yihua Shan. I'm living in Shanghai China.

All articals post here are in English and Chinese both.

大家好,我是Eric Shan,我是中国人.我住在中国上海.

在这里所有的文章都会以中英文两种语言同时书写.
Category : About | Posted By : Eric Shan | Comments[0] | Trackbacks [0]
 
1
Template theme : aura
Powered by myBloggie Copyright © 2004 2006
-- myWebland --

Sponsed by TNTSoft Store