Windows XP 開機修復(ubuntu問題修復)

原本想說懶惰點, 80G 的硬碟就切一半, 前 40G 給 XP, 後 40G 給 Ubuntu, 沒想到遇到一些怪問題.

以下來列一下問題列表:

  1. Ubuntu 灌好後, XP無法正常開機
  2. Xwindow 螢幕解析度一直是 640x480
  3. scim 無法使用
  4. mplayer apt 無法直接抓到 w32codecs

順便找到的好站: Grub Manual

閱讀全文〈Windows XP 開機修復(ubuntu問題修復)〉

del.icio.us 備份

del.icio.us 存的 url 要備份只要簡單的一行指令, 即可完整備份下來.

wget --http-user=YourUserName --http-passwd=YourPassword -O del.icio.us_backup.xml https://api.del.icio.us/v1/posts/all

或 (curl -L 可以避掉頁面 redirect 的問題)

curl --silent -L --user YourUserName:YourPassword -o del.icio.us_backup.xml -O 'https://api.del.icio.us/v1/posts/all'

更多資訊可參考: 一行指令備份 del.icio.us

閱讀全文〈del.icio.us 備份〉

Windows FAT32 轉成 NTFS

Windows 只要準備要灌 .Net 就一定會自己重新開機, 然後灌個掃毒程式進去, 只要打開要掃毒也會重新開機, 不知道原因為何, 猜想可能是我還用古老的 FAT32 的原因~ 不過, 轉換完成後發現, 果然不是這個原因 :~, 算了~ 總之先記錄一下如何轉換.

轉換步驟很簡單, 就下述指令開個 cmd 執行就可以了.

convert C: /FS:NTFS

其它槽再自己將 C: 改成其它, 轉換過程如果無法卸載的, Windows 會設定讓你重新開機後, 自動轉換成 NTFS 再進 Windows.

閱讀全文〈Windows FAT32 轉成 NTFS〉

最新的 Debian 安裝光碟

每次在介紹人使用 Debian, 最後都沒使用的最大原因是找不到哪邊可以下載, 或許版本太多確實有點困難... 還是直接把下載點貼出來比較快.

下載網址: Debian -- Debian-Installer (testing 版本)

一般人只要看 netinst CD images i386(x86系列) 連結下載即可.

閱讀全文〈最新的 Debian 安裝光碟〉

當 mysqdump 遇到 Out of memory

當 MySQL 的資料量太大, 在使用 mysqldump的時後遇到 Out Of Memory 的時後該怎麼辦?

有以下兩種做法:

1. 設定 my.cnf, 設定以下參數, max_allowed_packet=16M 可隨機再調大.

[mysqldump]
quick
max_allowed_packet = 16M

2. 使用 -q (--quick) 的參數, 使用此參數就不會使用到 Memory.

使用範例: mysqldump -q -u root DB_NAME > DB_NAME.sql

原廠的說明是如下:

--quick, -q

This option is useful for dumping large tables. It forces mysqldump to retrieve rows for a table from the server a row at a time rather than retrieving the entire row set and buffering it in memory before writing it out.

閱讀全文〈當 mysqdump 遇到 Out of memory〉