原题地址:https://oj.leetcode.com/problems/gas-station/题意:There
areNgas stations along a circular route, where the amount of gas at
stationiisgas[i].You ha...
分类:
编程语言 时间:
2014-05-31 16:58:18
阅读次数:
259
用dinner还是supper?据我唯一认识一个美国人……讲,至少在美国他们用dinner,supper也许在英国更常用些。他在小时候都没听说过supper这个词……另外,have
dinner是一个习语,例:How about go and have dinner?Do you have dinn...
分类:
其他好文 时间:
2014-05-29 20:16:53
阅读次数:
279
mysql官方的HA中间件http://www.mysql.com/products/enterprise/fabric.htmlMySQL
Fabric is an extensible framework for managing farms of MySQL Servers. Two
feat...
分类:
数据库 时间:
2014-05-29 10:50:17
阅读次数:
695
小段代码:Intentit=newIntent();it.setClass(Setting.this,Main.class);//从Setting跳转到Mainit.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);//加上FlagstartActivity(it);...
分类:
其他好文 时间:
2014-05-28 04:04:30
阅读次数:
248
如果是在代码中添加的形状,获取Shape.RenderedGeometry会出错。
这是由于WPF没有更新形状的原因,调用Shape.Arrange()后问题解决。
分类:
其他好文 时间:
2014-05-26 22:27:54
阅读次数:
399
原地踏步了半年,感觉一切都陌生了~题意:a[i]-一个任意的数,这个数要等于a[1]~a[i-1]每个数减去任意一个数,经过多次这样的变换到达目标b序列,能到达就yes不能到达距no.一开始各种分析,所有的差的和必须是偶数,sum(cha[1~i-1])>=cha[i](其中cha[i]=a[i]-...
分类:
其他好文 时间:
2014-05-26 07:09:20
阅读次数:
231
点击browserFilesystem,和命令查看结果一样
当我们查看hadoop源码时,我们看到hdfs下的hdfs-default.xml文件信息
我们查找${hadoop.tmp.dir}这是引用变量,肯定在其他文件有定义,在core-default.xml中查看到,这两个配置文件有个共同点:
就是不要修改此文件,但可以复制信息到core-site.xml和hdfs-sit...
分类:
Web程序 时间:
2014-05-25 02:02:13
阅读次数:
388
version 1
从右到左排序,每次都尽可能的选打击范围内最右边的点安装雷达(由于浮点,所以不要一棒子打死的判断是大是小,给出一个精度范围,一开始范围给打了就WA),拿这个雷达去覆盖其他点,最后雷达总数一定是最少的
/*
poj 1328
264K 16MS
*/
#include
#include
#include
#include
#define MAXN 10...
分类:
其他好文 时间:
2014-05-23 02:23:38
阅读次数:
239
快捷键编辑:(设置→ 编辑器→ 快捷键→ 编辑→ 完成代码)(Setting → Editor
→ Keyboard shortcuts → Editor → Complete
Code)编辑代码窗口视图:(View-->Perspectives-->default or minimal)个人比较喜...
分类:
其他好文 时间:
2014-05-22 03:18:13
阅读次数:
317
一、前言本篇博文只是实现Corosync+Pacemaker+DRBD+MySQL,实现MySQL的高可用。更多的基础知识在前几篇博文中已有涉猎,故更多的理论细节将不再此篇中详述。若想了解高可用基础知识,请参考:http://hoolee.blog.51cto.com/7934938/1406951若想了解Corosync+Pacemaker,请参考..
分类:
数据库 时间:
2014-05-20 20:58:29
阅读次数:
818