最近在工作中做点评列表时,碰到一个问题,如果用户连续提交,便会通过ajax连续先后台发送数据,造成还没有返回便又一次请求,就会出问题。想到了一个解决方法:利用$.one()进行限制,过段时间在可以点击,代码如下: 1 function click(){ 2 $("#submit")....
分类:
其他 时间:
2015-08-16 11:56:08
收藏:
0 评论:
0 赞:
0 阅读:
131
The basic idea is to start fromrootand add it to the currentpath, then we recursively visit itsleftandrightsubtrees if they exist; otherwise, we have ...
分类:
其他 时间:
2015-08-16 11:55:58
收藏:
0 评论:
0 赞:
0 阅读:
143
本文由 极客范 - Boyd Wang 翻译自 Phillip Burgess。欢迎加入极客翻译小组,同我们一道翻译与分享。转载请参见文章末尾处的要求。 概览 这个项目使用了Adafruit PiTFT触摸屏和树莓派摄像头模块来制作一个一按即拍...
分类:
其他 时间:
2015-08-16 10:53:08
收藏:
0 评论:
0 赞:
0 阅读:
493
http://acm.hdu.edu.cn/showproblem.php?pid=1008
Elevator
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 52650 Accepted Submission(s):...
分类:
其他 时间:
2015-08-16 10:51:48
收藏:
0 评论:
0 赞:
0 阅读:
156
http://poj.org/problem?id=2155
Description
Given an N*N matrix A, whose elements are either 0 or 1. A[i, j] means the number in the i-th row and j-th column. Initially we have A[i, j] = 0 (1
...
分类:
其他 时间:
2015-08-16 10:51:38
收藏:
0 评论:
0 赞:
0 阅读:
129
Redis监控工具,命令和调优1.图形化监控因为要对Redis做性能测试,发现了GitHub上有个python写的RedisLive监控工具评价不错。结果鼓捣了半天,最后发现其主页中引用了Google的jsapi脚本,必须在线连接谷歌的服务,Stackoverflow上说把js脚本下载到本地也没法解决问题,坑爹!正要放弃时发现了一个从RedisLive fork出去的项目redis-monitor,...
分类:
其他 时间:
2015-08-16 10:51:28
收藏:
0 评论:
0 赞:
0 阅读:
200
整理了整理以前写的博客,将Socket编程的博客都集锦在这里,以便阅读方便。
基本套接字TCP和UDP
socket的底层创建与关闭
揭秘Socket与底层数据传输实现...
分类:
其他 时间:
2015-08-16 10:51:18
收藏:
0 评论:
0 赞:
0 阅读:
160
使用excel进行数据挖掘演示购物篮分析。...
分类:
其他 时间:
2015-08-16 10:51:08
收藏:
0 评论:
0 赞:
0 阅读:
176
题目链接:hdu 5385 The path
维护一个l,r,l从2开始递增,r从N开始递减,每个距离值l,r至多走一步,并且每次将可以到达的点标记,注意最后最大值只能有一个。
#include
#include
#include
#include
#include
using namespace std;
typedef pair pii;
const int m...
分类:
其他 时间:
2015-08-16 10:50:58
收藏:
0 评论:
0 赞:
0 阅读:
206
链接:http://acm.hdu.edu.cn/showproblem.php?pid=2046
骨牌铺方格
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 36089 Accepted Submission(s):...
分类:
其他 时间:
2015-08-16 10:50:48
收藏:
0 评论:
0 赞:
0 阅读:
182
传送门:BZOJ1034类似田忌赛马的贪心。
按照
我的最小能否赢过敌方最小?[1]
是:赢过,迭代
否:我的最大能否赢过敌方最大?[2]
是:赢过,迭代
否:我方最小比拼对方最大,迭代。
的流程进行。
让我们证明这个算法的正确性。当[1]成立时,最优性显然成立。当[1]不成立时,如我方最小输对方最小,正确性也是显然的。
在这里我们观察我方最小平敌方最小的情...
分类:
其他 时间:
2015-08-16 10:50:28
收藏:
0 评论:
0 赞:
0 阅读:
151
//给n个任务,si,ni,ei,ti表示第i个任务的起始时间,需要烤的羊肉串的个数
//终止时间,每串羊肉串所需时间
//烤羊肉串的时间不需要连续,且每串羊肉串可以将其分成k个部分一起烤,从而可以一串羊肉串的时间为ti/k;
//问能否完成所有任务
//这题和hdu3572有些像
//只是这题时间的长度1 <= si < ei <= 1,000,000很大
//可以将时间划分为时间段,其划分的段数...
分类:
其他 时间:
2015-08-16 10:50:18
收藏:
0 评论:
0 赞:
0 阅读:
226
我不懂大道理!
更讲不出大道理!
我只知道命相学上有这样的说法:一命,二运,三风水,四积德,五读书。虽然并没有直接科学证据,但是仔细琢磨还是能品出一定的道理来。
前三条是先天决定的,是无法靠个人的努力去改变。因此人要学会敬畏,要明白即使世俗的权利和财富再大,也总有无法做到的事情。我想信仰之类的事情也大概是让人学会敬畏和谦卑吧!正如“命运啊!万物都要在你的面前俯首!”一样,人心中要有...
分类:
其他 时间:
2015-08-16 10:49:18
收藏:
0 评论:
0 赞:
0 阅读:
267
题意:有r个房间,一个人开始在1号房间并且1号房间灯亮着其他熄灭,现在要去r号房间,告诉d对房间之间有门,s个开关,每个房间i内开关控制的不是本房间的灯,而是另外一个房间j的灯,人每次可以开或关自己房间的开关,或移动到亮着的房间,不是亮着的不能进去,问最终到r号房间最少需要几个步骤,输出步骤。到r号房间后r号房间亮着其他熄灭。
思路:把r个房间灯的状态用01串表示,1表示亮着,0表示熄灭,人当前在的房间为2,这样初始状态为2000000,终态为0000002,map判重,bfs即可。...
分类:
其他 时间:
2015-08-16 10:48:08
收藏:
0 评论:
0 赞:
0 阅读:
148
?It’s All About PerformanceCraig RusselliMAginE A pERSonAl vEHiClE THAT iS RooMy, comfortable, fuel efficient, inexpensive to produce, and 98% recyclable. You want one? Sure. Everyone does. Just one pr...
分类:
其他 时间:
2015-08-16 10:47:59
收藏:
0 评论:
0 赞:
0 阅读:
256
?Engineer in the White SpacesMichael NygardA SySTEM ConSiSTS oF inTERdEpEndEnT pRogRAMS. We call the arrangement of these programs and their relationships architecture. When we diagram these systems, w...
分类:
其他 时间:
2015-08-16 10:47:38
收藏:
0 评论:
0 赞:
0 阅读:
156
?Talk the TalkMark Richardsin Any pRoFESSion, jargon is used so that individuals within that pro- fession can effectively communicate with one another. Lawyers talk to one another about habeas corpus,...
分类:
其他 时间:
2015-08-16 10:47:28
收藏:
0 评论:
0 赞:
0 阅读:
189
How many integers can you find
Now you get a number N, and a M-integers set, you should find out how many integers which are small than N, that they can divided exactly by any integers in the set. For example, N=12, and M-integer set is {2,3}, so there i...
分类:
其他 时间:
2015-08-16 10:47:08
收藏:
0 评论:
0 赞:
0 阅读:
258
这两天 一直很头疼,报道证的问题,毕了业也是很蛋疼的问题。我真的不知道该怎么办,网络上都的都是一些垃圾。根不知 所云为何物?
然后自己摸索。
解决方案:
1 打电话问一下 比 报到证上面的 人事保障局的电话。咨询一下是否可以网上办理?
2 可以话,您可以接着往下看了。 如果不行,您只能去当地办理...
分类:
其他 时间:
2015-08-16 10:46:18
收藏:
0 评论:
0 赞:
0 阅读:
327
public class Main {
public static void main(String[] args) {
UFSTree[] u = new UFSTree[11];
makeSet(u);
union(u, 2, 4);
union(u, 5, 7);
union(u, 1, 3);
union(u, 8, 9);
union(u, 1, 2);
...
分类:
其他 时间:
2015-08-16 10:46:08
收藏:
0 评论:
0 赞:
0 阅读:
189