2013年4月26日 星期五

How to set vi Editor for ed command in SQLPLUS

在Linux 平台上的 sqlplus 命令列中更改編輯程式,可以參照下面連結。

結論是:


  1. 進入 sqlplus 後下達
    define _editor='vi'
    按 enter 讓命令生效。
    當你在 sqlplus 中鍵入
    ed 後就會呼叫 VI,並且把剛剛執行過的 sql command 帶入 VI
    不過這種作法每次離開 sqlplus 後,設定就會消失。
  2. 另一個方法是永久設定,那就是編輯 $ORACLE_HOME/sqlplus/admin/glogin.sql 檔案,將 define  _editor='v'
    指令放入並儲存該檔案。日後只要進入sqlplus 鍵入ed 就會自動呼叫 VI編輯。


How to set vi Editor for ed command in SQLPLUS:

'via Blog this'

2013年4月22日 星期一

Spec# - Microsoft Research

微軟研究室中擴展 C# 語言中有關 Contract 的正式語言。

Spec# - Microsoft Research:

'via Blog this'

chrome left click closes tab - Google 搜尋

如果你使用 Chrome 用左鍵點選 Chrome Tab某一頁,卻造成該頁關閉時。

這可能是你使用的NB上中間轉軸與左鍵錯亂導致,
這時請你接上滑鼠,按一按滑鼠中間的滾輪,再按左鍵應該就會恢復正常運作。

chrome left click closes tab - Google 搜尋:

'via Blog this'