2009年7月11日

Get IP address range allocated to Hong Kong

wget -q -O- http://ftp.apnic.net/stats/apnic/delegated-apnic-latest | grep '^apnic|HK|ipv4' |awk -F\| '/^apnic|HK|ipv4/ {print $4 "/" log($5)/log(2)}'| less

ref:
How to retrieve the IPv4 address ranges allocated to Hong Kong? | [狗爺語錄]
IPv4位址統計表

2009年7月10日

OpenDocument Converter - doc2odt odt2doc

Convert file format from Microsoft Office to OpenDocument, and viceversa

JODConverter: Java OpenDocument Converter

PyODConverter: Python OpenDocument Converter
$ /opt/openoffice.org2.2/program/python DocumentConverter.py test.odt test.pdf

2009年7月9日

Kill in Windows XP: Tskill and Taskkill

Managing Windows XP Programs from the Command Line: Taskkill and Tskill
Sometimes it is desirable to end a program or a process from the command line. The process may be hung or not responding or it may be desirable to have a script for ending it. Both the Home and Professional version of Windows XP come with the tool Tskill . In addition, XP Professional has the more powerful tool Taskkill. Although the graphical utility Task Manager can be used to terminate programs that are hung up, the command line can be faster and easier to use. Also, there may be situations where it is convenient to have a batch file that can be run as a script. In addition, Taskkill is capable of sophisticated filters