几乎所有的Rails网站都使用layout,但这回造成所有的网页都有同样的标题(在header中的title)。为每个网页设置独有的标题并不是件困难的事,解决方案见下文。
初步尝试
ruby
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD...
分类:
Web程序 时间:
2014-09-03 16:57:17
阅读次数:
222
UVA 11090 - Going in Cycle!!
题目链接
题意:给定一个有向图,球平均权值最小的回路
思路:二分+判负环,每次二分一个值mid,判断是否存在小于mid的环,那么就是(w1 + w2 + w3...) / n
代码:
#include
#include
#include
#include
#include
using namespa...
分类:
其他好文 时间:
2014-09-03 00:19:05
阅读次数:
257
在前一篇中,我们完成了《Apache cxf JaxWs基本应用》 的编写,我们现在实现一个Restful风格的Cxf 。
一、我们首先依旧是基于Maven project配置pom.xml的依赖
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-inst...
分类:
其他好文 时间:
2014-09-01 15:35:13
阅读次数:
231
原文链接感谢作者原始版本:http://www.w3.org/QA/2002/04/Web-Quality翻译:Shanghai.ws声明:原始版本(英文版)是唯一的官方版本。中文(简体)版本是根据W3C网站上的文件翻译的,可能存在某些错误。翻译不保证译文完全准确。请您自己承担风险。我的网站是标准的...
分类:
Web程序 时间:
2014-08-31 14:30:21
阅读次数:
356
w3c规范,请戳这里:http://www.w3.org/TR/cssom-view/#dom-htmlelement-offsetparent 一、offsetParent 英文解读: part one:offsetParent作为一个元素属性并不是每一个元素都是值得拥有的,对于符合...
分类:
其他好文 时间:
2014-08-31 10:30:11
阅读次数:
189
加入支持的jar:
jackson-core-asl
jackson-mapper-asl
项目pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://mav...
分类:
编程语言 时间:
2014-08-28 18:12:27
阅读次数:
414
springmvc配置文件:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
...
分类:
编程语言 时间:
2014-08-28 18:07:45
阅读次数:
389
pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v...
分类:
编程语言 时间:
2014-08-26 17:27:46
阅读次数:
219
在线调用jquery <!DOCTYPE?html?PUBLIC?"-//W3C//DTD?HTML?4.01?Transitional//EN"?"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta?http-equiv="Content-Type"?content="text/html;?cha...
分类:
Web程序 时间:
2014-08-26 11:58:16
阅读次数:
257
由于没有使用maven所以直接看包结构吧!后续可能会带有maven的!
包有点多,但是不要在乎这些细节,多总比少好。下面看配置文件spring-common.xml(相当于applicationContext.xml)
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.or...
分类:
编程语言 时间:
2014-08-26 09:50:35
阅读次数:
333