1、已知路径,加载本地图片到Image中 Image img = Image.FromFile("路径");2、数据库中读取二进制图片 string strSql = "Select Top 1ImageContent From TT_ImageFileSave)"; Byte[] byteI...
分类:
数据库 时间:
2014-06-27 18:01:48
阅读次数:
294
原先使用hadoop默认设置(hadoop1.2.1),secondarynamenode会正常进行备份,定时从namenode拷贝image文件到SNN。但是具体SNN备份的时间周期和log文件的大小无法定制,后来楼主就修改了SNN的设置,将fs.checkpoint.period修改为...
分类:
其他好文 时间:
2014-06-27 16:05:28
阅读次数:
452
package com.photoann.core.util;import java.io.BufferedInputStream;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundExcept...
分类:
其他好文 时间:
2014-06-27 13:09:31
阅读次数:
275
You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise).
分类:
其他好文 时间:
2014-06-27 12:02:32
阅读次数:
195
git服务器搭建过程参考网上资料搭建git服务器过程记录 如下:需求硬件需求:一台Ubuntu或者debian电脑(虚拟机),能通过网络访问到。软件需求:git-core, gitosis, openssh-server, openssh-client, Apache2(Gitweb)安装配置git...
分类:
其他好文 时间:
2014-06-27 11:41:26
阅读次数:
208
1、错误描述
六月 26, 2014 11:26:27 下午 freemarker.log.JDK14LoggerFactory$JDK14Logger error
严重: Template processing error: "Expected collection or sequence. datas evaluated instead to freemarker.core.HashLite...
分类:
其他好文 时间:
2014-06-27 10:01:02
阅读次数:
223
vdWebControl.js能够在浏览器中展示cad图形(需要使用其自家的转换工具把cad转换为vds格式,工具免费,但转换完毕后的文件带水印信息),支持编辑图形。
vdWebControl.js试用版在屏幕中央带有版权信息。
1、格式化js为可读的
2、使用chrome调试发现是data:image/jpg;base64格式的图片。思路为用透明的png图片替换原水印图片。
找到kD.s...
分类:
Web程序 时间:
2014-06-27 08:55:06
阅读次数:
330
在android下面debug,最主要的方式就是用logcat抓log了,我们可能有尝试过使用printf来打印,当然结果是不行的,这里有时间就看了一下android平台下log的flow,在此做个笔记以作记录
我们一般使用ALOGD来打印log,所以这里就跟一下ALOGD的flow
system/core/include/log/log.h
system/core/include/...
分类:
移动开发 时间:
2014-06-27 08:32:39
阅读次数:
548
本人公司电脑型号为HPfolio9740m,用windows7自带的修复工具,恢复windows标准镜像文件,出现如下错误:Thesystemp_w_picpathrestorefailed.Windowscannotrestoreasystemp_w_picpathtoacomputerthanhasdifferentfirmware.Thesystemp_w_picpathwascreatedonacomputerusingBIOSand..
BUG 1:GDI+ Image::FromFile 无效
m_pImg = Gdiplus::Bitmap::FromFile(m_imgFilePath);
m_pImg为NULL
原因是没有初始化GDI+。
BUG2:GDI+ new Bitmap不能接受三个参数
//创建目标Bitmap
Bitmap *bmpDest = new Bitmap(destWidth, destHeight, m_pImg->GetPixelFormat());
原因:
//#ifdef _DEBUG
//#...
分类:
其他好文 时间:
2014-06-26 11:59:26
阅读次数:
377