基本上block是一種元件它能夠集合靜態文字、html elements、元件,用來定義此區塊能夠有什麼樣式(UI)。似乎還是很複雜不如把它看成div區塊,tapestry想法透過定義block讓開發者能夠簡易操控於畫面上,並且重覆使用block物件來layout畫面。
4/29/2010
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
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
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_retryrTorrent 推薦設定
4/09/2010
abs for rtorrent client
rtorrent是目前常用torrent console client,利用Archlinux abs編譯達到優化rtorrent目的
- 更新Archlinux abs tree
- 將更新rtorrent至home
- 修改vim PKGBUILD, 加入-with-posix-fallocate用來降低filesystem fragmentation
- compile rtorrent
- 安裝rtorrent package
sudo abs
cp -r /var/abs/community/rtorrent/ ~/abs
#./configure --prefix=/usr --disable-debug --with-xmlrpc-c || return 1 ./configure --prefix=/usr --disable-debug --with-posix-fallocate|| return 1
makepkg -s
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問題
Subscribe to:
Posts (Atom)