2016年5月23日 星期一

[Tips] 超簡單 vim + cscope

http://softsmith.blogspot.tw/2009/01/vim-cscope-trace.html?m=1

進階一點的使用
http://www.cnblogs.com/zhangsf/archive/2013/06/13/3134409.html

[Tips] 安裝套件失敗

錯誤訊息:
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 2300, in 
    main()
  File "/usr/bin/pycentral", line 2294, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 1477, in run
    runtimes = get_installed_runtimes()
  File "/usr/bin/pycentral", line 278, in get_installed_runtimes
    default_version = pyversions.default_version(version_only=True)
  File "/usr/share/pycentral-data/pyversions.py", line 172, in default_version
    raise ValueError, "/usr/bin/python does not match the python default version. It must be reset to point to %s" % debian_default
ValueError: /usr/bin/python does not match the python default version. It must be reset to point to python2.6
dpkg: error processing python-lxml (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up python-reportlab (2.4-1) ...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 2300, in 
    main()
  File "/usr/bin/pycentral", line 2294, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 1477, in run
    runtimes = get_installed_runtimes()
  File "/usr/bin/pycentral", line 278, in get_installed_runtimes
    default_version = pyversions.default_version(version_only=True)
  File "/usr/share/pycentral-data/pyversions.py", line 172, in default_version
    raise ValueError, "/usr/bin/python does not match the python default version. It must be reset to point to %s" % debian_default
ValueError: /usr/bin/python does not match the python default version. It must be reset to point to python2.6
dpkg: error processing python-reportlab (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python-reportlab-accel:
 python-reportlab-accel depends on python-reportlab (>= 2.4-1); however:
  Package python-reportlab is not configured yet.
dpkg: error processing python-reportlab-accel (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-uniconvertor:
 python-uniconvertor depends on python-reportlab; however:
  Package python-reportlab is not configured yet.
dpkg: error processing python-uniconvertor (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport report written because MaxReports is reached already
Errors were encountered while processing:
 python-lxml
 python-reportlab
 python-reportlab-accel
 python-uniconvertor
E: Sub-process /usr/bin/dpkg returned an error code (1)
也不知道是不是解決了?
$ sudo apt-get clean && apt-get autoclean

[阿宅] 解決ssh到ptt亂碼

因為系統預設是 UTF-8 環境, 如果直接連到 ptt.cc, 會因為 Big5 編碼而顯示亂碼

解決方式就是使用 luit 暫時將編碼改成 Big5, 例如
$ luit -encoding big5 ssh bbs@ptt.cc