Wednesday, February 8, 2012

[Note] rxvt-unicode settings in .Xdefaults

URxvt.buffered: true
URxvt.geometry: 80x24
URxvt.background: black
URxvt.foreground: lightgray

URxvt.font: xft:Terminus:pixelsize=10

URxvt.inputMethon: scim
URxvt.imLocale: zh_TW.UTF-8

URxvt.perl-ext: default, matcher
URxvt.urlLauncher: /usr/local/bin/firefox
URxvt.matcher.button: 1

URxvt.cursorUnderline: True
URxvt.cursorBlink: True

Wednesday, February 1, 2012

Homebrew uninstall

You can uninstall Homebrew, the package manager, with following steps:

  1. cd `brew --prefix` 
  2. rm -rf Cellar 
  3. brew prune 
  4. rm -rf Library .git .gitignore bin/brew README.md share/man/man1/brew 
  5. rm -rf ~/Library/Caches/Homebrew

And you may refer to the FAQ from Homebrew's wiki page.

Tuesday, January 31, 2012

Debian can not restart/reboot properly on Acer Aspire One D257

You have to make some changes with following steps

  1. $ sudo vim /etc/default/grub
  2. Replace GRUB_CMD_LINUX="" with GRUB_CMD_LINUX="reboot=eif"
  3. sudo update-grub

You may restart your aod257 and it works properly now.

Sunday, January 29, 2012

[筆記] 電費公式

(瓦數 * 24) / (1000 * 每度費用) = 每天耗用的電費

[筆記] 電的公式

W (瓦) = V (伏特:電壓) * A (安培:電流)