2010-06-29 11:07

Ubuntu 語系設定與變更

  1. # 更改預設語系,設定檔路徑:/var/lib/locales/supported.d/local 
  2. locale-gen zh_TW 
  3. locale-gen zh_TW.UTF-8 
  4.  
  5. # 動態變更成[中文語系] 
  6. [root@linux ~]# export LANG=zh_TW.UTF-8 
  7. [root@linux ~]# export LC_ALL=zh_TW.UTF-8 
  8.  
  9.  
  10. # 動態變更成[英文語系] 
  11. [root@linux ~]# export LANG=C 
  12. [root@linux ~]# export LC_ALL=C 


參考來源:
Ubuntu 9.10 增加 / 設定 語系(Locale)
2010-06-29 11:00

Ubuntu 預設編輯器

  1. # 執行這個指令就會跳出 user 的編輯器選單 
  2. [root@linux ~]# /usr/bin/select-editor 
  3.  
  4. # 如果要將系統的預設值變更的話,可以執行這個指令 
  5. [root@linux ~]# update-alternatives --config editor 
  6.  
  7.  
  8. # 如果不喜歡選項中的編輯器,可以藉由更改下面這個檔案,然後重新登入就會生效 
  9. [root@linux ~]# vim ~/.selected_editor 
  10. # Generated by /usr/bin/select-editor 
  11. SELECTED_EDITOR="/usr/bin/vim" 
  12.  
  13.  
  14. # 或者動態直接改變環境變數(一次性) 
  15. [root@linux ~]# export EDITOR=vim 
2010-06-01 22:54

讓你的 Plurk 有天空的感覺

最近開始接觸 Plurk 微網誌
但第一個感覺就是要我天天看這不順眼的 UI 實在很難過
於是想起 fred 一直提到夏日大作戰裡的 UI 介面
所以參考 Josh PetersonBlogger 所設計的一個版型來製作 Plurk 的版面


由於我並沒有覆蓋太多的原始樣式 所以請將佈景設定成下列選項:


Plurk 的樣式安裝連結


底圖是使用 Blogger 所提供的圖片
但由於直接連到 Blogger 會常常無法正常顯示 所以我另存一份到 Picasa 中去放
有需要獨立存放的請參考以下連結:
Blogger 的原始連結:http://themes.googleusercontent.com/image?id=1OACC... (JPEG 79KB)
建議不要直接連結 Blogger 的圖檔,Blogger 有阻擋不正當連結。
我個人的圖檔位址是:http://sites.google.com/site/weskerjax/code... (JPG 70KB)

由於我用了很多 box-shadow(陰影) 及 border-radius(圓角)還增加美感
測試後在 IE7 及 Opera 上呈現會有點出入
目前只有 Firefox Chrome 能完整的呈現所有的 CSS 效果

實際呈現效果:

歡迎來到我的 Plurk


參考來源:hold on
2010-06-01 22:11

[ActionScript] Component 動態建立與移除

  1. /*建立 Component*/ 
  2. createObject("TextInput", "name_ti", getNextHighestDepth(),{ 
  3.    _width:200, 
  4.    _heigh:22, 
  5.    _x:20, 
  6.    _y:30 
  7. }); 
  8.  
  9. /*移除 Component*/ 
  10. destroyObject("name_ti");