HDR 拍照: (High Dynamic Range Imaging)高动态范围成像,是用来实现比普通数字图像技术更大曝光动态范围(即更大的明暗区别)的一组技术。高动态范围成像的目的就是要正确地表示真实世界中从太阳光直射到最暗的阴影这样大的范围亮度。如今一般的数码相机和手机中都实现这样的拍照...
分类:
其他好文 时间:
2014-10-28 17:14:57
阅读次数:
265
UserProfile._meta.fields
[,
,
,
,
,
params = UserProfile._meta.fields
for t in range(len(params)):
print params[t].name, params[t].verbose_name, params[t]._choices#获取model中的choic...
分类:
其他好文 时间:
2014-10-28 12:12:51
阅读次数:
244
1. by zero发生被0除错误2. Null object reference空对象引用3. Array boundary exceeded数组越界4. Enumerated value is out of range for function枚举值超出函数的范围5. Negative valu...
分类:
其他好文 时间:
2014-10-28 11:52:20
阅读次数:
582
0x00 前言: reahat的官网上可以找到编号CVE-2014-8485的漏洞,描述如下: CVE-2014-8485 binutils: lack of range checking leading to controlled write in _bfd_elf_setup_sectio...
分类:
其他好文 时间:
2014-10-27 22:47:53
阅读次数:
434
题目链接:hdu 2888 Check Corners
题目大意:给定一个矩阵,每次查询矩阵中的最大值,并且判断该最大值是否在所查询的角落上。
解题思路:一开始用线段树,一维RMQ都超时了,然后换成了二维的RMQ,结果MLE,dp数组换成9?9就过了。
#include
#include
#include
using namespace std;
const int maxn...
分类:
其他好文 时间:
2014-10-27 21:24:04
阅读次数:
235
题目链接:hdu 3183 A Magic Lamp
题目大意:给定一个字符串,然后最多删除K个,使得剩下的组成的数值最小。
解题思路:问题等价与取N-M个数,每次取的时候保证后面能取的个数足够,并且取的数最小,查询最小的操作用RMQ优化。
#include
#include
#include
using namespace std;
const int maxn = 10...
分类:
其他好文 时间:
2014-10-27 21:17:07
阅读次数:
208
UnicodeDecodeError:‘ascii‘codeccan‘tdecodebyte0xbcinposition3746:ordinalnotinrange(128)解决:cd/var/lib/rpm/rm-i__db.*yumcleanall
分类:
其他好文 时间:
2014-10-27 15:46:32
阅读次数:
366
MVC中的客户端及服务端模型验证信息都以ModelMetadata类型作为承载,在获得属性的ModelMetadata之后(还不知道怎么获取ModelMetadata的童鞋请自行恶补),我们可以轻松得到一些我们在模型中定义的特性,比如显示名称、是否只读、是否必须、注释、数据类型等,但是并不包括Ran...
分类:
Web程序 时间:
2014-10-27 10:44:16
阅读次数:
211
You can skip the index or value by assigning to_.If you only want the index, drop the ", value" entirely.package main import "fmt"func main() { pow...
分类:
其他好文 时间:
2014-10-27 06:54:42
阅读次数:
224
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.Solution: 1 public class Solution { 2 pu...
分类:
其他好文 时间:
2014-10-27 01:47:12
阅读次数:
139