2011年4月8日 星期五

Linux Kernel Compile


. Update to the latest package information
  #apt-get update
  #apt-get upgrade

. Install the related packages for kernel compile
  #apt-get install debhelper module-init-tools kernel-package 
   libncurses5-dev libncurses5 build-essential bin86 fakeroot
. Download the Kernel-Sources from the below site and put 
  them under the path /usr/src :
  http://security.ubuntu.com/ubuntu/pool/main/l/linux/
  (1) linux_2.6.35.orig.tar.gz
  (2) linux_2.6.35-22.33.diff.gz (Patch for kernel 2.6.35)

. Unzip the kernel file :
  # cd /usr/src; tar zxvf linux_2.6.35.orig.tar.gz
  # cd linux-2.6.35/

. Patch the latest patch file
  # zcat ../linux_2.6.35-22.33.diff.gz | patch -p1
. # cp -vi /boot/config-`uname -r` .config
. # make menuconfig












. Under kernel compile interface :
  Press<Y>includes<N>excludes<M>modularizes features
  Press<ESC><ESC>to exitLegend : [*]built-in [ ]excluded
  <M>module <> module capable
. Clean up the kernel
  # make-kpkg clean
. Start to compile the kernelthe more items selectedthe more
  time will be takenalso depends on the system speed
  # fakeroot make-kpkg --initrd --revision=xxxxx kernel_image
     kernel_headers
After compile is donethere are two files produced in /usr/src :
  linux-headers-2.6.35.4_xxxxx_i386.deb
  linux-image-2.6.35.4_xxxxx_i386.deb

. Install the just compiled kernel files :
# cd /usr/src
# dpkg -i linux-headers-2.6.35.4_xxxxx_i386.deb
# dpkg -i linux-image-2.6.35.4_xxxxx_i386.deb 

. Install the initial RAM Disk
  # mkinitramfs -v -o /boot/initrd-2.6.35.4 2.6.35.4

. Check the kernel file and initial Ram Disk file have been located
  in path /boot.
  # ls -al /boot/vmlinuz-2.6.35.4
  # ls -al /boot/initrd-2.6.35.4

. If you use this Ubuntu's grub as bootloader,the menu.lst should be
  updated automatically,change path to /boot/grub,check the
  content of menu.lst,if no problem,then can use the new kernel to
  boot
  # cd /boot/grub
  # vim ./menu.lst

. Before executing the below command :
  # apt-get purge linux-headers-2.6.32-25
  # apt-get purge linux-headers-2.6.32-25-generic
  # apt-get autoremove











. After executing the below command :
  # apt-get purge linux-headers-2.6.32-25
  # apt-get purge linux-headers-2.6.32-25-generic
  # apt-get autoremove












. Before executing the below command :
  # apt-get purge linux-image-2.6.32-25-generic
  # apt-get autoremove










. After executing the below command :
  # apt-get purge linux-image-2.6.32-25-generic
  # apt-get autoremove










. Before executing the below command :
  # apt-get purge linux-image-2.6.32-25-generic
  # apt-get autoremove











. After executing the below command :
  # apt-get purge linux-image-2.6.32-25-generic
  # apt-get autoremove











The related PowerPoint file will be downloaded from the below
address : 
Linux Kernel Compile  

2011年1月28日 星期五

Customize Ubuntu Desktop Live CD

Linux refers to the family of Unix-like computer operating systems using the Linux kernel。 Linux can be installed on a wide variety of computer hardware,ranging from mobile phones, tablet computers and video game consoles,to mainframes and supercomputers。Linux is a leading server operating system,and runs the 10 fastest supercomputers in the world。

Ubuntu is a computer operating system based on the Debian GNU/Linux distribution and distributed as free and open source software。It is named after the Southern African philosophy of Ubuntu ("humanity towards others")。

With an estimated global usage of more than 12 million users,Ubuntu is designed primarily for desktop use,although netbook and server editions exist as well。Web statistics suggest that Ubuntu's share of Linux desktop usage is about 50%,and indicate upward trending usage as a web server。

Ubuntu is sponsored by the UK-based company Canonical Ltd.,owned by South African entrepreneur Mark Shuttleworth。Canonical generates revenue by selling technical support and services tied to Ubuntu,while the OS itself is entirely free of charge。

Linux is one OS which has the easy way to customize it by yourself,and no any extra fee is needed,Ubuntu is a rising star in the mainstream Linux market in these years,the below methodology describes the steps how to customize the Ubuntu Desktop Live CD easily。
    .Install the tool for creating squashfs filesystem.
        $ sudo apt-get install squashfs-tools

    .Mount the ISO file under /tmp/livecd
        $ mkdir /tmp/livecd
        $ sudo mount -o loop ~/Desktop/ubuntu-10.04.1-desktop-i386.iso
          /tmp/livecd

    .Create a directory containing the future CD image named ”cd” 
        in working directory named ”~/livecd”and copy all the CD 
        content but exclude casper/filesystem.squashfs in ~/livecd/cd 
        directory.
        $ mkdir ~/livecd
        $ mkdir ~/livecd/cd
        $ rsync --exclude=/casper/filesystem.squashfs -a /tmp/livecd
          ~/livecd/cd

    Mount casper/filesystem.squashfs onto a directory named 
       ~/livecd/squashfs in order to copy its content in a directory 
       where we are going to edit live CD filesystem : ~/livecd/custom
        $ mkdir ~/livecd/squashfs
        $ mkdir ~/livecd/custom
        $ sudo modprobe squashfs
        $ sudo mount -t squashfs -o loop /tmp/livecd/casper/
           filesystem.squashfs ~/livecd/squashfs/
        $ sudo cp -a ~/livecd/squashfs/* ~/livecd/custom

    Copy /etc/resolve.conf /etc/hosts /etc/wgetrc to ~/livecd 
        /custom/etc and copy /etc/apt/apt.conf to ~/livecd/custom
        /etc/apt/ so we can access network from within the image 
        we are going to customize through.
        chroot :
        $ sudo cp /etc/resolve.conf /etc/hosts ~/livecd/custom/etc
        $ sudo cp /etc/apt/apt.conf ~/livecd/custom/etc/apt/
        $ sudo cp /etc/wgetrc ~/livecd/custom/etc/

    For customize the imagechroot into ~/livecd/custom 
        directorymount some necessary pseudo-filesystem (/proc 
        and /sys)From therewe will be able to customize our Live 
        CD.
        $ sudo chroot ~/livecd/custom
        # mount -t proc none /proc/
        # mount -t sysfs none /sys/
        # export HOME=/root

    Install text editor ”vim”
        # apt-get install vim

    Custom Background for GNOME
        Put a picture (DSC03920.JPG) which used for customized
        background in below path :

        /usr/share/backgrounds

        Add the below section in the file ”/usr/share/gnome-
        background-properties/ubuntu-wallpapers.xml”
        
        <wallpaper>
        <name>DSC03920</name>
        <filename>/usr/share/backgrounds/DSC03920.JPG</filename>
        <options>zoom</options>
        <pcolor>#091d5c</pcolor>
        <scolor>#091d5c</scolor>
        <shade_type>solid</shade_type>
        </wallpaper>

        Modify the file ”/usr/share/gconf/defaults/16_ubuntu-wallpapers”
        to point to the path of customized filesomething like this :
        /desktop/gnome/background/picture_filename "/usr/share
        /backgrounds/DSC03920.JPG”
        /desktop/gnome/background/picture_options "zoom”
        /desktop/gnome/background/color_shading_type "solid"
        /desktop/gnome/background/primary_color "#091d5c”
        /desktop/gnome/background/secondary_color "#091d5c”
       
        Search the section ”background” in the file ”/var/lib/gconf/
        debian.defaults/%gconf-tree.xml” and modify it for the
        corresponding value,something like this :
          
        <dir name="background">
        <entry name="picture_options" mtime="1281952284" type="string">
        <stringvalue>zoom</stringvalue>
        </entry>
        <entry name="picture_filename" mtime="1281952284"
        type="string">
        <stringvalue>/usr/share/backgrounds/DSC03920.JPG
        </stringvalue>
        </entry>
        <entry name="color_shading_type" mtime="1281952284"
        type="string"> 
        <stringvalue>solid</stringvalue>
        </entry>
        <entry name="secondary_color" mtime="1281952284" 
        type="string">
        <stringvalue>#091d5c</stringvalue>
        </entry>
        <entry name="primary_color" mtime="1281952284"
        type="string">
        <stringvalue>#091d5c</stringvalue>
        </entry>
        </dir>

     .We will remove gnome-gamesnon-english language 
         packagesand openoffice.org-math
         # apt-get remove --purge gnome-games*
         # apt-get remove –purge gbrainy
         Modify the file ”/var/lib/locales/supported.d/local” as
         en_US.UTF-8 UTF-8
         Modify the file ”/etc/default/locale” as LANG="en_US.UTF-8"
         LANGUAGE="en_US:en"
         # apt-get remove --purge `dpkg-query -W --showformat=
         '${Package}\n' | grep language-pack | egrep -v '\-en'`
       
         To check all the installed packages, executing the below
         commands :
         # dpkg-query -W --showformat='${Package}\n' | less or
         # dpkg-query -W --showformat='${Package}
         ${Version}\t${Maintainer}\n'
         Remove openoffice.org-math package :
         # apt-get remove –purge openoffice.org-math

    Open and edit the file /etc/apt/sources.list, and make it look 
        like :
        # vim /etc/apt/sources.list
        deb http://archive.ubuntu.com/ubuntu lucid main restricted
        universe multiverse
        deb-src http://archive.ubuntu.com/ubuntu lucid main restricted
        universe multiverse
        deb http://archive.ubuntu.com/ubuntu lucid-updates main
        restricted universe multiverse
        deb-src http://archive.ubuntu.com/ubuntu lucid-updates main
        restricted universe multiverse
        deb http://security.ubuntu.com/ubuntu lucid-security main
        restricted universe multiverse
        deb-src http://security.ubuntu.com/ubuntu lucid-security main
        restricted universe multiverse

    Update the image :
        # apt-get update
        # apt-get dist-upgrade

    Install all the multimedia packages we may need :
        # apt-get install gstreamer0.10-ffmpeg gstreamer0.10-plugins-ugly
        gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-plugins-bad
        gstreamer0.10-plugins-bad-multiverse vlc mplayer mplayer-fonts
        # cd /usr/share/doc/libdvdread4/
        # ./install-css.sh

    Download ”libdvdcss2_1.2.10-0.2medibuntu1_i386.deb” from
        http://packages.medibuntu.org/pool/free/libd/libdvdcss/ and 
        put it under the path /usr/share/doc/libdvdread4, install it as 
        command :
        # dpkg -i libdvdcss2_1.2.10-0.2medibuntu1_i386.deb

    Install RealPlayer
        Download ”RealPlayer11GOLD.deb” from http://www.real.com/
        realplayer/linux and put it under the path /tmpinstall it as
        command :
        # dpkg -i RealPlayer11GOLD.deb

    Install some useful utilities
        # apt-get install rar unrar unace-nonfree

    Install some wireless network utilities
        # apt-get install ndiswrapper-common ndiswrapper-utils-1.9
        cabextract unshield kismet aircrack-ng

    Install some network utilities
        # apt-get install wireshark nmap ettercap traceroute

    Install some flash plugin and firefox plugin
        # apt-get install flashplugin-nonfree flashplugin-installer mozilla
        -plugin-vlc swfdec-mozilla mozilla-plugin-gnash

    Clean the download cache files and remove unnecessary files
        # apt-get clean
        # rm -rf /tmp/*
        # rm -f /etc/hosts /etc/resolv.conf
        # umount /proc/
        # umount /sys/
        # exit

    Make the new manifest file
        $ chmod +w ~/livecd/cd/casper/filesystem.manifest
        $ sudo chroot ~/livecd/custom dpkg-query -W
        -showformat='${Package}${Version}\n' > ~/livecd/cd/casper/
        filesystem.manifest
        $ sudo cp ~/livecd/cd/casper/filesystem.manifest ~/livecd
        /cd/casper/filesystem.manifest-desktop

    Make the new squash file system
        $ sudo mksquashfs ~/livecd/custom ~/livecd/cd/casper/
        filesystem.squashfs

    Customize the file ”~/livecd/cd/README.diskdefines”
        $ vim ~/livecd/cd/README.diskdefines

    Update the file ”~/livecd/cd/md5sum.txt”
        $ sudo rm ~/livecd/cd/md5sum.txt
        $ sudo -s
        # cd ~/livecd/cd && find . -type f -print0 | xargs -0 md5sum
        > md5sum.txt

    Make the CD ISO file
        $ cd ~/livecd/cd
        $ sudo mkisofs -r -V "Ubuntu-Live-Custom" -b isolinux/isolinux.bin
        -c isolinux/boot.cat -cache-inodes -J -l -no-emul-boot -boot
        -load-size 4 -boot-info-table -o ~/Desktop/Ubuntu-Live-10.04
        -custom_R.iso .

    Use Virtualbox to open the ISO fileif no problem, just can 
        burn it as a CD

    The related PowerPoint file will be downloaded from the below
    address :
    Customize Ubuntu Desktop Live CD

    2010年11月29日 星期一

    當愛來的時候---在成長的淬鍊裡領略愛的真諦


    很久沒有看導演張作驥的電影,上禮拜看了他的新作當愛來的時候,覺得這還是一部令人感動的佳片,真摯懇切,令人回味無窮,是有著他一貫的風格。記得第一次看到張作驥導演的電影,是在有線電視的電影台裡看到他執導的黑暗之光,當時只知道這是一部得獎的影片,這部電影裡的人是社會中較容易被忽略的一群人,有殘疾的盲人,有混跡黑道的青年,還有一個愛作夢的少女,當時覺得導演對社會有敏銳的觀察力,雖然這樣的主題在商業電影的市場裡並不討好,不過片中人文關懷的精神不減,且整部影片樸實不矯作反而令人動容。

    過了好幾年之後,才等到張導的美麗時光上映,並沒有來得及到戲院去看,印象中是租DVD回家看的,當時片中的主角范植偉已小有名氣,並得到法國南特影展的影帝,想必演技應是非常傑出,更覺得這部片非看不可。我對美麗時光的印象,是整片瀰漫著一股陽剛的氣息,有一些劇情橋段還有一點血腥暴力,在主題上除了歌頌男性情誼之外,對年輕人在面對現實世界所產生的茫然無助,最後誤入黑道歧途,也有著深刻描寫。

    這一兩年感覺張作驥導演好像有一點沉潛下來,兩部作品蝴蝶爸,你好嗎,雖然有一定的口碑,但票房似乎就沒那麼好,有一點叫好不叫座。前一陣子在電視新聞看到今年金馬獎入圍名單公佈,新作"當愛來的時候"獲得14項提名,這是破了金馬獎的歷史記錄,看來張導演蓄積已久的能量又再度爆發,並獲得不錯的迴響。

    來春(李亦捷 飾)是一個荳蔻年華的少女,成長在一個家中開海產快炒店的大家庭,自己的親生母親是父親的二房,她一直覺得母親在家中沒有地位,自己也一直得不到家人的關愛,直到母親肚子裡懷著一個男孩,家裡多了一個來自家鄉金門而有自閉症的叔叔(高盟傑 飾),而自己渴望被愛卻一直得不到愛的內心世界,只好如飛蛾撲火般的衝向愛情,無意間的懷孕,男友的背叛,整個家人之間的關係在此時似乎出現了變化。來春從剛開始的驕縱,忿怒,失望,到之後的面對這一切,感恩,珍惜,也理解了家人對她的愛,勇敢的生下小孩,這一切的過程就是對真愛的領悟,也是這部電影"當愛來的時候"要傳達的意旨。

    這部電影有幾場戲是我很喜歡的(純粹個人偏好),范植偉在片中應該算是客串性質,他在影片開始大概兩分鐘左右出場,走進快炒店用餐,坐上了一張靠走道的圓形餐桌,這個大家庭的阿公告誡他不要坐那裡,根據過往經驗,坐在那裡用餐的人,之後都容易出意外,這時來春也靠近過來跟他攀談閒聊,也同時告知他這個訊息,不過他並不信邪的繼續用餐,用完餐後走出餐廳果然被一輛急駛的轎車撞倒在路中央。到了影片結尾的時候,快炒店依舊忙碌著,人聲鼎沸,來春挺著即將臨盆的大肚子來到店裡幫忙,看到范植偉飾演的這個角色又坐在同樣的位置用餐,但身旁卻多了一位女性,他態度輕鬆的跟來春說,這位女性就是當天開車撞到我的人,現在是我太太,我出了一場車禍,卻娶到一個老婆,她跟妳一樣,也是懷著身孕。看到這裡,我不禁莞爾,回想張作驥的舊作,他就像一個憤世忌俗的年輕人,透過劇中生活在社會底層的主角,極度血腥暴力的影像結構,來控訴人在整個社會階層分明的現實下,所產生的無力感。但在新作裡張作驥彷彿跳脫到更高的層次,宛如一位歷經滄桑的老者,笑看人生的無常,用更寬闊的胸襟來接受與包容既成的現狀。

    另外一場戲是大家庭中的父親(黑面 飾),因為飲酒過度而昏迷,住進了醫院,經醫生宣判已經是肝癌末期,家中的大媽(呂雪鳳 飾),個性強勢,主導著家中的大小事,聽到此一惡耗,卻徹底的崩潰。二媽(何子華 飾)為丈夫的二房,在家中的地位本就較為卑微,但在此關鍵時刻,不得不撐起讓整個家庭繼續往前走的重任。之後的一場戲,是二媽在幫大媽洗澡擦背的戲,二媽對著因為無法接受家庭的劇變而精神有點失常的大媽,語調徐緩的透露出對大媽的感激之情,當年自己生活的荒唐,在肚子裡懷有來春,但男友卻不知去向,走投無路之下,投靠自己的初戀情人---黑面飾演的角色,雖然他已結婚,但在妻子無法生育情況下,為了後嗣的問題,就接納她為二房,大房對她雖是有些妒忌但在生活各方面,對她還有她的小孩卻仍是非常關心與照顧。這場戲大媽,二媽皆是背部全裸,坦誠相見之下演訴說情感的戲,更具有說服力,另外這場戲也跟觀眾交代了幾件事,第一 : 在鏡頭慢慢帶到二媽背後的刺青,也對照了二媽說自己年輕時是如何荒唐這件事,第二 :來春不是黑面飾演的父親的親生女兒,在這裡做了交代,也突顯出當年大媽願意接受他們,所展現的雍容氣度。

    這部片中高盟傑演一個自閉症者,有許多研究這方面病症的專家,且不知道他是個演員的人,以為他真的是一個自閉症患者,可見高盟傑在這個角色上真的下了一番苦功,也讓大家看到有別與以往老是演小混混的高盟傑。另外新人李亦捷是第一次演電影,不過挑戰來春這個角色卻另人括目相看,從頭到尾,整個角色情緒的轉折極大,雖然仍看出有點生澀,不過以新人來說,算是水準之上了。演大媽,二媽的呂雪鳳,何子華都是歌仔戲演員出生,深厚的表演功力,從一出場就展現出來。


    這是電影的預告片


    這是李亦捷唱的電影主題曲---彼岸

    影片資料
    影片年份:2010
    出品國:Taiwan
    出品:張作驥電影工作室
    導演:  張作驥
    演員:  李亦捷
                高盟傑
                黑   面
                呂雪鳳
                何子華

    圖片來源:開眼電影網

    2010年10月2日 星期六

    唐山大地震---23秒的震撼,32年的痛苦煎熬


    今年中國大陸的華誼兄弟傳媒公司的年度大片---唐山大地震,在七月份的暑假期間在全中國上映,一直到8月底截止,該片在內地地區上映41天,據初步估計,票房已達6.5億元人民幣,而該片也在8月份在台灣上映,不論票房、影評都獲得熱列的迴響,一直到今天第47屆金馬獎入圍名單揭曉,唐山大地震獲得三項提名,這部電影可說是今年最火紅的華語電影之一。

    這樣熱門的電影如果不看的話,還真不夠格做為一個專業的影迷,雖然從過去以來,我對此類華語商業劇情片,一向是興趣缺缺。針對傳統的商業電影,我還是比較偏好好萊塢出品的影片,因為其不論在卡司、效果、劇情的張力各方面,絕對能夠給感官帶來最大的享受。

    這部電影改編自加拿大的華裔作家張翎的小說《餘震》,不過導演馮小剛有稍為加以改編,比起原著,電影的版本較為溫情,女主角的養父母對其無私的愛,在電影裡隱約可以看出是導演設計的伏線,拿來與女主角在地震中遭到母親拋棄的遭遇做一個對比,更動小說裡女主角在地震後面臨更為坎苛不堪的人生際遇,但小說的情節與這本書的書名《餘震》較有相互呼應的效果,而女主角的養父母的職業也由書中的會計專家改為電影中的解放軍,我看過馮小剛之前的作品《集結號》,感覺解放軍在其電影裡的形象都是極為正面,不知道他是否有這樣的偏好。

    電影的時代與地點的背景是以1976年發生在中國大陸河北省唐山市的大地震為藍本。這起規模達芮氏7.8級的地震,造成當時唐山市嚴重的居民傷亡,在事件三年後中國官方所發佈的調查報告,揭露當時死亡的人數達24萬人,重傷人數達16萬人,此為20世紀世界地震史死亡人數第一的大地震。故事主線以一對方姓夫妻家庭為本,其有一對龍鳳胎,而以母親李元妮(徐帆 飾),及女兒方登(張靜初 飾)兩個角色長達32年的情感煎熬貫穿整部影片,為其主要基調。當大地震來臨時,父親為救困在屋內的一對兒女,被壓倒在倒塌的樑柱下而亡,當地震稍歇,母親發覺其子女共同被壓在同一塊石板下,救難人員及時趕到展開營救,但發覺救援行動難度頗高,因為若敲擊石板之一側,另一側則會崩落,在其下的子女即性命不保,也就是說母親必須兩者選其一,看是要救姐姐還是救弟弟,母親陷入天人交戰的境地,對著救難人員哭喊"兩個都救!",隨著時間一分一秒過去,救難人員要母親盡快做決定,否則不論姐姐或弟弟都將淪為這場災難的冤魂,母親做了痛苦的決定,對著救難人員說"救弟弟",姐姐在瓦礫石板堆下隱約聽到母親最後的選擇,眼淚止不住的從臉頰滑落,這樣的決定也造成母女此後長達32年用堆積在自己心裡一份難解的煎熬,困著自己,也困著對方。劇情發展到這裡,導演將整個悲傷的情緒累積到最高點,一股腦的釋放出來,相信觀影的人已經熱淚盈眶,包括我也不例外,如果以為只到此為止,那就太小看馮小剛的功力了,這只是小菜而已,真正主菜上場時,才真的讓你懂得什麼叫痛哭流涕。


    幸運的是,姐姐方登最後並沒有喪生,當她在父親的屍體旁醒過來,被前來救援的解放軍發現,而將其安置在部隊中的災難孤兒園裡,後因解放軍中的一對夫妻長期沒有子嗣,在同袍的介紹下,前來孤兒園中尋找適合領養的人選,當他們看到長得眉清目秀的方登,就決定領養她,把她當成自己的女兒。方登的養父(陳道明 飾)對她極為疼愛,但某些對女兒疼愛的舉動,卻讓養母(陳瑾 飾)有些吃味,數次告誡其夫應緊守分寸,而其夫認為這僅是出自於對女兒的疼愛,行為並無不妥,他太太是多慮了,日漸長大的方登(張靜初 飾)漸了解若其繼續呆在家中,將對這個家庭帶來困擾,於是考大學時選擇離家較遠的醫學院,希望這樣能夠讓父母的感情重修舊好.....................


    馮小剛高明的地方在於他讓觀影者悲傷情緒慢慢的累積堆疊,隨著劇情的發展蓄積能量,等到適當的時刻才讓你哭到一發不可收拾的地步。劇中有一些情節橋段,像是方登的弟弟方達沒有跟著奶奶回濟南,方登因為懷孕被男友拋棄,卻仍執意生下小孩,李元妮在兒子方達離家到外地工作,長期自己一人獨守老家,鄰居從事電器維修工作的男子對她頗為照顧,甚至表達願意與她結婚,共度餘生,但李元妮表現出對自己丈夫愛情的忠貞,憤而拒絕,方登與方達因參與汶川地震的救難隊,當方登聽見方達跟隊友訴說當年唐山地震時,母親所面臨的兩難抉擇,這些情節若是一般八點檔連續劇的拍法,絕對是灑狗血的方式,大書特書一番,不一連拍個幾集,絕不罷休,但馮小剛都選擇輕輕帶過,為之後的大高潮預留伏筆。

    當32年後方登與母親李元妮重逢,32年沒見,女兒已經步入家門口,母親理應趨前迎接,哭訴當年的決定,造成這些年來心中揮之不去的悔恨,盼求女兒原諒,女兒在親情的感動下,來個大合解,兩人哭成一團,這是一般的拍法,但馮小剛採用讓母親冷靜面對32年未見的女兒,請她先進屋去,當女兒看到牆上那幅她童年時的照片,桌上擺著在地震當晚母親答應隔天買給她吃的西紅柿,母親對著女兒說"媽,沒騙妳",接著女兒一個轉身,母親一股腦的跟她跪下,大聲呼喊著"媽,對不起妳!",整個已經凝聚到頂點的情緒,瞬間崩潰爆發,相信看到這裡的觀眾,沒有人不是淚流滿面的吧。

     

    影片的尾聲,方登的墳墓裡放著來不及背的書包,及一本本的課本,原來是多年來若是弟弟有買課本,母親即會多買一套留給方登,放在她的墳墓裡,女兒這時才了解母親這些年來是如何帶著愧疚與悔意活下去,抱著母親痛哭,口中喊著一聲聲的"對不起",同時也完成了自己的心靈救贖,解脫了自己,也解脫了母親。

    印象中我大概看過4部馮小剛的作品,從幾年前的天下無賊,到較為近期的集結號,非誠勿擾,唐山大地震,我不得不推崇他,馮小剛的確是一位拍攝商業劇情片的高手,不論在影片節奏的掌控,說故事的方式,大場面的調度,比起好萊塢主流的商業電影導演,他可說是毫不遜色,像這樣大成本,大製作的電影,有些導演縱然資金,卡司到位,拍出來的東西也不見得言之有物,而馮小剛卻沒有這樣的問題,他最近幾年所拍的電影,可說一部比一部賣座。

    飾演成年方登的張靜初是這幾年華人電影圈掘起的新秀,外型姣好,演技不凡,記得幾年前我在爾冬陞的電影門徒裡,看到她演一個吸毒的女子,她把這樣一個邊緣性格的人物,詮釋的入木三分,就直覺她是會演戲的,假以時日,必有成就可期。而演李元妮的徐帆,戲外就是馮小剛的太太,演技爐火純青,戲裡從年輕演到老婦,是整部戲的靈魂,若少了她,整部電影必大為失色。


    這是電影的預告片

    影片資料
    影片年份:2010
    出 品 國:China
    發 行 商:博偉電影/華誼兄弟
    導演: 馮小剛
    演員: 徐帆 張靜初 陳道明 李晨 陸毅


    圖片來源 : 開眼電影網

    2010年10月1日 星期五

    更改Blogger推文按鈕位置

    在Blogger更改推文按鈕的位置,方法如下,藍色的部份是原本Blogger程式裡頭就有的,只需要找到這些地方,然後依照黃色程式指示,填入推文按鈕的程式碼就可以了。

    1. 文章標題右方
    • <h3 class='post-title entry-title'>
    • <div style='float:right; margin-left:10px;'>
    • 推文按鈕程式碼
    • </div>
    2. 文章內容右方
    • <div style='float:right; margin-left:10px;'>
    • 推文按鈕程式碼
    • </div>
    • <p><data:post.body/><p>
    3. 文章意見右方
    • <p class='post-footer-line post-footer-line-1'p>
    • <div style='float:right; margin-left:10px;'>
    • 推文按鈕程式碼
    • </div>
    另外,如果要把按鈕放在左邊,只需要把上面的float:right改成float:left,以及margin-left改成margin-right即可。

    2010年9月30日 星期四

    在 Blogger 每篇文章上使用 Facebook 分享按鈕

    在Blogger上使用Facebook分享按鈕的方法如下 :

    首先進入範本 → 版面配置 → 修改 HTML → 勾選「展開小裝置範本」,然後依照下面的步驟修改:
    1. 找到底下這一行:

    <p><data:post.body/><p>

    2. 在這之上加入下面這段程式碼就行了,這是將Facebook分享按鈕置於文章內容右方。

    <a name="fb_share" type="box_count"href="http://www.facebook.com/sharer.php">share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>

    至於按鈕格式可以參考Facebook上的說明,將 type="box_count",裡面的box_count換掉就可以了,至於位置的擺放方式,可以參考"更改Blogger推文按鈕位置"這篇。

    在Blogger嵌入Facebook的讚(Like)按鈕

    登入Blogger的控制台後,進入「版面配置」的「修改HTML」,勾選「展開小裝置範本」,然後找到下面這一行:

    <b:includable id='post' var='post'>

    在此行的下面,貼上下列語法,然後儲存範本即可。

    <script>
    document.write(&#39;&lt;iframe src=&quot;http://www.facebook.com/plugins/like.php?href=<data:post.url/>&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=verdana&amp;colorscheme=light&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; allowTransparency=&quot;true&quot; style=&quot;border:none; overflow:hidden; width:450px; height:65px&quot;&gt;&lt;/iframe&gt;&#39;);</script>


    上述的作法是將「讚」的按鈕放在文章標題之前,如果想將按鈕放在文章的後面,則請將上面的語法改放在<data:post.body>之後就可以了。