最近再看IOCP,结果里面的一个赋值过程,造成了误解。test t1 = new test();test t2 = new test();test t4 = new test();t1= t2;t2 = t3;t3 = null;实际上这个过程,支持栈上t1指向了堆上的t2,t2,指向了t3,t3 ...
1 innodb 自增列出现重复值的问题 先从问题入手,重现下这个buguse test;drop table t1;create table t1(id int auto_increment, a int, primary key (id)) engine=innodb;insert into t...
分类:
数据库 时间:
2015-09-09 17:28:37
阅读次数:
195
iOS中boolean、Boolean、BOOL、bool的区别boolt1=1;//trueorfalseBOOLt2=3;//YESorNOBooleant3=1;//unsignedchartypeboolean_tt4=1;//inttypeNSAssert(t1,@"boolt1isNO"...
分类:
移动开发 时间:
2015-09-08 12:19:55
阅读次数:
163
vart=encodeURIComponent("孙毓波大好人");alert("t1:"+t)t=decodeURIComponent(t)alert("t2:"+t)=========================url乱码的解决方式================functiongetUrl...
分类:
其他好文 时间:
2015-09-08 12:18:54
阅读次数:
140
下面是我常用一些JS验证和函数,有一些验证我直接写到了对象的属性里面了,可以直接通过对象.方法来调用//浮点数除法运算function fdiv(a, b, n) { if (n == undefined) { n = 2; } var t1 = 0, t2 = 0, r1, r2; ...
分类:
Web程序 时间:
2015-09-08 00:29:40
阅读次数:
215
TerminalMultiplexer:Thebelowisacaseusinginmyusualworks:"tmuxnew-window-nfoo"sshmejumpbox1"tmuxselectp-t0#selectthefirst(0)panetmuxsplitw-v-t0"ssh-luser1jumpbox2"#splititintotwohalvestmuxselectp-t1#selectthenew,second(1)panetmuxsplitw-h-t1"sshmejumpbox3"tmux..
分类:
其他好文 时间:
2015-09-06 18:35:49
阅读次数:
199
公司项目中有用到exists,感觉挺有用的,拷贝一些感念的东西。“exists”和“in”的效率问题1) select * from T1 where exists(select 1 from T2 where T1.a=T2.a) ;T1数据量小而T2数据量非常大时,T1>T2 时,2) 的查.....
分类:
数据库 时间:
2015-09-06 17:35:59
阅读次数:
223
错误信息如下:.....150905 13:10:17 [ERROR] /usr/local/mysql/bin/mysqld: Can't open file: './mytest/t1.frm' (errno: 24)150905 13:10:17 [ERROR] /usr/local/mysq...
分类:
数据库 时间:
2015-09-05 19:04:22
阅读次数:
218
军训去了没有打,回来看题跑。T1:hehe注意X可能是实数233#include#include#include#include#include#include#define rep(i,s,t) for(int i=s;i=t;i--)#define ren for(int i=first[x];...
分类:
其他好文 时间:
2015-09-05 17:55:24
阅读次数:
223
1、将数字转化为字符串的快捷方式2、请彻底抛弃float类型,使用CGFloat或double,float不够精确. BOOL b1 = YES; BOOL b2 = NO; NSInteger t1 = 100000; int t2 = 200000; float t...
分类:
其他好文 时间:
2015-09-03 23:15:31
阅读次数:
208