4/29/2010

Tapestry 5 block concept

基本上block是一種元件它能夠集合靜態文字、html elements、元件,用來定義此區塊能夠有什麼樣式(UI)。似乎還是很複雜不如把它看成div區塊,tapestry想法透過定義block讓開發者能夠簡易操控於畫面上,並且重覆使用block物件來layout畫面。

4/14/2010

Increase the VM memory for IntelliJ IDEA

如何調整Intellij IDEA 9 所使用java memory ? 跑一些web application一下子out of memory.

OSX 環境中可以編輯此檔 /Applications/IntelliJ IDEA 9.0.1.app/Contents/Info.plist

調整

VMOptions
-Xms384m -Xmx640m -XX:MaxPermSize=256m -ea -Xbootclasspath/a:../lib/boot.jar

4/13/2010

New Macbook Pro release

新的Apple Macbook Pro已經更新了

不過只有一句話 真的很貴! Orz,反而教育價比較有誠意一點ooxx

暫時先等國外的評論,再好好做決定

4/10/2010

rTorrent 推薦設定

讓rtorrent跑得更順更安性兩個設定

  • vim .rtorrent.rc
  • 參考Optimize Your BitTorrent Download Speed
  • min_peers = 40
    max_peers = 52  
    max_uploads = 10
    download_rate = 0 
    upload_rate = 10  
    
  • 啟動Bittorrent Protocol Encryption
  • Protocol encryption (PE), message stream encryption (MSE), or protocol header encrypt (PHE)[1] are related features of some peer-to-peer file-sharing clients, including BitTorrent clients. They attempt to enhance privacy and confidentiality. In addition, they attempt to make traffic harder to identify by third parties including internet service providers (ISPs).
    # The example value allows incoming encrypted connections, starts unencrypted
    # outgoing connections but retries with encryption if they fail, preferring
    # plaintext to RC4 encryption after the encrypted handshake
    encryption = allow_incoming,try_outgoing,enable_retry
    
rTorrent 推薦設定

4/09/2010

abs for rtorrent client

rtorrent是目前常用torrent console client,利用Archlinux abs編譯達到優化rtorrent目的

  1. 更新Archlinux abs tree
  2.  sudo abs 
  3. 將更新rtorrent至home
  4.  cp -r /var/abs/community/rtorrent/ ~/abs 
  5. 修改vim PKGBUILD, 加入-with-posix-fallocate用來降低filesystem fragmentation
  6. #./configure --prefix=/usr --disable-debug --with-xmlrpc-c || return 1
    ./configure --prefix=/usr --disable-debug --with-posix-fallocate|| return 1
    
  7. compile rtorrent
  8.  makepkg -s 
  9. 安裝rtorrent package
  10. sudo pacman -U rtorrent-0.8.6-2-i686.pkg.tar.gz 
    Password: 
    loading package data...
    checking dependencies...
    (1/1) checking for file conflicts                   [######################] 100%
    (1/1) upgrading rtorrent                            [######################] 100%
    

4/07/2010

Hibernate 3.5.0 final release

終算釋放新版了,似乎等了滿久!

3.5.0 版本中新增一些期待滿久的特性:

  • JSR 317(JPA)支援 
  • 整合hibernate-anootaitons, hibernate-entitymanager, hibernate-enver至核心中
  • 新增標準Infinispan as second-level cache 支援
  • 加強"read only" / "immutable" 支援
  • 支援JDBC 4
  • 支援column-level read/write fragments (HBM only for now)
  • Initial support for fetch profiles (不知道什麼東西)
  • Phase 1 will focus on the API and the metadata infastructure needed to support fetch profiles. It will also provide implementation for using the join strategy.

個人所期待支援就是JPA2,JPA1在查詢支援及彈性不是這麼理想,不過這一次修正似乎滿多關於second-level cache問題

Hibernate 3.5.0 final release