gmail is:unread

Gmail is really fancy and high productivity. Though still need some mental labor to discover features.

I want to mark all my unread messages to be read, though difficult to select.

Use the advance search feature, from the drop down of the search criteria, select “unread messages”, the result will show you the search keywords as “is:unread”.

So just go to the label you want to check all unread, in the input bar, append “is:unread”, it will display all the unread messages for that label.

Server Migrated to GoDaddy

Bought a 7 USD per month hosting plan from GoDaddy, annual cost only 84 USD, compare with the local Chinese vendor charged me 4500 RMB, huge difference!

The migration is very easy. Just install the WordPress application on godaddy, then import the DBs on the old server, then copy the themes/plugins, That’s all.

The original latest LAMP software version RSS, need to fix though.   :-)

Upgrade Gallery 1.5 to Gallery 2

添加国庆节的照片到老的 Gallery 1.5 版本上出错了,终于决定升级系统到 Gallery 2。 有现成的文档可以参考。

虽然不能说不费吹灰之力,但是相对还是比较简单的。

URL 的重写虽然遇到了一点小问题,但是最终还是成功了。

明显的 G2 要比 G1 漂亮多了。 实际上,在研究的时候也发现,G3正式版 已经于 10/5 发布了。 等 G2 稳定一段时间后,再升级到? G3 吧, 或许是明年的春节呢。

mod_jk 在 Solaris 10 X86 上的编译安装

mod_jk 只有 For Solaris Sparc 的? Binary , 所以只好手工编译了。 其实很简单的步骤,也算更新一下以前的那个文章吧。

升级 Squid 到 3.1.8

查看原来的编译时的 config.log 文件,老样子做: $ ./configure –prefix=/usr/local/squid –enable-follow-x-forwarded-for

升级完以后,发现大量的公网 IP 不同端口到 80 端口的连接,导致网站访问速度变慢。修改原来的配置文件:

# http_port 222.73.86.237:80 transparent

为如下新的方式:

http_port 222.73.86.237:80 accel defaultsite=freelamp.com vhost
#cache_peer 127.0.0.1 parent 80 0 no-query originserver name=my_peer

# 添加 login=PASS,来传递 http basic authentication 的用户名和口令,否则失效。

cache_peer 127.0.0.1 parent 80 0 no-query originserver login=PASS name=my_peer
acl mypeerdomain dstdomain 222.73.86.237 .freelamp.com
http_access allow mypeerdomain
cache_peer_access my_peer allow mypeerdomain
cache_peer_access my_peer deny all

reload squid 服务后,原来的 80 端口 connection 都变成了 127.0.0.1 的 connection。网站访问速度顿时急速提升。

Dell E6400 CPU 100% 之解决方案

Dell E6400 每次开机半个小时左右,机器 CPU 就 100% ,会感觉到底部发热, 风扇高速运转。

查看软件因素,重新安装 Windows7 Enterprise 后依然如故。

根据同事的指点,安装了 Core Temp 软件,检测每个 Core 的温度,发现系统 100% CPU 时,频率都是 800MHz,而不是可以达到的最高 2800 MHz.

查看这个帖子: http://www.tech-forums.net/pc/f9/cpu-bogging-down-no-apparent-reason-vista-home-premium-208684/

叫 Dell 更换了 CPU 风扇,一切都正常了,原来 Skype 每次启动都 100% CPU 的情况也没有了。

CPU 到 100% 时,系统日志会报如下信息:

The speed of processor 0 in group 0 is being limited by system firmware. The processor has been in this reduced performance state for 71 seconds since the last report.

The speed of processor 1 in group 0 is being limited by system firmware. The processor has been in this reduced performance state for 71 seconds since the last report.

北京市公安局网监处原处长被判死缓

有关瑞星的一则新闻,病毒界的耻辱。公司的营运如果依靠外部的力量来掐断竞争对手的生存能力,其卑劣实在是人所不齿。

好在正义总算得到昭雪。难道行贿的公司不应该受到法律和道德的谴责么!

这样的公司又何其少呢?

阅读全文 »

关于 remote message logging

Unix/Linux 操作系统的远程日志写入无非是定义 loghost ,然后 enable remote message logging。

在 Solaris 10 要检查 /lib/svc/method/system-log 文件,确保没有特别的参数传送给 /usr/sbin/syslogd。

可以强制加 -T 参数实现远程 UDP 日志写入,针对局域网内的交换机之类的设备把日志写入 Unix 主机,然后用脚本检查日志文件来达到监控交换机等设备的目的。在 Brocade 光纤交换机上可以用 syslogdipshow/syslogdipadd/syslogdipremove 来修改日志服务器的 IP 地址。

RFC5424 是一个很有意思的读物。

云计算的关键概念

一篇解释云计算概念不错的文章

阅读全文 »

EMC 即将关闭 Atmos Online 云存储服务

ITWorld 报道, EMC 即将关闭上线已经一年的 Atmos Online 云计算存储。