Posted by Shu on August 11, 2010
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 [...]
Posted by Shu on July 30, 2010
Photos were taken last week when the sky was usually clear and blue in Shanghai.
Posted by Shu on July 27, 2010
为了那座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.
Posted by Shu on April 29, 2010
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.
Posted by Shu on February 2, 2010
使用了WPTouch插件,现在meshwalk.com的WordPress可以检测iPhone/Andriod客户端并呈现移动版本。这个插件还支持插入Google Adsense for Mobile从而很好地支持移动广告。想要变得对移动用户更为友好的站长可以考虑安装。 下面是iPhone访问本站的几个截屏: