现在位置: 首页 > TieriesuirL发表的所有文章
  • 09月
  • 28日
综合 ⁄ 共 8472字 评论关闭
DBCP,C3P0,Tomcat_JDBC druidDatasource性能及稳定性测试   1.测试环境: 硬件环境: 数据库服务器:2U*8核 8G内存  测试服务器:   2U*8核 6G内存 软件环境: jdk:    1.6.29 mysql: 5.0.77 mysql_driver: mysql-connector-java-5.0.8-bin.jar   DBCP: commons-dbcp-1.4.jar 下载地址: http://commons.apache.org/dbcp/ commons-pool-1.5.6.jar 下载地址: http://commons.apache.org/pool/ C3P0: c3p0-0.9.1.2.jar 下载地址: http://www.mchange.com/projects/c3p0/index.html log4j-1.2.8.jar(c......
阅读全文
  • 03月
  • 14日
综合 ⁄ 共 7750字 评论关闭
lk@lk-virtual-machine:~/hadoop-1.0.1/bin$ ./hadoop dfs -rmr output Deleted hdfs://localhost:9000/user/lk/output lk@lk-virtual-machine:~/hadoop-1.0.1/bin$ ./hadoop jar ~/mytopk.jar top.Top  input output ****hdfs://localhost:9000/user/lk/input 14/05/12 05:14:03 INFO input.FileInputFormat: Total input paths to process : 4 14/05/12 05:14:18 INFO mapred.JobClient: Running job: job_201405120333_0004 14/05/12 05:14:20 INFO mapred.JobClient:  map 0% reduce 0% 14/05/12 05:17:32 INFO mapred.JobClie......
阅读全文
  • 02月
  • 28日
算法 ⁄ 共 1702字 评论关闭
Divisibility Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 9199   Accepted: 3197 Description Consider an arbitrary sequence of integers. One can place + or - operators between integers in the sequence, thus deriving different arithmetical expressions that evaluate to different values. Let us, for example, take the sequence: 17, 5, -21, 15. There are eight possible expressions: 17 + 5 + -21 + 15 = 16  17 + 5 + -21 - 15 = -14  17 + 5 - -21 + 15 = 58  17 + 5 - -21......
阅读全文
  • 01月
  • 15日
综合 ⁄ 共 2819字 评论关闭
出处:博客园   MSXML中提供了Microsoft.XMLHTTP对象,能够完成从数据包到Request对象的转换以及发送任务。 创建XMLHTTP对象的语句如下: Set objXML = CreateObject("Msxml2.XMLHTTP") 或 Set objXML = CreateObject(“Microsoft.XMLHTTP”) ' Or, for version 3.0 of XMLHTTP, use: ' Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")   对象创建后调用Open方法对Request对象进行初始化,语法格式为: poster.open http-method, url, async, userID, password   Open方法中包含了5个参数,前三个是必要的,后两个是可选的(......
阅读全文
  • 09月
  • 14日
综合 ⁄ 共 32字 评论关闭
   开始学习JAva,以后常来这里逛了,保持写博客的好习惯。。。
阅读全文
  • 05月
  • 05日
综合 ⁄ 共 14271字 评论关闭
一、入门闲话     最近在学javase,想拿个小题目练习。拿到一个关于socket接口实现基于TCP协议的通信(准确的说是多进程程序中通信问题。)。通信过程中需要用RSA算法进行加解密。 要求进程应用软件A 键盘输入数据后和第一端口号-1存入一SendDate对象sd1中,然后将sd1进行序列化后,将序列化后的数据进行RSA加密(此处的RSA加密用最终接收方D的公钥加密)。将第一次RSA加密后的数据和第二端口号P2,存入第二SendDate对象sd2中,接着再将sd2进行序列化,再将sd2 序列化后的数据进行RSA加密(用中间中转进程应用软件C的公钥加密)和......
阅读全文
 http://www.cnblogs.com/sunke861/archive/2009/09/21/1570711.html JavaScript函数调用时的作用域链和调用对象是如何形成的及与闭包的关系(转) 1、javascript解析器启动时就会初始化建立一个全局对象global object,这个全局对象就拥有了一些预定义的全局变量和全局方法,如Infinity, parseInt, Math,所有程序中定义的全局变量都是这个全局对象的属性。在客户端javascript中,Window就是这个javascript的全局对象。 2、当javascript调用一个function时,会生成一个对象,称之为call object(调用对象),function中的局部变量......
阅读全文
  • 04月
  • 24日
综合 ⁄ 共 2025字 评论关闭
文章目录 Input: Problem Description Little Elephant and his friends are going to a party. Each person has his own collection of T-Shirts. There are 100 different kind of T-Shirts. Each T-Shirt has a unique id between 1 and 100. No person has two T-Shirts of the same ID. They want to know how many arrangements are there in which no two persons wear same T-Shirt. One arrangement is considered different from another arrangement if there ......
阅读全文
  • 03月
  • 30日
综合 ⁄ 共 983字 评论关闭
import sys sys.path.append('/V100R001C00B040/msp/software/packages/pysnmp-4.2.5/') sys.path.append('/V100R001C00B040/msp/software/packages/pycrypto-2.6.1/') sys.path.append('/V100R001C00B040/msp/software/packages/pyasn1') import logging import time import threading from pysnmp.entity import config from pysnmp.entity.rfc3413.oneliner import cmdgen class scanworker(threading.Thread): def __init__(se......
阅读全文
  • 03月
  • 15日
综合 ⁄ 共 1308字 评论关闭
  Acronym LOF : Loss of frame alignment [3] LOS: Loss of Signal [2] AIS: Alarm Indication Signal [2] RDI : Remote Defect Indication [2]   Reference 1. G.704 2. G.775 3. G.706   2M E1 传输简介 一个 E1 的帧长为 256 个 bit, 分为 32 个时隙,一个时隙为 8 个 bit 每秒有 8k 个 E1 的帧通过接口,即 8K*256=2048kbps 每个时隙在 E1 帧中占 8bit , 8*8k=64k ,即一条 E1 中含有 32 个 64K   2M E1 帧结构 [1] 其中偶数帧传送 Frame containing the frame alignment signal 。奇数帧传送 Fram......
阅读全文
  • 02月
  • 21日
综合 ⁄ 共 3125字 评论关闭
Description A number of schools are connected to a computer network. Agreements have been developed among those schools: each school maintains a list of schools to which it distributes software (the “receiving schools”). Note that if B is in the distribution list of school A, then A does not necessarily appear in the list of school B  You are to write a program that computes the minimal number of schools that must receive a copy of the new software in order for the software to reach all......
阅读全文
  • 02月
  • 14日
综合 ⁄ 共 354字 评论关闭
@echo off rem 正在压缩... echo 正在压缩Css文件 for /f "delims=" %%i in ('dir /b /a-d /s "*.css"') do call java -jar C:\Work_area\tool\yuicompressor-2.3.5.jar -o %%i %%i --charset UTF-8 echo 正在压缩js文件 for /f "delims=" %%i in ('dir /b /a-d /s "*.js"') do call java -jar C:\Work_area\tool\yuicompressor-2.3.5.jar -o %%i %%i --charset UTF-8 rem 搜索完毕 pause 将上述代码保存成文件名:batch_compress.bat 运行可以将当前路径下的文件夹子文件夹中所有的js,css文件混淆压缩
阅读全文