摘要: godaddy域名:www.xunishidai.comxunishidai.com 意为虚拟时代/虚拟试戴价格联系QQ:517122623邮箱:boyanzheng@foxmail.com 阅读全文
posted @ 2013-02-05 13:01 郑小明 阅读(242) 评论(0) 推荐(0) 编辑
摘要: Contact me. 阅读全文
posted @ 2017-09-01 15:54 郑小明 阅读(412) 评论(0) 推荐(0) 编辑
摘要: /* * 传进一个office文件的byte[]以及后缀,生成一个pdf文件的byte[] */ public byte[] jacob_Office2Pdf(byte[] srcFileBytes, String postfix) { if (srcFileBytes == null || srcFileBytes.length == 0 || postfix.equals("") || postfix == null) { return null; } else { ... 阅读全文
posted @ 2013-10-31 16:55 郑小明 阅读(8134) 评论(1) 推荐(0) 编辑
摘要: public static boolean printOfficeFile(File f) { if (f != null && f.exists()) { String fileNameString = f.getName(); String postfixString = Utils.getPostfix(fileNameString); if (postfixString.equalsIgnoreCase("xls") || postfixString.equalsIgnoreCase("xlsx")) { /** * 功能:实现e 阅读全文
posted @ 2013-10-31 16:50 郑小明 阅读(6210) 评论(0) 推荐(0) 编辑
摘要: 原文链接http://www.blogjava.net/acooly/archive/2008/09/17/229368.html如果你想连接你的mysql的时候发生这个错误:ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL server解决方法: 1。 改表法。可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 " 阅读全文
posted @ 2013-08-08 14:33 郑小明 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 本来想找找现成的,去,都写的好复杂。自己写一个吧。挺有成就感。哈哈package com.test.jiexi;import java.util.Stack;public class Check { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub String s="(1){CHI[与|和] || CAT[J] LOGIC[G|D]}+(2){CAT[A] || OF_AMBI[A]}+(3){CHI[的]||CAT[N]}"; 阅读全文
posted @ 2013-07-09 10:26 郑小明 阅读(10906) 评论(2) 推荐(0) 编辑
摘要: 炎炎夏日冰点价格:戈戈主机史上最大优惠促销活动 1.7月1日至8日:买主机优惠大促销:主机买一送一,不限购买数量 请您通过客户中心或者淘宝购买一个主机之后,登录客户中心,提交问题, 提供要赠送的主机的主域名给我们,24小时内开通。 仅止8天,错过了这次,下次就不清楚什么时候再有了,机不可失,时不再来。 http://www.gegehost.com/2.疯狂7月淘宝店五钻信誉保证100%好评:买主机送域名/独立IP优惠活动 原价购买(或续费)新手型主机 赠送.in/.biz域名注册一年或补40元送.com域名 原价购买(或续费)标准型主机 赠送.net/.com/.org域名注册一年 原价购买 阅读全文
posted @ 2013-07-01 10:08 郑小明 阅读(976) 评论(0) 推荐(0) 编辑
摘要: jacob 操作 wordpublicbooleandoc2pdf(StringsrcFilePath,StringpdfFilePath){ActiveXComponentapp=null;Dispatchdoc=null;try{ComThread.InitSTA();app=newActiveXComponent("Word.Application");app.setProperty("Visible",false);Dispatchdocs=app.getProperty("Documents").toDispatch();d 阅读全文
posted @ 2013-05-24 16:07 郑小明 阅读(12590) 评论(0) 推荐(1) 编辑
摘要: importjava.util.concurrent.CountDownLatch;publicclassLatchDriverDemo{privatestaticfinalintN=5;publicstaticvoidmain(String[]args)throwsInterruptedException{//用于向工作线程发送启动信号CountDownLatchstartSignal=newCountDownLatch(1);//用于等待工作线程的结束信号CountDownLatchCountDownLatchdoneSignal=newCountDownLatch(N);for(inti 阅读全文
posted @ 2013-05-24 16:03 郑小明 阅读(280) 评论(0) 推荐(0) 编辑
摘要: /** * ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, * long keepAliveTime, TimeUnit unit, * BlockingQueue<Runnable> workQueue, * RejectedExecutionHandler handler) * corePoolSize: 线程池维护线程的最少数量 * maximumPoolSize:线程池维护线程的最大数量 * keepAliveTime: 线程池维护线程所允许的空闲时间 * unit: 线程池维护线程所允... 阅读全文
posted @ 2013-05-24 16:02 郑小明 阅读(267) 评论(0) 推荐(0) 编辑