上一页 1 ··· 260 261 262 263 264 265 266 267 268 ··· 300 下一页
2013年8月2日

jni编译non-numeric second argument to `wordlist' function错误

摘要: 在jni编译过程中,遇到non-numeric second argument to `wordlist' function错误,个人遇到这个错误的原因,是因为从windows中拷贝了Android.mk文件到ubuntu中,使用dos2unix Android.mk.把格式转化为unix格式即可。如还有错,尝试dos2unix AndroidManifest.xml。 阅读全文
posted @ 2013-08-02 22:19 you Richer 阅读(152) 评论(0) 推荐(0) 编辑

FLASH轮播广告 在谷歌浏览器中不显示的解决办法(FLash轮播放广告在谷歌浏览器中无法显示处理方法)

摘要: 在用PHPWEB模板的时候,碰到首页有一个FLASH轮播广告,在IE浏览器下可以正常显示播放,在谷歌浏览器中却显示不了,解决办法如下: 欢迎转载:http://blog.csdn.net/aminfo/article/details/9721875 1、找到advs/templates/tpl_advsflashlb.htm这个文件; 2、将这个文件的原内容如下: 修改为新内容如下: 现在360浏览器客户端有好多也是用谷歌浏览器的内核,所以360浏览器不支持FLASH轮播广告的也可用以上方法解决。 阅读全文
posted @ 2013-08-02 22:17 you Richer 阅读(373) 评论(0) 推荐(0) 编辑

MySQL 优化Limit分页

摘要: 很多时候、我们需要选择出从指定位置开始的指定行数、此时、limit笑了 对于limit的定义是: limit x,y 表示从第x行开始选择y条记录 在业务需要分页操作的时候、我们通常采用limit+order by这对洗剪吹组合、高端洋气上档次 然而、当翻到非常靠后的页面时、MySQL需要花费大量的时间来扫描需要丢弃的数据 此时比较好的策略是使用延迟关联: 通过使用覆盖索引查询返回需要的主键、再根据这些主键关联原表获得需要的行 具体请看下面的一个例子 假如有这样一个查询:select film_id,actor,description from film w... 阅读全文
posted @ 2013-08-02 22:15 you Richer 阅读(321) 评论(0) 推荐(0) 编辑

POJ 1113 Wall 凸包求周长

摘要: WallTime Limit:1000MSMemory Limit:10000KTotal Submissions:26286Accepted:8760Description Once upon a time there was a greedy King who ordered his chief Architect to build a wall around the King's castle. The King was so greedy, that he would not listen to his Architect's proposals to build a 阅读全文
posted @ 2013-08-02 22:13 you Richer 阅读(182) 评论(0) 推荐(0) 编辑

HDU 4604 Deque 二分最长上升子序列

摘要: 题目大意就是给一个deque然后有n个数,依次进行操作,每种操作,你可以把这个数放在deque首部,也可以放在尾部,也可以扔掉不管,但是要保证deque中的数是非递减的。最要求deque中最长能是多少 思路是这样的:对于这个序列,最重要的应该是第一个进去的数是什么,然后以该数为开头的最长不升子序列和以该数为开头的最长不降子序列则可以凑成一个最长的序列,当然这两个序列中可能都出现了该数,也就是发生了重复,所以就要减掉重复的部分,即两个子序列中有该数个数较少的序列中这个数应当被减掉。然后由于数据量大,所以要用到二分求最长上升子序列的方法顺便使用了stl中的equal_range函数,意思就是返回一 阅读全文
posted @ 2013-08-02 22:11 you Richer 阅读(221) 评论(0) 推荐(0) 编辑

cocos 事件分发2

摘要: cocos的事件分发器CCTouchDispatcher,存在两个通道,m_pTargetedHandlers存储CMenu,CScrollView的事件处理器,这里的处理器,在处理过消息后,会声明bClaimed为True,表示事件有被处理过,如果处理器isSwallowsTouches为真,则处理过的消息将被吞噬掉,并且直接跳出对m_pTargetedHandlers的遍历,并且会把消息从消息列表中删除,后续的标准消息处理器将不会收到吞噬的消息。(menu默认会吞噬,CScrollView默认不会) m_pStandardHandlers存储layer的事件处理器,并且,没有吞噬消息的逻辑 阅读全文
posted @ 2013-08-02 22:09 you Richer 阅读(202) 评论(0) 推荐(0) 编辑

HDU 2102 A计划(三维BFS)

摘要: 这题太欢乐了......虽然wa了几次,但是想到骑士在两幅图的传送门中传来传去就觉得这骑士太坑了#include #include #include #include using namespace std;int n,m,cost,head,tail,ans;char map[2][15][15];int sum[2][15][15];struct node { int z,x,y;} q[11111];node st, end;int dirx[4] = {1,-1,0,0};int diry[4] = {0,0,1,-1};void init() { memset(sum,-... 阅读全文
posted @ 2013-08-02 22:07 you Richer 阅读(123) 评论(0) 推荐(0) 编辑

UVA 10194 Football (aka Soccer)

摘要: Problem A: Football (aka Soccer) The Problem Football the most popular sport in the world (americans insist to call it "Soccer", but we will call it "Football"). As everyone knows, Brasil is the country that have most World Cup titles (four of them: 1958, 1962, 1970 and 1994). As 阅读全文
posted @ 2013-08-02 22:05 you Richer 阅读(306) 评论(0) 推荐(0) 编辑

HDU4283:You Are the One(区间DP)

摘要: Problem Description The TV shows such as You Are the One has been very popular. In order to meet the need of boys who are still single, TJUT hold the show itself. The show is hold in the Small hall, so it attract a lot of boys and girls. Now there are n boys enrolling in. At the beginning, the n boy 阅读全文
posted @ 2013-08-02 22:03 you Richer 阅读(284) 评论(0) 推荐(0) 编辑

UVA 657 The die is cast

摘要: The die is castInterGames is a high-tech startup company that specializes in developing technology that allows users to play games over the Internet. A market analysis has alerted them to the fact that games of chance are pretty popular among their potential customers. Be it Monopoly, ludo or backga 阅读全文
posted @ 2013-08-02 22:01 you Richer 阅读(290) 评论(0) 推荐(0) 编辑
上一页 1 ··· 260 261 262 263 264 265 266 267 268 ··· 300 下一页