条件编译#if (PHONE_TYPE == T46_TYPE)#define LINEKEY_PERPAGE_COUNT 9#elif (PHONE_TYPE == T48_TYPE)#define LINEKEY_PERPAGE_COUNT 9#elif (PHONE_TYPE == T42_T...
分类:
其他好文 时间:
2014-07-11 23:31:57
阅读次数:
175
Erlang系统自带的基础数据类型有:atom、tuple、list、binary、pid、float、number、port、reference、record。用户可以通过通过命令type来自定义数据类型,实现方法:-type device() :: atom() | pid().-type pr...
分类:
其他好文 时间:
2014-07-11 23:26:47
阅读次数:
507
function repeat(str, count) { return count '; }; document.write(s);}diamond('A', 5);
分类:
Web程序 时间:
2014-07-11 23:17:14
阅读次数:
213
IBatis.net在多线程中报错“WebSessionStore: Could not obtain reference to HttpContext”分析:因为ibatis的ISqlMapSession是存储在Http.Request.Items上的,在你新开的线程里是不能操作IIS的上的线程的...
分类:
Web程序 时间:
2014-07-11 22:52:37
阅读次数:
331
$ cat ascii.sh dec_count=0while [ $dec_count -lt 256 ]do echo -e "\x$(echo "ibase=10;obase=16;$dec_count" | bc)\c" dec_count=$((dec_coun...
分类:
其他好文 时间:
2014-07-11 22:42:50
阅读次数:
496
import java.util.Scanner;public class Counter { static Scanner scanner = new Scanner(System.in); public static void count(String s) { int...
分类:
编程语言 时间:
2014-07-11 18:52:15
阅读次数:
208
查询占用cpu最高的20条sql语句,sql2008SELECT TOP 10 a.creation_time,total_worker_time/execution_count AS avg_cpu_cost, plan_handle,execution_count,(SELECT SUBSTRI...
分类:
数据库 时间:
2014-07-11 18:32:51
阅读次数:
271
selectsubstr(to_char(t.callintime,'yyyy-mm-ddhh24:mi:ss'),0,15),count(1)fromt_ivr_call_logtwheret.callintime>trunc(sysdate-8)andt.callintime<trunc(s.....
分类:
其他好文 时间:
2014-07-11 11:36:50
阅读次数:
205
select count(1) from (select distinct a.ID from chatonline a, chatonlinelog b where a.ID = b.chatonlineID) t
分类:
数据库 时间:
2014-07-11 11:25:46
阅读次数:
232
list = [1,1,3,4,6,3,7] 1.for s in list: if list.count(s) >1: list.remove(s) 2.list2=[]for s in list: if s not in list2: list2.ap...
分类:
编程语言 时间:
2014-07-11 11:04:45
阅读次数:
203