测试十年系列文章又来了~这次小明又get了哪些新技能呢?...
分类:
其他好文 时间:
2015-05-12 09:32:56
阅读次数:
138
Could not publish server configuration for Tomcat v8.0 Server at localhost.
Context with path “/jspDemo” conflicts with another Context with path “/JspDemo”.修改
如果是使用的eclipse tomcat 插件,需要在你的工作空间 找到如下文...
分类:
其他好文 时间:
2015-05-12 09:29:33
阅读次数:
4147
在设计数据库时,有范式和反范式的讲究,下面总结一下。
范式的优点:
1)范式化的数据库更新起来更加快;
2)范式化之后,只有很少的重复数据,只需要修改更少的数据;
3)范式化的表更小,可以在内存中执行;
4)很少的冗余数据,在查询的时候需要更少的distinct或者group by语句。
范式的缺点:
5)范式化的表...
分类:
其他好文 时间:
2015-05-12 09:29:51
阅读次数:
136
适配器模式
适配器模式的目的是使用一个已经存在的类,而它的接口不符合我们的需求,想创建一个复用的类,该类可以与其他不相关的类或不可预见的类协同工作。
适配器模式分为两类
类的适配器模式----采用继承模式
对象的适配器模式--采用对象组合方式实现
适配器模式有四种角色
目标抽象角色(Target)--定义客户所期待要使用的接口
源角色(Adaptee)--需要被适配的接口
适配器角...
分类:
其他好文 时间:
2015-05-12 09:30:02
阅读次数:
99
高低频划分:
极低频 ELF 3KHZ以下
甚低频 VLF 3-30KHZ
低 频 LF 30-300KHZ
中 频 MF 300-3MHZ
高 频 HF 3-30MHZ
甚高频 VHF 30-300MHZ(电视1---12频道)
特高频 UHF 300-3GHZ(电视13频道以上)
超高频 SHF 3G-30GHZ
也有这样...
分类:
其他好文 时间:
2015-05-12 09:30:47
阅读次数:
124
1.ans=max(全为a的最大矩阵,全为b的最大矩阵,全为c的最大矩阵)
2.代码:
#include
#include
#include
using namespace std;
const int INF=1<<30;
char mat[1005][1005];
int a[1005][1005];
int b[1005][1005];
int c[1005][1005];
int L...
分类:
其他好文 时间:
2015-05-12 09:30:36
阅读次数:
134
我不想搞那些复杂的东西。
我只想专注于技术,但在中国这个社会,仅仅懂技术想活下去,真他妈的难。
总之,我想专注于技术,我想做一个有实力的人。我认为,自力更生才光荣。
自己有真正的实力生活,回到家也踏实。不偷别人的,不抢别人的,不投机倒把,靠真本事挣口饭吃,没什么比这更好了。
我不想有什么大的成绩,自力更生就行了。走形式的事浪费时间的事,我懒得理会。
我从小就讨厌走形式,讨...
分类:
其他好文 时间:
2015-05-12 09:30:26
阅读次数:
114
cookie是http协议头的组成部分,必须在页面的其他内容出现之前发送。所以在设置cookie之前不能有任何文本输出,包括HTML标记、输出语句以及空白行。
一旦cookie被建立,那么下一次访问页面时,cookie就会通过_COOKIE或HTTP_COOKIE_VARS数组加载。
函数setcookie的作用是用来发送一个cookie。它的用法如下:
bool setcookie...
分类:
其他好文 时间:
2015-05-12 09:29:37
阅读次数:
121
一.在eclipse中开发第一个servlet程序。
1.在eclipse j2ee版建立工程Dynamic web project ->HelloWorld
2.创建一个 Servlet 接口的实现类:public class HelloServlet implements Servlet
3.在 web.xml 文件中配置和映射这个 Servlet:
hello
co...
分类:
其他好文 时间:
2015-05-12 09:28:37
阅读次数:
120
在struts中如果使用到其他拦截器,一定要放在核心拦截器之前,否则不起作用。
在struts中可以使用servlet。
xml
version="1.0"encoding="UTF-8"
?>
DOCTYPE
struts PUBLIC
"-//Apache Software Foundation//DTD StrutsConfiguration 2...
分类:
其他好文 时间:
2015-05-12 09:29:05
阅读次数:
122
//对于该点能到达的下一点用一条路径表示
//然后用spfa求出其最小值
//在更新最小点时判断一下他去这一个点时会不会淹死
#include
#include
#include
#include
using namespace std ;
const int inf = 0x3f3f3f3f;
const int maxn = 100010 ;
const int mod =...
分类:
其他好文 时间:
2015-05-12 09:29:43
阅读次数:
105
//浏览器检测
(function(){
window.sys={};
var ua=navigator.userAgent.toLowerCase();//获取炉冷却信息字符串
var s;//浏览器信息数组,浏览器名称+版本号
//document.write(ua);//不同浏览器将输出一下浏览器信息
/*
document.wri...
分类:
其他好文 时间:
2015-05-12 09:27:32
阅读次数:
104
顺序队列的实现,写出给大家分享一下,我不习惯写什么心得,直接贴代码出来供大家分享,共同进步。
1:头文件:Queue.h
#pragma once
#include
#include
#define ElemType int
#define SizeFull 20
typedef struct Queue
{
ElemType *data;
int sizefull;
int fro...
分类:
其他好文 时间:
2015-05-12 09:26:32
阅读次数:
92
题目链接:hdu 5078 Osu!
题面:
Osu!
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)
Total Submission(s): 1058 Accepted Submission(s): 550
Special Judg...
分类:
其他好文 时间:
2015-05-12 09:28:50
阅读次数:
176
Reverse bits of a given 32 bits unsigned integer.
For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binary as 001110010...
分类:
其他好文 时间:
2015-05-12 09:26:02
阅读次数:
126
Airport Express
In a small city called Iokh, a train service, Airport-Express, takes residents to the airport more quickly than other transports. There are two types of trains in Airport-Express, t...
分类:
其他好文 时间:
2015-05-12 09:25:59
阅读次数:
95
Fence Repair
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 29658
Accepted: 9643
Description
Farmer John wants to repair a small length of the fence aroun...
分类:
其他好文 时间:
2015-05-12 09:28:03
阅读次数:
90