想把windows上用vmware建立的虛擬機器放到伺服器(Solaris 10 x86) 上的virtual box中,先轉換了一把。然後放到virtual box中運行,呃,跑不起來。 看到網上有人說用qemu轉raw格式,再用vboxmanage轉vdi格式:qemu-img convert -f vmdk "F:\VM\Windows Server 2003 Standard Edition (2)\Windows Server 2003 Standard Edition
在openSolaris 0906版本中系統內建了一個GNU System Monitor,這個拿來做系統效能監控很不錯。不過很可惜在Solaris 10 中並沒有內建這個東東,因此做系統效能監控,對於我這樣的菜鳥來說,也不大方便了。 先前在GNU上下載了GNU System Monitor,結果很可惜,還是沒編譯成功。 gnusystemmonitor依賴libgtop,而libgtop又依賴glib,在configure
晚上用sax解析xml,費了半天勁寫的程式一跑就報錯:SAXParseException: Content is not allowed in prolog. 上網找了半天,發現可能的原因是xml檔案被加了bom標記了.於是用editplus將xml檔案開啟,然後重新儲存為utf8無bom格式. 然後重新編譯,然後果然沒報錯了. 據說dom4j1.6解決了bom問題.不過sax呢?貌似還不行哦. 最後在補充下bom的知識:
這是最簡單的一個移植,但有幾個需要注意的地方,1. busybox 1.6版找不到mount對nfs的支援,1.4.2是支援的2.有幾個模組在編譯過程中會出錯,要去掉: Miscellaneous Utilities ---> readahead 、 taskset、Linux Module Utilities ---> Support version 2.2.x to 2.4.x Linux kernels
import reimport mechanizebr = mechanize.Browser()br.open("http://www.example.com/")# follow second link with element text matching regular expressionresponse1 = br.follow_link(text_regex=r"cheese\s*shop", nr=1)assert br.viewing_html()print br.title()