2015年4月5日

微信日志开发之人脸识别开发

摘要: 这节我们将简单介绍在微信日志中如何实现人脸识别功能人脸识别我们将会使用Face++提供的api。需要使用的id以及AppKey请到官网首页注册获取。(一)实现步骤1.将用户发送信息获取并提交到服务器2.服务器端处理信息并返回处理结果3.将信息返还给用户(二)实现代码1.信息提取在微信日志的主函数中我... 阅读全文

posted @ 2015-04-05 22:16 dinghing 阅读(1415) 评论(0) 推荐(0) 编辑

2015年3月31日

微信日志现实摇一摇抽签

摘要: 微信公众号抽签的实现 阅读全文

posted @ 2015-03-31 22:23 dinghing 阅读(18267) 评论(0) 推荐(0) 编辑

2015年3月23日

微信日志开发日志二(翻译,天气预报的实现)

摘要: 基于wordpress(微信日志)平台的微信公众平台开发 阅读全文

posted @ 2015-03-23 22:35 dinghing 阅读(694) 评论(0) 推荐(0) 编辑

2015年3月22日

微信日志插件开发日记一

摘要: 微信公众号功能的开发和介绍 阅读全文

posted @ 2015-03-22 22:31 dinghing 阅读(5746) 评论(2) 推荐(1) 编辑

2013年1月23日

最大子串匹配

摘要: 降低复杂度 阅读全文

posted @ 2013-01-23 16:42 dinghing 阅读(635) 评论(0) 推荐(0) 编辑

2013年1月22日

猫猫看这个

摘要: 我的猫猫 阅读全文

posted @ 2013-01-22 21:31 dinghing 阅读(97) 评论(1) 推荐(0) 编辑

ios之deprecate

摘要: Two-stage rotation animation is deprecate.This application should use the smoother single-stage animation.、 阅读全文

posted @ 2013-01-22 16:36 dinghing 阅读(765) 评论(0) 推荐(0) 编辑

2012年8月31日

欧拉回路(邻接阵形式)

摘要: 1 //求欧拉回路或欧拉路,邻接阵形式,复杂度O(n^2) 2 //返回路径长度,path返回路径(有向图时得到的是反向路径) 3 //传入图的大小n和邻接阵mat,不相邻点边权0 4 //可以有自环与重边,分为无向图和有向图 5 #define MAXN 100 6 void find_path_u(int n,int mat[][MAXN],int now,int& step,int* path){ 7 int i; 8 for (i=n-1;i>=0;i--) 9 while (mat[now][i]){10 mat[now][i... 阅读全文

posted @ 2012-08-31 08:48 dinghing 阅读(212) 评论(0) 推荐(0) 编辑

2012年8月6日

生成gray码

摘要: 1 //生成reflected gray code 2 //每次调用gray取得下一个码 3 //000...000是第一个码,100...000是最后一个码 4 void gray(int n,int *code){ 5 int t=0,i; 6 for (i=0;i<n;t+=code[i++]); 7 if (t&1) 8 for (n--;!code[n];n--); 9 code[n-1]=1-code[n-1];10 } 阅读全文

posted @ 2012-08-06 15:14 dinghing 阅读(215) 评论(0) 推荐(0) 编辑

2012年8月5日

在cocos2d中实现真正意思上的图片放大和缩小

摘要: 在编写程序的时候我们常常使用self.scale来让我们使用的图片放大和缩小,但这种变化并没有真正意义上让我们的图片的大小发生改变,当我们要对这种图片进行点击或其他操作的时候常常会发生错误,这里我使用另外一种方法实现这个效果,完成真正意义上的图片放大和缩小。这里附上主要代码: 1 - (void) onItem2:(id)sender 2 { 3 CGSize size = _sprt2.contentSize; 4 NSLog(@"\n before modified: image2: width:%f height:%f", size.width, size.he... 阅读全文

posted @ 2012-08-05 16:34 dinghing 阅读(6496) 评论(3) 推荐(0) 编辑

导航