摘要: redis重启 pkill -9 redis-server ./redis-server /etc/redis/redis.conf redis安装完后 将redis.conf拷贝到/etc/redis目录下 假设redis的安装目录是/usr/local/bin 关闭命令 1. 2. 杀掉对应的进 阅读全文
posted @ 2018-10-07 09:35 码动未来 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Query Profiler是MYSQL自带的一种query诊断分析工具,通过它可以分析出一条SQL语句的性能瓶颈在什么地方。通常我们是使用的explain,以及slow query log都无法做到精确分析,但是Query Profiler却可以定位出一条SQL语句执行的各种资源消耗情况,比如CP 阅读全文
posted @ 2018-10-07 09:19 码动未来 阅读(2434) 评论(0) 推荐(0) 编辑
摘要: //如果是微信浏览器返回true,否则返回false,并跳转到指定页面if(isWeiXin()==false) { window.location.href='http://www.baidu.com'; } //是否为微信浏览器 function isWeiXin(){ va... 阅读全文
posted @ 2016-01-07 09:35 码动未来 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 在实现该功能前,需登录百度apistore获取免费的接口数据if(strtolower($postObj->MsgType)=="text") { $tempalte=" %s "; $fromUser=... 阅读全文
posted @ 2016-01-06 15:03 码动未来 阅读(631) 评论(0) 推荐(0) 编辑
摘要: responseMsg(); } } // 接收事件推送并回复 public function responseMsg(){ //1.获取到微信推送过来post数据(xml格式) $postArr=$GLOBALS['HTTP_RAW_POST_DATA']; //2.处理消... 阅读全文
posted @ 2016-01-06 13:39 码动未来 阅读(205) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebContro... 阅读全文
posted @ 2015-01-04 09:29 码动未来 阅读(717) 评论(0) 推荐(0) 编辑
摘要: //////EncryptHelper 来自 www.Admin10000.com///publicclassEncryptHelper{//提供8个字符作为DES密钥(程序自动截取前8个字符)privatestaticstringkey="admin10000.com";//////DES对称加密... 阅读全文
posted @ 2014-12-31 08:54 码动未来 阅读(700) 评论(0) 推荐(0) 编辑
摘要: 在AndroidManifest.xml中对Activity属性进行设置android:screenOrientation="landscape"表示始终横屏,android:screenOrientation="portrait"表示始终竖屏 阅读全文
posted @ 2014-11-17 16:54 码动未来 阅读(286) 评论(0) 推荐(0) 编辑
摘要: android:layout_above="@id/xxx" --将控件置于给定ID控件之上android:layout_below="@id/xxx" --将控件置于给定ID控件之下android:layout_toLeftOf="@id/xxx" --将控件的右边缘和给定ID控件的左边缘对齐an... 阅读全文
posted @ 2014-11-13 10:55 码动未来 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1.在mainfiest中添加 //添加拨打电话的功能 //发送短信功能 2. Intent intent=new Intent(Intent.ACTION_CALL,Uri.parse("tel:"+phone));//跳转到手机打电话页面startActivity(intent); Uri... 阅读全文
posted @ 2014-11-12 16:27 码动未来 阅读(569) 评论(0) 推荐(0) 编辑