QImage saveImage(QSize(imageWidth,imageHeigth),QImage::Format_RGB888);
QFile file(filePath);
if (!file.open(QIODevice::ReadWrite))
{
return false;
}
QByteArray ba;
QBuffer buffer(&ba);
buffer...
分类:
其他好文 时间:
2015-05-20 22:23:39
阅读次数:
171
1. Git Patch
git patch包括2中: 标准diff 和git format-patch
2. 生成patch
2.1 git diff
生成标准patch
最简单, 但是很多信息没有
git diff > my.diff
2.2 git format-patch
生成git专用patch
git format-patch -M master...
分类:
其他好文 时间:
2015-05-20 16:29:28
阅读次数:
523
Spring 1、spring打印log logger.debug(String.format("Searching for key ‘%s‘ in [%s]",key, propertySource.getName()));...
分类:
编程语言 时间:
2015-05-20 15:10:27
阅读次数:
167
This is on ubuntu 14.04 LTS1. you need to install virtuoso (you can refer to my previous post)2. open your virtuoso service3. do./isql 1111to invoke t...
分类:
其他好文 时间:
2015-05-20 07:07:37
阅读次数:
135
http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js返回值数据格式:var remote_ip_info = {“ret”:1,”start”:”59.37.164.179″,”end”:”59.37.165.17″,”countr...
local function _encode(str) return string.format("%%%02X",string.byte(str))endfunction emailEncode(str) return string.gsub(str,"([^%w_@.])",_enc...
分类:
其他好文 时间:
2015-05-19 20:47:32
阅读次数:
161
slot 0 offset 0 stride DXGI_FORMAT_r32b32g32_FLOAT这样一个memory100.0000, 100.0000,10.0000,1.0000stride 指的是一个pos的长度 这就是12bytes 也就是一个floatr32g32b32的长度至于要往下...
分类:
其他好文 时间:
2015-05-19 18:19:59
阅读次数:
130
self.orderCost.text = [NSString
stringWithFormat:@"%.1f元",self.order.cost.floatValue];
%.1f 表示小数点一位,%.2f 表示小数点2位,依次类推.
格式定义
The format specifiers supported by the NSString formatting...
分类:
移动开发 时间:
2015-05-19 16:34:21
阅读次数:
150
目录目录
edify概述
edify语法
mount
format
delete
delete_recursive
show_progress
package_extract_dir
package_extract_file
symlink
set_perm
ui_print
run_program
write_raw_image
assert
file_getprop
参考资料edify概述edi...
分类:
编程语言 时间:
2015-05-19 14:50:21
阅读次数:
452
/*格式化时间戳为小时,分钟,秒,几天前等*/function dgmdate($timestamp, $format = 'dt', $timeoffset = '9999', $uformat = '') { global $_G; $format == 'u' && !$_G['setting...
分类:
Web程序 时间:
2015-05-18 14:39:38
阅读次数:
141