现在位置: 首页 > prowler发表的所有文章
  • 06月
  • 05日
综合 ⁄ 共 1809字 评论关闭
lazy的概念:在真正使用某个对象的时候才去加载该对象。 Hibernate的lazy策略可以使用在: 1.<class>标签上,可以取值:true/false。 2.<property>标签上,可以取值:true/false,需要类增强工具,对字节码进行修改(这个没多大意义)。 3.<set>和<list>标签上,可以取值:true/false/extra。 4.<many-to-one>和<one-to-one>单端关联标签上,可以取值:false/proxy/noproxy 下面我们来体会一下在class标签上的lazy: User.java: public class User { /* ID */ private int id; /* 用户名......
阅读全文
  • 05月
  • 17日
综合 ⁄ 共 753字 评论关闭
转载自:http://www.codeif.com/topic/252 在写java程序中经常写一些bean类,像下面这样的bean在java程序中随处可见 public class User { private String userName; private String password; @Override public String toString() { return "User [userName=" + userName + ", password=" + password + "]"; } public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } public String getP......
阅读全文
  • 05月
  • 12日
综合 ⁄ 共 7903字 评论关闭
1.coreImage的介绍          coreImage是IOS5中新加入的一个Objective-c的框架,提供了强大高效的图像处理功能,用来对基于像素的图像进行操作与分析。IOS提供了很多强大的滤镜(Filter),其中IOS5中有48种,而到了最新的IOS6 Filter已经增加到了93种之多,并且这一数字会继续增加。这些Filter提供了各种各样的效果,并且还可以通过滤镜链将各种效果的Filter叠加起来,形成强大的自定义效果,如果你对该效果很满意,还可以子类化滤镜。          2.coreImage框架中的对象   2.1 CIImage          CIImage是CoreImage框架中最基本代......
阅读全文
  • 04月
  • 24日
综合 ⁄ 共 1613字 评论关闭
A. Rewards time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Bizon the Champion is called the Champion for a reason. Bizon the Champion has recently got a present — a new glass cupboard with n shelves and he decided to put all his presents there. All the presents can be divided into two types: medals and cups. Bizon the Champion has a1 first prize cups, a2 second prize cups and a3third prize cups. Besides, he has ......
阅读全文
  • 04月
  • 06日
综合 ⁄ 共 2093字 评论关闭
  #ifndef __QUEUEPRACTICE_H__#define __QUEUEPRACTICE_H__ 1namespace FengChen...{    template <class Type> class Queue;    template <class T>    std::ostream& operator<<(std::ostream& os, const Queue<T>& Q)    ...{        os<<"Queue:<Tail-- ";        for(int i = 0; i < Q.m_Count; i++)            os<<Q.m_Array[ (Q.m_Head - i) % Q.m_Capacity ]<<" ";        if(Q.m_Count < 1) os<<"Empty!";        os<<" --Head>";    ......
阅读全文
  • 04月
  • 06日
综合 ⁄ 共 5365字 评论关闭
加法指令 ADD (addition)指令对标志位的影响:                     CF=1   最高有效位向高位有进位                     CF=0   最高有效位向高位无进位                     OF=1   两个同符号数相加(正数+正数 或 负数+负数),结果符号与其相反。                     OF=0   两个不同符号数相加,或同符号数相加,结果符号与其相同。 带进位加法指令 ADC (add with carry)指令对标志位的影响:                     CF=1   最高有效位向高位有进位                     CF=0   最低有效位相高位无进位                   ......
阅读全文
  • 02月
  • 11日
综合 ⁄ 共 1311字 评论关闭
DH算法,实现在不安全网络中,发收双方安全交换对称密钥的一种方法。这个对称密钥阶段性保存,避免了长期保存带来的风险,发收双方共同持有一个秘密的对称密钥,可以实现端到端的秘密通信。 DH算法基于离散对数的基本原理。涉及的知识有,对数,素数,离散对数等; 对数 对数是17世纪的一项发现,作用是用来降低乘除法的运算难度。采用对数可以用加法来代替乘法,用减法代替除法。1627年开普勒使用对数来整理第谷布拉赫积累的数据,并得出了比他的前辈更精确的天体表,并得出行星沿着椭圆轨道绕太阳运行。 y = a^x      a的x......
阅读全文
  • 02月
  • 01日
综合 ⁄ 共 5684字 评论关闭
/******************** (C) COPYRIGHT 2013 xxxx  Cor. ***************************** * File Name          : main.c * Author             : xxxx * Version            : V1.0.0 * Date               : 08/10/2013 * Description        : 根据外部信号配置MAX2150ETI和ADF4106BRU。 发射频率源MAX2150ETI配置要求参考频率:20MHz鉴相频率:20MHz输出频率:999M~1121MHz 接收频率源ADF4106BRU配置要求参考频率:20MHz鉴相频率:1MHz *******************************************************************************/ #in......
阅读全文
  • 01月
  • 14日
综合 ⁄ 共 566字 评论关闭
Back up the registry. Start Registry Editor. To do this, click Start, click Run, type regedit, and then click OK. Locate and then click to select the following registry sub key: HKEY_LOCAL_MACHINE\Software\Microsoft\NET Framework Setup\NDP After you select the subkey that is specified in step 3, point to New on the Edit menu, and then click Key. Type WU, and then press ENTER. Right-click WU, point to New, and then click DWORD Value. Type BlockNetFramework451, and then press ENTER. ......
阅读全文
  • 01月
  • 13日
综合 ⁄ 共 1814字 评论关闭
B. Pashmak and Flowers time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Pashmak decided to give Parmida a pair of flowers from the garden. There are n flowers in the garden and the i-th of them has a beauty number bi. Parmida is a very strange girl so she doesn't want to have the two most beautiful flowers necessarily. She wants to have those pairs of flowers that their beauty difference is maximal possible! Your t......
阅读全文
今天访问测试代码 火狐浏览器访问 https://www.abc.com 出现一个很怪异的问题,报错: ssl 107 (net::ERR_SSL_PROTOCOL_ERROR)  刚开始以为是ssl失效了,重新安装了一遍 安装过程: 第一步# openssl genrsa -des3 -out server1.key 1024 Generating RSA private key, 1024 bit long modulus ......++++++ ........++++++ e is 65537 (0x10001) Enter pass phrase for server1.key:此处设置个密码 Verifying - Enter pass phrase for server1.key:重新输入设置个密码 第二步# openssl req -new -key server1.key -out server1.csr ......
阅读全文
  • 12月
  • 10日
综合 ⁄ 共 1352字 评论关闭
******************************************************************************************** Software Build Release : (SBR) 软件自动化构建和发布 ********************************************************************************************   一 Build Release 系统 [BuildRelease Management]buildbot [BuildRelease Management]Parabuild [BuildRelease Management]hudson [BuildRelease Management]hudson插件 [BuildRelease Management]FinalBuilder [BuildRelease Management]Team City [BuildRelease Man......
阅读全文