2008年6月10日
摘要: Internet Explorer and Connection Limits From time to time, I've heard the question: "Why can IE only download two files from the same site simultaneously?" Some more savvy users observe that this li... 阅读全文
posted @ 2008-06-10 04:08 shawnliu 阅读(744) 评论(0) 推荐(0) 编辑
摘要: [zz from:http://www.yining.org/2007/08/29/dns-lookup-domain-names-and-cookies/] 减少DNS查找能够缩短页面反应时间,但是所有网站资源都只用一个域名,从而把DNS查找减少到一个,也不是最好的办法。不仅仅因为减少的平行下载的可能,更因为Web Cache对带与不带cookie的请求和返回的处理不同。 我的网站域名是w... 阅读全文
posted @ 2008-06-10 04:06 shawnliu 阅读(190) 评论(0) 推荐(0) 编辑
  2008年6月6日
摘要: zz review:Yahoo!在front end performance tuning方面的确走得领域的前面,总结出来的优化rules大部分都能够给我们带来灵感,然后让我们用于我们自己的网站性能调优。例如它对于js,cache的总结,给了很多人可以用很少的时间来系统了解一下这个方向的知识。推荐大家看一下Yahoo chief performance出的那本书,不错一本书。:) ... 阅读全文
posted @ 2008-06-06 16:38 shawnliu 阅读(381) 评论(0) 推荐(0) 编辑
  2008年6月4日
摘要: 网站用户点击行为的记录,我们通常称为日志,就目前互联网现状,大致有3种不同的方法进行收集。 一、传统的weblog 也就是web服务器接受到用户访问的http请求时对此行为进行记录,并返还给用户正常的网页内容。 优点: 1、简单、方便,可利用web service软件自带的日志功能; 2、有现成的开源软件可以对日志进行分析,如:AWStat(perl编写,通用性好,界... 阅读全文
posted @ 2008-06-04 01:51 shawnliu 阅读(502) 评论(0) 推荐(0) 编辑
  2008年4月22日
摘要: 1using System; 2using System.Collections.Generic; 3using System.Text; 4 5namespace HeapSort 6{ 7 class Program 8 { 9 static void Main(string[] args) 10 { 11 //a... 阅读全文
posted @ 2008-04-22 16:00 shawnliu 阅读(283) 评论(0) 推荐(0) 编辑
  2008年4月21日
摘要: 1import java.util.*; 2import java.io.*; 3import java.math.*; 4 5public class Main 6{ 7 public static void main(String[]ages) throws IOException 8 { 9 Scanner cin = new Scanner(Sy... 阅读全文
posted @ 2008-04-21 21:09 shawnliu 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 1import java.util.*; 2import java.io.*; 3import java.text.*; 4 5public class Main 6{ 7 public static void main(String[]ages) throws IOException 8 { 9 BufferedReader stdin = new B... 阅读全文
posted @ 2008-04-21 18:55 shawnliu 阅读(230) 评论(0) 推荐(0) 编辑
  2008年4月20日
摘要: 一、环境: 1.操作系统:windowsXp,windows2000+ 2.java1.6,设置JAVA_HOME到环境变量 3.cygwin,当然这个不是必需的,只是nutch提供的脚本只能在shell环境下使用,所以使用cygwin来虚拟shell命令。 4.nutch版本:0.9 5.tomcat:6.0 二、nutch的安... 阅读全文
posted @ 2008-04-20 02:15 shawnliu 阅读(855) 评论(0) 推荐(0) 编辑
  2008年4月14日
摘要: Problem Statement You have been given a "word search" puzzle, which consists of a rec... 阅读全文
posted @ 2008-04-14 07:11 shawnliu 阅读(698) 评论(0) 推荐(0) 编辑
  2008年4月13日
摘要: Memcached深度分析 ... 阅读全文
posted @ 2008-04-13 03:25 shawnliu 阅读(429) 评论(0) 推荐(0) 编辑