ThisexampleshowsyouExcelcellfillsandcolorsusingApachePOI.InourexampleihaveusedallthepossiblecolorsandsetitasFillsbackgroundcolorsofcells.Belowistheexamplecode.packagecom.java.connect.poi;importjava.io.FileOutputStream;importjava.i
系统 2019-08-29 21:58:47 2667
闲来无事,顺便想想当前小时候用铅笔画素描的那种感觉,所以山寨着微信的飞机大战画了一个,其实画的还可以把,哈哈哈。。。。游戏做的比较粗糙和简陋,希望大家体谅下。j、k、l、i分别控制飞机的左上右下。swing版本山寨微信打飞机
系统 2019-08-12 09:30:36 2667
importjava.beans.PropertyDescriptor;importjava.util.Collection;importorg.apache.commons.beanutils.PropertyUtils;/***CopyUtil*/publicclassCopyUtil{/***Copypropertiesoforigtodest*ExceptiontheEntityandCollectionType*@paramdest*@param
系统 2019-08-12 09:30:13 2667
背景luacom是一个非常强大的模块,它使我们可以应用各种com组件,比如Word,但是,有一个问题,中文文件名它不识别。为什么呢?因为com内部是unicode的,于是luacom要求所有输入都是utf-8的,而且luacom的输出也是utf-8的。这可肿么办啊?iconvGNU有个libiconv库,要是有这个我们就不怕了!luaforge上搜索下,果然有lua-iconv,安装!luarocksinstalllua-iconv不好意思,出错啦!出错的
系统 2019-08-12 09:26:54 2667
看完《sql注入攻击与防御第2版》后,发现原来自己也能黑网站了,就一个字:太爽了。简单总结一下入侵步骤:1、确定是否有sql注入漏洞2、确定数据库类型3、组合sql语句,实施渗透4、获取最高权限后,想怎么玩就怎么玩学习sql注入漏洞,需要的材料:浏览器X1wamp集成包X1php脚本一个X1数据库一个X1php脚本内容:1
系统 2019-08-12 01:55:27 2667
Thewholepointofhavinganindexistospeedupsearchqueriesbyessentiallycuttingdownthenumberofrecords/rowsinatablethatneedtobeexamined.anindexisadatastructure(mostcommonlyaB-tree)thatstoresthevaluesforaspecificcolumninatable.Anindexiscre
系统 2019-08-12 01:54:23 2667
存储过程setANSI_NULLSONsetQUOTED_IDENTIFIERONgoALTERproc[dbo].[getRecordByPage]@TotalPageintoutput,--总页数@RowsCountintoutput,--总条数@PageSizeint,--每页多少数据@CurrentPageint,--当前页数@SelectFieldsnvarchar(1000),--select语句但是不包含select@IdFieldnvarc
系统 2019-08-12 01:54:15 2667
functionResizeImage(ImgD,FitWidth,FitHeight){varimage=newImage();image.src=ImgD.src;varwb=image.width/FitWidth;varhb=image.height/FitHeight;varb=wb>=hb?wb:hb;if(b>1){ImgD.width=image.width/b;ImgD.height=image.height/b;}else{ImgD.w
系统 2019-08-12 01:54:03 2667
ToremoveallOraclecomponentsfromacomputeronWindowsNT,Windows2000,andWindowsXP:--------------------------------------------------------------------------------Caution:TheseinstructionsremoveallOraclecomponents,services,andregistryen
系统 2019-08-12 01:53:39 2667
1.selecttop页大小*fromtablewhereidnotin(selecttop页大小*(页数-1)idfromtableorderbyid)orderbyid;2.selecttop页大小*fromtablewhereid>(selectisnull(max(id),0)from(selecttop页大小*(页数-1)idfromtableorderbyid)a)orderbyid;isnull()函数:max(id)查询ID的最大值,如果为
系统 2019-08-12 01:53:26 2667