2016年8月9日

摘要: 1.前言 最近在做微信公众号开发在进行网页授权时,微信需要用户自己在授权url中带上一个类似token的 state 的参数,以防止跨站攻击。 在经过再三思考之后,自己试着实现一个产生token和验证token的方案。接下就把code贴出来。希望读者指导一下。 2.产生token 原理: 通过hma 阅读全文
posted @ 2016-08-09 15:24 yeah,youcandoit 阅读(13987) 评论(0) 推荐(2) 编辑

2016年4月7日

摘要: 1.emotion: 最近在使用Ubuntu14.04 LTS时,输入 之后,Ubuntu就一直停在关机界面,始终不能shutdown,不得不手动按下电源button。忍受了一段时间之后,自己实在忍受不了,终于下定决心干掉它。google了很多种方法,都没有解决,最后发现是由于Ubuntu shut 阅读全文
posted @ 2016-04-07 11:25 yeah,youcandoit 阅读(7099) 评论(0) 推荐(0) 编辑

2016年3月12日

摘要: emotions: those days,i am using aiomysql(python3.5) to acess my database .But a 'strange' problem make me trouble more times.The problem is i can't in 阅读全文
posted @ 2016-03-12 16:04 yeah,youcandoit 阅读(487) 评论(0) 推荐(1) 编辑

2016年3月4日

摘要: 主主复制原理: 在这篇文章( http://www.cnblogs.com/whereareyoufrom/p/5240380.html )中讲解主从复制的原理,而主主复制的原理更加简单,只需要将主从复制中master的配置操作再在slave中配置一遍,将slave的配置操作在master中配置一遍 阅读全文
posted @ 2016-03-04 17:19 yeah,youcandoit 阅读(214) 评论(0) 推荐(0) 编辑

2016年3月3日

摘要: 主从复制原理: mysql 主从复制工作原理:master将每次进行的数据库操作记录到binlog文件中,slave通过读取master的binlog文件获得master进行哪些数据库操作,slave执行binlog文件中的相应操作,这样slave就和master的数据库就保持了同步。当master 阅读全文
posted @ 2016-03-03 22:33 yeah,youcandoit 阅读(188) 评论(0) 推荐(0) 编辑

2016年3月1日

摘要: 编译安装PHP7之后,在安装mysql之后,用pdo操作数据库的时候,出现了此错误[PDOException] SQLSTATE[HY000] [2002] No such file or directory 查阅mysql和php的相关文档之后,发现是由于pdo不能找到mysqld.sock. 解 阅读全文
posted @ 2016-03-01 11:50 yeah,youcandoit 阅读(1792) 评论(0) 推荐(0) 编辑

2016年2月29日

摘要: 1.installation: (1)download redis from http://redis.io/download (2)installation: 2.config and start redis: 阅读全文
posted @ 2016-02-29 22:00 yeah,youcandoit 阅读(148) 评论(0) 推荐(0) 编辑

2016年2月10日

摘要: install lightdm gtk greeter config lightdm change the line: 阅读全文
posted @ 2016-02-10 00:28 yeah,youcandoit 阅读(198) 评论(0) 推荐(0) 编辑

2016年2月7日

摘要: summary chrome broswer can't found in ubuntu14.04 default source list.To install chrome ,you must add source list by self . Today,i will give you two 阅读全文
posted @ 2016-02-07 14:30 yeah,youcandoit 阅读(230) 评论(0) 推荐(0) 编辑
摘要: emotion: I feel not comfortable with ubuntu 14.04 default desktop unity,i still look for a alternative for unity.after trying other linux desktop,i fo 阅读全文
posted @ 2016-02-07 13:05 yeah,youcandoit 阅读(159) 评论(0) 推荐(0) 编辑

导航