搬家

August 30, 2008 7:01 pm | In Life, Tech | 4 Comments | hide

两个星期前搬到了校外,感谢 delphij 夫妇和 QQ大力搬运

delphij 大神说:“2008:硬盘磨损年!”我的网关机器的主系统硬盘在搬家前一个星期频繁出现写入错误,最后宣告不治。伟大的 Linux 系统在如此险恶的环境下坚持工作,家里的网络直到我搬家的最后一刻仍旧畅通无阻,跪拜 Linux。附:右图为最终寿终正寝的网关机器。

从校内搬到校外最大的变化是什么呢?那就是网络条件在一夜之间回到了解放前。搬家前我已经深刻领会了 litmon 指示的精神:“在原始社会的点萌,现在只能偷马路对面大楼的无线网…抖-_-||| 每天在窗前端着笔记本,拿 google reader 刷一下,就可以抱回去看啦。迄今为止最实用的功能就是它了~”。我现在生活在伟大的 Google 总部所在的城市,沐浴着 Google 铺下的巨大的 WiFi 网,用着划时代的 Google Gears,回忆着康神在这边 Google 上班的情景。受这个网络条件改变的影响,本人现在的变化有:1、钥匙串上多了一个 U 盘;2、平时家里都不开电脑了;3、电脑上开始装下载管理软件了;4、躺在游泳池边的椅子上,看着天上的星星对我眨眼睛,没有网络的生活真美好。家里到底还要不要装网呢?

WordPress 2.6 号称也开始利用 Google Gears 了,其实就是缓存了一些静态文件,完全没有发挥出 Google Gears 强大的功能,我要离线编辑和管理……说来这个 2.6 版真是一个鸡肋,都不知道加了一些什么乱七八糟的东西,那个 Post Revision 功能真是恶心到我了,大家都在问,凭啥我编辑一次文章你就把 Post ID 往上涨一号呢?凭啥你把我的数据库塞这么满呢?凭啥你要默认打开这个功能呢?而且竟然连个关掉的选项都没有!其实这玩意儿你不管它也就罢了,关键是这个世界上和我一样有洁癖的人还真不少

最后,纪念 Blog 开张一周年

Tags: , , , , ,

Google and atppp’s Blog

July 27, 2008 12:03 pm | 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 | In Tech | 2 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 | In Misc | 3 Comments | hide

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

dusk sky

Tags: ,

WordPress 2.3 native tagging support

October 1, 2007 9:52 am | In Tech | 4 Comments | hide

Why tagging if you already have category system? I like to think the blog as a book: categories are like the table of contents, while tags are the keyword index in the appendix. These two are complementary and you obviously use both of them. Vendor catalogs and academic journals often have similar two systems as well.

If your WordPress theme does not support native tagging, here are two templates to save you:

  • Show tags after blog entry. Insert the following at an appropriate location (reference)
    <?php the_tags( '<p>Tags: ', ', ', '</p>'); ?>
  • Show tag cloud. Add the following in the sidebar (reference)
    <?php wp_tag_cloud(''); ?>

Tags: , ,

WordPress 2.3

September 27, 2007 1:31 am | In Tech | No Comments | hide

Upgraded to WordPress 2.3 a few days before. List of some useful addresses of WordPress SVN:

Tags: , ,

第一篇

August 24, 2007 8:56 pm | 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.