2008年6月22日 星期日

更改圖檔名稱工具 - Tools for modifying filenames with the datetime of the images

經過一段時間的尋找與試用, 有以下的幾個選擇:




  1. Image Renaming

  2. Xnview

  3. Siren

Image Renaming

  • 優點: 可以簡單的選擇多轉換的日期格式

  • 缺點: 要安裝 .Net 2.0 Framework, 轉換檔名的速度有點慢

XnView

  • 優點: 功能強大, 連 mp3 都可以轉, 非常多樣的檔名版型組合

  • 缺點: 要花一點時間找一下轉檔名的功能表單

Siren

  • 優點: 支源音樂檔圖檔, 專門的改檔名免費工具
  • 缺點:

2008年6月19日 星期四

台東 - 海草健康輕食

關鍵字: 餐飲, 健康, 台東, 評價

特色
  • 口味相較於台東一般的餐廳較為清淡
  • 創意料理
  • 手工麵條 (海草)
  • 廚房, 內裝乾淨整齊
  • 研磨咖啡免費
  • 備嬰兒座椅

部落格

2008年6月13日 星期五

eth0 problems

Keywords: fixed IP, eth0, network config, runlevel

After B2D linux (B2D pureKGB 20080513) was installed, eth0 was not up automatically during booting up. I do not know exactly the reason causing this. However, the problem could be solved by setting the networking service manually.

bash#cd /etc/rc5.d/
bash#ln -s ../init.d/networking S16networking

2008年6月11日 星期三

Install PIL (Python Image Library) at Bluehost.com

I tried to install PIL1.1.6 at Bluehost and encoutered the following error messages:



bash#python setup.py install --prefix=$HOME
......
......
_imagingtk.c:20:16: tk.h: No such file or directory
_imagingtk.c:23: error: syntax error before '*' token
_imagingtk.c:31: error: syntax error before "Tcl_Interp"
_imagingtk.c:31: warning: no semicolon at end of struct or union
_imagingtk.c:32: warning: data definition has no type or storage class
_imagingtk.c: In function `_tkinit':
_imagingtk.c:37: error: `Tcl_Interp' undeclared (first use in this function)
_imagingtk.c:37: error: (Each undeclared identifier is reported only once
_imagingtk.c:37: error: for each function it appears in.)
_imagingtk.c:37: error: `interp' undeclared (first use in this function)
_imagingtk.c:45: error: syntax error before ')' token
_imagingtk.c:50: error: `app' undeclared (first use in this function)
_imagingtk.c:50: error: syntax error before ')' token
_imagingtk.c: At top level:
_imagingtk.c:55: warning: parameter names (without types) in function declaration
_imagingtk.c:55: error: conflicting types for 'TkImaging_Init'
_imagingtk.c:23: error: previous declaration of 'TkImaging_Init' was here
_imagingtk.c:55: error: conflicting types for 'TkImaging_Init'
_imagingtk.c:23: error: previous declaration of 'TkImaging_Init' was here
_imagingtk.c:55: warning: data definition has no type or storage class
_imagingtk.c:57: error: syntax error before '&' token
error: command 'gcc' failed with exit status 1
The problem can be corrected by not importing tkinter. Modify the program block of the file "setup.py"

try:
import _tkinter
except ImportError:
_tkinter = None

to the following

_tkinter = None

With this, PIL would not be compiled with tkinter support.

2008年3月30日 星期日

TPMath - A Scientific Library Written in Pascal

http://www.unilim.fr/pages_perso/jean.debord/tpmath/tpmath.htm

IT is a library of scientific programs written in Pascal. Available in several versions according to the compiler, it is proposed as an alternative to the famous Numerical Recipes, for which the Pascal version is no longer developed, or to the Borland Numerical Methods Toolbox which is no longer available.

2008年3月11日 星期二

A Collection of Delphi Code Libraries - Fundamentals

http://fundementals.sourceforge.net/index.html

The collection consists of:
  • Utility functions:
    String operations, Dynamic array operations, System functions and Date & Time operations.

  • Unicode functions:
    Unicode codecs and Unicode character and string functions.

  • Streams:
    Common stream implementations that includes parsing support and binary packing.

  • Datastructures:
    Commonly used data structures, including efficient array and dictionary implementations.

  • Sockets:
    UDP and TCP server and client classes. Support for asynchronous or threaded modes.

  • Mathematics:
    Units included for vectors, matrices, rational numbers and complex numbers.

2008年3月6日 星期四

A Cross-platform Packer For Executables(跨平台的執行檔壓縮工具)

在 Lazarus 網站的 FAQ 中提到,可使用 UPX 這個工具,加上移除 GNU debugger 的 symbols(使用 strip)使得 freepascal 編譯出的 windows 執行檔變小。

經測試壓縮效率比 PECompact 差一些,不過差別在於:
  • UPX 為 GPL。
  • UPX 跨平台。
  • UPX 支援許多不同平台的執行檔格式。(win32, linux, linux kernel, mac, even Playstation 1 !)
以下轉貼自原始網站 http://upx.sourceforge.net/

UPX is a versatile executable packer with the following features:

  • excellent compression ratio: typically compresses better than WinZip/zip/gzip, use UPX to decrease the size of your distribution !

  • very fast decompression: ~10 MB/sec on an ancient Pentium 133, ~200 MB/sec on an Athlon XP 2000+.

  • no memory overhead for your compressed executables because of in-place decompression.

  • safe: you can list, test and unpack your executables. Also, a checksum of both the compressed and uncompressed file is maintained internally.

  • universal: UPX can pack a number of executable formats.

  • portable: UPX is written in portable endian-neutral C++

  • extendable: because of the class layout it's very easy to add new executable formats or new compression algorithms

  • free: UPX is distributed with full source code under the GNU General Public License, and may be used freely even with commercial programs.

You probably understand now why we call UPX the "Ultimate Packer for eXecutables".

UPX is based on experience with our previous packers DJP and lzop and uses the NRV compression library.

Pascal Tutorial

http://www.taoyue.com/tutorials/pascal/
Pascal 的入門教學。