码迷,mamicode.com
首页 > 其他好文
为什么对基础设施的监控变得如此重要?
稍微懂点云计算的人都知道三个概念:IaaS「Infrastructure as a Service」、PaaS「Platform-as-a-Service」和SaaS「Software-as-a-service」,其中 IaaS 就是我们常说的基础设施服务。 ![为什么对基础设施的监控变...
分类:其他好文   时间:2015-07-10 23:48:14    阅读次数:449
页面跳转带参数ip接收后ip参数被修改
1.某些情况下,页面请求带有ip参数,但是接收到ip参数时ip已经被修改,目前已在微信内置浏览器发现,chrome浏览器发现 例如请求链接地址:如下 http://www.example.com/url?expire_time=24h&extend_params=extend_para...
分类:其他好文   时间:2015-07-10 23:50:20    阅读次数:530
a+=b 等价于 a=a+b ?
a += b和a = a + b完全等价么(java)?可能很多人以为是一样的,其实并非等价的,下面看一下证据吧。 public class Test { public static void main(String[] args) { int a = 0; float c = 2.0f; a += c; a = a +...
分类:其他好文   时间:2015-07-10 23:46:38    阅读次数:397
cesm下载备注
新版使用svn下载。 软件要求: The following are the external system and software requirements for installing and running CESM. UNIX style operating system such as CNL, AIX and Linux csh, sh, and per...
分类:其他好文   时间:2015-07-10 23:48:24    阅读次数:917
错误代码: 1242 Subquery returns more than 1 row
1. 错误描述1 queries executed, 0 success, 1 errors, 0 warnings查询:SELECT t.id, DATE_FORMAT( t.statisTime, '%Y-%m-%d %H:%i:%s' ) statisTime, (SELECT `id` FROM t_truck_info WHERE id = t.plateId...错误代码: 1242 S...
分类:其他好文   时间:2015-07-10 23:47:23    阅读次数:425
CodeForces 321 A - Ciel and Robot
【题目链接】:click here~~ 【题目大意】:一个robot 机器人 ,可以根据给定的指令行动,给你四种指令,robot初始位置是(0,0),指令一出,robot会重复行动,判断能否在无限行动的情况下经过点(n,m)。 【解题思路】其实仔细模拟一下,可以发现是有周期的,判断即可,见代码吧~~ 代码: #include #include #include using name...
分类:其他好文   时间:2015-07-10 23:47:13    阅读次数:404
Palindrome Linked List
Given a singly linked list, determine if it is a palindrome.Follow up: Could you do it in O(n) time and O(1) space?思路: 把链表一分为二,把右边的一半翻转,再逐个比对左右的链表即可。/** * Definition for singly-linked list. * struc...
分类:其他好文   时间:2015-07-10 23:46:56    阅读次数:388
错误号:1364 错误信息:Field 'platId' doesn't have a default value
1. 错误描述错误号:1364 错误信息:Field 'platId' doesn't have a default value insert into `use`.`t_platform_scale` () values ()2.错误原因由于在建表时,给platId一个not null限制,而且没有给默认值,在插入数据时未插入,导致报错3.解决办法(1)修改platId可以为null (2)插入...
分类:其他好文   时间:2015-07-10 23:45:51    阅读次数:234
测试时间不够怎么办?
测试过程中我们经常会遇到测试时间不够的问题,今天就来讨论下,在这种情况下怎么办。一点愚见,欢迎一起讨论。         1、沟通确认是否可以延期。这是我最先想到的,虽然每个人都告诉你这是最后期限,但其实只要充分沟通,再找相关利益协商,至少有50%的情况并不是最后期限,确实能再延一段时间。         2、排优先级。按照重要性和风险排个优先级,优先测重要的和风险大的特性、功能点。    ...
分类:其他好文   时间:2015-07-10 23:47:31    阅读次数:370
LeetCode225:Implement Stack using Queues
Implement the following operations of a stack using queues.push(x) – Push element x onto stack. pop() – Removes the element on top of the stack. top() – Get the top element. empty() – Return whether...
分类:其他好文   时间:2015-07-10 23:45:02    阅读次数:146
POJ-1003
#include using namespace std; int recursionFunc(int cardNum, float len){ if(1.0/(cardNum+1)>=len){ return cardNum; }else{ return recursionFunc(cardNum+1, len-(1.0/(cardNum+1))); } } int main(...
分类:其他好文   时间:2015-07-10 23:45:24    阅读次数:129
LeetCode232:Implement Queue using Stacks
Implement the following operations of a queue using stacks. push(x) – Push element x to the back of queue. pop() – Removes the element from in front of queue. peek() – Get the front element. empty() –...
分类:其他好文   时间:2015-07-10 23:44:01    阅读次数:153
用正则表达式实现千分位分隔符
原创文章,转载请注明:http://blog.csdn.net/chang_yuan_2011/article/details/46836045 千位分隔符就是在数字中,每隔三位数加进一个逗号,实现的想法就是判断数字中是否有超过四个相连的数字,如果有就在他们中间插入逗号,直到找不到四个相连的数字为止。另外一点是拆分应该是从尾部开始。一开始将小数点转换成逗号作为整个搜索的起始位置,整个数句拆分完再...
分类:其他好文   时间:2015-07-10 23:46:02    阅读次数:227
“SVN Working copy is too old (format 10, created by Subversion 1.6)”解决方案
SVN同步或者提交的时候出现类似错误信息: The working copy needs to be upgraded svn: Working copy 'D:\adt-bundle-windows-x86_64-20130917\workspace\ECSF\res\anim' is too old (format 10, created by Subversion 1.6) ...
分类:其他好文   时间:2015-07-10 23:45:26    阅读次数:237
bit_vector原理及应用
原理bit_vector容器具有vector容器一样的成员西数,常用于硬件端口的控制。区别于vector的一个重要特征是bit_vector更节省内存空间,一个元素只占用一个bit ,而不是一个字节。 bit_vector容器的每个元素是一个bit位值,取0或1,连续分配在以字为单位的字节块中,如图所示,13个bit分别为1011010100010,占用了一个字的内存空间。一个字为2个字节大小,共...
分类:其他好文   时间:2015-07-10 23:43:14    阅读次数:260
LeetCode155:Min Stack
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) – Push element x onto stack. pop() – Removes the element on top of the stack. top() – Get the t...
分类:其他好文   时间:2015-07-10 23:45:14    阅读次数:157
git大文件管理
由于git在commit时保存整个文件系统,如果在文件系统中有一些大的二进制文件,比如图片,视频,那么很快你的repo就将变得很大,clone这个repo时也会耗用越来越多的时间。有没有什么办法来优化这个问题呢? 一个可行的方法是使用git-fat :https://github.com/je...
分类:其他好文   时间:2015-07-10 23:43:55    阅读次数:375
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!