上一页 1 ··· 237 238 239 240 241 242 243 244 245 ··· 455 下一页
求平均分的关键在于,利用mapreduce过程中,一个key聚合在一起,输送到一个reduce的特性。假设三门课的成绩如下:china.txt张三 78李四 89王五 96赵六 67 english.txt张三 80李四 82王五 84赵六 86 math.txt张三 88李四 99王五 66赵六 72 mapreduce如下:public static class Map extends Mapper<LongWritable, Text, Text, IntWritable> { // 实现map函数 p... Read More
posted @ 2013-05-07 22:09 javawebsoa Views(407) Comments(0) Diggs(0)
<s:a href="role_delete.action?id=%{id}">删除</s:a>而之前我们习惯用<a href="role_delete.action?id=${id}">删除</a> Read More
posted @ 2013-05-07 22:07 javawebsoa Views(166) Comments(0) Diggs(0)
/*其实这题才是第一次做 但是一直不过,也不知道怎么回事儿就去调了那个简单题做现在才发现少了main里面的if还有ok2 是我之前写的,但是少了个{}题意是,在所给的字符串中找一个子串,最少出现m次,求那个最长的串,并输出最后一次的开始位置按长度二分,判断是否符合条件即可*/#include<stdio.h>#include<string.h>const int maxn=500010;int wa[maxn],wb[maxn],wv[maxn],ws[maxn]; int sa[maxn],ss[maxn];int cmp(int *r,int a,int b,int Read More
posted @ 2013-05-07 22:05 javawebsoa Views(142) Comments(0) Diggs(0)
一、基本参数信息说明(转载自:http://home.51.com/xphwv/diary/item/10050216.html) struts.objectFactory这个属性用于说明Struts2的对象池创建工厂,Struts2也有自己的对象池,就像Spring那样,在配置文件中你可以引用对象池中的对象,你可以借助于Spring中的对象池,当想要得到Spring中的对象池时,申明struts.objectFactory为Spring的对象池构建工厂....struts.serve.static.browserCache该属性设置浏览器是否缓存静态内容。当应用处于开发阶段时,我们希望每次请 Read More
posted @ 2013-05-07 22:03 javawebsoa Views(284) Comments(0) Diggs(0)
Framework for reliable, real-time facial expression recognitionfor low resolution images老师前些天给了一篇PRL模式识别快报论文Framework for reliable, real-time facial expression recognitionfor low resolution images,就是提出了一种新的表情识别方法。概念很新颖,内容不难。 主要创新: <1>提出一种PBLP特征描述向量,就是把BLP和Pyramid结合起来,一副图像提取59维向量; 一共两层,295维。Mon Read More
posted @ 2013-05-07 22:01 javawebsoa Views(337) Comments(0) Diggs(1)
protected void Button1_Click(object sender, EventArgs e)//创建xml { //声明 XmlDocument x = new XmlDocument(); //创建 XmlDeclaration xd = x.CreateXmlDeclaration("1.0", "GB2312", null); x.AppendChild(xd); //创建根节点 XmlElement element = x.CreateElement("Books"); x.AppendChild(elem Read More
posted @ 2013-05-07 21:59 javawebsoa Views(313) Comments(0) Diggs(0)
实验三十七 Windows Server 2012 RDS桌面虚拟化之八RemoteApp程序快速启动部署 RemoteApp是微软桌面虚拟化架构中的重要组成部分,RemoteApp程序是透过终端服务远程访问的程序,客户端本机无需安装任何应用程序也可像本地资源一样使用remoteapp程序;在Windows Server 2012中RemoteApp就是基于会话的桌面部署,它包含三种主机角色:远程桌面链接代理,远程桌面会话主机,远程桌面Web访问,在部署时可以使用快速启动和标准部署两种方式说明:本次实验是RemoteApp程序的快速启动部署,环境基于实验三十六1 准备一台Windows Se. Read More
posted @ 2013-05-07 21:57 javawebsoa Views(593) Comments(0) Diggs(0)
题意:给一张n*m的图,#为墙壁,不可达,X为人,@为大门。问所有人到达大门的最短时间。在任意时间,每个点只能站一个人,大门一次也只能通过一个人。思路:枚举时间,每个时间建一次图,跑一次最大流,当最大流等于人数时,则该时间即为最短时间。关于建图,将每个点拆点。设置一个源点S,汇点T。当是点i是X时,S -> i ,流量为1 。任意时间ti。当点i不是#时,i + ti * n * m-> i' + ti * n * m ,流量是1。当点i是@时,i' +ti* n * m -> T ,流量是1。对于任意可达的两个点i ,j 连接 i -> j' Read More
posted @ 2013-05-07 21:55 javawebsoa Views(180) Comments(0) Diggs(0)
在对的时间遇到对的人,那是扯淡,在错的时间遇到对的人,这就叫青春。 Read More
posted @ 2013-05-07 21:53 javawebsoa Views(94) Comments(0) Diggs(0)
location / { proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://mmt; if ( $remote_addr != 192.168.0.2 ) { access_log /var/log/nginx/nginx_access_abres.log; }}注:192.168.0.2是F5内网地址。 下. Read More
posted @ 2013-05-07 21:51 javawebsoa Views(503) Comments(0) Diggs(0)
上一页 1 ··· 237 238 239 240 241 242 243 244 245 ··· 455 下一页