.x { border: solid 1px red; width: 100px; height:
100px; position: relative; background-color: ...
分类:
Web程序 时间:
2014-06-13 13:13:47
阅读次数:
262
将8Bit灰度数据转化为Bgr24的彩色图像8bit灰度数据:byte[] GrayValue
长度:width * height PixelFormat pixelFormat = PixelFormats.Bgr24; byte[]
colorvalues = G...
分类:
其他好文 时间:
2014-06-12 23:13:37
阅读次数:
255
传统RAID技术在面临大容量磁盘的时候显得有点力不从心,这主要由于大容量磁盘技术的引入使得RAID的数据重构时间急剧变长,并且整体IO性能也受到了严重影响。所以很多人预测,传统RAID技术作为存储核心的时代即将过去,大容量磁盘的数据管理需要其它的数据保护技术。我也曾经在..
分类:
其他好文 时间:
2014-06-10 23:52:28
阅读次数:
681
1.AS代码<?xmlversion="1.0"encoding="utf-8"?>
<mx:Applicationxmlns:mx="http://www.adobe.com/2006/mxml"layout="absolute"
width="200"height="200"creationComplete="initApp()">
<mx:Script>
<![CDATA[
importmx.controls.Alert;
importf..
分类:
Web程序 时间:
2014-06-10 23:45:06
阅读次数:
341
document.body.clientWidth获取body元素对象的内容可视区域的宽度,即clientWidth=width+padding,不包括滚动条。document.body.clientHeight获取body元素对象的内容可视区域的高度,即clientHeight=height+pa...
分类:
Web程序 时间:
2014-06-10 20:23:17
阅读次数:
305
所有的 DP 问题都可以简单得用 Recursion
的方式实现。这通常是最容易想到的思路。问题是这种实现不够 efficient,存在 subproblem 被重复计算的情况。有两种解决这个问题的方法:1.
很直观的,在 naive recursion 里加入 一个 save 的环境,把每个 su...
分类:
其他好文 时间:
2014-06-10 19:31:29
阅读次数:
261
首先下载lua源码包,然后分别是make,make linux,make
install注意如果没有make
install,那么在#include时,会报找不到lua.h文件的错误。网上找到一段源码:func.lua--变量定义width=1;height=2;--lua函数定义,实现加法func...
分类:
编程语言 时间:
2014-06-10 16:19:01
阅读次数:
323
题目
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.
Above is a histogram w...
分类:
其他好文 时间:
2014-06-10 15:34:02
阅读次数:
252
//默认值函数参数
/*
* Test.cpp
*
* Created on: 2014年6月9日
* Author: John
*/
#include
#include
#define Pi 3.14
void FunTest(double Radius, double Height=0);
...
分类:
编程语言 时间:
2014-06-10 06:43:40
阅读次数:
343