摘要: 坑死爹了。我想实现一下这种sql: select * from xxx where (a = 1 and b = 2) or ( a = 2 and b = 1);翻遍了thinkphp的文档也没有说明怎么去实现。自己琢磨出来的。。 $where['_complex'] = array( ... 阅读全文
posted @ 2015-12-11 10:13 Mr.白板 阅读(985) 评论(0) 推荐(0) 编辑
摘要: 手动打开“管理”-“服务和应用程序”-“服务”-“Cisco Systems, Inc. VPN Service”即可。 阅读全文
posted @ 2015-06-11 15:18 Mr.白板 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 向数组中插入一个数,保持数组内数字从小到大排列:#include int main(){ int arr[100] = {2,5,8,15,40}; int num = 0 , i = 0 , j=0 , count = 5; while(scanf("%d",&num)){ for (i = 0... 阅读全文
posted @ 2015-05-17 19:30 Mr.白板 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 网上现有的删除教程不对,如果删不干净,在IE浏览器下,选择图片的按钮就要消失不见啦~ 我这里是1.4.3 php版本 因为已经删完了 所以也找不到原来的内容了(主要是懒),所以大体说一下怎么删,自己留个记录。 dialogs\image\image.js 删除头部 var 定义的两个相关变量 删除后 阅读全文
posted @ 2015-05-04 16:29 Mr.白板 阅读(2471) 评论(0) 推荐(0) 编辑
摘要: #coding=utf-8s = u'你好'f = open("F:/123.txt",'w+')f.write(s.encode('utf-8'))f.close()====================#-*- coding: UTF-8 -*-a = open("F:/123.txt","w... 阅读全文
posted @ 2015-04-30 11:02 Mr.白板 阅读(193) 评论(0) 推荐(0) 编辑
摘要: svn: E000022: Error converting entry in directory '/home/wwwroot/web/hope' to UTF-8svn: E000022: Can't convert string from native encoding to 'UTF-8':... 阅读全文
posted @ 2015-04-29 13:34 Mr.白板 阅读(4714) 评论(0) 推荐(0) 编辑
摘要: limit10000,20的意思扫描满足条件的10020行,扔掉前面的10000行,返回最后的20行,问题就在这里,如果是limit100000,100,需要扫描100100行,在一个高并发的应用里,每次查询需要扫描超过10W行,性能肯定大打折扣。不过limit n性能是没问题的,因为只扫描n行。 阅读全文
posted @ 2015-04-24 09:46 Mr.白板 阅读(1478) 评论(0) 推荐(2) 编辑
摘要: 执行yum操作,报错:YumRepo Error: All mirror URLs are not using ftp, http[s] or file.Eg. $releasever is not a valid release or hasnt been released yet/removin... 阅读全文
posted @ 2015-04-16 10:34 Mr.白板 阅读(1070) 评论(0) 推荐(0) 编辑
摘要: 今天晚上打开ST3的时候,总是会报错:plugin_host has exited unexpectedly, plugin functionality won't be available until Sublime Text has been restarted 之前也有过这种情况,不过... 阅读全文
posted @ 2015-04-15 19:54 Mr.白板 阅读(3932) 评论(5) 推荐(0) 编辑