http://blog.sina.com.cn/ria[订阅]
个人资料
博文

qUIpt:一個很有創意的 JavaScript Cache Library

qUIpt 是一個很小很小的 JavaScript Library,所有原始碼也才只有 115 行而已(包括註解),我覺得作者 Mario Heiderich 真是太有創意了,他的原理十分簡單,使用的 Cache 方法是將資料儲存在 window 物件的 name 屬性中 ( window.name ),在這裡他是將透過 XHR ( XML Http Request ) 取回的 JavaScript 檔案內容儲存在 window.name 屬性裡。

通常 window.name 是用在 window.open()

CrossFrame:为Mashup准备的安全的器件间跨域通信

作者 Gavin Terrill译者 Frank Cheung 发布于 2007年11月29日 下午7时41分

社区
Architecture
主题
JavaScript,
安全

来自Yahoo!的DHTML传道团队的Julien Lecomte,宣布发布“CrossFrame,一种安全的跨文档和跨域的通信机制”。按照Julien的说法,这种“Hack”的手段,能让同一页面上来自不同域的IFrames互相通讯。传统上出于安全方面的考虑,不同域上资源的通讯比较困难,这就是浏览器上

总体说功能不错,非常的方便我用它试着做了一个财经新闻的小测试, 目前感觉不好的就是打开速度与更新速度
 
Goole Feed Api 在设计思想是有一点小问题,它为了使使用者更方便,就把一些不管你能用到还是用不到的东西都引了进来,比如那个CSS的样式表,还引几个大的JS包进来,做过测试,如果自己HACK的话,只需要引入一个大的JS包就可以了。
 
另外就是它的数据更新的太慢了,不过具体是多久还没研究明白,对它有兴趣的同学等待我的后续报导吧
 

<?php

define('HTTP_NL','\r\n');


class StarlogsHTTPClient extends HTTPClient {

   
    function StarlogsHTTPClient(){
        global $conf;

        // call parent constructor
        $this->HTTPClient();

        // set some values from the config
        $this->proxy_host = $conf['proxy']['host'];
        $this->proxy_port = $conf['proxy']['port'];
        $this->proxy_user = $conf['proxy']['user'];
        $this->proxy_pass = $conf['proxy']['pass'];
        $this->proxy_s

mop_gzip 配置说明。(2007-07-18 10:20)

本指南将向您展示如何配置Apache的Gzip Module,以及如何根据自己的需要进行配置。以求得到最佳的性能。

Gzip Module是自由软件,获得和使用均完全免费。使用这个模块你需要zlib库的支持,您可以在www.zlib.org找到。同样,zlib也是自由软件。

Gzip Module的作用是压缩由服务器传递到客户端的数据。您可以定义以何种方式压缩何种文件,以及Gzip Module所占用的内存空间大小。

对于windows用户,您可以下载已经编译好的动态链接库,直接使用。当然,您也可以下载源代码使用VC 5.0/6.0版本自行编译。

在Apache中配置Gzip_mod指导:
注意:本配置指导仅适用于1.3.19.1a,2.0.26a,2.0.30这三个版本。其余版本不保证依照本指导所描述的信息可正常工作。

1 在APACHE日志中加入mod_gzip的信息。
mod_gzip使用Apache的“notes”功能允许您添加信息到Apache的 access.log 文件中。

以下特定的‘LogFormat’仅显示压缩比。如果一个文件没有被压缩,那么将显示横杆“-”或0“ZERO”…

LogFormat '%h %l %u %t \'%r\' %>s %b
编译一个模块(2007-07-15 13:53)
 /usr/local/apache/bin/apxs -Wc,'-Wall -O3 -fomit-frame-pointer -pipe' -c mod_gzip.c -o mod_gzip.so
Apache安装rewrite模块(2007-04-29 11:38)

安装环境:rhel es 4
apache:1.3.37(源码自己编译安装)
gdbm:1.8.3

1. Apache安装rewrite模块的时候需要DBM支持,否则无法编译,表现为:

 [nemo@web standard]$ ~/apache/bin/apxs -c mod_rewrite.c gcc -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -fpic -DSHARED_MODULE -I/home/nemo/apache/include  -c mod_rewrite.c In file included from mod_rewrite.c:51: mod_rewrite.h:91:18: ndbm.h: No such file or directory mod_rewrite.c: In function `lookup_map_dbmfile': mod_rewrite.c:3035: error: `DBM' undeclared (first use in this function) mod_rewrite.c:3035: error: (Each undeclared identifier is reported only once mod_rewrite.c:3035: error: for each function it appears in.) mod_rewrite.c:3035: error: `dbmfp' undeclared (first use in this function) mod_rewrite.c:3036: error: `datum' undeclared (first use in this function) mod_rewrite.c:3036: error: syntax error before 'dbmkey' mod_rewrite.c:3044: error: `dbmkey' undeclared (first use in this function) mod_rewrite.c:304
对于搜索引擎来说,页面各个元素的权重比例
作者:佚名  来源:  更新时间:2006-1-4 21:20:21
 

Inbound link text: 10 points.
title: 10 points.
domain name: 7 points.
large h1-h2 headings: 5 points.
first sentence of first paragraph: 5 points.
path or filename: 4 points.
proximity (multi kws): 4 points.
beginning of a sentence 1.5 points.
bold or italic text: 1 point.
usage in text: 1 point.
title attribute: 1 point.
alt tag: .5 point.
meta descrip: .5 point.
meta keywords: .05 point.

免费顶级域名DDNS(2007-03-23 18:30)
花生壳、金网维、每步……这些比较有名的DDNS提供商的顶级域名解析都要钱,我不乐意给~~嘿嘿

下面举例在一台Linux上绑定一个域名,假设是domain.com不仅限于ADSL,也可以是其他的什么东西,只要有公网IP的,如果是固定IP,你可以点击标题栏上的“喜悦国际村”返回列表,或者点浏览器的关闭按钮。

选择Linux是因为大家普遍认为“Linux比Windows难用”,选择Linux的命令行是因为大家普遍认为“命令行比图形界面难用”,选了难用中的难用,那么难用和简单的都EZ了。

首先配置ppp拨号,通常都会有安装的rp-pppoe,没有的话自己去rpm一个,运行/usr/sbin/adsl-setup配置拨号选项,注意里面提示的用户名和密码是ADSL的帐号,不是系统用户,不要被它提示的root给唬了~

运行/usr/sbin/adsl-start测试连接,具体的步骤不属于本作文范畴。

www.zoneedit.com注册一个用户,可以大概浏览一遍先。Zoneedit不提供域名注册,但是提供很多域名的相关服务,比如转发等,同时也有动态域名。

把你想绑定的域名domain.com的D