Google and atppp’s Blog

July 27, 2008 12:03 pm UTC | In Tech | 10 Comments | hide

据说前几天 Google 的 PageRank 又更新了。上一轮更新承蒙谷歌看得起,鄙部落格的 PageRank 上了 5(感谢各位链接我的兄弟姐妹们);这轮更新貌似维持在 5 没有变化,不过有些文章页面的 PageRank 上了 4,实在受宠若惊,心中默念,要淡定,淡定……

不光文章页面的 PageRank 高,还有一个特别的页面很诡异,那就是康神的 tag 页。这个页面上一轮更新 PageRank 就到了 3,我只当是 Google 算错了,因为我的 robots.txt 压根就不让 Google 索引这个页面,结果这一轮更新这个页面的 PageRank 直接就上了 4,让我不得不佩服神的力量,康神伟大!

说到了康神这个 tag 页,我就不得不提一下 Google Analytics 里面统计的 Pageview 了。鄙部落格去年八月开张,九月挂上了统计。根据统计,这里接近 25% 的 Pageview 是首页(很正常),接下来第二梯队 1% ~ 2% 左右的差不多有 10 个页面,别的九个都是很好理解的后面几页啊,容易被搜索到的文章啊之类的,唯独有一个不可理解的,就是康神的 tag 页居然排名第五,有右图为证。这件事情说明了什么呢?说明了什么呢?说明了什么呢?我想不明白,请各位拜康神教众前来指点迷津。

另外,根据统计,鄙部落格搜索关键词排名第一的是“atppp”(很正常),第二名就是“康神”,且领先第三名一大截。这样看来这里可以算是拜康神教的据点之一了。

有关订阅我 Blog rss 的人数,也是我等数字男感兴趣的问题。我直接用命令把 Google 扒站机汇报的订阅数整理出来画了个图如下。分析表明,某个时间段订阅数的增长和我 Blog 篇数的增长有一定的相关性,看来不常更新的 Blog 慢慢衰败是社会发展的必然规律……

P.S. 如何看自己 Blog rss 在 Google 服务里的订阅数:1. web server log,这玩意儿权限要求比较高;2. Google Webmaster Tools;3. Google Reader 添加自己 feed 之后会有 “Show details” 的链接,可以看到 subscribers 数量;4. 似乎还有很多别的方法……

cat `ls -tr access_log*`|grep “GET /feed ” |grep blog.wuxinan.net|grep “Feedfetcher-Google”|grep subscriber|cut -d ‘ ‘ -f 4,14|cut -c 2-12,22-|uniq

Tags: , , , , , , ,

Convert WordPress database from Latin1 to UTF-8

January 12, 2008 5:39 pm UTC | In Tech | 3 Comments | hide

Some early WordPress databases use raw Latin1 encoding to represent UTF-8 characters. The following seems to be an O.K. way to convert those databases to native UTF-8 databases (at least it works for me, Mysql 5.0.45):

  1. Stop/restrict web service.
  2. Dump the database:
    $ mysqldump --default-character-set=latin1 --databases wordpress > m.sql
  3. Change encoding settings in m.sql, including table default encoding and client communication encoding:
    $ replace "CHARSET=latin1" "CHARSET=utf8" \
        "SET NAMES latin1" "SET NAMES utf8" < m.sql > m2.sql
  4. Import the “converted” sql:
    $ mysql < m2.sql
  5. Add the following lines to WordPress wp-config.php
    define('DB_CHARSET', 'utf8');
    define('DB_COLLATE', '');
  6. Reopen web service. That’s it.

Note: For future convenience, you might as well change the database default encoding to utf8.

Ref to WordPress documentation for details: here and here.

Tags: , , , ,

Blog 稍微改了一下界面

October 13, 2007 11:32 pm UTC | In Misc | 3 Comments | hide

今天傍晚在阳台顺手拍了一张照片直接拿来做 Blog logo 图了。照相时间是 7:00pm,弯弯的月牙西沉在树梢,只可惜实在太难看清楚了(点开放大看可能能看到)。白居易同学说:“可怜九月初三夜,露似珍珠月似弓。”今天正是九月初三……

dusk sky

Tags: ,

第一篇

August 24, 2007 8:56 pm UTC | In Misc | 3 Comments | hide

被强烈要求建一个Blog,那好吧,WordPress 搞好了,先捡点古董出来……

Tags: ,

This weblog is licensed under a Creative Commons License.
Powered by WordPress. Theme based on Pool by Borja Fernandez.