这两天对公司的的openstack环境进行测试,因为环境是别的同事搭建的,我这边只负责相关的测试,一台服务器独立安装
controller node,另外两台服务器都安装network node+compute node。大概环境如下:
外网IP网段是192.168.1.0/24,其中192.168.1.100~192.168.1.200为floatingip分配范围,内网IP网段是1...
分类:
其他 时间:
2015-04-07 23:34:05
收藏:
0 评论:
0 赞:
0 阅读:
475
在“app后端”qq群中,经常被问到的一个问题:“怎么设计一个应付高并发的架构”。诚然,设计一个能应付百万流量的高并发架构,是很令人兴奋的技术挑战,但在创业公司中的成长,难道就只有设计架构吗?在这篇文章中,谈谈我对这方面的看法。...
分类:
其他 时间:
2015-04-07 23:33:45
收藏:
0 评论:
0 赞:
0 阅读:
409
上个星期,米老师给我们讲课实在是精彩!本人终于对Pv操作有了自己的理解。之前一直不太理解Pv操作,现在总结一下,以供下阶段学习和总结。
为什么叫PV操作?原因是:这是狄克斯特拉用荷兰文定义的,因为在荷 兰文中,通过叫passeren,释放叫vrijgeven,PV操 作因此得名。
这张图乍一看谁也不知道我想说明什么。我想通过这张图来给大家解释一下PV操作!
中间这加粗的黑线是秤杆...
分类:
其他 时间:
2015-04-07 23:33:35
收藏:
0 评论:
0 赞:
0 阅读:
575
投影矩阵最终建立的是一个平截头体(也可以称为台),在这种变换下呈现远小近大的效果。这里我将我学到知识记录下来,以后备忘用。...
分类:
其他 时间:
2015-04-07 23:33:25
收藏:
0 评论:
0 赞:
0 阅读:
417
题意:求一个数组中的组合为某个target的所有子数组组合,要求不重复,
思路:先将数组排序,然后按深度遍历的思想对i - > len -1的元素进行遍历
代码如下:
public class Solution {
public List> combinationSum(int[] candidates, int target) {
List> results = n...
分类:
其他 时间:
2015-04-07 23:33:15
收藏:
0 评论:
0 赞:
0 阅读:
370
题意:
给出宝藏个数,然后给出每个宝藏的位置;
如果四个宝藏构成正方形就能取走;
问最多取走几个;
#include
#include
#include
using namespace std;
const int N = 25;
int n, ans;
int cnt[105][105];
struct node {
int x;
int y;
bool operator<(no...
分类:
其他 时间:
2015-04-07 23:33:05
收藏:
0 评论:
0 赞:
0 阅读:
380
Wall
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 4001 Accepted Submission(s): 1131
Problem Description
Once upon a time ther...
分类:
其他 时间:
2015-04-07 23:32:45
收藏:
0 评论:
0 赞:
0 阅读:
491
题目链接:Partition List
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
You should preserve the original relative order of t...
分类:
其他 时间:
2015-04-07 23:32:25
收藏:
0 评论:
0 赞:
0 阅读:
381
题目链接:Scramble String
Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.
Below is one possible representation of s1 = "great":
...
分类:
其他 时间:
2015-04-07 23:32:15
收藏:
0 评论:
0 赞:
0 阅读:
472
题目链接:Merge Sorted Array
Given two sorted integer arrays A and B, merge B into A as one sorted array.
Note:
You may assume that A has enough space (size that is greater or equal to m + n) to hold ad...
分类:
其他 时间:
2015-04-07 23:32:05
收藏:
0 评论:
0 赞:
0 阅读:
425
题目链接:Gray Code
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print th...
分类:
其他 时间:
2015-04-07 23:31:55
收藏:
0 评论:
0 赞:
0 阅读:
524
题目链接:Subsets II
Given a collection of integers that might contain duplicates, S, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.The solution set must not ...
分类:
其他 时间:
2015-04-07 23:31:45
收藏:
0 评论:
0 赞:
0 阅读:
430
题目:一只青蛙一次可以跳上 1 级台阶,也可以跳上2 级。求该青蛙跳上一个n 级的台阶总共有多少种跳法。
我的思路:最开始我的思路是把这个看成是一个数学问题,n=i*1+k*2先把所有可能满足这个公式的i和k求出来。然后在对i和k做排列组合。很明显i的范围应该是0
public int JumpFloor(int target) {
int step = 0;
for (int...
分类:
其他 时间:
2015-04-07 23:31:25
收藏:
0 评论:
0 赞:
0 阅读:
452
版权所有,转载须注明出处!喜欢火影、喜欢Java、喜欢unity3D、喜欢游戏开发的都可以加入木叶村Q群:3790762271、前言在很久很久以前,流传着在NGUI中使用unity3D自带粒子系统的方法。有一种称为RenderQ,另一种称为Render Texture。然而,或许是随着历史的原因,有些已经逐渐被人们淡忘。使用方法随着应用的条件不同或残缺不全,或效果错误。我,不相信命运,踏上了找寻遗...
分类:
其他 时间:
2015-04-07 23:30:46
收藏:
0 评论:
0 赞:
0 阅读:
401
编译libevent
1.在此下载,最新的libevent压缩包libevent-2.0.22-stable.tar.gz 。源文件有个问题,evutil.c源码修改这部分。不然使用会失败。
#ifdef WIN32
#include
#include
#pragma comment(lib,"ws2_32.lib")
#define WIN32_LEAN_AND_MEAN
#inclu...
分类:
其他 时间:
2015-04-07 23:29:35
收藏:
0 评论:
0 赞:
0 阅读:
311
问题描述
给定一个十进制整数N,求出从1到N的所有整数中出现”1”的个数。
例如:N=2时 1,2出现了1个 “1” 。
N=12时 1,2,3,4,5,6,7,8,9,10,11,12。出现了5个“1”。
//暴力求解
long CountOnes(long n)
{
int i,j;//循环变量
int ncount=0;//计数
for (i=1; i<=n; i++)
{...
分类:
其他 时间:
2015-04-07 23:29:25
收藏:
0 评论:
0 赞:
0 阅读:
243
在机器学习领域,混淆矩阵(confusion matrix),又称为可能性表格或是错误矩阵。它是一种特定的矩阵用来呈现算法性能的可视化效果,通常是监督学习(非监督学习,通常用匹配矩阵:matching matrix)。其每一列代表预测值,每一行代表的是实际的类别。这个名字来源于它可以非常容易的表明多个类别是否有混淆(也就是一个class被预测成另一个class)。...
分类:
其他 时间:
2015-04-07 23:28:56
收藏:
0 评论:
0 赞:
0 阅读:
1208
题目:http://poj.org/problem?id=2484题意:n个石子围成一个圈,两个人轮流取,每次可以取一个石子或者相邻的两个石子,问先手胜还是后手胜分析:典型的对称博弈如果n>=3,那么无论先手如何选择,后手完全可以选择一种方法使得后来剩下的是两条一样长的链,那么无论先手如何操作,后手...
分类:
其他 时间:
2015-04-07 23:26:35
收藏:
0 评论:
0 赞:
0 阅读:
155
单独就我们团队开发项目——重力解锁的功能特点而言,我们解决了智能手机屏幕解锁的乏味和繁琐的特点,显得更有趣味性和独特性,更符合现代人追随时尚的潮流;我们根据个人的不同喜好和便利性来设定一些动作,利用重力感应的方式来达到解锁的目的,使用于所有的智能手机锁屏应用;该项目的好处就是不仅仅能达到娱乐的目的....
分类:
其他 时间:
2015-04-07 23:26:05
收藏:
0 评论:
0 赞:
0 阅读:
223
这次需要记录一下我搭建web服务器的过程。第一步,确定自己要使用的平台:这次我用的是windows2008 server版本第二步,计划是想要纯手工的安装apache、php等。但是我们可以下载一个wamp集成版(即windows系统下apache、mysql 、php)。安装wamp过程如下:(类...
分类:
其他 时间:
2015-04-07 23:25:26
收藏:
0 评论:
0 赞:
0 阅读:
215