聚會時間公告: 因應COSCUP 2011, Kalug 8月份休會一次

三月 30, 2011
» [Technote] Eclipse shortcut keys

To accelerate your programming speed on Eclipse, it's essential that you master the shortcut keys in Eclipse. Here I list a few shortcuts I found particularly useful:

Navigation shortcuts

CTRL+L - Jump to a line with line number x.
CTRL+Q - Go to the last edit location.
ALT+Left/Right - Same as CTRL+Q.
F3 - Go to the definition of a variable, method or class.
CTRL+O - Go to the declaration of a variable, method, or class.
CTRL+ALT+H - Show call hierarchy of a method.

File navigation shortcuts

CTRL+E - open a searchable list of all the open editors for you.
CTRL+SHIFT+T - Open a file by summon a file search box.

Editing shortcuts

CTRL+SHIFT+O - Doing all the imports automatically for you!
CTRL+I - Correcting indentation.
CTRL+/ - To comment out a line or lines (by selecting a group lines).
CTRL+D - To delete a line.
CTRL+SPACE (SHIFT+A in my IDE setting) - Autocomplete codes.
CTRL+1 - Suggest quick fixes.
ALT+SHIFT+R - Doing rename and refactoring for you.

Search shortcuts

CTRL+J - Incremental search.
CTRL+F - Single search.

Other shortcuts


CTRL+SHIFT+F - List all the shortcut keys and their mappings for you.

I will add more to this list once I find out other useful shortcuts.

六月 11, 2010
» Netbeans 啟動自動補齊(Auto Padded)

近來一直聽到社群上的伙伴在寫 Python, C .. 的時候都用 vim 的文字補齊寫 code 寫的很開心,可問題是已經用 Netbeans 開發三個多月的凍仁是不可能說換就換。

拜了一下 Google 得知在工具(T) → 選項 → Editor 內可以手動開啟自動補齊的功能,預設不開啟也是蠻合理的,Netbeans 跑不快,畢竟是在 Java 上跑 Java,更何況這樣會多增加了傾聽 key world 的事件,也就是說資源會多一吃

Auto Popup on Typing Any Java Identifier Part 打勾即啟用。

資料來源:
hoamon | NetBeans 用了快一年,才想到「自動補齊」是種選項

一月 10, 2010
» KompoZer 網頁編輯器

不知道為什麼,就是很想在 Ubuntu-TW wiki 補些文章,可能是最近太少寫 blog 潛意識下想補補進度的關係,之後會想改用 IDE 寫完網頁後在丟上 blog,或許可以加快些速度,也可能是想體會看看雙螢幕寫文章的樂趣 :P

logo
Kompozer 的是前身NVU ,這是一套同樣以 Mozilla 為核心的網頁編輯器 (就像市面上常見的 FrontPage 或是 Dreamweaver 等等網頁編輯程式), 目前由 Linspire (以前的 Lindows) 主導開發..

介面截圖

安裝


加入軟體來源
jonny@ubuntu:~$ sudo vi /etc/apt/sources.lst...
# Kompozer
deb http://ppa.launchpad.net/giuseppe-iuculano/ppa/ubuntu EDITION
main
:wq!

  • Ubuntu 9.10 (Karmic Koala)
    deb http://ppa.launchpad.net/giuseppe-iuculano/ppa/ubuntu karmic main
  • Ubuntu 9.04 (Jaunty Jackalope)
    deb http://ppa.launchpad.net/giuseppe-iuculano/ppa/ubuntu jaunty main
  • Ubuntu 8.10 (Intrepid Ibex)
    deb http://ppa.launchpad.net/giuseppe-iuculano/ppa/ubuntu
    intrepid main
  • Ubuntu 8.04 LTS (Hardy Heron)
    deb http://ppa.launchpad.net/giuseppe-iuculano/ppa/ubuntu hardy main

匯入金鑰

加入其他的軟體來源後沒匯入金鑰,使用 apt-get update 手動更新時就會有以下的錯誤訊息出現。

W: GPG error: http://ppa.launchpad.net karmic Release:
由於無法取得它們的公鑰,以下簽章無法進行驗證: NO_PUBKEY 5D49322B623C928A


  1. 下載金鑰
    jonny@ubuntu:~$ sudo gpg --keyserver keyserver.ubuntu.com --recv 623C928A
  2. 匯入金鑰
    jonny@ubuntu:~$ sudo gpg --export --armor 623C928A | sudo apt-key add -

安裝
  1. 更新套件庫
    jonny@ubuntu:~$ sudo apt-get update

  2. 安裝
    jonny@ubuntu:~$ sudo apt-get install kompozer

中文化

下載語系包
jonny@ubuntu:~$ wget
http://kompozer.sourceforge.net/l10n/langpacks/kompozer-0.8b1/kompozer-0.8b1.zh-TW.xpi

開啟 KompoZer 並點選『Tools/Extensions』。

Install kompozer-0.8b1.zh-TW.xpi

相關連結:
KompoZer 官網
KompoZer by 教育部校園自由軟體應用諮詢中心
KompoZer by Wekey wiki

四月 21, 2008
» 【Editer】vim 設定檔 @ B2D

凍仁管 B2D Linux Server 時發現裡面內建的 vim 設定檔做的很棒。如懶的自行設定的玩家不妨用用 B2D 的設定唄。

ssh 遠端連接 B2D Linux Server 截圖



2008-04-19


凍仁在 Ubuntu 7.10 實作中遇到些問題,並不是直接下載完放進家目錄底下就可用囉,以下是凍仁的 vi 改造筆記
  1. 安裝 vim
    jonny@ubuntu:~$ sudo apt-get install vim

  2. 切換至家目錄下
    jonny@ubuntu:~$ cd ~

  3. 下載 B2D 的 vim 設定檔 .vimrc
    jonny@ubuntu:~$ wget http://140.127.138.72/jonny/download/config/.vimrc

  4. 將環境改為 utf8 格式 /* B2D 預設為 big5 */
    32 set enc=big5 utf8

  5. 最後補上凍仁之前愛用的設定 → 【Editer】vimrc - vi 環境設定

2008-04-21


如要在 Trixbox 使用請先安裝 vim。注意!請依照 Server 種類安裝(以下為PC i386)
jonny@centos:~$ sudo yum install vim-X11.i386



jonny@ubuntu:~$ vi .vimrc
" Configuration file for vim

" Normally we use vim-extensions. If you want true vi-compatibility
" remove change the following statements
set nocompatible " Use Vim defaults instead of 100% vi compatibility
set backspace=indent,eol,start " more powerful backspacing

" Now we set some defaults for the editor
set autoindent " always set autoindenting on
set textwidth=0 " Don't wrap words by default
set nobackup " Don't keep a backup file
set backupcopy=no " KNOPPIX: Overwrite files/links with w!
set viminfo='20,\"50 " read/write a .viminfo file, don't store more than
" 50 lines of registers
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time

" Suffixes that get lower priority when doing tab completion for filenames.
" These are files we are not likely to want to edit or read.
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc

" We know xterm-debian is a color terminal
if &term; =~ "xterm-debian" || &term; =~ "xterm-xfree86"
set t_Co=16
set t_Sf=^[[3%dm
set t_Sb=^[[4%dm
endif

" Make p in Visual mode replace the selected text with the "" register.
vnoremap p :let current_reg = @"gvdi=current_reg

set enc=big5
imap :wi
imap :wq
imap :q!
map :w
map :wq
map :q!

" Vim5 and later versions support syntax highlighting. Uncommenting the next
" line enables syntax highlighting by default.
syntax on

" Debian uses compressed helpfiles. We must inform vim that the main
" helpfiles is compressed. Other helpfiles are stated in the tags-file.
set helpfile=$VIMRUNTIME/doc/help.txt.gz

if has("autocmd")
" Enabled file type detection
" Use the default filetype settings. If you also want to load indent files
" to automatically do language-dependent indenting add 'indent' as well.
filetype plugin on

endif " has ("autocmd")

" Some Debian-specific things
augroup filetype
au BufRead reportbug.* set ft=mail
au BufRead reportbug-* set ft=mail
augroup END
" The following are commented out as they cause vim to behave a lot
" different from regular vi. They are highly recommended though.
set showcmd " Show (partial) command in status line.
set showmatch " Show matching brackets.
"set ignorecase " Do case insensitive matching
"set incsearch " Incremental search
"set autowrite " Automatically save before commands like :next and :make


相關連結:
B2D Linux Server - vimrc

二月 25, 2008
» 【Firefox】ScribeFire - Blog編輯器

這幾天發現的新玩具 ScribeFire,他是Firefox的擴充套件(plus)之一,而他並不是一開始就叫 ScribeFire,它的前身就是很有名的Performancing。也就是說凍仁可以邊看部落客及咕狗搜尋回來的資料,邊撰寫自己的Blog.. 真的是一套很方便的部落格編輯器(以下簡稱BIDE),加上凍仁是在Ubuntu Linux平台上面,一時之間也不知道要去那找一套 for Linux 的 BIDE,現在有了跨平台的 Firefox ,真是太方便啦XD / * 真的不知道 Firefox 還可以好用到什麼境界:P */

說他好用歸好用,但一開始要入門有個最大的問題,那就是要怎麼在 ScribeFire 上面登入自己的 Blog 好讀取資料等等的..因為介面是English嘛XD

如何登入Blogger?
  1. 安裝完ScribeFire後開啟裝態列右下角的筆記本

  2. 在右邊的Blogs裡,點選 Launch Account Wizard(帳號建立精靈)

  3. 接下來會出現 Please enter your blog`s url
    建議使用 Manually Configure(手動設定),像凍仁的Blogger直接輸入web address(網址)會有問題,

  4. WhatBlogging Service od you want to add?
    選擇下拉選單裡最後一個 Custom Blog 然後下一步

  5. Please select your blog system type from the list be..
    這個下拉選單選 Blogger

  6. Please add (or change your Server API URL:)
    在這個input box 更改 BLOGNAME 為自己的Blogger名稱,像凍仁的就是jonnyubuuntu,這邊都ok就下一步啦

  7. 輸入此Blogger的帳密,成功了話會顯示該Blog的名稱

  8. 最後會出現Account Added,恭喜,現在可以開始使用這套 ScribeFire 撰寫啦XD


相關連結:
ScribeFire官網
ScribeFire v1.4.5官方下載
電腦玩物 - ScribeFire 1.4.2:Firefox上的部落格文章編輯器

support:

biggo.com.tw

biggo.sg

A Django site.