<code class="codeblock prettyprint">public class HelloWorld {
public static void main (String[] args) {
System.out.println("Hello, world!");
}
}
</code>
2013年12月17日 星期二
Code CSS
2013年12月11日 星期三
Jquery UI Dialog resize
.ui-resizable-handle.ui-resizable-s::before, .ui-resizable-handle.ui-resizable-s::after {
content: "";
width: 0;
height: 0;
position: absolute;
left: 150px;
border-style: solid;
border-width: 10px;
}
.ui-resizable-handle.ui-resizable-s::before {
border-color: #aaa transparent transparent transparent;
top: 2px;
}
.ui-resizable-handle.ui-resizable-s::after {
border-color: #fff transparent transparent transparent;
top: 1px;
}
.ui-dialog {
overflow:visible;
}
$('#dialog').dialog();
2013年12月6日 星期五
ubuntu 12.04 gcin install & 14.04 系統設定工具消失
Ubuntu 14.04 最新版Gcin安裝設定
加入 GPG 金鑰
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 835AB0E3
如果沒加入,在做 apt-get update 更新套件庫時會出現錯誤訊息
W: GPG 錯誤: http://hyperrate.com eliu Release: 由於無法取得它們的公鑰,以下簽章無法進行驗證: NO_PUBKEY 5C577D59835AB0E3
加入 gcin 套件庫來源
$ sudo echo "deb http://hyperrate.com/debian eliu release" >> /etc/apt/sources.list
更新套件庫
$ sudo apt-get update
進行安裝
$ sudo apt-get install gcin
模仿微軟風格
出現 X@kbm 錯誤的話
rm ~/.gcin/config/phonetic-keyboard*
========================
Old
Step.1
sudo apt-key adv --keyserver
hkp://keyserver.ubuntu.com:80 --recv-keys 835AB0E3Step.2
開啟軟體來源的設定
software-properties-gtk Step.3
打開「其他軟體」的頁籤,選擇「添加」 輸入下列其中一個網址
APT line : deb http://hyperrate.com/debian eliu release
APT line : deb http://www.csie.nctu.edu.tw/~cp76/gcin/download/debian eliu release
APT line : deb http://cle.linux.org.tw/gcin/download/debian eliu release
新增後 如果有 gcin source code,請取消,不然會造成錯誤Step.4
sudo apt-get updateStep.5
安裝gcin
sudo apt-get install gcinStep.6 進入系統設定值,選擇「語言支援」→「鍵盤輸入法系統」,選擇「gcin」
Step.7
加入 gcin 狀態圖案
gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"
如有需要 再移除 ibus
sudo apt-get purge ibus
*)14.04LTS 可能會因為移除ibus 連帶關聯的檔案一起刪除,會使得系統設定值相關的工具都被移除 解決方法 重新安裝回去
sudo apt-get install unity-control-center
Other
gcin 日文輸入
可能出現
anthy-module.so: cannot open shared object file: No such file or directory
sudo apt-get install libanthy-dev
sudo apt-get install gcin-anthy
2013年12月3日 星期二
jQuery each break
$.each(data, function(index, obj){
if (index == 1) {
return; //continue
} else {
return false; // break
}
});
訂閱:
意見 (Atom)