發表文章

目前顯示的是 七月, 2010的文章

HTML5 Rocks

最近在學Web Design,雖然還很不熟,不過至少HTML+CSS+JavaScript會用了XD 剛看了一下HTML5的介紹,真是另人震驚啊 這個Slide: HTML5 Presentation 本身就是用Ajax寫的,不管是看起來或是用起來,都像桌面應用程式一般。 HTML5 ~= HTML + CSS + JS APIs 個人覺得那些CSS實在太扯了,連webgl都出現了,而且只要幾行code就可以做出漂亮的效果。如果是寫桌面應用程式的話,這樣的效果可能要多寫很多code,郊果還不一定有CSS好呢! 覺得HTML5實在是太方便了,不過都是把麻煩的工作丟給瀏覽器,所以Web Designer可以很輕鬆的寫出漂亮的網頁。 現在Web UI這麼發達,難怪連Nessus的操作介面都改用網頁來控制了。

Fixing Live CD boot error: Ext3fs unsupported optional features: (240)

Scenario: Live CD boot without problem in qemu, but boot failed in a real machine with ext4 filesystem in local hard drive. The boot failed because of the following error: Ext3fs: sdaX: unsupported optional features: (240) root filesystem is not mounted and the boot sequence either fell into an infinite loop displaying the error or into busybox. Explaination I first encountered this error years ago in clonezilla Live CD, as I choose a new version of the Live CD image, the problem was gone. This time, I encountered this error again with BackTrack 4 Live CD Image. However, BackTrack Linux doesn't have a release roadmap and even if it does, the problem is not likely to be fixed since there is a workaround for it. As I insists in keeping my live usb layout neat, I decided to fix it myself.

Enable iso-scan in BackTrace 4 Live CD Image

* Update * There is a more elegent way to fix this problem: Since the command mkiniramfs-script copies required file from the system, we just need to find the package that contains '20iso_scan', 'lupin-helpers'. Using the command 'dpkg -S', we can find that these to files belongs to the package: lupin-casper. After chroot into the livecd environment: aptitude install lupin-casper update-initramfs -u exit and copy the initrd.gz to the usb, the iso-scan is enabled!

py2exe Icon in Vista/7

因為Vista/7支援高解析度256x256的icon,所以要讓生成的exe可以同時在XP/Vista/7上顯示正確,就要同時包進256x256, 64x64的Icon。如下面紅色的那行。順序很重要256x256一定要在1, 64x64一定要在0,我試過只有這樣才會顯示正確。 # setup.py from distutils.core import setup import py2exe setup(     name = "NAME",     description = "DESCRIPTION",     version = "VERSION",     windows = [         {             "script": "NAME.py",    # In order to show icon in Vista/7 the first icon resources must    # be (1, "256x256_ico")              "icon_resources": [(1, "256x256_ico"), (0, "64x64_ico")]         }     ],     data_files=[] )

manpages-cpp

C++ Manual pages for GNU/Linux 詳細請看 這裡