stack overflow data dump notification
2010年12月16日 星期四
2010年12月11日 星期六
Zen of Design Pattern
Top 6 Rules of Java design
1.Single Responsibility Principle
2.Open Closed Principle
3.Liskov Substitution Principle
4.Law of Demeter
5.Interface Segregation Principle
6.Dependence Inversion Principle
1.Single Responsibility Principle
2.Open Closed Principle
3.Liskov Substitution Principle
4.Law of Demeter
5.Interface Segregation Principle
6.Dependence Inversion Principle
2010年8月26日 星期四
Netbinox
http://wiki.apidesign.org/wiki/Netbinox
a OSGi container.
ming@ming-laptop:~/hg$ hg clone http://source.apidesign.org/hg/netbinox
程式 'hg' 目前尚未安裝。 您可以由輸入以下內容安裝:
sudo apt-get install mercurial
ming@ming-laptop:~/hg$ sudo apt-get install mercurial
[sudo] password for ming:
正在讀取套件清單... 完成
正在重建相依關係
正在讀取狀態資料... 完成
下列的額外套件將被安裝:
mercurial-common
建議套件:
qct vim emacs kdiff3 tkdiff meld xxdiff python-mysqldb python-pygments
下列【新】套件將會被安裝:
mercurial mercurial-common
升級 0 個,新安裝 2 個,移除 0 個,有 10 個未被升級。
需要下載 1,182kB 的套件檔。
此操作完成之後,會多佔用 4,956kB 的磁碟空間。
是否繼續進行 [Y/n]?Y
下載:1 http://tw.archive.ubuntu.com/ubuntu/ lucid/universe mercurial-common 1.4.3-1 [1,131kB]
下載:2 http://tw.archive.ubuntu.com/ubuntu/ lucid/universe mercurial 1.4.3-1 [50.7kB]
取得 1,182kB 用了 1min 5s (18.1kB/s)
選取了原先未被選取的套件 mercurial-common。
(正在讀取資料庫 ... 系統目前共安裝了 183489 個檔案和目錄。)
正在解開 mercurial-common (從 .../mercurial-common_1.4.3-1_all.deb)...
選取了原先未被選取的套件 mercurial。
正在解開 mercurial (從 .../mercurial_1.4.3-1_i386.deb)...
正在進行 man-db 的觸發程式 ...
正在設定 mercurial-common (1.4.3-1) ...
正在設定 mercurial (1.4.3-1) ...
Creating config file /etc/mercurial/hgrc.d/hgext.rc with new version
正在進行 python-support 的觸發程式 ...
ming@ming-laptop:~/hg$ hg clone http://source.apidesign.org/hg/netbinox
目的端目錄: netbinox
正在请求全部修改
正在增加修改集
正在增加清单
正在增加文件改变
已增加 84 个修改集,包含 221 个改变,修改了 75 个文件 (+1 heads)
updating to branch default
66 files updated, 0 files merged, 0 files removed, 0 files unresolved
ming@ming-laptop:~/hg$ ant
Buildfile: build.xml does not exist!
Build failed
ming@ming-laptop:~/hg$ ls
netbinox
ming@ming-laptop:~/hg$ cd *
ming@ming-laptop:~/hg/netbinox$ ant
Buildfile: build.xml
prepare:
[mkdir] Created dir: /home/ming/hg/netbinox/tmp/netbeans/harness
[get] Getting: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/netbeans/harness/tasks.jar
[get] To: /home/ming/hg/netbinox/tmp/netbeans/harness/tasks.jar
[get] ....................................................
[get] ....................................................
[get] ....................................................
[get] ....................................................
[get] ....................................................
[get] ....................................................
[get] ....................................................
[get] ..........
[get] last modified = Thu Aug 26 19:29:16 CST 2010
[autoupdate] Downloading http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/updates.xml.gz
[autoupdate] org.netbeans.modules.xml.xam is not present, downloading version 1.11.0.1
[get:org.netbeans.modules.xml.xam] Getting: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/ide/org-netbeans-modules-xml-xam.nbm
[get:org.netbeans.modules.xml.xam] To: /tmp/org-netbeans-modules-xml-xam4514979544085082707.nbm
[autoupdate] ...................................
[autoupdate] org.netbeans.modules.swingapp is not present, downloading version 1.10.0.2
[get:org.netbeans.modules.swingapp] Getting: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/java/org-netbeans-modules-swingapp.nbm
[get:org.netbeans.modules.swingapp] To: /tmp/org-netbeans-modules-swingapp6046859821933609572.nbm
[autoupdate] ....................................................
[autoupdate] ....................................................
[autoupdate] ....................................................
[autoupdate] ....................................................
[autoupdate] ....................................................
[autoupdate] ......................................
[autoupdate] org.netbeans.modules.html.editor.lib is not present, downloading version 1.28
[get:org.netbeans.modules.html.editor.lib] Getting: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/ide/org-netbeans-modules-html-editor-lib.nbm
[get:org.netbeans.modules.html.editor.lib] To: /tmp/org-netbeans-modules-html-editor-lib2584913797837647586.nbm
[autoupdate] .....................................
[autoupdate] org.netbeans.modules.java.project is not present, downloading version 1.33
[get:org.netbeans.modules.java.project] Getting: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/java/org-netbeans-modules-java-project.nbm
[get:org.netbeans.modules.java.project] To: /tmp/org-netbeans-modules-java-project4221245990876462310.nbm
[autoupdate] ............................................
[autoupdate] org.openide.util.lookup is not present, downloading version 8.4
[get:org.openide.util.lookup] Getting: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/platform/org-openide-util-lookup.nbm
[get:org.openide.util.lookup] To: /tmp/org-openide-util-lookup2157911845083295853.nbm
[autoupdate] .................................
[autoupdate] org.netbeans.modules.ant.browsetask is not present, downloading version 1.21
[get:org.netbeans.modules.ant.browsetask] Getting: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/java/org-netbeans-modules-ant-browsetask.nbm
[get:org.netbeans.modules.ant.browsetask] To: /tmp/org-netbeans-modules-ant-browsetask1122875502098896556.nbm
[autoupdate] ..............
[autoupdate] org.netbeans.modules.javascript.hints is not present, downloading version 0.46
[get:org.netbeans.modules.javascript.hints] Getting: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/ide/org-netbeans-modules-javascript-hints.nbm
[get:org.netbeans.modules.javascript.hints] To: /tmp/org-netbeans-modules-javascript-hints5266275799714039010.nbm
[autoupdate] ..........................
[autoupdate] org.netbeans.modules.hibernate is not present, downloading version 1.9.0.1
[get:org.netbeans.modules.hibernate] Getting: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/java/org-netbeans-modules-hibernate.nbm
[get:org.netbeans.modules.hibernate] To: /tmp/org-netbeans-modules-hibernate1892477150381757245.nbm
[autoupdate] ....................................................
[autoupdate] ....................................................
[autoupdate] ....................................................
[autoupdate] ........
[autoupdate] org.netbeans.modules.editor.lib2 is not present, downloading version 1.30.0.2
[get:org.netbeans.modules.editor.lib2] Getting: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/ide/org-netbeans-modules-editor-lib2.nbm
[get:org.netbeans.modules.editor.lib2] To: /tmp/org-netbeans-modules-editor-lib2156755854371455267.nbm
[autoupdate] ....................................................
[autoupdate] ......................................
[autoupdate] org.netbeans.modules.progress.ui is not present, downloading version 1.13
[get:org.netbeans.modules.progress.ui] Getting: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/platform/org-netbeans-modules-progress-ui.nbm
[get:org.netbeans.modules.progress.ui] To: /tmp/org-netbeans-modules-progress-ui1928963209696700513.nbm
[autoupdate] ..........................
[autoupdate] org.netbeans.modules.xml.wsdl.model is not present, downloading version 1.11.0.1
[get:org.netbeans.modules.xml.wsdl.model] Getting: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/ide/org-netbeans-modules-xml-wsdl-model.nbm
[get:org.netbeans.modules.xml.wsdl.model] To: /tmp/org-netbeans-modules-xml-wsdl-model8516034389310253722.nbm
[autoupdate] ....................................................
[autoupdate] .....
[autoupdate] org.netbeans.modules.java.helpset is not present, downloading version 1.9
[get:org.netbeans.modules.java.helpset] Getting: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/java/org-netbeans-modules-java-helpset.nbm
[get:org.netbeans.modules.java.helpset] To: /tmp/org-netbeans-modules-java-helpset1437432169990123105.nbm
[autoupdate] ....................................................
[autoupdate] ....................................................
[autoupdate] ....................................................
[autoupdate] ....................................................
[autoupdate] ....................................................
[autoupdate] ....................................................
a OSGi container.
ming@ming-laptop:~/hg$ hg clone http://source.apidesign.org/hg/netbinox
程式 'hg' 目前尚未安裝。 您可以由輸入以下內容安裝:
sudo apt-get install mercurial
ming@ming-laptop:~/hg$ sudo apt-get install mercurial
[sudo] password for ming:
正在讀取套件清單... 完成
正在重建相依關係
正在讀取狀態資料... 完成
下列的額外套件將被安裝:
mercurial-common
建議套件:
qct vim emacs kdiff3 tkdiff meld xxdiff python-mysqldb python-pygments
下列【新】套件將會被安裝:
mercurial mercurial-common
升級 0 個,新安裝 2 個,移除 0 個,有 10 個未被升級。
需要下載 1,182kB 的套件檔。
此操作完成之後,會多佔用 4,956kB 的磁碟空間。
是否繼續進行 [Y/n]?Y
下載:1 http://tw.archive.ubuntu.com/ubuntu/ lucid/universe mercurial-common 1.4.3-1 [1,131kB]
下載:2 http://tw.archive.ubuntu.com/ubuntu/ lucid/universe mercurial 1.4.3-1 [50.7kB]
取得 1,182kB 用了 1min 5s (18.1kB/s)
選取了原先未被選取的套件 mercurial-common。
(正在讀取資料庫 ... 系統目前共安裝了 183489 個檔案和目錄。)
正在解開 mercurial-common (從 .../mercurial-common_1.4.3-1_all.deb)...
選取了原先未被選取的套件 mercurial。
正在解開 mercurial (從 .../mercurial_1.4.3-1_i386.deb)...
正在進行 man-db 的觸發程式 ...
正在設定 mercurial-common (1.4.3-1) ...
正在設定 mercurial (1.4.3-1) ...
Creating config file /etc/mercurial/hgrc.d/hgext.rc with new version
正在進行 python-support 的觸發程式 ...
ming@ming-laptop:~/hg$ hg clone http://source.apidesign.org/hg/netbinox
目的端目錄: netbinox
正在请求全部修改
正在增加修改集
正在增加清单
正在增加文件改变
已增加 84 个修改集,包含 221 个改变,修改了 75 个文件 (+1 heads)
updating to branch default
66 files updated, 0 files merged, 0 files removed, 0 files unresolved
ming@ming-laptop:~/hg$ ant
Buildfile: build.xml does not exist!
Build failed
ming@ming-laptop:~/hg$ ls
netbinox
ming@ming-laptop:~/hg$ cd *
ming@ming-laptop:~/hg/netbinox$ ant
Buildfile: build.xml
prepare:
[mkdir] Created dir: /home/ming/hg/netbinox/tmp/netbeans/harness
[get] Getting: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/netbeans/harness/tasks.jar
[get] To: /home/ming/hg/netbinox/tmp/netbeans/harness/tasks.jar
[get] ....................................................
[get] ....................................................
[get] ....................................................
[get] ....................................................
[get] ....................................................
[get] ....................................................
[get] ....................................................
[get] ..........
[get] last modified = Thu Aug 26 19:29:16 CST 2010
[autoupdate] Downloading http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/updates.xml.gz
[autoupdate] org.netbeans.modules.xml.xam is not present, downloading version 1.11.0.1
[get:org.netbeans.modules.xml.xam] Getting: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/ide/org-netbeans-modules-xml-xam.nbm
[get:org.netbeans.modules.xml.xam] To: /tmp/org-netbeans-modules-xml-xam4514979544085082707.nbm
[autoupdate] ...................................
[autoupdate] org.netbeans.modules.swingapp is not present, downloading version 1.10.0.2
[get:org.netbeans.modules.swingapp] Getting: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/java/org-netbeans-modules-swingapp.nbm
[get:org.netbeans.modules.swingapp] To: /tmp/org-netbeans-modules-swingapp6046859821933609572.nbm
[autoupdate] ....................................................
[autoupdate] ....................................................
[autoupdate] ....................................................
[autoupdate] ....................................................
[autoupdate] ....................................................
[autoupdate] ......................................
[autoupdate] org.netbeans.modules.html.editor.lib is not present, downloading version 1.28
[get:org.netbeans.modules.html.editor.lib] Getting: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/ide/org-netbeans-modules-html-editor-lib.nbm
[get:org.netbeans.modules.html.editor.lib] To: /tmp/org-netbeans-modules-html-editor-lib2584913797837647586.nbm
[autoupdate] .....................................
[autoupdate] org.netbeans.modules.java.project is not present, downloading version 1.33
[get:org.netbeans.modules.java.project] Getting: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/java/org-netbeans-modules-java-project.nbm
[get:org.netbeans.modules.java.project] To: /tmp/org-netbeans-modules-java-project4221245990876462310.nbm
[autoupdate] ............................................
[autoupdate] org.openide.util.lookup is not present, downloading version 8.4
[get:org.openide.util.lookup] Getting: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/platform/org-openide-util-lookup.nbm
[get:org.openide.util.lookup] To: /tmp/org-openide-util-lookup2157911845083295853.nbm
[autoupdate] .................................
[autoupdate] org.netbeans.modules.ant.browsetask is not present, downloading version 1.21
[get:org.netbeans.modules.ant.browsetask] Getting: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/java/org-netbeans-modules-ant-browsetask.nbm
[get:org.netbeans.modules.ant.browsetask] To: /tmp/org-netbeans-modules-ant-browsetask1122875502098896556.nbm
[autoupdate] ..............
[autoupdate] org.netbeans.modules.javascript.hints is not present, downloading version 0.46
[get:org.netbeans.modules.javascript.hints] Getting: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/ide/org-netbeans-modules-javascript-hints.nbm
[get:org.netbeans.modules.javascript.hints] To: /tmp/org-netbeans-modules-javascript-hints5266275799714039010.nbm
[autoupdate] ..........................
[autoupdate] org.netbeans.modules.hibernate is not present, downloading version 1.9.0.1
[get:org.netbeans.modules.hibernate] Getting: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/java/org-netbeans-modules-hibernate.nbm
[get:org.netbeans.modules.hibernate] To: /tmp/org-netbeans-modules-hibernate1892477150381757245.nbm
[autoupdate] ....................................................
[autoupdate] ....................................................
[autoupdate] ....................................................
[autoupdate] ........
[autoupdate] org.netbeans.modules.editor.lib2 is not present, downloading version 1.30.0.2
[get:org.netbeans.modules.editor.lib2] Getting: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/ide/org-netbeans-modules-editor-lib2.nbm
[get:org.netbeans.modules.editor.lib2] To: /tmp/org-netbeans-modules-editor-lib2156755854371455267.nbm
[autoupdate] ....................................................
[autoupdate] ......................................
[autoupdate] org.netbeans.modules.progress.ui is not present, downloading version 1.13
[get:org.netbeans.modules.progress.ui] Getting: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/platform/org-netbeans-modules-progress-ui.nbm
[get:org.netbeans.modules.progress.ui] To: /tmp/org-netbeans-modules-progress-ui1928963209696700513.nbm
[autoupdate] ..........................
[autoupdate] org.netbeans.modules.xml.wsdl.model is not present, downloading version 1.11.0.1
[get:org.netbeans.modules.xml.wsdl.model] Getting: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/ide/org-netbeans-modules-xml-wsdl-model.nbm
[get:org.netbeans.modules.xml.wsdl.model] To: /tmp/org-netbeans-modules-xml-wsdl-model8516034389310253722.nbm
[autoupdate] ....................................................
[autoupdate] .....
[autoupdate] org.netbeans.modules.java.helpset is not present, downloading version 1.9
[get:org.netbeans.modules.java.helpset] Getting: http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/java/org-netbeans-modules-java-helpset.nbm
[get:org.netbeans.modules.java.helpset] To: /tmp/org-netbeans-modules-java-helpset1437432169990123105.nbm
[autoupdate] ....................................................
[autoupdate] ....................................................
[autoupdate] ....................................................
[autoupdate] ....................................................
[autoupdate] ....................................................
[autoupdate] ....................................................
2010年7月30日 星期五
2010年7月29日 星期四
Java API for Bluetooth Wireless Technology.
http://www.forum.nokia.com/document/Java_Developers_Library_v2/GUID-9F75713D-5642-4C39-9A33-C20928F37BF7/
Java API for Bluetooth Wireless Technology.
http://www.forum.nokia.com/document/Java_Developers_Library_v2/GUID-9F75713D-5642-4C39-9A33-C20928F37BF7/
2010年7月27日 星期二
avahi for java. (Zeroconfiguration implementation) compatible to Apple Bonjour
http://avahi4j.googlecode.com/svn-history/r19/avahi4j/www/api/index.html?avahi4j//class-useServiceResolver.html
2010年6月21日 星期一
2010年5月29日 星期六
UML diagrams
http://www.google.com.tw/imgres?imgurl=http://pineapplie.files.wordpress.com/2009/05/class.jpg&imgrefurl=http://pineapplie.wordpress.com/2009/05/15/4-uml-diagrams/&h=337&w=673&sz=29&tbnid=ld5ixZa_Ht1-eM:&tbnh=69&tbnw=138&prev=/images%3Fq%3Dwhat%2Bis%2Ba%2Bclass%2Bdiagram&usg=__oXxrx5s-kwSviso8TN7TVdrEel0=&ei=PN8BTOHvN9GPcIyi1NUB&sa=X&oi=image_result&resnum=3&ct=image&ved=0CCMQ9QEwAg
2010年5月19日 星期三
2010年5月11日 星期二
2010年5月4日 星期二
2010年4月24日 星期六
2010年4月22日 星期四
EventQueue (Java Platform SE 6)
EventQueue (Java Platform SE 6)
How to post a new Event
PaintEvent e = new PaintEvent(this, PaintEvent.UPDATE,
new Rectangle(x, y, width, height));
Toolkit.getEventQueue().postEvent(e);
How to post a new Event
PaintEvent e = new PaintEvent(this, PaintEvent.UPDATE,
new Rectangle(x, y, width, height));
Toolkit.getEventQueue().postEvent(e);
2010年4月20日 星期二
2010年4月15日 星期四
2010年4月7日 星期三
2010年4月6日 星期二
2010年3月30日 星期二
2010年3月29日 星期一
2010年3月26日 星期五
2010年3月24日 星期三
2010年3月19日 星期五
2010年3月18日 星期四
2010年3月16日 星期二
2010年3月15日 星期一
2010年3月11日 星期四
2010年3月10日 星期三
2010年3月9日 星期二
2010年3月7日 星期日
Iterate through the values of Java TreeMap example | Java Examples - Java Program Sample Source Code
Iterate through the values of Java TreeMap example | Java Examples - Java Program Sample Source Code: "#
#
import java.util.Collection;
#
import java.util.TreeMap;
#
import java.util.Iterator;"
#
import java.util.Collection;
#
import java.util.TreeMap;
#
import java.util.Iterator;"
2010年3月3日 星期三
2010年3月2日 星期二
2010年3月1日 星期一
2010年2月9日 星期二
2010年2月7日 星期日
2010年2月5日 星期五
2010年2月3日 星期三
2010年1月31日 星期日
訂閱:
意見 (Atom)