Convert a RPM package to tarball

This might be a weired use case, but sometime one may want to extract all contents from an RPM and neatly put into a tarball. If you are still reading, here comes the shell script to do the task. #!/bin/sh EXEC=”=== “`basename $0` PWD=`pwd` RPMFILE=`readlink -f $1` if [ -z "$2" ]; then TGZFILE=$PWD/`basename $1 [...]

Wrapping up the week with snapshots (from last week) around Radisys CDC office in Zhangjiang, Shanghai

Photos were taken last week when the sky was usually clear and blue in Shanghai.

用Windows 7做WiFi AP, 共享VPN路由,造福WiFi移动设备

为了那座You know what的墙,我购买的是基于OpenVPN的方案,在PC上是相当的方便,也比较可靠。但是一直对移动设备如何使用VPN感到为难,因为不管是iPhone还是Android对OpenVPN的支持都很糟糕,更别提S60了。路由器刷OpenWRT又颇为麻烦,对硬件要求严格,耗不起时间钻研。如今将Windows 7变为Wifi AP,直接共享OpenVPN的TAP适配器,移动设备只要能用WiFi就畅通无阻了。 方法见下面的链接:Bink.nu | COOL: Windows 7 as an WiFi AccessPoint updated – Bink.nu.

How To Extract files from an RPM Package Without Installing It

Extract RPM file using rpm2cpio and cpio command: $ rpm2cpio php-5.1.4-1.esp1.x86_64.rpm | cpio -idmv via How To Extract an RPM Package Without Installing It rpm extract command.

用iPhone/Android访问移动版的meshwalk.com

使用了WPTouch插件,现在meshwalk.com的WordPress可以检测iPhone/Andriod客户端并呈现移动版本。这个插件还支持插入Google Adsense for Mobile从而很好地支持移动广告。想要变得对移动用户更为友好的站长可以考虑安装。 下面是iPhone访问本站的几个截屏: