在新装的centos系统中,用源码安装supervisor提示如下:
[root@1e supervisor-3.0]# python setup.py install
Traceback (most recent call last):
File "setup.py", line 31, in
from setuptools import setup, find_packages...
分类:
编程语言 时间:
2015-08-12 19:43:32
阅读次数:
184
The world’s most popular open source database1.Install MySQLroot@kallen:~# apt-get install mysql-server-5.5 mysql-client-5.52.Add Users(1) 选择数据表
语句如下:use mysql;
(2) 在mysql的user表中增加连接用户帐号:
这里不要直接使用IN...
分类:
数据库 时间:
2015-08-12 19:33:58
阅读次数:
256
1051. Pop Sequence (25)Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, ..., N and pop randomly. You are suppos...
分类:
其他好文 时间:
2015-08-12 16:14:18
阅读次数:
124
Given?n?non-negative integers?a1,?a2, ...,?an, where each represents a point at coordinate (i,?ai).?n?vertical lines are drawn such that the two endpoints of line?i?is at (i,?ai)...
分类:
其他好文 时间:
2015-08-11 23:49:14
阅读次数:
357
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.lam.fundamental/com.lam.datasave.dairy.DairyActivity}: java.lang.RuntimeException: Your content must have a ListView whose id ...
分类:
移动开发 时间:
2015-08-11 19:28:47
阅读次数:
155
这题就不贴代码了
先将速度从小到大排序,,,,一组一组城市加入并查集,,一旦目标城市联通了,,,,就以已经进行过并查集操作的最大速度减去最小速度作为当前解
比如从第一组开始加到第5组可以了,就用a【4】.w-a[0]-w;
然后做一个循环,枚举第一次加入并查集的城市组,,比如第二次就从a【1】开始了(看少了最小的那一组还可以使目标联通么。。。)
并查集用的很巧妙额。。。。。完全可以...
分类:
其他好文 时间:
2015-08-11 16:14:27
阅读次数:
113
Problem Description
The company "21st Century Fruits" has specialized in creating new sorts of fruits by transferring genes from one fruit into the genome of another one. Most times this method doe...
分类:
其他好文 时间:
2015-08-11 10:13:43
阅读次数:
119
example.tex:
\documentclass{article}
\begin{document}
\bibliographystyle{plain}%Choose a bibliograhpic style
%
Note. This is the Postscript version with plain bibliographic style.
Most of the a...
分类:
其他好文 时间:
2015-08-11 10:11:43
阅读次数:
106
The idea is just to generate the matrix in the spiral order. First the up-most row (u), then the right-most column (r), then the down-most row (d), an...
分类:
其他好文 时间:
2015-08-11 09:45:02
阅读次数:
150
The idea is just to add the elements in the spiral order. First the up-most row (u), then the right-most column (r), then the down-most row (d), and f...
分类:
其他好文 时间:
2015-08-11 09:44:52
阅读次数:
87