ITeye博客

tianyalinfeng

tianyalinfeng · 共 355 篇文章

TF-IDF

http://baike.baidu.com/view/1228847.htm

2012-02-29 10:11 · Nlp · 评论(0)

www打头的域名不显示title的问题

假设 注册的域名是abc.com 网站空间IP 是 1.1.1.1 当浏览器用abc.com访问时一切正常 当浏览器用 www.abc.com 访问时,title的内容不是指定内容而是当前的域名 www.abc.com 发现 www.abc.com 所指向的服务器IP并不是1.1.1.1,而是一个美国的IP title不显示的原因是此时 www.abc.com 指向的页面是一个框架页面,用frameset引用了1.1.1.1的网站内容 解决办法 最后发现 www.abc.com 指向美国的原因是,域名管理里面CNAME设置了一个 www.abc.com 到usa.xxx.com的解析, 正因…

2012-02-27 14:11 · 评论(0)

改变body背景色

将 javascript:void(document.body.style.backgroundColor='#c00') 直接贴到地址栏

2012-02-24 09:10 · Js · 评论(0)

改变父窗口的title

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd "> <html xmlns=" http://www.w3.org/1999/xhtml "> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title></title> </head> <frameset rows="0,*" frameborder="n…

2012-02-23 16:55 · Js · 评论(0)

禁止文字自动换行

white-space:nowrap; 禁止文字自动换行

2012-02-22 16:11 · Css · 评论(0)

Accept

Accept text/html,application/xhtml+xml,application/xml 表示浏览器或程序访问时可以接受的返回结果的类型 当程序访问时,所请求的内容的类型不在程序定义的Accpet范围之内,则很可能获取不到正确的结果

2012-02-15 16:49 · Java · 评论(0)

简单MD5加密

public static String Md5(String plainText, int length) { try { MessageDigest md = MessageDigest.getInstance("MD5"); md.update(plainText.getBytes()); byte b[] = md.digest(); int i; StringBuffer buf = new StringBuffer(""); for (int offset = 0; offset < b.length; offset++) { i = b[offset]; if (i < 0) …

2012-02-14 10:30 · Java · 评论(0)

为什么网页有无效英文句号“.”

查看相关样式里是否含有 content: "."; 的定义

2012-02-07 17:48 · Java · 评论(0)

手机网页

手机网页使用如下样式,版面会好看一点 font-size: medium;line-height: 1.5em; div背景可选颜色#E4EDF8

2012-02-07 14:20 · Java · 评论(0)

正则表达式匹配某一个html标签

"<Tag id='xxx' name='xxx'[^>]*>(.*?)</Tag>"

2012-02-03 14:15 · Java · Regex · 评论(0)

两jsp间传递中文参数乱码问题

a.jsp response.sendRedirect("error.jsp?errmsg="+URLEncoder.encode("转换结果为空!","UTF-8")); b.jsp <%=new String(request.getParameter("errmsg").getBytes("ISO-8859-1"),"UTF-8")%> 如上写法可解决乱码问题

2012-02-02 10:04 · Java · 评论(0)

How to install jpcap

<Microsoft Windows> Download and install Java Runtime Environment 6 (if you want to simply run Jpcap-based applications) or JDK 6 (if you want to develop Jpcap-based applications). Download and install the latest WinPcap . Download and run Jpcap Self Installer for windows. If you have the previous …

2012-01-31 10:10 · Java · 评论(0)

11 Health Habits That Will Help You Live to 100

1. Don't retire. "Evidence shows that in societies where people stop working abruptly, the incidence of obesity and chronic disease skyrockets after retirement," says Luigi Ferrucci, director of the Baltimore Longitudinal Study of Aging. The Chianti region of Italy, which has a high percentage of c…

2012-01-30 12:29 · Other · 评论(0)

新年祝福语

1. 值此新年之际,祝您:大财、小财、意外财,财源滚滚;亲情、友情、爱情,情情如意;官运、财运、桃花运,运运亨通;爱人、亲人、友人,人人平安! 2. 曾经拥有的不要忘记,属于自己的不要放弃,辛劳得来的更要珍惜,已经失去的当作回忆,愿你未来一切都能顺顺利利。春节快乐! 3. 龙王龙颜大悦,发现你是人中之龙,做事龙马精神,说话龙姿凤采,经亲子鉴定你确系为龙子龙孙,龙年祝你做个快乐小龙人! 4. 开门放鞭炮,吉祥如意冲咱笑;下锅饺子香,健康平安幸福长;驻足春联赏,财源滚滚运气旺;翘首新年望,龙腾虎跃放光芒! 5. 新年到,龙年到,愿你的事业龙腾虎跃,愿你的爱情龙凤呈祥,愿你的生活生龙活虎,愿你的梦…

2012-01-20 10:12 · Fun · 评论(0)

GBK和GB2312的区别

GBK是GB2312的扩展

2012-01-19 10:27 · Java · 评论(0)