本章讲解内容: DTD是Docunent Type Defintion的缩写,即文档类型定义。DTD用来描述XML文档结构。 DOM4J是一个非常优秀的javaXML API,具有性能优异,功能强大和易用的特点。 Java反射机制是只在运行状态中,动态获取信息及动态调用对象方法的功能。 使用反射可以 ...
分类:
其他好文 时间:
2016-09-07 14:34:46
阅读次数:
134
[HAOI2006]旅行comf Description 给你一个无向图,N(N<=500)个顶点, M(M<=5000)条边,每条边有一个权值Vi(Vi<30000)。给你两个顶点S和T,求一条路径,使得路径上最大边和最小边的比值最小。如果S和T之间没有路径,输出”IMPOSSIBLE”,否则输出 ...
分类:
其他好文 时间:
2016-09-07 14:33:31
阅读次数:
126
...
分类:
其他好文 时间:
2016-09-07 14:35:49
阅读次数:
177
struct是变量的集合 interface是方法的集合 struct与interface都支持匿名字段, 换言之, 支持组合实现继承. golang的struct与C++的class一样, 只能声明变量, 不能初始化. golang的错误机制就是借且多值返回将错误作为结果返回. 所以关键API调用... ...
分类:
其他好文 时间:
2016-09-07 14:34:38
阅读次数:
104
什么是AOPAOP(Aspect-OrientedProgramming,面向方面编程),可以说是OOP(Object-Oriented Programing,面向对象编程)的补充和完善。OOP引入封装、继承和多态性等概念来建立一种对象层次结构,用以模拟公共行为的一个集合。当我们需要为分散的对象引入 ...
分类:
其他好文 时间:
2016-09-07 14:34:49
阅读次数:
247
// Copyright 2009 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE... ...
分类:
其他好文 时间:
2016-09-07 14:33:45
阅读次数:
197
在golang中package是个困惑的概念, 特别是package还可以与folder不同名, 委实让我恶心了一把. 关于golang的package的最佳实践: package is folder. package name is folder name. package path is fol... ...
分类:
其他好文 时间:
2016-09-07 14:33:24
阅读次数:
138
注:用的struts2的版本是2.1.6 strtus2的默认配置文件 struts-default.xml ,其中的默认的拦截器,包括其中的拦截器栈。 因为struts2的配置文件struts.xml 中如果不配置拦截器的话,默认是basoc拦截器。如果一个action配拦截器的话,需要 需要加上 ...
分类:
其他好文 时间:
2016-09-07 14:32:45
阅读次数:
216
对实践项目完成后学习到的能力的预期 通过实践项目的学习,对于软件工程有更加深层次的认识,不仅仅局限于能做出一个Demo,还要在用户需求和用户体验上加深理解,从多个方面找到用户真正需要的功能,方便用户的使用。我们的小组所使用的平台是Android,我虽然从来没有接触过这个平台,包括设备和APP,但是正 ...
分类:
其他好文 时间:
2016-09-07 14:33:52
阅读次数:
105
在golang中空的interface即interface{}可以看作任意类型, 即C中的void *. 对interface{}进行类型测试有2种语法: 1. Comma-ok断言: value, ok = element.(T), 其中T是具体类型. 2. Switch测试: switch el... ...
分类:
其他好文 时间:
2016-09-07 14:32:42
阅读次数:
137
Given an encoded string, return it's decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside the square brackets is b ...
分类:
其他好文 时间:
2016-09-07 14:31:03
阅读次数:
124
简单的命令行选项: ...
分类:
其他好文 时间:
2016-09-07 14:32:06
阅读次数:
118
openstack@openstack:~$ echo "abc" | shasum03cfd743661f07975fa2f1220c5194cbaff48451 -而使用Java实现SHA1输出:a9993e364706816aba3e25717850c26c9cd0d89d相同算法, 居然结果... ...
分类:
其他好文 时间:
2016-09-07 14:28:27
阅读次数:
149
以下命令以root用户运行:#cd /tmp/#wget http://redis.googlecode.com/files/redis-2.6.11.tar.gz#tar xzf redis-2.6.11.tar.gz#cd redis-2.6.11#make#make install#cd ut... ...
分类:
其他好文 时间:
2016-09-07 14:29:51
阅读次数:
108
原文链接:https://marcoschwartz.com/monthly-income-report-august-2016/ Every month, I publish a report of the business & investment income I received durin ...
分类:
其他好文 时间:
2016-09-07 14:30:41
阅读次数:
192
1319: Sgu261Discrete Roots Description 给出三个整数p,k,a,其中p为质数,求出所有满足x^k=a (mod p),0<=x<=p-1的x。 Input 三个整数p,k,a。 Output 第一行一个整数,表示符合条件的x的个数。 第二行开始每行一个数,表示符 ...
分类:
其他好文 时间:
2016-09-07 14:28:45
阅读次数:
179
> OVS安装:1. Install the Open vSwitch plug-in and its dependencies:# apt-get install \neutron-plugin-openvswitch-agent \openvswitch-datapath-dkms \ 2. R... ...
分类:
其他好文 时间:
2016-09-07 14:29:41
阅读次数:
219