貝貝第一次剪頭髮 (胎毛 / 胎髮)

2010-03-06 把貝貝從彰化接回台北住, 另外是要對貝貝的頭毛做手腳, 所以來做做紀錄.

註: 出生到現在等等, 之前的紀錄後續再慢慢補上.

閱讀全文〈貝貝第一次剪頭髮 (胎毛 / 胎髮)〉

Debian linux - sysv-rc dependency-based boot system 修復

Debian linux 做 apt-get dist-upgrade, 升級到 sysv-rc 時, 出現下述訊息:

  • sysv-rc

    Unable to migrate to dependency-based boot system
    Tests have determined that problems in the boot system exist which prevent migration to dependency-based
    boot sequencing:
    package exim4-base removed but not purged, package mysql-server-5.0 removed but not purged

    If the reported problem is a local modification, it needs to be fixed manually. If it's a bug in the package, it should be reported to the BTS and fixed in the package.
    See http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot for more information about how to fix the problems preventing migration.
    To reattempt the migration process after the problems have been fixed, run "dpkg-reconfigure sysv-rc".

問題出在 沒有把 exim4-base、mysql-server-5.0 移除乾淨. (移除乾淨要用 apt-get remove --purge exim4-base mysql-server-5.0)

閱讀全文〈Debian linux - sysv-rc dependency-based boot system 修復〉

PHP 5.3.x 的 strtotime() 時區設定 警告訊息修正

Debian Linux 使用 testing 的話, 若於上星期有做過 dist-upgrade 的話, 就會發現 PHP 已經被升級到 5.3.1-5, 而且出現一堆警告訊息.

我遇到的有下面這三種錯誤訊息:

  1. PHP Warning:  strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /tmp/a.php
  2. PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/imagick.so' /usr/lib/php5/20090626/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
  3. PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imagick.ini on line 1 in Unknown on line 0

閱讀全文〈PHP 5.3.x 的 strtotime() 時區設定 警告訊息修正〉