Development

关于网站流量的一些想法

(最后修改: Development #成本 #流量

有人说,中国大陆网站的流量有 80% 是不带来价值的垃圾流量,我个人的感觉是,也许没有多到这么离谱,但是,我认为至少在一半以上。你会看到很多人如此地关注 Alexa 排名,会想出各种各样的方法来骗取 eCPM,但是很少有人关注一些其他的东西—-和投资一样,有战略眼光的投资者,恐怕都被饿死了吧。

阅读全文… ( 本文约 692 字,阅读大致需要 2 分钟 )

数字电子计算机为什么用二进制表示信息?

(最后修改: Development #binary representation #digital computer

最近有件事情炒的挺火,别的不说,任何一个有计算机或电子专业常识(注意,不是专业背景)的人都会知道,数字电子计算机内部的信息表示方式是二进制,而不是十进制、十六进制、八进制或者其他进制。所以,很简单,如果有什么东西宣扬其他进制的信息表示,而且告诉你二进制、十六进制或者别的什么进制如何对计算机,或者信息处理装置不利,那么这件事首先是违反常识的。

阅读全文… ( 本文约 626 字,阅读大致需要 2 分钟 )

YSlow

(最后修改: Development #Performance #website

An elegant tool for analysis of your website regarding its appearance slowness. Why is it slow?

What you need are:

  • Firefox browser;
  • The “Firebug” plugin'
  • “YSlow” plugin from Yahoo.
参与评论

Using 'skim' for input in KDE

(最后修改: Development #FreeBSD #KDE #SCIM #skim

I have a long history suffering from inputing Chinese in KDE, where scim does not work well, especially when used with Qt applications. Certain applications like KWord will refuse Chinese when using SCIM.

After some search it seems that ‘skim’ which is scim Qt’ifyed version, would support them well. Moreover, this version seems to have better UI than its GTK counterpart. The port (textproc/skim) is now unmaintained, maybe someone will pick it up? I’ll consider picking it up if there is nobody taking care for it.

参与评论

patched top(1) and kernel to support multiple CPU

(最后修改: Development #FreeBSD #multiprocessor #top

前几天有人问 FreeBSD 的 top(1) 如何能够显示不同 CPU 的占用情况。这是 patch 过之后的输出:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
last pid:  1773;  load averages:  0.43,  0.19,  0.16                                                                                        up 0+00:34:35  16:17:04
97 processes:  1 running, 96 sleeping
CPU 0: 20.8% user,  0.0% nice,  0.0% system,  0.0% interrupt, 79.2% idle
CPU 1:  3.1% user,  0.0% nice,  0.0% system,  0.0% interrupt, 96.9% idle
Mem: 517M Active, 21M Inact, 577M Wired, 11M Cache, 48K Buf, 810M Free
Swap: 2048M Total, 2048M Free

 PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND  
 1236 delphij 1 104 0 232M 143M select 1 4:37 37.06% Xorg  
 1768 delphij 1 8 0 164M 52704K nanslp 1 0:07 36.28% kicker  
 1771 delphij 1 8 0 6212K 1664K wait 0 0:00 3.17% sh  
 1772 delphij 1 45 0 8020K 1656K select 1 0:00 2.39% ksysguardd  
 1756 delphij 1 20 0 10648K 3596K pause 1 0:00 1.17% csh  
 1754 delphij 1 4 0 11764K 1588K sbwait 1 0:00 0.78% gnome-pty-helper  
 1751 delphij 2 -8 0 136M 25756K piperd 0 0:00 0.68% gnome-terminal  

FreeBSD 8 中已经包含了这个功能。

参与评论

Qt 4 将提供 GPLv3 授权选项

(最后修改: Development #GPL #KDE #Qt

在 Google campus 举行的 KDE 4 Release Event 上,Trolltech宣布将提供 GPLv3 授权选项。许多国内媒体将这一变动称为"以GPLv3授权发布",很明显这与事实是存在差距的。

阅读全文… ( 本文约 1167 字,阅读大致需要 3 分钟 )

BSD ar(1) announced

(最后修改: Development #binutils #deprecate GPL #DTrace #FreeBSD #toolchain

Kai Wang has announced today the BSD ar(1) is available for wider testing. This is amazing work, the creation and list speed are 5-20 times faster than GNU ar(1), and extraction speed is also slightly better than GNU ar(1).

It is also important to note that this version is completely BSD-licensed (yes, that means that you are free from the lair’s license), and is a piece of the vital parts of the FreeBSD DTrace work.

参与评论