Archive for November, 2005

最近令人感動的事

先記下來,有空再來談。

Neil Young’s Recent Album

Feynman’s Rainbow

Tags:

布希 台灣 民主

今天開車的時候聽到這則新聞,不得不在車上大笑一場。看來台灣牌夾在世界兩大資本主義市場中居然還算有點利用價值。不過當要求政府取締盜版的 DVD 會影響社會穩定時,那 MPAA 也沒輒了。

Tags: ,

Safe Sleep

In the recent OS X 10.4.3, it is possible to “suspend” my powerbook into hibernate mode that does not use any power (see Andrew’s Blog). I write this simple script “sleepmode” to make life slightly easier with this feature.

#!/bin/sh
case ”$1” in
  deep)
    sudo pmset -a hibernatemode 1
  ;;
  safe)
    sudo pmset -a hibernatemode 3
  ;;
  normal)
    sudo pmset -a hibernatemode 0
  ;;
  go)
    omode=”`pmset -g | grep hibernatemode | cut -f 2`”
    sudo pmset -a hibernatemode 1
    echo The system is going to the deep sleep in 3 seconds
    sleep 3
    osascript -e 'tell application "Finder" to sleep'
    sudo pmset -a hibernatemode $omode
    echo The system is back to it orginal sleep mode
  ;;
esac

case ”`pmset -g | grep hibernatemode | cut -f 2`” in
  0)
  echo System is in the Normal Sleep Mode
  ;;
  1)
  echo System is in the Deep Sleep Mode
  ;;
  3)
  echo System is in the Safe Sleep Mode
  ;;
esac

Tags: ,

bugs

History’s Worst Software Bugs

Tags:

無關政治

實在不懂那些在台灣賣中國牌的媒體(政黨)為甚麼不去中國好好發展,自己局限於台灣這小小的地方?真覺得中國好,真想為中國人服務,何必在台灣口水?

Tags: