#!/bin/sh
#函数要定义在使用之前
function?lession(){
???echo?"this?is?a?function"
}
lession
function?lession2(){
???echo?"this?is?lession2"
???echo?"The?first?is?$1"
???e...
分类:
其他好文 时间:
2014-07-22 09:13:36
阅读次数:
141
非阻塞的程序 应该保障的一些特性 : 等待无关性wait-free:能确保每次的调用在有限的步数之内完成,不管其他调用的步骤有多少。杀掉几个线程 锁无关性lock-free:执行这段程序的某些线程会被延迟,但必须确保至少...
分类:
其他好文 时间:
2014-07-22 09:10:35
阅读次数:
374
先从最最最基础的开始 一、登录/退出 ????登录:mysql -h hostname -u username -p ????退出:exit; 二、导入/导出[注意:这是在shell下直接敲命令,不用也不能登录mysql] ????导入:mysql -hostname...
分类:
数据库 时间:
2014-07-22 08:37:33
阅读次数:
275
$dom?=?new?DOMDocument?(?‘1.0‘,?‘gbk‘?);
????$dom->formatOutput?=?true;
????$comment_str?=?‘?file?create?time:?‘?.?date(‘Y-m-d?H:i:s‘,?time())??.?‘?by?tree....
分类:
Web程序 时间:
2014-07-22 08:34:33
阅读次数:
237
从后台传来数据?request.setAttribute("time", time), time有year、month属性, 而前台页面上的select中的option却已写死, 可以通过 jstl 表达式来进行判断。 这种写法只可以对简单的数据进行判断。 ?<select...
分类:
其他好文 时间:
2014-07-22 08:25:35
阅读次数:
359
杀死wineqq进程 $?killall?wineserver?QQProtect.exe??
explorer.exe?QQ.exe?Tencentdl.exe?qdwnd=65610?TXPlatform.exe?
services.exe??winedevice.exe??plugplay.exe...
题目如下: Counting Subsequences Time Limit: 5000 MSMemory Limit: 65536 K Description ?"47 is the quintessential random number," states the 47 society. And there might be a grain of truth in that....
分类:
其他好文 时间:
2014-07-22 08:13:34
阅读次数:
281
-b file??????????? 若文件存在且是一个块特殊文件,则为真? -c file??????????? 若文件存在且是一个字符特殊文件,则为真? -d file??????????? 若文件存在且是一个目录,则为...
分类:
其他好文 时间:
2014-07-21 10:24:40
阅读次数:
231
生活在 Bash shell 中,熟记以下快捷键,将极大的提高你的命令行操作效率。 编辑命令 Ctrl + a :移到命令行首 Ctrl + e :移到命令行尾 Ctrl + f :按字符前移(右向) Ctrl + b :按字符后移(左向) Alt ?+ f...
分类:
其他好文 时间:
2014-07-21 10:17:07
阅读次数:
189
function?format_date($time){
????$t=time()-$time;
????$f=array(
????????‘31536000‘=>‘年‘,
????????‘2592000‘=>‘个月‘,
????????‘604800‘=>‘星期‘,
????????‘8640...
分类:
其他好文 时间:
2014-07-21 10:07:32
阅读次数:
177