自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(0)
  • 资源 (15)
  • 收藏
  • 关注

空空如也

思科PacketTracer搭建的模拟网络

一、实验背景 3 二、实验目的 3 三、实验环境 3 四、实验内容 3 4.1、网络的拓扑图 3 4.2、IP地址的配置 4 4.3、VLAN的划分 5 4.4、静态NAT的配置 6 4.5、动态NAT的配置 7 4.6、ACL的配置 8 4.7、服务器的架设 9 4.7.1 架设FTP服务器 9 4.7.2 架设DNS服务器 10 4.7.3 架设HTTP服务器 11 4.7.4架设EMAIL服务器 12 4.8 网络安全设置 13 4.8.1 enable密码配置 13 4.8.2 telnet密码设置 14 五、cisco培训心得 14 六、硬件课程设计心得 15

2012-04-02

J2EE利用Hibernate采用B/S架构网页设计

package hib; import org.hibernate.HibernateException; import org.hibernate.Session; import org.hibernate.cfg.Configuration; /** * Configures and provides access to Hibernate sessions, tied to the * current thread of execution. Follows the Thread Local Session * pattern, see {@link http://hibernate.org/42.html }. */ public class HibernateSessionFactory { /** * Location of hibernate.cfg.xml file. * Location should be on the classpath as Hibernate uses * #resourceAsStream style lookup for its configuration file. * The default classpath location of the hibernate config file is * in the default package. Use #setConfigFile&#40;&#41; to update * the location of the configuration file for the current session. */ private static String CONFIG_FILE_LOCATION = "/hibernate.cfg.xml"; private static final ThreadLocal<Session> threadLocal = new ThreadLocal<Session>(); private static Configuration configuration = new Configuration(); private static org.hibernate.SessionFactory sessionFactory; private static String configFile = CONFIG_FILE_LOCATION; static { try { configuration.configure(configFile); sessionFactory = configuration.buildSessionFactory(); } catch (Exception e) { System.err .println("%%%% Error Creating SessionFactory %%%%"); e.printStackTrace(); } } private HibernateSessionFactory() { } /** * Returns the ThreadLocal Session instance. Lazy initialize * the <code>SessionFactory</code> if needed. * * @return Session * @throws HibernateException */ public static Session getSession() throws HibernateException { Session session = (Session) threadLocal.get(); if (session == null || !session.isOpen()) { if (sessionFactory == null) { rebuildSessionFactory(); } session = (sessionFactory != null) ? sessionFactory.openSession() : null; threadLocal.set(session); } return session; } /** * Rebuild hibernate session factory * */ public static void rebuildSessionFactory() { try { configuration.configure(configFile); sessionFactory = configuration.buildSessionFactory(); } catch (Exception e) { System.err .println("%%%% Error Creating SessionFactory %%%%"); e.printStackTrace(); } } /** * Close the single hibernate session instance. * * @throws HibernateException */ public static void closeSession() throws HibernateException { Session session = (Session) threadLocal.get(); threadLocal.set(null); if (session != null) { session.close(); } } /** * return session factory * */ public static org.hibernate.SessionFactory getSessionFactory() { return sessionFactory; } /** * return session factory * * session factory will be rebuilded in the next call */ public static void setConfigFile&#40;String configFile&#41; { HibernateSessionFactory.configFile = configFile; sessionFactory = null; } /** * return hibernate configuration * */ public static Configuration getConfiguration() { return configuration; } }

2012-04-02

计算机信息安全大作业

一、题目 4 二、摘要 4 三、关键字 4 四、引言 4 五、正文 4 5.1Windows操作系统安全定义 4 5.1.1身份认证(authentication) 5 5.1.2访问控制(authorisation) 6 5.1.3数据保密性(privacy) 7 5.1.4数据完整性(date integrity) 9 5.1.5不可否认性(non-repudiation) 9 5.2Windows金字塔安全架构 9 5.3Windows系统的安全组件 9 5.3.1访问控制的判断(Discretion access control) 10 5.3.2对象重用(Object reuse) 10 5.3.3强制登陆(Mandatory log on) 10 5.3.4审核(Auditing) 10 5.3.5对象的访问控制(Control of access to object) 11 5.4Windows安全子系统的组件 11 5.4.1安全标识符(Security Identifiers) 12 5.4.2访问令牌(Access tokens) 12 5.4.3安全描述符(Security descriptors) 13 5.4.4访问控制列表(Access control lists) 13 5.4.5访问控制项(Access control entries) 13 5.5Windows安全子系统 13 5.6Windows安全子系统流程过程 13 5.6.1 Winlogon and Gina 14 5.6.2本地安全认证(Local Security Authority) 14 5.6.3安全支持提供者的接口(Security Support Provide Interface) 15 5.6.4认证包(Authentication Package) 15 5.6.5安全支持提供者(Security Support Provider) 16 5.6.6网络登陆(Netlogon) 16 5.6.7安全账号管理者(Security Account Manager) 16 5.7Linux安全机制概述 16 5.7.1PAM机制 16 5.7.2入侵检测系统 17 5.7.3加密文件系统 17 5.7.4安全审计 17 5.7.5强制访问控制 18 5.7.6防火墙 18 5.8WindowsXP下的一些常用安全设置 19 5.8.1WindowsXP系统安全补丁升级 19 5.8.2WindowsXP管理防火墙的例外程序 20 5.8.3WindowsXP端口安全设置 20 5.8.4WindowsXP下Internet安全设置 22 六、结论 22 七、参考文献 23

2012-04-02

软件工程课程设计,B/S,JDBC,J2EE,sql2008,数据库

课程设计全套代码,加SQL2008数据库数据文件,采用B/S架构,J2EE,JDBC

2012-04-02

C++各种排序算法实现

各种排序算法——直接顺序排序,希尔排序,起泡排序,快速排序,简单选择排序,筛选法调整堆,堆排序,一次归并,一趟归并,归并排序的非递归算法……

2012-01-19

C++数据结构 图的实现

#include<iostream> #include "Bgraph.h"//引入头文件 using namespace std; /* *前置条件:图不存在 *输 入:无 *功 能:图的初始化 *输 出:无 *后置条件:得到一个有向图 */ template <class T> BGraph<T>::BGraph(T a[ ], int n, int e) { int i,j,k,w;ArcNode *E; vertexNum=n; arcNum=e; for(i=0;i<vertexNum;i++) { adjlist[i].vex=a[i]; adjlist[i].firstarc=NULL; } for(k=0;k<arcNum;k++) { cout<<"请输入第"<<k+1<<"条弧的信息(格式为:顶点1 顶点2 权值)"; cin>>i>>j>>w; //先插入边<i,j> E=new ArcNode; E->info=w; E->adjvex=j; E->nextarc=adjlist[i].firstarc; adjlist[i].firstarc=E; //再插入边<j,i> E=new ArcNode; E->info=w; E->adjvex=i; E->nextarc=adjlist[j].firstarc; adjlist[j].firstarc=E; } }

2012-01-19

基于C++数据结构 哈夫曼树

template <class T> void HTree<T>::CreateHuffman(int n){ //w存放n个字符的权值(均>0),构造赫夫曼树HT int i,m,s1,s2,w;HTNode<T> *p;//w放权值的临时变量 if (n<=1) throw "error!"; m=2*n-1;//注:有n个字符,其构造成一颗Huffman树后,将有n+n-1个结点. HT=new HTNode<T>[m+1];//0号单元未使用 for(p=HT+1,i=1;i<=n;++i,++p) { //初始化Huffman树的各叶子结点 cout<<"请输入第"<<i<<"个字符的权值(1-26是字母的,27是空格符的权值):"; cin>>w; (*p).weight=w; (*p).lchild=0; (*p).rchild=0; (*p).parent=0; }

2012-01-19

C++数据结构 栈

//DSeqStack.cpp #include "stdlib.h" #include "DSeqStack.h" /* * 前置条件:栈不存在 * 输 入:无 * 功 能:栈的初始化 * 输 出:无 * 后置条件:构造一个空栈 */ template <class type> DSeqStack<type>::DSeqStack(int size ):top(-1),MaxSize(size) {//建立一个最大尺寸为size的空栈 S=new type[MaxSize];//创建存储栈的数组 if(S==NULL) //分配不成功 { cerr<<"动态存储失败!"<<endl; exit(1); //stdlib.h } } /* * 前置条件:栈已存在 * 输 入:元素值x * 功 能:在栈顶插入一个元素x * 输 出:如果插入不成功,抛出异常 * 后置条件:如果插入成功,栈顶增加了一个元素 */ template <class type> void DSeqStack<type>::Push(const type &item;) { if (top==MaxSize-1) throw "栈满!"; top++; //栈未满,则入栈 S[top]=item; } /* * 前置条件:栈已存在 * 输 入:无 * 功 能:删除栈顶元素 * 输 出:如果删除成功,返回被删元素值,否则,抛出异常 * 后置条件:如果删除成功,栈顶减少了一个元素 */

2012-01-19

C++数据结构顺序表的实现

//SeqList.cpp #include "DSeqlist.h" /* *输 入:无 *前置条件:顺序表不存在 *功 能:构建一个顺序表 *输 出:无 *后置条件:顺序表的长度取零及空间最大值有了新值。 */ template <class datatype> DSeqList<datatype>:: DSeqList( ) { data=new datatype[MaxSize]; if (data==NULL) throw "Sorry!,申请空间未成功!"; maxlen=MaxSize; length=0; } /* *输 入:顺序表信息的数组形式a[],顺序表长度n *前置条件:顺序表不存在 *功 能:将数组a[]中元素构建为长度为n的顺序表 *输 出:无 *后置条件:顺序表的长度取零及空间最大值有了新值。 */ template <class datatype> DSeqList<datatype>:: DSeqList(datatype a[], int n) { //if (n>MaxSize) throw "数组大小参数非法"; data=new datatype[n]; if (data==NULL) throw "Sorry!,申请空间未成功!"; for (int i=0; i<n; i++) data[i]=a[i]; maxlen=n; length=n; } /* *输 入:无 *前置条件:无 *功 能:释放所申请的空间 *输 出:无 *后置条件:表长与表空间最大值取0 */ template <class datatype> DSeqList<datatype>:: ~DSeqList( ) { delete []data; length=0; maxlen=0; }

2012-01-19

数据结构C++树的实现

template //实现用层次非递归创建 Node* BinaryTree::CreatBinaryTree(Node* &tr;) { Node* temp; NodeQueue queue(20); T data; cout<>data; if(data!='#'){ Node*temp1=new Node; temp1->Data=data; temp=temp1; queue.InQueue(temp); } else return NULL; tr=temp; //这些都是准备工作给跟赋值的 do { temp=queue.OutQueue(); cout<>data; if(data!='#'){ Node*temp1=new Node; temp1->Data=data; temp->LChild=temp1; queue.InQueue(temp->LChild); } else temp->LChild=NULL; //对左孩子的实现 cout<>data; if(data!='#'){ Node*temp1=new Node; temp1->Data=data; temp->RChild=temp1; queue.InQueue(temp->RChild); } else temp->RChild=NULL; //对右孩子的实现 } while(!queue.IsEmpity()); return tr; }

2012-01-19

数据结构二叉树

用C++实现二叉树的数据结构 template <class T> class BiTree; template <class T> class BiNode //二叉树的结点结构 { friend class BiTree<T>; T data; BiNode<T> *lchild, *rchild; };

2012-01-19

上海市地铁信息(包括实现换乘的存储过程)

该数据库里面存储了上海市地铁站的基本信息

2012-01-19

实现交通路线和换乘查询

目前,各大城市公交四通八达,人们出行也越来越方便. 然而,在现实生活中,人们可选择的线路多的情况下,如何省时高效乘车,已成为市民日常出行需要解决的一个问题。 因此,需要设计了智能化的城市公交查询管理系统,实现公交查询的自动化和信息化,来提高公交查询的速度与效率。城市公交查询系统应从符合操作简便、界面友好、灵活、实用、安全的要求出发,以优化查询结果删选合适的线路为根本出发点,来满足人们出行方便的需求。

2012-01-19

C++数据结构队列——离散事件模拟

用C++语言通过队列实现银行取款系统的离散模拟事件

2012-01-19

C++数据结构队列——离散事件模拟(银行处理系统)

(1) 熟练掌握队列的两种存储方式。 (2) 掌握队列的基本操作及应用。 (3) 利用链式存储线性表和队列实现银行业务模拟程序。

2012-01-19

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除