上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
摘要: 1)判断表达式 if test (表达式为真) if test !表达式为假 test 表达式1 –a 表达式2 两个表达式都为真 test 表达式1 –o 表达式2 两个表达式有一个为真 2)判断字符串 test –n 字符串 字符串的长度非零 test –z 字符串 字符串的长度为零 test 阅读全文
posted @ 2016-12-25 20:35 371502685 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 看了下源代码是下面这个地方返回false导致的: public static function ValidateAddress($address) { return preg_match(‘/^(?!(?>(?1)”?(?>\\\[ -~]|[^"])”?(?1)){255,})(?!(?>(?1) 阅读全文
posted @ 2016-12-25 20:34 371502685 阅读(881) 评论(0) 推荐(0) 编辑
摘要: 最近发现一个分区老满,经查明是rewrite日志过大导致的。通过du -sh */ 逐级目录分析,最终找出问题的真凶。 阅读全文
posted @ 2016-12-25 20:34 371502685 阅读(135) 评论(0) 推荐(0) 编辑
摘要: <?php require_once(“class.phpmailer.php”); /*发送邮件*/ function sendMail($to, $subject, $message) { $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Host 阅读全文
posted @ 2016-12-25 20:31 371502685 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 1、自己写程序,本种方法相对麻烦,但处理起来相对灵活,如果需要对转换的数据进行处理,用本种方法比较合适,此方法不适合进行大数据迁移,不仅效率低,而且需要的内存比较大; 2、通过BCP导出txt或者csv格式的,然后在Mysql端导入;这种方式一次只能处理一个表,不过可以写成批处理,本方法可能会遇到编 阅读全文
posted @ 2016-12-25 20:30 371502685 阅读(848) 评论(0) 推荐(0) 编辑
摘要: 在单线程的程序当中,主线程在处理大数据或者访问网络资源,UI主线程往往会卡住,出现点不动的现象(UI线程被阻塞),这种情况下,一般 会用多线程来处事,单独开一个子线程进行数据处理,这就会遇到一个问题,子线程更新的数据如何反映到UI主线程中,这就要用到Handler,它的主要功 能是接受子线程发送的数 阅读全文
posted @ 2016-12-25 20:29 371502685 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 一、下载并安装UltraVNC,http://www.uvnc.com/downloads/ultravnc.html 注:经测试TightVNC也非常好用,而且支持全屏。 二、配制mac系统 1、打开系统偏好设置 2、点开“共享”选项 3、左侧列表里面选择“屏幕共享”,点击右上方的“电脑设置”,选 阅读全文
posted @ 2016-12-25 20:29 371502685 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 1. 获取ip awk ‘{print $1}’ /data/logs/access.log 2.得到独立ip数 awk ‘{print $1}’ /data/logs/access.log | sort | uniq | wc -l 3. 获取访问时间 grep -P ‘\[.*?]\’ -o / 阅读全文
posted @ 2016-12-25 20:28 371502685 阅读(434) 评论(0) 推荐(0) 编辑
摘要: Issues with Using the Feedback Service If you remove your app from your device or computer and then send a push notification to it, you would expect t 阅读全文
posted @ 2016-12-25 20:28 371502685 阅读(174) 评论(0) 推荐(0) 编辑
摘要: linux下代码格式化工具 阅读全文
posted @ 2016-12-25 20:27 371502685 阅读(523) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页