- 浏览: 71461 次
- 性别:
- 来自: 北京
最新评论
-
shihengli2010:
赞!!!!
XSL Formatting Objects Tutorial (二) -
calosteward:
感谢楼主分享,我找的不是java代码,刚刚找到C# PDF c ...
PDF转图片
文章列表
Tomcat 配置JNDI服务
- 博客分类:
- Tomcat
Generic JavaBean Resources
【通过/WEB-INF/context.xml配置】
第一步,新建一个Bean
package model;
public class Foo {
private String ip;
private int port;
private String signSequence;
public String getIp() {
return ip;
}
public void setIp(String ip) {
this.ip = ip;
}
public int ...
http://tutorials.jenkov.com/java-nio/socketchannel.html
package com.gc;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.channels.FileChannel;
import java.nio.charset.Charset;
import java.nio.chars ...
这家伙是搞情报的么?
http://snowolf.iteye.com/blog/735294
Maven 疑难杂症
- 博客分类:
- Maven
ArtifactTransferException:
Failure to transfer org.hibernate:hibernate-core:jar:3.6.10.Final from http://localhost:8081/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced.
...
数字签名:靠加密解密算法进行支撑
单向散列算法 MD5,SHA
非对称密钥算法:RSA
数字签名算法:DSA(Digital Signture Algorithm)
数字签名标准:DSS(DigitalSinature Standard)
使用私钥对摘要进行加密,即为数字签名!
下图描述了数字签名的大概流程,具体流程比这个稍微复杂一些。
PDF waterMark
- 博客分类:
- XSL-FO
waterMark
In addtion to the PDF Post-processing options, consider the following workarounds:
1. Use a backgroud image for the body region.
2. Place an image in a region that overlaps(重叠) the following text.
For example, make region-before large enough to contain you image.
Then ...
Font and Text Attributes (字体)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE DTD SYSTEM "fo.dtd">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name=&q ...
1. URL->URLConnection
2. BufferedInputStream
3. BufferedOutputStream
String apikey = "abcde12345";
String url = "http://www.digg.com";
URL u = new URL("http://api.htm2pdf.co.uk/urltopdf?apikey=" + apikey + "&url=" + url + "&user ...
搭建FO转PDF环境
- 博客分类:
- XSL-FO
熬到半夜,终于整出来了。
第一步,引入fo-1.0.jar
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>fop</artifactId>
<version>1.0</version>
</dependency>
第二步,编写1个测试fo,暂且叫做test01.xml
Eclipse中配置外部dtd的方法,见ws-JAX中关于dtd的那篇文章
<?xml version ...
宋体
SimSun
黑体
SimHei
微软雅黑
Microsoft YaHei
微软正黑体
Microsoft JhengHei
新宋体
NSimSun
新细明体
PMingLiU
细明体
MingLiU
标楷体
DFKai-SB
仿宋
FangSong
楷体
KaiTi
XSL-FO is an XML language designed for describing all visual aspects of pagination documents.
The well known HTML is another language for specifying formatting semantics, but is more usable for documents that are presented to screen, and less for materials created for printing, because it doesn ...
判断checkbox是否勾选,哪个才是效率最高的
http://jsperf.com/prop-vs-ischecked/5
【Linux基础篇】安装软件包
- 博客分类:
- Linux
Ganglia是一种可扩展的分布式监控系统,主要用于监控各种网络服务器、集群系统等高性能计算机系统。是一种服务器性能监控软件。
下面是具体安装步骤(其它软件的安装步骤也差不多):
tar -zxvf ganglia-3.0.0.tar.gz #将安装包解压缩,生成安装目录
cd ganglia-3.0.0 #切换到安装目录
./configure #配置安装包
make #编译安装包
mak ...
【Linux基础篇】crontab命令调度
- 博客分类:
- Linux
crontab命令进行任务调度,自动执行一些脚本,完成特定任务。
如,启动app,日志拷贝等
每个用户都有自己的调度crontab
vi /etc/crontab
crontab的初始内容:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
#run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 ...