如果你希望在使用 JDBC 直接方式的应用中切换到使用数据源: 停止 Confluence. 备份下面的文件,以防止你可能需要重新恢复你的配置: <installation-directory>/conf/server.xml <installation-directory>/confluence/ ...
分类:
其他好文 时间:
2018-06-08 23:20:22
阅读次数:
354
Problem description Dima loves representing an odd number as the sum of multiple primes, and Lisa loves it when there are at most three primes. Help t ...
分类:
其他好文 时间:
2018-06-08 23:20:29
阅读次数:
274
题目描述 在河上有一座独木桥,一只青蛙想沿着独木桥从河的一侧跳到另一侧。在桥上有一些石子,青蛙很讨厌踩在这些石子上。由于桥的长度和青蛙一次跳过的距离都是正整数,我们可以把独木桥上青蛙可能到达的点看成数轴上的一串整点: 0,1,…,L0,1,…,L (其中 LL 是桥的长度)。坐标为 00 的点表示桥 ...
分类:
其他好文 时间:
2018-06-08 23:20:50
阅读次数:
295
Given an integer array of size n, find all elements that appear more than ? n/3 ? times. Note: The algorithm should run in linear time and in O(1) spa ...
分类:
其他好文 时间:
2018-06-08 23:21:07
阅读次数:
291
用idea还是不太习惯,刚开始把swap方法写成如下这样,废了好一番功夫,才查出来错误 ...
分类:
其他好文 时间:
2018-06-08 23:21:19
阅读次数:
249
Expect是一个我们常在shell交互时常用到的工具,它主要由expect-send组成。Expect是等待输出内容中的特定字符。然后由send发送特定的相应。Expect的工作流程类似于:小明和小红说:hello,小红发现小明说的是hello,然后就回复小明hi。然后小明说:你好,我是小明。小红 ...
分类:
其他好文 时间:
2018-06-08 23:21:27
阅读次数:
323
一、RabbitMQ集群方案的原理 RabbitMQ这款消息队列中间件产品本身是基于Erlang编写,Erlang语言天生具备分布式特性(通过同步Erlang集群各节点的magic cookie来实现)。 因此,RabbitMQ天然支持Clustering。这使得RabbitMQ本身不需要像Acti ...
分类:
其他好文 时间:
2018-06-08 23:21:38
阅读次数:
401
题意要求跑最小生成树,然后求出任意两点距离的期望。 做法是用Kruskal算法并用前向星存最小生成树,然后用dfs得出期望。 代码 ...
分类:
其他好文 时间:
2018-06-09 00:00:19
阅读次数:
237
Count the number of prime numbers less than a non-negative number, n. Example: Solution2: ssieving: need a helping array with false initialization: fa ...
分类:
其他好文 时间:
2018-06-09 00:00:29
阅读次数:
225
Codeforces Round 485 (Div. 2) E. Petr and Permutations 题目连接: "http://codeforces.com/contest/987/problem/E" Description Petr likes to come up with prob ...
分类:
其他好文 时间:
2018-06-09 00:00:38
阅读次数:
243
学习日语新手变成大神,到底要背多少日语单词量 2016-07-12 16:13口语 学习日语新手变成大神,到底要背多少日语单词量 2016-07-12 16:13口语 经常有同学问我,要掌握多少词汇量,才能看日剧时不看字幕,才能无障碍地在岛国撩妹。更有雄心勃勃的同学跟我说,普通的日本人有多少词汇量, ...
分类:
其他好文 时间:
2018-06-09 00:00:47
阅读次数:
245
安装: https://www.npmjs.com/package/vue router npm i vue router 动态路由: 在需要在router文件夹的index.js先注册好需要的路由页面 并且设置好动态路由之后的地址展示 在跳转之后页面中我们可以接收我们动态传过来的参数, 使用$ro ...
分类:
其他好文 时间:
2018-06-09 00:00:54
阅读次数:
406
//pthread_mutex_trylock非阻塞时互斥锁 #include <iostream> #include <pthread.h> #include <ctime> #include "errors.h" #define sun using namespace std; pthread_ ...
分类:
其他好文 时间:
2018-06-09 00:01:31
阅读次数:
202
1 引言 网络扫描,是基于Internet的、探测远端网络或主机信息的一种技术,也是保证系统和网络安全必不可少的一种手段。主机扫描,是指对计算机主机或者其它网络设备进行安全性检测,以找出安全隐患和系统漏洞。总体而言,网络扫描和主机扫描都可归入漏洞扫描一类。漏洞扫描本质上是一把双刃剑:黑客利用它来寻找 ...
分类:
其他好文 时间:
2018-06-09 00:01:56
阅读次数:
199
Problem description One day Ms Swan bought an orange in a shop. The orange consisted of n·k segments, numbered with integers from 1 to n·k. There were ...
分类:
其他好文 时间:
2018-06-09 00:02:05
阅读次数:
225
1.网络基础 参考:http://www.cnblogs.com/Eva-J/articles/8066842.html 2.软件开发架构 C/S架构:Client与Server ,中文意思:客户端与服务器端架构,这种架构也是从用户层面(也可以是物理层面)来划分的。 B/S架构:Browser与Se ...
分类:
其他好文 时间:
2018-06-09 00:02:57
阅读次数:
164
如果在你的 Tomcat 中配置了数据源,并且Confluence 设置指南在安装的时候检测到这个配置的时候,配置数据源的选项将会提供给你进行配置。入股你希望使用数据源,请参考下面的配置。1. 停止 Confluence在 Confluence 的配置指南中,你将会提示选择你的数据库,在这个时候,你应该:使用 bin/stop-confluence.sh or bin/stop-conf
分类:
其他好文 时间:
2018-06-09 00:03:43
阅读次数:
173
A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nodes ...
分类:
其他好文 时间:
2018-06-09 00:03:48
阅读次数:
127
题目:http://acm.hdu.edu.cn/showproblem.php?pid=1565 题意:自己念 分析:有了上一题的基础,这题的状态方程也好想:dp[i][s]表示第i行第s个状态取得的最大值。 可以预处理出每一行每一种状态所能获得的值,方程就是dp[i][j] = max(dp[i ...
分类:
其他好文 时间:
2018-06-09 00:04:05
阅读次数:
157
...
分类:
其他好文 时间:
2018-06-09 00:04:21
阅读次数:
112