今天在开发的过程中,在使用kendo ui的时候,通过ef获取数据,在像页面展示的时候,需要把在数据的保存的数据转换为另外一种显示,比如在数据库字段保存为“S” 在页面的显示就为success的,接到这样的需求,自己第一反应,就是在后台拿到数据的时候,通过for循环,然后把指定的字段,通过switc...
分类:
其他好文 时间:
2014-08-13 00:57:44
阅读次数:
236
Problem Description
There is a forest can be seen as N * M grid. In this forest, there is some magical fruits, These fruits can provide a lot of energy, Each fruit has its location(Xi, Yi) and the ...
分类:
其他好文 时间:
2014-08-12 22:19:04
阅读次数:
488
Problem DescriptionThere is a forest can be seen as N * M grid. In this forest, there is some magical fruits, These fruits can provide a lot of energy...
分类:
其他好文 时间:
2014-08-12 21:51:34
阅读次数:
225
Magical ForestProblem DescriptionThere is a forest can be seen as N * M grid. In this forest, there is some magical fruits, These fruits can provide a...
分类:
其他好文 时间:
2014-08-12 21:37:34
阅读次数:
194
题目:Problem Description There is a forest can be seen as N * M grid. In this forest, there is some magical fruits, These fruits can provide a lot of .....
分类:
其他好文 时间:
2014-08-12 18:34:54
阅读次数:
282
题目链接:uva 11605 - Lights inside a 3d Grid
题目大意:给定一个三维坐标系大小,每个位置有一个灯,初始状态为关,每次随机选中两个点,以这两点为对角线的长方体内所有灯转变状态。操作K次,问说平均情况下,最后会有多少栈灯亮着。
解题思路:枚举坐标系上的点,计算单个点亮着的概率,然后累加即使整体的期望。对于一个点x,y,z,分别考虑每维坐标系,例如x,选中...
分类:
其他好文 时间:
2014-08-12 10:20:34
阅读次数:
182
11gR2 RAC系统的存储数据完全丢失,所有节点的软件都安装在本地磁盘中,本地磁盘保留了OCR的备份,下面讨论通过replace votedisk和restore ocr的方式恢复Clusterware的正常运行:
1.启动CRS到独占模式。
[root@rac1 bin]#./crsctl stop has -f
[root@rac1 bin]#./crsctl start crs -excl -nocrs
2.创建用于存储OCR和Votedisk的磁盘组。
[grid@rac1 ~]$ sqlpl...
分类:
其他好文 时间:
2014-08-12 00:39:43
阅读次数:
400
{xtype:'numbercolumn',text:'亏盈数量',width:130,dataIndex:'LossOrProfitNum',editor:{xtype:'numberfield',minValue:0,decimalPrecision:2},renderer:function(v...
分类:
Web程序 时间:
2014-08-11 21:05:32
阅读次数:
171
错误的原因是由于磁盘数和冗余层级不匹配:如果创建用来存放OCR和VOTEDISK的ASM磁盘组,那么External、Normal、High三种冗余级别对应的Failgroup个数是1、3、5。也就是说,创建这三种冗余级别的磁盘组至少分别需要1、3、5个ASM磁盘。如果创建用于非OCR和VOTEDI...
分类:
数据库 时间:
2014-08-11 20:34:02
阅读次数:
856
grid.js
Ext.onReady(function() {
var gridStore = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({
url: 'grid.asp'
}),
reader: new Ext.data.JsonReader({
root: 'data',
totalPrope...
分类:
其他好文 时间:
2014-08-11 17:52:52
阅读次数:
226