2010年2月7日 星期日

果斷管教法

L.Canter & M.Canter
果斷管教法(Assertive discipline)
  • 教師在教室裡,必須有相當大的影響力
  • 有決斷能力的老師,才是具有影響力老師
  • 老師在教室裡所表現的決斷力,是可以培養的

2010年1月30日 星期六

XBMC-中文 osx

在我的PB下試用XBMC
中文解決
將字形複製到application\XBMC\Contents\Resources\XBMC\media\Fonts下\
並更名為arial.ttf
執行XBMC
SYSTEM
外觀\桌面字形 改成arial
Interial 內 語言改成Chinese(Traditional)
Characcter Set 改成符Chinese Traditional (Big5)

2009年11月16日 星期一

在OSX下製作USB image備份

I recently downloaded an Ubuntu image for netbooks, and I needed to install this onto a USB flash drive so I could boot it. This is pretty simple with OS X and Disk Utility and dd from the command line. Be sure your flash drive is large enough to hold the disk image.
* Plug the flash drive into a USB port and launch Disk Utility.
* Select the flash drive and press apple+i to bring up the info
* remember the device id, it will be diskN where N is a number, such as disk4
* select the volume (not the device) and click unmount.
* open a terminal window, and type:
sudo dd if=/path/to/file.img of=/dev/disk4 bs=1024Be sure to use your path to the image file, and the device id you got from disk utility in place of "disk4". You can drag the .img file into the terminal window if you don't want to type the full path to it.
Now wait a bit for the image to be written. When its done you will get something similar to this:969568+0 records in
969568+0 records out
992837632 bytes transferred in 521.666371 secs (1903204 bytes/sec)

2009年8月21日 星期五

把酒問月 李白

青天有月來幾時?我今停盃一問之。
 人攀明月不可得,月行卻與人相隨。
 皎如飛鏡臨丹闕,綠煙滅盡清暉發。
 但見宵從海上來,寧知曉向雲間沒。
 白兔擣藥秋復春,姮娥孤棲與誰鄰?
 今人不見古時月,今月曾經照古人。
 古人今人若流水,共看明月皆如此。
 唯願當歌對酒時,月光長照今罇裏。

2009年3月29日 星期日

mysql亂碼

mysql_query("SET NAMES 'UTF8'",$dataname);
加在你連線字串檔的最後一行即可。