一 轮询 什么是轮询:设置每一段时间去访问一次服务器,然后服务器返回最新的数据。这样服务器的压力会非常的大,并且还会有延迟。适用于小型程序。 实现:再客户端的页面设置一个定时发送请求的任务,每个这段时间就要发送一个请求,来获取最新的数据 实例: app.py from flask import Fl ...
分类:
Web程序 时间:
2018-04-05 01:16:35
阅读次数:
286
小数据求面积并 There are several ancient Greek texts that contain descriptions of the fabled island Atlantis. Some of these texts even include maps of parts ...
分类:
其他好文 时间:
2018-04-02 23:50:11
阅读次数:
180
lucene索引的添加见 http://www.cnblogs.com/getchen/p/8615276.html 入门代码。 公共代码 lucene索引的查询 查询全部 区间查询 组合条件查询 其中BooleanClause.Occur 中有三个选项:MUST,NOT_MUST,SHOULD.等 ...
分类:
Web程序 时间:
2018-04-02 11:14:04
阅读次数:
194
1、遇到这个问题Error using svmclassify (line 53) The first input should be a struct generated by SVMTRAIN. 可参照https://blog.csdn.net/shang_jia/article/details ...
分类:
其他好文 时间:
2018-04-02 01:07:38
阅读次数:
753
centos使用rpmforge-release centos使用rpmforge-release 时间:2017-10-09 09:48:29 阅读:536 评论:0 收藏:0 [点我收藏+] 标签:rpmforge rpmforge又名repoforge,是CentOS官方推荐的第三方yum源。 ...
分类:
其他好文 时间:
2018-04-01 15:23:35
阅读次数:
227
ReentrantLock 与 AQS 源码分析 1. 基本结构 重入锁 ReetrantLock,JDK 1.5新增的类,作用与synchronized关键字相当,但比synchronized更加灵活。ReetrantLock本身也是一种支持重进入的锁,即该锁可以支持一个 ...
分类:
其他好文 时间:
2018-03-31 22:15:45
阅读次数:
149
Configuring Network Names This page is for manual CDH installations only. Cloudera Manager users should disregard.Important: CDH requires IPv4. IPv6 i ...
分类:
Web程序 时间:
2018-03-30 23:13:30
阅读次数:
243
Confine yourself to the present. 着眼当下。 The morning wind spreads its fresh smell, we should get up and take that in, that wind lets us live, breathe, b ...
分类:
其他好文 时间:
2018-03-30 20:10:24
阅读次数:
164
https://stackoverflow.com/questions/17601827/which-one-should-java-home-to-point-jdk-or-jre 临时变更JAVA_HOME的方案: https://stackoverflow.com/questions/2503 ...
分类:
编程语言 时间:
2018-03-30 18:36:18
阅读次数:
194
Given an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a linear runtime complex ...
分类:
其他好文 时间:
2018-03-29 22:42:38
阅读次数:
194