- 浏览: 9661 次
- 性别:
- 来自: 上海
-
最新评论
文章列表
在centos系统上用php处理中文文件名
环境介绍: apache: utf8, mysql: utf8, php页面 utf8; centos lang: en_utf8
任务的简单描述,通过类似
http://www.shumo.com/file.php?id=2 的uri来获取编号为id的文件流,file.php通过访问数据库表来获取中文文件名
...
- 2009-08-18 01:26
- 浏览 2855
- 评论(0)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//#define __DEBUG
#define PHONESIZE 40
typedef struct _phone_stat {
char phone[PHONESIZE];
int count;
} phone_stat;
char CHAR_MAP[0x100];
int count;
int nitems = 0;
void charmap_init(void) {
int i;
fo ...
- 2009-05-20 01:49
- 浏览 912
- 评论(0)
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#ifdef WIN32
typedef __int64 int64;
#else
typedef long long int64;
#endif
typedef struct _bignum {
int64 data[0x20]; /* 默认分0x20段,每段5位 */
int segsize; /* 实际段数 */
int np; /* 小数位数 */
...
- 2009-05-19 17:52
- 浏览 779
- 评论(0)
看了云风
的博客,里面有很大篇幅是关于Lua
的,所以想感受一下Lua。
先前也用过很多脚本语言,用php写过网页,python写过简单小程序, 后来由于rails接触了ruby, 似乎ruby更优雅,工作需要也写perl。由于这些脚本语言平时 ...
- 2009-05-15 01:17
- 浏览 3555
- 评论(0)
search text in files: grep -nr 'text' dir
show the desktop: ctrl+alt+d
set shortcut, system->preferences->keyboard shotcuts
change the file permission: chmod [a+x] file
vim, press i to enter ('insert' | 'edit') mode, press 'esc' to command mode.
[A].about high resolution, the whole desk ...
- 2009-01-14 23:50
- 浏览 805
- 评论(0)