2009/12/24

國碼及名稱的問題(ISO 3116)

引用自
http://www.csie.ntu.edu.tw/~piaip/pr138672.html



其實這個國碼的問題以存在很久了,從之前反應很激烈的Redhat Linux


taiwan 掛五星旗是比較激烈抗爭的一次,但現在也沒有好很多一樣放 ISO 3116


的名稱說明.


外國人一直搞不清楚 taiwan =\\= china


但是,425+1常常用iso_3166這份iso文件來欺騙國際社會.


對於這問題freebsd提出一份國際化的原則


http://www.freebsd.org/internal/i18n.html
這有參考 ibm 的文件
http://www-01.ibm.com/software/globalization/topics/writing/references.jsp
基本上台灣、香港、澳門等國家需要應應實際的狀況來
對於iso 3166 的規範做解釋。

其實是 iso 3166  是聯合國訂定的,但是訂定的時候根本沒有加入聯合國
一切都是 425+1 說了算,現在連入聯的申請都自我放棄了,那只能說投降輸一半嗎?
http://www.libertytimes.com.tw/2009/new/aug/17/today-t1.htm

如果政府在這樣下去,會一直越來越嚴重的。現在看國外的網頁,
幾乎都已經把 taiwan == china 劃上等號. 但國外大多數的時,並不清處
taiwna 和 china 之間的歷史關係及定位。目前政府不自救,只能靠民間
的力量在各社群及組織自救。

還好台灣的 IT 產業人才算多且還算有點規模,才不至於一直被吃豆腐,

還沒有反應。但吃就了就會被強姦了!!!  到時  震怒也沒用了!!





2009/12/22

原碼3路 - Unix Like 的歷史,沒想到動新聞的作法也可以這樣用!!!!

剛剛從這裡看到的,自由軟體的簡史(也是unix的發展史),太棒了!用看得比用讀得有趣多了....
動新聞的方法作成的故事....哈哈..!!
一共有六個影片,但是排得很亂,和unix的版本一樣亂......
http://popblog.tvbs.com.tw/blog/os3ways/


序:灰燼中的珍珠-UNIX



影響世界深遠的UNIX作業系統,從失敗的Multics計畫意外誕生
Multics最後不了了之,但是在這灰燼之中
竟然還埋藏著一顆璀璨的珍珠...UNIX

mtchang:我想Multics應該是K & R 電動沒有打爽,所以才沒寫出來。這兩個可說是IT界的第一對宅男



原碼3路_2/5 : 點石成金的柏克萊-BSD (1/2)







這裡出現第2個Unix電腦界的宅男,Bill Joy 由於他的功力實在太強大了,所以
BSD 的第一版就是他寫出來的。他同時也是 TCP/IPviNFSC shell 的開發者
這篇應該是崇拜文巴!! http://www.ctuaa-sc.com/articles/art022.htm
後來他被邀請加入創立了 Sun 公司,股票上市後,賣掉股票買了法拉利.....

原碼3路_2/5 : 點石成金的柏克萊-BSD (2/2)


在那個硬體值錢,軟體不值錢的年代,UNIX得以在UC Berkeley渡過了一段歡樂時光
校園內與校園外,UNIX的原始碼到處流傳,吸引了當時許多學生與教授對『資訊』
這項『前衛』的新知識的探索與開發,在1984年之前,
在Green法官宣判AT&T再次分割之前那真的是段屬於UNIX的最美好時光...


原碼3路_3/5 : 用革命存活社群-GNU (1/2)





原碼3路_3/5 : 用革命存活社群-GNU (2/2)


除了UC Berkeley之外,MIT也自行開築了一條通往自由軟體的道路。

為了延續MIT社群開發軟體的傳統,Richard Stallman決定掀起一場軟體使用方式的革命
革命- 以『自由軟體宣言』為最高理想,重新設計一套免費的作業系統為初期目標
以自由軟體基金會(FSF)為革命基地,過程中以Copyleft對抗Copyright
以GPL對抗一切授權條約,直到遇見Linux 初期目標總算達成



Richard Stallman 真的花了很大的心力來完成這GNU的計畫
http://zh.wikipedia.org/zh-tw/理查德·斯托曼
沒有他,就沒有Linux,他如果沒有走這條路應該很早就是大富翁了!!!


原碼3路_4/5 : 最後的聖杯-Linux


經過了6年的努力,GNU計畫在北歐的芬蘭找到了最後的聖杯...Linux
在i386上普遍使用UNIX架構作業系統的夢,Richard Stallman與Linus Torvalds共同完成了...


Linus Torvalds 單純的只是因為好玩所以才寫了一個核心,只是就真的時間運氣好
搭上網際網路的順風車,及PC的發展,才得以發揚光大....
http://en.wikipedia.org/wiki/Linus_Torvalds 這也是另一個強大的宅男,
動畫配音配的更是貼切呀!!

看完之後終於了解,為何在我大學時代玩BSD的人口比Linux多,
但是後來BSD就漸漸消失了....

最後就是進入 GNU/Linux 百家爭鳴的時代了......

Linux 選擇器....很好玩的

http://www.zegeniestudios.net/ldc/

2009/12/20

Nick. and Jr. 的遊戲,適合2歲以上的小孩子玩, 有 DoRa Diego ...


Nick and JR. 是一個很有趣的站台,裡面有很多免費的遊戲及簡單的影片,但是他同時也是個商業站台,對於2歲以上的小孩很有吸引力。 但玩他的遊戲有個缺點,就是廣告還有額外的連結實在太多了,小孩子 對於滑鼠的掌控還不是很好,會造成誤點其他連結的問題。所以我就把一些東西搬到這裡,以方便讓小孩子玩。

* 建議你先調整你的螢幕解析度為 800*600 這樣玩 flash 遊戲或觀看影片可以得到比較好得效果。
* 啟動後請手動按 F11 將畫面設定為全螢幕,這個小孩操作會比較不易出錯。
* 為了避免小孩子亂按我,我已經把滑鼠右鍵鎖起來,避免發生太多的操作問題。
迷你高爾夫(MiniGolf):只需要移動滑鼠及點選滑鼠把球打進洞內即可過關,共有九關層層向上,過程還有小新星星會幫忙。
Mini-Golf

Dora Saves The Farm:這個裡面包含有三個遊戲,一個揀雞蛋滑鼠左右移動即可檢玩後會教你數數看有多少個雞蛋,一個是救出被困住的小豬,另外一個為聽動物的聲音,找出他是那個動物,點選後即可過關。

Saves The Farm

其他遊戲我會在慢慢加入...... http://jangmt.com/kid/

這是根據我的女兒的反應做出的修正....^^

正規表示式即時驗證網站

使用 http://osteele.com/tools/rework/ 此網頁提供即時的正規表示法驗證功能.






osteele.com 提供了一個只要給字串及正規表示式,就可以馬上驗證出你的正規表示法


符合了哪些字串,寫程式可以用到,用word ,編輯文書都可以用到


並且他還提供你 php , javascript 及 python 怎麼用這個 RE ,實在太棒了...!!


正規表示式有多重要:
你看看連 google 都在說....
當然鳥哥也說他很棒很重要
洪朝貴老師說的無所不在的 RE

將正規表示式以圖形的方式表達。
http://www.regexper.com/

2009/12/14

微軟的仿冒行為,plurk 提出嚴重的聲明, 那麼有錢的公司還抄的那麼明顯

今天的消息...
http://blog.plurk.com/2009/12/14/microsoft-rips-plurk/

基本上425+1的MSN聚酷 ,在開通的時候就被台灣這邊發現他門是抄襲的
http://club.msn.cn/
但是通常以為只是界面上的抄襲而已,但是經過 plurk 專業的開發人員比對程式碼後,
發現他門根本是豪不遮掩的抄襲,連變數名稱及函數名稱都沒有更動
他說是台灣plurk的網友去通風報信的,是的沒錯....基本上台灣和 425+1  還是敵對的狀態
所以通風報信也是理所當然。

基於 M$ 這麼有錢的公司,還做出這樣的行為果然真的有在地化!!!!(山寨化)
底下是節錄此聲明的部份圖片....我想不懂程式的人也應該看得懂巴!!!










其實,他也不是第一幹這檔事了...最近還有 Windows 7 USB/DVD Download Tool (WUDT) 引用 Opensource code GPL授權,但是微軟並沒有講,直到被抓包了才趕快下架。


好了!!不能再說了......

2009/12/12

哈特佛 雲豹150 Fi (噴射)

這不是敗家,是因為我的速可達買了第一批噴射引擎的SYM出的第一款,
結果狀況好沒有2年,第一年就換CPU,一堆修了又修忍了好久了
終於忍受不了就換了,以前買機車常要考量家裡的環境及他人的感受
第一次牽車十八歲太年輕老媽說不能買,二十幾歲換了一台礙於工作及環境也不能買,
到了三十幾歲,化油器的都不能出了,連重機都開放了車子也換了好幾台了
才回歸到年少時最初的夢想,但心態已經不如以忘的雀躍.
或許這就是買紅牌車的中年人很多的也是這原因巴!!! ^^





至於其他人的文章可以參考看看:
http://www.mobile01.com/topicdetail.php?f=266&t=1286335&last=16359856

-- 補充: 12/23 --
騎了一段時間,騎了快 $300km ,才加油...算起來  大約 33KM/L 這可能和載重和路況有影響
振動手把的問題,其實沒有感覺。可能我都沒有騎很快(最快不超過90KM),所以感覺不嚴重
9ML的油箱加滿一次油以目前油價可能約需要 $300 元,這樣一個月上班也才加各兩次油而已。
看起來不貴。至於後煞很少用到,幾乎都用前煞車比較多,所以後碟煞個人感覺不是很重要。


當初比較了好幾台,價格上 $71000 不算貴, KTR 同等級的也才 $70000 ,但KTR 看起來實在太
細弱了,雖然看他規格可以跑得很快,也很有馬力.也有平衡桿,可以降低振動手把的問題
但我想台灣應該沒有幾條路可以安全的跑很快巴!!(我應該不需要那樣帥氣的車)
至於野狼看起只有比較沒力,及車高有點矮(規格看起來一樣,實際比較矮),否則也是不錯的選擇。



http://buy.yahoo.com.tw/gdsale/gdsale.asp?gdid=1841014
雲豹150Fi規格表
引擎型式 :氣冷式四行程單氣缸SOHC 2V
排氣量 :149cc
缸徑x衝程 :62mmx49.5mm
壓縮比 :9.6 : 1
最高馬力 :10ps/8500rpm
最大扭力 :0.99kg-m/4500rpm
供油系統 :電子燃油噴注(符合五期環保標準)
車架形式 :鋼管搖籃式
傳動系統 :濕式多片5前速鏈傳動
輪胎(前) :90/90/18
輪胎(後) :130/90/16
前煞車 :280mm單碟配單向雙活塞卡鉗
後煞車 :220mm單碟配單向雙活塞卡鉗
法規 :五期環保法規
長寬高 :1910 x 810 x 1052 mm
軸距 :1255mm
座高 :860mm
車重 :117 kg
油缸容量 :9公升








GCompris 應用的真實案例--我的2.5歲女兒

來自於 wekey 的介紹
http://wekey.westart.tw/Wekey-wiki
GCompris簡介
GCompris是一套用於年齡介於2 -10的兒童的學習啟蒙軟體,
該軟體是以在遊戲中學習的思路開發,由許多針對不同目的而設計的小遊戲所組成,
是專為兒童所設計的教育自由軟體。這個軟體化分不同的類別(如電腦,數學,遊戲),
其功能從算數到邏輯非常廣泛。其中有很多不同的任務。兒童在這些任務的過程中能夠拓寬他的知識面,
而這軟體有許多任務都有實際用途,例如在一個雜貨店裡何如花錢等等。 該軟體界面友好,
有很多卡通的圖標,非常適合這一目標年齡階層使用。雖然這套軟件還處於發展階段,
但它目前已經包含約80個練習。
http://gcompris.net/

但是說了那麼多,都沒有人真的用在小孩上面。我就拿我的女兒作測試,我女兒剛好 2歲半
英文字看得懂滑鼠剛會用,點滑鼠的功能也才剛剛學會。透過這軟體我開啟了字母練習,
基本上第一關字母掉下來的時候
只要加漲在旁邊稍加指導,他就可以很快的找到鍵盤的位置,並且按下他。
另外一個是移動滑鼠把畫面上的霧面去除,大概連了幾十張圖片後就學會了滑鼠的移動
最後,我乾脆讓他玩滑鼠移動及點選滑鼠右鍵的連連看遊戲,沒想到....
還就真的很順利的在玩了...而且玩得比一般的老人家學電腦的程度還來的好。

2009/12/06

Google 推出新的程式語言"Go" --初體驗紀錄



The Go Programming Language








* 本來想說照著官網的說明實做一次編譯,但...有時候 .deb 的好處就是這樣,google後發現有人編好了勒!!!
GO lang 官網的說明
http://golang.org/doc/install.html
這是 http://www.atoztoa.com/ 這是他的編譯紀錄
http://www.atoztoa.com/2009/11/gccgo-debian-package.html

但,重點來了..... sf.net 上面已經邊好的 binary  code  .deb i386
http://sourceforge.net/projects/gccgo/files/

剛且作者的OS和我的一樣 ubuntu 0910 哈哈....然後就當然直接抓來...

$ wget http://downloads.sourceforge.net/project/gccgo/deb/gccgo_4.5.0-1_i386.deb?ue_mirror=nchc

* 但發現一件事,她會合原本系統的 gcc 衝突,所以要用 overwrite 參數強制安裝
$ sudo dpkg --force-overwrite -i gccgo_4.5.0-1_i386.deb

接下來寫一個簡單的 go 程式
$ vim h.go
package main

import "fmt"

func main() {
fmt.Printf("Hello, 世界\n")
}

用剛裝好得 gccgo 編譯一下
$ gccgo h.go
$ ./a.out
Hello, 世界

特色據說是針對多核心處理器進行優化
定位為用來寫系統的語言,所以..??????
我已經不寫系統很久了,那還玩.....XD

2009/12/05

Quadra 可網路對戰的俄羅斯方塊遊戲

作者 mtchang (mtchang) 看板 Little-Games
標題 [分享] Quadra 可網路對戰的俄羅斯方塊遊戲
時間 Sat Dec 5 23:01:42 2009
────────────────────────────

遊戲名稱: Quadra/決戰俄羅斯(我自己翻譯的)

遊戲類型: 益智連線類

官方網站: http://code.google.com/p/quadra/

遊戲載點: http://quadra.googlecode.com/files/quadra-1.2.0.exe

遊戲介紹: 這是一套基於傳統俄羅斯方塊的遊戲,但開發公司Ludus Design
公司將他加入了網路對戰的功能,玩家可以透過LAN(區域網路)
自己在區網內對戰,也可以透過TCP/IP到全世界找玩家對戰,
可以支援到多人的同時對戰,也可以分組對戰。
他本來是要錢的遊戲,但是作者不知道什原因消失了,然後
就把他 opensource 出來,現在放在 google code 和 sf.net
提供免費下載,他有Linux、Windows及 Mac 的版本。

最早我是在pchome發現他的,這裡還有舊版1.13版的可以下載及簡介:
http://toget.pchome.com.tw/intro/game_action/game_action_tetris/2469.html
基本上和目前 1.20 版本功能都沒變只是有重新編過程式碼,然後程式穩定度有改善。

遊戲心得: 曾經把這遊戲用在社團辦比賽,可是又不想和一般人一樣,辦
AOE 或 其他 OLG 之類的,所以找到了這套。
基本上遊戲可以是單人遊戲,那就和傳統的俄羅斯方塊一樣。

也可以和網路上的其他人對戰,好玩的地方在於和其他人的網路對戰。
網路可分成 Local(本地端自己練習用) , LAN(區網) 及 TCP/IP
遊戲如要連線要其中一個玩家開一場遊戲,其他玩家可以以連入對戰
開遊戲的條件有分數到達多少結束,還有完成幾列後結束。
遊戲可以分組對戰,只要你選擇同顏色的就會一同一組。

按 Pause/Break 就可以開始連線遊戲
上下左右及旋轉可以進入 Option 設定
視窗可以開對方的畫面,看對方的排列情況可以1~4個人都可以顯示
一邊對戰還可以一邊聊天,但只限制英文聊天....

通常我都玩分數到達後就結束遊戲,分數的累計如果一次只消掉一條
方塊的分數是最低的,越多條同時消去分數就會越高,我最多曾經一次
消掉12條(沒錯因為方塊沒有阻擋會自然落下)然後瞬間逆轉勝。
但系統不會讓你慢慢的排方塊,對戰對手消去的方塊如果是兩列以上
會透過網路傳送到你的系統,你就會變高然後增加排列的難度。
但如果你剛好有方塊也可能會是你反擊對手的機會。


攻略秘技: 目前發現在雙核心的CPU機器,跑遊戲Server會無緣由的跳掉遊戲

特殊技巧介紹:上 TCP/IP 網路,找外國人對戰你就知道特殊技巧了。

官網上的截圖


Single-player modeMulti-player modeRemote watch windows

2009/12/04

CentOS XEN 虛擬機器文字模式安裝指令 virt-install

CentOS XEN 虛擬機器文字模式安裝指令 virt-install

VIRT-INSTALL(1) Virtual Machine Installation Tools VIRT-INSTALL(1)



NAME
virt-install - provision new virtual machines

SYNOPSIS
virt-install [OPTION]...

DESCRIPTION
virt-install is a command line tool for provisioning new virtual
machines using the "libvirt" hypervisor management library. The tool
supports both text based & graphical installations, using serial
console, SDL graphics or a VNC client/server pair. The guest can be
configured with one or more virtual disks and network interfaces
plumbed through to the host.

The installation media can be held locally or remotely on NFS, HTTP,
FTP servers. In the latter case "virt-install" will fetch the minimal
files necessary to kick off the installation process, allowing the
guest to fetch the rest of the OS distribution as needed.

Given suitable command line arguments, "virt-install" is capable of
running completely unattended, with the guest ’kickstarting’ itself
too. This allows for easy automation of guest installs. A companion
tool "virt-clone(1)" is provided for cloning pre-existing guests if
their installation cannot be easily automated from pristine media.

OPTIONS
Any of the options can be omitted, in which case "virt-install" will
run interactively prompting for input as required.

-h, --help
Show the help message and exit

-n NAME, --name=NAME
Name of the new guest virtual machine instance. This must be unique
amongst all guests known to the hypervisor on this machine,
including those not currently active. To re-define an existing
guest, use the virsh(1) tool to shut it down & delete it prior to
running "virt-install". This parameter will be prompted for if
omitted on the command line.

-r MEMORY, --ram=MEMORY
Memory to allocate for guest instance in megabytes. If the
hypervisor does not have enough free memory, it is usual for it to
automatically take memory away from the host operating system to
satisfy this allocation. This parameter will be prompted for if
omitted on the command line.

-u UUID, --uuid=UUID
UUID for the guest; if none is given a random UUID will be
generated. If you specify UUID, you should use a 32-digit
hexadecimal number. UUID are intended to be unique across the
entire data center, and indeed world. Bear this in mind if manually
specifying a UUID

--vcpus=VCPUS
Number of virtual cpus to configure for the guest. Not all
hypervisors support SMP guests, in which case this argument will be
silently ignored

--check-cpu
Check that the number virtual cpus requested does not exceed
physical CPUs and warn if they do.

--cpuset=CPUSET
Set which physical cpus the guest can use. "CPUSET" is a comma
seperated list of numbers, which can also be specified in ranges.
Example:

0,2,3,5 : Use processors 0,2,3 and 5
1-3,5,6-8 : Use processors 1,2,3,5,6,7 and 8

-f DISKFILE, --file=DISKFILE
Path to the file, disk partition, or logical volume to use as the
backing store for the guest’s virtual disk. If the path does not
exist, then "--file-size" option should also be specified, allowing
the disk to be created. This parameter can be repeated multiple
times to add many disk. This parameter will be prompted for if
omitted on the command line.

-s DISKSIZE, --file-size=DISKSIZE
Size of the file to create for the guest virtual disk, if the path
given to "--file" does not already exist. The size is to be
specified in gigabytes, with fractional numbers allowed. The
storage for the file will not be pre-allocated unless the
"--nonsparse" option is also specified. This parameter will be
prompted for if omitted on the command line & a new file is to be
created.

--nonsparse
Request creation of a non-sparse file for the guest virtual disk.
The initial time taken to fully-allocate the guest virtual disk
will be usually by balanced by faster install times inside the
guest. Thus use of this optional is recommended to ensure
consistently high performance and to avoid I/O errors in the guest
should the host filesystem fill up.

--nodisks
Request a virtual machine without any local disk storage, typically
used for running ’Live CD’ images or installing to network storage
(iSCSI or NFS root). This disables all interactive prompts for
disk setup.

-m MAC, --mac=MAC
Fixed MAC address for the guest; If this parameter is omitted, or
the value "RANDOM" is specified a suitable address will be randomly
generated. For Xen virtual machines it is required that the first 3
pairs in the MAC address be the sequence ’00:16:3e’, while for QEMU
or KVM virtual machines it must be ’54:52:00’.

-b BRIDGE, --bridge=BRIDGE
Bridge device to connect the guest NIC to. This parameter is
deprecated in favour of the "--network" parameter.

-w NETWORK, --network=NETWORK
Connect the guest to the host network. The value for "NETWORK" can
take one of 3 formats:

bridge:BRIDGE
Connect to a bridge device in the host called "BRIDGE". Use
this option if the host has static networking config & the
guest requires full outbound and inbound connectivity to/from
the LAN. Also use this if live migration will be used with this
guest.

network:NAME
Connect to a virtual network in the host called "NAME". Virtual
networks can be listed, created, deleted using the "virsh"
command line tool. In an unmodified install of "libvirt" there
is usually a virtual network with a name of "default". Use a
virtual network if the host has dynamic networking (eg
NetworkManager), or using wireless. The guest will be NATed to
the LAN by whichever connection is active.

user
Connect to the LAN using SLIRP. Only use this if running a QEMU
guest as an unprivileged user. This provides a very limited
form of NAT.

If this option is omitted a single NIC will be created in the
guest. If there is a bridge device in the host with a physical
interface enslaved, that will be used for connectivity. Failing
that, the virtual network called "default" will be used. This
option can be specified multiple times to setup more than one NIC.

--vnc
Setup a virtual console in the guest and export it as a VNC server
in the host. Unless the "--vncport" parameter is also provided, the
VNC server will run on the first free port number at 5900 or above.
The actual VNC display allocated can be obtained using the
"vncdisplay" command to "virsh". If neither this, nor the "--sdl"
or "--nographics" parameters are specified, this will be prompted
for.

--vncport=VNCPORT
Request a permanent, statically assigned port number for the guest
VNC console. Use of this option is discouraged as other guests may
automatically choose to run on this port causing a clash.

--sdl
Setup a virtual console in the guest and display an SDL window in
the host to render the output. If the SDL window is closed the
guest may be unconditionally terminated.

--nographics
Disable all interactive prompts for the guest virtual console. No
graphical console will be allocated for the guest. A text based
console will always be available on the first serial port (or
equivalent paravirtualised console device).

--noautoconsole
Don’t automatically try to connect to the guest console. The
default behaviour is to launch a VNC client to display the
graphical console, or to run the "virsh" "console" command to
display the text console. Use of this parameter will disable this
behaviour.

-k KEYMAP, --keymap=KEYMAP
Request that the virtual console be configured to run with a non-
English keyboard layout.

--accelerate
When installing a QEMU guest, make use of the KVM or KQEMU kernel
acceleration capabilities if available. Use of this option is
recommended unless a guest OS is known to be incompatible with the
accelerators. The KVM accelerator is preferred over KQEMU if both
are available.

--connect=CONNECT Connect to hypervisor with URI
Connect to a non-default hypervisor. The default connection is
chosen based on the following rules:

xen If running on a host with the Xen kernel (checks against
/proc/xen)

qemu:///system
If running on a bare metal kernel as root

qemu:///session
If running on a bare metal kernel as non-root

It is only necessary to provide the "--connect" argument if this
default prioritization is incorrect, eg if wanting to use QEMU
while on a Xen kernel.

--livecd
Specify that the installation media is a live CD and thus the guest
needs to be configured to boot off the CDROM device permanently. It
may be desirable to also use the "--nodisks" flag in combination.

-v, --hvm This guest should be a fully virtualized guest
Request the use of full virtualization, if both para & full
virtualization are available on the host. This parameter may not be
available if connecting to a Xen hypervisor on a machine without
hardware virtualization support. This parameter is implied if
connecting to a QEMU based hypervisor.

-c CDROM, --cdrom=CDROM
File to use a virtual CD-ROM device for fully virtualized guests.
It can be path to an ISO image, or to a CDROM device. It can also
be a URL from which to fetch/access a minimal boot ISO image. The
URLs take the same format as described for the "--location"
argument. If this parameter is omitted then the "--location"
argument must be given to specify a location for the kernel and
initrd, or the "--pxe" argument used to install from the network.

--pxe
Use the PXE boot protocol to load the initial ramdisk and kernel
for starting the guest installation process. If this parameter is
omitted then either the "--location" or "--cdrom" arguments must be
given to specify a location for the kernel and initrd.

--os-type=OS_TYPE
Optimize the guest configuration for a type of operating system.
This will attempt to pick the most suitable ACPI & APIC settings,
optimally supported mouse drivers and generally accommodate other
operating system quirks. The valid operating system types are

linux
Linux 2.x series

windows
Microsoft Windows 9x or later

unix
Traditional UNIX BSD or SysV derivatives

other
Operating systems not in one of the 3 prior groups

--os-variant=OS_VARIANT
Further optimize the guest configuration for a specific operating
system variant. This parameter is optional. The valid variants are

linux
rhel2.1
Red Hat Enterprise Linux 2.1

rhel3
Red Hat Enterprise Linux 3

rhel4
Red Hat Enterprise Linux 4

rhel5
Red Hat Enterprise Linux 5

centos5
Cent OS 5

fedora5
Fedora Core 5

fedora6
Fedora Core 6

fedora7
Fedora 7

sles10
Suse Linux Enterprise Server 10.x

generic26
Generic Linux 2.6.x kernel

generic24
Generic Linux 2.4.x kernel

windows
winxp
Microsoft Windows XP

win2k
Microsoft Windows 2000

win2k3
Microsoft Windows 2003

vista
Microsoft Windows Vista

unix
solaris9
Sun Solaris 9

solaris10
Sun Solaris 10

freebsd6
Free BSD 6.x

openbsd4
Open BSD 4.x

other
msdos
Microsoft DOS

netware4
Novell Netware 4

netware5
Novell Netware 5

netware6
Novell Netware 6

--noapic
Override the OS type / variant to disables the APIC setting for
fully virtualized guest.

--noacpi
Override the OS type / variant to disables the ACPI setting for
fully virtualized guest.

--arch=ARCH
Request a non-native CPU architecture for the guest virtual
machine. The option is only currently available with QEMU guests,
and will not enable use of acceleration. If omitted, the host CPU
architecture will be used in the guest.

-p, --paravirt
This guest should be a paravirtualized guest. If the host supports
both para & full virtualization, and neither this parameter nor the
"--hvm" are specified, this will be prompted for interactively.

-l LOCATION, --location=LOCATION
Installation source for guest virtual machine kernel+initrd pair.
This is required for paravirtualized guests. Fully virtualized
guests must use either "--location" to specify a kernel+initrd, or
the "--cdrom" parameter to specify an ISO/CDROM image. The
"LOCATION" can take one of the following forms:

DIRECTORY
Path to a local directory containing an installable
distribution image

nfs:host:/path
An NFS server location containing an installable distribution
image

http://host/path
An HTTP server location containing an installable distribution
image

ftp://host/path
An FTP server location containing an installable distribution
image

-x EXTRA, --extra-args=EXTRA
Additional kernel command line arguments to pass to the installer
when performing a guest install from a kernel+initrd.

-d, --debug
Print debugging information to the terminal when running the
install process. The debugging information is also stored in
"$HOME/.virtinst/virt-install.log" even if this parameter is
omitted.

--wait=WAIT
Amount of time to wait (in minutes) for a VM to complete its
install. Without this option, virt-install will wait for the
console to close (not neccessarily indicating the guest has
shutdown), or in the case of --noautoconsole, simply kick off the
install and exit. Any negative value will make virt-install wait
indefinitely, a value of 0 triggers the same results as
noautoconsole. If the time limit is succeeded, virt-install simply
exits, leaving the virtual machine in its current state.

EXAMPLES
Install a paravirtualized Xen guest, 500 MB of RAM, a 5 GB of disk, and
Fedora Core 6 from a web server, in text-only mode:

# virt-install \
--paravirt \
--name demo \
--ram 500 \
--file /var/lib/xen/images/demo.img \
--file-size 6 \
--nographics \
--location http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os/

Install a QEMU guest, with a real partition, for a different
architecture using SDL graphics, using a local ISO image:

# virt-install \
--connect qemu:///system \
--name demo \
--ram 500 \
--file /dev/hdc \
--network bridge:eth1 \
--arch ppc64 \
--sdl \
--cdrom /root/boot.iso

Install a QEMU guest, with a real partition, for a different
architecture using SDL graphics, using a remote kernel and initrd pair:

# virt-install \
--connect qemu:///system \
--name demo \
--ram 500 \
--file /dev/hdc \
--network bridge:eth1 \
--arch ppc64 \
--sdl \
--location http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os/

Install a KVM guest, using LVM partition, virtual networking, booting
from the host CDROM, using VNC server/viewer

# virt-install \
--connect qemu:///system \
--name demo
--ram 500 \
--file /dev/HostVG/DemoVM \
--network network:default \
--accelerate \
--vnc \
--cdrom /dev/cdrom

Run a Live CD image under Xen fullyvirt, in diskless environment

# virt-install \
--hvm \
--name demo \
--ram 500 \
--nodisk \
--livecd \
--vnc \
--cdrom /root/fedora7live.iso

AUTHOR
Written by Daniel P. Berrange, Hugh Brock, Jeremy Katz and a team of
many other contributors. See the AUTHORS file in the source
distribution for the complete list of credits.

BUGS
Report bugs to the mailing list
"http://www.redhat.com/mailman/listinfo/et-mgmt-tools" or directly to
BugZilla "http://bugzilla.redhat.com/bugzilla/" against the "Fedora"
product, and the "python-virtinst" component.

COPYRIGHT
Copyright (C) 2006-2007 Red Hat, Inc, and various contributors. This
is free software. You may redistribute copies of it under the terms of
the GNU General Public License "http://www.gnu.org/licenses/gpl.html".
There is NO WARRANTY, to the extent permitted by law.

SEE ALSO
virsh(1), "virt-clone(1)", "virt-manager(1)", the project website
"http://virt-manager.org"

perl v5.10.0 2008-09-15 VIRT-INSTALL(1)


* 先要有各安裝的來源 ftp, http 或是 nfs 都可以,我有作一個放在這裡

* 及一個設定好的 ks.cfg ,這個 ks.cfg 檔案要配合安裝來源的路徑
# Kickstart file automatically generated by anaconda.

install
url --url http://jangmt.com/rhel54/
key --skip
lang en_US.UTF-8
network --device eth0 --bootproto dhcp
rootpw --iscrypted $1$d4HwEBk3$iMCC5SNPmY0NpG6C3mUmd1
firewall --disable --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --enforcing
timezone --utc Asia/Taipei
bootloader --location=mbr --driveorder=xvda --append="console=xvc0 rhgb quiet"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart --linux
part /boot --fstype ext3 --size=100 --ondisk=xvda
part / --fstype ext3 --size=2300 --asprimary
part swap --size=200

%packages
@admin-tools
@base
@core
@editors
@legacy-software-support
@text-internet
@base-x
@gnome-desktop
@server-cfg
@chinese-support
@graphics
@printing
@graphical-internet
kexec-tools
fipscheck
device-mapper-multipath
sgpio
emacs
xorg-x11-utils
xorg-x11-server-Xnest
bridge-utils
vnc-server
xorg-x11-server-Xnest
* virt-install 安裝系統 with kickstart:
[root@lab xen]# virt-install
--paravirt \
--name rhel54 \
--ram 500 \
--file /home/xen/rhel54.img \
--file-size 3 \
--nographics \
--location http://jangmt.com/rhel54/ \
--network bridge:xenbr0
-x ks=http://jangmt.com/rhel54/ks.cfg


* 手動啟動 xen domain U
[root@lab xen]# xm create rhel54
Using config file "./rhel54".
Started domain rhel54
[root@lab xen]# xm list
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0     1492     2 r-----    872.7
rhel54                                     3      499     1 -b----     18.3

* 文字模式登入 console 介面,會顯示目前系統的執行狀況,類似於開螢幕的動作。
[root@lab xen]# xm console rhel54

2009/12/03

GNS3是一個圖形化介面的工具軟體,用來模擬真實的複雜的CISCO網路設備。


GNS3

  • GNS3是一個圖形化網絡,模擬真實的複雜的網絡設備。為了讓他能夠完整的模擬,GNS3使用了底下的軟體共同來完成:
  1. dynamips 的核心程序,允許模擬 Cisco IOS。
  2. Dynagen 前端的dynamips文字模式,他需要 wincap 4.0 的軟體。
  3. Pemu,Cisco PIX防火牆基於QEMU的模擬器。
  • GNS3是一個很好的輔助工具,可以協助你快速的瞭解與習慣 CISCO 的網路環境。
  • 它也可以用來試驗新功能的Cisco IOS或檢查的配置需要部署以後真正的路由器。 該項目是一個開放原始碼的免費程序,可用於多種作業系統,包括Windows,Linux和MacOS X上面。



Dynamips




Dynagen




安裝及使用 GNS3

  1. Edit -> IOS image and Hypervisors -> IOS image
  2. 指定 ios 檔案和相對應的機型

使用範例-console更改

  • 將 console 的 telnet 程式更換為 putty 程式,可以得到比較好得顯示效果。(當然也可不用換)
  1. 先將 putty 程式放到 c:\putty.exe 以方便指定路徑。
  2. 點選 gns3 選單的 edit -> Preferences -> General Settings -> Terminal command: 將此欄位修改為底下內容
start c:\putty.exe -telnet %h %p



使用範例-簡單連線到網路的設定

  • 需要先新增一片網卡,虛擬網卡 Microsoft Adapter
File:Gns3_ms_loopback.jpg
  • 設定此網卡 ip 為 192.168.123.100 而他的 gateway 為 192.168.123.30 (GNS3中的路由IP)
File:Gns3_ms_loopback2.jpg
  • 拓樸圖面如下:
File:Gns3_example_intr.jpg
  • 開機畫面-IOS解壓縮到RAM中



Connected to Dynamips VM "R1" (ID 1, type c7200) - Console port

Self decompressing the image : #############################
              Restricted Rights Legend

Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.

           cisco Systems, Inc.
           170 West Tasman Drive
           San Jose, California 95134-1706



  • 處理器、記憶體及網路介面的相關資訊
Cisco Internetwork Operating System Software
IOS (tm) 7200 Software (C7200-JS-M), Version 12.3(5), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2003 by cisco Systems, Inc.
Compiled Mon 27-Oct-03 15:10 by kellythw
Image text-base: 0x60008AF4, data-base: 0x61FAE000

cisco 7206VXR (NPE400) processor (revision A) with 245760K/16384K bytes of memory.
Processor board ID 4294967295
R7000 CPU at 150MHz, Implementation 39, Rev 2.1, 256KB L2, 512KB L3 Cache
6 slot VXR midplane, Version 2.1

Last reset from power-on
Bridging software.
X.25 software, Version 3.0.0.
SuperLAT software (copyright 1990 by Meridian Technology Corp).
TN3270 Emulation software.

PCI bus mb0_mb1 has 200 bandwidth points
PCI bus mb2 has 0 bandwidth points

1 FastEthernet/IEEE 802.3 interface(s)
125K bytes of non-volatile configuration memory.

65536K bytes of ATA PCMCIA card at slot 0 (Sector size 512 bytes).
8192K bytes of Flash internal SIMM (Sector size 256K).

  • 第一次登入會提示你系統設定的對話
--- System Configuration Dialog ---

Would you like to enter the initial configuration dialog? [yes/no]: no

Press RETURN to get started!
  • 你可以不理會他,按下 no 然後 Enter 繼續
*Nov 30 13:00:43.243: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Nov 30 13:00:44.243: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
*Nov 30 13:01:05.023: %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administratively down
*Nov 30 13:01:06.023: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down
*Nov 30 13:01:12.211: %SYS-5-RESTART: System restarted --
Cisco Internetwork Operating System Software
IOS (tm) 7200 Software (C7200-JS-M), Version 12.3(5), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2003 by cisco Systems, Inc.
Compiled Mon 27-Oct-03 15:10 by kellythw
*Nov 30 13:01:12.219: %SNMP-5-COLDSTART: SNMP agent on host Router is undergoing a cold start
Router>
  • 切換到特權模式, Router> 指的是使用者exec模式,大多只是用來檢視統計資訊。
    • enable 為進入特權模式
    • disable 為離開特權模式
    • logout 為離開此管理介面

Router>enable
Router#
Router#disable
Router>logout
  • 設定連線網卡的 ip
Router>enable
Router#configure
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface fastethernet 0/0
Router(config-if)#ip address 192.168.123.30 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
*Mar  1 00:03:50.051: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Mar  1 00:03:51.051: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#^Z
Router#
*Mar  1 00:04:01.191: %SYS-5-CONFIG_I: Configured from console by console

# 本地端的 ping , 成功連結
Router#ping 192.168.123.100

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.123.100, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 4/11/28 ms
Router#
  • 使用 192.168.123.100 的 windows 的 ping 檢查
C:\Documents and Settings\mtchang>ipconfig
Windows IP Configuration
Ethernet adapter MS-loopback:

        Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 192.168.123.100
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.123.30

C:\Documents and Settings\mtchang>ping 192.168.123.30

Pinging 192.168.123.30 with 32 bytes of data:

Reply from 192.168.123.30: bytes=32 time=25ms TTL=255
Reply from 192.168.123.30: bytes=32 time=9ms TTL=255
Reply from 192.168.123.30: bytes=32 time=1ms TTL=255
Reply from 192.168.123.30: bytes=32 time=3ms TTL=255

Ping statistics for 192.168.123.30:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 1ms, Maximum = 25ms, Average = 9ms

  • 確認可以後,但是發現不能登入系統所以要設定 telnet 遠端可以登入,並且賦予 route enable 密碼。
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#enable secret 123456
  • 針對 vty(telnet) 的連入加上密碼,這樣遠端才可以登入
Router(config)#line ?
  <0-6>    First Line number
  aux      Auxiliary line
  console  Primary terminal line
  vty      Virtual terminal

Router(config)#line vty 0 ?
  <1-1869>  Last Line number
  

Router(config)#line vty 0 1186
Router(config-line)#password 654321
Router(config-line)#login
Router(config-line)#^Z
Router#
*Nov 30 13:12:59.327: %SYS-5-CONFIG_I: Configured from console by console
  • 從 192.168.123.30 機器測試,用telnet 連入機器
Xshell:\> telnet 192.168.123.30

Connecting to 192.168.123.30:23...
Connection established.
Escape character is '^@]'.


User Access Verification

Password: 654321
Router>enable
Password: 123456
Router#
  • 儲存設定檔
Router#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router#





2009/12/02

Pre-SP4 for english (其實中英文及各國語言都可以)

Windows Offline Update

http://download.wsusoffline.net/
or
http://michaelboman.org/wiki/index.php?title=CTUpdate
兩個都很像,但不知道是誰抄誰的.....

M$ 系列的離線更新下載程式 update , 現在連 windows 7 都支援了

WSUS Offline Update 跟 Windows Updates Downloader 很像,
更新就可以直接更新到當時抓的最新的在本機執行.不用一定要上網才可以更新

中文建議可以用 threesecond 的更新批次檔,這個比較簡單,上面那套做得太複雜了
http://www.threesecond.info/v2/modules/xhnewbb/viewtopic.php?topic_id=1416&post_id=5661

2009/11/26

測試 ostube flash 不公開嵌入的方式

改完後會產生嵌入連結,雖然檔案是不公開可以嵌入連結可以允許外部引用!!







他有透過 php and javascript 的方式轉換 src 影片來源,所以 javascript 要開!!

然後程式碼要改一點點!!!才可以在不公開的模式下有嵌入的功能。

2009/11/21

星光大道-陳以恩_阿媽的白頭鬃

平時幾乎很少看電視,有再看則是陪小孩看yoyo 或momo ,
剛好小孩在專心別的轉到, 陳以恩,吳蓓雅 兩個人的合唱,
很直覺得真的很好聽,很少會把一首歌聽完的.....
後來會到it人的本質,上網找到底下的內容



聽了幾個版本,這個版本效果最好最有畫面及感覺
其他單純的mp3播放,感覺沒有很強烈的好...
但就在星光大道的表演看來,真的是好極了....
這少說前十強,應該可以確定了.....至少我是這樣想....

陳以恩
http://tw.beta.streetvoice.com/music/annechang1204/song/85809/

後來又聽到一首

江蕙-阿公的眠床脚,也是太棒了..難怪評審陳子鴻 直接邀歌,因為這歌如果給對得演唱人來唱會更動人

最近當紅 Chromium OS 初體驗--可以用自己的google帳號登入

Google  Chromium(Chrome的開放原始碼版本) OS image 影像檔下載,我是從這裡找到的是
VMWare-image 影像檔案,這個網站提供了兩個版本的下載,但是其中 .vdi 的無法開啟
所以我是用 virtualbox + vmdk 的影像檔測試的
 http://discuss.gdgt.com/google/chrome-os/general/Download-Chrome-OS-VMWare-image/

本站分流 .vmdk 格式檔案下載

本來是想從 source 自己編譯一個來玩玩看,這個精簡版的作業系統
但功力不足搞了 20 min 就放棄了,一堆東西要裝得,以後有空再來玩
目前 chromium OS 已經和已經和 chromium 放一起了
http://sites.google.com/a/chromium.org/dev/chromium-os
而這裡告訴你,如何使用各種不同的Linux版本來編譯這個OS成為vmware的影像檔
http://sites.google.com/a/chromium.org/dev/chromium-os/building-chromium-os

下載完建議使用 VirtualBox這套軟體虛擬機器來測試,因為在Windows的效能表現上
VirtualBox比 Vmware 來的號(至少免費版本是這樣),且VirtualBox兩者格式都通吃

VirtualBOX請一下列方式設定(可以參考這裡mac版)





512MB RAM救夠了


把硬碟指定為 此影像檔 



網路請設定類似的模式,橋接模式


請設定硬碟開機


用你的google account登入即可


看youtube 也可以啦



如果你還不知道 Google Chrome OS 是啥東西,請先看一下影片的介紹.....
Google 的動畫簡介 Google Chrome(英文)


其他影片有興趣可以看看(from http://www.chromium.org/chromium-os )


2009/11/17

使用 xshell 的終端機登入 switch


一般通常使用 windows 內建的超級終端機服務,來做支援 rs232 的登入
但還是要再介紹 xshell ,他除了是一個 ssh client 也是一個 telnet client
同時也是一個很棒的 終端機 client, 設定也很簡單,打開後新增加一個設定檔


這裡以 3com 4400 這台 switch 為範例
protocol 選擇 serial


然後點選 serial
確定設定為
 port:com1
Baud Rate: 9600
Data Bits: 8
Stop Bits: 1
Parity: None

然後按一下 Enter 就可以出現連線的畫面了
輸入你的帳號密碼就可以登入系統了

但目前因為大多機器都提供 web 介面後,rs232 的功能就較少被使用了

另外還有一個問題就是,目前的NB大多沒有提供 RS-232 的 port 了,取代的是
USB 轉 RS-232 的設備,他適用模擬的方式模擬出虛擬的 com port
大多數的使用者都會發生找不到驅動程式的問題,
可以從下面的網站多試試看幾個,就應該能找到

2009/11/10

ostube 2.6 中文化後上傳過程中產生分類錯誤的問題

前陣子裝 ostube 2.6 中文化後發現上傳過程中產生分類錯誤的問題
因為在一般的中文化只修改 *.ini 的檔案及 setting.php 的設定檔
可參考: http://163.17.156.130/moodle/mod/book/view.php?id=2243&chapterid=702
但在裡面都沒有說道,其中上傳文件的部分,只要把語系改成 zh_TW 後,分類選單就不會跑出來
這時其實是因為在資料庫裡面沒有這些語系的資料,只要把資料庫重新匯入即可
底下為我增加好的資料庫檔案,把原有的 ost_categories2language 的資料刪除後
再用底下的 sql 新增即可。

-- phpMyAdmin SQL Dump
-- version 3.2.0.1
-- http://www.phpmyadmin.net
--
-- 主機: localhost
-- 建立日期: Nov 10, 2009, 10:44 AM
-- 伺服器版本: 5.0.51
-- PHP 版本: 5.2.6-1+lenny3

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

--
-- 資料庫: `ostube`
--

-- --------------------------------------------------------

--
-- 資料表格式: `ost_categories2language`
--

CREATE TABLE IF NOT EXISTS `ost_categories2language` (
`id` int(11) NOT NULL auto_increment,
`category_id` int(11) NOT NULL,
`category_name` varchar(40) NOT NULL,
`category_desc` text,
`category_language` varchar(40) NOT NULL default 'german',
PRIMARY KEY (`id`),
KEY `category_id` (`category_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=25 ;

--
-- 列出以下資料庫的數據: `ost_categories2language`
--

INSERT INTO `ost_categories2language` (`id`, `category_id`, `category_name`, `category_desc`, `category_language`) VALUES
(1, 1, 'Animation', NULL, 'german'),
(2, 2, 'Crazy', NULL, 'german'),
(3, 3, 'Veranstaltungen', NULL, 'german'),
(4, 4, 'Filme', NULL, 'german'),
(5, 5, 'Lernen', NULL, 'german'),
(6, 6, 'Mode', NULL, 'german'),
(7, 7, 'Neues', NULL, 'german'),
(8, 8, 'Reise', NULL, 'german'),
(9, 9, 'Sport', NULL, 'german'),
(10, 10, 'Tiere', NULL, 'german'),
(11, 11, 'Unterhaltung', NULL, 'german'),
(12, 12, 'Wissenschaft', NULL, 'german'),
(13, 1, 'Animation', NULL, 'english'),
(14, 2, 'Crazy', NULL, 'english'),
(15, 3, 'Events', NULL, 'english'),
(16, 4, 'Movies', NULL, 'english'),
(17, 5, 'Education', NULL, 'english'),
(18, 6, 'Fashion', NULL, 'english'),
(19, 7, 'News', NULL, 'english'),
(20, 8, 'Travel', NULL, 'english'),
(21, 9, 'Sports', NULL, 'english'),
(22, 10, 'Animals', NULL, 'english'),
(23, 11, 'Fun', NULL, 'english'),
(24, 12, 'Science', NULL, 'english'),
(25, 1, 'Animation', NULL, 'zh_TW'),
(26, 2, 'Crazy', NULL, 'zh_TW'),
(27, 3, 'Events', NULL, 'zh_TW'),
(28, 4, 'Movies', NULL, 'zh_TW'),
(29, 5, 'Education', NULL, 'zh_TW'),
(30, 6, 'Fashion', NULL, 'zh_TW'),
(31, 7, 'News', NULL, 'zh_TW'),
(32, 8, 'Travel', NULL, 'zh_TW'),
(33, 9, 'Sports', NULL, 'zh_TW'),
(34, 10, 'Animals', NULL, 'zh_TW'),
(35, 11, 'Fun', NULL, 'zh_TW'),
(36, 12, 'Science', NULL, 'zh_TW');



如果真的不會用的話,那就手工增加也可以!!